@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
|
@@ -0,0 +1,498 @@
|
|
|
1
|
+
try {
|
|
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] = "3b7d7407-13f1-4b8a-aeb4-948e8b3b5905", e._sentryDebugIdIdentifier = "sentry-dbid-3b7d7407-13f1-4b8a-aeb4-948e8b3b5905");
|
|
4
|
+
} catch (e) {}
|
|
5
|
+
import { r as useTranslation } from "./translation-CpH8D2NK.js";
|
|
6
|
+
import { D as datasetUtilities, ot as isEmpty } from "./resolveEnvironment-CrNBwIpQ.js";
|
|
7
|
+
import { t as Typography } from "./Typography-CAc_f5Iq.js";
|
|
8
|
+
import { t as Button } from "./Button-BYafPrZH.js";
|
|
9
|
+
import { r as httpPost, s as useApiContext } from "./http-C8rt2BZk.js";
|
|
10
|
+
import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
|
|
11
|
+
import { c as individualBaseMapping, y as reverseMapping } from "./processCapabilities-B75YIdXZ.js";
|
|
12
|
+
import { t as TaskTypes } from "./taskTypes-3vSkMBDm.js";
|
|
13
|
+
import { o as getNomineeFromAssociation } from "./entityAssociationUtil-BlfcBl3i.js";
|
|
14
|
+
import { t as DecisionMakerTypes } from "./decisionMaker-CR0qaGWQ.js";
|
|
15
|
+
import { i as useAnalyticsContext } from "./Modal-ChWNV9yG.js";
|
|
16
|
+
import { o as Field } from "./Select-BMGxcmZy.js";
|
|
17
|
+
import { r as formatObject } from "./utils-C3-aLHsN.js";
|
|
18
|
+
import { o as mapAddressLabels } from "./StateField-TYw5No81.js";
|
|
19
|
+
import { U as taxIdNumberOptions, W as TileGroup, z as mapApiScriptLocalizationToSchemaFields } from "./bafinUtils-4C7AJpnd.js";
|
|
20
|
+
import { s as isIdDocumentType, u as getLocalizedIdDocumentTypeOptions } from "./documentUtils-6K3LdjjN.js";
|
|
21
|
+
import { t as localizeDateString } from "./localizeDateString-Dxlqr4rL.js";
|
|
22
|
+
import { t as mapAddressLocalizationToJpAddressSchema } from "./mapAddressLocalizationToJpAddressSchema-Di3_rcrj.js";
|
|
23
|
+
import { t as getRoleName } from "./roleMetadata-CmxqSnzp.js";
|
|
24
|
+
import { jsx, jsxs } from "preact/jsx-runtime";
|
|
25
|
+
import { signal } from "@preact/signals";
|
|
26
|
+
import { useMutation } from "@tanstack/preact-query";
|
|
27
|
+
//#region src/api/invitations/useCreateInvitation.ts
|
|
28
|
+
var createInvitation = async (baseUrl, organizationLegalEntityId, inviteeLegalEntityId, data) => {
|
|
29
|
+
return httpPost({
|
|
30
|
+
baseUrl,
|
|
31
|
+
path: `legalEntities/${organizationLegalEntityId}/invitations/associations/${inviteeLegalEntityId}`
|
|
32
|
+
}, data);
|
|
33
|
+
};
|
|
34
|
+
var useCreateInvitation = (options) => {
|
|
35
|
+
const { baseUrl } = useApiContext();
|
|
36
|
+
return useMutation({
|
|
37
|
+
mutationFn: ({ organizationLegalEntityId, inviteeLegalEntityId, data }) => {
|
|
38
|
+
return createInvitation(baseUrl.value, organizationLegalEntityId, inviteeLegalEntityId, data);
|
|
39
|
+
},
|
|
40
|
+
...options
|
|
41
|
+
});
|
|
42
|
+
};
|
|
43
|
+
//#endregion
|
|
44
|
+
//#region src/stores/formState.ts
|
|
45
|
+
var individualFormDefaultData = signal(null);
|
|
46
|
+
var shouldNavigateToAdditionalPersonalDetailsForMissingData = signal(false);
|
|
47
|
+
var GuidanceQuestion_module_default = {
|
|
48
|
+
"guidance-question": "_guidance-question_e0c6m_1",
|
|
49
|
+
guidanceQuestion: "_guidance-question_e0c6m_1",
|
|
50
|
+
options: "_options_e0c6m_5"
|
|
51
|
+
};
|
|
52
|
+
//#endregion
|
|
53
|
+
//#region src/components/Individual/forms/GuidanceQuestion/GuidanceQuestion.tsx
|
|
54
|
+
var GuidanceQuestionValues = {
|
|
55
|
+
YES: "Yes",
|
|
56
|
+
NO: "No"
|
|
57
|
+
};
|
|
58
|
+
var GuidanceQuestion = (props) => {
|
|
59
|
+
const { descriptionLinkText, errorMessage, name, noLabel, onChange, onDescriptionLinkClick, question, value, yesLabel } = props;
|
|
60
|
+
const { t } = useTranslation("common");
|
|
61
|
+
const userEvents = useAnalyticsContext();
|
|
62
|
+
const handleChange = (selectedValue) => {
|
|
63
|
+
userEvents.addFieldEvent("Interacted with form field", {
|
|
64
|
+
actionType: "select",
|
|
65
|
+
field: name,
|
|
66
|
+
returnValue: selectedValue
|
|
67
|
+
});
|
|
68
|
+
onChange(selectedValue || null);
|
|
69
|
+
};
|
|
70
|
+
const yesTileLabel = yesLabel ?? t(($) => $["yes"]);
|
|
71
|
+
const noTileLabel = noLabel ?? t(($) => $["no"]);
|
|
72
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
73
|
+
className: GuidanceQuestion_module_default.guidanceQuestion,
|
|
74
|
+
children: [
|
|
75
|
+
/* @__PURE__ */ jsx(Typography, {
|
|
76
|
+
variant: "body",
|
|
77
|
+
el: "p",
|
|
78
|
+
id: `${name}-question`,
|
|
79
|
+
children: question
|
|
80
|
+
}),
|
|
81
|
+
descriptionLinkText && onDescriptionLinkClick && /* @__PURE__ */ jsx(Button, {
|
|
82
|
+
variant: "link",
|
|
83
|
+
onClick: onDescriptionLinkClick,
|
|
84
|
+
children: descriptionLinkText
|
|
85
|
+
}),
|
|
86
|
+
/* @__PURE__ */ jsx("div", {
|
|
87
|
+
role: "group",
|
|
88
|
+
"aria-labelledby": `${name}-question`,
|
|
89
|
+
children: /* @__PURE__ */ jsx(Field, {
|
|
90
|
+
name,
|
|
91
|
+
className: GuidanceQuestion_module_default.options,
|
|
92
|
+
children: () => /* @__PURE__ */ jsx(TileGroup, {
|
|
93
|
+
allowMultiple: false,
|
|
94
|
+
errorMessage,
|
|
95
|
+
isHorizontal: true,
|
|
96
|
+
maxSelected: 1,
|
|
97
|
+
name,
|
|
98
|
+
onChange: handleChange,
|
|
99
|
+
selected: value || "",
|
|
100
|
+
tiles: [{
|
|
101
|
+
label: yesTileLabel,
|
|
102
|
+
value: GuidanceQuestionValues.YES
|
|
103
|
+
}, {
|
|
104
|
+
label: noTileLabel,
|
|
105
|
+
value: GuidanceQuestionValues.NO
|
|
106
|
+
}]
|
|
107
|
+
})
|
|
108
|
+
})
|
|
109
|
+
})
|
|
110
|
+
]
|
|
111
|
+
});
|
|
112
|
+
};
|
|
113
|
+
//#endregion
|
|
114
|
+
//#region src/components/Individual/helpers/getSubmittableTaxInformation.ts
|
|
115
|
+
/**
|
|
116
|
+
* The tax records the individual submit sends, shared by the mapper and the summary so the summary
|
|
117
|
+
* never shows a record the request omits.
|
|
118
|
+
*
|
|
119
|
+
* Keeps records for the current country of residence, plus records for countries already saved on
|
|
120
|
+
* the legal entity, and drops any record with a blank or whitespace-only number unless the user
|
|
121
|
+
* declared they don't have one (`numberAbsent`).
|
|
122
|
+
*
|
|
123
|
+
* @param taxInformation - Every tax record captured for the individual.
|
|
124
|
+
* @param currentCountry - The country of residence currently on the form.
|
|
125
|
+
* @param existingTaxInformation - Tax records already saved on the legal entity.
|
|
126
|
+
* @returns The records that are submitted, in the order they were captured.
|
|
127
|
+
*/
|
|
128
|
+
var getSubmittableTaxInformation = (taxInformation, currentCountry, existingTaxInformation) => taxInformation?.filter((taxInfo) => (taxInfo.country === currentCountry || Boolean(existingTaxInformation?.some((savedTaxInfo) => savedTaxInfo.country === taxInfo.country))) && Boolean(taxInfo.number?.trim() || taxInfo.numberAbsent)) ?? [];
|
|
129
|
+
//#endregion
|
|
130
|
+
//#region src/components/Individual/mapping/getOnfidoIdentityTypeToApiIdentityTypeMap.ts
|
|
131
|
+
var getOnfidoIdentityTypeToApiIdentityTypeMap = (data) => {
|
|
132
|
+
const { country } = data;
|
|
133
|
+
switch (country) {
|
|
134
|
+
case CountryCodes.HongKong: return {
|
|
135
|
+
passport: "passport",
|
|
136
|
+
driversLicense: "driversLicense",
|
|
137
|
+
proofOfIdentityCard: "nationalIdNumber"
|
|
138
|
+
};
|
|
139
|
+
default: return {
|
|
140
|
+
nationalIdNumber: "nationalIdNumber",
|
|
141
|
+
passport: "passport",
|
|
142
|
+
driversLicense: "driversLicense",
|
|
143
|
+
proofOfIdentityCard: "identityCard"
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
};
|
|
147
|
+
//#endregion
|
|
148
|
+
//#region src/components/Individual/mapping/mapLegalEntityToIndividualSchema.ts
|
|
149
|
+
var getIndividualSchemaFromAPI = { ...individualBaseMapping };
|
|
150
|
+
var mapLegalEntityToIndividualSchema = (legalEntity, isChangingType, isRoleFieldNeeded, parentLegalEntity) => {
|
|
151
|
+
let individual = { ...formatObject(legalEntity, getIndividualSchemaFromAPI) };
|
|
152
|
+
individual = {
|
|
153
|
+
...individual,
|
|
154
|
+
basicDetails: {
|
|
155
|
+
...individual?.basicDetails,
|
|
156
|
+
...isChangingType && {
|
|
157
|
+
firstName: "",
|
|
158
|
+
lastName: "",
|
|
159
|
+
localization: {}
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
signatoryQuestionnaire: { isSignatory: isChangingType ? null : individual.signatoryQuestionnaire?.isSignatory ?? null },
|
|
163
|
+
uboQuestionnaire: isChangingType ? {
|
|
164
|
+
isOwner: null,
|
|
165
|
+
isControllingPerson: null,
|
|
166
|
+
isDirector: null,
|
|
167
|
+
isNomineeShareholder: null,
|
|
168
|
+
isNomineeDirector: null
|
|
169
|
+
} : {
|
|
170
|
+
isOwner: individual.uboQuestionnaire?.isOwner ?? null,
|
|
171
|
+
isControllingPerson: individual.uboQuestionnaire?.isControllingPerson ?? null,
|
|
172
|
+
isDirector: individual.uboQuestionnaire?.isDirector ?? null,
|
|
173
|
+
isNomineeDirector: individual.uboQuestionnaire?.isNomineeDirector ?? null,
|
|
174
|
+
isNomineeShareholder: individual.uboQuestionnaire?.isNomineeShareholder ?? null
|
|
175
|
+
}
|
|
176
|
+
};
|
|
177
|
+
if (legalEntity?.documentDetails?.length) {
|
|
178
|
+
const idDocument = mapDocumentDetailToIdDocument(legalEntity.documentDetails);
|
|
179
|
+
if (idDocument) individual = {
|
|
180
|
+
...individual,
|
|
181
|
+
idVerificationMethod: {
|
|
182
|
+
idVerificationMethod: "existingDocument",
|
|
183
|
+
idDocument
|
|
184
|
+
}
|
|
185
|
+
};
|
|
186
|
+
}
|
|
187
|
+
if (legalEntity.individual?.identificationData?.type && individual.additionalPersonalDetails) {
|
|
188
|
+
const apiIdentityTypeToIdentityTypeMap = reverseMapping(getOnfidoIdentityTypeToApiIdentityTypeMap(individual.additionalPersonalDetails));
|
|
189
|
+
individual.additionalPersonalDetails.typeOfIdentity = apiIdentityTypeToIdentityTypeMap[legalEntity.individual.identificationData.type];
|
|
190
|
+
}
|
|
191
|
+
if (legalEntity.individual?.name?.localization) for (const scriptLoc of legalEntity.individual.name.localization) {
|
|
192
|
+
if (!scriptLoc.fields) continue;
|
|
193
|
+
individual.basicDetails = {
|
|
194
|
+
...individual.basicDetails,
|
|
195
|
+
...mapApiScriptLocalizationToSchemaFields({
|
|
196
|
+
...scriptLoc,
|
|
197
|
+
fields: scriptLoc.fields
|
|
198
|
+
})
|
|
199
|
+
};
|
|
200
|
+
}
|
|
201
|
+
if (legalEntity.individual?.residentialAddress?.localization) individual.additionalPersonalDetails = {
|
|
202
|
+
...individual.additionalPersonalDetails,
|
|
203
|
+
...mapAddressLocalizationToJpAddressSchema(legalEntity.individual.residentialAddress.localization)
|
|
204
|
+
};
|
|
205
|
+
/**
|
|
206
|
+
* Map association details of individual to personal
|
|
207
|
+
* details from parentLegalEntity. role, jobTitle, relationship, nomineeShareholder,
|
|
208
|
+
* nomineeDirector are not part of individual legalEntity but part of entityAssociations
|
|
209
|
+
* in parentLegalEntity
|
|
210
|
+
* **/
|
|
211
|
+
if (!parentLegalEntity?.entityAssociations) return individual;
|
|
212
|
+
const associations = parentLegalEntity?.entityAssociations?.filter((ea) => ea.legalEntityId === legalEntity?.id) ?? [];
|
|
213
|
+
if (isRoleFieldNeeded && individual.basicDetails) {
|
|
214
|
+
individual.basicDetails.role = associations.map((ea) => ea.type);
|
|
215
|
+
individual.basicDetails.jobTitle = associations.find(({ jobTitle }) => Boolean(jobTitle))?.jobTitle;
|
|
216
|
+
}
|
|
217
|
+
if (isRoleFieldNeeded && individual.signatoryQuestionnaire && individual.uboQuestionnaire) {
|
|
218
|
+
const associationTypes = new Set(associations.map((ea) => ea.type));
|
|
219
|
+
const hasAssociation = (type) => associationTypes.has(type) ? GuidanceQuestionValues.YES : GuidanceQuestionValues.NO;
|
|
220
|
+
individual.signatoryQuestionnaire.isSignatory = hasAssociation(DecisionMakerTypes.SIGNATORY);
|
|
221
|
+
individual.uboQuestionnaire.isOwner = hasAssociation(DecisionMakerTypes.OWNER);
|
|
222
|
+
individual.uboQuestionnaire.isControllingPerson = hasAssociation(DecisionMakerTypes.CONTROLLING_PERSON);
|
|
223
|
+
individual.uboQuestionnaire.isDirector = hasAssociation(DecisionMakerTypes.DIRECTOR);
|
|
224
|
+
const hasNomineeAssociation = (type) => associations.some((ea) => ea.type === type && ea.nominee) ? GuidanceQuestionValues.YES : GuidanceQuestionValues.NO;
|
|
225
|
+
individual.uboQuestionnaire.isNomineeDirector = hasNomineeAssociation(DecisionMakerTypes.DIRECTOR);
|
|
226
|
+
individual.uboQuestionnaire.isNomineeShareholder = hasNomineeAssociation(DecisionMakerTypes.OWNER);
|
|
227
|
+
}
|
|
228
|
+
individual.basicDetails = getNomineeFromAssociation(associations, individual.basicDetails);
|
|
229
|
+
return individual;
|
|
230
|
+
};
|
|
231
|
+
var mapDocumentDetailToIdDocument = (documents) => {
|
|
232
|
+
const activeDocument = documents.find((document) => document.active && isIdDocumentType(document.type));
|
|
233
|
+
return activeDocument ? {
|
|
234
|
+
idDocumentType: activeDocument.type,
|
|
235
|
+
modificationDate: activeDocument.modificationDate ?? ""
|
|
236
|
+
} : void 0;
|
|
237
|
+
};
|
|
238
|
+
var SummaryBulletList_module_default = {
|
|
239
|
+
"summary-bullet-list": "_summary-bullet-list_14zca_1",
|
|
240
|
+
summaryBulletList: "_summary-bullet-list_14zca_1",
|
|
241
|
+
"summary-bullet-list-item": "_summary-bullet-list-item_14zca_7",
|
|
242
|
+
summaryBulletListItem: "_summary-bullet-list-item_14zca_7"
|
|
243
|
+
};
|
|
244
|
+
//#endregion
|
|
245
|
+
//#region src/components/Shared/SummarySection/SummaryBulletList.tsx
|
|
246
|
+
/**
|
|
247
|
+
* A bulleted list of values, for summary sections that describe a set rather than term/value
|
|
248
|
+
* pairs. Render it as a `SummarySection` child in place of a `StructuredList`.
|
|
249
|
+
*/
|
|
250
|
+
var SummaryBulletList = ({ items }) => {
|
|
251
|
+
if (!items.length) return null;
|
|
252
|
+
return /* @__PURE__ */ jsx("ul", {
|
|
253
|
+
className: SummaryBulletList_module_default.summaryBulletList,
|
|
254
|
+
children: items.map((item, index) => /* @__PURE__ */ jsx(Typography, {
|
|
255
|
+
el: "li",
|
|
256
|
+
className: SummaryBulletList_module_default.summaryBulletListItem,
|
|
257
|
+
children: item
|
|
258
|
+
}, index))
|
|
259
|
+
});
|
|
260
|
+
};
|
|
261
|
+
//#endregion
|
|
262
|
+
//#region src/components/Individual/forms/IdDocumentUpload/types.ts
|
|
263
|
+
var onfidoDocumentTypeMapping = [
|
|
264
|
+
{
|
|
265
|
+
id: "driversLicense",
|
|
266
|
+
name: "driversLicense",
|
|
267
|
+
hasBackPage: true
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
id: "identityCard",
|
|
271
|
+
name: "identityCard",
|
|
272
|
+
hasBackPage: true
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
id: "passport",
|
|
276
|
+
name: "passport",
|
|
277
|
+
hasBackPage: false
|
|
278
|
+
}
|
|
279
|
+
];
|
|
280
|
+
//#endregion
|
|
281
|
+
//#region src/components/Individual/helpers/findRelevantTaxInformation.ts
|
|
282
|
+
var hasType = (taxId) => Boolean(taxId.type);
|
|
283
|
+
/**
|
|
284
|
+
* The records a summary can key: those whose `type` is known.
|
|
285
|
+
*
|
|
286
|
+
* @param taxInformation - Every tax record captured for the individual.
|
|
287
|
+
* @returns The typed records, in the order they were captured.
|
|
288
|
+
*/
|
|
289
|
+
var getKeyableTaxInformation = (taxInformation) => taxInformation?.filter(hasType) ?? [];
|
|
290
|
+
/**
|
|
291
|
+
* Picks the single tax record to show in the summary.
|
|
292
|
+
*
|
|
293
|
+
* An individual can hold tax information for several countries, but the summary lists only one:
|
|
294
|
+
* the record matching their nationality, falling back to the one matching their country of
|
|
295
|
+
* residence. When neither matches, the caller keeps the full list rather than guessing.
|
|
296
|
+
*
|
|
297
|
+
* Records without a `type` are skipped: the summary keys each record by its type, so a typeless
|
|
298
|
+
* record would produce a literal `undefined` label. Falling through to the country match, or
|
|
299
|
+
* keeping the full list, is more useful than emitting that key.
|
|
300
|
+
*
|
|
301
|
+
* @param taxInformation - Every tax record captured for the individual.
|
|
302
|
+
* @param match - The nationality and country of residence to match against, in that order.
|
|
303
|
+
* @returns The matching record, or `undefined` when no typed record matches either country.
|
|
304
|
+
*/
|
|
305
|
+
var findRelevantTaxInformation = (taxInformation, match) => {
|
|
306
|
+
const keyable = getKeyableTaxInformation(taxInformation);
|
|
307
|
+
return keyable.find((taxId) => taxId.country === match.nationality) ?? keyable.find((taxId) => taxId.country === match.country);
|
|
308
|
+
};
|
|
309
|
+
//#endregion
|
|
310
|
+
//#region src/components/Individual/helpers/isManualVerificationOrExistingDoc.ts
|
|
311
|
+
/**
|
|
312
|
+
* Checks whether the ID verification method relies on a document the user supplies themselves,
|
|
313
|
+
* rather than an automated capture flow such as the Onfido SDK.
|
|
314
|
+
*
|
|
315
|
+
* @param idVerificationMethod - The selected ID verification method.
|
|
316
|
+
* @returns `true` for `manualVerification` or `existingDocument`, otherwise `false`.
|
|
317
|
+
*
|
|
318
|
+
* @example
|
|
319
|
+
* isManualVerificationOrExistingDoc('manualVerification'); // true
|
|
320
|
+
* isManualVerificationOrExistingDoc('instantVerification'); // false
|
|
321
|
+
*/
|
|
322
|
+
var isManualVerificationOrExistingDoc = (idVerificationMethod) => idVerificationMethod === "manualVerification" || idVerificationMethod === "existingDocument";
|
|
323
|
+
//#endregion
|
|
324
|
+
//#region src/components/Individual/utils/formatDataForSummary.ts
|
|
325
|
+
/**
|
|
326
|
+
* Builds the summary rows for the individual task.
|
|
327
|
+
*
|
|
328
|
+
* Rows are an ordered list rather than a record keyed by translation key, as Business and Trust
|
|
329
|
+
* use, because terms come from two namespaces and, for the invite flow, arrive pre-translated.
|
|
330
|
+
*/
|
|
331
|
+
function formatDataForSummary({ data, forms, t, language, taskType, country, isSettingEnabled, instantVerificationDetails, source = "form", existingTaxInformation }) {
|
|
332
|
+
const datasetUtils = datasetUtilities(language);
|
|
333
|
+
const common = (key) => t(($) => $[key], { ns: "common" });
|
|
334
|
+
const individual = (key) => t(($) => $[key], { ns: "individual" });
|
|
335
|
+
const sections = [];
|
|
336
|
+
for (const form of forms) {
|
|
337
|
+
const formId = form.formId;
|
|
338
|
+
if (isOmittedForm(formId, data)) continue;
|
|
339
|
+
const formatted = formatForm(formId, {
|
|
340
|
+
data,
|
|
341
|
+
common,
|
|
342
|
+
individual,
|
|
343
|
+
datasetUtils,
|
|
344
|
+
language,
|
|
345
|
+
taskType,
|
|
346
|
+
country,
|
|
347
|
+
isSettingEnabled,
|
|
348
|
+
instantVerificationDetails,
|
|
349
|
+
source,
|
|
350
|
+
existingTaxInformation
|
|
351
|
+
});
|
|
352
|
+
if (!formatted || Array.isArray(formatted) && formatted.length === 0) continue;
|
|
353
|
+
sections.push({
|
|
354
|
+
formId: form.formId,
|
|
355
|
+
label: common(form.formName),
|
|
356
|
+
...Array.isArray(formatted) ? { items: formatted } : {
|
|
357
|
+
items: [],
|
|
358
|
+
bullets: formatted.bullets
|
|
359
|
+
}
|
|
360
|
+
});
|
|
361
|
+
}
|
|
362
|
+
return sections;
|
|
363
|
+
}
|
|
364
|
+
/**
|
|
365
|
+
* Builds a single row, or nothing when the value would render blank.
|
|
366
|
+
*
|
|
367
|
+
* `isEmpty` rejects whitespace-only strings, which is what keeps a labelled but empty row out of
|
|
368
|
+
* the summary when the address lookup leaves a space behind.
|
|
369
|
+
*/
|
|
370
|
+
function row(term, details) {
|
|
371
|
+
return isEmpty(details) ? [] : [{
|
|
372
|
+
term,
|
|
373
|
+
details
|
|
374
|
+
}];
|
|
375
|
+
}
|
|
376
|
+
/**
|
|
377
|
+
* Forms summarized somewhere else: `inviteDetails` is listed under the verification method, and
|
|
378
|
+
* `idVerificationMethod` is replaced by the document section once a document exists.
|
|
379
|
+
*/
|
|
380
|
+
function isOmittedForm(formId, data) {
|
|
381
|
+
if (formId === "summary" || formId === "inviteDetails") return true;
|
|
382
|
+
return formId === "idVerificationMethod" && isManualVerificationOrExistingDoc(data.idVerificationMethod?.idVerificationMethod);
|
|
383
|
+
}
|
|
384
|
+
function formatForm(formId, context) {
|
|
385
|
+
const { data } = context;
|
|
386
|
+
switch (formId) {
|
|
387
|
+
case "signatoryQuestionnaire": return formatSignatoryQuestionnaire(context);
|
|
388
|
+
case "uboQuestionnaire": return formatUboQuestionnaire(context);
|
|
389
|
+
case "basicDetails": return formatBasicDetails(context);
|
|
390
|
+
case "idVerificationMethod": return formatIdVerificationMethod(context);
|
|
391
|
+
case "additionalPersonalDetails": return formatAdditionalPersonalDetails(context);
|
|
392
|
+
case "manualIdUpload": return formatIdDocument(data.manualIdUpload ?? data.idVerificationMethod?.idDocument, context);
|
|
393
|
+
case "proofOfResidency": return formatDocumentUpload(data.proofOfResidency?.proofOfResidency, data.proofOfResidency?.description, context);
|
|
394
|
+
case "proofOfNationalId": return formatDocumentUpload(data.proofOfNationalId?.proofOfNationalId, data.proofOfNationalId?.description, context);
|
|
395
|
+
case "proofOfRelationship": return formatDocumentUpload(data.proofOfRelationship?.proofOfRelationship, data.proofOfRelationship?.description, context);
|
|
396
|
+
default: return [];
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
function formatSignatoryQuestionnaire({ data, common }) {
|
|
400
|
+
if (data.signatoryQuestionnaire?.isSignatory !== GuidanceQuestionValues.YES) return void 0;
|
|
401
|
+
return { bullets: [common("signatorySummaryLabel")] };
|
|
402
|
+
}
|
|
403
|
+
var UBO_ROLE_LABELS = {
|
|
404
|
+
isOwner: "ownerSummaryLabel",
|
|
405
|
+
isControllingPerson: "controllingPersonSummaryLabel",
|
|
406
|
+
isDirector: "directorSummaryLabel"
|
|
407
|
+
};
|
|
408
|
+
function formatUboQuestionnaire({ data, individual }) {
|
|
409
|
+
const questionnaire = data.uboQuestionnaire;
|
|
410
|
+
if (!questionnaire) return void 0;
|
|
411
|
+
const labels = Object.entries(UBO_ROLE_LABELS).filter(([field]) => questionnaire[field] === GuidanceQuestionValues.YES).map(([, label]) => individual(label));
|
|
412
|
+
return labels.length === 0 ? void 0 : { bullets: labels };
|
|
413
|
+
}
|
|
414
|
+
function formatBasicDetails({ data, common, taskType, source }) {
|
|
415
|
+
const basicDetails = data.basicDetails;
|
|
416
|
+
if (!basicDetails) return [];
|
|
417
|
+
const roles = basicDetails.role ?? [];
|
|
418
|
+
return [
|
|
419
|
+
...source === "legalEntity" ? [] : [...row(common("firstName"), basicDetails.firstName), ...row(common("lastName"), basicDetails.lastName)],
|
|
420
|
+
...row(common("jaHaniFirstName"), basicDetails.jaHaniFirstName),
|
|
421
|
+
...row(common("jaHaniLastName"), basicDetails.jaHaniLastName),
|
|
422
|
+
...row(common("jaKanaFirstName"), basicDetails.jaKanaFirstName),
|
|
423
|
+
...row(common("jaKanaLastName"), basicDetails.jaKanaLastName),
|
|
424
|
+
...row(common("jobTitle"), basicDetails.jobTitle),
|
|
425
|
+
...taskType === TaskTypes.DECISION_MAKER ? [] : row(roles.length > 1 ? common("roles") : common("role"), roles.map((role) => common(getRoleName(role))).join(", ")),
|
|
426
|
+
...row(common("phoneNumber"), basicDetails.phoneNumber?.number),
|
|
427
|
+
...row(common("email"), basicDetails.email),
|
|
428
|
+
...row(common("relationship"), basicDetails.relationship ? common(basicDetails.relationship) : void 0),
|
|
429
|
+
...row(common("accountHolder"), basicDetails.accountHolder ? common(basicDetails.accountHolder) : void 0)
|
|
430
|
+
];
|
|
431
|
+
}
|
|
432
|
+
function formatAdditionalPersonalDetails(context) {
|
|
433
|
+
const { data, common, datasetUtils, language, source, country, existingTaxInformation } = context;
|
|
434
|
+
const details = data.additionalPersonalDetails;
|
|
435
|
+
if (!details) return [];
|
|
436
|
+
const taxInformation = source === "legalEntity" ? details.taxInformation : getSubmittableTaxInformation(details.taxInformation, details.country ?? country, existingTaxInformation);
|
|
437
|
+
const relevantTaxInformation = findRelevantTaxInformation(taxInformation, {
|
|
438
|
+
nationality: details.nationality,
|
|
439
|
+
country: details.country
|
|
440
|
+
});
|
|
441
|
+
const taxRecords = relevantTaxInformation ? [relevantTaxInformation] : getKeyableTaxInformation(taxInformation);
|
|
442
|
+
return [
|
|
443
|
+
...row(common("birthDate"), details.birthDate ? localizeDateString(details.birthDate, language) : void 0),
|
|
444
|
+
...row(common("placeOfBirth"), details.placeOfBirth),
|
|
445
|
+
...row(common("nationality"), details.nationality ? datasetUtils.getCountryName(details.nationality) : void 0),
|
|
446
|
+
...formatAddress(details, context),
|
|
447
|
+
...row(common("typeOfIdentity"), details.typeOfIdentity ? common(details.typeOfIdentity) : void 0),
|
|
448
|
+
...details.idNumberExempt ? [] : row(common("idNumber"), details.idNumber),
|
|
449
|
+
...row(common("licenseCardNumber"), details.licenseCardNumber),
|
|
450
|
+
...row(common("issuerState"), details.issuerState),
|
|
451
|
+
...row(common("expiryDate"), details.expiryDate),
|
|
452
|
+
...taxRecords.flatMap((taxRecord) => row(common(getTaxIdNumberLabel(taxRecord.type, taxRecord.country)), taxRecord.number))
|
|
453
|
+
];
|
|
454
|
+
}
|
|
455
|
+
/** Maps the address onto its country specific labels, or the Japanese layout when it applies. */
|
|
456
|
+
function formatAddress(details, { common, datasetUtils, isSettingEnabled }) {
|
|
457
|
+
return Object.entries(mapAddressLabels(details, datasetUtils, isSettingEnabled)).flatMap(([key, value]) => row(common(key), value));
|
|
458
|
+
}
|
|
459
|
+
/**
|
|
460
|
+
* The deprecated summary keyed this row by the raw type (`BSN`, `IDNR`), showing that id to users
|
|
461
|
+
* whenever it was not also a translation key. The option metadata carries the real label.
|
|
462
|
+
*/
|
|
463
|
+
function getTaxIdNumberLabel(type, country) {
|
|
464
|
+
return ((country ? taxIdNumberOptions[country] : void 0)?.find((taxOption) => taxOption.id === type))?.name ?? "taxInformationNumber";
|
|
465
|
+
}
|
|
466
|
+
function formatIdVerificationMethod(context) {
|
|
467
|
+
const { data, common, individual, instantVerificationDetails } = context;
|
|
468
|
+
const method = data.idVerificationMethod?.idVerificationMethod;
|
|
469
|
+
if (method === "verifyByInvite") return [
|
|
470
|
+
...row(individual("type"), individual("inviteDecisionMaker")),
|
|
471
|
+
...row(individual("sender"), data.inviteDetails?.senderName),
|
|
472
|
+
...row(individual("message"), data.inviteDetails?.message)
|
|
473
|
+
];
|
|
474
|
+
if (method === "instantVerification") return row(common("verificationMethod"), instantVerificationDetails);
|
|
475
|
+
return formatIdDocument(data.idVerificationMethod?.idDocument, context);
|
|
476
|
+
}
|
|
477
|
+
/**
|
|
478
|
+
* `frontPage` and `backPage` have no entry in the common bundle, so the deprecated summary
|
|
479
|
+
* rendered those keys verbatim. Kept as-is; correcting them is a separate copy change.
|
|
480
|
+
*/
|
|
481
|
+
function formatIdDocument(idDocument, { common, country, source, language }) {
|
|
482
|
+
if (!idDocument) return [];
|
|
483
|
+
const documentTypeOption = idDocument.instantIdVerificationData ? onfidoDocumentTypeMapping.find((option) => idDocument.instantIdVerificationData?.document_front.type === option.id) : getLocalizedIdDocumentTypeOptions(country).find((option) => option.id === idDocument.idDocumentType);
|
|
484
|
+
if (!documentTypeOption) return [];
|
|
485
|
+
const documentType = row(common("documentType"), common(documentTypeOption.name));
|
|
486
|
+
if (source === "legalEntity") return [...documentType, ...row(common("uploadedDate"), idDocument.modificationDate ? localizeDateString(idDocument.modificationDate, language) : void 0)];
|
|
487
|
+
const frontPage = idDocument.idFrontPage?.[0];
|
|
488
|
+
const backPage = idDocument.idBackPage?.[0];
|
|
489
|
+
if (!frontPage) return [];
|
|
490
|
+
return [...documentType, ...backPage && documentTypeOption.hasBackPage ? [...row("frontPage", frontPage.name), ...row("backPage", backPage.name)] : row(common("fileName"), frontPage.name)];
|
|
491
|
+
}
|
|
492
|
+
function formatDocumentUpload(files, description, { common }) {
|
|
493
|
+
const file = files?.[0];
|
|
494
|
+
if (!file) return [];
|
|
495
|
+
return [...row(common("fileName"), file.name), ...row(common("description"), description)];
|
|
496
|
+
}
|
|
497
|
+
//#endregion
|
|
498
|
+
export { getSubmittableTaxInformation as a, individualFormDefaultData as c, getOnfidoIdentityTypeToApiIdentityTypeMap as i, shouldNavigateToAdditionalPersonalDetailsForMissingData as l, SummaryBulletList as n, GuidanceQuestion as o, mapLegalEntityToIndividualSchema as r, GuidanceQuestionValues as s, formatDataForSummary as t, useCreateInvitation as u };
|
|
@@ -1,8 +1,8 @@
|
|
|
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] = "56162916-c372-4f2f-bfd5-3d136f34c31d", e._sentryDebugIdIdentifier = "sentry-dbid-56162916-c372-4f2f-bfd5-3d136f34c31d");
|
|
4
4
|
} catch (e) {}
|
|
5
|
-
import {
|
|
5
|
+
import { a as translateTranslatable, i as isTranslationObject } from "./Select-BMGxcmZy.js";
|
|
6
6
|
//#region src/utils/validation/formatValidationError.ts
|
|
7
7
|
/**
|
|
8
8
|
* Converts `NsTranslatable` validation error messages into `FieldErrorMessage` for use in `Field` components
|
|
@@ -1,12 +1,12 @@
|
|
|
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] = "7ab54886-f535-4ac4-8a09-256dc0eac5de", e._sentryDebugIdIdentifier = "sentry-dbid-7ab54886-f535-4ac4-8a09-256dc0eac5de");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { r as useTranslation } from "./translation-CpH8D2NK.js";
|
|
6
6
|
import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
7
|
+
import { o as Field } from "./Select-BMGxcmZy.js";
|
|
8
|
+
import { I as numericInputs, L as spacer, O as validateNotEmptyOnBlur, P as makeMask, k as validatePatternOnBlur, r as RadioGroup } from "./dropinUtils-D7sD4BX1.js";
|
|
9
|
+
import { G as businessRegistrationNumberPatterns, K as businessRegistrationNumberMasks, q as stateFormatGuidanceText } from "./bafinUtils-4C7AJpnd.js";
|
|
10
10
|
import { useCallback, useEffect, useMemo } from "preact/hooks";
|
|
11
11
|
import { jsx } from "preact/jsx-runtime";
|
|
12
12
|
//#region src/components/Shared/fields/BusinessRegistrationNumberField/fieldConfig.ts
|
|
@@ -4,7 +4,7 @@ try {
|
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { r as useLegalEntity, t as ROOT_LE } from "./useLegalEntity-CxeMoCm4.js";
|
|
6
6
|
import { t as getLegalEntityCountry } from "./getLegalEntityCountry-BK-HHa65.js";
|
|
7
|
-
import { n as getCapabilityProblems } from "./processCapabilities-
|
|
7
|
+
import { n as getCapabilityProblems } from "./processCapabilities-B75YIdXZ.js";
|
|
8
8
|
import { useMemo } from "preact/hooks";
|
|
9
9
|
//#region src/utils/api/getProblemsForEntity.ts
|
|
10
10
|
var useCapabilityProblems = () => {
|
|
@@ -2,7 +2,7 @@ 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
3
|
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "b31ebce0-607d-486f-bbd5-8e26dc271eee", e._sentryDebugIdIdentifier = "sentry-dbid-b31ebce0-607d-486f-bbd5-8e26dc271eee");
|
|
4
4
|
} catch (e) {}
|
|
5
|
-
import { n as getApiTrustedFields } from "./ListItem-
|
|
5
|
+
import { n as getApiTrustedFields } from "./ListItem-n927geYb.js";
|
|
6
6
|
//#region src/components/Individual/tasks/DecisionMakers/getTrustedDecisionMakers.ts
|
|
7
7
|
function getTrustedDecisionMakers(rootLegalEntity, provider) {
|
|
8
8
|
return parseTrustedDecisionMakersFromApiFields(getApiTrustedFields(rootLegalEntity, provider));
|
|
@@ -1,8 +1,8 @@
|
|
|
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] = "15f8df9e-dfff-45ed-a73e-bf794282bd4e", e._sentryDebugIdIdentifier = "sentry-dbid-15f8df9e-dfff-45ed-a73e-bf794282bd4e");
|
|
4
4
|
} catch (e) {}
|
|
5
|
-
import {
|
|
5
|
+
import { a as translateTranslatable } from "./Select-BMGxcmZy.js";
|
|
6
6
|
//#region src/adaptiveWorkflow/utils/validators/getValidationError.ts
|
|
7
7
|
/**
|
|
8
8
|
* Runs an array of validators against a value.
|
|
@@ -1,9 +1,10 @@
|
|
|
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] = "209438e1-1221-45e4-b15e-6964f81ab568", e._sentryDebugIdIdentifier = "sentry-dbid-209438e1-1221-45e4-b15e-6964f81ab568");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
|
|
6
6
|
//#region src/utils/legalArrangementUtils.ts
|
|
7
|
+
var TRUST_COUNTRIES = [CountryCodes.Australia, CountryCodes.NewZealand];
|
|
7
8
|
var LEGAL_ARRANGEMENT_COUNTRIES_REQUIRING_DATE_OF_INCORPORATION = [CountryCodes.HongKong, CountryCodes.Singapore];
|
|
8
9
|
var ALLOWED_UNINCORPORATED_PARTNERSHIP_COUNTRIES = [
|
|
9
10
|
CountryCodes.Australia,
|
|
@@ -63,6 +64,14 @@ var UNINCORPORATED_PARTNERSHIP_COUNTRIES_VAT_NUMBER_OPTIONAL = [
|
|
|
63
64
|
CountryCodes.Spain,
|
|
64
65
|
CountryCodes.UnitedKingdom
|
|
65
66
|
];
|
|
67
|
+
var INDIVIDUALS_WHO_TRADE_COUNTRIES = [
|
|
68
|
+
CountryCodes.UnitedKingdom,
|
|
69
|
+
CountryCodes.UnitedStates,
|
|
70
|
+
CountryCodes.Australia,
|
|
71
|
+
CountryCodes.Germany,
|
|
72
|
+
CountryCodes.France,
|
|
73
|
+
CountryCodes.Canada
|
|
74
|
+
];
|
|
66
75
|
var SOLE_PROP_COUNTRIES = [
|
|
67
76
|
CountryCodes.Austria,
|
|
68
77
|
CountryCodes.Australia,
|
|
@@ -111,4 +120,4 @@ var SOLE_PROP_COUNTRIES = [
|
|
|
111
120
|
CountryCodes.UnitedStates
|
|
112
121
|
];
|
|
113
122
|
//#endregion
|
|
114
|
-
export {
|
|
123
|
+
export { TRUST_COUNTRIES as a, UNINCORPORATED_PARTNERSHIP_COUNTRIES_TAX_INFORMATION_OPTIONAL as c, SOLE_PROP_COUNTRIES as i, UNINCORPORATED_PARTNERSHIP_COUNTRIES_TAX_INFORMATION_REQUIRED as l, INDIVIDUALS_WHO_TRADE_COUNTRIES as n, UNINCORPORATED_PARTNERSHIP_COUNTRIES_REGISTRATION_NUMBER_OPTIONAL as o, LEGAL_ARRANGEMENT_COUNTRIES_REQUIRING_DATE_OF_INCORPORATION as r, UNINCORPORATED_PARTNERSHIP_COUNTRIES_REGISTRATION_NUMBER_REQUIRED as s, ALLOWED_UNINCORPORATED_PARTNERSHIP_COUNTRIES as t, UNINCORPORATED_PARTNERSHIP_COUNTRIES_VAT_NUMBER_OPTIONAL as u };
|
|
@@ -1,8 +1,8 @@
|
|
|
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] = "e0f34a49-2dd7-4794-947c-b3c649d8ea5e", e._sentryDebugIdIdentifier = "sentry-dbid-e0f34a49-2dd7-4794-947c-b3c649d8ea5e");
|
|
4
4
|
} catch (e) {}
|
|
5
|
-
import {
|
|
5
|
+
import { z as mapApiScriptLocalizationToSchemaFields } from "./bafinUtils-4C7AJpnd.js";
|
|
6
6
|
//#region src/components/Shared/forms/Address/localized/jp/mapAddressLocalizationToJpAddressSchema.ts
|
|
7
7
|
var mapAddressLocalizationToJpAddressSchema = (localization) => {
|
|
8
8
|
if (!localization) return {};
|
|
@@ -1,6 +1,6 @@
|
|
|
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] = "7a79795d-078d-43d6-b173-4cada077371a", e._sentryDebugIdIdentifier = "sentry-dbid-7a79795d-078d-43d6-b173-4cada077371a");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { t as useScenarios } from "./useScenarios-DfE71fl7.js";
|
|
6
6
|
import { useEffect, useMemo } from "preact/hooks";
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
try {
|
|
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] = "0d4142be-99de-4e29-8380-0a02092e108d", e._sentryDebugIdIdentifier = "sentry-dbid-0d4142be-99de-4e29-8380-0a02092e108d");
|
|
4
|
+
} catch (e) {}
|
|
5
|
+
import { m as isEmpty } from "./StateField-TYw5No81.js";
|
|
6
|
+
import { B as mapSchemaFieldsToApiScriptLocalization } from "./bafinUtils-4C7AJpnd.js";
|
|
7
|
+
//#region src/components/Shared/forms/Address/localized/jp/mapJpAddressSchemaToAddressLocalizations.ts
|
|
8
|
+
var mapJpAddressSchemaToAddressLocalizations = (data) => {
|
|
9
|
+
if (!data) return [];
|
|
10
|
+
return [mapSchemaFieldsToApiScriptLocalization(data, "jaHani"), mapSchemaFieldsToApiScriptLocalization(data, "jaKana")].filter(({ fields }) => !isEmpty(fields)).map(({ script, fields }) => ({
|
|
11
|
+
script,
|
|
12
|
+
fields: {
|
|
13
|
+
city: fields.city,
|
|
14
|
+
..."street" in fields ? { street: fields.street } : void 0
|
|
15
|
+
}
|
|
16
|
+
}));
|
|
17
|
+
};
|
|
18
|
+
//#endregion
|
|
19
|
+
export { mapJpAddressSchemaToAddressLocalizations as t };
|
|
@@ -3,8 +3,8 @@ try {
|
|
|
3
3
|
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "01d88251-e10d-40c6-bef1-a9de5f6a3222", e._sentryDebugIdIdentifier = "sentry-dbid-01d88251-e10d-40c6-bef1-a9de5f6a3222");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { n as httpGet, s as useApiContext } from "./http-C8rt2BZk.js";
|
|
6
|
-
import { b as crossBorderMapping, x as payoutComponentKeyMapping } from "./processCapabilities-
|
|
7
|
-
import { a as mapWith } from "./utils-
|
|
6
|
+
import { b as crossBorderMapping, x as payoutComponentKeyMapping } from "./processCapabilities-B75YIdXZ.js";
|
|
7
|
+
import { a as mapWith } from "./utils-C3-aLHsN.js";
|
|
8
8
|
import { skipToken, useQuery } from "@tanstack/preact-query";
|
|
9
9
|
//#region src/api/transferInstruments/useTransferInstrument.ts
|
|
10
10
|
var getTransferInstrument = async (legalEntityId, baseUrl, transferInstrumentId) => {
|