@adyen/kyc-components 3.79.0-beta.9 → 3.80.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AcceptTermsOfServiceComponent-BtDbLa_E.js → AcceptTermsOfServiceComponent-DBSkKRHS.js} +7 -7
- package/dist/{AccountSetupRejected-CcEP6pSK.js → AccountSetupRejected-gAGWuJ9N.js} +6 -6
- package/dist/{Avatar-CIGV_SS9.js → Avatar-5RObc8Yd.js} +2 -2
- package/dist/{BusinessDetailsDropin-DLYZERBF.js → BusinessDetailsDropin-O92NE-y1.js} +132 -144
- package/dist/{BusinessFinancingComponent-B0-te_Xu.js → BusinessFinancingComponent-DDKomenp.js} +3 -3
- package/dist/{BusinessFinancingDropin-B4_rfH9-.js → BusinessFinancingDropin-Bhg9neRS.js} +135 -97
- package/dist/{BusinessFinancingPage-CrrXzA0g.js → BusinessFinancingPage-DyItV5SR.js} +3 -3
- package/dist/{BusinessTypeSelectionPage-D8xVIVhb.js → BusinessTypeSelectionPage-DmjbM57I.js} +47 -76
- package/dist/{ContractViewer-UYqTJdeu.js → ContractViewer-DBW5C6kA.js} +2 -2
- package/dist/{CreateIndividualComponent-XvZnVu7B.js → CreateIndividualComponent-c8yAn2_J.js} +4 -4
- package/dist/{CreateTransferInstrumentComponent-BgYVNCFm.js → CreateTransferInstrumentComponent-BF-KFdjU.js} +5 -5
- package/dist/{CustomerSupport-CYFiNKxp.js → CustomerSupport-rSYElbVr.js} +10 -10
- package/dist/{DebugModal-D3MJ4glT.js → DebugModal-BTr0idCC.js} +12 -226
- package/dist/{DecisionMakerDetailsPage-CbEA4IVc.js → DecisionMakerDetailsPage-DQcWSwTb.js} +4 -4
- package/dist/DecisionMakers-C2awPhE6.js +478 -0
- package/dist/{EmbeddedStatus-90fvG4vd.js → EmbeddedStatus-COKtxNW-.js} +13 -13
- package/dist/{FormEndState-n1UQXu_s.js → FormEndState-BmDRa3zJ.js} +4 -3
- package/dist/{FormFlow-DJAJpY63.js → FormFlow-CNxGh4Yu.js} +3 -3
- package/dist/{IndividualOnfidoDropin-UnR6_lSH.js → IndividualOnfidoDropin-DUzjucM9.js} +217 -188
- package/dist/{Introduction-DF3A8V4n.js → Introduction-BEM_wmkj.js} +24 -26
- package/dist/{ProviderButton-C0l7gpNQ.js → LandingLayout-DyY0Exht.js} +91 -83
- package/dist/{LegalRepresentativeDetailsPage-BVyxsmeu.js → LegalRepresentativeDetailsPage-1tw_BPLr.js} +4 -4
- package/dist/{ManageIndividualComponent-CgoC5kz6.js → ManageIndividualComponent-B0y8wd24.js} +6 -6
- package/dist/{ManageTermsOfServiceComponent-Csey0WTR.js → ManageTermsOfServiceComponent-DJVDf-iH.js} +4 -4
- package/dist/{ManageTransferInstrumentComponent-Cl1QWiGy.js → ManageTransferInstrumentComponent-DF4Q8oEB.js} +6 -6
- package/dist/{OnboardingDropinComponent-CMrZ3LMb.js → OnboardingDropinComponent-B0Sj7qf1.js} +366 -208
- package/dist/{Review-CzahUVPw.js → Review-C4HOjR6y.js} +11 -11
- package/dist/RootBusinessDetailsPage-DeqKfOFX.js +1848 -0
- package/dist/{RootIndividualDetailsPage-BWTT7m_R.js → RootIndividualDetailsPage-CKOquQ0-.js} +4 -4
- package/dist/{SignPCIComponent-BQNUvb0U.js → SignPCIComponent-Cx8oL8wu.js} +6 -6
- package/dist/{SingpassSelection-XgZwkWE1.js → SingpassSelection-BJNZw1u-.js} +11 -11
- package/dist/{SoleProprietorshipPage-By5_23ht.js → SoleProprietorshipPage-Dtw3XHVJ.js} +4 -4
- package/dist/{SourceOfFundsPage-CDGfbVu5.js → SourceOfFundsPage-gPmK4QX6.js} +28 -20
- package/dist/{StoreProvider-D6PzfyGo.js → StoreProvider-DhQ4sdLg.js} +5809 -5424
- package/dist/{TaskItemStatus-FSfcOG5a.js → TaskItemStatus-Cxcag2AH.js} +23 -23
- package/dist/TaskStatusIndicator-B5fp8LzR.js +69 -0
- package/dist/{TaxReportingDropin-B7TEo7Kn.js → TaxReportingDropin-CbDYoO31.js} +8 -7
- package/dist/{TileGroup-rR4DgKfb.js → TileGroup-BkLtnLiA.js} +2 -2
- package/dist/{TrustDetailsPage-DPBPQVSn.js → TrustDetailsPage-DktRQRum.js} +38 -14
- package/dist/{TrustMemberCompanyPage-B_TShwlL.js → TrustMemberCompanyPage-CLTOpWzU.js} +5 -5
- package/dist/{TrustMemberIndividualPage-BgQBZEcL.js → TrustMemberIndividualPage-wPh86-GQ.js} +4 -4
- package/dist/{UnincorporatedPartnershipIndividualPage-DHcH33Db.js → UnincorporatedPartnershipIndividualPage-B-2i68Nd.js} +4 -4
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-BTklC9NY.js → UnincorporatedPartnershipMemberCompanyPage-DWLczj6F.js} +4 -4
- package/dist/{VerificationErrorAlert-BrW_bMo4.js → VerificationErrorAlert-AbvM4lbK.js} +2 -2
- package/dist/{ViewVerificationStatusComponent-4QUIn73E.js → ViewVerificationStatusComponent-vVZeXYDs.js} +14 -12
- package/dist/adyen-business-financing.js +8 -12
- package/dist/adyen-individual.js +6 -4
- package/dist/adyen-kyc-components.js +143 -124
- package/dist/adyen-manage-individual.js +2 -2
- package/dist/adyen-manage-terms-of-service.js +3 -3
- package/dist/adyen-manage-transfer-instruments.js +3 -3
- package/dist/adyen-onboarding.js +14 -6
- package/dist/adyen-terms-of-service.js +18 -6
- package/dist/adyen-transfer-instrument.js +10 -6
- package/dist/adyen-verification-status.js +2 -2
- package/dist/bag-DpxmyXfR.js +14 -0
- package/dist/business-lines-DboUCbXw.js +135 -0
- package/dist/decision-makers-group-CgddXgrx.js +1944 -0
- package/dist/en-US-CQ3angjM.js +22 -0
- package/dist/{getFieldsWithExistingData-nHjOwfDp.js → getFieldsWithExistingData-BS9W6RQp.js} +2 -2
- package/dist/{hasDataChanged-C8mesP2r.js → hasDataChanged-DK74H0sZ.js} +2 -2
- package/dist/{localizeDateString-BUxfnxIU.js → localizeDateString-C34eXZqY.js} +2 -2
- package/dist/mail-Z_IE_hkw.js +14 -0
- package/dist/{mapFinancialReportsToFinancialInformation-CYeTa8E1.js → mapFinancialReportsToFinancialInformation-DoJu-RRw.js} +2 -2
- package/dist/pay-by-link-plane-Pv7Babgn.js +22 -0
- package/dist/{resolveEnvironment-sH8SYGuY.js → resolveEnvironment-rJv_NJF_.js} +3 -3
- package/dist/{rules-CbVhdTWA.js → rules-OP83mdq4.js} +13 -13
- package/dist/solution-payments-DTAuLSWF.js +14 -0
- package/dist/style.css +218 -181
- package/dist/styles-CLV89_hH.js +218 -181
- package/dist/terminal-1-ewywjFJI.js +18 -0
- package/dist/types/api/idNowProvider/idNowProvider.types.d.ts +1 -2
- package/dist/types/api/idNowProvider/useIdNowProvider.d.ts +4 -8
- package/dist/types/components/BankAccount/forms/BankDocument/BankDocumentRequirements.d.ts +2 -3
- package/dist/types/components/BankAccount/forms/BankDocument/types.d.ts +25 -24
- package/dist/types/components/BankAccount/forms/BankVerification/verification/widget/types.d.ts +10 -10
- package/dist/types/components/BankAccount/forms/PayoutDetails/types.d.ts +2 -2
- package/dist/types/components/BankAccount/mapping/payoutKeyMappings.d.ts +0 -306
- package/dist/types/components/BankAccount/pages/PayoutDetailsPage.d.ts +1 -1
- package/dist/types/components/Business/forms/AdditionalInformation/AdditionalInformationMultiform.d.ts +9 -0
- package/dist/types/components/Business/forms/BasicInformation/BasicInformationMultiform.d.ts +10 -0
- package/dist/types/components/Business/forms/BasicInformation/types.d.ts +2 -2
- package/dist/types/components/Business/forms/BusinessDetails/forms.d.ts +14 -2
- package/dist/types/components/Business/forms/BusinessDetails/types.d.ts +5 -3
- package/dist/types/components/Business/forms/BusinessSelection/BusinessInformationCard/BusinessInformationCard.d.ts +3 -2
- package/dist/types/components/Business/forms/BusinessSelection/BusinessSelectionMultiform.d.ts +14 -0
- package/dist/types/components/Business/forms/BusinessSelection/types.d.ts +3 -0
- package/dist/types/components/Business/forms/CompanyStructure/CompanyStructureMultiform.d.ts +4 -0
- package/dist/types/components/Business/forms/forms.types.d.ts +14 -0
- package/dist/types/components/Business/forms/rules.d.ts +26 -8
- package/dist/types/components/Business/mapping/businessDetails/mapLegalEntityToBusinessDetailsSchema.d.ts +2 -1
- package/dist/types/components/Business/mapping/businessDetails/mapOrganizationTypeToCompanyType.d.ts +1 -1
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/businessDetailsStore.d.ts +5 -3
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +4 -3
- package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/BusinessDetailsMultiform.d.ts +18 -0
- package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/BusinessDetailsMultiformDropin.d.ts +5 -0
- package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/types.d.ts +2 -0
- package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/utils.d.ts +21 -0
- package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/validate.d.ts +22 -0
- package/dist/types/components/Business/utils/companyTypeMetadata.d.ts +1 -1
- package/dist/types/components/Business/utils/companyUtil.d.ts +3 -3
- package/dist/types/components/BusinessLines/pages/RootBusinessLinesPage.d.ts +5 -0
- package/dist/types/components/BusinessLines/tasks/BusinessLinesDropin.d.ts +5 -0
- package/dist/types/components/BusinessLines/tasks/BusinessLinesGettingStarted/BusinessLinesGettingStarted.d.ts +6 -0
- package/dist/types/components/Contract/tasks/ServiceAgreementDropin/types.d.ts +2 -2
- package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +1 -306
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/types.d.ts +22 -19
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/utils.d.ts +3 -2
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/types.d.ts +2 -2
- package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/types.d.ts +3 -3
- package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/useNavigation.d.ts +5 -5
- package/dist/types/components/EmbeddedDropins/ViewVerificationStatus/ViewVerificationStatusComponent.d.ts +1 -1
- package/dist/types/components/EmbeddedDropins/ViewVerificationStatus/content.d.ts +1 -1
- package/dist/types/components/Individual/fields/DecisionMakerRole/NomineeDecisionMakerRole.d.ts +6 -0
- package/dist/types/components/Individual/fields/DecisionMakerRole/types.d.ts +2 -2
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/types.d.ts +2 -2
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/validate.d.ts +2 -2
- package/dist/types/components/Individual/forms/Individual/ProofOfRelationship/types.d.ts +8 -8
- package/dist/types/components/Individual/forms/Individual/ProofOfResidency/types.d.ts +18 -18
- package/dist/types/components/Individual/forms/Individual/rules.d.ts +1 -1
- package/dist/types/components/Individual/forms/Individual/types.d.ts +2 -2
- package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/AdditionalPersonalDetails.types.d.ts +3 -2
- package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/validate.d.ts +2 -2
- package/dist/types/components/Individual/forms/IndividualOnfido/BasicDetails/BasicDetails.types.d.ts +2 -2
- package/dist/types/components/Individual/forms/IndividualOnfido/GuidanceQuestion/GuidanceQuestion.d.ts +4 -4
- package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.rules.d.ts +3 -1
- package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.types.d.ts +2 -2
- package/dist/types/components/Individual/helpers/isOnfidoAutofillFlowEnabled.d.ts +2 -2
- package/dist/types/components/Individual/helpers/roleUtils.d.ts +1 -1
- package/dist/types/components/Individual/helpers/shouldShowMotionCapture.d.ts +3 -3
- package/dist/types/components/Individual/pages/DecisionMakerDetailsPage.d.ts +1 -1
- package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerDetails/DecisionMakerDetails.d.ts +2 -0
- package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerDetails/DecisionMakerDetails.types.d.ts +7 -0
- package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakersGettingStarted/DecisionMakersGettingStarted.d.ts +5 -0
- package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakersGettingStarted/DecisionMakersModalContent.d.ts +1 -0
- package/dist/types/components/Shared/EntityGuidanceStatus/types.d.ts +4 -4
- package/dist/types/components/Shared/FormFlow/FormFlow.types.d.ts +1 -1
- package/dist/types/components/Shared/Introduction/Introduction.d.ts +2 -2
- package/dist/types/components/Shared/Introduction/IntroductionScreen.d.ts +2 -2
- package/dist/types/components/Shared/Introduction/constants.d.ts +3 -3
- package/dist/types/components/Shared/Introduction/copy.d.ts +6 -5
- package/dist/types/components/Shared/Introduction/types.d.ts +11 -11
- package/dist/types/components/Shared/SingpassBanner/SingpassBanner.d.ts +1 -1
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/BusinessRegistrationNumberField.d.ts +1 -1
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/fieldConfig.d.ts +1 -1
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/types.d.ts +5 -7
- package/dist/types/components/Shared/fields/CountryField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/CountryOfGoverningLawField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/Currency/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/DBANameField/types.d.ts +1 -3
- package/dist/types/components/Shared/fields/DateOfIncorporationField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/EInvoicingCodeField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/FinancialReportingDate/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/TaxIdNumberTypeSelector.d.ts +2 -2
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/VatNumberTypeSelector.d.ts +2 -2
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/countryIdNumberTypes.d.ts +27 -27
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/getDefaultRegistrationNumberType.d.ts +16 -0
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/getDefaultTaxIdNumberType.d.ts +2 -2
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/getDefaultVatNumberType.d.ts +13 -0
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/inferTaxIdNumberType.d.ts +2 -2
- package/dist/types/components/Shared/fields/LegalCompanyNameField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/NumberOfEmployees/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/PhoneField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/StateField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/StockExchangeMICField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/StockISINField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/StockTickerSymbol/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/TaxInformationField/TaxInformationField.d.ts +1 -1
- package/dist/types/components/Shared/fields/TaxInformationField/fieldConfig.d.ts +3 -3
- package/dist/types/components/Shared/fields/TaxInformationField/types.d.ts +3 -7
- package/dist/types/components/Shared/fields/VatNumberField/VatNumberField.d.ts +1 -1
- package/dist/types/components/Shared/fields/VatNumberField/types.d.ts +2 -4
- package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
- package/dist/types/components/Shared/forms/BusinessTypeSelection/utils.d.ts +2 -2
- package/dist/types/components/Shared/forms/ConstitutionalDocument/types.d.ts +11 -10
- package/dist/types/components/Shared/forms/FinancialInformation/types.d.ts +3 -0
- package/dist/types/components/Shared/forms/RegistrationAddress/types.d.ts +7 -5
- package/dist/types/components/Shared/tasks/TaskList/types.d.ts +2 -4
- package/dist/types/components/Shared/tasks/TaskList/utils.d.ts +1 -2
- package/dist/types/components/Trust/forms/Trust/rules.d.ts +1 -0
- package/dist/types/components/Trust/forms/Trust/types.d.ts +1 -1
- package/dist/types/components/Trust/forms/TrustRegistrationDetails/types.d.ts +2 -2
- package/dist/types/components/Trust/forms/TrustRoleAndEntityType/types.d.ts +1 -2
- package/dist/types/components/Trust/hooks/useTrustMemberNavigation.hook.d.ts +3 -3
- package/dist/types/components/Trust/pages/TrustDetailsPage.d.ts +1 -1
- package/dist/types/components/Trust/tasks/TrustMembers/CompanyTrustMemberTaskItem.d.ts +1 -1
- package/dist/types/components/Trust/tasks/TrustMembers/ExemptSettlorTaskItem.d.ts +1 -1
- package/dist/types/components/Trust/tasks/TrustMembers/RegularTrustMemberTaskItem.d.ts +1 -1
- package/dist/types/components/Trust/tasks/TrustMembers/RootTrusteeTaskItem.d.ts +1 -1
- package/dist/types/components/Trust/tasks/TrustMembers/types.d.ts +6 -6
- package/dist/types/components/Trust/utils/trustMemberGuidance.d.ts +7 -6
- package/dist/types/components/Trust/utils/trustMemberRequirements.d.ts +1 -1
- package/dist/types/components/UnincorporatedPartnership/hooks/useUnincorporatedPartnershipNavigation.d.ts +6 -6
- package/dist/types/components/UnincorporatedPartnership/tasks/UnincorporatedPartnershipMembers/types.d.ts +5 -5
- package/dist/types/components/UnincorporatedPartnership/tasks/UnincorporatedPartnershipRoleAndType/UnincorporatedPartnershipRadioGroup.d.ts +2 -2
- package/dist/types/components/UnincorporatedPartnership/tasks/UnincorporatedPartnershipRoleAndType/types.d.ts +2 -2
- package/dist/types/components/ui/atoms/ListItem/ListItem.d.ts +16 -0
- package/dist/types/components/ui/atoms/Svg/svgs.d.ts +14 -0
- package/dist/types/components/ui/atoms/TaskStatusIndicator/TaskStatusIndicator.d.ts +1 -1
- package/dist/types/components/ui/layout/LandingLayout/LandingLayout.d.ts +3 -2
- package/dist/types/components/ui/molecules/EmbeddedStatus/EmbeddedStatus.d.ts +1 -1
- package/dist/types/components/ui/molecules/EmbeddedStatus/statusToTag.d.ts +2 -2
- package/dist/types/constants/keys.d.ts +2 -0
- package/dist/types/context/ExperimentContext/types.d.ts +49 -37
- package/dist/types/context/SettingsContext/types.d.ts +24 -24
- package/dist/types/core/models/api/company-types-value.d.ts +12 -11
- package/dist/types/core/models/api/decision-maker-type.d.ts +7 -6
- package/dist/types/core/models/api/entity-type.d.ts +5 -4
- package/dist/types/core/models/api/get-scenarios.d.ts +18 -18
- package/dist/types/core/models/api/individual.d.ts +1 -0
- package/dist/types/core/models/api/legal-arrangement.d.ts +2 -2
- package/dist/types/core/models/api/legal-entity-association.d.ts +2 -2
- package/dist/types/core/models/api/legal-entity-type.d.ts +8 -7
- package/dist/types/core/models/api/trust-member-type.d.ts +8 -8
- package/dist/types/core/models/api/trusted-fields-provider.d.ts +5 -4
- package/dist/types/core/models/api/unincorporated-partnership.d.ts +6 -6
- package/dist/types/core/models/api/verification-error.d.ts +8 -7
- package/dist/types/core/models/api/verification-status.d.ts +7 -6
- package/dist/types/core/models/api/view-verification-status.d.ts +8 -7
- package/dist/types/embeds/business-financing/AdyenBusinessFinancing.d.ts +1 -1
- package/dist/types/embeds/business-financing/adyen-business-financing.types.d.ts +6 -1
- package/dist/types/embeds/individual/adyen-individual.types.d.ts +6 -1
- package/dist/types/embeds/onboarding/AdyenOnboarding.d.ts +1 -0
- package/dist/types/embeds/onboarding/adyen-onboarding.types.d.ts +4 -1
- package/dist/types/embeds/terms-of-service/adyen-terms-of-service.types.d.ts +7 -1
- package/dist/types/embeds/transfer-instrument/AdyenTransferInstrument.d.ts +2 -1
- package/dist/types/embeds/transfer-instrument/adyen-transfer-instrument.types.d.ts +7 -2
- package/dist/types/hooks/introduction/useIntroductionScreens.d.ts +4 -4
- package/dist/types/hooks/singpass/useSingpassMyInfoLogin.d.ts +7 -6
- package/dist/types/hooks/useBusinessSetup.d.ts +11 -10
- package/dist/types/hooks/useDataMissingRemediations.d.ts +2 -2
- package/dist/types/hooks/useFormComposer.d.ts +1 -1
- package/dist/types/hooks/useLegalCompanyNameField/useLegalCompanyNameField.d.ts +6 -3
- package/dist/types/hooks/useLegalEntityType.d.ts +1 -1
- package/dist/types/hooks/useMultiForm/types.d.ts +38 -36
- package/dist/types/hooks/useMultiForm/useMultiForm.d.ts +1 -1
- package/dist/types/hooks/useScenarioConfiguration.d.ts +2 -2
- package/dist/types/language/Language.d.ts +1 -0
- package/dist/types/language/utils.d.ts +11 -1
- package/dist/types/stores/globalStore/calculateTaskStatus.d.ts +2 -2
- package/dist/types/stores/globalStore/determineTaskIdentifiers.d.ts +2 -2
- package/dist/types/stores/globalStore/get-task-status.d.ts +2 -2
- package/dist/types/stores/globalStore/globalStore.d.ts +7 -7
- package/dist/types/stores/globalStore/taskStatus.d.ts +17 -16
- package/dist/types/stores/globalStore/taskTypes.d.ts +37 -35
- package/dist/types/types/datasets/country-code.d.ts +249 -249
- package/dist/types/types/datasets/currency.d.ts +25 -25
- package/dist/types/types/datasets/province-code.d.ts +46 -46
- package/dist/types/types/datasets/state-code.d.ts +84 -84
- package/dist/types/types/errors/entity-problems.d.ts +3 -4
- package/dist/types/types/form-rules.d.ts +2 -2
- package/dist/types/utils/api/processValidationErrors.d.ts +2 -2
- package/dist/types/utils/birthDateUtils.d.ts +3 -3
- package/dist/types/utils/decisionMaker.d.ts +4 -3
- package/dist/types/utils/decisionMakerRoles.d.ts +4 -3
- package/dist/types/utils/entityAssociationUtil.d.ts +4 -5
- package/dist/types/utils/entityStatusUtil.d.ts +3 -3
- package/dist/types/utils/formUtils.d.ts +2 -2
- package/dist/types/utils/getDisplayErrorMessage.d.ts +2 -2
- package/dist/types/utils/getName.d.ts +2 -2
- package/dist/types/utils/makeSelectItemForRole.d.ts +2 -2
- package/dist/types/utils/regex/patternValidators.d.ts +1 -0
- package/dist/types/utils/roleMetadata.d.ts +3 -3
- package/dist/types/utils/translation.d.ts +40 -0
- package/dist/{useMultiForm-DEOL8O6Q.js → useMultiForm-ChxUZ4e7.js} +10 -5
- package/dist/{useOnboardingStatus-BSZeiaAC.js → useOnboardingStatus-1BQlEPEi.js} +2 -2
- package/dist/{useTermsOfServiceStatus-B9zuE6yV.js → useTermsOfServiceStatus-BaVCmUdo.js} +2 -2
- package/dist/{useUpdateLegalEntity-Bs2tKEPC.js → useUpdateLegalEntity-LE_Kt3am.js} +2 -2
- package/dist/{utils-WopSF2zY.js → utils-DmcbDJEd.js} +17 -17
- package/dist/{validate-D40HSgPc.js → validate-B2VmmEPC.js} +2 -2
- package/dist/{validate-D2R8_9ew.js → validate-D66zPhDG.js} +2 -2
- package/dist/view-verification-status-VFcBydkR.js +21 -0
- package/package.json +5 -30
- package/dist/DecisionMakers-DCU9mFe8.js +0 -217
- package/dist/LandingLayout-DIrahoMq.js +0 -139
- package/dist/ManagePCIComponent-sKP7Mgeo.js +0 -33
- package/dist/RootBusinessDetailsPage-CA5r2xq3.js +0 -42
- package/dist/_plugin-vue_export-helper-CgYpM5kA.js +0 -19
- package/dist/adyen-manage-pci.js +0 -48
- package/dist/adyen-sign-pci.js +0 -62
- package/dist/adyen-terms-of-service.vue_vue_type_script_lang-BD4hndWg.js +0 -42
- package/dist/adyen-transfer-instrument.vue_vue_type_script_lang-BE-ro1iH.js +0 -53
- package/dist/css-Di2ysu56.js +0 -24
- package/dist/json-x8T3RzUR.js +0 -31
- package/dist/plaintext-D3Ww_aF9.js +0 -17
- package/dist/preact/adyen-individual.js +0 -15
- package/dist/preact/adyen-manage-individual.js +0 -15
- package/dist/preact/adyen-terms-of-service.js +0 -16
- package/dist/preact/adyen-transfer-instrument.js +0 -16
- package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/IdVerificationDisclaimer/IdVerificationDisclaimer.d.ts +0 -1
- package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/IdVerificationHeader/IdVerificationHeader.d.ts +0 -1
- package/dist/types/embeds/individual/AdyenIndividualPreact.d.ts +0 -3
- package/dist/types/embeds/manage-individual/AdyenManageIndividualPreact.d.ts +0 -3
- package/dist/types/embeds/manage-pci/AdyenManagePci.d.ts +0 -12
- package/dist/types/embeds/manage-pci/adyen-manage-pci.d.ts +0 -1
- package/dist/types/embeds/manage-pci/adyen-manage-pci.types.d.ts +0 -39
- package/dist/types/embeds/sign-pci/AdyenSignPci.d.ts +0 -15
- package/dist/types/embeds/sign-pci/adyen-sign-pci.d.ts +0 -1
- package/dist/types/embeds/sign-pci/adyen-sign-pci.types.d.ts +0 -43
- package/dist/types/embeds/terms-of-service/AdyenTermsOfServicePreact.d.ts +0 -3
- package/dist/types/embeds/transfer-instrument/AdyenTransferInstrumentPreact.d.ts +0 -3
- package/dist/useSalesChannelsSettings-CuQ0ULoa.js +0 -51
- package/dist/view-verification-status-DTkA8PtO.js +0 -20
- package/dist/vue/adyen-individual.js +0 -53
- package/dist/vue/adyen-manage-individual.js +0 -56
- package/dist/vue/adyen-terms-of-service.js +0 -28
- package/dist/vue/adyen-transfer-instrument.js +0 -30
- package/dist/yaml-BMoCIv2z.js +0 -22
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
{
|
|
3
3
|
try {
|
|
4
4
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "11bd1513-5821-4330-93a6-4e7ca0b03f1a", e._sentryDebugIdIdentifier = "sentry-dbid-11bd1513-5821-4330-93a6-4e7ca0b03f1a");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { g as getLegalEntityCountry,
|
|
11
|
-
import {
|
|
12
|
-
import { S as SOLE_PROP_COUNTRIES } from "./rules-
|
|
10
|
+
import { g as getLegalEntityCountry, dQ as getCapabilities, O as LegalEntityTypes, V as hasOwnEntityAssociationOfType, Y as CompanyTypesValues, as as CountryCodes, dS as ALLOWED_UNINCORPORATED_PARTNERSHIP_COUNTRIES } from "./StoreProvider-DhQ4sdLg.js";
|
|
11
|
+
import { d as allowIndividualWithoutSoleProp } from "./OnboardingDropinComponent-B0Sj7qf1.js";
|
|
12
|
+
import { S as SOLE_PROP_COUNTRIES } from "./rules-OP83mdq4.js";
|
|
13
13
|
const TRUST_COUNTRIES = [CountryCodes.Australia, CountryCodes.NewZealand];
|
|
14
14
|
const BUSINESS_BANK_ACCOUNT_COUNTRIES = [
|
|
15
15
|
CountryCodes.UnitedStates,
|
|
@@ -38,9 +38,9 @@ const getBusinessType = (businessTypeItems, country, accountHolder, legalEntityT
|
|
|
38
38
|
);
|
|
39
39
|
}
|
|
40
40
|
switch (legalEntityType) {
|
|
41
|
-
case
|
|
41
|
+
case LegalEntityTypes.ORGANIZATION:
|
|
42
42
|
return findBusinessType("company");
|
|
43
|
-
case
|
|
43
|
+
case LegalEntityTypes.INDIVIDUAL:
|
|
44
44
|
if (allowIndividualWithoutSoleProp(capabilities)) {
|
|
45
45
|
return findBusinessType("individual");
|
|
46
46
|
}
|
|
@@ -163,9 +163,9 @@ const useSelectionOptions = (legalEntityResponse) => {
|
|
|
163
163
|
const mapLegalArrangementOptionToCompanyTypesValue = (legalArrangement) => {
|
|
164
164
|
switch (legalArrangement) {
|
|
165
165
|
case "partnershipIncorporated":
|
|
166
|
-
return
|
|
166
|
+
return CompanyTypesValues.INCORPORATED_PARTNERSHIP;
|
|
167
167
|
case "associationIncorporated":
|
|
168
|
-
return
|
|
168
|
+
return CompanyTypesValues.INCORPORATED_ASSOCIATION;
|
|
169
169
|
default:
|
|
170
170
|
return void 0;
|
|
171
171
|
}
|
|
@@ -175,9 +175,9 @@ const determineOrganizationTypeToUpdate = (targetLegalArrangement, currentCompan
|
|
|
175
175
|
return;
|
|
176
176
|
}
|
|
177
177
|
if (!targetLegalArrangement) {
|
|
178
|
-
const isUnavailableTypesInCompany = currentCompanyTypeValue ===
|
|
178
|
+
const isUnavailableTypesInCompany = currentCompanyTypeValue === CompanyTypesValues.INCORPORATED_ASSOCIATION || currentCompanyTypeValue === CompanyTypesValues.INCORPORATED_PARTNERSHIP;
|
|
179
179
|
if (isUnavailableTypesInCompany) {
|
|
180
|
-
return
|
|
180
|
+
return CompanyTypesValues.PRIVATE_COMPANY;
|
|
181
181
|
}
|
|
182
182
|
}
|
|
183
183
|
return mapLegalArrangementOptionToCompanyTypesValue(targetLegalArrangement);
|
|
@@ -186,7 +186,7 @@ const getDefaultLegalArrangementOrSuborganizationType = (legalEntityResponse, ac
|
|
|
186
186
|
const entityAssociations = legalEntityResponse?.entityAssociations;
|
|
187
187
|
const suborganizationType = legalEntityResponse?.organization?.type;
|
|
188
188
|
const hasTrust = hasOwnEntityAssociationOfType(
|
|
189
|
-
|
|
189
|
+
LegalEntityTypes.TRUST,
|
|
190
190
|
entityAssociations,
|
|
191
191
|
legalEntityResponse?.id
|
|
192
192
|
);
|
|
@@ -194,17 +194,17 @@ const getDefaultLegalArrangementOrSuborganizationType = (legalEntityResponse, ac
|
|
|
194
194
|
return "aTrust";
|
|
195
195
|
}
|
|
196
196
|
const hasUnincorporatedPartnership = hasOwnEntityAssociationOfType(
|
|
197
|
-
|
|
197
|
+
LegalEntityTypes.UNINCORPORATED_PARTNERSHIP,
|
|
198
198
|
entityAssociations,
|
|
199
199
|
legalEntityResponse?.id
|
|
200
200
|
);
|
|
201
201
|
if (hasUnincorporatedPartnership || accountHolder === "anUnincorporatedPartnership") {
|
|
202
202
|
return "partnershipUnincorporated";
|
|
203
203
|
}
|
|
204
|
-
if (suborganizationType ===
|
|
204
|
+
if (suborganizationType === CompanyTypesValues.INCORPORATED_PARTNERSHIP) {
|
|
205
205
|
return "partnershipIncorporated";
|
|
206
206
|
}
|
|
207
|
-
if (suborganizationType ===
|
|
207
|
+
if (suborganizationType === CompanyTypesValues.INCORPORATED_ASSOCIATION) {
|
|
208
208
|
return "associationIncorporated";
|
|
209
209
|
}
|
|
210
210
|
return void 0;
|
|
@@ -212,13 +212,13 @@ const getDefaultLegalArrangementOrSuborganizationType = (legalEntityResponse, ac
|
|
|
212
212
|
const getTargetLegalEntityType = (businessType, legalArrangement, trusteeType, currentLegalEntityType) => {
|
|
213
213
|
const trustOrUnincorporatedPartnership = legalArrangement === "aTrust" || legalArrangement === "partnershipUnincorporated";
|
|
214
214
|
if (businessType === "legalArrangement" && trustOrUnincorporatedPartnership && trusteeType === "company" || businessType === "company") {
|
|
215
|
-
return
|
|
215
|
+
return LegalEntityTypes.ORGANIZATION;
|
|
216
216
|
}
|
|
217
217
|
if (businessType === "legalArrangement" && trustOrUnincorporatedPartnership && trusteeType === "individual" || businessType === "individual" || businessType === "soleProprietorship") {
|
|
218
|
-
return
|
|
218
|
+
return LegalEntityTypes.INDIVIDUAL;
|
|
219
219
|
}
|
|
220
220
|
if (legalArrangement && isLegalArrangementOrganizationSubtype(legalArrangement)) {
|
|
221
|
-
return
|
|
221
|
+
return LegalEntityTypes.ORGANIZATION;
|
|
222
222
|
}
|
|
223
223
|
return currentLegalEntityType;
|
|
224
224
|
};
|
|
@@ -2,12 +2,12 @@
|
|
|
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] = "ff59aaaf-f855-4446-a19f-afb08b8bff39", e._sentryDebugIdIdentifier = "sentry-dbid-ff59aaaf-f855-4446-a19f-afb08b8bff39");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import {
|
|
10
|
+
import { dH as hasText } from "./StoreProvider-DhQ4sdLg.js";
|
|
11
11
|
const validateLegalEntityIdentifier = (legalEntityIdentifier) => {
|
|
12
12
|
if (!legalEntityIdentifier) {
|
|
13
13
|
return true;
|
|
@@ -2,13 +2,13 @@
|
|
|
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] = "5af3d4a2-8a96-4bf6-a6a2-31c498a3c3e1", e._sentryDebugIdIdentifier = "sentry-dbid-5af3d4a2-8a96-4bf6-a6a2-31c498a3c3e1");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { useCallback } from "preact/hooks";
|
|
11
|
-
import {
|
|
11
|
+
import { a as useApiContext, t as httpPost, dI as emailPattern } from "./StoreProvider-DhQ4sdLg.js";
|
|
12
12
|
const validatePhoneNumber = (baseUrl, data) => {
|
|
13
13
|
return httpPost(
|
|
14
14
|
{
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
;
|
|
2
|
+
{
|
|
3
|
+
try {
|
|
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] = "43ba52b1-7c2c-481b-86d7-eb3e9d974025", e._sentryDebugIdIdentifier = "sentry-dbid-43ba52b1-7c2c-481b-86d7-eb3e9d974025");
|
|
6
|
+
} catch (e) {
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
;
|
|
10
|
+
const OnboardingStatuses = {
|
|
11
|
+
AWAITING_DATA: "AWAITING_DATA",
|
|
12
|
+
IN_REVIEW: "IN_REVIEW",
|
|
13
|
+
UNSUCCESSFUL: "UNSUCCESSFUL",
|
|
14
|
+
REJECTED: "REJECTED",
|
|
15
|
+
// final state - no status changes further
|
|
16
|
+
VERIFIED: "VERIFIED"
|
|
17
|
+
// final state - no status changes further
|
|
18
|
+
};
|
|
19
|
+
export {
|
|
20
|
+
OnboardingStatuses as O
|
|
21
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adyen/kyc-components",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.80.0-beta.0",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"adyen",
|
|
6
6
|
"adyen-kyc",
|
|
@@ -60,26 +60,10 @@
|
|
|
60
60
|
"types": "./dist/types/embeds/manage-terms-of-service/adyen-manage-terms-of-service.types.d.ts",
|
|
61
61
|
"import": "./dist/adyen-manage-terms-of-service.js"
|
|
62
62
|
},
|
|
63
|
-
"./experimental/manage-pci": {
|
|
64
|
-
"types": "./dist/types/embeds/manage-pci/adyen-manage-pci.types.d.ts",
|
|
65
|
-
"import": "./dist/adyen-manage-pci.js"
|
|
66
|
-
},
|
|
67
|
-
"./experimental/sign-pci": {
|
|
68
|
-
"types": "./dist/types/embeds/sign-pci/adyen-sign-pci.types.d.ts",
|
|
69
|
-
"import": "./dist/adyen-sign-pci.js"
|
|
70
|
-
},
|
|
71
63
|
"./experimental/verification-status": {
|
|
72
64
|
"types": "./dist/types/embeds/verification-status/adyen-verification-status.types.d.ts",
|
|
73
65
|
"import": "./dist/adyen-verification-status.js"
|
|
74
|
-
}
|
|
75
|
-
"./experimental/vue/individual": "./dist/vue/adyen-individual.js",
|
|
76
|
-
"./experimental/vue/manage-individual": "./dist/vue/adyen-manage-individual.js",
|
|
77
|
-
"./experimental/vue/terms-of-service": "./dist/vue/adyen-terms-of-service.js",
|
|
78
|
-
"./experimental/vue/transfer-instrument": "./dist/vue/adyen-transfer-instrument.js",
|
|
79
|
-
"./experimental/preact/individual": "./dist/preact/adyen-individual.js",
|
|
80
|
-
"./experimental/preact/manage-individual": "./dist/preact/adyen-manage-individual.js",
|
|
81
|
-
"./experimental/preact/terms-of-service": "./dist/preact/adyen-terms-of-service.js",
|
|
82
|
-
"./experimental/preact/transfer-instrument": "./dist/preact/adyen-transfer-instrument.js"
|
|
66
|
+
}
|
|
83
67
|
},
|
|
84
68
|
"types": "./dist/types/index.d.ts",
|
|
85
69
|
"repository": {
|
|
@@ -151,8 +135,8 @@
|
|
|
151
135
|
"eslint-plugin-unicorn": "^61.0.2",
|
|
152
136
|
"i18next": "^25.5.3",
|
|
153
137
|
"i18next-resources-to-backend": "^1.2.1",
|
|
154
|
-
"monogon": "0.
|
|
155
|
-
"named-slots": "^0.
|
|
138
|
+
"monogon": "0.3.0",
|
|
139
|
+
"named-slots": "^0.4.1",
|
|
156
140
|
"onfido-sdk-ui": "14.38.0",
|
|
157
141
|
"preact": "^10.25.4",
|
|
158
142
|
"preact-custom-element": "^4.5.0",
|
|
@@ -182,7 +166,6 @@
|
|
|
182
166
|
"@testing-library/user-event": "^14.5.2",
|
|
183
167
|
"@typescript-eslint/eslint-plugin": "^8.16.0",
|
|
184
168
|
"@typescript-eslint/parser": "^8.16.0",
|
|
185
|
-
"@vitejs/plugin-vue": "^6.0.1",
|
|
186
169
|
"@vitest/browser": "^3.2.4",
|
|
187
170
|
"@vitest/coverage-v8": "^3.2.4",
|
|
188
171
|
"@vitest/ui": "^3.2.4",
|
|
@@ -229,21 +212,13 @@
|
|
|
229
212
|
"type-fest": "^4.39.1",
|
|
230
213
|
"typescript": "^5.8.3",
|
|
231
214
|
"typescript-eslint": "^8.16.0",
|
|
232
|
-
"vite": "^7.1.
|
|
215
|
+
"vite": "^7.1.11",
|
|
233
216
|
"vite-node": "^3.1.1",
|
|
234
217
|
"vite-plugin-shadow-styles": "^0.0.3",
|
|
235
218
|
"vite-plugin-svgr": "^4.3.0",
|
|
236
219
|
"vite-tsconfig-paths": "^4.2.3",
|
|
237
220
|
"vitest": "^3.2.4"
|
|
238
221
|
},
|
|
239
|
-
"peerDependencies": {
|
|
240
|
-
"vue": "^2.7.0 || ^3.0.0"
|
|
241
|
-
},
|
|
242
|
-
"peerDependenciesMeta": {
|
|
243
|
-
"vue": {
|
|
244
|
-
"optional": true
|
|
245
|
-
}
|
|
246
|
-
},
|
|
247
222
|
"overrides": {
|
|
248
223
|
"msw": {
|
|
249
224
|
"typescript": "^5"
|
|
@@ -1,217 +0,0 @@
|
|
|
1
|
-
;
|
|
2
|
-
{
|
|
3
|
-
try {
|
|
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] = "3a8b53c2-aecb-418c-8309-d55a92e385af", e._sentryDebugIdIdentifier = "sentry-dbid-3a8b53c2-aecb-418c-8309-d55a92e385af");
|
|
6
|
-
} catch (e) {
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
;
|
|
10
|
-
import { jsx, jsxs } from "preact/jsx-runtime";
|
|
11
|
-
import { useState, useEffect } from "preact/hooks";
|
|
12
|
-
import { a as useLegalEntity, R as ROOT_LE, L as Loader, aa as useGetTaskStatus, b as useI18nContext, Z as useTranslation, a0 as useAnalyticsContext, a6 as useToastContext, ac as useCapabilityProblems, bx as getOwnDecisionMakers, cR as getAvailableDecisionMakerRoleTypes, W as TaskTypes, cA as getAllowedDecisionMakerRoles, F as FormHeader, aW as ContextGuidance, aU as Trans, cP as DecisionMakerType, B as Alert, ab as CardGroup, _ as Button, aP as ActionBar } from "./StoreProvider-D6PzfyGo.js";
|
|
13
|
-
import { a as useUpdateLegalEntity } from "./useUpdateLegalEntity-Bs2tKEPC.js";
|
|
14
|
-
import { c as useDataMissingRemediations, D as DropinLayout, E as EntityGuidanceStatus, i as iconStatus, d as EntityAssociation } from "./OnboardingDropinComponent-CMrZ3LMb.js";
|
|
15
|
-
const DecisionMakers = (props) => {
|
|
16
|
-
const { data, isLoading } = useLegalEntity(ROOT_LE);
|
|
17
|
-
if (isLoading || !data) {
|
|
18
|
-
return /* @__PURE__ */ jsx(Loader, {});
|
|
19
|
-
}
|
|
20
|
-
return /* @__PURE__ */ jsx(DecisionMakersInner, { ...props, legalEntity: data });
|
|
21
|
-
};
|
|
22
|
-
const DecisionMakersInner = ({
|
|
23
|
-
legalEntity,
|
|
24
|
-
onNavigateToIndividual,
|
|
25
|
-
navigateBackToTaskList,
|
|
26
|
-
trustedEntityAssociations
|
|
27
|
-
}) => {
|
|
28
|
-
const getTaskStatus = useGetTaskStatus();
|
|
29
|
-
const { i18n } = useI18nContext();
|
|
30
|
-
const { t } = useTranslation();
|
|
31
|
-
const userEvents = useAnalyticsContext();
|
|
32
|
-
const { showToast } = useToastContext();
|
|
33
|
-
const [isRemoveDisabled, setIsRemoveDisabled] = useState(false);
|
|
34
|
-
const capabilityProblems = useCapabilityProblems() ?? {};
|
|
35
|
-
const updateLegalEntity = useUpdateLegalEntity();
|
|
36
|
-
const decisionMakers = getOwnDecisionMakers(legalEntity);
|
|
37
|
-
const registeredCountry = legalEntity.organization.registeredAddress.country;
|
|
38
|
-
const availableDecisionMakers = getAvailableDecisionMakerRoleTypes(registeredCountry);
|
|
39
|
-
const translationKeys = {
|
|
40
|
-
home: "saveAndGoToOverview"
|
|
41
|
-
};
|
|
42
|
-
const { remediationMessages } = useDataMissingRemediations({
|
|
43
|
-
legalEntityId: legalEntity.id,
|
|
44
|
-
problems: capabilityProblems
|
|
45
|
-
});
|
|
46
|
-
const mappedDecisionMakers = decisionMakers?.reduce(
|
|
47
|
-
(mappedDecisionMakers2, decisionMaker) => {
|
|
48
|
-
if (!decisionMaker.legalEntityId) return {};
|
|
49
|
-
const mappedDecisionMaker = mappedDecisionMakers2[decisionMaker.legalEntityId];
|
|
50
|
-
const decisionMakerType = decisionMaker.type;
|
|
51
|
-
mappedDecisionMakers2[decisionMaker.legalEntityId] = {
|
|
52
|
-
reference: decisionMaker.legalEntityId,
|
|
53
|
-
types: mappedDecisionMaker ? [...mappedDecisionMaker.types, decisionMakerType] : [decisionMakerType],
|
|
54
|
-
status: getTaskStatus(TaskTypes.DECISION_MAKER, decisionMaker.legalEntityId),
|
|
55
|
-
name: decisionMaker.name ?? "",
|
|
56
|
-
legalEntityType: decisionMaker.entityType,
|
|
57
|
-
problems: capabilityProblems?.LegalEntity?.[decisionMaker.legalEntityId]
|
|
58
|
-
};
|
|
59
|
-
return mappedDecisionMakers2;
|
|
60
|
-
},
|
|
61
|
-
{}
|
|
62
|
-
);
|
|
63
|
-
const uniqueDecisionMakers = mappedDecisionMakers ? Object.values(mappedDecisionMakers) : [];
|
|
64
|
-
const showWarning = Boolean(remediationMessages.DECISION_MAKER && uniqueDecisionMakers.length);
|
|
65
|
-
useEffect(() => {
|
|
66
|
-
userEvents.addTaskEvent("Landed on page", {
|
|
67
|
-
actionType: "start"
|
|
68
|
-
});
|
|
69
|
-
}, [userEvents]);
|
|
70
|
-
useEffect(() => {
|
|
71
|
-
if (showWarning) {
|
|
72
|
-
userEvents.addTaskEvent("Encountered error", {
|
|
73
|
-
task: TaskTypes.DECISION_MAKER_OVERVIEW,
|
|
74
|
-
actionType: "alert",
|
|
75
|
-
label: "missingDecisionMaker"
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
}, [remediationMessages.DECISION_MAKER, showWarning, userEvents]);
|
|
79
|
-
const uniqueDecisionMakersPerType = (roleType) => uniqueDecisionMakers.filter(({ types }) => types.includes(roleType)).length;
|
|
80
|
-
const allowedDecisionMakerTypes = getAllowedDecisionMakerRoles(
|
|
81
|
-
legalEntity,
|
|
82
|
-
TaskTypes.DECISION_MAKER
|
|
83
|
-
);
|
|
84
|
-
const haveMaxDecisionMakers = allowedDecisionMakerTypes.length === 0;
|
|
85
|
-
const getDecisionMakerTrackingParams = (decisionMaker) => ({
|
|
86
|
-
task: TaskTypes.DECISION_MAKER_OVERVIEW,
|
|
87
|
-
associatedLegalEntityId: decisionMaker.reference,
|
|
88
|
-
associatedLegalEntityType: decisionMaker.legalEntityType,
|
|
89
|
-
roles: decisionMaker.types
|
|
90
|
-
});
|
|
91
|
-
const addDecisionMakerOnClick = (e) => {
|
|
92
|
-
e.stopPropagation();
|
|
93
|
-
onNavigateToIndividual();
|
|
94
|
-
};
|
|
95
|
-
const editDecisionMaker = (decisionMaker) => {
|
|
96
|
-
onNavigateToIndividual(decisionMaker.reference);
|
|
97
|
-
userEvents.addTaskEvent("Clicked button", {
|
|
98
|
-
...getDecisionMakerTrackingParams(decisionMaker),
|
|
99
|
-
actionType: "edit"
|
|
100
|
-
});
|
|
101
|
-
};
|
|
102
|
-
const deleteDecisionMaker = async (decisionMaker) => {
|
|
103
|
-
try {
|
|
104
|
-
const updatedEntityAssociations = {
|
|
105
|
-
entityAssociations: (legalEntity.entityAssociations ?? []).filter(
|
|
106
|
-
(entityAssociation) => entityAssociation.legalEntityId !== decisionMaker.reference
|
|
107
|
-
)
|
|
108
|
-
};
|
|
109
|
-
await updateLegalEntity.mutateAsync({ ...updatedEntityAssociations, id: legalEntity.id });
|
|
110
|
-
const remainingDecisionMakers = decisionMakers.filter(
|
|
111
|
-
(curr) => curr.legalEntityId !== decisionMaker.reference
|
|
112
|
-
);
|
|
113
|
-
userEvents.addTaskEvent("Clicked button", {
|
|
114
|
-
...getDecisionMakerTrackingParams(decisionMaker),
|
|
115
|
-
actionType: "remove",
|
|
116
|
-
remainingDecisionMakers
|
|
117
|
-
});
|
|
118
|
-
showToast({ variant: "success", label: i18n.get("successFullyRemovedDecisionMaker") });
|
|
119
|
-
} catch {
|
|
120
|
-
showToast({ variant: "error", label: i18n.get("failedToRemoveDecisionMaker") });
|
|
121
|
-
}
|
|
122
|
-
};
|
|
123
|
-
return /* @__PURE__ */ jsx(
|
|
124
|
-
DropinLayout,
|
|
125
|
-
{
|
|
126
|
-
content: /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-decision-makers adyen-kyc-u-width-full", children: [
|
|
127
|
-
/* @__PURE__ */ jsx(
|
|
128
|
-
FormHeader,
|
|
129
|
-
{
|
|
130
|
-
heading: i18n.get("decisionMaker"),
|
|
131
|
-
description: i18n.get("decisionMakerDescription")
|
|
132
|
-
}
|
|
133
|
-
),
|
|
134
|
-
/* @__PURE__ */ jsx("div", { className: "adyen-kyc-decision-makers__container", children: availableDecisionMakers.map(({ roleType, min }) => /* @__PURE__ */ jsx(
|
|
135
|
-
EntityGuidanceStatus,
|
|
136
|
-
{
|
|
137
|
-
country: registeredCountry,
|
|
138
|
-
currentTask: TaskTypes.DECISION_MAKER_OVERVIEW,
|
|
139
|
-
entityLabel: roleType,
|
|
140
|
-
status: iconStatus(uniqueDecisionMakersPerType(roleType), min)
|
|
141
|
-
},
|
|
142
|
-
roleType
|
|
143
|
-
)) }),
|
|
144
|
-
/* @__PURE__ */ jsx(
|
|
145
|
-
ContextGuidance,
|
|
146
|
-
{
|
|
147
|
-
title: i18n.get("whatIsTheDifferenceBetweenTheseRoles"),
|
|
148
|
-
content: /* @__PURE__ */ jsx("ul", { className: "adyen-kyc-guidance-list", children: availableDecisionMakers.map(({ roleType }) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
|
|
149
|
-
Trans,
|
|
150
|
-
{
|
|
151
|
-
t,
|
|
152
|
-
i18nKey: ($) => $[`${roleType === DecisionMakerType.CONTROLLING_PERSON ? "controllingPerson" : roleType === DecisionMakerType.OWNER ? "owner" : roleType}GuideDescription`]
|
|
153
|
-
}
|
|
154
|
-
) }, roleType)) }),
|
|
155
|
-
titleId: "whatIsTheDifferenceBetweenTheseRoles",
|
|
156
|
-
contentId: "differenceBetweenAnOwnerControllingPersonAndSignatory"
|
|
157
|
-
}
|
|
158
|
-
),
|
|
159
|
-
showWarning && /* @__PURE__ */ jsx(
|
|
160
|
-
Alert,
|
|
161
|
-
{
|
|
162
|
-
className: "adyen-kyc-decision-makers__warning",
|
|
163
|
-
title: remediationMessages.DECISION_MAKER,
|
|
164
|
-
variant: "warning"
|
|
165
|
-
}
|
|
166
|
-
),
|
|
167
|
-
uniqueDecisionMakers?.length > 0 ? /* @__PURE__ */ jsx(CardGroup, { children: uniqueDecisionMakers.map((decisionMaker) => /* @__PURE__ */ jsx(
|
|
168
|
-
EntityAssociation,
|
|
169
|
-
{
|
|
170
|
-
types: decisionMaker.types,
|
|
171
|
-
name: decisionMaker.name,
|
|
172
|
-
status: decisionMaker.status,
|
|
173
|
-
onNavigateToEntity: () => editDecisionMaker(decisionMaker),
|
|
174
|
-
problems: decisionMaker?.problems,
|
|
175
|
-
removeEntity: () => {
|
|
176
|
-
deleteDecisionMaker(decisionMaker);
|
|
177
|
-
},
|
|
178
|
-
isRemoveDisabled: isRemoveDisabled || (trustedEntityAssociations ?? []).some(
|
|
179
|
-
(ea) => ea.reference === decisionMaker.reference
|
|
180
|
-
),
|
|
181
|
-
handleIsRemoveDisabled: setIsRemoveDisabled
|
|
182
|
-
},
|
|
183
|
-
decisionMaker.reference
|
|
184
|
-
)) }) : null,
|
|
185
|
-
/* @__PURE__ */ jsx("div", { className: "adyen-kyc-decision-makers__actions", children: /* @__PURE__ */ jsx(
|
|
186
|
-
Button,
|
|
187
|
-
{
|
|
188
|
-
variant: "secondary",
|
|
189
|
-
icon: "plus",
|
|
190
|
-
onClick: addDecisionMakerOnClick,
|
|
191
|
-
disabled: haveMaxDecisionMakers,
|
|
192
|
-
fullWidth: true,
|
|
193
|
-
children: i18n.get("addDecisionMaker")
|
|
194
|
-
}
|
|
195
|
-
) }),
|
|
196
|
-
/* @__PURE__ */ jsx(
|
|
197
|
-
ActionBar,
|
|
198
|
-
{
|
|
199
|
-
onHome: () => {
|
|
200
|
-
userEvents.addTaskEvent("Clicked button", {
|
|
201
|
-
task: TaskTypes.DECISION_MAKER_OVERVIEW,
|
|
202
|
-
actionType: "back",
|
|
203
|
-
label: translationKeys.home,
|
|
204
|
-
noOfDecisionMakers: decisionMakers.length
|
|
205
|
-
});
|
|
206
|
-
navigateBackToTaskList();
|
|
207
|
-
},
|
|
208
|
-
homeButtonLabel: i18n.get(translationKeys.home)
|
|
209
|
-
}
|
|
210
|
-
)
|
|
211
|
-
] })
|
|
212
|
-
}
|
|
213
|
-
);
|
|
214
|
-
};
|
|
215
|
-
export {
|
|
216
|
-
DecisionMakers
|
|
217
|
-
};
|
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
;
|
|
2
|
-
{
|
|
3
|
-
try {
|
|
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] = "e804b830-b99d-483d-80f1-849b23942ba0", e._sentryDebugIdIdentifier = "sentry-dbid-e804b830-b99d-483d-80f1-849b23942ba0");
|
|
6
|
-
} catch (e) {
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
;
|
|
10
|
-
import { jsxs, jsx } from "preact/jsx-runtime";
|
|
11
|
-
import cx from "classnames";
|
|
12
|
-
import { Z as useTranslation, Y as TaskStatus, C as Typography } from "./StoreProvider-D6PzfyGo.js";
|
|
13
|
-
const inTaskStatus = "adyen-kyc-in-task-status";
|
|
14
|
-
const inTaskStatusIndicator = "adyen-kyc-in-task-status-indicator";
|
|
15
|
-
const inTaskStatusIndicatorSuccess = "adyen-kyc-in-task-status-indicator-success";
|
|
16
|
-
const inTaskStatusIndicatorError = "adyen-kyc-in-task-status-indicator-error";
|
|
17
|
-
const inTaskStatusIndicatorWarning = "adyen-kyc-in-task-status-indicator-warning";
|
|
18
|
-
const inTaskStatusLabel = "adyen-kyc-in-task-status-label";
|
|
19
|
-
const styles$2 = {
|
|
20
|
-
inTaskStatus,
|
|
21
|
-
inTaskStatusIndicator,
|
|
22
|
-
inTaskStatusIndicatorSuccess,
|
|
23
|
-
inTaskStatusIndicatorError,
|
|
24
|
-
inTaskStatusIndicatorWarning,
|
|
25
|
-
inTaskStatusLabel
|
|
26
|
-
};
|
|
27
|
-
const getIndicatorLabelAndClassnames = ({
|
|
28
|
-
taskStatus
|
|
29
|
-
}) => {
|
|
30
|
-
if (taskStatus === TaskStatus.FINISHED) {
|
|
31
|
-
return {
|
|
32
|
-
indicatorLabel: "taskComplete",
|
|
33
|
-
indicatorClassname: styles$2.inTaskStatusIndicatorSuccess
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
if (taskStatus === TaskStatus.PROCESSING) {
|
|
37
|
-
return {
|
|
38
|
-
indicatorLabel: "taskInProgress",
|
|
39
|
-
indicatorClassname: styles$2.inTaskStatusIndicatorWarning
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
if (taskStatus === TaskStatus.ERROR) {
|
|
43
|
-
return {
|
|
44
|
-
indicatorLabel: "taskHasErrors",
|
|
45
|
-
indicatorClassname: styles$2.inTaskStatusIndicatorError
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
const TaskStatusIndicator = ({ taskStatus }) => {
|
|
50
|
-
const { t } = useTranslation();
|
|
51
|
-
const indicator = getIndicatorLabelAndClassnames({ taskStatus });
|
|
52
|
-
if (!indicator) {
|
|
53
|
-
return null;
|
|
54
|
-
}
|
|
55
|
-
const { indicatorLabel, indicatorClassname } = indicator;
|
|
56
|
-
return /* @__PURE__ */ jsxs("div", { className: styles$2.inTaskStatus, children: [
|
|
57
|
-
/* @__PURE__ */ jsx(
|
|
58
|
-
"div",
|
|
59
|
-
{
|
|
60
|
-
"data-testid": "task-status-indicator",
|
|
61
|
-
className: cx(styles$2.inTaskStatusIndicator, indicatorClassname)
|
|
62
|
-
}
|
|
63
|
-
),
|
|
64
|
-
/* @__PURE__ */ jsx("div", { className: styles$2.inTaskStatusLabel, children: t(($) => $[indicatorLabel]) })
|
|
65
|
-
] });
|
|
66
|
-
};
|
|
67
|
-
const stackLayout = "adyen-kyc-stack-layout";
|
|
68
|
-
const stackLayoutGapXs = "adyen-kyc-stack-layout-gap-xs";
|
|
69
|
-
const stackLayoutGapS = "adyen-kyc-stack-layout-gap-s";
|
|
70
|
-
const stackLayoutGapM = "adyen-kyc-stack-layout-gap-m";
|
|
71
|
-
const stackLayoutGapL = "adyen-kyc-stack-layout-gap-l";
|
|
72
|
-
const stackLayoutGapXl = "adyen-kyc-stack-layout-gap-xl";
|
|
73
|
-
const stackLayoutHorizontal = "adyen-kyc-stack-layout-horizontal";
|
|
74
|
-
const styles$1 = {
|
|
75
|
-
stackLayout,
|
|
76
|
-
stackLayoutGapXs,
|
|
77
|
-
stackLayoutGapS,
|
|
78
|
-
stackLayoutGapM,
|
|
79
|
-
stackLayoutGapL,
|
|
80
|
-
stackLayoutGapXl,
|
|
81
|
-
stackLayoutHorizontal
|
|
82
|
-
};
|
|
83
|
-
const StackLayout = ({ children, gap = "medium", horizontal = false }) => {
|
|
84
|
-
const gapStyles = {
|
|
85
|
-
xSmall: styles$1.stackLayoutGapXs,
|
|
86
|
-
small: styles$1.stackLayoutGapS,
|
|
87
|
-
medium: styles$1.stackLayoutGapM,
|
|
88
|
-
large: styles$1.stackLayoutGapL,
|
|
89
|
-
xLarge: styles$1.stackLayoutGapXl,
|
|
90
|
-
none: null
|
|
91
|
-
};
|
|
92
|
-
const rootClassname = cx(styles$1.stackLayout, gapStyles[gap], {
|
|
93
|
-
[styles$1.stackLayoutHorizontal]: horizontal
|
|
94
|
-
});
|
|
95
|
-
return /* @__PURE__ */ jsx("div", { className: rootClassname, children });
|
|
96
|
-
};
|
|
97
|
-
const landingLayoutImage = "adyen-kyc-landing-layout-image";
|
|
98
|
-
const landingLayoutActions = "adyen-kyc-landing-layout-actions";
|
|
99
|
-
const landingLayoutDisclaimer = "adyen-kyc-landing-layout-disclaimer";
|
|
100
|
-
const landingLayoutCenter = "adyen-kyc-landing-layout-center";
|
|
101
|
-
const styles = {
|
|
102
|
-
landingLayoutImage,
|
|
103
|
-
landingLayoutActions,
|
|
104
|
-
landingLayoutDisclaimer,
|
|
105
|
-
landingLayoutCenter
|
|
106
|
-
};
|
|
107
|
-
const LandingLayout = ({
|
|
108
|
-
actions,
|
|
109
|
-
description,
|
|
110
|
-
disclaimer,
|
|
111
|
-
helpAction,
|
|
112
|
-
media,
|
|
113
|
-
title
|
|
114
|
-
}) => {
|
|
115
|
-
return /* @__PURE__ */ jsxs(StackLayout, { gap: "large", children: [
|
|
116
|
-
media && /* @__PURE__ */ jsx("div", { role: "region", className: styles.landingLayoutImage, children: media }),
|
|
117
|
-
/* @__PURE__ */ jsxs(StackLayout, { gap: "small", children: [
|
|
118
|
-
/* @__PURE__ */ jsx(Typography, { el: "h2", className: styles.landingLayoutCenter, variant: "title-l", children: title }),
|
|
119
|
-
description && /* @__PURE__ */ jsx(Typography, { className: styles.landingLayoutCenter, variant: "body", color: "primary", children: description }),
|
|
120
|
-
helpAction
|
|
121
|
-
] }),
|
|
122
|
-
/* @__PURE__ */ jsx("div", { className: styles.landingLayoutActions, children: /* @__PURE__ */ jsxs(StackLayout, { gap: "small", children: [
|
|
123
|
-
actions,
|
|
124
|
-
disclaimer && /* @__PURE__ */ jsx(
|
|
125
|
-
Typography,
|
|
126
|
-
{
|
|
127
|
-
variant: "caption",
|
|
128
|
-
color: "tertiary",
|
|
129
|
-
className: styles.landingLayoutDisclaimer,
|
|
130
|
-
children: disclaimer
|
|
131
|
-
}
|
|
132
|
-
)
|
|
133
|
-
] }) })
|
|
134
|
-
] });
|
|
135
|
-
};
|
|
136
|
-
export {
|
|
137
|
-
LandingLayout as L,
|
|
138
|
-
TaskStatusIndicator as T
|
|
139
|
-
};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
;
|
|
2
|
-
{
|
|
3
|
-
try {
|
|
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] = "ed81a5d0-d1b8-41f5-ab21-09de2b7dbb38", e._sentryDebugIdIdentifier = "sentry-dbid-ed81a5d0-d1b8-41f5-ab21-09de2b7dbb38");
|
|
6
|
-
} catch (e) {
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
;
|
|
10
|
-
import { jsx } from "preact/jsx-runtime";
|
|
11
|
-
import { u as useSalesChannelsSettings, a as usePciStatus } from "./useSalesChannelsSettings-CuQ0ULoa.js";
|
|
12
|
-
import { b as useI18nContext, p as useApiContext } from "./StoreProvider-D6PzfyGo.js";
|
|
13
|
-
import { E as EmbeddedStatus } from "./EmbeddedStatus-90fvG4vd.js";
|
|
14
|
-
function ManagePCIComponent({ legalEntityId, onClick }) {
|
|
15
|
-
const { i18n } = useI18nContext();
|
|
16
|
-
const title = i18n.get("pciDssQuestionnaire");
|
|
17
|
-
const additionalSalesChannels = useSalesChannelsSettings();
|
|
18
|
-
const { data, isLoading } = usePciStatus({ additionalSalesChannels });
|
|
19
|
-
const { rootLegalEntityId: currentLegalEntityId } = useApiContext();
|
|
20
|
-
currentLegalEntityId.value = legalEntityId;
|
|
21
|
-
return data?.signingRequired ? /* @__PURE__ */ jsx(
|
|
22
|
-
EmbeddedStatus,
|
|
23
|
-
{
|
|
24
|
-
onClick,
|
|
25
|
-
actionIndicator: { labelKey: "sign" },
|
|
26
|
-
title,
|
|
27
|
-
loading: isLoading
|
|
28
|
-
}
|
|
29
|
-
) : /* @__PURE__ */ jsx(EmbeddedStatus, { onClick, title, tagLabel: "complete", loading: isLoading });
|
|
30
|
-
}
|
|
31
|
-
export {
|
|
32
|
-
ManagePCIComponent as M
|
|
33
|
-
};
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
;
|
|
2
|
-
{
|
|
3
|
-
try {
|
|
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] = "87a58ed6-5cc9-4601-8b56-6e24a9ec3dd3", e._sentryDebugIdIdentifier = "sentry-dbid-87a58ed6-5cc9-4601-8b56-6e24a9ec3dd3");
|
|
6
|
-
} catch (e) {
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
;
|
|
10
|
-
import { jsx } from "preact/jsx-runtime";
|
|
11
|
-
import { P as useAccountHolder, a as useLegalEntity, R as ROOT_LE, ac as useCapabilityProblems, L as Loader, G as isPartOfTrustFromLegalEntity, bk as getProblemsForEntity, U as EntityType, g as getLegalEntityCountry, W as TaskTypes } from "./StoreProvider-D6PzfyGo.js";
|
|
12
|
-
import { B as BusinessDetailsDropin } from "./BusinessDetailsDropin-DLYZERBF.js";
|
|
13
|
-
const RootBusinessDetailsPage = ({
|
|
14
|
-
isTargetLegalEntityType = false,
|
|
15
|
-
onSubmit,
|
|
16
|
-
handleHomeClick
|
|
17
|
-
}) => {
|
|
18
|
-
const { accountHolder } = useAccountHolder();
|
|
19
|
-
const { data: rootLe } = useLegalEntity(ROOT_LE);
|
|
20
|
-
const capabilityProblems = useCapabilityProblems();
|
|
21
|
-
if (!rootLe) {
|
|
22
|
-
return /* @__PURE__ */ jsx(Loader, {});
|
|
23
|
-
}
|
|
24
|
-
const hasTrust = accountHolder === "aTrust" || isPartOfTrustFromLegalEntity(rootLe);
|
|
25
|
-
const problems = capabilityProblems ? getProblemsForEntity(capabilityProblems, EntityType.LEGAL_ENTITY, rootLe.id) : void 0;
|
|
26
|
-
return /* @__PURE__ */ jsx(
|
|
27
|
-
BusinessDetailsDropin,
|
|
28
|
-
{
|
|
29
|
-
taskType: TaskTypes.BUSINESS_DETAILS,
|
|
30
|
-
taskName: hasTrust ? "businessTrusteeDetails" : "businessDetails",
|
|
31
|
-
legalEntityResponse: rootLe,
|
|
32
|
-
problems,
|
|
33
|
-
country: getLegalEntityCountry(rootLe),
|
|
34
|
-
isTargetLegalEntityType,
|
|
35
|
-
onSubmit,
|
|
36
|
-
handleHomeClick
|
|
37
|
-
}
|
|
38
|
-
);
|
|
39
|
-
};
|
|
40
|
-
export {
|
|
41
|
-
RootBusinessDetailsPage
|
|
42
|
-
};
|