@adyen/kyc-components 4.26.0 → 4.27.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/{AcceptTermsOfServiceWorkflow-CBSueOOP.js → AcceptTermsOfServiceWorkflow-CLxIT19W.js} +4 -4
- package/dist/{Accordion-BAdwrgCR.js → Accordion-CTQfC17W.js} +1 -1
- package/dist/{AccountSetupRejected-CDm8QalJ.js → AccountSetupRejected-Cuu1cHgb.js} +2 -2
- package/dist/{AdaptiveWorkflow-foHLHsbM.js → AdaptiveWorkflow-Du4hN8Ry.js} +22 -22
- package/dist/{AdaptiveWorkflowComponent-B8rbDAPW.js → AdaptiveWorkflowComponent-CoOpFWm7.js} +5 -5
- package/dist/{AddressFields-Bvp46aUT.js → AddressFields-Dzoa4PU5.js} +33 -72
- package/dist/{Avatar-C2zeqSSB.js → Avatar-yJfk9A6l.js} +1 -1
- package/dist/{BusinessFinancingDropin-BSLyffh0.js → BusinessFinancingDropin-DP6b5D85.js} +123 -55
- package/dist/{BusinessFinancingPage-D6gMziy2.js → BusinessFinancingPage-BIGEXFdp.js} +6 -6
- package/dist/{BusinessRegistrationNumberField-C53lsFml.js → BusinessRegistrationNumberField-B2n9ugLK.js} +6 -6
- package/dist/{BusinessRegistrationNumberFieldGroup-CneaE9tx.js → BusinessRegistrationNumberFieldGroup-BvKp9WMt.js} +6 -6
- package/dist/{BusinessTypeSelectionPage-Dy0711dl.js → BusinessTypeSelectionPage-xRXq2lGM.js} +13 -13
- package/dist/{Button-Dwr6jvJZ.js → Button-BYafPrZH.js} +1 -1
- package/dist/{Checkbox-BQIr-4_9.js → Checkbox-qFA2J_1r.js} +8 -8
- package/dist/{ComponentGroup-4nWlAgLE.js → ComponentGroup-CyykPP2r.js} +3 -3
- package/dist/{ConstitutionalDocument-RK9aBLna.js → ConstitutionalDocument-DzLLKoWV.js} +19 -26
- package/dist/{ContactDetails-DiNSGqCa.js → ContactDetails-CcWafw_y.js} +5 -5
- package/dist/{ContextGuidance-qwuLBa1O.js → ContextGuidance-gAsOnDqD.js} +3 -3
- package/dist/{CountryField-vJCcPR1M.js → CountryField-Dxuy2L9C.js} +4 -4
- package/dist/{Currency-CE-ywuDo.js → Currency-CAEcQwe6.js} +16 -10
- package/dist/{CustomerSupport-CcurAHew.js → CustomerSupport-C1nrEyEr.js} +29 -16
- package/dist/{DateField-O2Vtrn7y.js → DateField-D8GSp5fV.js} +4 -4
- package/dist/{DebugModal-CZ8JW9pA.js → DebugModal-Bwhnd1v5.js} +10 -10
- package/dist/{DecisionMakerDetails-DC2Ej2ns.js → DecisionMakerDetails-DHsxYfa3.js} +79 -174
- package/dist/{DecisionMakerDetailsPage-Dy3bSLxg.js → DecisionMakerDetailsPage-DoisZYll.js} +9 -9
- package/dist/{DecisionMakers-CzV7Whwu.js → DecisionMakers-BD5J47Zs.js} +17 -18
- package/dist/{Dropzone-Dh1tAtrG.js → Dropzone-CTz4GiZE.js} +7 -7
- package/dist/{EmailField-BVVBcDtc.js → EmailField-DoEYalIM.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-Cfw9pWHA.js → EntityAssociation-aB7bppFQ.js} +6 -6
- package/dist/{ErrorPanel-BlLWphde.js → ErrorPanel-CuoQueZk.js} +10 -17
- package/dist/{GlobalEntryModal-DE543xEp.js → GlobalEntryModal-ZuajLl8B.js} +439 -298
- package/dist/{GlobalEntryPage-9U3nCl7d.js → GlobalEntryPage-WrN5mVJe.js} +7 -8
- package/dist/{Icon-_YUEZg1p.js → Icon-jVvV1zXc.js} +1 -1
- package/dist/{IdentityNumber-9bSJ9MaL.js → IdentityNumber-IDvVA7_z.js} +5 -5
- package/dist/{IdentityNumberFieldGroup-CJ-4hw-M.js → IdentityNumberFieldGroup-CW8lJ6_d.js} +2 -2
- package/dist/{IdentityScreeningWorkflow-Bha_FYLN.js → IdentityScreeningWorkflow-TfHCTDlp.js} +12 -13
- package/dist/{IndividualDropin-QrtK-WO2.js → IndividualDropin-MpaDWh9N.js} +147 -223
- package/dist/{IndustryCodeFieldGroup-uUq6Wlye.js → IndustryCodeFieldGroup-DsJF3GOE.js} +5 -5
- package/dist/{InputDate-DeCynmMZ.js → InputDate-Bmx3_p-j.js} +8 -4
- package/dist/{InputText-CimBq-8I.js → InputText-CGngUMdf.js} +2 -2
- package/dist/{Introduction-CB1vutfx.js → Introduction-Dt8pjcxt.js} +6 -6
- package/dist/{InvitedDecisionMakerComponent-C_692Uhy.js → InvitedDecisionMakerComponent-1oXTODfv.js} +13 -14
- package/dist/{JpAddressFields-CVKfCLia.js → JpAddressFields-DhzFwu0N.js} +9 -10
- package/dist/{LegalCompanyNameField-C6W0bxo-.js → LegalCompanyNameField-BsY3tJfX.js} +5 -5
- package/dist/{LegalRepresentativeDetailsPage-BH_ZofFb.js → LegalRepresentativeDetailsPage-C50GRV2l.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-DyKW1wuk.js → Modal-ChWNV9yG.js} +3 -3
- package/dist/{Name-DMfnyTY6.js → Name-C8hhvQlN.js} +4 -4
- package/dist/{NumberField-BsTw6i4a.js → NumberField-C7vHy7Yz.js} +4 -4
- package/dist/{PatriotActDisclosure-CZgaYJOE.js → PatriotActDisclosure-CAvpE8su.js} +10 -10
- package/dist/{PayoutDetailsDropin-4l6--jF2.js → PayoutDetailsDropin-ILM3oK4r.js} +41 -43
- package/dist/{PayoutDetailsPage-DHLrUoda.js → PayoutDetailsPage-DfZYYplh.js} +5 -5
- package/dist/{Review-DfUNBq2-.js → Review-D_I4FUVw.js} +6 -6
- package/dist/{RootBusinessDetailsPage-DGGRmDJr.js → RootBusinessDetailsPage-CoOUMflT.js} +4 -4
- package/dist/{RootBusinessLinesPage-0X_Pg8ZU.js → RootBusinessLinesPage-DYz9wrU_.js} +22 -23
- package/dist/{RootIndividualDetailsPage-C3g8yQkw.js → RootIndividualDetailsPage-C42YybJq.js} +6 -6
- package/dist/{Select-b8cQ38Yi.js → Select-BMGxcmZy.js} +92 -92
- package/dist/{SignPCIComponent-Cx7hmS8Z.js → SignPCIComponent-B4RkNT1l.js} +14 -14
- package/dist/{SingpassSelection-tt8yuzxX.js → SingpassSelection-Usq1Kdpp.js} +5 -5
- package/dist/{SoleProprietorshipPage-Z9PTJTCi.js → SoleProprietorshipPage-tEf2zwhT.js} +4 -4
- package/dist/{SourceOfFundsPage-DHsqkOJp.js → SourceOfFundsPage-BXG5weCA.js} +24 -24
- package/dist/{SourceOfFundsWorkflow-6rO4Wt3d.js → SourceOfFundsWorkflow-BWWLrVaR.js} +4 -4
- package/dist/StateField-TYw5No81.js +364 -0
- package/dist/{Step-CgpBaVfH.js → Step-D8w1jd5O.js} +5 -5
- package/dist/Summary-BwvaKucT.js +21 -0
- package/dist/{SummarySection-Dtx_G11I.js → SummarySection-5L--khYg.js} +5 -19
- package/dist/{Task-BsE88vzp.js → Task-dSDYu-xr.js} +7 -7
- package/dist/{TaskGroup-C7G7V91U.js → TaskGroup-298zewpP.js} +3 -3
- package/dist/{TaskListItem-CWu40zb6.js → TaskListItem-jRIQ_fJt.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-B_uFZqqw.js → TaxInformationFieldGroup-BkyZwtUe.js} +7 -7
- package/dist/{TaxReportingDropin-CJ3NB9BQ.js → TaxReportingDropin-BVohPujf.js} +13 -15
- package/dist/{TaxReportingWorkflow-B43zKtsp.js → TaxReportingWorkflow-BdVibdaP.js} +4 -4
- package/dist/{TermsOfServiceManagement-B64PXaru.js → TermsOfServiceManagement-Bh0BJ4wb.js} +46 -43
- package/dist/{TextArea-sSSxe4Li.js → TextArea-BaoeEZvH.js} +4 -4
- package/dist/{TextField-Dhohtwdr.js → TextField-BWevK7LS.js} +5 -5
- package/dist/{TrustDetailsPage-BUYCMRkb.js → TrustDetailsPage-B5x1-NPO.js} +61 -54
- package/dist/{TrustMemberCompanyPage-DIBfqWyQ.js → TrustMemberCompanyPage-Ck2UKJma.js} +5 -5
- package/dist/{TrustMemberIndividualPage-v-Yzq_IP.js → TrustMemberIndividualPage-CTUh7yn9.js} +4 -4
- package/dist/{TrustMemberRoleAndTypePage-VVMP9pyy.js → TrustMemberRoleAndTypePage-D5_AZAMj.js} +43 -36
- package/dist/{TrustMembersOverview-CpYhIhrk.js → TrustMembersOverview-Dbt3KQhv.js} +13 -13
- package/dist/{UboTaskItem-CR4jrdN5.js → UboTaskItem-CV0B4ONJ.js} +7 -7
- package/dist/{UnincorporatedPartnershipIndividualPage-1hKd_Css.js → UnincorporatedPartnershipIndividualPage-g9PpNHfH.js} +4 -4
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-CQ_jQfvD.js → UnincorporatedPartnershipMemberCompanyPage-Chd2k8jM.js} +5 -5
- package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-yyfNjmYl.js → UnincorporatedPartnershipMemberRoleAndTypePage-C7AvOkFK.js} +9 -9
- package/dist/{UnincorporatedPartnershipMembersOverview-BOlWKeWw.js → UnincorporatedPartnershipMembersOverview-m3TgX08K.js} +6 -6
- package/dist/{VerificationErrorAlert-BrR02W5c.js → VerificationErrorAlert-yOZ8yz_8.js} +3 -3
- package/dist/{WebsiteField-BxJd5tYn.js → WebsiteField-Cn_VPhTx.js} +5 -5
- package/dist/{Workflow-lip-FQM9.js → Workflow-BUgUDsPv.js} +6 -6
- package/dist/{accountHolderUtils-DKRzOKWL.js → accountHolderUtils-DhbLva46.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-DvMDkIIg.js → bafinUtils-4C7AJpnd.js} +519 -531
- package/dist/{constants-D0Os_pjB.js → constants-dKwpavyU.js} +6 -6
- package/dist/{dropinUtils-COH_5oC3.js → dropinUtils-D7sD4BX1.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-CljcfMBy.js → error-vhREufv_.js} +2 -2
- package/dist/formatDataForSummary-CNiewg8c.js +498 -0
- package/dist/{formatValidationError-DAnv_psF.js → formatValidationError-BO9k5bVJ.js} +2 -2
- package/dist/{getDefaultRegistrationNumberType-V2vtKe2c.js → getDefaultRegistrationNumberType-BWN86JDR.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-BpqwVNUc.js → getValidationError--VxsluPA.js} +2 -2
- package/dist/{legalArrangementUtils-Crgt_L7h.js → legalArrangementUtils-CHlmmcB8.js} +11 -2
- package/dist/{mapAddressLocalizationToJpAddressSchema-BBdzPvJl.js → mapAddressLocalizationToJpAddressSchema-Di3_rcrj.js} +2 -2
- package/dist/{mapExistingFile-BXfeQxev.js → mapExistingFile-CqbTLZ6i.js} +1 -1
- package/dist/mapJpAddressSchemaToAddressLocalizations-TLZ9foPF.js +19 -0
- package/dist/{mapTransferInstrumentToPayoutAccount-D64cPTBm.js → mapTransferInstrumentToPayoutAccount-BLq2P8NF.js} +2 -2
- package/dist/{processCapabilities-FL4-KAbd.js → processCapabilities-B75YIdXZ.js} +11 -4
- package/dist/{processValidationErrors-DbnkpAs6.js → processValidationErrors-DKn7wWTY.js} +4 -4
- package/dist/{resolveEnvironment-NlZWcle4.js → resolveEnvironment-CrNBwIpQ.js} +53 -16
- package/dist/roleMetadata-CmxqSnzp.js +57 -0
- package/dist/style.css +166 -230
- package/dist/styles-DYaAeu4q.js +166 -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/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-CRMDL7v8.js → unincorporatedPartnership-Dr3lPgDv.js} +38 -4
- package/dist/{useBusinessDetailsData-CcxnigRY.js → useBusinessDetailsData-DrN9ZzIG.js} +100 -90
- package/dist/{useCanSeeIntroduction-COjEJwSQ.js → useCanSeeIntroduction-BDarBkmx.js} +2 -2
- package/dist/useCreateLegalEntity-CgzVD39K.js +24 -0
- package/dist/{useDataMissingRemediations-DKjYzfe2.js → useDataMissingRemediations-BfC7ECSn.js} +1 -1
- package/dist/{useForm-B-WTDdmc.js → useForm-Cibudto5.js} +3 -3
- package/dist/{useHideTaskStepper-BgCN--mG.js → useHideTaskStepper-Betx9MGy.js} +1 -1
- package/dist/{useId-DHoBdW3X.js → useId-e2xn6OME.js} +2 -2
- package/dist/{useNavigate-CQxBS2lg.js → useNavigate-DxEfo192.js} +33 -33
- package/dist/{useSalesChannels-y8Arf4LC.js → useSalesChannels-C09EqYFN.js} +1 -1
- package/dist/{useTaskLandedEvent-B4E45deF.js → useTaskLandedEvent-C-kML6lH.js} +1 -1
- package/dist/{useTrustMembers-BN5zllxF.js → useTrustMembers-CZ28rgNA.js} +3 -3
- package/dist/{useUnincorporatedPartnershipMembers-DcfQJdVZ.js → useUnincorporatedPartnershipMembers-e3nDscEc.js} +2 -2
- package/dist/{utils-CHeUbOCF.js → utils-C3-aLHsN.js} +3 -3
- package/dist/{utils-Cfwr1ukp.js → utils-C_z60qSD.js} +4 -5
- package/dist/{utils-BFxg3gPM.js → utils-ChZNfG5_.js} +1 -1
- package/dist/utils-gszwUnoh.js +49 -0
- package/dist/{validate-DTxPR5js.js → validate-BDG97Hw4.js} +4 -4
- package/dist/{validate-DxdZ3j2v.js → validate-C1VibHZH.js} +26 -2
- package/dist/{validate-cWwt79cT.js → validate-Dve-kxSi.js} +11 -5
- package/dist/{validate-BbY2FS3b.js → validate-bah41KLb.js} +20 -9
- 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-fSYeyb3x.js +0 -296
- package/dist/en-US-U0d3NI20.js +0 -7
- package/dist/mapJpAddressSchemaToAddressLocalizations-D5Z5Swb4.js +0 -75
- package/dist/mapLegalEntityToIndividualSchema-DhZ0rxIP.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,64 +1,65 @@
|
|
|
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] = "70c91636-b265-4a6d-ba19-47416780a67f", e._sentryDebugIdIdentifier = "sentry-dbid-70c91636-b265-4a6d-ba19-47416780a67f");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { r as useTranslation, t as Trans } from "./translation-CpH8D2NK.js";
|
|
6
|
-
import { C as
|
|
6
|
+
import { C as Alert, D as datasetUtilities, E as datasetIdentifier, K as NO_ALPHABET_UNICODE_REGEX, O as useAllowedCountries, T as useDataset, U as INDIVIDUAL_VALID_CHAR_REGEX, V as EMOJI_REGEX, c as isLegalRepresentativeNeeded, ct as isInvalidName, dt as matchesRegex, ft as standardKanjiValidator, gt as useAccountHolder, it as hasText, j as Header, k as useCapabilities, nt as hasMaximumTwoRepeatedCharacters, o as getAgeRangeForLegalRepresentative, ot as isEmpty, pt as standardKatakanaValidator, r as useGetTaskStatus, s as getAgeToday, vt as useVersionConfiguration } from "./resolveEnvironment-CrNBwIpQ.js";
|
|
7
7
|
import { t as createLogger } from "./logger-Z8AeTE4x.js";
|
|
8
8
|
import { t as Typography } from "./Typography-CAc_f5Iq.js";
|
|
9
9
|
import { t as Loader } from "./Loader-BDaKGf77.js";
|
|
10
|
-
import { t as Button } from "./Button-
|
|
10
|
+
import { t as Button } from "./Button-BYafPrZH.js";
|
|
11
11
|
import { n as httpGet, r as httpPost, s as useApiContext } from "./http-C8rt2BZk.js";
|
|
12
12
|
import { t as getLegalEntityCountry } from "./getLegalEntityCountry-BK-HHa65.js";
|
|
13
13
|
import { t as useSettingsContext } from "./useSettingsContext-Bpf4UqRT.js";
|
|
14
|
-
import { a as objectsDeepEqual, n as doArraysMatch, r as drop
|
|
14
|
+
import { a as objectsDeepEqual, n as doArraysMatch, r as drop } from "./genUtils-nphCwt1A.js";
|
|
15
15
|
import { i as TaskStatuses } from "./taskStatus-BtekPA8E.js";
|
|
16
16
|
import { r as euCountries, t as CountryCodes } from "./country-code-CJk2hdPu.js";
|
|
17
|
-
import { l as individualDocumentMapping, s as individualApiKeyMapping, u as individualObscuredFields } from "./processCapabilities-
|
|
17
|
+
import { l as individualDocumentMapping, s as individualApiKeyMapping, u as individualObscuredFields } from "./processCapabilities-B75YIdXZ.js";
|
|
18
18
|
import { t as TaskTypes } from "./taskTypes-3vSkMBDm.js";
|
|
19
19
|
import { n as attachNomineeToRole, r as filterOutUnwantedAssociationsIfRootLE, s as getOwnEntityAssociations, t as allowedCountriesForNominee, u as hasNomineesChanged } from "./entityAssociationUtil-BlfcBl3i.js";
|
|
20
20
|
import { t as DecisionMakerTypes } from "./decisionMaker-CR0qaGWQ.js";
|
|
21
21
|
import { t as Scenarios } from "./scenarios-nibtmpSb.js";
|
|
22
22
|
import { s as getAvailableDecisionMakerRoleTypes, t as getAllowedDecisionMakerRoles } from "./decisionMakerRoles-DA8MK9Dh.js";
|
|
23
23
|
import { i as isLowRiskCountry } from "./country-WYlusjTL.js";
|
|
24
|
-
import { i as useToggleContext } from "./Checkbox-
|
|
25
|
-
import { i as useAnalyticsContext, t as Modal } from "./Modal-
|
|
26
|
-
import { a as SettingNames, t as InputText } from "./InputText-
|
|
27
|
-
import { r as useToastContext } from "./useId-
|
|
28
|
-
import { a as
|
|
29
|
-
import {
|
|
30
|
-
import { r as formatObject, s as Confirm } from "./utils-
|
|
31
|
-
import {
|
|
32
|
-
import { B as
|
|
33
|
-
import {
|
|
34
|
-
import { n as useFormRouterContext, t as ErrorPanel } from "./ErrorPanel-BlLWphde.js";
|
|
35
|
-
import { G as mapSchemaFieldsToApiScriptLocalization, U as isEmpty$1, a as idNowPostSubmit, b as toFullWidth, c as DataConflictsModal, i as idNowModalChildEntityId, n as isBafinSignatoryFlow, o as shouldShowIdNowModal, s as showIdNowModal, u as TaxInformationField, v as taxInformationDefaultFieldConfig, w as taxIdNumberOptions, x as isJapanLocalizationEnabled, y as taxInformationDefaultFieldMetadata } from "./bafinUtils-DvMDkIIg.js";
|
|
24
|
+
import { i as useToggleContext } from "./Checkbox-qFA2J_1r.js";
|
|
25
|
+
import { i as useAnalyticsContext, t as Modal } from "./Modal-ChWNV9yG.js";
|
|
26
|
+
import { a as SettingNames, t as InputText } from "./InputText-CGngUMdf.js";
|
|
27
|
+
import { r as useToastContext } from "./useId-e2xn6OME.js";
|
|
28
|
+
import { a as resolveFieldMetadata, c as getPropsFromConfigurations, i as convertFullToHalf, l as LandingLayout, n as Image, r as createFormRules, s as composePerScenarioFormConfigurations } from "./unincorporatedPartnership-Dr3lPgDv.js";
|
|
29
|
+
import { a as translateTranslatable, o as Field, p as LoaderWrapper, t as Select } from "./Select-BMGxcmZy.js";
|
|
30
|
+
import { o as StructuredList, r as formatObject, s as Confirm } from "./utils-C3-aLHsN.js";
|
|
31
|
+
import { f as addressFields, h as useUpdateLegalEntity, m as isEmpty$1, p as isJapanLocalizationEnabled, s as addressFieldRule } from "./StateField-TYw5No81.js";
|
|
32
|
+
import { B as isTruthyValidator, R as useMultiForm, V as useFormComposer, W as FormContextProvider, a as MaskedInput, b as useFormContext, h as isValidationError, n as getRequiredForms, o as InputEmail, r as RadioGroup, t as addValidityToForms, u as CountryField, v as createFormUtils, x as FormFlow, y as mergeFieldMetadataIntoProps } from "./dropinUtils-D7sD4BX1.js";
|
|
33
|
+
import { B as mapSchemaFieldsToApiScriptLocalization, U as taxIdNumberOptions, a as idNowPostSubmit, b as toFullWidth, c as DataConflictsModal, i as idNowModalChildEntityId, n as isBafinSignatoryFlow, o as shouldShowIdNowModal, s as showIdNowModal, u as TaxInformationField, v as taxInformationDefaultFieldConfig, y as taxInformationDefaultFieldMetadata } from "./bafinUtils-4C7AJpnd.js";
|
|
36
34
|
import { t as getIndividualLegalEntityName } from "./getName-Cii7OyRd.js";
|
|
37
35
|
import { t as useScenarios } from "./useScenarios-DfE71fl7.js";
|
|
38
|
-
import {
|
|
39
|
-
import { n as
|
|
40
|
-
import {
|
|
41
|
-
import { i as
|
|
42
|
-
import { t as
|
|
43
|
-
import {
|
|
44
|
-
import { n as isMaintenanceModeError, t as processValidationErrors } from "./processValidationErrors-
|
|
36
|
+
import { t as useCreateLegalEntity } from "./useCreateLegalEntity-CgzVD39K.js";
|
|
37
|
+
import { a as getSubmittableTaxInformation, c as individualFormDefaultData, i as getOnfidoIdentityTypeToApiIdentityTypeMap, l as shouldNavigateToAdditionalPersonalDetailsForMissingData, n as SummaryBulletList, o as GuidanceQuestion, r as mapLegalEntityToIndividualSchema, s as GuidanceQuestionValues, t as formatDataForSummary, u as useCreateInvitation } from "./formatDataForSummary-CNiewg8c.js";
|
|
38
|
+
import { n as useProviderStatus, t as AddressFields } from "./AddressFields-Dzoa4PU5.js";
|
|
39
|
+
import { a as contactDetailsValidationRules, c as getAsyncPhoneValidationRules, i as phonePrefixes_default, l as getPhonePlaceholder, n as contactDetailFields, o as defaultFieldMetadata, r as PhoneField, s as fieldConfig, t as ContactDetails, u as useValidatePhoneNumberImperatively } from "./ContactDetails-CcWafw_y.js";
|
|
40
|
+
import { i as useScenarioConfiguration, n as getPage, r as getPageName, t as mapExistingFile } from "./mapExistingFile-CqbTLZ6i.js";
|
|
41
|
+
import { t as useTaskLandedEvent } from "./useTaskLandedEvent-C-kML6lH.js";
|
|
42
|
+
import { n as isMaintenanceModeError, t as processValidationErrors } from "./processValidationErrors-DKn7wWTY.js";
|
|
45
43
|
import { a as getFileExtention, c as mergeAttachments, n as documentApiUtils, o as getIdDocument, r as getDocument, s as isIdDocumentType, t as createDocumentRequest, u as getLocalizedIdDocumentTypeOptions } from "./documentUtils-6K3LdjjN.js";
|
|
46
|
-
import { i as getFieldsWithExistingData, n as MemoizedDocumentUpload, r as DocumentGuidance, t as PatriotActDisclosure } from "./PatriotActDisclosure-
|
|
47
|
-
import { t as
|
|
48
|
-
import { n as
|
|
49
|
-
import {
|
|
50
|
-
import { t as
|
|
51
|
-
import { t as addressValidators } from "./validate-cWwt79cT.js";
|
|
44
|
+
import { i as getFieldsWithExistingData, n as MemoizedDocumentUpload, r as DocumentGuidance, t as PatriotActDisclosure } from "./PatriotActDisclosure-CAvpE8su.js";
|
|
45
|
+
import { n as omitObscuredFieldsIfUnchanged, t as AdyenKycSdkError } from "./error-vhREufv_.js";
|
|
46
|
+
import { a as getAsyncIdNumberValidationRule, i as defaultFieldMetadata$1, n as idNumberFields, o as licenseCardNumberDefaultConfig, r as defaultFieldConfig, s as licenseCardNumberDefaultMetadata, t as IdentityNumber } from "./IdentityNumber-IDvVA7_z.js";
|
|
47
|
+
import { t as InputDate } from "./InputDate-Bmx3_p-j.js";
|
|
48
|
+
import { t as addressValidators } from "./validate-Dve-kxSi.js";
|
|
52
49
|
import { n as emailPattern } from "./basePatterns-plHFNzgJ.js";
|
|
53
|
-
import { t as
|
|
54
|
-
import { t as
|
|
50
|
+
import { n as useFormRouterContext, t as ErrorPanel } from "./ErrorPanel-CuoQueZk.js";
|
|
51
|
+
import { t as TextArea } from "./TextArea-BaoeEZvH.js";
|
|
52
|
+
import { t as Dropzone } from "./Dropzone-CTz4GiZE.js";
|
|
55
53
|
import { n as getFieldProps, r as getFormProps } from "./getProps-DVqK7eRw.js";
|
|
56
|
-
import { t as Link } from "./Link-
|
|
54
|
+
import { t as Link } from "./Link-DwPkGikd.js";
|
|
57
55
|
import { r as formatDateObj } from "./InputDate.utils-D4Ov0KIl.js";
|
|
58
|
-
import { t as ContextGuidance } from "./ContextGuidance-
|
|
59
|
-
import { n as nameFields, t as Name } from "./Name-
|
|
60
|
-
import { t as formatValidationError } from "./formatValidationError-
|
|
61
|
-
import { a as fromIndividualConflictSchema, c as createAddressConflictRule, d as useExtractDocumentInformation, i as mapExtractionResultToSchema, l as useDataConflicts, n as UploadedDocument, o as toIndividualConflictSchema, r as useIdVerificationToken, s as IdVerificationMethod_module_default, t as validateExtractionResult, u as addressToString } from "./validateExtractionResult-
|
|
56
|
+
import { t as ContextGuidance } from "./ContextGuidance-gAsOnDqD.js";
|
|
57
|
+
import { n as nameFields, t as Name } from "./Name-C8hhvQlN.js";
|
|
58
|
+
import { t as formatValidationError } from "./formatValidationError-BO9k5bVJ.js";
|
|
59
|
+
import { a as fromIndividualConflictSchema, c as createAddressConflictRule, d as useExtractDocumentInformation, i as mapExtractionResultToSchema, l as useDataConflicts, n as UploadedDocument, o as toIndividualConflictSchema, r as useIdVerificationToken, s as IdVerificationMethod_module_default, t as validateExtractionResult, u as addressToString } from "./validateExtractionResult-D3AuQo5-.js";
|
|
60
|
+
import { t as mapJpAddressSchemaToAddressLocalizations } from "./mapJpAddressSchemaToAddressLocalizations-TLZ9foPF.js";
|
|
61
|
+
import { t as Summary } from "./Summary-BwvaKucT.js";
|
|
62
|
+
import { t as SummarySection } from "./SummarySection-5L--khYg.js";
|
|
62
63
|
import { Suspense, lazy, memo } from "preact/compat";
|
|
63
64
|
import { useCallback as useCallback$1, useEffect as useEffect$1, useMemo as useMemo$1, useRef as useRef$1, useState as useState$1 } from "preact/hooks";
|
|
64
65
|
import { Fragment as Fragment$1, jsx, jsxs } from "preact/jsx-runtime";
|
|
@@ -290,25 +291,6 @@ var basicDetailsValidators = ({ isFeatureEnabled = () => false, isSettingEnabled
|
|
|
290
291
|
...localizedNameValidationRulesV4(isSettingEnabled, country)
|
|
291
292
|
});
|
|
292
293
|
//#endregion
|
|
293
|
-
//#region src/components/Individual/forms/IdDocumentUpload/types.ts
|
|
294
|
-
var onfidoDocumentTypeMapping = [
|
|
295
|
-
{
|
|
296
|
-
id: "driversLicense",
|
|
297
|
-
name: "driversLicense",
|
|
298
|
-
hasBackPage: true
|
|
299
|
-
},
|
|
300
|
-
{
|
|
301
|
-
id: "identityCard",
|
|
302
|
-
name: "identityCard",
|
|
303
|
-
hasBackPage: true
|
|
304
|
-
},
|
|
305
|
-
{
|
|
306
|
-
id: "passport",
|
|
307
|
-
name: "passport",
|
|
308
|
-
hasBackPage: false
|
|
309
|
-
}
|
|
310
|
-
];
|
|
311
|
-
//#endregion
|
|
312
294
|
//#region src/api/idNowProvider/useIdNowProvider.ts
|
|
313
295
|
var getIdNowProviderIdentificationStatus = async (rootLegalEntityId, baseUrl, legalEntityId) => {
|
|
314
296
|
return httpGet({
|
|
@@ -871,9 +853,10 @@ var REMEDIATION_CODES_UPLOAD_ID = [
|
|
|
871
853
|
"1_302",
|
|
872
854
|
"1_303"
|
|
873
855
|
];
|
|
874
|
-
var individualRules = ({ matchingScenario, data, country, taskType, isFeatureEnabled = () => false, isSettingEnabled = () => false, rootLegalEntity, problems }) => {
|
|
856
|
+
var individualRules = ({ matchingScenario, data, country, taskType, isFeatureEnabled = () => false, isSettingEnabled = () => false, rootLegalEntity, problems, version }) => {
|
|
875
857
|
/** A decision maker is localized by the country of the entity they belong to. */
|
|
876
858
|
const japanTargetCountry = () => taskType === TaskTypes.DECISION_MAKER && rootLegalEntity && getLegalEntityCountry(rootLegalEntity) || country;
|
|
859
|
+
const addressFieldRequired = (field) => addressFieldRule(field, country, isSettingEnabled, version);
|
|
877
860
|
return createFormRules({
|
|
878
861
|
countryUsesTaxId: () => {
|
|
879
862
|
if (matchingScenario?.includes(Scenarios.L_TAXINFO) && TAX_ID_REQUIRED_COUNTRIES.includes(country)) return "REQUIRED";
|
|
@@ -982,23 +965,12 @@ var individualRules = ({ matchingScenario, data, country, taskType, isFeatureEna
|
|
|
982
965
|
},
|
|
983
966
|
legalRepresentativeRelationshipRequired: () => taskType === TaskTypes.LEGAL_REPRESENTATIVE_DETAILS ? REQUIRED : void 0,
|
|
984
967
|
isProofOfRelationshipRequired: () => void 0,
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
return getAddressSchemaForCountry(data?.additionalPersonalDetails?.country).includes("street2") ? "OPTIONAL" : void 0;
|
|
992
|
-
},
|
|
993
|
-
postalCodeIfRequiredForCountry: () => {
|
|
994
|
-
return getAddressSchemaForCountry(data?.additionalPersonalDetails?.country).includes("postalCode") ? "REQUIRED" : void 0;
|
|
995
|
-
},
|
|
996
|
-
cityIfRequiredForCountry: () => {
|
|
997
|
-
return getAddressSchemaForCountry(data?.additionalPersonalDetails?.country).includes("city") ? "REQUIRED" : void 0;
|
|
998
|
-
},
|
|
999
|
-
stateOrProvinceIfRequiredForCountry: () => {
|
|
1000
|
-
return getAddressSchemaForCountry(data?.additionalPersonalDetails?.country).includes("stateOrProvince") && COUNTRIES_WITH_STATES_DATASET.includes(data?.additionalPersonalDetails?.country ?? country) ? "REQUIRED" : void 0;
|
|
1001
|
-
},
|
|
968
|
+
streetIfRequiredForCountry: () => addressFieldRequired("street"),
|
|
969
|
+
street2IfRequiredForCountry: () => addressFieldRequired("street2"),
|
|
970
|
+
dependentLocalityIfRequiredForCountry: () => addressFieldRequired("dependentLocality"),
|
|
971
|
+
postalCodeIfRequiredForCountry: () => addressFieldRequired("postalCode"),
|
|
972
|
+
cityIfRequiredForCountry: () => addressFieldRequired("city"),
|
|
973
|
+
stateOrProvinceIfRequiredForCountry: () => addressFieldRequired("stateOrProvince"),
|
|
1002
974
|
nomineeDirectorRequiredForCountry: () => {
|
|
1003
975
|
if (allowedCountriesForNominee.includes(data?.additionalPersonalDetails?.country ?? country) && data?.basicDetails?.role?.includes(DecisionMakerTypes.DIRECTOR)) return "REQUIRED";
|
|
1004
976
|
},
|
|
@@ -1268,7 +1240,7 @@ var additionalIdentityInfoFields = [
|
|
|
1268
1240
|
];
|
|
1269
1241
|
//#endregion
|
|
1270
1242
|
//#region src/components/Individual/forms/AdditionalPersonalDetails/AdditionalPersonalDetails.tsx
|
|
1271
|
-
var LazyJpAddressFields = lazy(async () => (await import("./JpAddressFields-
|
|
1243
|
+
var LazyJpAddressFields = lazy(async () => (await import("./JpAddressFields-DhzFwu0N.js")).JpAddressFields);
|
|
1272
1244
|
var additionalPersonalDetailsFields = [
|
|
1273
1245
|
"birthDate",
|
|
1274
1246
|
...idNumberFields,
|
|
@@ -1277,8 +1249,6 @@ var additionalPersonalDetailsFields = [
|
|
|
1277
1249
|
"nationality",
|
|
1278
1250
|
"placeOfBirth",
|
|
1279
1251
|
...addressFields,
|
|
1280
|
-
...JP_ADDRESS_REQUIRED_FIELDS,
|
|
1281
|
-
"jaHaniStreet",
|
|
1282
1252
|
"taxInformation"
|
|
1283
1253
|
];
|
|
1284
1254
|
function AdditionalPersonalDetails(props) {
|
|
@@ -1302,26 +1272,16 @@ function AdditionalPersonalDetails(props) {
|
|
|
1302
1272
|
};
|
|
1303
1273
|
const isRootIndividual = taskType === TaskTypes.INDIVIDUAL;
|
|
1304
1274
|
const canEditCountry = isSettingEnabled(SettingNames.AllowPrefilledCountryEdit) || isDecisionMakerTask(taskType);
|
|
1305
|
-
const
|
|
1275
|
+
const showJapanLocalization = isJapanLocalizationEnabled(isSettingEnabled, country);
|
|
1276
|
+
const buildProps = () => getFieldProps({
|
|
1306
1277
|
...props,
|
|
1307
1278
|
fieldValidationErrors,
|
|
1308
1279
|
handleFieldChange
|
|
1309
|
-
};
|
|
1310
|
-
const
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
residentialAddress: {
|
|
1315
|
-
...buildJpProps(),
|
|
1316
|
-
handleFieldChange
|
|
1317
|
-
}
|
|
1318
|
-
} : {
|
|
1319
|
-
showJapanLocalization: false,
|
|
1320
|
-
residentialAddress: {
|
|
1321
|
-
...buildProps(),
|
|
1322
|
-
handleFieldChange
|
|
1323
|
-
}
|
|
1324
|
-
};
|
|
1280
|
+
}, addressFields);
|
|
1281
|
+
const addressFieldProps = { residentialAddress: {
|
|
1282
|
+
...buildProps(),
|
|
1283
|
+
handleFieldChange
|
|
1284
|
+
} };
|
|
1325
1285
|
return /* @__PURE__ */ jsxs("form", {
|
|
1326
1286
|
"aria-describedby": "ariaErrorField",
|
|
1327
1287
|
children: [
|
|
@@ -1353,7 +1313,7 @@ function AdditionalPersonalDetails(props) {
|
|
|
1353
1313
|
allowedCountries: isRootIndividual ? allowedCountries : void 0,
|
|
1354
1314
|
handleChangeFor: handleFieldChange
|
|
1355
1315
|
}),
|
|
1356
|
-
|
|
1316
|
+
showJapanLocalization ? /* @__PURE__ */ jsx(Suspense, {
|
|
1357
1317
|
fallback: /* @__PURE__ */ jsx(Loader, {}),
|
|
1358
1318
|
children: /* @__PURE__ */ jsx(LazyJpAddressFields, {
|
|
1359
1319
|
...addressFieldProps.residentialAddress,
|
|
@@ -3373,7 +3333,7 @@ var adjustOnfidoIdentificationData = (data, apiData) => {
|
|
|
3373
3333
|
};
|
|
3374
3334
|
//#endregion
|
|
3375
3335
|
//#region src/components/Individual/mapping/mapIndividualSchemaToLegalEntity.ts
|
|
3376
|
-
var mapIndividualSchemaToLegalEntity = (individual,
|
|
3336
|
+
var mapIndividualSchemaToLegalEntity = (individual, matchingScenario, existingTaxInformation, countryOfResidence) => {
|
|
3377
3337
|
const legalEntity = {
|
|
3378
3338
|
...formatObject(individual, individualApiKeyMapping),
|
|
3379
3339
|
type: "individual"
|
|
@@ -3403,8 +3363,7 @@ var mapIndividualSchemaToLegalEntity = (individual, isFeatureEnabled, matchingSc
|
|
|
3403
3363
|
else delete legalEntity?.individual?.phone;
|
|
3404
3364
|
}
|
|
3405
3365
|
if (legalEntity.individual?.taxInformation) {
|
|
3406
|
-
const
|
|
3407
|
-
const taxInformation = legalEntity.individual.taxInformation.filter((taxInfo) => (taxInfo.country === currentCountry || existingTaxInformation?.some((savedTaxInfo) => savedTaxInfo.country === taxInfo.country)) && (taxInfo.number?.trim() || taxInfo.numberAbsent));
|
|
3366
|
+
const taxInformation = getSubmittableTaxInformation(legalEntity.individual.taxInformation, individual.additionalPersonalDetails?.country ?? countryOfResidence, existingTaxInformation);
|
|
3408
3367
|
if (taxInformation.length) legalEntity.individual.taxInformation = taxInformation;
|
|
3409
3368
|
else delete legalEntity.individual.taxInformation;
|
|
3410
3369
|
}
|
|
@@ -3422,8 +3381,9 @@ var identityOnfidoBase = {
|
|
|
3422
3381
|
jobTitle: { rule: "jobTitleIfRequiredForRole" },
|
|
3423
3382
|
placeOfBirth: { rule: "isPlaceOfBirthRequired" },
|
|
3424
3383
|
nationality: { rule: "nationalityIfRequiredForRole" },
|
|
3425
|
-
street: { rule: "
|
|
3426
|
-
street2: { rule: "
|
|
3384
|
+
street: { rule: "streetIfRequiredForCountry" },
|
|
3385
|
+
street2: { rule: "street2IfRequiredForCountry" },
|
|
3386
|
+
dependentLocality: { rule: "dependentLocalityIfRequiredForCountry" },
|
|
3427
3387
|
country: { rule: "REQUIRED" },
|
|
3428
3388
|
postalCode: { rule: "postalCodeIfRequiredForCountry" },
|
|
3429
3389
|
city: { rule: "cityIfRequiredForCountry" },
|
|
@@ -3622,6 +3582,65 @@ var IndividualGettingStarted = ({ handleGetStartedClick, handleCancelClick }) =>
|
|
|
3622
3582
|
})]
|
|
3623
3583
|
});
|
|
3624
3584
|
};
|
|
3585
|
+
var IndividualSummary_module_default = {
|
|
3586
|
+
"summary-content-logo": "_summary-content-logo_1esre_1",
|
|
3587
|
+
summaryContentLogo: "_summary-content-logo_1esre_1"
|
|
3588
|
+
};
|
|
3589
|
+
//#endregion
|
|
3590
|
+
//#region src/components/Individual/tasks/IndividualDropin/IndividualSummary.tsx
|
|
3591
|
+
var onfidoLogo = lazy(() => import("./onfido-logo-CMRuSr8M.js"));
|
|
3592
|
+
/**
|
|
3593
|
+
* The summary step of the individual task, passed to `FormFlow` as its `summaryComponent`.
|
|
3594
|
+
*
|
|
3595
|
+
* Row formatting lives in {@link formatDataForSummary}. This component owns the lazily loaded
|
|
3596
|
+
* provider logo, which the formatter cannot, and composes the sections into `Summary`.
|
|
3597
|
+
*/
|
|
3598
|
+
var IndividualSummary = ({ data, forms, taskType, country, isSettingEnabled, problems, handleEditForm, existingTaxInformation }) => {
|
|
3599
|
+
const { t, i18n } = useTranslation(["common", "individual"]);
|
|
3600
|
+
const sections = useMemo$1(() => formatDataForSummary({
|
|
3601
|
+
data,
|
|
3602
|
+
forms,
|
|
3603
|
+
t,
|
|
3604
|
+
language: i18n.language,
|
|
3605
|
+
taskType,
|
|
3606
|
+
country,
|
|
3607
|
+
isSettingEnabled,
|
|
3608
|
+
existingTaxInformation,
|
|
3609
|
+
instantVerificationDetails: /* @__PURE__ */ jsx(Image, {
|
|
3610
|
+
lazyLoadedImage: onfidoLogo,
|
|
3611
|
+
className: IndividualSummary_module_default.summaryContentLogo,
|
|
3612
|
+
alt: "onfido-logo"
|
|
3613
|
+
})
|
|
3614
|
+
}), [
|
|
3615
|
+
data,
|
|
3616
|
+
forms,
|
|
3617
|
+
t,
|
|
3618
|
+
i18n.language,
|
|
3619
|
+
taskType,
|
|
3620
|
+
country,
|
|
3621
|
+
isSettingEnabled,
|
|
3622
|
+
existingTaxInformation
|
|
3623
|
+
]);
|
|
3624
|
+
const allValidationErrors = problems?.validationErrors ? Object.values(problems.validationErrors).reduce((acc, errors) => ({
|
|
3625
|
+
...acc,
|
|
3626
|
+
...errors
|
|
3627
|
+
}), {}) : void 0;
|
|
3628
|
+
const allVerificationErrors = problems?.verificationErrors ? Object.values(problems.verificationErrors).reduce((acc, errors) => ({
|
|
3629
|
+
...acc,
|
|
3630
|
+
...errors
|
|
3631
|
+
}), {}) : void 0;
|
|
3632
|
+
return /* @__PURE__ */ jsxs(Summary, { children: [/* @__PURE__ */ jsx(ErrorPanel, {
|
|
3633
|
+
validationErrors: allValidationErrors,
|
|
3634
|
+
verificationErrors: allVerificationErrors,
|
|
3635
|
+
formUtils: createFormUtils({ labels: {} }, t),
|
|
3636
|
+
id: "ariaErrorField"
|
|
3637
|
+
}), sections.map(({ formId, label, items, bullets, hideEditButton }) => /* @__PURE__ */ jsx(SummarySection, {
|
|
3638
|
+
formId,
|
|
3639
|
+
label,
|
|
3640
|
+
onEdit: hideEditButton ? void 0 : handleEditForm,
|
|
3641
|
+
children: bullets ? /* @__PURE__ */ jsx(SummaryBulletList, { items: bullets }) : /* @__PURE__ */ jsx(StructuredList, { items })
|
|
3642
|
+
}, formId))] });
|
|
3643
|
+
};
|
|
3625
3644
|
//#endregion
|
|
3626
3645
|
//#region src/components/Individual/tasks/IndividualDropin/IndividualDropin.tsx
|
|
3627
3646
|
var parseIndividualScenarios = (scenarios) => composePerScenarioFormConfigurations(scenarios, individualFieldsPerScenario);
|
|
@@ -3635,6 +3654,7 @@ function IndividualDropin({ taskType = TaskTypes.INDIVIDUAL, parentLegalEntity,
|
|
|
3635
3654
|
const { showToast, clearToasts } = useToastContext();
|
|
3636
3655
|
const { isFeatureEnabled } = useToggleContext();
|
|
3637
3656
|
const { isSettingEnabled } = useSettingsContext();
|
|
3657
|
+
const { data: versionConfiguration } = useVersionConfiguration();
|
|
3638
3658
|
const queryClient = useQueryClient();
|
|
3639
3659
|
const { data: providerStatus } = useProviderStatus({
|
|
3640
3660
|
providers: ["idDocument"],
|
|
@@ -3670,12 +3690,10 @@ function IndividualDropin({ taskType = TaskTypes.INDIVIDUAL, parentLegalEntity,
|
|
|
3670
3690
|
isInvitedEntity,
|
|
3671
3691
|
invitedEntityDetails
|
|
3672
3692
|
]);
|
|
3673
|
-
const [matchingScenario, setMatchingScenario] = useState$1();
|
|
3674
3693
|
const [validationErrors, setValidationErrors] = useState$1();
|
|
3675
3694
|
const [loadingStatus, setLoadingStatus] = useState$1("success");
|
|
3676
3695
|
const [existingAttachments, setExistingAttachments] = useState$1();
|
|
3677
3696
|
const [documents, setDocuments] = useState$1();
|
|
3678
|
-
const [country, setCountry] = useState$1(dataFromResponse?.additionalPersonalDetails?.country ?? parentCountry);
|
|
3679
3697
|
const [derivedProps, setDerivedProps] = useState$1();
|
|
3680
3698
|
const [nextHandler, setNextHandler] = useState$1();
|
|
3681
3699
|
const [hasBafinNavigated, setHasBafinNavigated] = useState$1(false);
|
|
@@ -3694,10 +3712,10 @@ function IndividualDropin({ taskType = TaskTypes.INDIVIDUAL, parentLegalEntity,
|
|
|
3694
3712
|
basicDetails: basicDetailsValidators({
|
|
3695
3713
|
isFeatureEnabled,
|
|
3696
3714
|
isSettingEnabled,
|
|
3697
|
-
country
|
|
3715
|
+
country: data?.additionalPersonalDetails?.country ?? parentCountry
|
|
3698
3716
|
}),
|
|
3699
3717
|
additionalPersonalDetails: additionalPersonalDetailsValidators({
|
|
3700
|
-
country: data?.additionalPersonalDetails?.country ??
|
|
3718
|
+
country: data?.additionalPersonalDetails?.country ?? parentCountry,
|
|
3701
3719
|
isFeatureEnabled,
|
|
3702
3720
|
isSettingEnabled,
|
|
3703
3721
|
taskType,
|
|
@@ -3711,7 +3729,7 @@ function IndividualDropin({ taskType = TaskTypes.INDIVIDUAL, parentLegalEntity,
|
|
|
3711
3729
|
}),
|
|
3712
3730
|
inviteDetails: inviteDetailsValidators()
|
|
3713
3731
|
}), [
|
|
3714
|
-
|
|
3732
|
+
parentCountry,
|
|
3715
3733
|
dataFromResponse.additionalPersonalDetails?.idNumber,
|
|
3716
3734
|
t,
|
|
3717
3735
|
isFeatureEnabled,
|
|
@@ -3753,14 +3771,12 @@ additionalPersonalDetails: check4DigitSsnFailed(problems?.verificationErrors?.ad
|
|
|
3753
3771
|
rootLegalEntityId: rootLegalEntityId.value
|
|
3754
3772
|
});
|
|
3755
3773
|
const { data, requiredFields } = form;
|
|
3756
|
-
|
|
3757
|
-
setCountry(data?.additionalPersonalDetails?.country ?? parentCountry);
|
|
3758
|
-
}, [data?.additionalPersonalDetails?.country, parentCountry]);
|
|
3774
|
+
const country = data?.additionalPersonalDetails?.country ?? parentCountry;
|
|
3759
3775
|
const { data: scenarios } = useScenarios(country, "individual");
|
|
3776
|
+
const matchingScenario = scenarios;
|
|
3760
3777
|
useEffect$1(() => {
|
|
3761
3778
|
if (!scenarios) return;
|
|
3762
3779
|
setHasMotionCaptureScenario(scenarios);
|
|
3763
|
-
setMatchingScenario(scenarios);
|
|
3764
3780
|
}, [scenarios]);
|
|
3765
3781
|
/**
|
|
3766
3782
|
* Fetch Configurations
|
|
@@ -3782,7 +3798,8 @@ additionalPersonalDetails: check4DigitSsnFailed(problems?.verificationErrors?.ad
|
|
|
3782
3798
|
isFeatureEnabled,
|
|
3783
3799
|
isSettingEnabled,
|
|
3784
3800
|
rootLegalEntity: parentLegalEntity,
|
|
3785
|
-
problems
|
|
3801
|
+
problems,
|
|
3802
|
+
version: versionConfiguration?.version
|
|
3786
3803
|
}), [
|
|
3787
3804
|
country,
|
|
3788
3805
|
matchingScenario,
|
|
@@ -3791,7 +3808,8 @@ additionalPersonalDetails: check4DigitSsnFailed(problems?.verificationErrors?.ad
|
|
|
3791
3808
|
isSettingEnabled,
|
|
3792
3809
|
parentLegalEntity,
|
|
3793
3810
|
taskType,
|
|
3794
|
-
problems
|
|
3811
|
+
problems,
|
|
3812
|
+
versionConfiguration?.version
|
|
3795
3813
|
]);
|
|
3796
3814
|
const hasLiveSelfieErrorCode = hasLiveSelfieError(problems);
|
|
3797
3815
|
useEffect$1(() => {
|
|
@@ -4052,7 +4070,7 @@ additionalPersonalDetails: check4DigitSsnFailed(problems?.verificationErrors?.ad
|
|
|
4052
4070
|
const dataSubmitted = omitObscuredFieldsIfUnchanged(individualObscuredFields, data, dataFromResponse);
|
|
4053
4071
|
if (!dataSubmitted) return;
|
|
4054
4072
|
try {
|
|
4055
|
-
const legalEntity = mapIndividualSchemaToLegalEntity(dataSubmitted,
|
|
4073
|
+
const legalEntity = mapIndividualSchemaToLegalEntity(dataSubmitted, matchingScenario, legalEntityResponse?.individual?.taxInformation, country);
|
|
4056
4074
|
const idDocumentType = idDocumentTypeOptions.find(({ id }) => dataSubmitted?.idVerificationMethod?.idDocument?.idDocumentType === id)?.id;
|
|
4057
4075
|
legalEntity.entityAssociations = filterOutUnwantedAssociationsIfRootLE(taskType, legalEntityResponse, accountHolder || void 0);
|
|
4058
4076
|
clearToasts();
|
|
@@ -4093,18 +4111,19 @@ additionalPersonalDetails: check4DigitSsnFailed(problems?.verificationErrors?.ad
|
|
|
4093
4111
|
setLoadingStatus("success");
|
|
4094
4112
|
externalOnSubmit?.(dataSubmitted, matchingScenario);
|
|
4095
4113
|
} catch (e) {
|
|
4114
|
+
const error = e;
|
|
4096
4115
|
const eventsAdditionalData = {};
|
|
4097
|
-
logger.error("Failed to update individual",
|
|
4098
|
-
if (isValidationError(
|
|
4099
|
-
const getErrors = processValidationErrors(
|
|
4116
|
+
logger.error("Failed to update individual", error);
|
|
4117
|
+
if (isValidationError(error)) {
|
|
4118
|
+
const getErrors = processValidationErrors(error, TaskTypes.INDIVIDUAL);
|
|
4100
4119
|
if (getErrors && !Object.keys(getErrors).length) {
|
|
4101
4120
|
showToast({
|
|
4102
4121
|
label: t(($) => $["failedToUpdateDetails"]),
|
|
4103
4122
|
variant: "error"
|
|
4104
4123
|
});
|
|
4105
|
-
eventsAdditionalData.unmappedErrorNames =
|
|
4124
|
+
eventsAdditionalData.unmappedErrorNames = error.invalidFields?.map((field) => field.name).filter(Boolean);
|
|
4106
4125
|
} else setValidationErrors(getErrors);
|
|
4107
|
-
} else if (isMaintenanceModeError(
|
|
4126
|
+
} else if (isMaintenanceModeError(error)) showToast({
|
|
4108
4127
|
label: t(($) => $["maintenanceModeMessage"]),
|
|
4109
4128
|
variant: "error",
|
|
4110
4129
|
duration: "indefinite"
|
|
@@ -4117,107 +4136,11 @@ additionalPersonalDetails: check4DigitSsnFailed(problems?.verificationErrors?.ad
|
|
|
4117
4136
|
userEvents.addTaskEvent("Encountered error", {
|
|
4118
4137
|
actionType: "submit",
|
|
4119
4138
|
additionalData: eventsAdditionalData,
|
|
4120
|
-
returnType:
|
|
4121
|
-
returnValue:
|
|
4139
|
+
returnType: error?.errorCode,
|
|
4140
|
+
returnValue: error?.title || "backend"
|
|
4122
4141
|
});
|
|
4123
4142
|
}
|
|
4124
4143
|
};
|
|
4125
|
-
const datasetUtils = datasetUtilities(i18n.language);
|
|
4126
|
-
const formatIdDocument = (idDocument) => {
|
|
4127
|
-
if (!idDocument) return void 0;
|
|
4128
|
-
const documentType = idDocument?.instantIdVerificationData ? onfidoDocumentTypeMapping.find((document) => idDocument.instantIdVerificationData?.document_front.type === document.id) : idDocumentTypeOptions.find(({ id }) => idDocument.idDocumentType === id);
|
|
4129
|
-
if (!documentType) return void 0;
|
|
4130
|
-
const frontPage = idDocument.idFrontPage?.[0];
|
|
4131
|
-
const backPage = idDocument.idBackPage?.[0];
|
|
4132
|
-
if (!frontPage) return void 0;
|
|
4133
|
-
return {
|
|
4134
|
-
documentType: t(($) => $[documentType.name]),
|
|
4135
|
-
...backPage && documentType.hasBackPage ? {
|
|
4136
|
-
frontPage: frontPage.name,
|
|
4137
|
-
backPage: backPage.name
|
|
4138
|
-
} : { fileName: frontPage.name }
|
|
4139
|
-
};
|
|
4140
|
-
};
|
|
4141
|
-
const formatFileSummaryData = ({ idVerificationMethod, manualIdUpload, proofOfNationalId, proofOfResidency, proofOfRelationship }) => {
|
|
4142
|
-
const proofOfNationalIdFile = proofOfNationalId?.proofOfNationalId?.[0];
|
|
4143
|
-
const proofOfResidencyFile = proofOfResidency?.proofOfResidency?.[0];
|
|
4144
|
-
const proofOfRelationshipFile = proofOfRelationship?.proofOfRelationship?.[0];
|
|
4145
|
-
const idDocument = idVerificationMethod?.idVerificationMethod === "manualVerification" ? manualIdUpload : idVerificationMethod?.idDocument;
|
|
4146
|
-
return {
|
|
4147
|
-
...(idDocument?.idDocumentType || idDocument?.instantIdVerificationData) && { idDocument: formatIdDocument(idDocument) },
|
|
4148
|
-
...proofOfNationalIdFile && { proofOfNationalId: { fileName: proofOfNationalIdFile.name } },
|
|
4149
|
-
...proofOfResidencyFile && { proofOfResidency: {
|
|
4150
|
-
fileName: proofOfResidencyFile.name,
|
|
4151
|
-
description: proofOfResidency?.description
|
|
4152
|
-
} },
|
|
4153
|
-
...proofOfRelationshipFile && { proofOfRelationship: {
|
|
4154
|
-
fileName: proofOfRelationshipFile.name,
|
|
4155
|
-
description: proofOfRelationship?.description
|
|
4156
|
-
} }
|
|
4157
|
-
};
|
|
4158
|
-
};
|
|
4159
|
-
const formatDataForSummary = () => {
|
|
4160
|
-
let summaryData = cloneObject(data);
|
|
4161
|
-
if (summaryData?.basicDetails?.phoneNumber) summaryData.basicDetails.phoneNumber = summaryData.basicDetails.phoneNumber.number;
|
|
4162
|
-
if (summaryData.additionalPersonalDetails?.nationality) summaryData.additionalPersonalDetails.nationality = datasetUtils.getCountryName(summaryData.additionalPersonalDetails.nationality);
|
|
4163
|
-
if (data.additionalPersonalDetails) {
|
|
4164
|
-
if (isJapanLocalizationEnabled(isSettingEnabled, country)) summaryData.additionalPersonalDetails = {
|
|
4165
|
-
...drop(...JP_ADDRESS_REQUIRED_FIELDS).from(summaryData.additionalPersonalDetails),
|
|
4166
|
-
...mapJpAddressSummary(data.additionalPersonalDetails, datasetUtils)
|
|
4167
|
-
};
|
|
4168
|
-
else summaryData.additionalPersonalDetails = {
|
|
4169
|
-
...summaryData.additionalPersonalDetails,
|
|
4170
|
-
...mapAddressLabels(data.additionalPersonalDetails, datasetUtils)
|
|
4171
|
-
};
|
|
4172
|
-
}
|
|
4173
|
-
if (summaryData.basicDetails?.accountHolder) summaryData.basicDetails.accountHolder = t(($) => $[summaryData.basicDetails.accountHolder]);
|
|
4174
|
-
if (summaryData.additionalPersonalDetails?.birthDate) summaryData.additionalPersonalDetails.birthDate = localizeDateString(summaryData.additionalPersonalDetails.birthDate, i18n.language);
|
|
4175
|
-
if (summaryData.idVerificationMethod?.idVerificationMethod === "verifyByInvite") summaryData.idVerificationMethod = {
|
|
4176
|
-
idVerificationMethod: preTranslatedSummaryItem(t(($) => $["type"], { ns: "individual" }), t(($) => $["inviteDecisionMaker"], { ns: "individual" })),
|
|
4177
|
-
sender: preTranslatedSummaryItem(t(($) => $["sender"], { ns: "individual" }), data?.inviteDetails?.senderName ?? null),
|
|
4178
|
-
message: preTranslatedSummaryItem(t(($) => $["message"], { ns: "individual" }), data?.inviteDetails?.message ?? null)
|
|
4179
|
-
};
|
|
4180
|
-
if (isManualVerificationOrExistingDoc(summaryData.idVerificationMethod?.idVerificationMethod) || summaryData.proofOfResidency) {
|
|
4181
|
-
const fileSummaryData = formatFileSummaryData(data);
|
|
4182
|
-
summaryData = {
|
|
4183
|
-
...summaryData,
|
|
4184
|
-
...fileSummaryData
|
|
4185
|
-
};
|
|
4186
|
-
summaryData.manualIdUpload = { ...summaryData.idDocument };
|
|
4187
|
-
summaryData.idVerificationMethod.idDocument = { ...summaryData.idDocument };
|
|
4188
|
-
}
|
|
4189
|
-
const relevantTaxInformation = findRelevantTaxInformation(summaryData.additionalPersonalDetails?.taxInformation, {
|
|
4190
|
-
nationality: data.additionalPersonalDetails?.nationality,
|
|
4191
|
-
country: data.additionalPersonalDetails?.country
|
|
4192
|
-
});
|
|
4193
|
-
if (relevantTaxInformation) {
|
|
4194
|
-
delete summaryData.additionalPersonalDetails.taxInformation;
|
|
4195
|
-
summaryData.additionalPersonalDetails[relevantTaxInformation.type] = relevantTaxInformation.number;
|
|
4196
|
-
}
|
|
4197
|
-
if (summaryData?.signatoryQuestionnaire) summaryData.signatoryQuestionnaire = data?.signatoryQuestionnaire?.isSignatory === GuidanceQuestionValues.YES ? [t(($) => $["signatorySummaryLabel"])] : [];
|
|
4198
|
-
if (summaryData?.uboQuestionnaire) {
|
|
4199
|
-
const roleFieldToLabelMap = {
|
|
4200
|
-
isOwner: "ownerSummaryLabel",
|
|
4201
|
-
isControllingPerson: "controllingPersonSummaryLabel",
|
|
4202
|
-
isDirector: "directorSummaryLabel"
|
|
4203
|
-
};
|
|
4204
|
-
summaryData.uboQuestionnaire = Object.keys(roleFieldToLabelMap).flatMap((field) => data?.uboQuestionnaire?.[field] === GuidanceQuestionValues.YES ? [t(($) => $[roleFieldToLabelMap[field]], { ns: "individual" })] : []);
|
|
4205
|
-
}
|
|
4206
|
-
return summaryData;
|
|
4207
|
-
};
|
|
4208
|
-
const omittedKeysForSummary = [
|
|
4209
|
-
...taskType === TaskTypes.DECISION_MAKER ? ["role"] : [],
|
|
4210
|
-
...data?.additionalPersonalDetails?.idNumberExempt ? ["idNumber"] : [],
|
|
4211
|
-
...isManualVerificationOrExistingDoc(data?.idVerificationMethod?.idVerificationMethod) ? ["idVerificationMethod", "modificationDate"] : []
|
|
4212
|
-
];
|
|
4213
|
-
const isUploadEmpty = !data?.manualIdUpload || Object.keys(data?.manualIdUpload).length === 0;
|
|
4214
|
-
const omittedFormsForSummary = [...data?.idVerificationMethod?.idVerificationMethod === "instantVerification" || isManualVerificationOrExistingDoc(data?.idVerificationMethod?.idVerificationMethod) && isUploadEmpty || data?.idVerificationMethod?.idVerificationMethod === "verifyByInvite" ? ["idDocument", "inviteDetails"] : [], ...isManualVerificationOrExistingDoc(data?.idVerificationMethod?.idVerificationMethod) ? ["idVerificationMethod", "inviteDetails"] : []];
|
|
4215
|
-
const customLabelsForSummary = { idVerificationMethod: {
|
|
4216
|
-
instantVerification: "idVerificationMethod",
|
|
4217
|
-
manualVerification: "idDocument",
|
|
4218
|
-
existingDocument: "idDocument",
|
|
4219
|
-
verifyByInvite: "idVerificationMethod"
|
|
4220
|
-
}[data?.idVerificationMethod?.idVerificationMethod ?? ""] ?? "idDocument" };
|
|
4221
4144
|
const { handleNextClick, handleBackClick, activeForm, shouldValidate, gotoFormByFormIndex, gotoFormByFormId, steps } = useFormComposer({
|
|
4222
4145
|
problems,
|
|
4223
4146
|
externalBackClick,
|
|
@@ -4243,15 +4166,16 @@ additionalPersonalDetails: check4DigitSsnFailed(problems?.verificationErrors?.ad
|
|
|
4243
4166
|
}), /* @__PURE__ */ jsx(FormContextProvider, {
|
|
4244
4167
|
form,
|
|
4245
4168
|
children: /* @__PURE__ */ jsx(FormFlow, {
|
|
4246
|
-
|
|
4247
|
-
data
|
|
4248
|
-
|
|
4249
|
-
|
|
4250
|
-
|
|
4251
|
-
|
|
4169
|
+
summaryComponent: /* @__PURE__ */ jsx(IndividualSummary, {
|
|
4170
|
+
data,
|
|
4171
|
+
forms,
|
|
4172
|
+
taskType,
|
|
4173
|
+
country,
|
|
4174
|
+
isSettingEnabled,
|
|
4252
4175
|
problems,
|
|
4253
|
-
|
|
4254
|
-
|
|
4176
|
+
handleEditForm: gotoFormByFormId,
|
|
4177
|
+
existingTaxInformation: legalEntityResponse?.individual?.taxInformation
|
|
4178
|
+
}),
|
|
4255
4179
|
asModal,
|
|
4256
4180
|
currentStep: steps.current,
|
|
4257
4181
|
disableNextButton,
|
|
@@ -1,14 +1,14 @@
|
|
|
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] = "1124d0c6-4302-4195-b58d-96aa6bb7cc48", e._sentryDebugIdIdentifier = "sentry-dbid-1124d0c6-4302-4195-b58d-96aa6bb7cc48");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { r as useTranslation } from "./translation-CpH8D2NK.js";
|
|
6
6
|
import { t as Loader } from "./Loader-BDaKGf77.js";
|
|
7
|
-
import { n as IconButton } from "./Button-
|
|
8
|
-
import { i as useToggleContext } from "./Checkbox-
|
|
7
|
+
import { n as IconButton } from "./Button-BYafPrZH.js";
|
|
8
|
+
import { i as useToggleContext } from "./Checkbox-qFA2J_1r.js";
|
|
9
9
|
import { t as useBusinessLines } from "./useBusinessLines-0FcuDMzo.js";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
10
|
+
import { o as Field, t as Select } from "./Select-BMGxcmZy.js";
|
|
11
|
+
import { c as List } from "./dropinUtils-D7sD4BX1.js";
|
|
12
12
|
import { n as withForm } from "./formHook-Dgi2CgbT.js";
|
|
13
13
|
import { t as useIndustryCodes } from "./useIndustryCodes-La1cU8oH.js";
|
|
14
14
|
import { useMemo, useRef, useState } from "preact/hooks";
|
|
@@ -1,11 +1,11 @@
|
|
|
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] = "ac1191d4-7082-40d1-815e-0a47183ececb", e._sentryDebugIdIdentifier = "sentry-dbid-ac1191d4-7082-40d1-815e-0a47183ececb");
|
|
4
4
|
} catch (e) {}
|
|
5
|
-
import {
|
|
5
|
+
import { $ as getFormattingRegEx, J as SPECIAL_CHARS } from "./resolveEnvironment-CrNBwIpQ.js";
|
|
6
6
|
import { r as httpPost, s as useApiContext } from "./http-C8rt2BZk.js";
|
|
7
7
|
import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
|
|
8
|
-
import { r as InputBase } from "./InputText-
|
|
8
|
+
import { r as InputBase } from "./InputText-CGngUMdf.js";
|
|
9
9
|
import { n as formatDate, t as checkDateInputSupport } from "./InputDate.utils-D4Ov0KIl.js";
|
|
10
10
|
import { useCallback, useMemo } from "preact/hooks";
|
|
11
11
|
import { jsx } from "preact/jsx-runtime";
|
|
@@ -111,6 +111,7 @@ var countrySpecificFormatters = {
|
|
|
111
111
|
format: "2 or 3 letters + 2 or 4 digits (with optional space)",
|
|
112
112
|
maxlength: 8
|
|
113
113
|
} },
|
|
114
|
+
[CountryCodes.Mexico]: { postalCode: createFormatByDigits(5) },
|
|
114
115
|
[CountryCodes.Monaco]: { postalCode: {
|
|
115
116
|
format: "980NN",
|
|
116
117
|
maxlength: 5
|
|
@@ -151,7 +152,10 @@ var countrySpecificFormatters = {
|
|
|
151
152
|
maxlength: 7
|
|
152
153
|
} },
|
|
153
154
|
[CountryCodes.Spain]: { postalCode: createFormatByDigits(5) },
|
|
154
|
-
[CountryCodes.Sweden]: { postalCode:
|
|
155
|
+
[CountryCodes.Sweden]: { postalCode: {
|
|
156
|
+
format: "999 99 or 99999",
|
|
157
|
+
maxlength: 6
|
|
158
|
+
} },
|
|
155
159
|
[CountryCodes.Switzerland]: { postalCode: createFormatByDigits(4) },
|
|
156
160
|
[CountryCodes.UnitedKingdom]: { postalCode: {
|
|
157
161
|
formatter: (val) => val ? val.replace(getFormattingRegEx(SPECIAL_CHARS), "").substring(0, 8) : void 0,
|