@adyen/kyc-components 4.26.1 → 4.27.0-beta.1
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/{AcceptTermsOfServiceWorkflow-DXSq3XzA.js → AcceptTermsOfServiceWorkflow-CO6qEeAD.js} +4 -4
- package/dist/{Accordion-BAdwrgCR.js → Accordion-CTQfC17W.js} +1 -1
- package/dist/{AccountSetupRejected-BLEWjmc8.js → AccountSetupRejected-CFvogFuo.js} +2 -2
- package/dist/{AdaptiveWorkflow-DwdMyu1A.js → AdaptiveWorkflow-CTKpyw02.js} +22 -22
- package/dist/{AdaptiveWorkflowComponent-DPv1YHos.js → AdaptiveWorkflowComponent-CvTwsWi3.js} +5 -5
- package/dist/{AddressFields-B0QVYM-e.js → AddressFields-vl2AeVHz.js} +33 -72
- package/dist/{Avatar-C2zeqSSB.js → Avatar-yJfk9A6l.js} +1 -1
- package/dist/{BusinessFinancingDropin-evYHYnXE.js → BusinessFinancingDropin-tSylhmJS.js} +123 -55
- package/dist/{BusinessFinancingPage-C_agz96E.js → BusinessFinancingPage-9AcfHWyP.js} +6 -6
- package/dist/{BusinessRegistrationNumberField-DeYcZlQS.js → BusinessRegistrationNumberField-B6w6LvSZ.js} +6 -6
- package/dist/{BusinessRegistrationNumberFieldGroup-D9D0BPdp.js → BusinessRegistrationNumberFieldGroup-CICYxSyn.js} +6 -6
- package/dist/{BusinessTypeSelectionPage-DmgeZsex.js → BusinessTypeSelectionPage-lLt_PL1z.js} +13 -13
- package/dist/{Button-Dwr6jvJZ.js → Button-BYafPrZH.js} +1 -1
- package/dist/{Checkbox-BLyyDG9b.js → Checkbox-DXF-eRBj.js} +8 -8
- package/dist/{ComponentGroup-BLvYZoxp.js → ComponentGroup-DNspJrHk.js} +3 -3
- package/dist/{ConstitutionalDocument-B3o3NLMO.js → ConstitutionalDocument-Dg3dmkpH.js} +19 -26
- package/dist/{ContactDetails-7zYbKJtH.js → ContactDetails-5W0oQVYG.js} +5 -5
- package/dist/{ContextGuidance-C2AXK9Ep.js → ContextGuidance-BrbPzdaI.js} +3 -3
- package/dist/{CountryField-Bl8gp3wu.js → CountryField-DlMYQYfd.js} +4 -4
- package/dist/{Currency-Be6zg8XM.js → Currency-BCJuV60i.js} +16 -10
- package/dist/{CustomerSupport-lUVh_sWN.js → CustomerSupport-Bdg11WcM.js} +29 -16
- package/dist/{DateField-CO2CodgD.js → DateField-DfnBDOVl.js} +4 -4
- package/dist/{DebugModal-l52lDfKB.js → DebugModal-D1RMhAfR.js} +228 -10
- package/dist/{DecisionMakerDetails-9y6Fm96G.js → DecisionMakerDetails-Cv_NdD0z.js} +79 -174
- package/dist/{DecisionMakerDetailsPage-9kRW2Zh8.js → DecisionMakerDetailsPage-dTsh8vkz.js} +9 -9
- package/dist/{DecisionMakers-CYjKftby.js → DecisionMakers-DAhjhaMS.js} +17 -18
- package/dist/{Dropzone-QRtCFpVT.js → Dropzone-rk15b_Tb.js} +7 -7
- package/dist/{EmailField-D-Ndm0JS.js → EmailField-BOX8HtRe.js} +4 -4
- package/dist/{EmbeddedStatus-4YjyzkcD.js → EmbeddedStatus-mdQsQfof.js} +2 -2
- package/dist/{EndStateLayout-C5Pqler-.js → EndStateLayout-B-M90Rnh.js} +2 -2
- package/dist/{EntityAssociation-CS8XqKk-.js → EntityAssociation-B5Zq7_F6.js} +6 -6
- package/dist/{ErrorPanel-DaipnVsu.js → ErrorPanel-BLvDkiVa.js} +10 -17
- package/dist/{GlobalEntryModal-COOjZvh7.js → GlobalEntryModal-DZsHeRPL.js} +439 -298
- package/dist/{GlobalEntryPage-C9SGXXJk.js → GlobalEntryPage-RyQIoaWL.js} +7 -8
- package/dist/{Icon-_YUEZg1p.js → Icon-jVvV1zXc.js} +1 -1
- package/dist/{IdentityNumber-D_cOLEsP.js → IdentityNumber-C8CMJtgD.js} +5 -5
- package/dist/{IdentityNumberFieldGroup-CoLugvku.js → IdentityNumberFieldGroup-Cj5U1Onz.js} +2 -2
- package/dist/{IdentityScreeningWorkflow-B_nLC0Ru.js → IdentityScreeningWorkflow-BCDn25Or.js} +12 -13
- package/dist/{IndividualDropin-CRKk-szG.js → IndividualDropin-B6dY0iN3.js} +149 -231
- package/dist/{IndustryCodeFieldGroup-0vRXN8GP.js → IndustryCodeFieldGroup-B649faYk.js} +5 -5
- package/dist/{InputDate-Cxk_f6Us.js → InputDate-3rYzWzXX.js} +8 -4
- package/dist/{InputText-CObXfKKh.js → InputText-OCbzlaaN.js} +2 -2
- package/dist/{Introduction-CmhxGGzY.js → Introduction-Duow8A7U.js} +6 -6
- package/dist/{InvitedDecisionMakerComponent-BkHurym6.js → InvitedDecisionMakerComponent-BVQ37JLZ.js} +13 -14
- package/dist/{JpAddressFields-CuvfbjX6.js → JpAddressFields-Bh7Bvw__.js} +9 -10
- package/dist/{LegalCompanyNameField-CkINYTFB.js → LegalCompanyNameField-Yj5Fa3-I.js} +5 -5
- package/dist/{LegalRepresentativeDetailsPage-mlE80SrL.js → LegalRepresentativeDetailsPage-C10ojT9w.js} +4 -4
- package/dist/{Link-D0Yqc2r0.js → Link-DwPkGikd.js} +1 -1
- package/dist/{ListItem-DY-qq1lS.js → ListItem-n927geYb.js} +2 -2
- package/dist/{Modal-DnDjAzqZ.js → Modal-jjSjdW5W.js} +3 -3
- package/dist/{Name-Dhj905G8.js → Name-D-A5XBTb.js} +4 -4
- package/dist/{NumberField-BlDjTB0U.js → NumberField-D291GWYR.js} +4 -4
- package/dist/{PatriotActDisclosure-jNLKR-RM.js → PatriotActDisclosure-DMjKJEKH.js} +10 -10
- package/dist/{PayoutDetailsDropin-DO1CtLRd.js → PayoutDetailsDropin-B5MNHR3S.js} +41 -43
- package/dist/{PayoutDetailsPage-C-W1PCRf.js → PayoutDetailsPage-DMAxzS2V.js} +5 -5
- package/dist/{Review-BLcoVl6O.js → Review-BDontauk.js} +6 -6
- package/dist/{RootBusinessDetailsPage-DNZi9Zgj.js → RootBusinessDetailsPage-INMIQvN4.js} +4 -4
- package/dist/{RootBusinessLinesPage-D2IPigk5.js → RootBusinessLinesPage-BiIb7UVU.js} +22 -23
- package/dist/{RootIndividualDetailsPage-Cfa9R28c.js → RootIndividualDetailsPage-BS5BgowF.js} +6 -6
- package/dist/{Select-C0Pp8Jeb.js → Select-BRK2a2V5.js} +92 -92
- package/dist/{SignPCIComponent-I3asF5GE.js → SignPCIComponent-B5JmN8BT.js} +14 -14
- package/dist/{SingpassSelection-C4Ptdwzb.js → SingpassSelection-B84oJmvG.js} +5 -5
- package/dist/{SoleProprietorshipPage-CiI2VKw_.js → SoleProprietorshipPage-C-jxJkmQ.js} +4 -4
- package/dist/{SourceOfFundsPage-DrJqgPMf.js → SourceOfFundsPage-C27vODL5.js} +24 -24
- package/dist/{SourceOfFundsWorkflow-tE06S4__.js → SourceOfFundsWorkflow-DOqaH_wk.js} +4 -4
- package/dist/StateField-CRLgYS1X.js +364 -0
- package/dist/{Step-CLZTcCEQ.js → Step-BTVKO9gW.js} +5 -5
- package/dist/Summary-C9Nr0dot.js +21 -0
- package/dist/{SummarySection-v-mSwYL0.js → SummarySection-D67yguze.js} +5 -19
- package/dist/{Task-CUr-Zb5N.js → Task-BaQ6wqz5.js} +7 -7
- package/dist/{TaskGroup-BGUboNOL.js → TaskGroup-C7lBWbYp.js} +3 -3
- package/dist/{TaskListItem-DMkmZn3B.js → TaskListItem-Cu3fSvOJ.js} +10 -10
- package/dist/{TaskStepperContextProvider-9wlnwii7.js → TaskStepperContextProvider-DiMf4UV6.js} +1 -1
- package/dist/{TaskVerificationStatus-zoxTZ2mt.js → TaskVerificationStatus-C1CllzL1.js} +17 -17
- package/dist/{TaxInformationFieldGroup-CraKcKMs.js → TaxInformationFieldGroup-vQoQHydJ.js} +7 -7
- package/dist/{TaxReportingDropin-B-ywMdBt.js → TaxReportingDropin-CTnL6VMm.js} +13 -15
- package/dist/{TaxReportingWorkflow-BmUdyOKl.js → TaxReportingWorkflow-5_eG0AcD.js} +4 -4
- package/dist/{TermsOfServiceManagement-D1Yv4Z5p.js → TermsOfServiceManagement-xL-xisqE.js} +46 -43
- package/dist/{TextArea-CyFcFhHo.js → TextArea-CcaUENX2.js} +4 -4
- package/dist/{TextField-D61xVlV2.js → TextField-fhhAQSKg.js} +5 -5
- package/dist/{TrustDetailsPage-D2FS-As0.js → TrustDetailsPage-DcNS-XWz.js} +61 -54
- package/dist/{TrustMemberCompanyPage-DDcSOUi2.js → TrustMemberCompanyPage-xtxgO6d4.js} +5 -5
- package/dist/{TrustMemberIndividualPage-CJBz1p3R.js → TrustMemberIndividualPage-BMWAg_eS.js} +4 -4
- package/dist/{TrustMemberRoleAndTypePage-OeN1HW_E.js → TrustMemberRoleAndTypePage-DR3pLJf9.js} +43 -36
- package/dist/{TrustMembersOverview-DkrEZL6_.js → TrustMembersOverview-D-jTaw37.js} +13 -13
- package/dist/{UboTaskItem-Dc6ExVuW.js → UboTaskItem-DsoetWEU.js} +7 -7
- package/dist/{UnincorporatedPartnershipIndividualPage-D0ZYvh8k.js → UnincorporatedPartnershipIndividualPage-3sSr2dCv.js} +4 -4
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-BtapkuO6.js → UnincorporatedPartnershipMemberCompanyPage-s6NiptRo.js} +5 -5
- package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-CbdYYTQT.js → UnincorporatedPartnershipMemberRoleAndTypePage-Cr6UEryR.js} +9 -9
- package/dist/{UnincorporatedPartnershipMembersOverview-Cs1DHVNP.js → UnincorporatedPartnershipMembersOverview-CbwWOxQs.js} +6 -6
- package/dist/{VerificationErrorAlert-D9sBE-Tj.js → VerificationErrorAlert-Bm7-u85-.js} +3 -3
- package/dist/{WebsiteField-BCoO-m_7.js → WebsiteField-DTlbxzaa.js} +5 -5
- package/dist/{Workflow-driWy_eJ.js → Workflow-DT43cTzE.js} +6 -6
- package/dist/{accountHolderUtils-BAbeRIOy.js → accountHolderUtils-D0E9se-W.js} +1 -1
- package/dist/adyen-business-financing.js +7 -7
- package/dist/adyen-individual-configuration.js +6 -6
- package/dist/adyen-individual-status.js +5 -5
- package/dist/adyen-invited-decision-maker.js +3 -3
- package/dist/adyen-onboarding.js +30 -30
- package/dist/adyen-terms-of-service-management.js +3 -3
- package/dist/adyen-terms-of-service-status.js +3 -3
- package/dist/adyen-transfer-instrument-configuration.js +5 -5
- package/dist/adyen-transfer-instrument-management.js +13 -13
- package/dist/adyen-verification-status.js +3 -3
- package/dist/{bafinUtils-COyCy9xG.js → bafinUtils-CvQzDDfD.js} +519 -531
- package/dist/{constants-fGRziJEH.js → constants-BOu8Hnt9.js} +6 -6
- package/dist/{dropinUtils-cIGIoJvF.js → dropinUtils-DfyQ8xFE.js} +165 -364
- package/dist/en-US-8KLaHQaT.js +7 -0
- package/dist/{en-US-Cz4JoU20.js → en-US-BMMx67Za.js} +16 -2
- package/dist/{en-US-nYL_eSJ-.js → en-US-BfRvYdHX.js} +8 -2
- package/dist/en-US-DGdFfmUC.js +136 -0
- package/dist/{en-US.instructions-BVNIyLRs.js → en-US.instructions-myDXMUbk.js} +2 -1
- package/dist/{error-B9rHWK9Q.js → error-CUHwmdwD.js} +2 -2
- package/dist/formatDataForSummary-BMFPIUER.js +498 -0
- package/dist/{formatValidationError-BJqU7LCU.js → formatValidationError-B5GNhAeh.js} +2 -2
- package/dist/{getDefaultRegistrationNumberType-BcV1GDOs.js → getDefaultRegistrationNumberType-CyaKz1Fj.js} +4 -4
- package/dist/{getProblemsForEntity-mdb3Bfpj.js → getProblemsForEntity-FHk416BA.js} +1 -1
- package/dist/{getTrustedDecisionMakers-D89oYOLp.js → getTrustedDecisionMakers-DByctgob.js} +1 -1
- package/dist/{getValidationError-dcpAlebZ.js → getValidationError-B4YX_EgR.js} +2 -2
- package/dist/{legalArrangementUtils-Crgt_L7h.js → legalArrangementUtils-CHlmmcB8.js} +11 -2
- package/dist/{mapAddressLocalizationToJpAddressSchema-B9pzYF3B.js → mapAddressLocalizationToJpAddressSchema-BrQMDBLX.js} +2 -2
- package/dist/{mapExistingFile-BXfeQxev.js → mapExistingFile-CqbTLZ6i.js} +1 -1
- package/dist/mapJpAddressSchemaToAddressLocalizations-BL4eAlDH.js +19 -0
- package/dist/{mapTransferInstrumentToPayoutAccount-Ba_L9EEB.js → mapTransferInstrumentToPayoutAccount-DhwdciyT.js} +2 -2
- package/dist/{processCapabilities-FL4-KAbd.js → processCapabilities-B75YIdXZ.js} +11 -4
- package/dist/{processValidationErrors-DWdgik5u.js → processValidationErrors-Dtt1FnM2.js} +4 -4
- package/dist/{resolveEnvironment-BnKqnU98.js → resolveEnvironment-CpWP_8og.js} +53 -16
- package/dist/roleMetadata-BW4HRw1l.js +57 -0
- package/dist/style.css +218 -230
- package/dist/styles-DYaAeu4q.js +218 -230
- package/dist/trustMemberType-Ix2sf6e_.js +13 -0
- package/dist/types/api/address/useAddressCleanse.d.ts +2 -0
- package/dist/types/api/address/useRetrieveAddress.d.ts +1 -0
- package/dist/types/api/address/useRetrieveFromPostcodeJp.d.ts +1 -0
- package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/utils.d.ts +7 -2
- package/dist/types/components/Business/forms/FinancialInformation/mapping/mapFinancialInformationToFinancialReport.d.ts +1 -1
- package/dist/types/components/Business/forms/rules.d.ts +3 -1
- package/dist/types/components/Business/utils/formatDataForSummary.d.ts +2 -1
- package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +78 -0
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingFinancialInformation.d.ts +3 -0
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/types.d.ts +2 -1
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/utils.d.ts +6 -3
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/validate.d.ts +3 -0
- package/dist/types/components/GlobalEntry/fields/DbaQuestionnaire/DbaQuestionnaire.d.ts +3 -0
- package/dist/types/components/GlobalEntry/fields/DbaQuestionnaire/types.d.ts +5 -0
- package/dist/types/components/GlobalEntry/fields/LlcQuestionnaire/LlcQuestionnaire.d.ts +3 -0
- package/dist/types/components/GlobalEntry/fields/LlcQuestionnaire/types.d.ts +5 -0
- package/dist/types/components/GlobalEntry/fields/PaperworkQuestionnaire/PaperworkQuestionnaire.d.ts +1 -6
- package/dist/types/components/GlobalEntry/fields/PaperworkQuestionnaire/fieldConfig.d.ts +11 -0
- package/dist/types/components/GlobalEntry/fields/PaperworkQuestionnaire/types.d.ts +6 -1
- package/dist/types/components/GlobalEntry/fields/Questionnaire/Questionnaire.d.ts +2 -0
- package/dist/types/components/GlobalEntry/fields/Questionnaire/types.d.ts +17 -0
- package/dist/types/components/GlobalEntry/fields/TrustQuestionnaire/TrustQuestionnaire.d.ts +3 -0
- package/dist/types/components/GlobalEntry/fields/TrustQuestionnaire/types.d.ts +5 -0
- package/dist/types/components/GlobalEntry/forms/EntityInformation/EntityInformation.d.ts +1 -3
- package/dist/types/components/GlobalEntry/forms/EntityInformation/types.d.ts +1 -2
- package/dist/types/components/GlobalEntry/forms/RegistrationInformation/types.d.ts +5 -1
- package/dist/types/components/GlobalEntry/mapping/globalEntryKeyMapping.d.ts +0 -3
- package/dist/types/components/GlobalEntry/mapping/mapGlobalEntrySchemaToLegalEntity.d.ts +2 -3
- package/dist/types/components/GlobalEntry/mapping/mapLegalEntityToGlobalEntrySchema.d.ts +1 -6
- package/dist/types/components/GlobalEntry/rules.d.ts +5 -2
- package/dist/types/components/GlobalEntry/utils/getAvailableCompanyStructures.d.ts +2 -1
- package/dist/types/components/GlobalEntry/utils/submitGlobalEntry.d.ts +1 -4
- package/dist/types/components/GlobalEntry/utils/utils.d.ts +7 -4
- package/dist/types/components/Individual/forms/AdditionalPersonalDetails/AdditionalPersonalDetails.types.d.ts +1 -2
- package/dist/types/components/Individual/forms/Individual.rules.d.ts +7 -6
- package/dist/types/components/Individual/helpers/findRelevantTaxInformation.d.ts +8 -2
- package/dist/types/components/Individual/helpers/getSubmittableTaxInformation.d.ts +20 -0
- package/dist/types/components/Individual/mapping/mapIndividualSchemaToLegalEntity.d.ts +5 -3
- package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerDetails/utils.d.ts +6 -67
- package/dist/types/components/Individual/tasks/IndividualDropin/IndividualSummary.d.ts +27 -0
- package/dist/types/components/Individual/utils/formatDataForSummary.d.ts +49 -0
- package/dist/types/components/Shared/FormFlow/FormFlow.d.ts +1 -1
- package/dist/types/components/Shared/FormFlow/FormFlow.types.d.ts +0 -5
- package/dist/types/components/Shared/Summary/Summary.d.ts +10 -7
- package/dist/types/components/Shared/Summary/types.d.ts +3 -21
- package/dist/types/components/Shared/SummarySection/SummaryBulletList.d.ts +8 -0
- package/dist/types/components/Shared/devex/DebugListener/DebugTheme.d.ts +2 -0
- package/dist/types/components/Shared/devex/DebugListener/customTheme.d.ts +49 -0
- package/dist/types/components/Shared/fields/RegistrationAndOperationalAddressFields/types.d.ts +2 -0
- package/dist/types/components/Shared/fields/RegistrationAndOperationalAddressFields/utils.d.ts +2 -4
- package/dist/types/components/Shared/fields/ReportedValueOptionField/types.d.ts +3 -0
- package/dist/types/components/Shared/forms/Address/constants.d.ts +2 -0
- package/dist/types/components/Shared/forms/Address/localized/jp/JpAddressFields.d.ts +2 -9
- package/dist/types/components/Shared/forms/Address/localized/jp/mapAddressLocalizationToJpAddressSchema.d.ts +2 -2
- package/dist/types/components/Shared/forms/Address/localized/jp/mapJpAddressSchemaToAddressLocalizations.d.ts +2 -2
- package/dist/types/components/Shared/forms/Address/localized/jp/mapJpAddressSummary.d.ts +2 -4
- package/dist/types/components/Shared/forms/Address/rules.d.ts +13 -0
- package/dist/types/components/Shared/forms/Address/types.d.ts +7 -1
- package/dist/types/components/Shared/forms/Address/utils.d.ts +5 -11
- package/dist/types/components/Trust/forms/Trust/rules.d.ts +3 -1
- package/dist/types/components/Trust/tasks/RoleAndTypeDropin/formatRoleAndEntityTypeSummary.d.ts +2 -3
- package/dist/types/components/Trust/utils/formatDataForSummary.d.ts +2 -1
- package/dist/types/core/EmbedShell/EmbedShell.d.ts +4 -1
- package/dist/types/core/EmbedShell/useTheme.d.ts +9 -0
- package/dist/types/embeds/onboarding/adyen-onboarding.d.ts +1 -1
- package/dist/types/embeds/onboarding/adyen-onboarding.types.d.ts +8 -0
- package/dist/types/hooks/useStoredStateOrProvince.d.ts +9 -0
- package/dist/types/types/datasets/state-code.d.ts +36 -1
- package/dist/types/types/form-rules.d.ts +2 -2
- package/dist/types/utils/analytics/getPrefilledDetails.d.ts +3 -0
- package/dist/types/utils/entityStatusUtil.d.ts +1 -1
- package/dist/types/utils/fieldConfigurations.d.ts +1 -1
- package/dist/types/utils/legalArrangementUtils.d.ts +2 -0
- package/dist/{types-BymnGWO9.js → types-DVMWWwBT.js} +1 -1
- package/dist/{form-rules-CZbkNMEw.js → unincorporatedPartnership-CiU2fnqv.js} +38 -4
- package/dist/{useBusinessDetailsData-BJau7oMt.js → useBusinessDetailsData-BtEHoBoN.js} +100 -90
- package/dist/{useCanSeeIntroduction-BQuCt-eO.js → useCanSeeIntroduction-kxOGIxnh.js} +2 -2
- package/dist/useCreateLegalEntity-CgzVD39K.js +24 -0
- package/dist/{useDataMissingRemediations-DKjYzfe2.js → useDataMissingRemediations-BfC7ECSn.js} +1 -1
- package/dist/{useForm-VDjedfk9.js → useForm-CiHfxEX0.js} +3 -3
- package/dist/{useHideTaskStepper-BgCN--mG.js → useHideTaskStepper-Betx9MGy.js} +1 -1
- package/dist/{useId-Cs-bSalH.js → useId-ChrmzN7R.js} +2 -2
- package/dist/{useNavigate-CKp2oemi.js → useNavigate-xbrKpFCu.js} +33 -33
- package/dist/{useSalesChannels-D0q-Vat7.js → useSalesChannels-C2qQmPGf.js} +1 -1
- package/dist/{useTaskLandedEvent-QBmeEeS6.js → useTaskLandedEvent-Brv74FDb.js} +1 -1
- package/dist/{useTrustMembers-COumqoMC.js → useTrustMembers-BA5fCul_.js} +3 -3
- package/dist/{useUnincorporatedPartnershipMembers-DcfQJdVZ.js → useUnincorporatedPartnershipMembers-J6rxK5Ie.js} +2 -2
- package/dist/{utils-BFxg3gPM.js → utils-ChZNfG5_.js} +1 -1
- package/dist/{utils-BiPEtEaV.js → utils-ClAXyRqf.js} +4 -5
- package/dist/{utils-B6TRzLRs.js → utils-Do6-kryk.js} +3 -3
- package/dist/utils-VV2acmQG.js +49 -0
- package/dist/{validate-Dt3Xmp_L.js → validate-BHOzYoxU.js} +26 -2
- package/dist/{validate-BN38Qq-w.js → validate-D5990ODb.js} +20 -9
- package/dist/{validate-D3JIeysp.js → validate-Dtiozjlb.js} +4 -4
- package/dist/{validate-_7WKym8c.js → validate-NJNmUaTh.js} +11 -5
- package/dist/{validateExtractionResult-IRRMwcNi.js → validateExtractionResult-D3AuQo5-.js} +3 -3
- package/package.json +6 -5
- package/dist/Image-CxnjHtP1.js +0 -33
- package/dist/List-qvNxW9lm.js +0 -72
- package/dist/StateField-BBGSo1NG.js +0 -296
- package/dist/en-US-U0d3NI20.js +0 -7
- package/dist/mapJpAddressSchemaToAddressLocalizations-kHaGv8kC.js +0 -75
- package/dist/mapLegalEntityToIndividualSchema-D6qGKj-2.js +0 -254
- package/dist/trustMemberGuidance-BpeDHAJP.js +0 -27
- package/dist/types/components/Shared/NewSummary/NewSummary.d.ts +0 -10
- package/dist/types/components/Shared/Summary/summaryItem.d.ts +0 -17
- package/dist/types/components/Shared/forms/Address/localized/jp/jpAddressSchema.d.ts +0 -17
- package/dist/unincorporatedPartnership-BbNowjM2.js +0 -11
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
try {
|
|
2
2
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
3
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "f23a31ce-ffba-473d-9ee6-c0d16759e230", e._sentryDebugIdIdentifier = "sentry-dbid-f23a31ce-ffba-473d-9ee6-c0d16759e230");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { r as useTranslation } from "./translation-CpH8D2NK.js";
|
|
6
|
-
import {
|
|
6
|
+
import { I as listToRecord, N as ExperimentNames, P as FeatureNames, i as useGlobalStore, l as splitTaskIdentifier } from "./resolveEnvironment-CpWP_8og.js";
|
|
7
7
|
import { t as createLogger } from "./logger-Z8AeTE4x.js";
|
|
8
|
-
import { t as Icon } from "./Icon-
|
|
9
|
-
import { t as Button } from "./Button-
|
|
8
|
+
import { t as Icon } from "./Icon-jVvV1zXc.js";
|
|
9
|
+
import { t as Button } from "./Button-BYafPrZH.js";
|
|
10
10
|
import { t as useSettingsContext } from "./useSettingsContext-Bpf4UqRT.js";
|
|
11
11
|
import { c as valuesOf, o as entriesOf } from "./genUtils-nphCwt1A.js";
|
|
12
|
-
import { t as TaskVerificationStatus } from "./TaskVerificationStatus-
|
|
13
|
-
import { t as Accordion } from "./Accordion-
|
|
14
|
-
import { i as useToggleContext, t as Checkbox } from "./Checkbox-
|
|
15
|
-
import { t as Modal } from "./Modal-
|
|
16
|
-
import { a as SettingNames, i as formDebugInfo, t as InputText } from "./InputText-
|
|
12
|
+
import { t as TaskVerificationStatus } from "./TaskVerificationStatus-C1CllzL1.js";
|
|
13
|
+
import { t as Accordion } from "./Accordion-CTQfC17W.js";
|
|
14
|
+
import { i as useToggleContext, t as Checkbox } from "./Checkbox-DXF-eRBj.js";
|
|
15
|
+
import { t as Modal } from "./Modal-jjSjdW5W.js";
|
|
16
|
+
import { a as SettingNames, i as formDebugInfo, t as InputText } from "./InputText-OCbzlaaN.js";
|
|
17
17
|
import { t as Tag } from "./Tag-CNeDHqKp.js";
|
|
18
18
|
import { useMemo, useState } from "preact/hooks";
|
|
19
19
|
import { Fragment, jsx, jsxs } from "preact/jsx-runtime";
|
|
@@ -275,6 +275,219 @@ var ExplainDetails = ({ status }) => {
|
|
|
275
275
|
}
|
|
276
276
|
};
|
|
277
277
|
//#endregion
|
|
278
|
+
//#region src/components/Shared/devex/DebugListener/customTheme.ts
|
|
279
|
+
var COLOR_KEYS = [
|
|
280
|
+
"primary",
|
|
281
|
+
"outline",
|
|
282
|
+
"neutral",
|
|
283
|
+
"background",
|
|
284
|
+
"label"
|
|
285
|
+
];
|
|
286
|
+
var ROUNDNESS_VALUES = [
|
|
287
|
+
"small",
|
|
288
|
+
"medium",
|
|
289
|
+
"large"
|
|
290
|
+
];
|
|
291
|
+
var THEME_KEYS = [...COLOR_KEYS, "roundness"];
|
|
292
|
+
/** Matches the hex color formats `ThemeGenerator` accepts; anything else throws inside the embed. */
|
|
293
|
+
var HEX_COLOR_REGEX = /^#(?:[0-9a-f]{3}|[0-9a-f]{6})$/i;
|
|
294
|
+
/** Example theme used to prefill the debug Theme tab, mirrors the "Adyen" playground preset. */
|
|
295
|
+
var EXAMPLE_CUSTOM_THEME = {
|
|
296
|
+
primary: "#0abf53",
|
|
297
|
+
background: "#ffffff",
|
|
298
|
+
neutral: "#f2f4f7",
|
|
299
|
+
label: "#001122",
|
|
300
|
+
outline: "#c8ccd0",
|
|
301
|
+
roundness: "medium"
|
|
302
|
+
};
|
|
303
|
+
/**
|
|
304
|
+
* Parses and validates a theme object entered as JSON in the debug Theme tab.
|
|
305
|
+
* Validation mirrors what `ThemeGenerator` accepts, so an applied theme can never
|
|
306
|
+
* throw inside the embed.
|
|
307
|
+
*/
|
|
308
|
+
var parseCustomThemeInput = (input) => {
|
|
309
|
+
const trimmedInput = input.trim();
|
|
310
|
+
if (!trimmedInput) return { error: `Enter a theme object as JSON. Supported keys: ${THEME_KEYS.join(", ")}.` };
|
|
311
|
+
let parsed;
|
|
312
|
+
try {
|
|
313
|
+
parsed = JSON.parse(trimmedInput);
|
|
314
|
+
} catch (error) {
|
|
315
|
+
return { error: `Invalid JSON: ${error.message}` };
|
|
316
|
+
}
|
|
317
|
+
if (typeof parsed !== "object" || parsed === null || Array.isArray(parsed)) return { error: "Theme must be a JSON object, for example: {\"primary\": \"#0abf53\"}" };
|
|
318
|
+
const theme = parsed;
|
|
319
|
+
if ("dark" in theme) return { error: "\"dark\" cannot be set here: the embed derives it from its \"thememode\" prop." };
|
|
320
|
+
const unknownKeys = Object.keys(theme).filter((key) => !THEME_KEYS.includes(key));
|
|
321
|
+
if (unknownKeys.length > 0) return { error: `Unknown theme key${unknownKeys.length === 1 ? "" : "s"}: ${unknownKeys.join(", ")}. Supported keys: ${THEME_KEYS.join(", ")}.` };
|
|
322
|
+
if (Object.keys(theme).length === 0) return { error: `Theme object is empty. Supported keys: ${THEME_KEYS.join(", ")}.` };
|
|
323
|
+
const customTheme = {};
|
|
324
|
+
for (const key of COLOR_KEYS) {
|
|
325
|
+
const value = theme[key];
|
|
326
|
+
if (value === void 0) continue;
|
|
327
|
+
if (typeof value !== "string" || !HEX_COLOR_REGEX.test(value.trim())) return { error: `"${key}" must be a hex color like "#0abf53" or "#abc", received: ${JSON.stringify(value)}.` };
|
|
328
|
+
customTheme[key] = value.trim().toLowerCase();
|
|
329
|
+
}
|
|
330
|
+
const { roundness } = theme;
|
|
331
|
+
if (roundness !== void 0) {
|
|
332
|
+
if (typeof roundness !== "string" || !ROUNDNESS_VALUES.includes(roundness)) return { error: `"roundness" must be one of: ${ROUNDNESS_VALUES.join(", ")}, received: ${JSON.stringify(roundness)}.` };
|
|
333
|
+
customTheme.roundness = roundness;
|
|
334
|
+
}
|
|
335
|
+
return { theme: customTheme };
|
|
336
|
+
};
|
|
337
|
+
var getOnboardingElement = () => document.querySelector("adyen-onboarding");
|
|
338
|
+
/** Reads the custom theme currently set on the embed, if any. */
|
|
339
|
+
var getAppliedCustomTheme = () => {
|
|
340
|
+
const customtheme = getOnboardingElement()?.customtheme;
|
|
341
|
+
return typeof customtheme === "object" && customtheme !== null ? customtheme : void 0;
|
|
342
|
+
};
|
|
343
|
+
/**
|
|
344
|
+
* Applies the theme by setting the `customtheme` DOM property on the embed element.
|
|
345
|
+
* `preact-custom-element` re-renders the embed with the new prop, and `useTheme`
|
|
346
|
+
* regenerates the SDK's CSS variables from it.
|
|
347
|
+
*
|
|
348
|
+
* @returns Whether an embed element was found and updated.
|
|
349
|
+
*/
|
|
350
|
+
var applyCustomTheme = (theme) => {
|
|
351
|
+
const element = getOnboardingElement();
|
|
352
|
+
if (!element) return false;
|
|
353
|
+
element.customtheme = theme;
|
|
354
|
+
return true;
|
|
355
|
+
};
|
|
356
|
+
/**
|
|
357
|
+
* Removes the custom theme by clearing the `customtheme` DOM property.
|
|
358
|
+
*
|
|
359
|
+
* `preact-custom-element` reflects the cleared property as an attribute holding
|
|
360
|
+
* the string "undefined", which would re-render the embed with a truthy string.
|
|
361
|
+
* Removing the attribute afterwards triggers one final re-render with
|
|
362
|
+
* `customtheme === undefined`, restoring the default theme.
|
|
363
|
+
*
|
|
364
|
+
* @returns Whether an embed element was found and reset.
|
|
365
|
+
*/
|
|
366
|
+
var resetCustomTheme = () => {
|
|
367
|
+
const element = getOnboardingElement();
|
|
368
|
+
if (!element) return false;
|
|
369
|
+
element.customtheme = void 0;
|
|
370
|
+
element.removeAttribute("customtheme");
|
|
371
|
+
return true;
|
|
372
|
+
};
|
|
373
|
+
var DebugTheme_module_default = {
|
|
374
|
+
themeTab: "_themeTab_1e5pb_1",
|
|
375
|
+
description: "_description_1e5pb_8",
|
|
376
|
+
warning: "_warning_1e5pb_12",
|
|
377
|
+
label: "_label_1e5pb_17",
|
|
378
|
+
themeInput: "_themeInput_1e5pb_21",
|
|
379
|
+
hint: "_hint_1e5pb_33",
|
|
380
|
+
actions: "_actions_1e5pb_39",
|
|
381
|
+
error: "_error_1e5pb_44",
|
|
382
|
+
success: "_success_1e5pb_49"
|
|
383
|
+
};
|
|
384
|
+
//#endregion
|
|
385
|
+
//#region src/components/Shared/devex/DebugListener/DebugTheme.tsx
|
|
386
|
+
var NO_EMBED_MESSAGE = "No adyen-onboarding element found on this page, the theme cannot be applied.";
|
|
387
|
+
/** DebugTheme's code is AI-generated. TODO: Refactor or delete if this stays */
|
|
388
|
+
var DebugTheme = () => {
|
|
389
|
+
const [themeInput, setThemeInput] = useState(() => JSON.stringify(getAppliedCustomTheme() ?? EXAMPLE_CUSTOM_THEME, null, 2));
|
|
390
|
+
const [feedback, setFeedback] = useState();
|
|
391
|
+
const embedElementFound = Boolean(getOnboardingElement());
|
|
392
|
+
const handleApplyTheme = () => {
|
|
393
|
+
const { theme, error } = parseCustomThemeInput(themeInput);
|
|
394
|
+
if (error || !theme) {
|
|
395
|
+
setFeedback({
|
|
396
|
+
type: "error",
|
|
397
|
+
message: error ?? "Unknown error"
|
|
398
|
+
});
|
|
399
|
+
return;
|
|
400
|
+
}
|
|
401
|
+
if (!applyCustomTheme(theme)) {
|
|
402
|
+
setFeedback({
|
|
403
|
+
type: "error",
|
|
404
|
+
message: NO_EMBED_MESSAGE
|
|
405
|
+
});
|
|
406
|
+
return;
|
|
407
|
+
}
|
|
408
|
+
setFeedback({
|
|
409
|
+
type: "success",
|
|
410
|
+
message: "Custom theme applied."
|
|
411
|
+
});
|
|
412
|
+
};
|
|
413
|
+
const handleResetTheme = () => {
|
|
414
|
+
if (!resetCustomTheme()) {
|
|
415
|
+
setFeedback({
|
|
416
|
+
type: "error",
|
|
417
|
+
message: NO_EMBED_MESSAGE
|
|
418
|
+
});
|
|
419
|
+
return;
|
|
420
|
+
}
|
|
421
|
+
setThemeInput(JSON.stringify(EXAMPLE_CUSTOM_THEME, null, 2));
|
|
422
|
+
setFeedback({
|
|
423
|
+
type: "success",
|
|
424
|
+
message: "Custom theme reset, back to the default theme."
|
|
425
|
+
});
|
|
426
|
+
};
|
|
427
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
428
|
+
className: DebugTheme_module_default.themeTab,
|
|
429
|
+
children: [
|
|
430
|
+
/* @__PURE__ */ jsxs("p", {
|
|
431
|
+
className: DebugTheme_module_default.description,
|
|
432
|
+
children: [
|
|
433
|
+
"Dogfood the experimental ",
|
|
434
|
+
/* @__PURE__ */ jsx("code", { children: "customtheme" }),
|
|
435
|
+
" prop of the",
|
|
436
|
+
" ",
|
|
437
|
+
/* @__PURE__ */ jsx("code", { children: "<adyen-onboarding>" }),
|
|
438
|
+
" element: the JSON below is validated and set as its",
|
|
439
|
+
" ",
|
|
440
|
+
/* @__PURE__ */ jsx("code", { children: "customtheme" }),
|
|
441
|
+
" DOM property, which re-renders the embed and regenerates the SDK theme immediately."
|
|
442
|
+
]
|
|
443
|
+
}),
|
|
444
|
+
embedElementFound ? void 0 : /* @__PURE__ */ jsx("p", {
|
|
445
|
+
className: DebugTheme_module_default.warning,
|
|
446
|
+
children: NO_EMBED_MESSAGE
|
|
447
|
+
}),
|
|
448
|
+
/* @__PURE__ */ jsx("label", {
|
|
449
|
+
className: DebugTheme_module_default.label,
|
|
450
|
+
htmlFor: "debug-custom-theme-input",
|
|
451
|
+
children: "Custom theme object (JSON)"
|
|
452
|
+
}),
|
|
453
|
+
/* @__PURE__ */ jsx("textarea", {
|
|
454
|
+
id: "debug-custom-theme-input",
|
|
455
|
+
className: DebugTheme_module_default.themeInput,
|
|
456
|
+
rows: 10,
|
|
457
|
+
spellcheck: false,
|
|
458
|
+
"aria-invalid": feedback?.type === "error",
|
|
459
|
+
"aria-describedby": feedback ? "debug-custom-theme-feedback" : void 0,
|
|
460
|
+
value: themeInput,
|
|
461
|
+
onInput: (event) => {
|
|
462
|
+
setThemeInput(event.currentTarget.value);
|
|
463
|
+
setFeedback(void 0);
|
|
464
|
+
}
|
|
465
|
+
}),
|
|
466
|
+
/* @__PURE__ */ jsx("p", {
|
|
467
|
+
className: DebugTheme_module_default.hint,
|
|
468
|
+
children: "Supported keys: primary, outline, neutral, background, label (hex colors like #0abf53) and roundness (small, medium or large)."
|
|
469
|
+
}),
|
|
470
|
+
/* @__PURE__ */ jsxs("div", {
|
|
471
|
+
className: DebugTheme_module_default.actions,
|
|
472
|
+
children: [/* @__PURE__ */ jsx(Button, {
|
|
473
|
+
onClick: handleApplyTheme,
|
|
474
|
+
children: "Apply theme"
|
|
475
|
+
}), /* @__PURE__ */ jsx(Button, {
|
|
476
|
+
variant: "tertiary",
|
|
477
|
+
onClick: handleResetTheme,
|
|
478
|
+
children: "Reset to default"
|
|
479
|
+
})]
|
|
480
|
+
}),
|
|
481
|
+
feedback ? /* @__PURE__ */ jsxs("p", {
|
|
482
|
+
id: "debug-custom-theme-feedback",
|
|
483
|
+
className: feedback.type === "error" ? DebugTheme_module_default.error : DebugTheme_module_default.success,
|
|
484
|
+
role: feedback.type === "error" ? "alert" : "status",
|
|
485
|
+
children: [feedback.type === "success" ? /* @__PURE__ */ jsx(Icon, { name: "check" }) : void 0, feedback.message]
|
|
486
|
+
}) : void 0
|
|
487
|
+
]
|
|
488
|
+
});
|
|
489
|
+
};
|
|
490
|
+
//#endregion
|
|
278
491
|
//#region src/components/Shared/devex/DebugListener/DebugTogglesAndSettings.tsx
|
|
279
492
|
var getSettingVariant = (value) => {
|
|
280
493
|
switch (value) {
|
|
@@ -346,7 +559,7 @@ var DebugModal = ({ onExit }) => {
|
|
|
346
559
|
const rootLegalEntity = useGlobalStore().rootLegalEntity.value;
|
|
347
560
|
const formDebugAvailable = Object.keys(formDebugInfo.value).length > 0;
|
|
348
561
|
const metadata = {
|
|
349
|
-
sdkVersion: "4.
|
|
562
|
+
sdkVersion: "4.27.0-beta.1",
|
|
350
563
|
locale: i18n.language,
|
|
351
564
|
rootLegalEntityId: rootLegalEntity.id
|
|
352
565
|
};
|
|
@@ -389,6 +602,10 @@ var DebugModal = ({ onExit }) => {
|
|
|
389
602
|
{
|
|
390
603
|
name: "legalEntityData",
|
|
391
604
|
label: "Legal Entity Data"
|
|
605
|
+
},
|
|
606
|
+
{
|
|
607
|
+
name: "theme",
|
|
608
|
+
label: "Theme"
|
|
392
609
|
}
|
|
393
610
|
];
|
|
394
611
|
if (formDebugAvailable) TABS.push({
|
|
@@ -425,6 +642,7 @@ var DebugModal = ({ onExit }) => {
|
|
|
425
642
|
experiments
|
|
426
643
|
}) : void 0,
|
|
427
644
|
tab === "legalEntityData" ? /* @__PURE__ */ jsx(DebugLegalEntityData, { legalEntityData }) : void 0,
|
|
645
|
+
tab === "theme" ? /* @__PURE__ */ jsx(DebugTheme, {}) : void 0,
|
|
428
646
|
tab === "formConfig" ? /* @__PURE__ */ jsx(DebugFormData, {}) : void 0
|
|
429
647
|
]
|
|
430
648
|
}),
|
|
@@ -1,36 +1,34 @@
|
|
|
1
1
|
try {
|
|
2
2
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
3
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "f8e60ed4-84d1-41ca-874a-f9fc673d10e0", e._sentryDebugIdIdentifier = "sentry-dbid-f8e60ed4-84d1-41ca-874a-f9fc673d10e0");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { r as useTranslation } from "./translation-CpH8D2NK.js";
|
|
6
|
-
import {
|
|
6
|
+
import { C as Alert } from "./resolveEnvironment-CpWP_8og.js";
|
|
7
7
|
import { t as createLogger } from "./logger-Z8AeTE4x.js";
|
|
8
|
-
import { t as Typography } from "./Typography-CAc_f5Iq.js";
|
|
9
8
|
import { t as Loader } from "./Loader-BDaKGf77.js";
|
|
10
|
-
import { t as Button } from "./Button-
|
|
9
|
+
import { t as Button } from "./Button-BYafPrZH.js";
|
|
11
10
|
import { n as httpGet, r as httpPost, s as useApiContext } from "./http-C8rt2BZk.js";
|
|
12
11
|
import { r as useLegalEntity } from "./useLegalEntity-CxeMoCm4.js";
|
|
13
12
|
import { t as getLegalEntityCountry } from "./getLegalEntityCountry-BK-HHa65.js";
|
|
14
|
-
import {
|
|
13
|
+
import { t as useSettingsContext } from "./useSettingsContext-Bpf4UqRT.js";
|
|
14
|
+
import { i as noop } from "./genUtils-nphCwt1A.js";
|
|
15
15
|
import { t as StackLayout } from "./StackLayout-J1ynSX-P.js";
|
|
16
|
-
import { t as TaskVerificationStatus } from "./TaskVerificationStatus-
|
|
16
|
+
import { t as TaskVerificationStatus } from "./TaskVerificationStatus-C1CllzL1.js";
|
|
17
17
|
import { i as TaskStatuses } from "./taskStatus-BtekPA8E.js";
|
|
18
18
|
import { t as TaskTypes } from "./taskTypes-3vSkMBDm.js";
|
|
19
19
|
import { t as DecisionMakerTypes } from "./decisionMaker-CR0qaGWQ.js";
|
|
20
20
|
import { t as Scenarios } from "./scenarios-nibtmpSb.js";
|
|
21
|
-
import { i as useToggleContext } from "./Checkbox-
|
|
22
|
-
import { i as useAnalyticsContext, t as Modal } from "./Modal-
|
|
23
|
-
import { t as ListItem } from "./ListItem-
|
|
24
|
-
import { r as useToastContext } from "./useId-
|
|
25
|
-
import { o as StructuredList, s as Confirm } from "./utils-
|
|
26
|
-
import {
|
|
27
|
-
import { t as List } from "./List-qvNxW9lm.js";
|
|
28
|
-
import { t as getIdNowMissingDataPoints } from "./bafinUtils-COyCy9xG.js";
|
|
21
|
+
import { i as useToggleContext } from "./Checkbox-DXF-eRBj.js";
|
|
22
|
+
import { i as useAnalyticsContext, t as Modal } from "./Modal-jjSjdW5W.js";
|
|
23
|
+
import { t as ListItem } from "./ListItem-n927geYb.js";
|
|
24
|
+
import { r as useToastContext } from "./useId-ChrmzN7R.js";
|
|
25
|
+
import { o as StructuredList, s as Confirm } from "./utils-Do6-kryk.js";
|
|
26
|
+
import { t as getIdNowMissingDataPoints } from "./bafinUtils-CvQzDDfD.js";
|
|
29
27
|
import { t as useScenarios } from "./useScenarios-DfE71fl7.js";
|
|
30
|
-
import {
|
|
31
|
-
import { t as
|
|
28
|
+
import { l as shouldNavigateToAdditionalPersonalDetailsForMissingData, n as SummaryBulletList, r as mapLegalEntityToIndividualSchema, t as formatDataForSummary, u as useCreateInvitation } from "./formatDataForSummary-BMFPIUER.js";
|
|
29
|
+
import { t as SummarySection } from "./SummarySection-D67yguze.js";
|
|
32
30
|
import { t as DetailViewLayout } from "./DetailViewLayout-DJgAzdlZ.js";
|
|
33
|
-
import { t as getTrustedDecisionMakers } from "./getTrustedDecisionMakers-
|
|
31
|
+
import { t as getTrustedDecisionMakers } from "./getTrustedDecisionMakers-DByctgob.js";
|
|
34
32
|
import { useMemo, useState } from "preact/hooks";
|
|
35
33
|
import { Fragment, jsx, jsxs } from "preact/jsx-runtime";
|
|
36
34
|
import { skipToken, useMutation, useQueries, useQuery } from "@tanstack/preact-query";
|
|
@@ -181,150 +179,49 @@ var individualIdentityDocumentTypes = [
|
|
|
181
179
|
"proofOfNationalIdNumber"
|
|
182
180
|
];
|
|
183
181
|
/**
|
|
184
|
-
*
|
|
185
|
-
*
|
|
182
|
+
* The sections of the details modal, in display order. The modal is not part of the flow, so it
|
|
183
|
+
* states its own forms rather than taking them from it.
|
|
186
184
|
*
|
|
187
|
-
*
|
|
188
|
-
*
|
|
189
|
-
* @returns An object containing formatted file information.
|
|
185
|
+
* These mirror `individualForms`, which cannot be imported here: importing from `Individual.tsx`
|
|
186
|
+
* makes Vite inline that whole module into the entrypoint (see the Individual `AGENTS.md`).
|
|
190
187
|
*/
|
|
191
|
-
var
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
if (phoneNumber && formattedSummaryData.basicDetails) formattedSummaryData.basicDetails.phoneNumber = phoneNumber.number;
|
|
224
|
-
if (country && formattedSummaryData.additionalPersonalDetails) formattedSummaryData.additionalPersonalDetails.country = datasetUtils.getCountryName(country);
|
|
225
|
-
if (nationality && formattedSummaryData.additionalPersonalDetails) formattedSummaryData.additionalPersonalDetails.nationality = datasetUtils.getCountryName(nationality);
|
|
226
|
-
if (formattedSummaryData.additionalPersonalDetails) formattedSummaryData.address = mapAddressLabels(formattedSummaryData.additionalPersonalDetails, datasetUtils);
|
|
227
|
-
const accountHolder = formattedSummaryData.basicDetails?.accountHolder;
|
|
228
|
-
if (accountHolder && formattedSummaryData.basicDetails) formattedSummaryData.basicDetails.accountHolder = commonT(($) => $[accountHolder]);
|
|
229
|
-
if (birthDate && formattedSummaryData.additionalPersonalDetails) formattedSummaryData.additionalPersonalDetails.birthDate = localizeDateString(birthDate, locale);
|
|
230
|
-
if (street && formattedSummaryData.additionalPersonalDetails) {
|
|
231
|
-
const labelKey = getKeyForField("street", country);
|
|
232
|
-
formattedSummaryData.additionalPersonalDetails[commonT(($) => $[labelKey])] = street;
|
|
233
|
-
delete formattedSummaryData.additionalPersonalDetails.street;
|
|
234
|
-
}
|
|
235
|
-
if (street2 && formattedSummaryData.additionalPersonalDetails) {
|
|
236
|
-
const labelKey = getKeyForField("street2", country);
|
|
237
|
-
formattedSummaryData.additionalPersonalDetails[commonT(($) => $[labelKey])] = street2;
|
|
238
|
-
delete formattedSummaryData.additionalPersonalDetails.street2;
|
|
188
|
+
var DETAILS_SUMMARY_FORMS = [
|
|
189
|
+
{
|
|
190
|
+
formId: "basicDetails",
|
|
191
|
+
formName: "basicInformationFormName"
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
formId: "additionalPersonalDetails",
|
|
195
|
+
formName: "additionalPersonalDetails"
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
formId: "signatoryQuestionnaire",
|
|
199
|
+
formName: "authorizedSignatory"
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
formId: "uboQuestionnaire",
|
|
203
|
+
formName: "beneficialOwnership"
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
formId: "proofOfNationalId",
|
|
207
|
+
formName: "proofOfNationalId"
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
formId: "proofOfResidency",
|
|
211
|
+
formName: "proofOfResidency"
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
formId: "proofOfRelationship",
|
|
215
|
+
formName: "proofOfRelationship"
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
formId: "manualIdUpload",
|
|
219
|
+
formName: "idDocument"
|
|
239
220
|
}
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
...fileSummaryData
|
|
245
|
-
};
|
|
246
|
-
formattedSummaryData.manualIdUpload = { ...formattedSummaryData.idDocument };
|
|
247
|
-
formattedSummaryData.idVerificationMethod.idDocument = { ...formattedSummaryData.idDocument };
|
|
248
|
-
}
|
|
249
|
-
const summaryPersonalDetails = formattedSummaryData.additionalPersonalDetails;
|
|
250
|
-
const relevantTaxInformation = findRelevantTaxInformation(taxInformation, {
|
|
251
|
-
nationality,
|
|
252
|
-
country
|
|
253
|
-
});
|
|
254
|
-
if (relevantTaxInformation && summaryPersonalDetails) {
|
|
255
|
-
delete summaryPersonalDetails.taxInformation;
|
|
256
|
-
summaryPersonalDetails[relevantTaxInformation.type] = relevantTaxInformation.number;
|
|
257
|
-
}
|
|
258
|
-
if (formattedSummaryData?.signatoryQuestionnaire) formattedSummaryData.signatoryQuestionnaire = dataToFormat?.signatoryQuestionnaire?.isSignatory === GuidanceQuestionValues.YES ? [commonT(($) => $["signatorySummaryLabel"])] : [];
|
|
259
|
-
if (formattedSummaryData?.uboQuestionnaire) {
|
|
260
|
-
const roleFieldToLabelMap = {
|
|
261
|
-
isOwner: "ownerSummaryLabel",
|
|
262
|
-
isControllingPerson: "controllingPersonSummaryLabel",
|
|
263
|
-
isDirector: "directorSummaryLabel"
|
|
264
|
-
};
|
|
265
|
-
formattedSummaryData.uboQuestionnaire = Object.keys(roleFieldToLabelMap).flatMap((field) => dataToFormat?.uboQuestionnaire?.[field] === GuidanceQuestionValues.YES ? [individualT(($) => $[roleFieldToLabelMap[field]])] : []);
|
|
266
|
-
}
|
|
267
|
-
return formattedSummaryData;
|
|
268
|
-
};
|
|
269
|
-
/**
|
|
270
|
-
* Determines which keys to omit from the summary data based on the form data and task type.
|
|
271
|
-
*
|
|
272
|
-
* @param data - The form data.
|
|
273
|
-
* @param taskType - The type of task being performed.
|
|
274
|
-
* @returns An array of keys to be omitted from the summary.
|
|
275
|
-
*
|
|
276
|
-
* @example
|
|
277
|
-
* getOmittedKeysForSummary({ idVerificationMethod: { idVerificationMethod: 'manualVerification' } }, 'INDIVIDUAL');
|
|
278
|
-
* // Returns: ['idVerificationMethod', 'address']
|
|
279
|
-
*/
|
|
280
|
-
var getOmittedKeysForSummary = (data, taskType) => [
|
|
281
|
-
...taskType === TaskTypes.DECISION_MAKER ? ["role"] : [],
|
|
282
|
-
...data?.additionalPersonalDetails?.idNumberExempt ? ["idNumber"] : [],
|
|
283
|
-
...isManualVerificationOrExistingDoc(data?.idVerificationMethod?.idVerificationMethod) ? ["idVerificationMethod"] : [],
|
|
284
|
-
"address",
|
|
285
|
-
"manualIdUpload"
|
|
286
|
-
];
|
|
287
|
-
/**
|
|
288
|
-
* Prepares the final summary data by formatting and filtering the raw form data.
|
|
289
|
-
*
|
|
290
|
-
* @param data - The raw form data.
|
|
291
|
-
* @param locale - language string
|
|
292
|
-
* @param commonT - The translation function for the `common` namespace.
|
|
293
|
-
* @param individualT - The translation function for the `individual` namespace.
|
|
294
|
-
* @param taskType - The type of task being performed.
|
|
295
|
-
* @returns The final summary data object.
|
|
296
|
-
*/
|
|
297
|
-
var getSummaryData = (data, locale, commonT, individualT, taskType) => {
|
|
298
|
-
const summaryData = formatDataForSummary(data, locale, commonT, individualT);
|
|
299
|
-
const omittedKeys = getOmittedKeysForSummary(data, taskType)?.filter(Boolean);
|
|
300
|
-
return {
|
|
301
|
-
...drop(...omittedKeys).from(summaryData),
|
|
302
|
-
basicDetails: summaryData.basicDetails ? drop("firstName", "lastName", "role", "nomineeShareholder").from(summaryData.basicDetails) : void 0,
|
|
303
|
-
additionalPersonalDetails: summaryData.additionalPersonalDetails ? drop("idNumberExempt").from(summaryData.additionalPersonalDetails) : void 0,
|
|
304
|
-
idDocument: summaryData.idVerificationMethod?.idDocument
|
|
305
|
-
};
|
|
306
|
-
};
|
|
307
|
-
/**
|
|
308
|
-
* Transforms a record of data into a structured list of items for display.
|
|
309
|
-
* Each item in the list has a term (label) and details (value).
|
|
310
|
-
*
|
|
311
|
-
* @param data - The data record to transform.
|
|
312
|
-
* @param commonT - The translation function.
|
|
313
|
-
* @returns An array of structured list items.
|
|
314
|
-
*
|
|
315
|
-
* @example
|
|
316
|
-
* const data = { name: 'John Doe', age: 30 };
|
|
317
|
-
* getStructuredListItems(data, t);
|
|
318
|
-
* // Returns: [{ term: 'Name', details: 'John Doe', type: 'text' }, { term: 'Age', details: '30', type: 'text' }]
|
|
319
|
-
*/
|
|
320
|
-
var getStructuredListItems = (data, commonT) => {
|
|
321
|
-
if (typeof data !== "object" || data === null || Array.isArray(data)) return [];
|
|
322
|
-
return Object.entries(data).filter(([itemKey, itemValue]) => itemValue != null && itemValue !== "" && !["nomineeDirector", "nomineeShareholder"].includes(itemKey) && (!Array.isArray(itemValue) || itemValue.length > 0)).map(([itemKey, itemValue]) => ({
|
|
323
|
-
term: commonT(($) => $[itemKey]),
|
|
324
|
-
details: Array.isArray(itemValue) ? itemValue.join(", ") : commonT(($) => $[itemValue]) || String(itemValue),
|
|
325
|
-
type: Array.isArray(itemValue) ? "list" : "text"
|
|
326
|
-
}));
|
|
327
|
-
};
|
|
221
|
+
].map((form) => ({
|
|
222
|
+
...form,
|
|
223
|
+
isValid: true
|
|
224
|
+
}));
|
|
328
225
|
var isMissingIdentityDocument = (problems, legalEntity, scenarios, roles) => {
|
|
329
226
|
if (roles.includes(DecisionMakerTypes.SIGNATORY) && scenarios?.includes(Scenarios.L_BAFIN)) return false;
|
|
330
227
|
const hasMissingIdDocument = Boolean(problems.missingData?.some((item) => item.remediatingActions?.some((action) => action.code === "1_301")));
|
|
@@ -339,6 +236,8 @@ var DecisionMakerDetails = ({ decisionMaker, parentLegalEntity, handleClose, han
|
|
|
339
236
|
const { showToast } = useToastContext();
|
|
340
237
|
const { t: commonT, i18n } = useTranslation("common");
|
|
341
238
|
const { t: individualT } = useTranslation("individual");
|
|
239
|
+
const { t: summaryT } = useTranslation(["common", "individual"]);
|
|
240
|
+
const { isSettingEnabled } = useSettingsContext();
|
|
342
241
|
const { isFeatureEnabled } = useToggleContext();
|
|
343
242
|
const isVerifyByInviteEnabled = isFeatureEnabled("EnableVerifyByInvite");
|
|
344
243
|
const { data: invitationStatus, refetch: refetchInvitationStatus } = useInvitationStatus(decisionMaker.reference, { enabled: isVerifyByInviteEnabled });
|
|
@@ -356,14 +255,26 @@ var DecisionMakerDetails = ({ decisionMaker, parentLegalEntity, handleClose, han
|
|
|
356
255
|
const canEdit = !invitationActive || isInvitedEntity;
|
|
357
256
|
const idNowMissingDataPoints = legalEntity && !isLegalEntityLoading ? getIdNowMissingDataPoints(decisionMaker.problems, legalEntity, scenarios, decisionMaker.types) : null;
|
|
358
257
|
const hasMissingIdDocument = legalEntity && decisionMaker.problems && !isLegalEntityLoading ? isMissingIdentityDocument(decisionMaker.problems, legalEntity, scenarios, decisionMaker.types) : null;
|
|
359
|
-
const
|
|
360
|
-
if (legalEntity) return
|
|
258
|
+
const summarySections = useMemo(() => {
|
|
259
|
+
if (!legalEntity) return [];
|
|
260
|
+
const individualSchema = mapLegalEntityToIndividualSchema(legalEntity, false, true, parentLegalEntity);
|
|
261
|
+
const country = legalEntity.individual?.residentialAddress?.country;
|
|
262
|
+
return formatDataForSummary({
|
|
263
|
+
data: individualSchema,
|
|
264
|
+
forms: DETAILS_SUMMARY_FORMS,
|
|
265
|
+
t: summaryT,
|
|
266
|
+
language: i18n.language,
|
|
267
|
+
taskType: TaskTypes.DECISION_MAKER,
|
|
268
|
+
country,
|
|
269
|
+
isSettingEnabled,
|
|
270
|
+
source: "legalEntity"
|
|
271
|
+
});
|
|
361
272
|
}, [
|
|
362
273
|
legalEntity,
|
|
363
274
|
parentLegalEntity,
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
275
|
+
summaryT,
|
|
276
|
+
i18n.language,
|
|
277
|
+
isSettingEnabled
|
|
367
278
|
]);
|
|
368
279
|
const handleSendReminder = trackClickHandler(userEvents, "sendReminder", "select", async () => {
|
|
369
280
|
if (!parentLegalEntity?.id) {
|
|
@@ -529,17 +440,11 @@ var DecisionMakerDetails = ({ decisionMaker, parentLegalEntity, handleClose, han
|
|
|
529
440
|
title: decisionMaker.name,
|
|
530
441
|
description: getDecisionMakerDescription(decisionMaker.types, individualT)
|
|
531
442
|
}),
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
children: [/* @__PURE__ */ jsx(Typography, {
|
|
538
|
-
variant: "title",
|
|
539
|
-
children: individualT(($) => $[key])
|
|
540
|
-
}), /* @__PURE__ */ jsx(StructuredList, { items })]
|
|
541
|
-
}, key);
|
|
542
|
-
}).filter(Boolean)
|
|
443
|
+
summarySections.map(({ formId, label, items, bullets }) => /* @__PURE__ */ jsx(SummarySection, {
|
|
444
|
+
formId,
|
|
445
|
+
label,
|
|
446
|
+
children: bullets ? /* @__PURE__ */ jsx(SummaryBulletList, { items: bullets }) : /* @__PURE__ */ jsx(StructuredList, { items })
|
|
447
|
+
}, formId))
|
|
543
448
|
]
|
|
544
449
|
})
|
|
545
450
|
})
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
try {
|
|
2
2
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
3
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "ef2942c8-a7fd-4780-badf-a14f34101eb1", e._sentryDebugIdIdentifier = "sentry-dbid-ef2942c8-a7fd-4780-badf-a14f34101eb1");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { n as addResourceBundles, r as useTranslation } from "./translation-CpH8D2NK.js";
|
|
6
|
-
import {
|
|
6
|
+
import { M as _rolldown_dynamic_import_helper_default } from "./resolveEnvironment-CpWP_8og.js";
|
|
7
7
|
import { t as Loader } from "./Loader-BDaKGf77.js";
|
|
8
8
|
import { r as useLegalEntity } from "./useLegalEntity-CxeMoCm4.js";
|
|
9
9
|
import { t as getLegalEntityCountry } from "./getLegalEntityCountry-BK-HHa65.js";
|
|
10
10
|
import { i as noop } from "./genUtils-nphCwt1A.js";
|
|
11
|
-
import { c as individualBaseMapping } from "./processCapabilities-
|
|
11
|
+
import { c as individualBaseMapping } from "./processCapabilities-B75YIdXZ.js";
|
|
12
12
|
import { t as TaskTypes } from "./taskTypes-3vSkMBDm.js";
|
|
13
|
-
import { i as getTrustedFieldsProvider, r as getTrustedFields } from "./ListItem-
|
|
14
|
-
import { r as useToastContext } from "./useId-
|
|
15
|
-
import { n as useCapabilityProblems, t as getProblemsForEntity } from "./getProblemsForEntity-
|
|
16
|
-
import { n as isBafinSignatoryFlow, r as removeIdVerificationProblemsForBafinSignatory } from "./bafinUtils-
|
|
13
|
+
import { i as getTrustedFieldsProvider, r as getTrustedFields } from "./ListItem-n927geYb.js";
|
|
14
|
+
import { r as useToastContext } from "./useId-ChrmzN7R.js";
|
|
15
|
+
import { n as useCapabilityProblems, t as getProblemsForEntity } from "./getProblemsForEntity-FHk416BA.js";
|
|
16
|
+
import { n as isBafinSignatoryFlow, r as removeIdVerificationProblemsForBafinSignatory } from "./bafinUtils-CvQzDDfD.js";
|
|
17
17
|
import { t as useScenarios } from "./useScenarios-DfE71fl7.js";
|
|
18
|
-
import { t as IndividualDropin } from "./IndividualDropin-
|
|
19
|
-
import { t as getTrustedDecisionMakers } from "./getTrustedDecisionMakers-
|
|
18
|
+
import { t as IndividualDropin } from "./IndividualDropin-B6dY0iN3.js";
|
|
19
|
+
import { t as getTrustedDecisionMakers } from "./getTrustedDecisionMakers-DByctgob.js";
|
|
20
20
|
import { useEffect } from "preact/hooks";
|
|
21
21
|
import { jsx } from "preact/jsx-runtime";
|
|
22
22
|
import { skipToken } from "@tanstack/preact-query";
|