@adyen/kyc-components 4.23.0 → 4.24.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{4-people-Dxu4nHSX.js → 4-people-DKuivE0m.js} +2 -2
- package/dist/{AcceptTermsOfServiceWorkflow-CvKbU2WY.js → AcceptTermsOfServiceWorkflow-CyMefc3t.js} +4 -4
- package/dist/{Accordion-Sjyj7C_t.js → Accordion-Dgdxfe-d.js} +1 -1
- package/dist/{AccountSetupRejected-Cq_nlmLn.js → AccountSetupRejected-D63dyojj.js} +4 -3
- package/dist/AdaptiveWorkflow-DC4QviLh.js +33 -0
- package/dist/{AdaptiveWorkflowComponent-tM1hJ1zF.js → AdaptiveWorkflowComponent-CsNPizq0.js} +62 -61
- package/dist/{AddressFields-BsxEdBvQ.js → AddressFields-BeeqIqdc.js} +15 -11
- package/dist/Alert-Cc7p0N5h.js +172 -0
- package/dist/AnalyticsContext-CpimDlw4.js +21 -0
- package/dist/{Avatar-Zp1T9qAL.js → Avatar-oTPu6Ejy.js} +1 -1
- package/dist/{BusinessFinancingDropin-vugW4Vvi.js → BusinessFinancingDropin-DYJS13vd.js} +50 -37
- package/dist/{BusinessFinancingPage-0J_LImeN.js → BusinessFinancingPage-DbTrQ1kt.js} +34 -34
- package/dist/{BusinessRegistrationNumberField-qdC_srMn.js → BusinessRegistrationNumberField-DKka8aVU.js} +8 -6
- package/dist/{BusinessRegistrationNumberFieldGroup-BvC9n4ou.js → BusinessRegistrationNumberFieldGroup-Df6_sDA0.js} +8 -6
- package/dist/{BusinessTypeSelectionPage-WCEqP4G2.js → BusinessTypeSelectionPage-C0xUipfe.js} +20 -20
- package/dist/{Button-DfRmINzF.js → Button-DPJ1k02w.js} +30 -30
- package/dist/{Checkbox-B730k3Yy.js → Checkbox-qfdF12cF.js} +3 -51
- package/dist/{ComponentGroup-CsnkYMbT.js → ComponentGroup-Cw_2w0Rf.js} +4 -4
- package/dist/Confirm-DoN9R9Z3.js +77 -0
- package/dist/{ConstitutionalDocument-D92EPGmG.js → ConstitutionalDocument-Bbo7P_gi.js} +30 -25
- package/dist/{ContactDetails-DDSd6X0z.js → ContactDetails-CUjFd94x.js} +12 -7
- package/dist/{ContextGuidance-B2ew1lzC.js → ContextGuidance-BQPwRscq.js} +3 -3
- package/dist/{ContractViewer-JtnAXSDa.js → ContractViewer-CG9UNGz1.js} +65 -14
- package/dist/CountryField-DT6-Jr_b.js +38 -0
- package/dist/{Currency-BKTf95Wp.js → Currency-C-sSDMn7.js} +8 -7
- package/dist/{CustomerSupport-CCFayyJG.js → CustomerSupport-C2DrnwDs.js} +19 -18
- package/dist/{DataConflictsModal-D-fP_eNs.js → DataConflictsModal-CCaMgguu.js} +10 -9
- package/dist/{DebugModal-CG6CvUnj.js → DebugModal-CDfvQRk6.js} +18 -12
- package/dist/{DecisionMakerDetails-DWC1nORL.js → DecisionMakerDetails-Dhi6hsrv.js} +90 -86
- package/dist/{DecisionMakerDetailsPage-BVXA74FO.js → DecisionMakerDetailsPage-DLgKrPA3.js} +43 -44
- package/dist/{DecisionMakers-Cvm_i6Uf.js → DecisionMakers-B6Qd9fuT.js} +53 -48
- package/dist/{Dropzone-CNHxDEc3.js → Dropzone-BhMYy4nr.js} +8 -8
- package/dist/{EmbeddedStatus-tbJfdxm8.js → EmbeddedStatus-CYd2p4sP.js} +4 -4
- package/dist/{EndStateLayout-BK1Hh02g.js → EndStateLayout-zZPm8S5M.js} +3 -3
- package/dist/{EntityAssociation-i903L9Dh.js → EntityAssociation-C2_Xuvf5.js} +7 -7
- package/dist/{ErrorPanel-tnFOlOZU.js → ErrorPanel-D4JNFkvi.js} +6 -6
- package/dist/Field-DwDJQVSS.js +154 -0
- package/dist/FormFlow.module-DqMxjYHl.js +20 -0
- package/dist/{GlobalEntryModal-DQoIIvGS.js → GlobalEntryModal-iZSUeMQf.js} +444 -216
- package/dist/{GlobalEntryPage-DLRGPpAu.js → GlobalEntryPage-w4KJOeYb.js} +11 -11
- package/dist/Header-DVLlJ6we.js +93 -0
- package/dist/Icon-4XR6gZzk.js +175 -0
- package/dist/{IdentityNumber-B8MXzXsO.js → IdentityNumber-3V6ZqvHB.js} +10 -6
- package/dist/{IdentityNumberFieldGroup-D7xb2TY7.js → IdentityNumberFieldGroup-CAjlgTWn.js} +2 -2
- package/dist/{IdentityScreeningWorkflow-BdGXtdns.js → IdentityScreeningWorkflow-Bx89cmUF.js} +15 -15
- package/dist/{Image-D82terx4.js → Image-Bn_Yyuof.js} +1 -1
- package/dist/{IndividualDropin-C0vTSDYU.js → IndividualDropin-BgOmBeoT.js} +126 -89
- package/dist/{IndustryCodeFieldGroup-CGcE5yYR.js → IndustryCodeFieldGroup-BDtoeaUz.js} +7 -6
- package/dist/{InputDate-Ci60MBrH.js → InputDate-ANdv1rKt.js} +3 -3
- package/dist/{InputText-CTpVF0Mu.js → InputText-CFDEmEtp.js} +4 -39
- package/dist/{Introduction-Dx6DDaL7.js → Introduction-D8hMB7Wb.js} +16 -17
- package/dist/{InvitedDecisionMakerComponent-Ckd26d6Y.js → InvitedDecisionMakerComponent-DZZe5Ruk.js} +76 -76
- package/dist/{JpAddressFields-C9MbL5XV.js → JpAddressFields-BIh4120-.js} +11 -10
- package/dist/LandingLayout-BsIoIFzs.js +76 -0
- package/dist/{LegalCompanyNameField-D0jM5LDT.js → LegalCompanyNameField-Cosyjk52.js} +5 -5
- package/dist/{LegalName-TjhII9_p.js → LegalName-CtqIpsfy.js} +4 -4
- package/dist/LegalRepresentativeDetailsPage-Mpm8AjdQ.js +73 -0
- package/dist/{Link-c2jAgGgc.js → Link-CvYhseSD.js} +1 -1
- package/dist/{ListItem-C35r8558.js → ListItem-CYTpdOMa.js} +4 -27
- package/dist/{Loader-BEpMlKm2.js → Loader-BVtlpTeo.js} +1 -1
- package/dist/LoaderWrapper-Dc88hY-P.js +34 -0
- package/dist/MaybeModal-C4ySaA8A.js +24 -0
- package/dist/{Modal-BsivDPTd.js → Modal-CHES6970.js} +5 -25
- package/dist/{Name-DMf8Uyof.js → Name-CdCsijr5.js} +5 -5
- package/dist/{NewSummary-DxWLTnJy.js → NewSummary-D55f70wB.js} +7 -7
- package/dist/{AdaptiveWorkflow-CM7ZVGXv.js → NodeRenderer-smgxe7Ni.js} +20 -45
- package/dist/{PatriotActDisclosure-ChZ_ePr2.js → PatriotActDisclosure-DA6nqTmC.js} +13 -12
- package/dist/{PayoutDetailsDropin-BhtJSFAS.js → PayoutDetailsDropin-BH1Sj6GM.js} +89 -58
- package/dist/PayoutDetailsPage-B7mZmc51.js +69 -0
- package/dist/ProgressBar-DWFxLMUA.js +38 -0
- package/dist/RadioGroup-Bf3DlQnZ.js +47 -0
- package/dist/RadioWithLabel-DQIOEYpF.js +45 -0
- package/dist/{Review-DImhCvoG.js → Review-9sjGKoQu.js} +7 -7
- package/dist/RootBusinessDetailsPage-DRN6p6wB.js +67 -0
- package/dist/{RootBusinessLinesPage-C_p-CtCH.js → RootBusinessLinesPage-uxn9f5K8.js} +39 -30
- package/dist/RootIndividualDetailsPage-BDoKkhcN.js +82 -0
- package/dist/{Select-ByVcS_J2.js → Select-phAxjMBQ.js} +46 -357
- package/dist/{SignPCIComponent-CAwp2xCC.js → SignPCIComponent-BNlTxxJz.js} +51 -48
- package/dist/{SingpassSelection-Txx3gp_g.js → SingpassSelection-B6_DsZtn.js} +12 -13
- package/dist/SoleProprietorshipPage-Dx-pfSwo.js +69 -0
- package/dist/{SourceOfFundsPage-B22iW1ow.js → SourceOfFundsPage-ChO-R9o4.js} +95 -76
- package/dist/{SourceOfFundsWorkflow-BKHZbLR_.js → SourceOfFundsWorkflow-DuU_n82x.js} +4 -4
- package/dist/StateContext-B2_Pqd_y.js +9 -0
- package/dist/StateField-BpMwetvd.js +55 -0
- package/dist/{Step-BUMarnLL.js → Step-CctAUYbs.js} +6 -6
- package/dist/StructuredList-nPasiuLi.js +56 -0
- package/dist/Summary-DM31WxLr.js +235 -0
- package/dist/{Task-Bj_CjiHG.js → Task-C12uuPWD.js} +8 -8
- package/dist/{TaskGroup-BMXhoq1Y.js → TaskGroup-z3ONGLnB.js} +4 -4
- package/dist/{TaskListItem-BIKdDEzU.js → TaskListItem-Dx3hKOqG.js} +11 -11
- package/dist/{TaskStepperContextProvider-D0tKJplv.js → TaskStepperContextProvider-DdcsqXT7.js} +1 -1
- package/dist/{TaskVerificationStatus-DPA4ZEPa.js → TaskVerificationStatus-DEXk_ndE.js} +3 -3
- package/dist/TaxInformationField-Cc-NDAVo.js +242 -0
- package/dist/{TaxInformationFieldGroup-D_6IRGj9.js → TaxInformationFieldGroup-DI2LzuNr.js} +16 -13
- package/dist/{TaxReportingDropin-DA475crP.js → TaxReportingDropin-LNgisxBc.js} +23 -18
- package/dist/{TaxReportingWorkflow-kcto0Ysw.js → TaxReportingWorkflow-9_9ECX6A.js} +4 -4
- package/dist/{TermsOfServiceManagement-HDnaIeWZ.js → TermsOfServiceManagement-BGrBal0j.js} +59 -50
- package/dist/{TextArea-qbFhi8Az.js → TextArea-qGEo3PFG.js} +5 -5
- package/dist/TileGroup-D1-M64Ul.js +172 -0
- package/dist/ToastContext-B_wd2IY2.js +13 -0
- package/dist/ToastContextProvider-DjYKMflX.js +103 -0
- package/dist/{TrustDetailsPage-BqVS0xOU.js → TrustDetailsPage-cx6yEd6Q.js} +68 -51
- package/dist/TrustMemberCompanyPage-DZh9Wn9-.js +108 -0
- package/dist/TrustMemberIndividualPage--tTWII4G.js +108 -0
- package/dist/{TrustMemberRoleAndTypePage-GXWuitmt.js → TrustMemberRoleAndTypePage-DEzesajA.js} +51 -41
- package/dist/{TrustMembersOverview-BjJ5fPcC.js → TrustMembersOverview-BpJGWVT5.js} +23 -19
- package/dist/{UboTaskItem-Aq3iNKX0.js → UboTaskItem-DP5LOGom.js} +8 -8
- package/dist/UnincorporatedPartnershipIndividualPage-DelW_XAz.js +78 -0
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-h3OTr_91.js → UnincorporatedPartnershipMemberCompanyPage-BdnBsGK9.js} +36 -37
- package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-CwemN4fL.js → UnincorporatedPartnershipMemberRoleAndTypePage-DpdTiLc-.js} +20 -18
- package/dist/{UnincorporatedPartnershipMembersOverview-CUczPfUl.js → UnincorporatedPartnershipMembersOverview-BBeans9j.js} +17 -15
- package/dist/{VerificationErrorAlert-BBfoLMwb.js → VerificationErrorAlert-CixajVtq.js} +4 -30
- package/dist/{Workflow-Do7P-qDn.js → Workflow-BJbKhY38.js} +8 -8
- package/dist/_rolldown_dynamic_import_helper-sGNwd-kR.js +14 -0
- package/dist/{accountHolderUtils-DMi_DHCU.js → accountHolderUtils-CAu4V0ed.js} +11 -12
- package/dist/adyen-business-financing.js +37 -36
- package/dist/adyen-individual-configuration.js +64 -64
- package/dist/adyen-individual-status.js +32 -31
- package/dist/adyen-invited-decision-maker.js +3 -3
- package/dist/adyen-onboarding.js +104 -96
- package/dist/adyen-terms-of-service-management.js +3 -3
- package/dist/adyen-terms-of-service-status.js +7 -6
- package/dist/adyen-transfer-instrument-configuration.js +61 -60
- package/dist/adyen-transfer-instrument-management.js +75 -69
- package/dist/adyen-verification-status.js +8 -6
- package/dist/{arrow-right-Bk-ewsex.js → arrow-right-D2hul7WG.js} +2 -2
- package/dist/bafinUtils-DDrD6bfK.js +96 -0
- package/dist/{bag-9BNq_QQO.js → bag-CRRS1aow.js} +2 -2
- package/dist/{bank-BRbxxVK5.js → bank-BoirCLLW.js} +2 -2
- package/dist/bg-BG-B0Ia8sQm.js +7 -0
- package/dist/bg-BG-B2xaZ3wB.js +7 -0
- package/dist/bg-BG-DAR7_x2a.js +7 -0
- package/dist/bg-BG-DqfAUTUt.js +7 -0
- package/dist/bg-BG-ivZjQNJZ.js +7 -0
- package/dist/{bin-DE1613_5.js → bin-BOmfqfrr.js} +2 -2
- package/dist/birthDateUtils-D6uk7zwm.js +84 -0
- package/dist/{businessRegistrationNumberPatterns-C_MSKHlF.js → businessRegistrationNumberPatterns-A08SLm03.js} +3 -2
- package/dist/{capital-aNk7ragc.js → capital-DTjbiurV.js} +2 -2
- package/dist/{cash-stack-DuKKc4Qj.js → cash-stack-7KpYpBek.js} +2 -2
- package/dist/{certificate-9gDKvXCm.js → certificate-BPuoJ6Ip.js} +2 -2
- package/dist/{checkmark-BuqDN4WO.js → checkmark-BiSLf8M1.js} +2 -2
- package/dist/{checkmark-circle-OqcwA6N6.js → checkmark-circle-Ams7bSve.js} +2 -2
- package/dist/{checkmark-circle-fill-BfcUovCf.js → checkmark-circle-fill-_p4ss4ac.js} +2 -2
- package/dist/{checkmark-small-CBORXg_J.js → checkmark-small-3bw4ftPV.js} +2 -2
- package/dist/{chevron-down-CjRta08O.js → chevron-down-GgZawvoy.js} +2 -2
- package/dist/{chevron-left-BEm04mIh.js → chevron-left-TeZTTvo5.js} +2 -2
- package/dist/{chevron-right-B2GkHG0J.js → chevron-right-Cg8XlTxx.js} +2 -2
- package/dist/{chevron-up-BKfe5Btb.js → chevron-up-COQUTli0.js} +2 -2
- package/dist/{circle-C-uuRI8F.js → circle-CypWzg83.js} +2 -2
- package/dist/{circle-small-filled-Bkh5_ZEu.js → circle-small-filled-DfdK2A35.js} +2 -2
- package/dist/{clock-BWfWiMxz.js → clock-DmfGJ2r9.js} +2 -2
- package/dist/{coins-Cw-jDTUz.js → coins-CBvbB8_X.js} +2 -2
- package/dist/{constants-BSBlqXY7.js → constants-C8yo0_RA.js} +7 -5
- package/dist/{contract-PFVBW8xa.js → contract-D1_RJ_xh.js} +2 -2
- package/dist/{countries-BE4iGVAo.js → countries-BGMTpyJv.js} +1 -1
- package/dist/{country-zZC2TAQB.js → country-BEZkohEO.js} +2 -2
- package/dist/{cross-B37j1-r4.js → cross-BORHADVQ.js} +2 -2
- package/dist/{cross-circle-fill-CcjwpLj2.js → cross-circle-fill-CUXdo1x-.js} +2 -2
- package/dist/{cross-circle-fill-small-CJ4fddNo.js → cross-circle-fill-small-DdoPZZeo.js} +2 -2
- package/dist/cs-CZ-BwO4yrI4.js +7 -0
- package/dist/cs-CZ-CHMQYoMF.js +7 -0
- package/dist/cs-CZ-DsKlW7_D.js +7 -0
- package/dist/cs-CZ-NVntX32n.js +7 -0
- package/dist/cs-CZ-ywYpJk1F.js +7 -0
- package/dist/da-DK-BvT8Ob4A.js +7 -0
- package/dist/da-DK-BzBfkSME.js +7 -0
- package/dist/da-DK-CE7jnGea.js +7 -0
- package/dist/da-DK-DH5YNYFM.js +7 -0
- package/dist/da-DK-LPtdP8h0.js +7 -0
- package/dist/datasetUtil-BdHPWsxZ.js +45 -0
- package/dist/de-DE-C9cUCFOi.js +7 -0
- package/dist/de-DE-Cn866nnd.js +7 -0
- package/dist/de-DE-DA4LpyZI.js +7 -0
- package/dist/de-DE-DKkoZQ0X.js +7 -0
- package/dist/de-DE-DY_EJohI.js +7 -0
- package/dist/de-DE-vdy64knk.js +7 -0
- package/dist/debouncedInputEvent-Fwwp_K_-.js +54 -0
- package/dist/debugStore-Dwn1FXrh.js +9 -0
- package/dist/decision-makers-group-iEF9oKPp.js +2673 -0
- package/dist/{decisionMakerRoles-APTR-Ah_.js → decisionMakerRoles-C6LMC4mh.js} +2 -2
- package/dist/{document-1-B3vw8uuK.js → document-1-qvV57JdS.js} +2 -2
- package/dist/{document-person-CERdIfH0.js → document-person-DiJ7M8-D.js} +2 -2
- package/dist/{download-CthdK4dV.js → download-Ca4w0Yfr.js} +2 -2
- package/dist/dropinUtils-DTBezwYT.js +491 -0
- package/dist/{edit-1-BW7NwWP7.js → edit-1-D8VhDchs.js} +2 -2
- package/dist/el-GR-ChapyKa7.js +7 -0
- package/dist/el-GR-Cvms0L4K.js +7 -0
- package/dist/el-GR-D9PjIB9j.js +7 -0
- package/dist/el-GR-Ov9hqMNe.js +7 -0
- package/dist/el-GR-aelq5Q0a.js +7 -0
- package/dist/el-GR-zFv0QxMR.js +7 -0
- package/dist/en-US-B7HQdrn_.js +7 -0
- package/dist/en-US-CI7y0UEH.js +7 -0
- package/dist/en-US-C_VjFvk_.js +7 -0
- package/dist/{en-US-BUmtG-Wj.js → en-US-Cz4JoU20.js} +16 -2
- package/dist/en-US-DPr5RN3e.js +7 -0
- package/dist/en-US-U0d3NI20.js +7 -0
- package/dist/en-US-tFsDZf7y.js +7 -0
- package/dist/{entityAssociationUtil-CLBR9osP.js → entityAssociationUtil-CY0grcyH.js} +7 -8
- package/dist/{error-CpJV-CLa.js → error-BvgoQFEI.js} +4 -4
- package/dist/es-ES-BQrdtEfn.js +7 -0
- package/dist/es-ES-BdByhG4y.js +7 -0
- package/dist/es-ES-BzlHKYJK.js +7 -0
- package/dist/es-ES-DCUvAmKI.js +7 -0
- package/dist/es-ES-DdrA8McY.js +7 -0
- package/dist/es-ES-DhkTbihW.js +7 -0
- package/dist/es-LA-3WgncmHx.js +7 -0
- package/dist/es-LA-BxtxM3Ty.js +7 -0
- package/dist/es-LA-ChRHGYJP.js +7 -0
- package/dist/es-LA-JRuDva0n.js +7 -0
- package/dist/es-LA-i7tKJmA8.js +7 -0
- package/dist/et-EE-BXY66vAz.js +7 -0
- package/dist/et-EE-D8TSvkoE.js +7 -0
- package/dist/et-EE-DOgb4q9o.js +7 -0
- package/dist/et-EE-HHgM0CfO.js +7 -0
- package/dist/et-EE-V-YOCgoh.js +7 -0
- package/dist/{external-link-CFgynH5A.js → external-link-Dy4le-8Q.js} +2 -2
- package/dist/fi-FI-B-eTv4bG.js +7 -0
- package/dist/fi-FI-CClpbvJJ.js +7 -0
- package/dist/fi-FI-CVBmM-U1.js +7 -0
- package/dist/fi-FI-DCYPQ6vS.js +7 -0
- package/dist/fi-FI-DCbhu29J.js +7 -0
- package/dist/fieldConfigurations-CZCFghnK.js +11 -0
- package/dist/form-rules-B0RwhsVw.js +284 -0
- package/dist/formFieldsUtils-CnDkgahc.js +7 -0
- package/dist/formUtils-BHgG8yQZ.js +52 -0
- package/dist/formUtils-DVDcdZsP.js +84 -0
- package/dist/{formatCurrency-Cq3WFpdZ.js → formatCurrency-BetgkQKi.js} +1 -1
- package/dist/{formatValidationError-BHvKLMYZ.js → formatValidationError-q_w9DTrl.js} +2 -2
- package/dist/fr-FR-B-jA_cbo.js +7 -0
- package/dist/fr-FR-BIyJL6Jj.js +7 -0
- package/dist/fr-FR-BzyefnBh.js +7 -0
- package/dist/fr-FR-C1xYwHeC.js +7 -0
- package/dist/fr-FR-D0hY9V44.js +7 -0
- package/dist/fr-FR-Doo1FVx-.js +7 -0
- package/dist/{genUtils-Ce61IJs8.js → genUtils-nphCwt1A.js} +1 -1
- package/dist/{getDefaultRegistrationNumberType-CI1NVzJR.js → getDefaultRegistrationNumberType-CIu4WMln.js} +189 -188
- package/dist/getFormSlice-C1ma6Xd4.js +21 -0
- package/dist/getLegalEntityCountry-BK-HHa65.js +15 -0
- package/dist/{getName-s7qmFean.js → getName-DgxRqagk.js} +5 -6
- package/dist/{getProblemsForEntity-Bh9nSdOW.js → getProblemsForEntity-BY_voJ99.js} +3 -3
- package/dist/{getTrustedDecisionMakers-DX3nImM5.js → getTrustedDecisionMakers-Ta-pURcL.js} +2 -2
- package/dist/getTrustedFields-BJ88GlM-.js +28 -0
- package/dist/{gift-0jLCte2h.js → gift-Bs_mAgul.js} +2 -2
- package/dist/globalStore-WASei98w.js +418 -0
- package/dist/{graph-DrxuzQF7.js → graph-Co0JhGiY.js} +2 -2
- package/dist/{graph-up-4qLbS2Ds.js → graph-up-DIvH9haf.js} +2 -2
- package/dist/{headquarter-3o2GHW5H.js → headquarter-BESfDGKh.js} +2 -2
- package/dist/{hotel-pZlrEAK8.js → hotel-Vne7G5M6.js} +2 -2
- package/dist/hr-HR-6Wj5Tf60.js +7 -0
- package/dist/hr-HR-B4FRVzrd.js +7 -0
- package/dist/hr-HR-B6z7-PYE.js +7 -0
- package/dist/hr-HR-BOYktLQ2.js +7 -0
- package/dist/hr-HR-Ct_41fWV.js +7 -0
- package/dist/hu-HU-B7ofWKn_.js +7 -0
- package/dist/hu-HU-Bwm4UqZz.js +7 -0
- package/dist/hu-HU-CO_7jvk9.js +7 -0
- package/dist/hu-HU-CgJ_F3l2.js +7 -0
- package/dist/hu-HU-DXK7B0r_.js +7 -0
- package/dist/{image-tfgNnE3G.js → image-BQM21XCk.js} +2 -2
- package/dist/{info-DJW5JooY.js → info-DExoPRH5.js} +2 -2
- package/dist/{info-filled-C5mP6T4Z.js → info-filled-11KMeUso.js} +2 -2
- package/dist/{useId-oOIS1nsj.js → invalidateRootLegalEntity-B97dCa-s.js} +3 -31
- package/dist/isEmpty-Uewyl-r6.js +14 -0
- package/dist/isEmptyEntity-3OHnhXqG.js +43 -0
- package/dist/it-IT-BFIW0DCO.js +7 -0
- package/dist/it-IT-CNr6PIu3.js +7 -0
- package/dist/it-IT-CQVFYSVx.js +7 -0
- package/dist/it-IT-DfGdOsTs.js +7 -0
- package/dist/it-IT-DgRuEpeD.js +7 -0
- package/dist/it-IT-tZ7dP-Ia.js +7 -0
- package/dist/ja-JP--tMJF7eu.js +7 -0
- package/dist/ja-JP-BjMyxZiN.js +7 -0
- package/dist/ja-JP-Ct54-uwM.js +7 -0
- package/dist/ja-JP-CtX9NZKD.js +7 -0
- package/dist/ja-JP-DAClbueM.js +7 -0
- package/dist/ja-JP-DOuEAOlh.js +7 -0
- package/dist/keys-Ce8YnRP2.js +20 -0
- package/dist/{legalArrangementUtils-xvCxpgzJ.js → legalArrangementUtils-C68JdH6I.js} +2 -1
- package/dist/listToRecord-DumSkYDz.js +10 -0
- package/dist/{location-Dk0rAiaT.js → location-zRH5zJ8c.js} +2 -2
- package/dist/lt-LT-BUuouq_-.js +7 -0
- package/dist/lt-LT-Cs3cvyKf.js +7 -0
- package/dist/lt-LT-DQp7UGdC.js +7 -0
- package/dist/lt-LT-DoYCfhZU.js +7 -0
- package/dist/lt-LT-DqtpAjOg.js +7 -0
- package/dist/lv-LV-BCXqSzkk.js +7 -0
- package/dist/lv-LV-BW0BscAd.js +7 -0
- package/dist/lv-LV-C3p57pZV.js +7 -0
- package/dist/lv-LV-ZmyUvPst.js +7 -0
- package/dist/lv-LV-cKvnQI3j.js +7 -0
- package/dist/{mail-DG7MBDNE.js → mail-i1-zg-cv.js} +2 -2
- package/dist/{mapAddressLocalizationToJpAddressSchema-TUaHGQh6.js → mapAddressLocalizationToJpAddressSchema-DpOIaxj6.js} +2 -2
- package/dist/{mapExistingFile-CwGW1ru4.js → mapExistingFile-2QXrkhqJ.js} +2 -2
- package/dist/{mapJpAddressSchemaToAddressLocalizations-CdP6PRAO.js → mapJpAddressSchemaToAddressLocalizations-D3VO2nhc.js} +4 -3
- package/dist/{mapLegalEntityToIndividualSchema-ByhXwZqs.js → mapLegalEntityToIndividualSchema-Crz7aXZB.js} +49 -12
- package/dist/mapScriptLocalization-BCfkZo1y.js +46 -0
- package/dist/{mapTransferInstrumentToPayoutAccount-6eLKhumO.js → mapTransferInstrumentToPayoutAccount-BrbrK2wk.js} +3 -3
- package/dist/{form-rules-zzbZ2bV6.js → maskHelpers-C0wnCoJl.js} +9 -379
- package/dist/{minus-circle-filled-DglqAgJW.js → minus-circle-filled-CxUdRO8J.js} +2 -2
- package/dist/nl-NL-B77Xr99l.js +7 -0
- package/dist/nl-NL-BUwMAW5C.js +7 -0
- package/dist/nl-NL-B_MaTF5h.js +7 -0
- package/dist/nl-NL-CePL3t7P.js +7 -0
- package/dist/nl-NL-DR5SCDAF.js +7 -0
- package/dist/nl-NL-DqGE4Nz5.js +7 -0
- package/dist/no-NO-BePxpMbr.js +7 -0
- package/dist/no-NO-DGCfRiU8.js +7 -0
- package/dist/no-NO-DdI2BI_e.js +7 -0
- package/dist/no-NO-P8SZ1t-h.js +7 -0
- package/dist/no-NO-oL1v_O9N.js +7 -0
- package/dist/{options-horizontal-CTUn7IEx.js → options-horizontal-D86T_xAF.js} +2 -2
- package/dist/{partner-1StoI4_W.js → partner-Dje0ykF6.js} +2 -2
- package/dist/patternValidators-DsrZkuOO.js +73 -0
- package/dist/{pay-by-link-plane-Sa_qkL8C.js → pay-by-link-plane-DAiddPu6.js} +2 -2
- package/dist/{payout-BAYSxSqU.js → payout-DKiGv3F9.js} +2 -2
- package/dist/{pdf-uNYg4Mqz.js → pdf-CC8vqpTo.js} +37 -32
- package/dist/{pdf.worker.min-gK7UJW5a.js → pdf.worker.min-CdKJICZZ.js} +733 -253
- package/dist/{person-Da15_s3G.js → person-DgALGIIz.js} +2 -2
- package/dist/pl-PL-6Q3Ue3F5.js +7 -0
- package/dist/pl-PL-B5PBixAB.js +7 -0
- package/dist/pl-PL-BCkw9R28.js +7 -0
- package/dist/pl-PL-BY6KUTBO.js +7 -0
- package/dist/pl-PL-D-s-JI6X.js +7 -0
- package/dist/{plus-BQccvKkd.js → plus-DlQKP2C9.js} +2 -2
- package/dist/{plus-circle-filled-CqC30FRL.js → plus-circle-filled-BntUOVIJ.js} +2 -2
- package/dist/{processCapabilities-DRD0Aq2i.js → processCapabilities-CWE5UFt8.js} +50 -54
- package/dist/{processValidationErrors-oxuCOsth.js → processValidationErrors-CjsNfiRK.js} +4 -4
- package/dist/pt-BR-B_XHiDCU.js +7 -0
- package/dist/pt-BR-BvNR77Ru.js +7 -0
- package/dist/pt-BR-CrLCMcSz2.js +7 -0
- package/dist/pt-BR-MrUfWW4a.js +7 -0
- package/dist/pt-BR-vwt2tE7H.js +7 -0
- package/dist/pt-PT-B17is9TY.js +7 -0
- package/dist/pt-PT-BZNPd_Tb.js +7 -0
- package/dist/pt-PT-DDYnXawl.js +7 -0
- package/dist/pt-PT-DhF8wwYH.js +7 -0
- package/dist/pt-PT-Du2K44jh.js +7 -0
- package/dist/pt-PT-qAzFgjvF.js +7 -0
- package/dist/{recurring-DSR1fNMh.js → recurring-DZgT_ekJ.js} +2 -2
- package/dist/resolveEnvironment-mrb68kgW.js +1000 -0
- package/dist/{revenue-accelerate-CPhAVpPK.js → revenue-accelerate-aMLYFVW6.js} +2 -2
- package/dist/ro-RO-B3Fcn95o.js +7 -0
- package/dist/ro-RO-BA5GhaCE.js +7 -0
- package/dist/ro-RO-BmHe4pZ-.js +7 -0
- package/dist/ro-RO-DChAv29z.js +7 -0
- package/dist/ro-RO-W1t7Mnbn.js +7 -0
- package/dist/roleMetadata-Dm1FVuPT.js +56 -0
- package/dist/{save-DQ-mJX8e.js → save-uDNye08N.js} +2 -2
- package/dist/{search-DWqWTW_K.js → search-0OS6oe8N.js} +2 -2
- package/dist/{show-BbhlD3IY.js → show-BWoS9-Y1.js} +2 -2
- package/dist/sk-SK-BeNF_m_j.js +7 -0
- package/dist/sk-SK-C9CiQLgt.js +7 -0
- package/dist/sk-SK-CISCMQ2G.js +7 -0
- package/dist/sk-SK-CcoUWnJ4.js +7 -0
- package/dist/sk-SK-D10Kpths.js +7 -0
- package/dist/sl-SI-Bxu4m_5e.js +7 -0
- package/dist/sl-SI-DCMml0lX.js +7 -0
- package/dist/sl-SI-DmYiMn91.js +7 -0
- package/dist/sl-SI-DxomO9JQ.js +7 -0
- package/dist/sl-SI-Qe4hzx5a.js +7 -0
- package/dist/{solution-payments-D4BORMsX.js → solution-payments-BMal7uJZ.js} +2 -2
- package/dist/{store-DWaq3ZiC.js → store-N7ZA4FKy.js} +2 -2
- package/dist/style.css +2341 -2252
- package/dist/styles-DYaAeu4q.js +2337 -2248
- package/dist/summaryItem-uDWmtYtt.js +16 -0
- package/dist/sv-SE-B-CXDaXM.js +7 -0
- package/dist/sv-SE-BzPNBHOj.js +7 -0
- package/dist/sv-SE-C9SgeFv6.js +7 -0
- package/dist/sv-SE-DESDUMyu.js +7 -0
- package/dist/sv-SE-Dq6oK7B5.js +7 -0
- package/dist/sv-SE-issaSBHd.js +7 -0
- package/dist/{terminal-1-crR-pS_R.js → terminal-1-0RlQpbUC.js} +2 -2
- package/dist/toFullWidth-Dgy4X4i8.js +52 -0
- package/dist/{translation-BOm4lmPx.js → translation-DbATp_35.js} +91 -64
- package/dist/trustUtil-5cyXiJnX.js +98 -0
- package/dist/types/adaptiveWorkflow/components/Fields/TaxInformation/TaxIdTypeSelectorField.d.ts +1 -2
- package/dist/types/adaptiveWorkflow/components/Fields/TaxInformation/TaxInformationFieldGroup.d.ts +1 -2
- package/dist/types/adaptiveWorkflow/utils/utils.d.ts +1 -1
- package/dist/types/api/configurations/useScenarios.d.ts +1 -1
- package/dist/types/api/createLegalEntity/useCreateLegalEntity.d.ts +12 -12
- package/dist/types/api/documentValidation/useDocumentValidate.d.ts +2 -2
- package/dist/types/api/documents/documents.types.d.ts +9 -0
- package/dist/types/api/documents/useCreateDocument.d.ts +10 -3
- package/dist/types/api/documents/useDeleteDocument.d.ts +1 -1
- package/dist/types/api/documents/useDocument.d.ts +1 -1
- package/dist/types/api/documents/useDocuments.d.ts +10 -2
- package/dist/types/api/documents/useUpdateDocument.d.ts +3 -3
- package/dist/types/api/invitedEntity/getInvitedEntityProblems.d.ts +1 -1
- package/dist/types/api/legalEntity/legalEntity.types.d.ts +32 -0
- package/dist/types/api/legalEntity/useLegalEntity.d.ts +92 -92
- package/dist/types/api/legalEntity/useUpdateLegalEntity.d.ts +14 -14
- package/dist/types/api/taskStatus/useTaskStatuses.d.ts +1 -1
- package/dist/types/api/transferInstruments/transferInstruments.types.d.ts +18 -0
- package/dist/types/api/transferInstruments/useCreateTransferInstrument.d.ts +2 -2
- package/dist/types/api/transferInstruments/useTransferInstrument.d.ts +1 -1
- package/dist/types/api/transferInstruments/useUpdateTransferInstrument.d.ts +2 -2
- package/dist/types/api/transferInstruments/useUpdateTrustedTransferInstrument.d.ts +1 -1
- package/dist/types/components/Apps/tasks/TaskList/TaskList.d.ts +1 -1
- package/dist/types/components/BankAccount/fields/BankAccountNumber/fieldConfig.d.ts +2 -0
- package/dist/types/components/BankAccount/forms/BankDocument/types.d.ts +1 -1
- package/dist/types/components/BankAccount/forms/PayoutAccount/types.d.ts +1 -1
- package/dist/types/components/BankAccount/forms/PayoutCountryDetails/types.d.ts +1 -1
- package/dist/types/components/BankAccount/forms/PayoutDetails/PayoutDetails.d.ts +1 -1
- package/dist/types/components/BankAccount/forms/PayoutDetails/types.d.ts +1 -1
- package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/AccountHolderDescriptionFragment.d.ts +1 -1
- package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/types.d.ts +1 -1
- package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/utils.d.ts +1 -1
- package/dist/types/components/BankAccount/mapping/mapPayoutAccountSchemaToApiBankAccount.d.ts +2 -2
- package/dist/types/components/BankAccount/mapping/mapPayoutDetailsToTransferInstrument.d.ts +3 -3
- package/dist/types/components/BankAccount/mapping/mapPayoutDocumentsToApiDocuments.d.ts +2 -2
- package/dist/types/components/BankAccount/mapping/mapTransferInstrumentToPayoutAccount.d.ts +1 -1
- package/dist/types/components/BankAccount/mapping/payoutKeyMappings.d.ts +8 -4
- package/dist/types/components/BankAccount/tasks/PayoutAccount/PayoutAccountTaskListItem.d.ts +2 -2
- package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/utils.d.ts +1 -1
- package/dist/types/components/Business/hooks/useBusinessDetailsData.d.ts +1 -1
- package/dist/types/components/Business/hooks/useSubmitBusinessDetails.types.d.ts +1 -1
- package/dist/types/components/Business/mapping/businessDetails/businessDetailsKeyMappings.d.ts +4 -4
- package/dist/types/components/Business/mapping/businessDetails/mapBusinessDetailsSchemaToLegalEntity.d.ts +4 -4
- package/dist/types/components/Business/mapping/businessDetails/mapLegalEntityToBusinessDetailsSchema.d.ts +1 -1
- package/dist/types/components/Business/mapping/businessDetails/solePropBusinessDetailsKeyMappings.d.ts +4 -4
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +1 -1
- package/dist/types/components/Business/utils/buildRequiredForms.d.ts +1 -1
- package/dist/types/components/Business/utils/getAvailableCompanyStructures.d.ts +1 -2
- package/dist/types/components/Business/utils/utils.d.ts +2 -15
- package/dist/types/components/BusinessLines/tasks/types.d.ts +1 -1
- package/dist/types/components/Contract/tasks/PciDropin/types.d.ts +1 -1
- package/dist/types/components/Contract/tasks/ServiceAgreementDropin/types.d.ts +1 -1
- package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +33 -33
- package/dist/types/components/EFP/mapping/mapBusinessFinancingToLegalEntity.d.ts +2 -2
- package/dist/types/components/EFP/mapping/mapLegalEntityToBusinessFinancing.d.ts +2 -2
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/types.d.ts +3 -3
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/utils.d.ts +3 -4
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/SourceOfFundsGettingStarted/SourceOfFundsGettingStarted.d.ts +2 -3
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/SourceOfFundsUploader/SourceOfFundsUpload.d.ts +1 -1
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/types.d.ts +1 -3
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/utils.d.ts +13 -5
- package/dist/types/components/EFP/tasks/TaxReportingDropin/TaxReportingGettingStarted.d.ts +2 -2
- package/dist/types/components/EmbeddedDropins/CreateTransferInstrumentComponent/CreateTransferInstrumentComponent.d.ts +1 -1
- package/dist/types/components/EmbeddedDropins/ManageIndividualComponent/ManageIndividualComponent.d.ts +1 -1
- package/dist/types/components/EmbeddedDropins/ManageTransferInstrumentComponent/ManageTransferInstrumentComponent.d.ts +1 -1
- package/dist/types/components/EmbeddedDropins/ManageTransferInstrumentComponent/ManageTransferInstrumentOverview/ManageTransferInstrumentOverview.d.ts +1 -2
- package/dist/types/components/EmbeddedDropins/ManageTransferInstrumentComponent/ManageTransferInstrumentOverviewItem/ManageTransferInstrumentOverviewItem.d.ts +1 -2
- package/dist/types/components/EmbeddedDropins/ManageTransferInstrumentComponent/ManageTransferInstrumentOverviewItemModal/ManageTransferInstrumentOverviewItemModal.d.ts +1 -2
- package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/types.d.ts +1 -1
- package/dist/types/components/EmbeddedDropins/ViewVerificationStatus/ViewVerificationStatusComponent.d.ts +1 -1
- package/dist/types/components/GlobalEntry/companyTypeMetadata.d.ts +10 -0
- package/dist/types/components/GlobalEntry/forms/CompanyStructure/CompanyStructure.d.ts +3 -0
- package/dist/types/components/GlobalEntry/forms/CompanyStructure/types.d.ts +10 -0
- package/dist/types/components/GlobalEntry/forms/RegistrationInformation/RegistrationInformation.d.ts +1 -1
- package/dist/types/components/GlobalEntry/{globalEntryKeyMapping.d.ts → mapping/globalEntryKeyMapping.d.ts} +9 -9
- package/dist/types/components/GlobalEntry/mapping/mapGlobalEntrySchemaToLegalEntity.d.ts +6 -0
- package/dist/types/components/GlobalEntry/mapping/mapLegalEntityToGlobalEntrySchema.d.ts +9 -0
- package/dist/types/components/GlobalEntry/rules.d.ts +1 -0
- package/dist/types/components/GlobalEntry/tasks/GlobalEntry.d.ts +1 -1
- package/dist/types/components/GlobalEntry/tasks/GlobalEntryModal.d.ts +1 -1
- package/dist/types/components/GlobalEntry/tasks/types.d.ts +2 -0
- package/dist/types/components/GlobalEntry/utils/buildRequiredForms.d.ts +16 -0
- package/dist/types/components/GlobalEntry/utils/getAvailableCompanyStructures.d.ts +12 -0
- package/dist/types/components/GlobalEntry/utils/submitGlobalEntry.d.ts +20 -0
- package/dist/types/components/GlobalEntry/utils/utils.d.ts +18 -0
- package/dist/types/components/GlobalEntry/validate.d.ts +3 -1
- package/dist/types/components/Individual/forms/BasicDetails/BasicDetails.types.d.ts +3 -3
- package/dist/types/components/Individual/forms/IdDocumentUpload/types.d.ts +1 -1
- package/dist/types/components/Individual/forms/IdNowVerificationModal/isIdNowModalOpen.d.ts +8 -8
- package/dist/types/components/Individual/forms/Individual.types.d.ts +2 -3
- package/dist/types/components/Individual/helpers/bafinUtils.d.ts +3 -4
- package/dist/types/components/Individual/helpers/findRelevantTaxInformation.d.ts +28 -0
- package/dist/types/components/Individual/helpers/hasLiveSelfieError.d.ts +11 -0
- package/dist/types/components/Individual/helpers/isManualVerificationOrExistingDoc.d.ts +13 -0
- package/dist/types/components/Individual/mapping/individualKeyMappings.d.ts +4 -4
- package/dist/types/components/Individual/mapping/mapIndividualDocumentToApiDocument.d.ts +2 -2
- package/dist/types/components/Individual/mapping/mapIndividualSchemaToLegalEntity.d.ts +2 -2
- package/dist/types/components/Individual/mapping/mapLegalEntityToIndividualSchema.d.ts +1 -1
- package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerDetails/DecisionMakerDetails.types.d.ts +1 -1
- package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerDetails/utils.d.ts +34 -10
- package/dist/types/components/Individual/tasks/DecisionMakers/getTrustedDecisionMakers.d.ts +2 -3
- package/dist/types/components/Individual/tasks/DecisionMakers/hooks/useTaskStatusWithTimeout.d.ts +1 -0
- package/dist/types/components/Individual/tasks/DecisionMakers/types.d.ts +2 -3
- package/dist/types/components/Individual/tasks/DecisionMakers/utils.d.ts +1 -1
- package/dist/types/components/Shared/EntityAssociation/types.d.ts +2 -2
- package/dist/types/components/Shared/Introduction/Introduction.d.ts +1 -1
- package/dist/types/components/Shared/Introduction/IntroductionScreen.d.ts +1 -1
- package/dist/types/components/Shared/Introduction/constants.d.ts +1 -1
- package/dist/types/components/Shared/Introduction/copy.d.ts +1 -1
- package/dist/types/components/Shared/SingpassBanner/SingpassBanner.d.ts +1 -1
- package/dist/types/components/Shared/SingpassSelection/types.d.ts +1 -1
- package/dist/types/components/Shared/devex/DebugListener/debugInfo.d.ts +1 -2
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/RegistrationNumberTypeSelector/getDefaultRegistrationNumberType.d.ts +1 -2
- package/dist/types/components/Shared/fields/TaxInformationField/TaxIdNumberTypeSelector/TaxIdNumberTypeSelector.d.ts +1 -2
- package/dist/types/components/Shared/fields/TaxInformationField/TaxIdNumberTypeSelector/findExistingTaxInformation.d.ts +10 -0
- package/dist/types/components/Shared/fields/TaxInformationField/fieldConfig.d.ts +3 -4
- package/dist/types/components/Shared/fields/TaxInformationField/taxIdNumberTypes.d.ts +107 -8
- package/dist/types/components/Shared/fields/TaxInformationField/types.d.ts +7 -6
- package/dist/types/components/Shared/fields/VatNumberField/VatNumberTypeSelector/VatNumberTypeSelector.d.ts +1 -2
- package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
- package/dist/types/components/Shared/forms/BusinessTypeSelection/types.d.ts +1 -1
- package/dist/types/components/Shared/forms/BusinessTypeSelection/useUpdateLegalEntityAndSelectAccountHolder.d.ts +1 -2
- package/dist/types/components/Shared/forms/BusinessTypeSelection/utils.d.ts +2 -4
- package/dist/types/components/Shared/forms/ConstitutionalDocument/types.d.ts +1 -1
- package/dist/types/components/Shared/forms/DocumentUpload/types.d.ts +1 -1
- package/dist/types/components/Shared/tasks/CustomerSupport/mapping/customerSupportKeyMapping.d.ts +2 -2
- package/dist/types/components/Trust/hooks/useExemptSettlor.d.ts +1 -1
- package/dist/types/components/Trust/hooks/useTrustMemberNavigation.hook.d.ts +1 -1
- package/dist/types/components/Trust/mapping/mapLegalEntityToTrust.d.ts +1 -1
- package/dist/types/components/Trust/mapping/mapTrustDocumentToApiDocument.d.ts +2 -2
- package/dist/types/components/Trust/mapping/mapTrustToLegalEntity.d.ts +2 -2
- package/dist/types/components/Trust/mapping/trustKeyMappings.d.ts +4 -4
- package/dist/types/components/Trust/mapping/trustMembers/getTrustMembers.d.ts +1 -1
- package/dist/types/components/Trust/mapping/trustMembers/mapEntityAssociationsToTrustMembers.d.ts +3 -4
- package/dist/types/components/Trust/mapping/trustMembers/mapRootLegalEntityToTrustMember.d.ts +1 -1
- package/dist/types/components/Trust/tasks/RoleAndTypeDropin/types.d.ts +1 -1
- package/dist/types/components/Trust/tasks/TrustDropin/types.d.ts +1 -1
- package/dist/types/components/Trust/tasks/TrustMembers/types.d.ts +3 -4
- package/dist/types/components/Trust/utils/addOrUpdateAssociatedTrustMember.d.ts +1 -1
- package/dist/types/components/Trust/utils/addOrUpdateUndefinedBeneficiary.d.ts +1 -1
- package/dist/types/components/Trust/utils/createExemptSettlor.d.ts +1 -1
- package/dist/types/components/Trust/utils/deleteAssociatedTrustMember.d.ts +1 -1
- package/dist/types/components/Trust/utils/deleteUndefinedBeneficiary.d.ts +1 -1
- package/dist/types/components/Trust/utils/trustUtil.d.ts +5 -6
- package/dist/types/components/Trust/utils/updateExemptSettlorName.d.ts +1 -1
- package/dist/types/components/UnincorporatedPartnership/hooks/useUnincorporatedPartnershipNavigation.d.ts +1 -2
- package/dist/types/components/UnincorporatedPartnership/mapping/mapLegalEntityToUnincorporatedPartnership.d.ts +1 -1
- package/dist/types/components/UnincorporatedPartnership/mapping/mapUnincorporatedPartnershipToLegalEntity.d.ts +2 -2
- package/dist/types/components/UnincorporatedPartnership/mapping/unincorporatedPartnershipKeyMappings.d.ts +3 -3
- package/dist/types/components/UnincorporatedPartnership/tasks/UnincorporatedPartnershipMembers/types.d.ts +1 -2
- package/dist/types/components/UnincorporatedPartnership/tasks/UnincorporatedPartnershipRoleAndType/types.d.ts +1 -2
- package/dist/types/components/UnincorporatedPartnership/utils/unincorporatedPartnershipMembers.d.ts +3 -4
- package/dist/types/components/ui/molecules/DocumentGuidance/DocumentGuidance.types.d.ts +1 -1
- package/dist/types/context/ToggleContext/types.d.ts +0 -4
- package/dist/types/core/errorMapping.d.ts +3 -4
- package/dist/types/core/models/api/accountIdentification.d.ts +5 -1
- package/dist/types/core/models/api/legal-entity-association.d.ts +0 -19
- package/dist/types/core/process-field-configurations.d.ts +4 -6
- package/dist/types/core/user-events.d.ts +2 -4
- package/dist/types/hooks/introduction/useCanSeeIntroduction.d.ts +1 -1
- package/dist/types/hooks/introduction/useIntroductionScreens.d.ts +1 -1
- package/dist/types/hooks/introduction/useShouldShowIntroduction.d.ts +1 -1
- package/dist/types/hooks/singpass/useSingpassMyInfoLogin.d.ts +1 -1
- package/dist/types/hooks/useAssociatedLegalEntity.d.ts +1 -2
- package/dist/types/hooks/useAssociatedLegalRepresentative.d.ts +1 -1
- package/dist/types/hooks/useBusinessSetup.d.ts +1 -1
- package/dist/types/hooks/useForm/types.d.ts +1 -2
- package/dist/types/hooks/useLegalEntityType.d.ts +1 -2
- package/dist/types/hooks/useScenarioConfiguration.d.ts +1 -1
- package/dist/types/router/DefaultRouteRedirect.d.ts +1 -1
- package/dist/types/router/OnboardingRouter.d.ts +1 -2
- package/dist/types/router/getDefaultTask.d.ts +1 -1
- package/dist/types/stores/globalStore/calculateTaskStatus.d.ts +3 -5
- package/dist/types/stores/globalStore/determineTaskIdentifiers.d.ts +3 -5
- package/dist/types/stores/globalStore/get-task-status.d.ts +4 -4
- package/dist/types/stores/globalStore/globalStore.d.ts +3 -5
- package/dist/types/stores/globalStore/isEmptyEntity.d.ts +1 -1
- package/dist/types/types/businessEntityType.d.ts +1 -2
- package/dist/types/types/errors/capability-problems.d.ts +5 -1
- package/dist/types/types/errors/entity-problems.d.ts +8 -5
- package/dist/types/types/form-rules.d.ts +1 -1
- package/dist/types/utils/accountHolderUtils.d.ts +1 -1
- package/dist/types/utils/addLinkedFields.d.ts +2 -2
- package/dist/types/utils/analytics/debouncedInputEvent.d.ts +4 -4
- package/dist/types/utils/analytics/getAnalyticsAssociatedEntityDetails.d.ts +2 -3
- package/dist/types/utils/analytics/getPrefilledDetails.d.ts +2 -2
- package/dist/types/utils/api/documentUtils.d.ts +21 -10
- package/dist/types/utils/api/getProblemsForEntity.d.ts +1 -1
- package/dist/types/utils/api/processCapabilities.d.ts +11 -4
- package/dist/types/utils/bankUtils.d.ts +5 -0
- package/dist/types/utils/birthDateUtils.d.ts +6 -1
- package/dist/types/utils/businessUtils.d.ts +21 -6
- package/dist/types/utils/customerSupportUtils.d.ts +2 -3
- package/dist/types/utils/decisionMakerRoles.d.ts +4 -5
- package/dist/types/utils/entityAssociationUtil.d.ts +21 -12
- package/dist/types/utils/entityStatusUtil.d.ts +1 -1
- package/dist/types/utils/getFieldsWithExistingData.d.ts +2 -2
- package/dist/types/utils/getLegalEntityCountry.d.ts +1 -1
- package/dist/types/utils/getName.d.ts +3 -3
- package/dist/types/utils/getTrustedFields.d.ts +4 -5
- package/dist/types/utils/mapping/documentGuidanceMap.d.ts +2 -2
- package/dist/types/utils/mapping/getPage.d.ts +3 -4
- package/dist/types/utils/mapping/mappingRecord.d.ts +1 -1
- package/dist/types/utils/roleMetadata.d.ts +1 -1
- package/dist/types/utils/unincorporatedParnershipUtils.d.ts +4 -4
- package/dist/{types-BeveNAZK.js → types-B9zXzag-.js} +4 -5
- package/dist/{types-wRlt8bxb.js → types-BA3bcGAv.js} +1 -1
- package/dist/types-CZAHRt31.js +147 -0
- package/dist/types-Cwq1JAWT.js +31 -0
- package/dist/{upload-D85xAAAm.js → upload-C5NC1E4N.js} +2 -2
- package/dist/uppercase-DvjwUM0n.js +7 -0
- package/dist/useAccountHolder-BpIX1iBG.js +102 -0
- package/dist/useAllowedCountries-qyvo-c6A.js +80 -0
- package/dist/useAnalyticsContext-gSnRnYgV.js +12 -0
- package/dist/{getFormSlice-DzRO0UUx.js → useAssociatedLegalEntity-BdcoiUby.js} +2 -19
- package/dist/{useBusinessDetailsData-Bja80UYy.js → useBusinessDetailsData-sWGe796Y.js} +170 -160
- package/dist/{useCanSeeIntroduction-BcfQC4IP.js → useCanSeeIntroduction-DQbanJNE.js} +13 -13
- package/dist/useCreateLegalEntity-CYZd_62a.js +24 -0
- package/dist/{useDataMissingRemediations-msU1AJvo.js → useDataMissingRemediations-ttUrk09_.js} +4 -4
- package/dist/useDataset-CdLBLq98.js +98 -0
- package/dist/useDeleteTransferInstrument-C10xzHiO.js +31 -0
- package/dist/{useForm-DbDFfb2S.js → useForm-CWrbJG44.js} +7 -5
- package/dist/{useHideTaskStepper-CbMcV9mk.js → useHideTaskStepper-Dk7ZQ3U8.js} +1 -1
- package/dist/useId-BkDhUta2.js +28 -0
- package/dist/useMultiForm-BxASst0O.js +790 -0
- package/dist/{useNavigate-CiKOI5QV.js → useNavigate-DkfNV3JZ.js} +33 -33
- package/dist/{useSalesChannels-BvGJ9PT6.js → useSalesChannels-B06_h460.js} +3 -3
- package/dist/{useScenarios-CGcmXgJv.js → useScenarios-BfYE0clW.js} +2 -2
- package/dist/useSettingsContext-9O3Aqpfq.js +12 -0
- package/dist/{useTaskLandedEvent-pmN03gtI.js → useTaskLandedEvent-DwZHcMEQ.js} +2 -2
- package/dist/useToastContext-B6Mqc2HY.js +12 -0
- package/dist/useToggleContext-B_YexrbT.js +21 -0
- package/dist/{useTrustMembers-f13Kf1Zk.js → useTrustMembers-DtOJPaaV.js} +13 -14
- package/dist/{useUnincorporatedPartnershipMembers-K5jkCKfJ.js → useUnincorporatedPartnershipMembers-CxDZCOte.js} +8 -9
- package/dist/useUpdateLegalEntity-B7LRg8m0.js +29 -0
- package/dist/{StateField-CsO_28Co.js → utils-BWumuCvl.js} +3 -89
- package/dist/{utils-BUOt0VrX.js → utils-CJcGZvj1.js} +13 -14
- package/dist/utils-CYUYe54m.js +24 -0
- package/dist/{bafinUtils-M2AASP_e.js → utils-Ck_mZapQ.js} +1534 -1742
- package/dist/utils-DdHbAadK.js +80 -0
- package/dist/{utils-2tir5QtF.js → utils-SKYT7xU4.js} +2 -2
- package/dist/{validate-BpZBKknS.js → validate-96E_RrNB.js} +3 -3
- package/dist/{validate-u6nDNwf1.js → validate-BCNnfwPW.js} +2 -2
- package/dist/{validate-YBDlgvjy.js → validate-D-l4YRka.js} +7 -6
- package/dist/{validate-CPTQceEQ.js → validate-DKwCZSlM.js} +64 -37
- package/dist/{validateExtractionResult-dH4TewHf.js → validateExtractionResult-D3d0xx90.js} +4 -4
- package/dist/{validationError-B-B3GC86.js → validationError-DV6t8Ubb.js} +2 -2
- package/dist/validationResult-bjYBDjbU.js +29 -0
- package/dist/validatorUtils-D2O6AAZn.js +106 -0
- package/dist/{warning-circle-fill-BDTmKU1s.js → warning-circle-fill-C2lMYPJW.js} +2 -2
- package/dist/{warning-diamond-filled-BjDL-xa8.js → warning-diamond-filled-CQ2DdW5g.js} +2 -2
- package/dist/{webinar-YMbPoCx3.js → webinar-BpZWqd-g.js} +2 -2
- package/package.json +26 -26
- package/dist/Icon-C3S5_kkS.js +0 -175
- package/dist/LegalRepresentativeDetailsPage-CvGtANu3.js +0 -74
- package/dist/PayoutDetailsPage-MW5Pygp2.js +0 -70
- package/dist/RadioGroup-D8DRUJ2o.js +0 -1806
- package/dist/RootBusinessDetailsPage-Cmh9Z_4g.js +0 -68
- package/dist/RootIndividualDetailsPage-04cJ6C15.js +0 -80
- package/dist/SoleProprietorshipPage-CWegllTo.js +0 -70
- package/dist/TrustMemberCompanyPage-DTe7xWpj.js +0 -109
- package/dist/TrustMemberIndividualPage-C1BDs9Rm.js +0 -110
- package/dist/UnincorporatedPartnershipIndividualPage-DdPh2_sa.js +0 -79
- package/dist/bg-BG-BtgA44Ui.js +0 -7
- package/dist/bg-BG-DX5QKxJz.js +0 -7
- package/dist/bg-BG-DYkxVgeJ.js +0 -7
- package/dist/bg-BG-K6LIkCdf.js +0 -7
- package/dist/bg-BG-uuNDTOoN.js +0 -7
- package/dist/cs-CZ-BJSrh3Vp.js +0 -7
- package/dist/cs-CZ-CMXGY6Ep.js +0 -7
- package/dist/cs-CZ-Ci8c58xJ.js +0 -7
- package/dist/cs-CZ-Cu1v5FA8.js +0 -7
- package/dist/cs-CZ-lJQmuyHq.js +0 -7
- package/dist/da-DK-B9O3xbY6.js +0 -7
- package/dist/da-DK-BNwXg4DX.js +0 -7
- package/dist/da-DK-C1kmOHvo.js +0 -7
- package/dist/da-DK-D53M_d04.js +0 -7
- package/dist/da-DK-DjAV5d9A.js +0 -7
- package/dist/de-DE-B3sSNcDv.js +0 -7
- package/dist/de-DE-C9N6F5oM.js +0 -7
- package/dist/de-DE-CjMOQMqQ.js +0 -7
- package/dist/de-DE-qJPTCQlG.js +0 -7
- package/dist/de-DE-qSBQE-6M.js +0 -7
- package/dist/de-DE-w4l6boYT.js +0 -7
- package/dist/decision-makers-group-DAoxQRJ3.js +0 -4169
- package/dist/el-GR-BLNCX9mm.js +0 -7
- package/dist/el-GR-Bx996PXx.js +0 -7
- package/dist/el-GR-CgoxpC-Q.js +0 -7
- package/dist/el-GR-DaAMIpOR.js +0 -7
- package/dist/el-GR-DqTetsjB.js +0 -7
- package/dist/el-GR-pGsVWsOm.js +0 -7
- package/dist/en-US-B82BbZaB.js +0 -7
- package/dist/en-US-C3i5Oge2.js +0 -7
- package/dist/en-US-C8karqc5.js +0 -7
- package/dist/en-US-CJPD8qHc.js +0 -7
- package/dist/en-US-D0fscfsz.js +0 -7
- package/dist/en-US-DapC--Cs.js +0 -7
- package/dist/es-ES-C14ZT-97.js +0 -7
- package/dist/es-ES-DeT4zIDW.js +0 -7
- package/dist/es-ES-DyB2KXfT.js +0 -7
- package/dist/es-ES-U4-lDfZq.js +0 -7
- package/dist/es-ES-tVQDUTJN.js +0 -7
- package/dist/es-ES-wvcyuTNN.js +0 -7
- package/dist/es-LA-B5IRDCf_.js +0 -7
- package/dist/es-LA-B_hzWiiE.js +0 -7
- package/dist/es-LA-CG_cu1hM.js +0 -7
- package/dist/es-LA-ChLRkx-r.js +0 -7
- package/dist/es-LA-mFT_9PL_.js +0 -7
- package/dist/et-EE-4_ZUNt3W.js +0 -7
- package/dist/et-EE-BCWBT8XN.js +0 -7
- package/dist/et-EE-BQEyJFZb.js +0 -7
- package/dist/et-EE-DSK7kb3n.js +0 -7
- package/dist/et-EE-DWVzz1wR.js +0 -7
- package/dist/fi-FI-B-7uBAf5.js +0 -7
- package/dist/fi-FI-BeJtSWIh.js +0 -7
- package/dist/fi-FI-Caa9ydMd.js +0 -7
- package/dist/fi-FI-D06EzKrW.js +0 -7
- package/dist/fi-FI-DgMsQBRO.js +0 -7
- package/dist/fr-FR-8a-RK9xd.js +0 -7
- package/dist/fr-FR-BCfqr4jm.js +0 -7
- package/dist/fr-FR-BTJoQq71.js +0 -7
- package/dist/fr-FR-CDv300-8.js +0 -7
- package/dist/fr-FR-D7DTFYe4.js +0 -7
- package/dist/fr-FR-Dl4NL-Nc.js +0 -7
- package/dist/getLegalEntityCountry-CNE5uei8.js +0 -17
- package/dist/hr-HR-B11sggmG.js +0 -7
- package/dist/hr-HR-BjxPRJ1o.js +0 -7
- package/dist/hr-HR-COdiWKoq.js +0 -7
- package/dist/hr-HR-CXH5M5JZ.js +0 -7
- package/dist/hr-HR-me1zsMas.js +0 -7
- package/dist/hu-HU-BNlsrO-l.js +0 -7
- package/dist/hu-HU-BQ5310Yi.js +0 -7
- package/dist/hu-HU-D1ZZwcl0.js +0 -7
- package/dist/hu-HU-DkSsL94T.js +0 -7
- package/dist/hu-HU-Dp6xOBN_.js +0 -7
- package/dist/it-IT-BORQC-7u.js +0 -7
- package/dist/it-IT-BlaVymCj.js +0 -7
- package/dist/it-IT-CawjvBDX.js +0 -7
- package/dist/it-IT-Cnk7j_gC.js +0 -7
- package/dist/it-IT-DIIRAF4_.js +0 -7
- package/dist/it-IT-x4LV31GV.js +0 -7
- package/dist/ja-JP-CyXnoIu3.js +0 -7
- package/dist/ja-JP-DBne3dbI.js +0 -7
- package/dist/ja-JP-DS8zN3mY.js +0 -7
- package/dist/ja-JP-Dpe9Odla.js +0 -7
- package/dist/ja-JP-DrHQO_Se.js +0 -7
- package/dist/ja-JP-h3E8hgLv.js +0 -7
- package/dist/legal-entity-type-0MfCGzUf.js +0 -13
- package/dist/lt-LT-8kOI6QVq.js +0 -7
- package/dist/lt-LT-B18sQY9g.js +0 -7
- package/dist/lt-LT-Byl8QeWO.js +0 -7
- package/dist/lt-LT-D3ZUJfjr.js +0 -7
- package/dist/lt-LT-Fc1lOUlz.js +0 -7
- package/dist/lv-LV-C70c94CI.js +0 -7
- package/dist/lv-LV-CXifQKfG.js +0 -7
- package/dist/lv-LV-DctYQmfH.js +0 -7
- package/dist/lv-LV-Mj_iV56f.js +0 -7
- package/dist/lv-LV-adiXoKhv.js +0 -7
- package/dist/nl-NL-BIpptPn4.js +0 -7
- package/dist/nl-NL-BWGCqpWp.js +0 -7
- package/dist/nl-NL-Bv8Zk-6e.js +0 -7
- package/dist/nl-NL-DOB0b0m4.js +0 -7
- package/dist/nl-NL-ehxkZFQd.js +0 -7
- package/dist/nl-NL-jt4eYGEY.js +0 -7
- package/dist/no-NO-BG1sYkpp.js +0 -7
- package/dist/no-NO-CeZQnyyD.js +0 -7
- package/dist/no-NO-Chwg5Roi.js +0 -7
- package/dist/no-NO-Dx_Z3uoZ.js +0 -7
- package/dist/no-NO-P5tRWhV9.js +0 -7
- package/dist/pl-PL-BsXtscoI.js +0 -7
- package/dist/pl-PL-CWFdZf24.js +0 -7
- package/dist/pl-PL-DSbuyzBx.js +0 -7
- package/dist/pl-PL-J9S3_lCf.js +0 -7
- package/dist/pl-PL-_KG-ZD1N.js +0 -7
- package/dist/pt-BR-B2q9Nl16.js +0 -7
- package/dist/pt-BR-BYbyk6xS.js +0 -7
- package/dist/pt-BR-Cph-P8oH.js +0 -7
- package/dist/pt-BR-D1yTuXWd2.js +0 -7
- package/dist/pt-BR-fKlNUybd.js +0 -7
- package/dist/pt-PT-C1gtp2_N.js +0 -7
- package/dist/pt-PT-CQQkh5PS.js +0 -7
- package/dist/pt-PT-D8ldyR-j.js +0 -7
- package/dist/pt-PT-DAvsI-Tr.js +0 -7
- package/dist/pt-PT-DhokEMPi.js +0 -7
- package/dist/pt-PT-IPhkbQvT.js +0 -7
- package/dist/resolveEnvironment-BYEL10Nc.js +0 -2524
- package/dist/ro-RO-C6xoaASq.js +0 -7
- package/dist/ro-RO-CP_IrOlX.js +0 -7
- package/dist/ro-RO-CQJk7Cpo.js +0 -7
- package/dist/ro-RO-CnMe6Mfw.js +0 -7
- package/dist/ro-RO-_BLhsnIB.js +0 -7
- package/dist/sk-SK-BOc9IqyW.js +0 -7
- package/dist/sk-SK-Bb1CdAzD.js +0 -7
- package/dist/sk-SK-Br1Y4_CN.js +0 -7
- package/dist/sk-SK-Bx2_85dW.js +0 -7
- package/dist/sk-SK-C889qQFo.js +0 -7
- package/dist/sl-SI-B-Xa0hlk.js +0 -7
- package/dist/sl-SI-BQc61Sz2.js +0 -7
- package/dist/sl-SI-DHPadSTy.js +0 -7
- package/dist/sl-SI-DO9c7geI.js +0 -7
- package/dist/sl-SI-bkhhInrg.js +0 -7
- package/dist/sv-SE-BXrlr0X5.js +0 -7
- package/dist/sv-SE-Dk81lopg.js +0 -7
- package/dist/sv-SE-DzsWB30f.js +0 -7
- package/dist/sv-SE-IBYnJfbW.js +0 -7
- package/dist/sv-SE-X89Q6ZAq.js +0 -7
- package/dist/sv-SE-l_UVgmVu.js +0 -7
- package/dist/types/components/GlobalEntry/utils.d.ts +0 -30
- package/dist/types/components/Shared/fields/TaxInformationField/TaxIdNumberTypeSelector/getDefaultTaxIdNumberType.d.ts +0 -30
- package/dist/types/components/Shared/fields/TaxInformationField/TaxIdNumberTypeSelector/inferTaxIdNumberType.d.ts +0 -13
- package/dist/types/core/models/api/attachment.d.ts +0 -7
- package/dist/types/core/models/api/document.d.ts +0 -25
- package/dist/types/core/models/api/entity-type.d.ts +0 -5
- package/dist/types/core/models/api/legal-arrangement.d.ts +0 -24
- package/dist/types/core/models/api/legal-entity-type.d.ts +0 -8
- package/dist/types/core/models/api/legal-entity.d.ts +0 -36
- package/dist/types/core/models/api/problem.d.ts +0 -12
- package/dist/types/core/models/api/remediating-action.d.ts +0 -5
- package/dist/types/core/models/api/transfer-instrument.d.ts +0 -33
- package/dist/types/core/models/api/trusted-fields-provider.d.ts +0 -5
- package/dist/types/core/models/api/verification-error.d.ts +0 -19
- package/dist/utils-DBIDcVUN.js +0 -214
|
@@ -1,1418 +1,1688 @@
|
|
|
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] = "79963831-26c4-42c3-8ee0-c583e10bcdb8", e._sentryDebugIdIdentifier = "sentry-dbid-79963831-26c4-42c3-8ee0-c583e10bcdb8");
|
|
4
4
|
} catch (e) {}
|
|
5
|
-
import { r as useTranslation } from "./translation-
|
|
6
|
-
import { j as useToggleContext, pt as useAccountHolder } from "./resolveEnvironment-BYEL10Nc.js";
|
|
7
|
-
import { t as Icon } from "./Icon-C3S5_kkS.js";
|
|
8
|
-
import { t as Typography } from "./Typography-CAc_f5Iq.js";
|
|
9
|
-
import { t as LegalEntityTypes } from "./legal-entity-type-0MfCGzUf.js";
|
|
10
|
-
import { i as noop, s as keysOf } from "./genUtils-Ce61IJs8.js";
|
|
5
|
+
import { r as useTranslation } from "./translation-DbATp_35.js";
|
|
11
6
|
import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
|
|
12
7
|
import { t as TaskTypes } from "./taskTypes-3vSkMBDm.js";
|
|
13
|
-
import { t as
|
|
14
|
-
import { t as
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import { t as
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import { t as
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
return country === CountryCodes.Japan && isFeatureEnabled("EnableJapanLocalization");
|
|
29
|
-
};
|
|
30
|
-
//#endregion
|
|
31
|
-
//#region src/utils/textTransformation/toFullWidth.ts
|
|
32
|
-
var applyDelta = (delta) => (char) => String.fromCharCode(char.charCodeAt(0) + delta);
|
|
33
|
-
/**
|
|
34
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/normalize#nfkc
|
|
35
|
-
*/
|
|
36
|
-
var standardNormalization = (input) => input.normalize("NFKC");
|
|
37
|
-
/**
|
|
38
|
-
* The order here does matter, since the characters matched by each converter may overlap.
|
|
39
|
-
*/
|
|
40
|
-
var converters = [
|
|
41
|
-
{
|
|
42
|
-
name: "latin",
|
|
43
|
-
match: /[!-~]/g,
|
|
44
|
-
convert: applyDelta(65248)
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
name: "hangul1",
|
|
48
|
-
match: /[ᄀ-ᄒ]/g,
|
|
49
|
-
convert: standardNormalization
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
name: "hangul2",
|
|
53
|
-
match: /[ᅡ-ᅵ]/g,
|
|
54
|
-
convert: standardNormalization
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
name: "katakana",
|
|
58
|
-
match: /[\uff60-\uff9f]+/g,
|
|
59
|
-
convert: standardNormalization
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
name: "extras",
|
|
63
|
-
match: /[¢£¬¯¦¥₩\u0020|←↑→↓■°]/g,
|
|
64
|
-
convert: (char) => {
|
|
65
|
-
return "¢£¬ ̄¦¥₩ |←↑→↓■○"["¢£¬¯¦¥₩ |←↑→↓■°".indexOf(char)];
|
|
66
|
-
}
|
|
67
|
-
}
|
|
8
|
+
import { t as Field } from "./Field-DwDJQVSS.js";
|
|
9
|
+
import { n as mapSchemaFieldsToApiScriptLocalization, t as mapApiScriptLocalizationToSchemaFields } from "./mapScriptLocalization-BCfkZo1y.js";
|
|
10
|
+
import { t as isEmpty } from "./isEmpty-Uewyl-r6.js";
|
|
11
|
+
import { a as validateNotEmptyOnBlur, o as validatePatternOnBlur } from "./patternValidators-DsrZkuOO.js";
|
|
12
|
+
import { a as nonInputs, i as makeMask, n as alphanumericInputs, o as numericInputs, r as customInputs, s as spacer, t as alphaInputs } from "./maskHelpers-C0wnCoJl.js";
|
|
13
|
+
import { n as businessRegistrationNumberMasks, t as businessRegistrationNumberPatterns } from "./businessRegistrationNumberPatterns-A08SLm03.js";
|
|
14
|
+
import { t as uppercase } from "./uppercase-DvjwUM0n.js";
|
|
15
|
+
import { t as RadioGroup } from "./RadioGroup-Bf3DlQnZ.js";
|
|
16
|
+
import { useCallback, useEffect, useMemo } from "preact/hooks";
|
|
17
|
+
import { jsx } from "preact/jsx-runtime";
|
|
18
|
+
//#region src/components/Shared/fields/TaxInformationField/taxIdNumberTypes.ts
|
|
19
|
+
var restrictedEntityTypes = [
|
|
20
|
+
"soleProprietorship",
|
|
21
|
+
"trust",
|
|
22
|
+
"individual"
|
|
68
23
|
];
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
var toFullWidth = (value) => {
|
|
74
|
-
let input = value;
|
|
75
|
-
for (const { match, convert } of converters) input = input.replaceAll(match, convert);
|
|
76
|
-
return input;
|
|
77
|
-
};
|
|
78
|
-
//#endregion
|
|
79
|
-
//#region src/components/Shared/fields/TaxInformationField/fieldConfig.ts
|
|
80
|
-
var taxInformationDefaultFieldMetadata = { label: "taxId" };
|
|
81
|
-
var exemptedFromTaxDefaultFieldMetadata = { label: "iDontHaveATaxId" };
|
|
82
|
-
/**
|
|
83
|
-
* Mapping function to parse TaxInformation schemas to validate the string for TaxInformation.number
|
|
84
|
-
*
|
|
85
|
-
* @param validators - String validators for the TaxInformation.number
|
|
86
|
-
* @param country - Country in the fieldConfig
|
|
87
|
-
*/
|
|
88
|
-
var mapValidators = (validators, country) => {
|
|
89
|
-
return validators.map((validator) => ({
|
|
90
|
-
...validator,
|
|
91
|
-
validate: (taxInformation) => {
|
|
92
|
-
const taxInfo = taxInformation?.find((taxId) => country === taxId.country);
|
|
93
|
-
if (taxInfo?.numberAbsent) return true;
|
|
94
|
-
return taxInfo?.number ? validator.validate(taxInfo.number) : false;
|
|
95
|
-
}
|
|
96
|
-
}));
|
|
24
|
+
var isRestrictedEntityType = (entityType) => Boolean(entityType && restrictedEntityTypes.includes(entityType));
|
|
25
|
+
var isApplicableOnlyForSingleRestrictedType = (option) => {
|
|
26
|
+
if (!option.applicableOnlyFor || option.applicableOnlyFor.length !== 1) return false;
|
|
27
|
+
return restrictedEntityTypes.includes(option.applicableOnlyFor[0]);
|
|
97
28
|
};
|
|
98
|
-
var
|
|
99
|
-
[CountryCodes.Australia]: {
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
},
|
|
111
|
-
[CountryCodes.
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
29
|
+
var taxIdNumberOptions = {
|
|
30
|
+
[CountryCodes.Australia]: [{
|
|
31
|
+
id: "ABN",
|
|
32
|
+
name: "australianBusinessNumberAbn"
|
|
33
|
+
}, {
|
|
34
|
+
id: "TFN",
|
|
35
|
+
name: "taxInformationNumber__AU_Individual",
|
|
36
|
+
applicableOnlyFor: ["individual"]
|
|
37
|
+
}],
|
|
38
|
+
[CountryCodes.Austria]: [{
|
|
39
|
+
id: "STEUERNUMMER",
|
|
40
|
+
name: "taxInformationNumber__AT"
|
|
41
|
+
}],
|
|
42
|
+
[CountryCodes.Belgium]: [{
|
|
43
|
+
id: "BUSINESS_NUMMER",
|
|
44
|
+
name: "businessNumber",
|
|
45
|
+
applicableOnlyFor: [
|
|
46
|
+
"soleProprietorship",
|
|
47
|
+
"privateCompany",
|
|
48
|
+
"governmentalOrganization",
|
|
49
|
+
"associationIncorporated",
|
|
50
|
+
"partnershipIncorporated",
|
|
51
|
+
"nonProfit",
|
|
52
|
+
"unincorporatedPartnership",
|
|
53
|
+
"unlistedPublicCompany"
|
|
54
|
+
]
|
|
55
|
+
}, {
|
|
56
|
+
id: "NUMERO_NATIONAL",
|
|
57
|
+
name: "taxInformationNumber__BE_Individual",
|
|
58
|
+
applicableOnlyFor: ["individual"]
|
|
59
|
+
}],
|
|
60
|
+
[CountryCodes.Brazil]: [{
|
|
61
|
+
id: "CNPJ",
|
|
62
|
+
name: "CNPJ"
|
|
63
|
+
}],
|
|
64
|
+
[CountryCodes.Bulgaria]: [{
|
|
65
|
+
id: "EGN",
|
|
66
|
+
name: "taxInformationNumber__BG",
|
|
67
|
+
applicableOnlyFor: ["individual"]
|
|
68
|
+
}],
|
|
69
|
+
[CountryCodes.Canada]: [{
|
|
70
|
+
id: "BUSINESS_NUMBER",
|
|
71
|
+
name: "businessNumber"
|
|
72
|
+
}, {
|
|
73
|
+
id: "SIN",
|
|
74
|
+
name: "taxInformationNumber__CA",
|
|
75
|
+
applicableOnlyFor: ["individual"]
|
|
76
|
+
}],
|
|
77
|
+
[CountryCodes.China]: [{
|
|
78
|
+
id: "RESIDENT_IDENTITY_CARD_NUMBER",
|
|
79
|
+
name: "taxInformationNumber__CN",
|
|
80
|
+
applicableOnlyFor: ["individual"]
|
|
81
|
+
}],
|
|
82
|
+
[CountryCodes.Croatia]: [{
|
|
83
|
+
id: "OIB",
|
|
84
|
+
name: "taxInformationNumber__HR"
|
|
85
|
+
}],
|
|
86
|
+
[CountryCodes.Cyprus]: [{
|
|
87
|
+
id: "TIC",
|
|
88
|
+
name: "taxInformationNumber__CY"
|
|
89
|
+
}],
|
|
90
|
+
[CountryCodes.CzechRepublic]: [{
|
|
91
|
+
id: "RODNE_CISLO",
|
|
92
|
+
name: "taxInformationNumber__CZ",
|
|
93
|
+
applicableOnlyFor: ["individual"]
|
|
94
|
+
}],
|
|
95
|
+
[CountryCodes.Denmark]: [{
|
|
96
|
+
id: "CPR",
|
|
97
|
+
name: "taxInformationNumber__DK",
|
|
98
|
+
applicableOnlyFor: ["individual"]
|
|
99
|
+
}],
|
|
100
|
+
[CountryCodes.Estonia]: [{
|
|
101
|
+
id: "ISIKUKOOD",
|
|
102
|
+
name: "taxInformationNumber__ET_Individual",
|
|
103
|
+
applicableOnlyFor: ["individual"]
|
|
104
|
+
}, {
|
|
105
|
+
id: "REGISTRIKOOD",
|
|
106
|
+
name: "registrikood",
|
|
107
|
+
applicableOnlyFor: ["privateCompany"]
|
|
108
|
+
}],
|
|
109
|
+
[CountryCodes.Egypt]: [{
|
|
110
|
+
id: "TIN_EG",
|
|
111
|
+
name: "taxInformationNumber__EG",
|
|
112
|
+
applicableOnlyFor: ["individual"]
|
|
113
|
+
}],
|
|
114
|
+
[CountryCodes.Finland]: [{
|
|
115
|
+
id: "HENKILOTUNNUS",
|
|
116
|
+
name: "taxInformationNumber__FI",
|
|
117
|
+
applicableOnlyFor: ["individual"]
|
|
118
|
+
}, {
|
|
119
|
+
id: "YTUNNUS",
|
|
120
|
+
name: "YTunnus",
|
|
121
|
+
applicableOnlyFor: ["privateCompany"]
|
|
122
|
+
}],
|
|
123
|
+
[CountryCodes.France]: [{
|
|
124
|
+
id: "SIRET",
|
|
125
|
+
name: "siret",
|
|
126
|
+
applicableOnlyFor: ["privateCompany"]
|
|
127
|
+
}],
|
|
128
|
+
[CountryCodes.Germany]: [{
|
|
129
|
+
id: "STEUERNUMMER",
|
|
130
|
+
name: "taxInformationNumber__DE",
|
|
131
|
+
applicableOnlyFor: [
|
|
132
|
+
"soleProprietorship",
|
|
133
|
+
"privateCompany",
|
|
134
|
+
"governmentalOrganization",
|
|
135
|
+
"associationIncorporated",
|
|
136
|
+
"partnershipIncorporated",
|
|
137
|
+
"nonProfit",
|
|
138
|
+
"unincorporatedPartnership",
|
|
139
|
+
"unlistedPublicCompany"
|
|
140
|
+
]
|
|
141
|
+
}, {
|
|
142
|
+
id: "IDNR",
|
|
143
|
+
name: "taxInformationNumber__DE_Individual",
|
|
144
|
+
applicableOnlyFor: ["individual"]
|
|
145
|
+
}],
|
|
146
|
+
[CountryCodes.Gibraltar]: [{
|
|
147
|
+
id: "GI_TAXPAYER_REFERENCE_NUMBER",
|
|
148
|
+
name: "taxpayerReferenceNumber"
|
|
149
|
+
}],
|
|
150
|
+
[CountryCodes.Greece]: [{
|
|
151
|
+
id: "AFM",
|
|
152
|
+
name: "taxInformationNumber__GR"
|
|
153
|
+
}],
|
|
154
|
+
[CountryCodes.Guernsey]: [{
|
|
155
|
+
id: "GG_REGISTRATION_NUMBER",
|
|
156
|
+
name: "taxInformationNumber"
|
|
157
|
+
}, {
|
|
158
|
+
id: "TIN_GG",
|
|
159
|
+
name: "nationalInsuranceNumber",
|
|
160
|
+
applicableOnlyFor: ["soleProprietorship"]
|
|
161
|
+
}],
|
|
162
|
+
[CountryCodes.HongKong]: [{
|
|
163
|
+
id: "BRN",
|
|
164
|
+
name: "taxInformationNumber__HK"
|
|
165
|
+
}, {
|
|
166
|
+
id: "HKID",
|
|
167
|
+
name: "taxInformationNumber__HK_Individual",
|
|
168
|
+
applicableOnlyFor: ["individual"]
|
|
169
|
+
}],
|
|
170
|
+
[CountryCodes.Hungary]: [{
|
|
171
|
+
id: "ADOAZONOSITO_JEL",
|
|
172
|
+
name: "taxInformationNumber__HU",
|
|
173
|
+
applicableOnlyFor: ["individual"]
|
|
174
|
+
}],
|
|
175
|
+
[CountryCodes.Iceland]: [{
|
|
176
|
+
id: "KENNITALA",
|
|
177
|
+
name: "taxInformationNumber__IS",
|
|
178
|
+
applicableOnlyFor: ["individual"]
|
|
179
|
+
}],
|
|
180
|
+
[CountryCodes.India]: [{
|
|
181
|
+
id: "PAN",
|
|
182
|
+
name: "taxInformationNumber__IN",
|
|
183
|
+
applicableOnlyFor: ["individual"]
|
|
184
|
+
}],
|
|
185
|
+
[CountryCodes.Ireland]: [{
|
|
186
|
+
id: "TRN",
|
|
187
|
+
name: "trnNumber",
|
|
188
|
+
applicableOnlyFor: ["privateCompany", "unincorporatedPartnership"]
|
|
189
|
+
}, {
|
|
190
|
+
id: "PERSONAL_PUBLIC_SERVICE_NUMBER",
|
|
191
|
+
name: "taxInformationNumber__IE_Individual",
|
|
192
|
+
applicableOnlyFor: ["individual"]
|
|
193
|
+
}],
|
|
194
|
+
[CountryCodes.IsleOfMan]: [{
|
|
195
|
+
id: "IM_TAX_REFERENCE_NUMBER",
|
|
196
|
+
name: "taxReferenceNumber"
|
|
197
|
+
}],
|
|
198
|
+
[CountryCodes.Italy]: [{
|
|
199
|
+
id: "CODICE_FISCALE",
|
|
200
|
+
name: "taxInformationNumber__IT"
|
|
201
|
+
}],
|
|
202
|
+
[CountryCodes.Israel]: [{
|
|
203
|
+
id: "IL_MISPAR_ZEHUT",
|
|
204
|
+
name: "taxInformationNumber__IL",
|
|
205
|
+
applicableOnlyFor: ["individual"]
|
|
206
|
+
}],
|
|
207
|
+
[CountryCodes.Japan]: [{
|
|
208
|
+
id: "CORPORATE_NUMBER",
|
|
209
|
+
name: "taxInformationNumber"
|
|
210
|
+
}, {
|
|
211
|
+
id: "JP_MY_NUMBER",
|
|
212
|
+
name: "taxInformationNumber__JP_Individual",
|
|
213
|
+
applicableOnlyFor: ["individual"]
|
|
214
|
+
}],
|
|
215
|
+
[CountryCodes.Jersey]: [{
|
|
216
|
+
id: "TIN_JE",
|
|
217
|
+
name: "taxIdentificationNumber"
|
|
218
|
+
}, {
|
|
219
|
+
id: "SSN",
|
|
220
|
+
name: "socialSecurityNumber",
|
|
221
|
+
applicableOnlyFor: ["soleProprietorship"]
|
|
222
|
+
}],
|
|
223
|
+
[CountryCodes.Latvia]: [{
|
|
224
|
+
id: "PERSONAS_KODS",
|
|
225
|
+
name: "taxInformationNumber__LV",
|
|
226
|
+
applicableOnlyFor: ["individual"]
|
|
227
|
+
}, {
|
|
228
|
+
id: "REGISTRACIJAS_NUMURS",
|
|
229
|
+
name: "lvRegistrationNumber",
|
|
230
|
+
applicableOnlyFor: ["privateCompany"]
|
|
231
|
+
}],
|
|
232
|
+
[CountryCodes.Lithuania]: [{
|
|
233
|
+
id: "ASMENS_KODAS",
|
|
234
|
+
name: "taxInformationNumber__LT"
|
|
235
|
+
}],
|
|
236
|
+
[CountryCodes.Luxembourg]: [{
|
|
237
|
+
id: "NATIONAL_IDENTIFICATION_NUMBER",
|
|
238
|
+
name: "taxInformationNumber__LU_Individual",
|
|
239
|
+
applicableOnlyFor: ["individual"]
|
|
240
|
+
}, {
|
|
241
|
+
id: "NATIONAL_IDENTIFICATION_NUMBER",
|
|
242
|
+
name: "taxInformationNumber__LU_Org",
|
|
243
|
+
applicableOnlyFor: ["privateCompany"]
|
|
244
|
+
}],
|
|
245
|
+
[CountryCodes.Malta]: [
|
|
246
|
+
{
|
|
247
|
+
id: "UNIQUE_TAXPAYER_REFERENCE_NUMBER",
|
|
248
|
+
name: "taxInformationNumber__MT_Individual_UTRN",
|
|
249
|
+
applicableOnlyFor: ["individual"]
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
id: "IDENTITY_CARD_NUMBER",
|
|
253
|
+
name: "taxInformationNumber__MT_Individual",
|
|
254
|
+
applicableOnlyFor: ["individual"]
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
id: "INCOME_TAX_REGISTRATION_NUMBER",
|
|
258
|
+
name: "taxInformationNumber__MT_Org",
|
|
259
|
+
applicableOnlyFor: ["privateCompany"]
|
|
129
260
|
}
|
|
130
|
-
|
|
131
|
-
[CountryCodes.
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
261
|
+
],
|
|
262
|
+
[CountryCodes.Mexico]: [{
|
|
263
|
+
id: "RFC",
|
|
264
|
+
name: "taxInformationNumber__MX",
|
|
265
|
+
applicableOnlyFor: [
|
|
266
|
+
"privateCompany",
|
|
267
|
+
"governmentalOrganization",
|
|
268
|
+
"associationIncorporated",
|
|
269
|
+
"partnershipIncorporated",
|
|
270
|
+
"nonProfit",
|
|
271
|
+
"unincorporatedPartnership",
|
|
272
|
+
"unlistedPublicCompany"
|
|
273
|
+
]
|
|
274
|
+
}],
|
|
275
|
+
[CountryCodes.Netherlands]: [{
|
|
276
|
+
id: "RSIN",
|
|
277
|
+
name: "rsinNumber",
|
|
278
|
+
applicableOnlyFor: [
|
|
279
|
+
"privateCompany",
|
|
280
|
+
"governmentalOrganization",
|
|
281
|
+
"associationIncorporated",
|
|
282
|
+
"partnershipIncorporated",
|
|
283
|
+
"nonProfit",
|
|
284
|
+
"unincorporatedPartnership",
|
|
285
|
+
"unlistedPublicCompany"
|
|
286
|
+
]
|
|
287
|
+
}, {
|
|
288
|
+
id: "BSN",
|
|
289
|
+
name: "bsnNumber",
|
|
290
|
+
applicableOnlyFor: ["individual"]
|
|
291
|
+
}],
|
|
292
|
+
[CountryCodes.NewZealand]: [{
|
|
293
|
+
id: "IRD",
|
|
294
|
+
name: "irdNumber"
|
|
295
|
+
}],
|
|
296
|
+
[CountryCodes.Norway]: [{
|
|
297
|
+
id: "D_NUMBER",
|
|
298
|
+
name: "taxInformationNumber__NO",
|
|
299
|
+
applicableOnlyFor: ["individual"]
|
|
300
|
+
}],
|
|
301
|
+
[CountryCodes.Poland]: [{
|
|
302
|
+
id: "PESEL_NUMBER",
|
|
303
|
+
name: "taxInformationNumber__PL",
|
|
304
|
+
applicableOnlyFor: ["individual"]
|
|
305
|
+
}],
|
|
306
|
+
[CountryCodes.Portugal]: [{
|
|
307
|
+
id: "NUMERO_ID_CIVIL",
|
|
308
|
+
name: "taxInformationNumber__PT",
|
|
309
|
+
applicableOnlyFor: ["individual"]
|
|
310
|
+
}, {
|
|
311
|
+
id: "NIPC",
|
|
312
|
+
name: "NIPC",
|
|
313
|
+
applicableOnlyFor: ["privateCompany"]
|
|
314
|
+
}],
|
|
315
|
+
[CountryCodes.PuertoRico]: [{
|
|
316
|
+
id: "EIN",
|
|
317
|
+
name: "ein"
|
|
318
|
+
}],
|
|
319
|
+
[CountryCodes.Romania]: [{
|
|
320
|
+
id: "CNP",
|
|
321
|
+
name: "taxInformationNumber__RO",
|
|
322
|
+
applicableOnlyFor: ["individual"]
|
|
323
|
+
}],
|
|
324
|
+
[CountryCodes.Singapore]: [
|
|
325
|
+
{
|
|
326
|
+
id: "GST",
|
|
327
|
+
name: "gst"
|
|
189
328
|
},
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
example: "00123123T",
|
|
194
|
-
idType: "TIC"
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
},
|
|
198
|
-
[CountryCodes.Estonia]: {
|
|
199
|
-
label: "taxInformationNumber__ET_Individual",
|
|
200
|
-
validators: mapValidators([validatePatternOnBlur(/^\d{11}$/)], CountryCodes.Estonia),
|
|
201
|
-
mask: { mask: makeMask(...numericInputs(11)) },
|
|
202
|
-
guidanceText: {
|
|
203
|
-
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
204
|
-
values: {
|
|
205
|
-
example: "32708101201",
|
|
206
|
-
idType: "Isikukood"
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
},
|
|
210
|
-
[CountryCodes.Finland]: {
|
|
211
|
-
label: "taxInformationNumber__FI",
|
|
212
|
-
validators: mapValidators([validatePatternOnBlur(/^\d{6}[+\-A]\d{3}[0-9A-Y]$/)], CountryCodes.Finland),
|
|
213
|
-
mask: {
|
|
214
|
-
mask: makeMask(...numericInputs(6), {
|
|
215
|
-
type: "input",
|
|
216
|
-
allow: /[+\-A]/
|
|
217
|
-
}, ...numericInputs(3), {
|
|
218
|
-
type: "input",
|
|
219
|
-
allow: /[0-9A-Y]/
|
|
220
|
-
}),
|
|
221
|
-
transformOnType: uppercase
|
|
329
|
+
{
|
|
330
|
+
id: "UEN",
|
|
331
|
+
name: "uen"
|
|
222
332
|
},
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
idType: "Henkilötunnus"
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
},
|
|
231
|
-
[CountryCodes.France]: {
|
|
232
|
-
label: "taxInformationNumber__FR",
|
|
233
|
-
validators: mapValidators([validatePatternOnBlur(/^\s*(\d\s*){13}$/)], CountryCodes.France),
|
|
234
|
-
mask: { mask: makeMask(...numericInputs(2), spacer, ...numericInputs(2), spacer, ...numericInputs(3), spacer, ...numericInputs(3), spacer, ...numericInputs(3)) },
|
|
235
|
-
guidanceText: {
|
|
236
|
-
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
237
|
-
values: {
|
|
238
|
-
example: "30 23 217 600 053",
|
|
239
|
-
idType: "Numéro SPI"
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
},
|
|
243
|
-
[CountryCodes.Germany]: ({ taxIdNumberType }) => {
|
|
244
|
-
switch (taxIdNumberType) {
|
|
245
|
-
case "IDNR": return {
|
|
246
|
-
label: "taxInformationNumber__DE_Individual",
|
|
247
|
-
validators: mapValidators([validatePatternOnBlur(/^\d{11}$/)], CountryCodes.Germany),
|
|
248
|
-
mask: { mask: makeMask(...numericInputs(11)) },
|
|
249
|
-
guidanceText: {
|
|
250
|
-
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
251
|
-
values: {
|
|
252
|
-
example: "26954371827",
|
|
253
|
-
idType: "IdNr"
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
};
|
|
257
|
-
default: return {
|
|
258
|
-
label: "taxInformationNumber__DE",
|
|
259
|
-
validators: mapValidators([validatePatternOnBlur(/^\d{10}$|^\d{11}$|^\d{13}$/)], CountryCodes.Germany),
|
|
260
|
-
mask: { mask: makeMask(...numericInputs(10), ...numericInputs(3, true)) },
|
|
261
|
-
guidanceText: {
|
|
262
|
-
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
263
|
-
values: {
|
|
264
|
-
example: "14310260208",
|
|
265
|
-
idType: "Steuernummer"
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
};
|
|
269
|
-
}
|
|
270
|
-
},
|
|
271
|
-
[CountryCodes.Gibraltar]: {
|
|
272
|
-
label: "taxpayerReferenceNumber",
|
|
273
|
-
validators: mapValidators([validatePatternOnBlur(/^\d{1,7}$/)], CountryCodes.Gibraltar),
|
|
274
|
-
mask: { mask: makeMask(...numericInputs(1), ...numericInputs(6, true)) },
|
|
275
|
-
guidanceText: {
|
|
276
|
-
key: "enterAMaximumOfNDigitsForExample",
|
|
277
|
-
values: {
|
|
278
|
-
maxDigits: "7",
|
|
279
|
-
example: "123456"
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
},
|
|
283
|
-
[CountryCodes.Greece]: {
|
|
284
|
-
label: "taxInformationNumber__GR",
|
|
285
|
-
validators: mapValidators([validatePatternOnBlur(/^\d{9}$/)], CountryCodes.Greece),
|
|
286
|
-
mask: { mask: makeMask(...numericInputs(9)) },
|
|
287
|
-
guidanceText: {
|
|
288
|
-
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
289
|
-
values: {
|
|
290
|
-
example: "244709851",
|
|
291
|
-
idType: "AFM"
|
|
292
|
-
}
|
|
293
|
-
}
|
|
294
|
-
},
|
|
295
|
-
[CountryCodes.Guernsey]: ({ taxIdNumberType }) => {
|
|
296
|
-
switch (taxIdNumberType) {
|
|
297
|
-
case "TIN_GG": return {
|
|
298
|
-
label: "nationalInsuranceNumber",
|
|
299
|
-
validators: mapValidators([validatePatternOnBlur(/^GY\d{6}[A-D]$/)], CountryCodes.Guernsey),
|
|
300
|
-
mask: {
|
|
301
|
-
mask: makeMask(...nonInputs("GY", { includeInValue: true }), spacer, ...numericInputs(2), spacer, ...numericInputs(2), spacer, ...numericInputs(2), spacer, {
|
|
302
|
-
type: "input",
|
|
303
|
-
allow: /[A-D]/
|
|
304
|
-
}),
|
|
305
|
-
transformOnType: uppercase
|
|
306
|
-
},
|
|
307
|
-
guidanceText: {
|
|
308
|
-
key: "enterTheRemainingNCharactersForExample",
|
|
309
|
-
values: {
|
|
310
|
-
numChars: "7",
|
|
311
|
-
example: "GY 12 34 56 A"
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
};
|
|
315
|
-
default: return {
|
|
316
|
-
label: "taxInformationNumber",
|
|
317
|
-
mask: businessRegistrationNumberMasks[CountryCodes.Guernsey].default,
|
|
318
|
-
validators: mapValidators([validatePatternOnBlur(businessRegistrationNumberPatterns[CountryCodes.Guernsey].default)], CountryCodes.Guernsey),
|
|
319
|
-
guidanceText: {
|
|
320
|
-
key: "enterAMaximumOfNDigitsForExample",
|
|
321
|
-
values: {
|
|
322
|
-
maxDigits: "9",
|
|
323
|
-
example: "123456"
|
|
324
|
-
}
|
|
325
|
-
}
|
|
326
|
-
};
|
|
333
|
+
{
|
|
334
|
+
id: "NRIC",
|
|
335
|
+
name: "taxInformationNumber__SG_Individual",
|
|
336
|
+
applicableOnlyFor: ["individual"]
|
|
327
337
|
}
|
|
328
|
-
|
|
329
|
-
[CountryCodes.
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
338
|
+
],
|
|
339
|
+
[CountryCodes.Slovakia]: [{
|
|
340
|
+
id: "RODNE_CISLO",
|
|
341
|
+
name: "taxInformationNumber__SK_Individual",
|
|
342
|
+
applicableOnlyFor: ["individual"]
|
|
343
|
+
}, {
|
|
344
|
+
id: "NATIONAL_IDENTIFICATION_NUMBER",
|
|
345
|
+
name: "taxInformationNumber__SK_Org",
|
|
346
|
+
applicableOnlyFor: ["privateCompany"]
|
|
347
|
+
}],
|
|
348
|
+
[CountryCodes.Slovenia]: [{
|
|
349
|
+
id: "SI_TAX_NUMBER",
|
|
350
|
+
name: "taxInformationNumber__SI_Individual",
|
|
351
|
+
applicableOnlyFor: ["individual"]
|
|
352
|
+
}, {
|
|
353
|
+
id: "NATIONAL_IDENTIFICATION_NUMBER",
|
|
354
|
+
name: "taxInformationNumber__SI_Org",
|
|
355
|
+
applicableOnlyFor: ["privateCompany"]
|
|
356
|
+
}],
|
|
357
|
+
[CountryCodes.SouthAfrica]: [{
|
|
358
|
+
id: "INCOME_TAX_REFERENCE_NUMBER",
|
|
359
|
+
name: "taxInformationNumber__ZA",
|
|
360
|
+
applicableOnlyFor: ["individual"]
|
|
361
|
+
}],
|
|
362
|
+
[CountryCodes.Spain]: [
|
|
363
|
+
{
|
|
364
|
+
id: "DNI",
|
|
365
|
+
name: "dni",
|
|
366
|
+
applicableOnlyFor: ["individual"]
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
id: "NIE",
|
|
370
|
+
name: "nie",
|
|
371
|
+
applicableOnlyFor: ["individual"]
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
id: "NIF",
|
|
375
|
+
name: "NIF",
|
|
376
|
+
applicableOnlyFor: ["privateCompany"]
|
|
339
377
|
}
|
|
340
|
-
|
|
341
|
-
[CountryCodes.
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
378
|
+
],
|
|
379
|
+
[CountryCodes.Sweden]: [{
|
|
380
|
+
id: "PERSONNUMMER",
|
|
381
|
+
name: "taxInformationNumber__SE",
|
|
382
|
+
applicableOnlyFor: ["individual"]
|
|
383
|
+
}],
|
|
384
|
+
[CountryCodes.Switzerland]: [{
|
|
385
|
+
id: "AHV_NUMBER",
|
|
386
|
+
name: "taxInformationNumber__CH",
|
|
387
|
+
applicableOnlyFor: ["individual"]
|
|
388
|
+
}],
|
|
389
|
+
[CountryCodes.UnitedArabEmirates]: [{
|
|
390
|
+
id: "EMIRATES_ID",
|
|
391
|
+
name: "taxInformationNumber__AE",
|
|
392
|
+
applicableOnlyFor: ["individual"]
|
|
393
|
+
}],
|
|
394
|
+
[CountryCodes.UnitedKingdom]: [{
|
|
395
|
+
id: "UTR",
|
|
396
|
+
name: "utr"
|
|
397
|
+
}, {
|
|
398
|
+
id: "NINO",
|
|
399
|
+
name: "nationalInsuranceNumber",
|
|
400
|
+
applicableOnlyFor: ["individual"]
|
|
401
|
+
}],
|
|
402
|
+
[CountryCodes.UnitedStates]: [{
|
|
403
|
+
id: "EIN",
|
|
404
|
+
name: "ein"
|
|
405
|
+
}]
|
|
406
|
+
};
|
|
407
|
+
var getTaxIdNumberOptions = (country, companyType) => {
|
|
408
|
+
const optionsForCountry = taxIdNumberOptions[country];
|
|
409
|
+
if (!optionsForCountry) return optionsForCountry;
|
|
410
|
+
if (isRestrictedEntityType(companyType)) return optionsForCountry.filter((option) => option.applicableOnlyFor?.includes(companyType) ?? true);
|
|
411
|
+
return optionsForCountry.filter((option) => !isApplicableOnlyForSingleRestrictedType(option));
|
|
412
|
+
};
|
|
413
|
+
var getTaxIdNumberSelectorOptions = (country, companyType, exemptedOptionLabel) => {
|
|
414
|
+
const availableOptions = getTaxIdNumberOptions(country, companyType) ?? [];
|
|
415
|
+
if (availableOptions.length === 0 || !exemptedOptionLabel) return availableOptions;
|
|
416
|
+
return [...availableOptions, {
|
|
417
|
+
id: "exempted",
|
|
418
|
+
name: exemptedOptionLabel
|
|
419
|
+
}];
|
|
420
|
+
};
|
|
421
|
+
function getValidCompanyTypesForTaxIdNumberType(country, taxIdNumberType) {
|
|
422
|
+
if (!taxIdNumberType) return void 0;
|
|
423
|
+
const taxIdOption = taxIdNumberOptions[country]?.find((option) => option.id === taxIdNumberType);
|
|
424
|
+
if (!taxIdOption?.applicableOnlyFor) return void 0;
|
|
425
|
+
const validCompanyTypes = taxIdOption.applicableOnlyFor.filter((type) => type !== "individual" && type !== "trust" && type !== "unincorporatedPartnership");
|
|
426
|
+
return validCompanyTypes.length > 0 ? validCompanyTypes : void 0;
|
|
427
|
+
}
|
|
428
|
+
//#endregion
|
|
429
|
+
//#region src/utils/businessUtils.ts
|
|
430
|
+
/**
|
|
431
|
+
* @description Countries in this list use the provider-backed company search flow.
|
|
432
|
+
* For these countries, business details can be prefilled from provider results,
|
|
433
|
+
* and search/verification may require tax identifiers (for example TIN or VAT)
|
|
434
|
+
* in addition to company name/registration details.
|
|
435
|
+
*
|
|
436
|
+
* If a country is in this list, it means it will attempt to make an api call for company search.
|
|
437
|
+
* If the api doesnt have a provider for that country, it will return no results like below
|
|
438
|
+
* ```
|
|
439
|
+
* {
|
|
440
|
+
* "results": [],
|
|
441
|
+
* "provider": "NO_PROVIDER"
|
|
442
|
+
* }
|
|
443
|
+
* ```
|
|
444
|
+
*/
|
|
445
|
+
var COUNTRIES_USING_COMPANY_SEARCH = [
|
|
446
|
+
CountryCodes.UnitedStates,
|
|
447
|
+
CountryCodes.UnitedKingdom,
|
|
448
|
+
CountryCodes.Germany,
|
|
449
|
+
CountryCodes.France
|
|
450
|
+
];
|
|
451
|
+
/**
|
|
452
|
+
* Source of truth for registration-number exemption eligibility in Business Details.
|
|
453
|
+
*
|
|
454
|
+
* This map defines which company types can use `exemptedFromRegistrationNumber`, grouped by
|
|
455
|
+
* country. All exemption checks should be derived from this structure to keep behavior consistent
|
|
456
|
+
* across form rules.
|
|
457
|
+
*
|
|
458
|
+
* Interpretation:
|
|
459
|
+
* - Non-empty array: exemption is allowed only for the listed company types.
|
|
460
|
+
* - Empty array: exemption is allowed for that country without company-type restrictions.
|
|
461
|
+
*
|
|
462
|
+
*/
|
|
463
|
+
var REGISTRATION_NUMBER_EXEMPTION_RULES = {
|
|
464
|
+
[CountryCodes.Australia]: ["governmentalOrganization", "partnershipIncorporated"],
|
|
465
|
+
[CountryCodes.Austria]: ["soleProprietorship"],
|
|
466
|
+
[CountryCodes.Canada]: ["soleProprietorship"],
|
|
467
|
+
[CountryCodes.Denmark]: ["nonProfit"],
|
|
468
|
+
[CountryCodes.Finland]: ["soleProprietorship"],
|
|
469
|
+
[CountryCodes.Germany]: [
|
|
470
|
+
"governmentalOrganization",
|
|
471
|
+
"nonProfit",
|
|
472
|
+
"soleProprietorship"
|
|
473
|
+
],
|
|
474
|
+
[CountryCodes.HongKong]: [
|
|
475
|
+
"privateCompany",
|
|
476
|
+
"nonProfit",
|
|
477
|
+
"listedPublicCompany",
|
|
478
|
+
"unlistedPublicCompany",
|
|
479
|
+
"governmentalOrganization",
|
|
480
|
+
"partnershipIncorporated",
|
|
481
|
+
"associationIncorporated"
|
|
482
|
+
],
|
|
483
|
+
[CountryCodes.Lithuania]: ["soleProprietorship"],
|
|
484
|
+
[CountryCodes.Luxembourg]: ["soleProprietorship"],
|
|
485
|
+
[CountryCodes.NewZealand]: [],
|
|
486
|
+
[CountryCodes.Poland]: ["soleProprietorship"],
|
|
487
|
+
[CountryCodes.Sweden]: ["soleProprietorship"],
|
|
488
|
+
[CountryCodes.Switzerland]: ["soleProprietorship"]
|
|
489
|
+
};
|
|
490
|
+
/**
|
|
491
|
+
* Determines whether a registration-number exemption can be offered for a country and company type.
|
|
492
|
+
*
|
|
493
|
+
* Provide `companyType` when checking a specific entity (including a sole proprietorship); this checks
|
|
494
|
+
* that exact type against the country's rule. Omit it when deciding whether to show the exemption option
|
|
495
|
+
* for all company types in that country; it is then available only when at least one
|
|
496
|
+
* non-sole-proprietorship type is eligible.
|
|
497
|
+
*
|
|
498
|
+
* This distinction prevents sole-proprietorship-only countries from exposing the exemption to
|
|
499
|
+
* businesses while still allowing unrestricted countries (an empty rule) for every entity type.
|
|
500
|
+
*/
|
|
501
|
+
var isRegistrationExemptionAllowed = ({ country, companyType }) => {
|
|
502
|
+
const allowedCompanyTypes = REGISTRATION_NUMBER_EXEMPTION_RULES[country];
|
|
503
|
+
if (!allowedCompanyTypes) return false;
|
|
504
|
+
if (allowedCompanyTypes.length === 0) return true;
|
|
505
|
+
return companyType ? allowedCompanyTypes.includes(companyType) : allowedCompanyTypes.some((allowedCompanyType) => allowedCompanyType !== "soleProprietorship");
|
|
506
|
+
};
|
|
507
|
+
var isRegistrationNumberAbsentStateV4Scenario = (country, entityType) => country === CountryCodes.Australia && (entityType === "governmentalOrganization" || entityType === "partnershipIncorporated") || country === CountryCodes.NewZealand;
|
|
508
|
+
var COUNTRIES_THAT_DONT_REQUIRE_COMPANY_REGISTRATION = [
|
|
509
|
+
CountryCodes.HongKong,
|
|
510
|
+
CountryCodes.Mexico,
|
|
511
|
+
CountryCodes.PuertoRico,
|
|
512
|
+
CountryCodes.UnitedStates
|
|
513
|
+
];
|
|
514
|
+
var COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER = [CountryCodes.Canada, CountryCodes.UnitedStates];
|
|
515
|
+
/**
|
|
516
|
+
* Also used to determine what documenttype needs to be used
|
|
517
|
+
* when uploading tax document in mapping.ts
|
|
518
|
+
* */
|
|
519
|
+
var COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT = [
|
|
520
|
+
CountryCodes.Australia,
|
|
521
|
+
CountryCodes.Canada,
|
|
522
|
+
CountryCodes.Gibraltar,
|
|
523
|
+
CountryCodes.HongKong,
|
|
524
|
+
CountryCodes.NewZealand,
|
|
525
|
+
CountryCodes.PuertoRico,
|
|
526
|
+
CountryCodes.Singapore,
|
|
527
|
+
CountryCodes.UnitedStates,
|
|
528
|
+
CountryCodes.Guernsey,
|
|
529
|
+
CountryCodes.Jersey,
|
|
530
|
+
CountryCodes.IsleOfMan,
|
|
531
|
+
CountryCodes.Mexico,
|
|
532
|
+
CountryCodes.Brazil,
|
|
533
|
+
CountryCodes.Japan
|
|
534
|
+
];
|
|
535
|
+
var COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_COMPANIES = [];
|
|
536
|
+
var COUNTRIES_REQUIRING_FINANCIAL_INFORMATION = [
|
|
537
|
+
CountryCodes.Austria,
|
|
538
|
+
CountryCodes.Belgium,
|
|
539
|
+
CountryCodes.Croatia,
|
|
540
|
+
CountryCodes.Cyprus,
|
|
541
|
+
CountryCodes.Estonia,
|
|
542
|
+
CountryCodes.Finland,
|
|
543
|
+
CountryCodes.France,
|
|
544
|
+
CountryCodes.Germany,
|
|
545
|
+
CountryCodes.Greece,
|
|
546
|
+
CountryCodes.Ireland,
|
|
547
|
+
CountryCodes.Italy,
|
|
548
|
+
CountryCodes.Latvia,
|
|
549
|
+
CountryCodes.Lithuania,
|
|
550
|
+
CountryCodes.Luxembourg,
|
|
551
|
+
CountryCodes.Malta,
|
|
552
|
+
CountryCodes.Netherlands,
|
|
553
|
+
CountryCodes.Portugal,
|
|
554
|
+
CountryCodes.Slovakia,
|
|
555
|
+
CountryCodes.Slovenia,
|
|
556
|
+
CountryCodes.Spain,
|
|
557
|
+
CountryCodes.UnitedKingdom
|
|
558
|
+
];
|
|
559
|
+
var COUNTRIES_WITH_POSSIBLE_TRUSTEE_TAXID_ABSENT_V4 = [CountryCodes.Australia];
|
|
560
|
+
var TAX_ID_REQUIRED_COUNTRIES_ORGANIZATION = [
|
|
561
|
+
CountryCodes.Austria,
|
|
562
|
+
CountryCodes.Belgium,
|
|
563
|
+
CountryCodes.Croatia,
|
|
564
|
+
CountryCodes.Cyprus,
|
|
565
|
+
CountryCodes.Germany,
|
|
566
|
+
CountryCodes.Greece,
|
|
567
|
+
CountryCodes.Ireland,
|
|
568
|
+
CountryCodes.Luxembourg,
|
|
569
|
+
CountryCodes.Malta,
|
|
570
|
+
CountryCodes.Netherlands,
|
|
571
|
+
CountryCodes.Slovakia,
|
|
572
|
+
CountryCodes.Slovenia
|
|
573
|
+
];
|
|
574
|
+
/**
|
|
575
|
+
* Sole proprietorship specific rules
|
|
576
|
+
*/
|
|
577
|
+
var COUNTRIES_THAT_DONT_REQUIRE_SOLE_PROP_REGISTRATION = [
|
|
578
|
+
CountryCodes.Australia,
|
|
579
|
+
CountryCodes.Gibraltar,
|
|
580
|
+
CountryCodes.Guernsey,
|
|
581
|
+
CountryCodes.HongKong,
|
|
582
|
+
CountryCodes.Ireland,
|
|
583
|
+
CountryCodes.IsleOfMan,
|
|
584
|
+
CountryCodes.Jersey,
|
|
585
|
+
CountryCodes.Malta,
|
|
586
|
+
CountryCodes.Mexico,
|
|
587
|
+
CountryCodes.PuertoRico,
|
|
588
|
+
CountryCodes.Spain,
|
|
589
|
+
CountryCodes.UnitedKingdom,
|
|
590
|
+
CountryCodes.UnitedStates
|
|
591
|
+
];
|
|
592
|
+
var COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_SOLE_PROPS = [
|
|
593
|
+
CountryCodes.Canada,
|
|
594
|
+
CountryCodes.PuertoRico,
|
|
595
|
+
CountryCodes.UnitedStates
|
|
596
|
+
];
|
|
597
|
+
var COUNTRIES_THAT_DO_NOT_USE_TAX_ID_FOR_SOLE_PROP = [CountryCodes.Singapore];
|
|
598
|
+
var COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER_SOLE_PROPS = [CountryCodes.Germany];
|
|
599
|
+
var isUsingCompanySearch = (country, taskType) => {
|
|
600
|
+
if (taskType !== TaskTypes.BUSINESS_DETAILS) return false;
|
|
601
|
+
return COUNTRIES_USING_COMPANY_SEARCH.includes(country);
|
|
602
|
+
};
|
|
603
|
+
/**
|
|
604
|
+
* A Japanese business has a kanji legal name and a katakana reading of it, neither of which can be
|
|
605
|
+
* derived from the roman one, so they travel beside it as script localizations.
|
|
606
|
+
*
|
|
607
|
+
* @param data the form section holding the localized name fields, whatever the task calls it
|
|
608
|
+
* @returns the localizations that were filled in, so an empty array when neither was asked for
|
|
609
|
+
*/
|
|
610
|
+
var mapJapaneseLegalNamesToLocalization = (data) => [mapSchemaFieldsToApiScriptLocalization(data, "jaHani"), mapSchemaFieldsToApiScriptLocalization(data, "jaKana")].filter(({ fields }) => !isEmpty(fields)).map(({ script, fields }) => ({
|
|
611
|
+
script,
|
|
612
|
+
fields: { legalName: fields.legalCompanyName }
|
|
613
|
+
}));
|
|
614
|
+
/**
|
|
615
|
+
* Reads the kanji and katakana legal names back out of the script localizations, so they can
|
|
616
|
+
* prefill the fields they came from.
|
|
617
|
+
*
|
|
618
|
+
* @param localization the organization's script localizations, when it has any
|
|
619
|
+
*/
|
|
620
|
+
var mapLocalizationToJapaneseLegalNames = (localization) => (localization ?? []).reduce((schemaFields, { script, fields }) => ({
|
|
621
|
+
...schemaFields,
|
|
622
|
+
...mapApiScriptLocalizationToSchemaFields({
|
|
623
|
+
script,
|
|
624
|
+
fields: { legalCompanyName: fields?.legalName }
|
|
625
|
+
})
|
|
626
|
+
}), {});
|
|
627
|
+
//#endregion
|
|
628
|
+
//#region src/components/Shared/fields/TaxInformationField/fieldConfig.ts
|
|
629
|
+
var taxInformationDefaultFieldMetadata = { label: "taxId" };
|
|
630
|
+
var exemptedFromTaxDefaultFieldMetadata = { label: "iDontHaveATaxId" };
|
|
631
|
+
/**
|
|
632
|
+
* Mapping function to parse TaxInformation schemas to validate the string for TaxInformation.number
|
|
633
|
+
*
|
|
634
|
+
* @param validators - String validators for the TaxInformation.number
|
|
635
|
+
* @param country - Country in the fieldConfig
|
|
636
|
+
*/
|
|
637
|
+
var mapValidators = (validators, country) => validators.map((validator) => ({
|
|
638
|
+
...validator,
|
|
639
|
+
validate: (taxInformation) => {
|
|
640
|
+
const taxInfo = taxInformation?.find((taxId) => country === taxId.country);
|
|
641
|
+
if (taxInfo?.numberAbsent) return true;
|
|
642
|
+
return taxInfo?.number ? validator.validate(taxInfo.number) : false;
|
|
643
|
+
}
|
|
644
|
+
}));
|
|
645
|
+
var taxInformationDefaultFieldConfig = {
|
|
646
|
+
[CountryCodes.Australia]: ({ taxIdNumberType }) => {
|
|
647
|
+
switch (taxIdNumberType) {
|
|
648
|
+
case "TFN": return {
|
|
649
|
+
label: "taxInformationNumber__AU_Individual",
|
|
650
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{9}$/)], CountryCodes.Australia),
|
|
651
|
+
mask: { mask: makeMask(...numericInputs(9)) },
|
|
350
652
|
guidanceText: {
|
|
351
|
-
key: "
|
|
653
|
+
key: "enterNDigitsForExample",
|
|
352
654
|
values: {
|
|
353
|
-
|
|
354
|
-
|
|
655
|
+
numDigits: "9",
|
|
656
|
+
example: "123456789"
|
|
355
657
|
}
|
|
356
658
|
}
|
|
357
659
|
};
|
|
358
660
|
default: return {
|
|
359
|
-
label: "
|
|
360
|
-
validators: mapValidators([validatePatternOnBlur(/^\d{
|
|
361
|
-
mask: {
|
|
362
|
-
mask: makeMask(...numericInputs(7), ...alphaInputs(1), ...alphaInputs(1, true)),
|
|
363
|
-
transformOnType: uppercase
|
|
364
|
-
},
|
|
661
|
+
label: "australianBusinessNumberAbn",
|
|
662
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{11}$/)], CountryCodes.Australia),
|
|
663
|
+
mask: { mask: makeMask(...numericInputs(2), spacer, ...numericInputs(3), spacer, ...numericInputs(3), spacer, ...numericInputs(3)) },
|
|
365
664
|
guidanceText: {
|
|
366
|
-
key: "
|
|
665
|
+
key: "enterNDigitsForExample",
|
|
367
666
|
values: {
|
|
368
|
-
numDigits: "
|
|
369
|
-
|
|
370
|
-
maxLetters: "2",
|
|
371
|
-
example: "1497955KA"
|
|
667
|
+
numDigits: "11",
|
|
668
|
+
example: "51 824 753 556"
|
|
372
669
|
}
|
|
373
670
|
}
|
|
374
671
|
};
|
|
375
672
|
}
|
|
376
673
|
},
|
|
377
|
-
[CountryCodes.
|
|
378
|
-
label: "
|
|
379
|
-
|
|
380
|
-
|
|
674
|
+
[CountryCodes.Austria]: {
|
|
675
|
+
label: "taxInformationNumber__AT",
|
|
676
|
+
validators: mapValidators([validatePatternOnBlur(/^(?=(?:[^0-9]*\d){9}[^0-9]*$)[\d\-/]+$/)], CountryCodes.Austria),
|
|
677
|
+
mask: { mask: makeMask(...numericInputs(2), {
|
|
678
|
+
type: "input",
|
|
679
|
+
allow: /[-/]/,
|
|
680
|
+
optional: true
|
|
681
|
+
}, ...numericInputs(3), {
|
|
682
|
+
type: "input",
|
|
683
|
+
allow: /[-/]/,
|
|
684
|
+
optional: true
|
|
685
|
+
}, ...numericInputs(4)) },
|
|
381
686
|
guidanceText: {
|
|
382
687
|
key: "enterNDigitsForExample",
|
|
383
688
|
values: {
|
|
384
|
-
numDigits: "
|
|
385
|
-
example: "
|
|
689
|
+
numDigits: "9",
|
|
690
|
+
example: "931736581"
|
|
386
691
|
}
|
|
387
692
|
}
|
|
388
693
|
},
|
|
389
|
-
[CountryCodes.
|
|
390
|
-
label: "taxReferenceNumber",
|
|
391
|
-
validators: mapValidators([validatePatternOnBlur(/^[HCX]\d{8}$/)], CountryCodes.IsleOfMan),
|
|
392
|
-
mask: {
|
|
393
|
-
mask: makeMask({
|
|
394
|
-
type: "input",
|
|
395
|
-
allow: /[HCX]/
|
|
396
|
-
}, ...numericInputs(6), ...nonInputs(" - "), ...numericInputs(2)),
|
|
397
|
-
transformOnType: uppercase
|
|
398
|
-
},
|
|
399
|
-
guidanceText: {
|
|
400
|
-
key: "enterNCharactersForExample",
|
|
401
|
-
values: {
|
|
402
|
-
numChars: "9",
|
|
403
|
-
example: "C155673-79"
|
|
404
|
-
}
|
|
405
|
-
}
|
|
406
|
-
},
|
|
407
|
-
[CountryCodes.Jersey]: ({ taxIdNumberType, companyType }) => {
|
|
694
|
+
[CountryCodes.Belgium]: ({ taxIdNumberType }) => {
|
|
408
695
|
switch (taxIdNumberType) {
|
|
409
|
-
case "
|
|
410
|
-
label: "
|
|
411
|
-
validators: mapValidators([validatePatternOnBlur(
|
|
412
|
-
mask: {
|
|
413
|
-
mask: makeMask(...alphaInputs(2), ...numericInputs(6), ...alphaInputs(1)),
|
|
414
|
-
transformOnType: uppercase
|
|
415
|
-
},
|
|
696
|
+
case "NUMERO_NATIONAL": return {
|
|
697
|
+
label: "taxInformationNumber__BE_Individual",
|
|
698
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{11}$/)], CountryCodes.Belgium),
|
|
699
|
+
mask: { mask: makeMask(...numericInputs(11)) },
|
|
416
700
|
guidanceText: {
|
|
417
|
-
key: "
|
|
701
|
+
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
418
702
|
values: {
|
|
419
|
-
|
|
420
|
-
|
|
703
|
+
example: "99999999999",
|
|
704
|
+
idType: "Numeró National"
|
|
421
705
|
}
|
|
422
706
|
}
|
|
423
707
|
};
|
|
424
|
-
default:
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
example: "100-100-1000"
|
|
434
|
-
}
|
|
435
|
-
}
|
|
436
|
-
};
|
|
437
|
-
default: return {
|
|
438
|
-
label: "taxIdentificationNumber",
|
|
439
|
-
validators: mapValidators([validatePatternOnBlur(/^[A-Z]{2}\d{5}$/)], CountryCodes.Jersey),
|
|
440
|
-
mask: {
|
|
441
|
-
mask: makeMask(...alphaInputs(2), ...numericInputs(5)),
|
|
442
|
-
transformOnType: uppercase
|
|
443
|
-
},
|
|
444
|
-
guidanceText: {
|
|
445
|
-
key: "enterNCharactersForExample",
|
|
446
|
-
values: {
|
|
447
|
-
numChars: "7",
|
|
448
|
-
example: "CC17261"
|
|
449
|
-
}
|
|
708
|
+
default: return {
|
|
709
|
+
label: "taxInformationNumber__BE",
|
|
710
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{10}$/)], CountryCodes.Belgium),
|
|
711
|
+
mask: { mask: makeMask(...numericInputs(10)) },
|
|
712
|
+
guidanceText: {
|
|
713
|
+
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
714
|
+
values: {
|
|
715
|
+
example: "0123321123",
|
|
716
|
+
idType: "Business nummer"
|
|
450
717
|
}
|
|
451
|
-
}
|
|
452
|
-
}
|
|
453
|
-
}
|
|
454
|
-
},
|
|
455
|
-
[CountryCodes.Latvia]: {
|
|
456
|
-
label: "taxInformationNumber__LV",
|
|
457
|
-
validators: mapValidators([validatePatternOnBlur(/^\d{11}$/)], CountryCodes.Latvia),
|
|
458
|
-
mask: { mask: makeMask(...numericInputs(11)) },
|
|
459
|
-
guidanceText: {
|
|
460
|
-
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
461
|
-
values: {
|
|
462
|
-
example: "32532963606",
|
|
463
|
-
idType: "Personas kods"
|
|
464
|
-
}
|
|
718
|
+
}
|
|
719
|
+
};
|
|
465
720
|
}
|
|
466
721
|
},
|
|
467
|
-
[CountryCodes.
|
|
468
|
-
label: "
|
|
469
|
-
validators: mapValidators([validatePatternOnBlur(/^\d{
|
|
470
|
-
mask: { mask: makeMask(...numericInputs(
|
|
722
|
+
[CountryCodes.Bulgaria]: {
|
|
723
|
+
label: "taxInformationNumber__BG",
|
|
724
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{10}$/)], CountryCodes.Bulgaria),
|
|
725
|
+
mask: { mask: makeMask(...numericInputs(10)) },
|
|
471
726
|
guidanceText: {
|
|
472
727
|
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
473
728
|
values: {
|
|
474
|
-
example: "
|
|
475
|
-
idType: "
|
|
729
|
+
example: "8001010000",
|
|
730
|
+
idType: "Edinen grazhdanski nomer / ЕГН"
|
|
476
731
|
}
|
|
477
732
|
}
|
|
478
733
|
},
|
|
479
|
-
[CountryCodes.
|
|
480
|
-
switch (companyType) {
|
|
481
|
-
case LegalEntityTypes.INDIVIDUAL: return {
|
|
482
|
-
label: "taxInformationNumber__LU_Individual",
|
|
483
|
-
validators: mapValidators([validatePatternOnBlur(/^\d{13}$/)], CountryCodes.Luxembourg),
|
|
484
|
-
mask: { mask: makeMask(...numericInputs(13)) },
|
|
485
|
-
guidanceText: {
|
|
486
|
-
key: "enterNCharactersForExample",
|
|
487
|
-
values: {
|
|
488
|
-
numChars: "13",
|
|
489
|
-
example: "1893120105732"
|
|
490
|
-
}
|
|
491
|
-
}
|
|
492
|
-
};
|
|
493
|
-
default: return {
|
|
494
|
-
label: "taxInformationNumber__LU_Org",
|
|
495
|
-
validators: mapValidators([validatePatternOnBlur(/^\d{11}$/)], CountryCodes.Luxembourg),
|
|
496
|
-
mask: { mask: makeMask(...numericInputs(11)) },
|
|
497
|
-
guidanceText: {
|
|
498
|
-
key: "enterNCharactersForExample",
|
|
499
|
-
values: {
|
|
500
|
-
numChars: "11",
|
|
501
|
-
example: "19991201001"
|
|
502
|
-
}
|
|
503
|
-
}
|
|
504
|
-
};
|
|
505
|
-
}
|
|
506
|
-
},
|
|
507
|
-
[CountryCodes.Malta]: ({ taxIdNumberType }) => {
|
|
734
|
+
[CountryCodes.Canada]: ({ taxIdNumberType }) => {
|
|
508
735
|
switch (taxIdNumberType) {
|
|
509
|
-
case "
|
|
510
|
-
label: "
|
|
511
|
-
validators: mapValidators([validatePatternOnBlur(/^\d{
|
|
512
|
-
mask: {
|
|
513
|
-
mask: makeMask(...numericInputs(7), ...alphanumericInputs(2)),
|
|
514
|
-
transformOnType: uppercase
|
|
515
|
-
},
|
|
516
|
-
guidanceText: {
|
|
517
|
-
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
518
|
-
values: {
|
|
519
|
-
example: "1234567A",
|
|
520
|
-
idType: "Identity card number or unique taxpayer reference number (Maltese nationals)"
|
|
521
|
-
}
|
|
522
|
-
}
|
|
523
|
-
};
|
|
524
|
-
case "NRU": return {
|
|
525
|
-
label: "taxInformationNumber__MT_NRU_Individual",
|
|
526
|
-
validators: mapValidators([validatePatternOnBlur(/^\d{9}$/)], CountryCodes.Malta),
|
|
736
|
+
case "SIN": return {
|
|
737
|
+
label: "taxInformationNumber__CA",
|
|
738
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{9}$/)], CountryCodes.Canada),
|
|
527
739
|
mask: { mask: makeMask(...numericInputs(9)) },
|
|
528
740
|
guidanceText: {
|
|
529
|
-
key: "
|
|
741
|
+
key: "enterNDigitsForExample",
|
|
530
742
|
values: {
|
|
531
|
-
|
|
532
|
-
|
|
743
|
+
numDigits: "9",
|
|
744
|
+
example: "123456789"
|
|
533
745
|
}
|
|
534
746
|
}
|
|
535
747
|
};
|
|
536
748
|
default: return {
|
|
537
|
-
label: "
|
|
538
|
-
validators: mapValidators([validatePatternOnBlur(/^\d{9}$/)], CountryCodes.
|
|
749
|
+
label: "businessNumber",
|
|
750
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{9}$/)], CountryCodes.Canada),
|
|
539
751
|
mask: { mask: makeMask(...numericInputs(9)) },
|
|
540
752
|
guidanceText: {
|
|
541
|
-
key: "
|
|
753
|
+
key: "enterNDigitsForExample",
|
|
542
754
|
values: {
|
|
543
|
-
|
|
544
|
-
|
|
755
|
+
numDigits: "9",
|
|
756
|
+
example: "123456789"
|
|
545
757
|
}
|
|
546
758
|
}
|
|
547
759
|
};
|
|
548
760
|
}
|
|
549
761
|
},
|
|
550
|
-
[CountryCodes.
|
|
551
|
-
label: "
|
|
552
|
-
validators: mapValidators([validatePatternOnBlur(
|
|
553
|
-
mask: {
|
|
762
|
+
[CountryCodes.China]: {
|
|
763
|
+
label: "taxInformationNumber__CN",
|
|
764
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{17}[0-9X]$/)], CountryCodes.China),
|
|
765
|
+
mask: {
|
|
766
|
+
mask: makeMask(...numericInputs(17), ...customInputs(1, /[0-9X]/)),
|
|
767
|
+
transformOnType: uppercase
|
|
768
|
+
},
|
|
554
769
|
guidanceText: {
|
|
555
|
-
key: "
|
|
770
|
+
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
556
771
|
values: {
|
|
557
|
-
|
|
558
|
-
|
|
772
|
+
example: "11010519491231002X",
|
|
773
|
+
idType: "Resident Identity Card Number (居民身份证号码)"
|
|
559
774
|
}
|
|
560
775
|
}
|
|
561
776
|
},
|
|
562
|
-
[CountryCodes.
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
idType: "BSN"
|
|
573
|
-
}
|
|
574
|
-
}
|
|
575
|
-
};
|
|
576
|
-
default: return {
|
|
577
|
-
label: "rsinNumber",
|
|
578
|
-
validators: mapValidators([validatePatternOnBlur(/^\d{9}$/)], CountryCodes.Netherlands),
|
|
579
|
-
mask: { mask: makeMask(...numericInputs(9)) },
|
|
580
|
-
guidanceText: {
|
|
581
|
-
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
582
|
-
values: {
|
|
583
|
-
example: "811786523",
|
|
584
|
-
idType: "RSIN"
|
|
585
|
-
}
|
|
586
|
-
}
|
|
587
|
-
};
|
|
777
|
+
[CountryCodes.Croatia]: {
|
|
778
|
+
label: "taxInformationNumber__HR",
|
|
779
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{11}$/)], CountryCodes.Croatia),
|
|
780
|
+
mask: { mask: makeMask(...numericInputs(11)) },
|
|
781
|
+
guidanceText: {
|
|
782
|
+
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
783
|
+
values: {
|
|
784
|
+
example: "94577403194",
|
|
785
|
+
idType: "OIB"
|
|
786
|
+
}
|
|
588
787
|
}
|
|
589
788
|
},
|
|
590
|
-
[CountryCodes.
|
|
591
|
-
label: "
|
|
592
|
-
validators: mapValidators([validatePatternOnBlur(/^\d{8,9}$/)], CountryCodes.
|
|
593
|
-
mask: {
|
|
789
|
+
[CountryCodes.Cyprus]: {
|
|
790
|
+
label: "taxInformationNumber__CY",
|
|
791
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{8,9}[A-Z]$/)], CountryCodes.Cyprus),
|
|
792
|
+
mask: {
|
|
793
|
+
mask: makeMask(...numericInputs(8), ...numericInputs(1, true), ...alphaInputs(1)),
|
|
794
|
+
transformOnType: uppercase
|
|
795
|
+
},
|
|
594
796
|
guidanceText: {
|
|
595
|
-
key: "
|
|
797
|
+
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
596
798
|
values: {
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
example: "12345678"
|
|
799
|
+
example: "00123123T",
|
|
800
|
+
idType: "TIC"
|
|
600
801
|
}
|
|
601
802
|
}
|
|
602
803
|
},
|
|
603
|
-
[CountryCodes.
|
|
604
|
-
label: "
|
|
605
|
-
validators: mapValidators([validatePatternOnBlur(/^\d{9}$/)], CountryCodes.
|
|
804
|
+
[CountryCodes.CzechRepublic]: {
|
|
805
|
+
label: "taxInformationNumber__CZ",
|
|
806
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{9,10}$/)], CountryCodes.CzechRepublic),
|
|
807
|
+
mask: { mask: makeMask(...numericInputs(6), ...nonInputs("/"), ...numericInputs(3), ...numericInputs(1, true)) },
|
|
808
|
+
guidanceText: {
|
|
809
|
+
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
810
|
+
values: {
|
|
811
|
+
example: "850523/1234",
|
|
812
|
+
idType: "Rodné číslo (RČ)"
|
|
813
|
+
}
|
|
814
|
+
}
|
|
815
|
+
},
|
|
816
|
+
[CountryCodes.Denmark]: {
|
|
817
|
+
label: "taxInformationNumber__DK",
|
|
818
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{10}$/)], CountryCodes.Denmark),
|
|
819
|
+
mask: { mask: makeMask(...numericInputs(6), ...nonInputs("-"), ...numericInputs(4)) },
|
|
820
|
+
guidanceText: {
|
|
821
|
+
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
822
|
+
values: {
|
|
823
|
+
example: "120585-1234",
|
|
824
|
+
idType: "CPR-nummer (Personnummer)"
|
|
825
|
+
}
|
|
826
|
+
}
|
|
827
|
+
},
|
|
828
|
+
[CountryCodes.Egypt]: {
|
|
829
|
+
label: "taxInformationNumber__EG",
|
|
830
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{9}$/)], CountryCodes.Egypt),
|
|
606
831
|
mask: { mask: makeMask(...numericInputs(9)) },
|
|
607
832
|
guidanceText: {
|
|
608
833
|
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
609
834
|
values: {
|
|
610
|
-
example: "
|
|
611
|
-
idType: "
|
|
835
|
+
example: "123456789",
|
|
836
|
+
idType: "Tax Registration Number (رقم التسجيل الضريبي)"
|
|
612
837
|
}
|
|
613
838
|
}
|
|
614
839
|
},
|
|
615
|
-
[CountryCodes.
|
|
616
|
-
label: "
|
|
617
|
-
validators: mapValidators([validatePatternOnBlur(/^\d{
|
|
618
|
-
mask: { mask: makeMask(...numericInputs(
|
|
840
|
+
[CountryCodes.Estonia]: {
|
|
841
|
+
label: "taxInformationNumber__ET_Individual",
|
|
842
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{11}$/)], CountryCodes.Estonia),
|
|
843
|
+
mask: { mask: makeMask(...numericInputs(11)) },
|
|
619
844
|
guidanceText: {
|
|
620
|
-
key: "
|
|
845
|
+
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
621
846
|
values: {
|
|
622
|
-
|
|
623
|
-
|
|
847
|
+
example: "32708101201",
|
|
848
|
+
idType: "Isikukood"
|
|
624
849
|
}
|
|
625
850
|
}
|
|
626
851
|
},
|
|
627
|
-
[CountryCodes.
|
|
628
|
-
label: "
|
|
629
|
-
validators: mapValidators([validatePatternOnBlur(
|
|
852
|
+
[CountryCodes.Finland]: {
|
|
853
|
+
label: "taxInformationNumber__FI",
|
|
854
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{6}[+\-A]\d{3}[0-9A-Y]$/)], CountryCodes.Finland),
|
|
630
855
|
mask: {
|
|
631
|
-
mask: makeMask(...
|
|
856
|
+
mask: makeMask(...numericInputs(6), {
|
|
857
|
+
type: "input",
|
|
858
|
+
allow: /[+\-A]/
|
|
859
|
+
}, ...numericInputs(3), {
|
|
860
|
+
type: "input",
|
|
861
|
+
allow: /[0-9A-Y]/
|
|
862
|
+
}),
|
|
632
863
|
transformOnType: uppercase
|
|
633
864
|
},
|
|
634
865
|
guidanceText: {
|
|
635
|
-
key: "
|
|
866
|
+
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
636
867
|
values: {
|
|
637
|
-
|
|
638
|
-
|
|
868
|
+
example: "131052-308T",
|
|
869
|
+
idType: "Henkilötunnus"
|
|
639
870
|
}
|
|
640
871
|
}
|
|
641
872
|
},
|
|
642
|
-
[CountryCodes.
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
873
|
+
[CountryCodes.France]: {
|
|
874
|
+
label: "taxInformationNumber__FR",
|
|
875
|
+
validators: mapValidators([validatePatternOnBlur(/^\s*(\d\s*){13}$/)], CountryCodes.France),
|
|
876
|
+
mask: { mask: makeMask(...numericInputs(2), spacer, ...numericInputs(2), spacer, ...numericInputs(3), spacer, ...numericInputs(3), spacer, ...numericInputs(3)) },
|
|
877
|
+
guidanceText: {
|
|
878
|
+
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
879
|
+
values: {
|
|
880
|
+
example: "30 23 217 600 053",
|
|
881
|
+
idType: "Numéro SPI"
|
|
882
|
+
}
|
|
883
|
+
}
|
|
884
|
+
},
|
|
885
|
+
[CountryCodes.Germany]: ({ taxIdNumberType }) => {
|
|
886
|
+
switch (taxIdNumberType) {
|
|
887
|
+
case "IDNR": return {
|
|
888
|
+
label: "taxInformationNumber__DE_Individual",
|
|
889
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{11}$/)], CountryCodes.Germany),
|
|
890
|
+
mask: { mask: makeMask(...numericInputs(11)) },
|
|
891
|
+
guidanceText: {
|
|
892
|
+
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
893
|
+
values: {
|
|
894
|
+
example: "26954371827",
|
|
895
|
+
idType: "IdNr"
|
|
657
896
|
}
|
|
658
897
|
}
|
|
659
898
|
};
|
|
660
899
|
default: return {
|
|
661
|
-
label: "
|
|
662
|
-
validators: mapValidators([validatePatternOnBlur(/^\d{10}$/)], CountryCodes.
|
|
663
|
-
mask: { mask: makeMask(...numericInputs(10)) },
|
|
900
|
+
label: "taxInformationNumber__DE",
|
|
901
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{10}$|^\d{11}$|^\d{13}$/)], CountryCodes.Germany),
|
|
902
|
+
mask: { mask: makeMask(...numericInputs(10), ...numericInputs(3, true)) },
|
|
664
903
|
guidanceText: {
|
|
665
904
|
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
666
905
|
values: {
|
|
667
|
-
example: "
|
|
668
|
-
idType: "
|
|
906
|
+
example: "14310260208",
|
|
907
|
+
idType: "Steuernummer"
|
|
669
908
|
}
|
|
670
909
|
}
|
|
671
910
|
};
|
|
672
911
|
}
|
|
673
912
|
},
|
|
674
|
-
[CountryCodes.
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
913
|
+
[CountryCodes.Gibraltar]: {
|
|
914
|
+
label: "taxpayerReferenceNumber",
|
|
915
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{1,7}$/)], CountryCodes.Gibraltar),
|
|
916
|
+
mask: { mask: makeMask(...numericInputs(1), ...numericInputs(6, true)) },
|
|
917
|
+
guidanceText: {
|
|
918
|
+
key: "enterAMaximumOfNDigitsForExample",
|
|
919
|
+
values: {
|
|
920
|
+
maxDigits: "7",
|
|
921
|
+
example: "123456"
|
|
922
|
+
}
|
|
923
|
+
}
|
|
924
|
+
},
|
|
925
|
+
[CountryCodes.Greece]: {
|
|
926
|
+
label: "taxInformationNumber__GR",
|
|
927
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{9}$/)], CountryCodes.Greece),
|
|
928
|
+
mask: { mask: makeMask(...numericInputs(9)) },
|
|
929
|
+
guidanceText: {
|
|
930
|
+
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
931
|
+
values: {
|
|
932
|
+
example: "244709851",
|
|
933
|
+
idType: "AFM"
|
|
934
|
+
}
|
|
935
|
+
}
|
|
936
|
+
},
|
|
937
|
+
[CountryCodes.Guernsey]: ({ taxIdNumberType }) => {
|
|
938
|
+
switch (taxIdNumberType) {
|
|
939
|
+
case "TIN_GG": return {
|
|
940
|
+
label: "nationalInsuranceNumber",
|
|
941
|
+
validators: mapValidators([validatePatternOnBlur(/^GY\d{6}[A-D]$/)], CountryCodes.Guernsey),
|
|
942
|
+
mask: {
|
|
943
|
+
mask: makeMask(...nonInputs("GY", { includeInValue: true }), spacer, ...numericInputs(2), spacer, ...numericInputs(2), spacer, ...numericInputs(2), spacer, {
|
|
944
|
+
type: "input",
|
|
945
|
+
allow: /[A-D]/
|
|
946
|
+
}),
|
|
947
|
+
transformOnType: uppercase
|
|
948
|
+
},
|
|
680
949
|
guidanceText: {
|
|
681
|
-
key: "
|
|
950
|
+
key: "enterTheRemainingNCharactersForExample",
|
|
682
951
|
values: {
|
|
683
|
-
|
|
684
|
-
|
|
952
|
+
numChars: "7",
|
|
953
|
+
example: "GY 12 34 56 A"
|
|
685
954
|
}
|
|
686
955
|
}
|
|
687
956
|
};
|
|
688
957
|
default: return {
|
|
689
|
-
label: "
|
|
690
|
-
|
|
691
|
-
|
|
958
|
+
label: "taxInformationNumber",
|
|
959
|
+
mask: businessRegistrationNumberMasks[CountryCodes.Guernsey].default,
|
|
960
|
+
validators: mapValidators([validatePatternOnBlur(businessRegistrationNumberPatterns[CountryCodes.Guernsey].default)], CountryCodes.Guernsey),
|
|
692
961
|
guidanceText: {
|
|
693
|
-
key: "
|
|
962
|
+
key: "enterAMaximumOfNDigitsForExample",
|
|
694
963
|
values: {
|
|
695
|
-
|
|
696
|
-
|
|
964
|
+
maxDigits: "9",
|
|
965
|
+
example: "123456"
|
|
697
966
|
}
|
|
698
967
|
}
|
|
699
968
|
};
|
|
700
969
|
}
|
|
701
970
|
},
|
|
702
|
-
[CountryCodes.
|
|
703
|
-
switch (
|
|
704
|
-
case
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
default: return {
|
|
717
|
-
label: "utr",
|
|
718
|
-
validators: mapValidators([validatePatternOnBlur(/^\d{10}$/)], CountryCodes.UnitedKingdom),
|
|
719
|
-
mask: { mask: makeMask(...numericInputs(10)) },
|
|
720
|
-
guidanceText: {
|
|
721
|
-
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
722
|
-
values: {
|
|
723
|
-
example: "7172510005",
|
|
724
|
-
idType: "UTR"
|
|
725
|
-
}
|
|
971
|
+
[CountryCodes.HongKong]: ({ taxIdNumberType }) => {
|
|
972
|
+
switch (taxIdNumberType) {
|
|
973
|
+
case "HKID": return {
|
|
974
|
+
label: "taxInformationNumber__HK_Individual",
|
|
975
|
+
validators: mapValidators([validatePatternOnBlur(/^[A-Z]{1,2}[0-9]{6}[A-Z0-9]$/)], CountryCodes.HongKong),
|
|
976
|
+
mask: {
|
|
977
|
+
mask: makeMask(...alphaInputs(1), ...alphaInputs(1, true), ...numericInputs(6), ...nonInputs("(", { displayEagerly: false }), ...alphanumericInputs(1), ...nonInputs(")", { displayEagerly: true })),
|
|
978
|
+
transformOnType: uppercase
|
|
979
|
+
},
|
|
980
|
+
guidanceText: {
|
|
981
|
+
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
982
|
+
values: {
|
|
983
|
+
example: "A123456(7)",
|
|
984
|
+
idType: "Hong Kong Identity Card Number (HKID)"
|
|
726
985
|
}
|
|
727
|
-
}
|
|
728
|
-
}
|
|
986
|
+
}
|
|
987
|
+
};
|
|
729
988
|
default: return {
|
|
730
|
-
label: "
|
|
731
|
-
validators: mapValidators([validatePatternOnBlur(/^\d{
|
|
732
|
-
mask: { mask: makeMask(...numericInputs(
|
|
989
|
+
label: "taxInformationNumber__HK",
|
|
990
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{8}$/)], CountryCodes.HongKong),
|
|
991
|
+
mask: { mask: makeMask(...numericInputs(8)) },
|
|
733
992
|
guidanceText: {
|
|
734
|
-
key: "
|
|
993
|
+
key: "enterNDigitsForExample",
|
|
735
994
|
values: {
|
|
736
|
-
|
|
737
|
-
|
|
995
|
+
numDigits: "8",
|
|
996
|
+
example: "70569713"
|
|
738
997
|
}
|
|
739
998
|
}
|
|
740
999
|
};
|
|
741
1000
|
}
|
|
742
1001
|
},
|
|
743
|
-
[CountryCodes.
|
|
744
|
-
label: "
|
|
745
|
-
validators: mapValidators([
|
|
746
|
-
mask: { mask: makeMask(...numericInputs(
|
|
1002
|
+
[CountryCodes.Hungary]: {
|
|
1003
|
+
label: "taxInformationNumber__HU",
|
|
1004
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{10}$/)], CountryCodes.Hungary),
|
|
1005
|
+
mask: { mask: makeMask(...numericInputs(10)) },
|
|
747
1006
|
guidanceText: {
|
|
748
|
-
key: "
|
|
1007
|
+
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
749
1008
|
values: {
|
|
750
|
-
|
|
751
|
-
|
|
1009
|
+
example: "8123456789",
|
|
1010
|
+
idType: "Adóazonosító jel"
|
|
752
1011
|
}
|
|
753
1012
|
}
|
|
754
1013
|
},
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
*/
|
|
760
|
-
[CountryCodes.India]: { validators: mapValidators([validatePatternOnBlur(/^[A-Z0-9]{15}$/)], CountryCodes.India) },
|
|
761
|
-
[CountryCodes.Japan]: {
|
|
762
|
-
label: "taxInformationNumber__JP",
|
|
763
|
-
validators: mapValidators([validatePatternOnBlur(/^\d{13}$/)], CountryCodes.Japan),
|
|
1014
|
+
[CountryCodes.Iceland]: {
|
|
1015
|
+
label: "taxInformationNumber__IS",
|
|
1016
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{10}$/)], CountryCodes.Iceland),
|
|
1017
|
+
mask: { mask: makeMask(...numericInputs(6), ...nonInputs("-"), ...numericInputs(4)) },
|
|
764
1018
|
guidanceText: {
|
|
765
|
-
key: "
|
|
1019
|
+
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
766
1020
|
values: {
|
|
767
|
-
|
|
768
|
-
|
|
1021
|
+
example: "120585-1234",
|
|
1022
|
+
idType: "Kennitala"
|
|
769
1023
|
}
|
|
770
1024
|
}
|
|
771
1025
|
},
|
|
772
|
-
[CountryCodes.
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
1026
|
+
[CountryCodes.Ireland]: ({ taxIdNumberType }) => {
|
|
1027
|
+
switch (taxIdNumberType) {
|
|
1028
|
+
case "PERSONAL_PUBLIC_SERVICE_NUMBER": return {
|
|
1029
|
+
label: "taxInformationNumber__IE_Individual",
|
|
1030
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{7}[A-Z]$|^\d{7}[A-Z]{2}$/)], CountryCodes.Ireland),
|
|
1031
|
+
mask: {
|
|
1032
|
+
mask: makeMask(...numericInputs(7), ...alphaInputs(1), ...alphaInputs(1, true)),
|
|
1033
|
+
transformOnType: uppercase
|
|
1034
|
+
},
|
|
1035
|
+
guidanceText: {
|
|
1036
|
+
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
1037
|
+
values: {
|
|
1038
|
+
example: "1234567T",
|
|
1039
|
+
idType: "Personal Public Service Number"
|
|
1040
|
+
}
|
|
1041
|
+
}
|
|
1042
|
+
};
|
|
1043
|
+
default: return {
|
|
1044
|
+
label: "trnNumber",
|
|
1045
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{7}[A-Z]$|^\d{7}[A-Z]{2}$/)], CountryCodes.Ireland),
|
|
1046
|
+
mask: {
|
|
1047
|
+
mask: makeMask(...numericInputs(7), ...alphaInputs(1), ...alphaInputs(1, true)),
|
|
1048
|
+
transformOnType: uppercase
|
|
1049
|
+
},
|
|
1050
|
+
guidanceText: {
|
|
1051
|
+
key: "enterXDigitsThenXToYLettersForExample",
|
|
1052
|
+
values: {
|
|
1053
|
+
numDigits: "7",
|
|
1054
|
+
minLetters: "1",
|
|
1055
|
+
maxLetters: "2",
|
|
1056
|
+
example: "1497955KA"
|
|
1057
|
+
}
|
|
1058
|
+
}
|
|
1059
|
+
};
|
|
791
1060
|
}
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
1061
|
+
},
|
|
1062
|
+
[CountryCodes.India]: {
|
|
1063
|
+
label: "taxInformationNumber__IN",
|
|
1064
|
+
validators: mapValidators([validatePatternOnBlur(/^[A-Z]{5}\d{4}[A-Z]$/)], CountryCodes.India),
|
|
1065
|
+
mask: {
|
|
1066
|
+
mask: makeMask(...alphaInputs(5), ...numericInputs(4), ...alphaInputs(1)),
|
|
1067
|
+
transformOnType: uppercase
|
|
1068
|
+
},
|
|
1069
|
+
guidanceText: {
|
|
1070
|
+
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
1071
|
+
values: {
|
|
1072
|
+
example: "ABCDE1234F",
|
|
1073
|
+
idType: "Permanent Account Number (PAN)"
|
|
1074
|
+
}
|
|
797
1075
|
}
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
1076
|
+
},
|
|
1077
|
+
[CountryCodes.Israel]: {
|
|
1078
|
+
label: "taxInformationNumber__IL",
|
|
1079
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{9}$/)], CountryCodes.Israel),
|
|
1080
|
+
mask: { mask: makeMask(...numericInputs(9)) },
|
|
1081
|
+
guidanceText: {
|
|
1082
|
+
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
1083
|
+
values: {
|
|
1084
|
+
example: "123456782",
|
|
1085
|
+
idType: "Identity Number (Mispar Zehut / מספר זהות)"
|
|
1086
|
+
}
|
|
805
1087
|
}
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
1088
|
+
},
|
|
1089
|
+
[CountryCodes.Italy]: {
|
|
1090
|
+
label: "codiceFiscale",
|
|
1091
|
+
mask: { mask: makeMask(...numericInputs(11)) },
|
|
1092
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{11}$/)], CountryCodes.Italy),
|
|
1093
|
+
guidanceText: {
|
|
1094
|
+
key: "enterNDigitsForExample",
|
|
1095
|
+
values: {
|
|
1096
|
+
numDigits: "11",
|
|
1097
|
+
example: "12345678901"
|
|
810
1098
|
}
|
|
811
|
-
default: return "999999999";
|
|
812
1099
|
}
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
1100
|
+
},
|
|
1101
|
+
[CountryCodes.IsleOfMan]: {
|
|
1102
|
+
label: "taxReferenceNumber",
|
|
1103
|
+
validators: mapValidators([validatePatternOnBlur(/^[HCX]\d{8}$/)], CountryCodes.IsleOfMan),
|
|
1104
|
+
mask: {
|
|
1105
|
+
mask: makeMask({
|
|
1106
|
+
type: "input",
|
|
1107
|
+
allow: /[HCX]/
|
|
1108
|
+
}, ...numericInputs(6), ...nonInputs(" - "), ...numericInputs(2)),
|
|
1109
|
+
transformOnType: uppercase
|
|
1110
|
+
},
|
|
1111
|
+
guidanceText: {
|
|
1112
|
+
key: "enterNCharactersForExample",
|
|
1113
|
+
values: {
|
|
1114
|
+
numChars: "9",
|
|
1115
|
+
example: "C155673-79"
|
|
1116
|
+
}
|
|
817
1117
|
}
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
1118
|
+
},
|
|
1119
|
+
[CountryCodes.Japan]: ({ taxIdNumberType }) => {
|
|
1120
|
+
switch (taxIdNumberType) {
|
|
1121
|
+
case "CORPORATE_NUMBER":
|
|
1122
|
+
default: return {
|
|
1123
|
+
label: "taxInformationNumber__JP",
|
|
1124
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{13}$/)], CountryCodes.Japan),
|
|
1125
|
+
guidanceText: {
|
|
1126
|
+
key: "enterNDigitsForExample",
|
|
1127
|
+
values: {
|
|
1128
|
+
numDigits: "13",
|
|
1129
|
+
example: "2169151989941"
|
|
1130
|
+
}
|
|
1131
|
+
}
|
|
1132
|
+
};
|
|
1133
|
+
case "JP_MY_NUMBER": return {
|
|
1134
|
+
label: "taxInformationNumber__JP_Individual",
|
|
1135
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{12}$/)], CountryCodes.Japan),
|
|
1136
|
+
mask: { mask: makeMask(...numericInputs(12)) },
|
|
1137
|
+
guidanceText: {
|
|
1138
|
+
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
1139
|
+
values: {
|
|
1140
|
+
example: "123456789012",
|
|
1141
|
+
idType: "Individual Number / My Number (マイナンバー)"
|
|
1142
|
+
}
|
|
1143
|
+
}
|
|
1144
|
+
};
|
|
822
1145
|
}
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
1146
|
+
},
|
|
1147
|
+
[CountryCodes.Jersey]: ({ taxIdNumberType, companyType }) => {
|
|
1148
|
+
switch (taxIdNumberType) {
|
|
1149
|
+
case "SSN": return {
|
|
1150
|
+
label: "socialSecurityNumber",
|
|
1151
|
+
validators: mapValidators([validatePatternOnBlur(/^[A-Z]{2}\d{6}[A-Z]$/)], CountryCodes.Jersey),
|
|
1152
|
+
mask: {
|
|
1153
|
+
mask: makeMask(...alphaInputs(2), ...numericInputs(6), ...alphaInputs(1)),
|
|
1154
|
+
transformOnType: uppercase
|
|
1155
|
+
},
|
|
1156
|
+
guidanceText: {
|
|
1157
|
+
key: "enterNCharactersForExample",
|
|
1158
|
+
values: {
|
|
1159
|
+
numChars: "9",
|
|
1160
|
+
example: "JY000000A"
|
|
1161
|
+
}
|
|
1162
|
+
}
|
|
1163
|
+
};
|
|
1164
|
+
default: switch (companyType) {
|
|
1165
|
+
case "soleProprietorship": return {
|
|
1166
|
+
label: "taxIdentificationNumber",
|
|
1167
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{10}$/)], CountryCodes.Jersey),
|
|
1168
|
+
mask: { mask: makeMask(...numericInputs(3), ...nonInputs(" - "), ...numericInputs(3), ...nonInputs(" - "), ...numericInputs(4)) },
|
|
1169
|
+
guidanceText: {
|
|
1170
|
+
key: "enterNDigitsForExample",
|
|
1171
|
+
values: {
|
|
1172
|
+
numDigits: "10",
|
|
1173
|
+
example: "100-100-1000"
|
|
1174
|
+
}
|
|
1175
|
+
}
|
|
1176
|
+
};
|
|
1177
|
+
default: return {
|
|
1178
|
+
label: "taxIdentificationNumber",
|
|
1179
|
+
validators: mapValidators([validatePatternOnBlur(/^[A-Z]{2}\d{5}$/)], CountryCodes.Jersey),
|
|
1180
|
+
mask: {
|
|
1181
|
+
mask: makeMask(...alphaInputs(2), ...numericInputs(5)),
|
|
1182
|
+
transformOnType: uppercase
|
|
1183
|
+
},
|
|
1184
|
+
guidanceText: {
|
|
1185
|
+
key: "enterNCharactersForExample",
|
|
1186
|
+
values: {
|
|
1187
|
+
numChars: "7",
|
|
1188
|
+
example: "CC17261"
|
|
1189
|
+
}
|
|
1190
|
+
}
|
|
1191
|
+
};
|
|
1192
|
+
}
|
|
826
1193
|
}
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
}
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
CountryCodes.
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
]
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
]
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
CountryCodes.
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
CountryCodes.
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
CountryCodes.
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
CountryCodes.
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
]
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
CountryCodes.
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
}
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
}
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
}
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
"
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
}],
|
|
1235
|
-
[CountryCodes.Luxembourg]: [{
|
|
1236
|
-
id: "NATIONAL_IDENTIFICATION_NUMBER",
|
|
1237
|
-
name: "taxInformationNumber__LU_Individual",
|
|
1238
|
-
applicableOnlyFor: [LegalEntityTypes.INDIVIDUAL]
|
|
1239
|
-
}, {
|
|
1240
|
-
id: "NATIONAL_IDENTIFICATION_NUMBER",
|
|
1241
|
-
name: "taxInformationNumber__LU_Org",
|
|
1242
|
-
applicableOnlyFor: ["privateCompany"]
|
|
1243
|
-
}],
|
|
1244
|
-
[CountryCodes.Malta]: [
|
|
1245
|
-
{
|
|
1246
|
-
id: "NRU",
|
|
1247
|
-
name: "taxInformationNumber__MT_NRU_Individual",
|
|
1248
|
-
applicableOnlyFor: [LegalEntityTypes.INDIVIDUAL]
|
|
1249
|
-
},
|
|
1250
|
-
{
|
|
1251
|
-
id: "IDENTITY_CARD_NUMBER",
|
|
1252
|
-
name: "taxInformationNumber__MT_Individual",
|
|
1253
|
-
applicableOnlyFor: [LegalEntityTypes.INDIVIDUAL]
|
|
1254
|
-
},
|
|
1255
|
-
{
|
|
1256
|
-
id: "INCOME_TAX_REGISTRATION_NUMBER",
|
|
1257
|
-
name: "taxInformationNumber__MT_Org",
|
|
1258
|
-
applicableOnlyFor: ["privateCompany"]
|
|
1194
|
+
},
|
|
1195
|
+
[CountryCodes.Latvia]: {
|
|
1196
|
+
label: "taxInformationNumber__LV",
|
|
1197
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{11}$/)], CountryCodes.Latvia),
|
|
1198
|
+
mask: { mask: makeMask(...numericInputs(11)) },
|
|
1199
|
+
guidanceText: {
|
|
1200
|
+
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
1201
|
+
values: {
|
|
1202
|
+
example: "32532963606",
|
|
1203
|
+
idType: "Personas kods"
|
|
1204
|
+
}
|
|
1205
|
+
}
|
|
1206
|
+
},
|
|
1207
|
+
[CountryCodes.Lithuania]: {
|
|
1208
|
+
label: "taxInformationNumber__LT",
|
|
1209
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{11}$/)], CountryCodes.Lithuania),
|
|
1210
|
+
mask: { mask: makeMask(...numericInputs(11)) },
|
|
1211
|
+
guidanceText: {
|
|
1212
|
+
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
1213
|
+
values: {
|
|
1214
|
+
example: "33309240064",
|
|
1215
|
+
idType: "Asmens kodas"
|
|
1216
|
+
}
|
|
1217
|
+
}
|
|
1218
|
+
},
|
|
1219
|
+
[CountryCodes.Luxembourg]: ({ companyType }) => {
|
|
1220
|
+
switch (companyType) {
|
|
1221
|
+
case "individual": return {
|
|
1222
|
+
label: "taxInformationNumber__LU_Individual",
|
|
1223
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{13}$/)], CountryCodes.Luxembourg),
|
|
1224
|
+
mask: { mask: makeMask(...numericInputs(13)) },
|
|
1225
|
+
guidanceText: {
|
|
1226
|
+
key: "enterNCharactersForExample",
|
|
1227
|
+
values: {
|
|
1228
|
+
numChars: "13",
|
|
1229
|
+
example: "1893120105732"
|
|
1230
|
+
}
|
|
1231
|
+
}
|
|
1232
|
+
};
|
|
1233
|
+
default: return {
|
|
1234
|
+
label: "taxInformationNumber__LU_Org",
|
|
1235
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{11}$/)], CountryCodes.Luxembourg),
|
|
1236
|
+
mask: { mask: makeMask(...numericInputs(11)) },
|
|
1237
|
+
guidanceText: {
|
|
1238
|
+
key: "enterNCharactersForExample",
|
|
1239
|
+
values: {
|
|
1240
|
+
numChars: "11",
|
|
1241
|
+
example: "19991201001"
|
|
1242
|
+
}
|
|
1243
|
+
}
|
|
1244
|
+
};
|
|
1245
|
+
}
|
|
1246
|
+
},
|
|
1247
|
+
[CountryCodes.Malta]: ({ taxIdNumberType }) => {
|
|
1248
|
+
switch (taxIdNumberType) {
|
|
1249
|
+
case "IDENTITY_CARD_NUMBER": return {
|
|
1250
|
+
label: "taxInformationNumber__MT_Individual",
|
|
1251
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{7}[A-Z]$|^\d{9}$/)], CountryCodes.Malta),
|
|
1252
|
+
mask: {
|
|
1253
|
+
mask: makeMask(...numericInputs(7), ...alphanumericInputs(2)),
|
|
1254
|
+
transformOnType: uppercase
|
|
1255
|
+
},
|
|
1256
|
+
guidanceText: {
|
|
1257
|
+
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
1258
|
+
values: {
|
|
1259
|
+
example: "1234567A",
|
|
1260
|
+
idType: "Identity card number"
|
|
1261
|
+
}
|
|
1262
|
+
}
|
|
1263
|
+
};
|
|
1264
|
+
case "UNIQUE_TAXPAYER_REFERENCE_NUMBER": return {
|
|
1265
|
+
label: "taxInformationNumber__MT_Individual_UTRN",
|
|
1266
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{9}$/)], CountryCodes.Malta),
|
|
1267
|
+
mask: { mask: makeMask(...numericInputs(9)) },
|
|
1268
|
+
guidanceText: {
|
|
1269
|
+
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
1270
|
+
values: {
|
|
1271
|
+
example: "999999999",
|
|
1272
|
+
idType: "Unique taxpayer reference number"
|
|
1273
|
+
}
|
|
1274
|
+
}
|
|
1275
|
+
};
|
|
1276
|
+
default: return {
|
|
1277
|
+
label: "taxInformationNumber__MT_Org",
|
|
1278
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{9}$/)], CountryCodes.Malta),
|
|
1279
|
+
mask: { mask: makeMask(...numericInputs(9)) },
|
|
1280
|
+
guidanceText: {
|
|
1281
|
+
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
1282
|
+
values: {
|
|
1283
|
+
example: "123456789",
|
|
1284
|
+
idType: "Income Tax Registration Number"
|
|
1285
|
+
}
|
|
1286
|
+
}
|
|
1287
|
+
};
|
|
1288
|
+
}
|
|
1289
|
+
},
|
|
1290
|
+
[CountryCodes.Mexico]: ({ companyType }) => {
|
|
1291
|
+
switch (companyType) {
|
|
1292
|
+
case "soleProprietorship": return {
|
|
1293
|
+
label: "taxInformationNumber__MX",
|
|
1294
|
+
validators: mapValidators([validatePatternOnBlur(/^[a-zA-Z]{3,4}\d{6}[A-Za-z0-9]{3}$/)], CountryCodes.Mexico),
|
|
1295
|
+
mask: { mask: makeMask(...alphanumericInputs(12), ...alphanumericInputs(1, true)) },
|
|
1296
|
+
guidanceText: {
|
|
1297
|
+
key: "enterXToYCharactersForExample",
|
|
1298
|
+
values: {
|
|
1299
|
+
minDigis: "12",
|
|
1300
|
+
maxDigits: "13",
|
|
1301
|
+
example: "LFM200817DGA, GOMJ850215AB3"
|
|
1302
|
+
}
|
|
1303
|
+
}
|
|
1304
|
+
};
|
|
1305
|
+
default: return {
|
|
1306
|
+
label: "taxInformationNumber__MX",
|
|
1307
|
+
validators: mapValidators([validatePatternOnBlur(/^[a-zA-Z]{3}\d{6}[A-Za-z0-9]{3}$/)], CountryCodes.Mexico),
|
|
1308
|
+
mask: { mask: makeMask(...alphaInputs(3), ...numericInputs(6), ...alphanumericInputs(3)) },
|
|
1309
|
+
guidanceText: {
|
|
1310
|
+
key: "enterNCharactersForExample",
|
|
1311
|
+
values: {
|
|
1312
|
+
numDigits: "12",
|
|
1313
|
+
example: "LFM200817DGA, MEL9507278ZA"
|
|
1314
|
+
}
|
|
1315
|
+
}
|
|
1316
|
+
};
|
|
1317
|
+
}
|
|
1318
|
+
},
|
|
1319
|
+
[CountryCodes.Netherlands]: ({ companyType }) => {
|
|
1320
|
+
switch (companyType) {
|
|
1321
|
+
case "individual": return {
|
|
1322
|
+
label: "bsnNumber",
|
|
1323
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{9}$/)], CountryCodes.Netherlands),
|
|
1324
|
+
mask: { mask: makeMask(...numericInputs(9)) },
|
|
1325
|
+
guidanceText: {
|
|
1326
|
+
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
1327
|
+
values: {
|
|
1328
|
+
example: "999999999",
|
|
1329
|
+
idType: "BSN"
|
|
1330
|
+
}
|
|
1331
|
+
}
|
|
1332
|
+
};
|
|
1333
|
+
default: return {
|
|
1334
|
+
label: "rsinNumber",
|
|
1335
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{9}$/)], CountryCodes.Netherlands),
|
|
1336
|
+
mask: { mask: makeMask(...numericInputs(9)) },
|
|
1337
|
+
guidanceText: {
|
|
1338
|
+
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
1339
|
+
values: {
|
|
1340
|
+
example: "811786523",
|
|
1341
|
+
idType: "RSIN"
|
|
1342
|
+
}
|
|
1343
|
+
}
|
|
1344
|
+
};
|
|
1345
|
+
}
|
|
1346
|
+
},
|
|
1347
|
+
[CountryCodes.NewZealand]: {
|
|
1348
|
+
label: "irdNumber",
|
|
1349
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{8,9}$/)], CountryCodes.NewZealand),
|
|
1350
|
+
mask: { mask: makeMask(...numericInputs(8), ...numericInputs(1, true)) },
|
|
1351
|
+
guidanceText: {
|
|
1352
|
+
key: "enterXToYDigitsForExample",
|
|
1353
|
+
values: {
|
|
1354
|
+
minDigits: "8",
|
|
1355
|
+
maxDigits: "9",
|
|
1356
|
+
example: "12345678"
|
|
1357
|
+
}
|
|
1358
|
+
}
|
|
1359
|
+
},
|
|
1360
|
+
[CountryCodes.Norway]: {
|
|
1361
|
+
label: "taxInformationNumber__NO",
|
|
1362
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{11}$/)], CountryCodes.Norway),
|
|
1363
|
+
mask: { mask: makeMask(...numericInputs(11)) },
|
|
1364
|
+
guidanceText: {
|
|
1365
|
+
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
1366
|
+
values: {
|
|
1367
|
+
example: "12058512345",
|
|
1368
|
+
idType: "Fødselsnummer (or D-nummer)"
|
|
1369
|
+
}
|
|
1370
|
+
}
|
|
1371
|
+
},
|
|
1372
|
+
[CountryCodes.Poland]: {
|
|
1373
|
+
label: "taxInformationNumber__PL",
|
|
1374
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{11}$/)], CountryCodes.Poland),
|
|
1375
|
+
mask: { mask: makeMask(...numericInputs(11)) },
|
|
1376
|
+
guidanceText: {
|
|
1377
|
+
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
1378
|
+
values: {
|
|
1379
|
+
example: "85052312345",
|
|
1380
|
+
idType: "PESEL"
|
|
1381
|
+
}
|
|
1382
|
+
}
|
|
1383
|
+
},
|
|
1384
|
+
[CountryCodes.Portugal]: {
|
|
1385
|
+
label: "taxInformationNumber__PT",
|
|
1386
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{9}$/)], CountryCodes.Portugal),
|
|
1387
|
+
mask: { mask: makeMask(...numericInputs(9)) },
|
|
1388
|
+
guidanceText: {
|
|
1389
|
+
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
1390
|
+
values: {
|
|
1391
|
+
example: "299999998",
|
|
1392
|
+
idType: "Numéro ID Civil"
|
|
1393
|
+
}
|
|
1394
|
+
}
|
|
1395
|
+
},
|
|
1396
|
+
[CountryCodes.PuertoRico]: {
|
|
1397
|
+
label: "taxInformationNumber__US",
|
|
1398
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{9}$/)], CountryCodes.PuertoRico),
|
|
1399
|
+
mask: { mask: makeMask(...numericInputs(2), ...nonInputs(" - "), ...numericInputs(7)) },
|
|
1400
|
+
guidanceText: {
|
|
1401
|
+
key: "validationPleaseEnterAValidEINWithFormat",
|
|
1402
|
+
values: {
|
|
1403
|
+
format: "XX-XXXXXXX",
|
|
1404
|
+
example: "98-7654321"
|
|
1405
|
+
}
|
|
1406
|
+
}
|
|
1407
|
+
},
|
|
1408
|
+
[CountryCodes.Romania]: {
|
|
1409
|
+
label: "taxInformationNumber__RO",
|
|
1410
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{13}$/)], CountryCodes.Romania),
|
|
1411
|
+
mask: { mask: makeMask(...numericInputs(13)) },
|
|
1412
|
+
guidanceText: {
|
|
1413
|
+
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
1414
|
+
values: {
|
|
1415
|
+
example: "1234567890123",
|
|
1416
|
+
idType: "Cod Numeric Personal (CNP)"
|
|
1417
|
+
}
|
|
1418
|
+
}
|
|
1419
|
+
},
|
|
1420
|
+
[CountryCodes.Singapore]: ({ taxIdNumberType }) => {
|
|
1421
|
+
switch (taxIdNumberType) {
|
|
1422
|
+
case "NRIC": return {
|
|
1423
|
+
label: "taxInformationNumber__SG_Individual",
|
|
1424
|
+
validators: mapValidators([validatePatternOnBlur(/^[A-Z]\d{7}[A-Z]$/)], CountryCodes.Singapore),
|
|
1425
|
+
mask: {
|
|
1426
|
+
mask: makeMask(...alphaInputs(1), ...numericInputs(7), ...alphaInputs(1)),
|
|
1427
|
+
transformOnType: uppercase
|
|
1428
|
+
},
|
|
1429
|
+
guidanceText: {
|
|
1430
|
+
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
1431
|
+
values: {
|
|
1432
|
+
example: "S1234567A",
|
|
1433
|
+
idType: "Tax Reference Number (NRIC / FIN)"
|
|
1434
|
+
}
|
|
1435
|
+
}
|
|
1436
|
+
};
|
|
1437
|
+
default: return {
|
|
1438
|
+
label: "gst",
|
|
1439
|
+
validators: mapValidators([validatePatternOnBlur(/^[A-Z0-9]{9,10}$/)], CountryCodes.Singapore),
|
|
1440
|
+
mask: {
|
|
1441
|
+
mask: makeMask(...alphanumericInputs(2), ...nonInputs(" - "), ...alphanumericInputs(7), ...nonInputs(" - "), ...alphanumericInputs(1)),
|
|
1442
|
+
transformOnType: uppercase
|
|
1443
|
+
},
|
|
1444
|
+
guidanceText: {
|
|
1445
|
+
key: "enterNCharactersForExample",
|
|
1446
|
+
values: {
|
|
1447
|
+
numChars: "10",
|
|
1448
|
+
example: "M212345678"
|
|
1449
|
+
}
|
|
1450
|
+
}
|
|
1451
|
+
};
|
|
1452
|
+
}
|
|
1453
|
+
},
|
|
1454
|
+
[CountryCodes.Slovakia]: ({ companyType }) => {
|
|
1455
|
+
switch (companyType) {
|
|
1456
|
+
case "individual": return {
|
|
1457
|
+
label: "taxInformationNumber__SK_Individual",
|
|
1458
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{9}$|^\d{10}$|^\d{11}$|^\d{6}\/\d{3}$|^\d{6}\/\d{4}$/)], CountryCodes.Slovakia),
|
|
1459
|
+
mask: { mask: makeMask(...numericInputs(6), {
|
|
1460
|
+
type: "input",
|
|
1461
|
+
allow: /\//,
|
|
1462
|
+
optional: true
|
|
1463
|
+
}, ...numericInputs(4), ...numericInputs(1, true)) },
|
|
1464
|
+
guidanceText: {
|
|
1465
|
+
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
1466
|
+
values: {
|
|
1467
|
+
example: "7711167420",
|
|
1468
|
+
idType: "Rodne Cislo"
|
|
1469
|
+
}
|
|
1470
|
+
}
|
|
1471
|
+
};
|
|
1472
|
+
default: return {
|
|
1473
|
+
label: "taxInformationNumber__SK_Org",
|
|
1474
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{10}$/)], CountryCodes.Slovakia),
|
|
1475
|
+
mask: { mask: makeMask(...numericInputs(10)) },
|
|
1476
|
+
guidanceText: {
|
|
1477
|
+
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
1478
|
+
values: {
|
|
1479
|
+
example: "2020123456",
|
|
1480
|
+
idType: "Daňové identifikačné číslo (DIČ)"
|
|
1481
|
+
}
|
|
1482
|
+
}
|
|
1483
|
+
};
|
|
1484
|
+
}
|
|
1485
|
+
},
|
|
1486
|
+
[CountryCodes.Slovenia]: ({ companyType }) => {
|
|
1487
|
+
switch (companyType) {
|
|
1488
|
+
case "individual": return {
|
|
1489
|
+
label: "taxInformationNumber__SI_Individual",
|
|
1490
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{8}$/)], CountryCodes.Slovenia),
|
|
1491
|
+
mask: { mask: makeMask(...numericInputs(8)) },
|
|
1492
|
+
guidanceText: {
|
|
1493
|
+
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
1494
|
+
values: {
|
|
1495
|
+
example: "15012557",
|
|
1496
|
+
idType: "SI tax number"
|
|
1497
|
+
}
|
|
1498
|
+
}
|
|
1499
|
+
};
|
|
1500
|
+
default: return {
|
|
1501
|
+
label: "taxInformationNumber__SI_Org",
|
|
1502
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{8}$/)], CountryCodes.Slovenia),
|
|
1503
|
+
mask: { mask: makeMask(...numericInputs(8)) },
|
|
1504
|
+
guidanceText: {
|
|
1505
|
+
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
1506
|
+
values: {
|
|
1507
|
+
example: "12345678",
|
|
1508
|
+
idType: "Davčna številka"
|
|
1509
|
+
}
|
|
1510
|
+
}
|
|
1511
|
+
};
|
|
1512
|
+
}
|
|
1513
|
+
},
|
|
1514
|
+
[CountryCodes.SouthAfrica]: {
|
|
1515
|
+
label: "taxInformationNumber__ZA",
|
|
1516
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{10}$/)], CountryCodes.SouthAfrica),
|
|
1517
|
+
mask: { mask: makeMask(...numericInputs(10)) },
|
|
1518
|
+
guidanceText: {
|
|
1519
|
+
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
1520
|
+
values: {
|
|
1521
|
+
example: "1234567890",
|
|
1522
|
+
idType: "Income Tax Reference Number"
|
|
1523
|
+
}
|
|
1524
|
+
}
|
|
1525
|
+
},
|
|
1526
|
+
[CountryCodes.Sweden]: {
|
|
1527
|
+
label: "taxInformationNumber__SE",
|
|
1528
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{10,12}$/)], CountryCodes.Sweden),
|
|
1529
|
+
mask: { mask: makeMask(...numericInputs(6), ...numericInputs(2, true), ...nonInputs("-"), ...numericInputs(4)) },
|
|
1530
|
+
guidanceText: {
|
|
1531
|
+
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
1532
|
+
values: {
|
|
1533
|
+
example: "19850523-1234",
|
|
1534
|
+
idType: "Personnummer"
|
|
1535
|
+
}
|
|
1536
|
+
}
|
|
1537
|
+
},
|
|
1538
|
+
[CountryCodes.Switzerland]: {
|
|
1539
|
+
label: "taxInformationNumber__CH",
|
|
1540
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{13}$/)], CountryCodes.Switzerland),
|
|
1541
|
+
mask: { mask: makeMask(...numericInputs(3), ...nonInputs("."), ...numericInputs(4), ...nonInputs("."), ...numericInputs(4), ...nonInputs("."), ...numericInputs(2)) },
|
|
1542
|
+
guidanceText: {
|
|
1543
|
+
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
1544
|
+
values: {
|
|
1545
|
+
example: "756.1234.5678.90",
|
|
1546
|
+
idType: "AHV-Nummer / Numéro AVS / Numero AVS"
|
|
1547
|
+
}
|
|
1548
|
+
}
|
|
1549
|
+
},
|
|
1550
|
+
[CountryCodes.UnitedArabEmirates]: {
|
|
1551
|
+
label: "taxInformationNumber__AE",
|
|
1552
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{15}$/)], CountryCodes.UnitedArabEmirates),
|
|
1553
|
+
mask: { mask: makeMask(...numericInputs(3), ...nonInputs("-"), ...numericInputs(4), ...nonInputs("-"), ...numericInputs(7), ...nonInputs("-"), ...numericInputs(1)) },
|
|
1554
|
+
guidanceText: {
|
|
1555
|
+
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
1556
|
+
values: {
|
|
1557
|
+
example: "784-1985-1234567-1",
|
|
1558
|
+
idType: "Emirates ID Number (رقم الهوية)"
|
|
1559
|
+
}
|
|
1560
|
+
}
|
|
1561
|
+
},
|
|
1562
|
+
[CountryCodes.UnitedKingdom]: ({ taxIdNumberType, companyType }) => {
|
|
1563
|
+
switch (companyType) {
|
|
1564
|
+
case "individual": switch (taxIdNumberType) {
|
|
1565
|
+
case "NINO": return {
|
|
1566
|
+
label: "nationalInsuranceNumber",
|
|
1567
|
+
validators: mapValidators([validatePatternOnBlur(/^[A-Z]{2}\d{6}[A-D]$/)], CountryCodes.UnitedKingdom),
|
|
1568
|
+
guidanceText: {
|
|
1569
|
+
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
1570
|
+
values: {
|
|
1571
|
+
example: "AA123456C",
|
|
1572
|
+
idType: "NINO"
|
|
1573
|
+
}
|
|
1574
|
+
}
|
|
1575
|
+
};
|
|
1576
|
+
default: return {
|
|
1577
|
+
label: "utr",
|
|
1578
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{10}$/)], CountryCodes.UnitedKingdom),
|
|
1579
|
+
mask: { mask: makeMask(...numericInputs(10)) },
|
|
1580
|
+
guidanceText: {
|
|
1581
|
+
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
1582
|
+
values: {
|
|
1583
|
+
example: "7172510005",
|
|
1584
|
+
idType: "UTR"
|
|
1585
|
+
}
|
|
1586
|
+
}
|
|
1587
|
+
};
|
|
1588
|
+
}
|
|
1589
|
+
default: return {
|
|
1590
|
+
label: "utr",
|
|
1591
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{10}$/)], CountryCodes.UnitedKingdom),
|
|
1592
|
+
mask: { mask: makeMask(...numericInputs(10)) },
|
|
1593
|
+
guidanceText: {
|
|
1594
|
+
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
1595
|
+
values: {
|
|
1596
|
+
example: "7172510005",
|
|
1597
|
+
idType: "UTR"
|
|
1598
|
+
}
|
|
1599
|
+
}
|
|
1600
|
+
};
|
|
1259
1601
|
}
|
|
1260
|
-
|
|
1261
|
-
[CountryCodes.
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
"
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
"unlistedPublicCompany"
|
|
1272
|
-
]
|
|
1273
|
-
}],
|
|
1274
|
-
[CountryCodes.Netherlands]: [{
|
|
1275
|
-
id: "RSIN",
|
|
1276
|
-
name: "rsinNumber",
|
|
1277
|
-
applicableOnlyFor: [
|
|
1278
|
-
"privateCompany",
|
|
1279
|
-
"governmentalOrganization",
|
|
1280
|
-
"associationIncorporated",
|
|
1281
|
-
"partnershipIncorporated",
|
|
1282
|
-
"nonProfit",
|
|
1283
|
-
"unincorporatedPartnership",
|
|
1284
|
-
"unlistedPublicCompany"
|
|
1285
|
-
]
|
|
1286
|
-
}, {
|
|
1287
|
-
id: "BSN",
|
|
1288
|
-
name: "bsnNumber",
|
|
1289
|
-
applicableOnlyFor: [LegalEntityTypes.INDIVIDUAL]
|
|
1290
|
-
}],
|
|
1291
|
-
[CountryCodes.NewZealand]: [{
|
|
1292
|
-
id: "IRD",
|
|
1293
|
-
name: "irdNumber"
|
|
1294
|
-
}],
|
|
1295
|
-
[CountryCodes.Portugal]: [{
|
|
1296
|
-
id: "NUMERO_ID_CIVIL",
|
|
1297
|
-
name: "taxInformationNumber__PT",
|
|
1298
|
-
applicableOnlyFor: [LegalEntityTypes.INDIVIDUAL]
|
|
1299
|
-
}, {
|
|
1300
|
-
id: "NIPC",
|
|
1301
|
-
name: "NIPC",
|
|
1302
|
-
applicableOnlyFor: ["privateCompany"]
|
|
1303
|
-
}],
|
|
1304
|
-
[CountryCodes.PuertoRico]: [{
|
|
1305
|
-
id: "EIN",
|
|
1306
|
-
name: "ein"
|
|
1307
|
-
}],
|
|
1308
|
-
[CountryCodes.Singapore]: [{
|
|
1309
|
-
id: "GST",
|
|
1310
|
-
name: "gst"
|
|
1311
|
-
}, {
|
|
1312
|
-
id: "UEN",
|
|
1313
|
-
name: "uen"
|
|
1314
|
-
}],
|
|
1315
|
-
[CountryCodes.Slovakia]: [{
|
|
1316
|
-
id: "RODNE_CISLO",
|
|
1317
|
-
name: "taxInformationNumber__SK_Individual",
|
|
1318
|
-
applicableOnlyFor: [LegalEntityTypes.INDIVIDUAL]
|
|
1319
|
-
}, {
|
|
1320
|
-
id: "NATIONAL_IDENTIFICATION_NUMBER",
|
|
1321
|
-
name: "taxInformationNumber__SK_Org",
|
|
1322
|
-
applicableOnlyFor: ["privateCompany"]
|
|
1323
|
-
}],
|
|
1324
|
-
[CountryCodes.Slovenia]: [{
|
|
1325
|
-
id: "SI_TAX_NUMBER",
|
|
1326
|
-
name: "taxInformationNumber__SI_Individual",
|
|
1327
|
-
applicableOnlyFor: [LegalEntityTypes.INDIVIDUAL]
|
|
1328
|
-
}, {
|
|
1329
|
-
id: "NATIONAL_IDENTIFICATION_NUMBER",
|
|
1330
|
-
name: "taxInformationNumber__SI_Org",
|
|
1331
|
-
applicableOnlyFor: ["privateCompany"]
|
|
1332
|
-
}],
|
|
1333
|
-
[CountryCodes.Spain]: [
|
|
1334
|
-
{
|
|
1335
|
-
id: "dni",
|
|
1336
|
-
name: "dni",
|
|
1337
|
-
applicableOnlyFor: [LegalEntityTypes.INDIVIDUAL]
|
|
1338
|
-
},
|
|
1339
|
-
{
|
|
1340
|
-
id: "nie",
|
|
1341
|
-
name: "nie",
|
|
1342
|
-
applicableOnlyFor: [LegalEntityTypes.INDIVIDUAL]
|
|
1343
|
-
},
|
|
1344
|
-
{
|
|
1345
|
-
id: "NIF",
|
|
1346
|
-
name: "NIF",
|
|
1347
|
-
applicableOnlyFor: ["privateCompany"]
|
|
1602
|
+
},
|
|
1603
|
+
[CountryCodes.UnitedStates]: {
|
|
1604
|
+
label: "taxInformationNumber__US",
|
|
1605
|
+
validators: mapValidators([validateNotEmptyOnBlur, validatePatternOnBlur(/^\d{9}$/)], CountryCodes.UnitedStates),
|
|
1606
|
+
mask: { mask: makeMask(...numericInputs(2), ...nonInputs(" - "), ...numericInputs(7)) },
|
|
1607
|
+
guidanceText: {
|
|
1608
|
+
key: "validationPleaseEnterAValidEINWithFormat",
|
|
1609
|
+
values: {
|
|
1610
|
+
format: "XX-XXXXXXX",
|
|
1611
|
+
example: "98-7654321"
|
|
1612
|
+
}
|
|
1348
1613
|
}
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
applicableOnlyFor: [LegalEntityTypes.INDIVIDUAL]
|
|
1357
|
-
}],
|
|
1358
|
-
[CountryCodes.UnitedStates]: [{
|
|
1359
|
-
id: "EIN",
|
|
1360
|
-
name: "ein"
|
|
1361
|
-
}]
|
|
1362
|
-
};
|
|
1363
|
-
var getTaxIdNumberOptions = (country, companyType) => {
|
|
1364
|
-
const optionsForCountry = taxIdNumberOptions[country];
|
|
1365
|
-
if (!optionsForCountry) return optionsForCountry;
|
|
1366
|
-
if (isRestrictedEntityType(companyType)) return optionsForCountry.filter((option) => option.applicableOnlyFor?.includes(companyType) ?? true);
|
|
1367
|
-
return optionsForCountry.filter((option) => !isApplicableOnlyForSingleRestrictedType(option));
|
|
1368
|
-
};
|
|
1369
|
-
var getTaxIdNumberSelectorOptions = (country, companyType, exemptedOptionLabel) => {
|
|
1370
|
-
const availableOptions = getTaxIdNumberOptions(country, companyType) ?? [];
|
|
1371
|
-
if (availableOptions.length === 0 || !exemptedOptionLabel) return availableOptions;
|
|
1372
|
-
return [...availableOptions, {
|
|
1373
|
-
id: "exempted",
|
|
1374
|
-
name: exemptedOptionLabel
|
|
1375
|
-
}];
|
|
1614
|
+
},
|
|
1615
|
+
/**
|
|
1616
|
+
* NOT YET SUPPORTED
|
|
1617
|
+
* These are brought over from the old pattern files. We have no idea if they are accurate or not.
|
|
1618
|
+
* See https://en.wikipedia.org/wiki/VAT_identification_number
|
|
1619
|
+
*/
|
|
1620
|
+
[CountryCodes.Philippines]: { validators: mapValidators([validatePatternOnBlur(/^\d{12}$/)], CountryCodes.Philippines) }
|
|
1376
1621
|
};
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1622
|
+
var exemptedFromTaxDefaultFieldConfig = { [CountryCodes.Australia]: { label: "thisBusinessIsntRequiredToHaveAnABN" } };
|
|
1623
|
+
var getTaxInformationPlaceholderText = ({ country, companyType, taxIdNumberType }) => {
|
|
1624
|
+
switch (country) {
|
|
1625
|
+
case CountryCodes.Austria: return "931736581";
|
|
1626
|
+
case CountryCodes.Belgium: switch (companyType) {
|
|
1627
|
+
case "individual": return "99999999999";
|
|
1628
|
+
default: return "0123321123";
|
|
1629
|
+
}
|
|
1630
|
+
case CountryCodes.Croatia: return "94577403194";
|
|
1631
|
+
case CountryCodes.Cyprus: return "00123123T";
|
|
1632
|
+
case CountryCodes.Estonia: return "32708101201";
|
|
1633
|
+
case CountryCodes.Ethiopia: return "32708101201";
|
|
1634
|
+
case CountryCodes.Finland: return "131052-308T";
|
|
1635
|
+
case CountryCodes.France: return "30 23 217 600 053";
|
|
1636
|
+
case CountryCodes.Germany: switch (companyType) {
|
|
1637
|
+
case "individual": return "26954371827";
|
|
1638
|
+
default: return "14310260208";
|
|
1639
|
+
}
|
|
1640
|
+
case CountryCodes.Gibraltar: return "123456";
|
|
1641
|
+
case CountryCodes.Greece: return "244709851";
|
|
1642
|
+
case CountryCodes.Ireland: switch (companyType) {
|
|
1643
|
+
case "individual": return "1234567T";
|
|
1644
|
+
default: return "1497955KA";
|
|
1645
|
+
}
|
|
1646
|
+
case CountryCodes.Italy: return "12345678901";
|
|
1647
|
+
case CountryCodes.IsleOfMan: return "C155673-79";
|
|
1648
|
+
case CountryCodes.Latvia: return "32532963606";
|
|
1649
|
+
case CountryCodes.Lithuania: return "33309240064";
|
|
1650
|
+
case CountryCodes.Luxembourg: switch (companyType) {
|
|
1651
|
+
case "individual": return "1893120105732";
|
|
1652
|
+
default: return "19991201001";
|
|
1653
|
+
}
|
|
1654
|
+
case CountryCodes.Malta: switch (companyType) {
|
|
1655
|
+
case "individual": switch (taxIdNumberType) {
|
|
1656
|
+
case "UNIQUE_TAXPAYER_REFERENCE_NUMBER": return "999999999";
|
|
1657
|
+
default: return "1234567A";
|
|
1658
|
+
}
|
|
1659
|
+
default: return "999999999";
|
|
1660
|
+
}
|
|
1661
|
+
case CountryCodes.Mexico: switch (companyType) {
|
|
1662
|
+
case "soleProprietorship": return "ABCD123456AB9";
|
|
1663
|
+
default: return "ABC123456AB9";
|
|
1664
|
+
}
|
|
1665
|
+
case CountryCodes.Netherlands: switch (companyType) {
|
|
1666
|
+
case "individual": return "999999999";
|
|
1667
|
+
default: return "811786523";
|
|
1668
|
+
}
|
|
1669
|
+
case CountryCodes.Portugal: return "299999998";
|
|
1670
|
+
case CountryCodes.Slovakia: switch (companyType) {
|
|
1671
|
+
case "individual": return "7711167420";
|
|
1672
|
+
default: return "2020123456";
|
|
1673
|
+
}
|
|
1674
|
+
case CountryCodes.Slovenia: switch (companyType) {
|
|
1675
|
+
case "individual": return "15012557";
|
|
1676
|
+
default: return "12345678";
|
|
1677
|
+
}
|
|
1678
|
+
case CountryCodes.UnitedKingdom: return "7172510005";
|
|
1679
|
+
case CountryCodes.Spain: return "99999999L";
|
|
1680
|
+
case CountryCodes.PuertoRico:
|
|
1681
|
+
case CountryCodes.UnitedStates: return "11-0000000";
|
|
1412
1682
|
}
|
|
1413
1683
|
};
|
|
1414
1684
|
//#endregion
|
|
1415
|
-
//#region src/components/Shared/fields/TaxInformationField/TaxIdNumberTypeSelector/
|
|
1685
|
+
//#region src/components/Shared/fields/TaxInformationField/TaxIdNumberTypeSelector/findExistingTaxInformation.ts
|
|
1416
1686
|
/**
|
|
1417
1687
|
* Finds tax information for a specific country from an array of tax information objects.
|
|
1418
1688
|
*
|
|
@@ -1423,22 +1693,6 @@ var inferTaxIdNumberType = (taxInformation, country, companyType) => {
|
|
|
1423
1693
|
function findExistingTaxInformation(taxInformation, country) {
|
|
1424
1694
|
return taxInformation?.find((taxId) => taxId.country === country);
|
|
1425
1695
|
}
|
|
1426
|
-
/**
|
|
1427
|
-
* Determines the default tax ID number type based on existing information and entity type.
|
|
1428
|
-
* This function follows a priority order:
|
|
1429
|
-
* 1. Use the type from existing tax information if available
|
|
1430
|
-
* 2. If there's a tax number but no type, infer the type from the number
|
|
1431
|
-
* 3. Otherwise, use the first available tax ID option for the country and entity type
|
|
1432
|
-
*
|
|
1433
|
-
* @param taxInformation - Array of tax information objects
|
|
1434
|
-
* @param country - Country code to determine the tax ID type for
|
|
1435
|
-
* @param entityType - Type of entity (company type or individual)
|
|
1436
|
-
* @returns The determined tax ID number type or undefined if none can be determined
|
|
1437
|
-
*/
|
|
1438
|
-
function getDefaultTaxIdNumberType(taxInformation, country, entityType) {
|
|
1439
|
-
const existingTaxInformation = findExistingTaxInformation(taxInformation, country);
|
|
1440
|
-
return existingTaxInformation?.type ?? (existingTaxInformation?.number ? inferTaxIdNumberType(taxInformation, country, entityType) : getTaxIdNumberOptions(country, entityType)?.[0]?.id);
|
|
1441
|
-
}
|
|
1442
1696
|
//#endregion
|
|
1443
1697
|
//#region src/components/Shared/fields/TaxInformationField/TaxIdNumberTypeSelector/TaxIdNumberTypeSelector.tsx
|
|
1444
1698
|
function TaxIdNumberTypeSelector({ country, companyType, selected, setSelected, exemptedOptionLabel, isUsSoleProp, errorMessage }) {
|
|
@@ -1498,466 +1752,4 @@ function removeTaxInfoForCountry(taxInformation, country) {
|
|
|
1498
1752
|
return taxInformation?.filter((t) => t.country !== country);
|
|
1499
1753
|
}
|
|
1500
1754
|
//#endregion
|
|
1501
|
-
|
|
1502
|
-
var TAX_INFORMATION_FIELD = [
|
|
1503
|
-
"taxInformation",
|
|
1504
|
-
"exemptedFromTax",
|
|
1505
|
-
"isUen"
|
|
1506
|
-
];
|
|
1507
|
-
/**
|
|
1508
|
-
* Renders a dynamic form field for tax identification information, adapting its display
|
|
1509
|
-
* and behavior based on country and company type. It supports various tax ID input
|
|
1510
|
-
* scenarios, including two specialized handling for US Sole Proprietorships (where SSN option acts as exemption selection)
|
|
1511
|
-
* and Singapore Companies (where registration number (UEN) can be used for tax ID).
|
|
1512
|
-
*/
|
|
1513
|
-
function TaxInformationField({ data, valid, errors, placeholder, readonly, optional, shouldValidate, handleChangeFor, country, canExempt, registrationNumber, entityType, defaultData }) {
|
|
1514
|
-
const { isFeatureEnabled } = useToggleContext();
|
|
1515
|
-
const { t } = useTranslation("common");
|
|
1516
|
-
const { accountHolder } = useAccountHolder();
|
|
1517
|
-
const currentCountryTaxInformation = useMemo(() => data?.taxInformation?.find((taxInfo) => taxInfo.country === country) ?? (!data.exemptedFromTax ? defaultData?.find((taxInfo) => taxInfo.country === country) : void 0), [
|
|
1518
|
-
data?.taxInformation,
|
|
1519
|
-
data.exemptedFromTax,
|
|
1520
|
-
defaultData,
|
|
1521
|
-
country
|
|
1522
|
-
]);
|
|
1523
|
-
const isUsSoleProp = country === "US" && entityType === "soleProprietorship";
|
|
1524
|
-
const options = getTaxIdNumberOptions(country, entityType);
|
|
1525
|
-
const showTaxIdExemptedOptions = canExempt && (options?.length ?? 0) > 1 || isUsSoleProp;
|
|
1526
|
-
const canSaveAbsentState = isFeatureEnabled("EnableRegistrationAndTaxAbsentStatesV4") && COUNTRIES_WITH_POSSIBLE_TRUSTEE_TAXID_ABSENT_V4.includes(country) && accountHolder === "aTrust";
|
|
1527
|
-
const { label: resolvedExemptionLabel } = resolveFieldMetadata(exemptedFromTaxDefaultFieldConfig[country], {}, exemptedFromTaxDefaultFieldMetadata);
|
|
1528
|
-
const exemptedFromTaxLabel = t(($) => $[resolvedExemptionLabel ?? "iDontHaveATaxId"]);
|
|
1529
|
-
const exemptionLabel = isUsSoleProp ? t(($) => $["socialSecurityNumber"]) : exemptedFromTaxLabel;
|
|
1530
|
-
const selectorOptions = getTaxIdNumberSelectorOptions(country, entityType, showTaxIdExemptedOptions ? exemptionLabel : void 0);
|
|
1531
|
-
const shouldRenderInput = isUsSoleProp ? currentCountryTaxInformation?.type === "EIN" : !data.isUen;
|
|
1532
|
-
const taxIdNumberType = useMemo(() => {
|
|
1533
|
-
if (data.exemptedFromTax) return "exempted";
|
|
1534
|
-
if (currentCountryTaxInformation?.type) return currentCountryTaxInformation.type;
|
|
1535
|
-
if (isUsSoleProp) return void 0;
|
|
1536
|
-
return getDefaultTaxIdNumberType(data.taxInformation, country, entityType);
|
|
1537
|
-
}, [
|
|
1538
|
-
country,
|
|
1539
|
-
currentCountryTaxInformation?.type,
|
|
1540
|
-
data.exemptedFromTax,
|
|
1541
|
-
data.taxInformation,
|
|
1542
|
-
entityType,
|
|
1543
|
-
isUsSoleProp
|
|
1544
|
-
]);
|
|
1545
|
-
const shouldDisplayErrorOnSelector = selectorOptions.length > 1 && taxIdNumberType === void 0;
|
|
1546
|
-
const selectorError = shouldDisplayErrorOnSelector ? errors.taxInformation : void 0;
|
|
1547
|
-
const inputError = shouldDisplayErrorOnSelector ? void 0 : errors.taxInformation;
|
|
1548
|
-
const { label, mask, guidanceText } = resolveFieldMetadata(taxInformationDefaultFieldConfig[country], {
|
|
1549
|
-
taxIdNumberType: taxIdNumberType === "exempted" ? void 0 : taxIdNumberType,
|
|
1550
|
-
companyType: entityType
|
|
1551
|
-
}, taxInformationDefaultFieldMetadata);
|
|
1552
|
-
const updateTaxInfo = useCallback((mode, newEntry) => {
|
|
1553
|
-
const entry = canSaveAbsentState ? {
|
|
1554
|
-
...newEntry,
|
|
1555
|
-
numberAbsent: newEntry.numberAbsent ?? false
|
|
1556
|
-
} : newEntry;
|
|
1557
|
-
handleChangeFor("taxInformation", mode)(upsertTaxInfoForCountry(data.taxInformation, country, entry));
|
|
1558
|
-
}, [
|
|
1559
|
-
canSaveAbsentState,
|
|
1560
|
-
country,
|
|
1561
|
-
data.taxInformation,
|
|
1562
|
-
handleChangeFor
|
|
1563
|
-
]);
|
|
1564
|
-
const updateTaxType = useCallback((type, mode) => {
|
|
1565
|
-
updateTaxInfo(mode, {
|
|
1566
|
-
country,
|
|
1567
|
-
number: currentCountryTaxInformation?.number,
|
|
1568
|
-
type
|
|
1569
|
-
});
|
|
1570
|
-
}, [
|
|
1571
|
-
country,
|
|
1572
|
-
currentCountryTaxInformation?.number,
|
|
1573
|
-
updateTaxInfo
|
|
1574
|
-
]);
|
|
1575
|
-
const resetToDefaultData = useCallback(() => {
|
|
1576
|
-
if (defaultData !== void 0) handleChangeFor("taxInformation", "input")(defaultData);
|
|
1577
|
-
}, [defaultData, handleChangeFor]);
|
|
1578
|
-
const removeCountryTaxInfo = useCallback(() => {
|
|
1579
|
-
handleChangeFor("taxInformation", "input")(removeTaxInfoForCountry(data.taxInformation, country));
|
|
1580
|
-
}, [
|
|
1581
|
-
country,
|
|
1582
|
-
data.taxInformation,
|
|
1583
|
-
handleChangeFor
|
|
1584
|
-
]);
|
|
1585
|
-
const setUenAsTaxId = useCallback((uen) => {
|
|
1586
|
-
updateTaxInfo("blur", {
|
|
1587
|
-
country,
|
|
1588
|
-
number: uen ?? "",
|
|
1589
|
-
type: "UEN"
|
|
1590
|
-
});
|
|
1591
|
-
}, [country, updateTaxInfo]);
|
|
1592
|
-
const addTaxAbsentStatus = useCallback((exempted) => {
|
|
1593
|
-
handleChangeFor("taxInformation", "input")(upsertTaxInfoForCountry(data.taxInformation, country, {
|
|
1594
|
-
country,
|
|
1595
|
-
numberAbsent: exempted
|
|
1596
|
-
}));
|
|
1597
|
-
}, [
|
|
1598
|
-
country,
|
|
1599
|
-
data.taxInformation,
|
|
1600
|
-
handleChangeFor
|
|
1601
|
-
]);
|
|
1602
|
-
const handleTaxNumberChange = useCallback((e, mode) => {
|
|
1603
|
-
updateTaxInfo(mode, {
|
|
1604
|
-
country,
|
|
1605
|
-
number: e ? typeof e === "string" ? e : e.currentTarget.value : void 0,
|
|
1606
|
-
type: currentCountryTaxInformation?.type ?? (taxIdNumberType !== "exempted" ? taxIdNumberType : void 0)
|
|
1607
|
-
});
|
|
1608
|
-
}, [
|
|
1609
|
-
country,
|
|
1610
|
-
currentCountryTaxInformation?.type,
|
|
1611
|
-
taxIdNumberType,
|
|
1612
|
-
updateTaxInfo
|
|
1613
|
-
]);
|
|
1614
|
-
const handleTaxIdNumberTypeChange = useCallback((taxIdType) => {
|
|
1615
|
-
if (!canExempt && taxIdType === "exempted") throw Error(`${country} does not allow tax exemptions`);
|
|
1616
|
-
if (taxIdType === "exempted") {
|
|
1617
|
-
handleChangeFor("exemptedFromTax")(true);
|
|
1618
|
-
updateTaxType(void 0, "input");
|
|
1619
|
-
return canSaveAbsentState ? addTaxAbsentStatus(true) : removeCountryTaxInfo();
|
|
1620
|
-
}
|
|
1621
|
-
handleChangeFor("exemptedFromTax")(false);
|
|
1622
|
-
if (country === "SG") if (taxIdType === "UEN") {
|
|
1623
|
-
handleChangeFor("isUen")(true);
|
|
1624
|
-
setUenAsTaxId(registrationNumber);
|
|
1625
|
-
} else {
|
|
1626
|
-
handleChangeFor("isUen")(false);
|
|
1627
|
-
removeCountryTaxInfo();
|
|
1628
|
-
}
|
|
1629
|
-
updateTaxType(taxIdType, "input");
|
|
1630
|
-
}, [
|
|
1631
|
-
addTaxAbsentStatus,
|
|
1632
|
-
canExempt,
|
|
1633
|
-
canSaveAbsentState,
|
|
1634
|
-
country,
|
|
1635
|
-
handleChangeFor,
|
|
1636
|
-
updateTaxType,
|
|
1637
|
-
registrationNumber,
|
|
1638
|
-
removeCountryTaxInfo,
|
|
1639
|
-
setUenAsTaxId
|
|
1640
|
-
]);
|
|
1641
|
-
const handleExemptedFromTaxChange = useCallback((exempted) => {
|
|
1642
|
-
handleChangeFor("exemptedFromTax")(exempted);
|
|
1643
|
-
if (canSaveAbsentState) addTaxAbsentStatus(exempted);
|
|
1644
|
-
else removeCountryTaxInfo();
|
|
1645
|
-
}, [
|
|
1646
|
-
addTaxAbsentStatus,
|
|
1647
|
-
canSaveAbsentState,
|
|
1648
|
-
handleChangeFor,
|
|
1649
|
-
removeCountryTaxInfo
|
|
1650
|
-
]);
|
|
1651
|
-
const prevCountryRef = useRef(country);
|
|
1652
|
-
useEffect(() => {
|
|
1653
|
-
if (!country || prevCountryRef.current === country) return;
|
|
1654
|
-
prevCountryRef.current = country;
|
|
1655
|
-
const hasSavedTaxId = defaultData?.find((taxId) => taxId.country === country);
|
|
1656
|
-
if (currentCountryTaxInformation && !hasSavedTaxId) return;
|
|
1657
|
-
if (entityType === "soleProprietorship") return;
|
|
1658
|
-
resetToDefaultData();
|
|
1659
|
-
}, [country]);
|
|
1660
|
-
useEffect(() => {
|
|
1661
|
-
if (country === "SG" && data.isUen && registrationNumber && registrationNumber !== currentCountryTaxInformation?.number) setUenAsTaxId(registrationNumber);
|
|
1662
|
-
}, [
|
|
1663
|
-
registrationNumber,
|
|
1664
|
-
currentCountryTaxInformation?.number,
|
|
1665
|
-
data.isUen,
|
|
1666
|
-
country,
|
|
1667
|
-
setUenAsTaxId
|
|
1668
|
-
]);
|
|
1669
|
-
const isInitialized = useRef(false);
|
|
1670
|
-
if (!isInitialized.current && country === "SG" && !defaultData?.find((taxInfo) => taxInfo.country === country)?.number) {
|
|
1671
|
-
isInitialized.current = true;
|
|
1672
|
-
handleChangeFor("isUen")(false);
|
|
1673
|
-
}
|
|
1674
|
-
return /* @__PURE__ */ jsxs("div", { children: [
|
|
1675
|
-
/* @__PURE__ */ jsx(TaxIdNumberTypeSelector, {
|
|
1676
|
-
country,
|
|
1677
|
-
companyType: entityType,
|
|
1678
|
-
setSelected: handleTaxIdNumberTypeChange,
|
|
1679
|
-
selected: taxIdNumberType,
|
|
1680
|
-
exemptedOptionLabel: showTaxIdExemptedOptions ? exemptionLabel : void 0,
|
|
1681
|
-
isUsSoleProp,
|
|
1682
|
-
errorMessage: selectorError
|
|
1683
|
-
}),
|
|
1684
|
-
shouldRenderInput && /* @__PURE__ */ jsx(MaskedInput, {
|
|
1685
|
-
type: "text",
|
|
1686
|
-
"aria-required": true,
|
|
1687
|
-
"aria-invalid": !valid.taxInformation,
|
|
1688
|
-
name: "taxInformation",
|
|
1689
|
-
label: t(($) => $[label ?? "taxId"]),
|
|
1690
|
-
formatGuidance: translateTranslatable(t, guidanceText),
|
|
1691
|
-
value: currentCountryTaxInformation?.number ?? "",
|
|
1692
|
-
errorMessage: inputError,
|
|
1693
|
-
placeholder,
|
|
1694
|
-
isValid: Boolean(valid.taxInformation) && !!currentCountryTaxInformation,
|
|
1695
|
-
onInput: (e) => handleTaxNumberChange(e, "input"),
|
|
1696
|
-
onBlur: (e) => handleTaxNumberChange(e, "blur"),
|
|
1697
|
-
disabled: data.exemptedFromTax || data.isUen,
|
|
1698
|
-
readonly,
|
|
1699
|
-
optional,
|
|
1700
|
-
shouldValidate,
|
|
1701
|
-
...mask
|
|
1702
|
-
}),
|
|
1703
|
-
canExempt && !showTaxIdExemptedOptions && /* @__PURE__ */ jsx(Field, {
|
|
1704
|
-
name: "exemptedFromTax",
|
|
1705
|
-
children: (childProps) => /* @__PURE__ */ jsx(Checkbox, {
|
|
1706
|
-
...childProps,
|
|
1707
|
-
"aria-required": false,
|
|
1708
|
-
"aria-invalid": false,
|
|
1709
|
-
name: "exemptedFromTax",
|
|
1710
|
-
label: exemptedFromTaxLabel,
|
|
1711
|
-
value: "exemptedFromTax",
|
|
1712
|
-
checked: Boolean(data.exemptedFromTax),
|
|
1713
|
-
onChange: handleExemptedFromTaxChange
|
|
1714
|
-
})
|
|
1715
|
-
})
|
|
1716
|
-
] });
|
|
1717
|
-
}
|
|
1718
|
-
var Tile_module_default = {
|
|
1719
|
-
"tile-container": "_tile-container_685mc_1",
|
|
1720
|
-
tileContainer: "_tile-container_685mc_1",
|
|
1721
|
-
tile: "_tile_685mc_1",
|
|
1722
|
-
"tile-icon": "_tile-icon_685mc_18",
|
|
1723
|
-
tileIcon: "_tile-icon_685mc_18",
|
|
1724
|
-
"tile-title": "_tile-title_685mc_35",
|
|
1725
|
-
tileTitle: "_tile-title_685mc_35",
|
|
1726
|
-
"tile-checkbox": "_tile-checkbox_685mc_49",
|
|
1727
|
-
tileCheckbox: "_tile-checkbox_685mc_49",
|
|
1728
|
-
"tile-container-horizontal": "_tile-container-horizontal_685mc_89",
|
|
1729
|
-
tileContainerHorizontal: "_tile-container-horizontal_685mc_89",
|
|
1730
|
-
"tile-label": "_tile-label_685mc_100",
|
|
1731
|
-
tileLabel: "_tile-label_685mc_100"
|
|
1732
|
-
};
|
|
1733
|
-
//#endregion
|
|
1734
|
-
//#region src/components/ui/atoms/Tile/Tile.tsx
|
|
1735
|
-
function Tile({ checked, disabled, icon, id, inputType = "checkbox", isHorizontal, label, name, className, onChange, subTitle, value }) {
|
|
1736
|
-
const inputNode = useRef(null);
|
|
1737
|
-
const uniqId = useId("tile");
|
|
1738
|
-
const idUse = id ?? uniqId;
|
|
1739
|
-
const handleChange = (e) => {
|
|
1740
|
-
if (disabled) return;
|
|
1741
|
-
onChange?.(e.currentTarget.checked);
|
|
1742
|
-
inputNode.current?.focus();
|
|
1743
|
-
};
|
|
1744
|
-
const handleClick = (e) => {
|
|
1745
|
-
if (disabled || inputType === "radio") return;
|
|
1746
|
-
if (checked) {
|
|
1747
|
-
e.preventDefault();
|
|
1748
|
-
onChange?.(false);
|
|
1749
|
-
inputNode.current?.focus();
|
|
1750
|
-
}
|
|
1751
|
-
};
|
|
1752
|
-
const handleOnKeyDown = (e) => {
|
|
1753
|
-
if (e.key === KEYBOARD_KEYS.enter || e.key === KEYBOARD_KEYS.space) {
|
|
1754
|
-
e.preventDefault();
|
|
1755
|
-
if (disabled) return;
|
|
1756
|
-
if (inputType === "radio" && !checked) {
|
|
1757
|
-
onChange?.(true);
|
|
1758
|
-
inputNode.current?.focus();
|
|
1759
|
-
} else if (inputType === "checkbox") {
|
|
1760
|
-
onChange?.(!checked);
|
|
1761
|
-
inputNode.current?.focus();
|
|
1762
|
-
}
|
|
1763
|
-
}
|
|
1764
|
-
};
|
|
1765
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
1766
|
-
className: cx(Tile_module_default.tileContainer, className, { [Tile_module_default.tileContainerHorizontal]: isHorizontal }),
|
|
1767
|
-
children: [/* @__PURE__ */ jsx("input", {
|
|
1768
|
-
ref: inputNode,
|
|
1769
|
-
className: Tile_module_default.tileCheckbox,
|
|
1770
|
-
disabled,
|
|
1771
|
-
checked: !!checked,
|
|
1772
|
-
value,
|
|
1773
|
-
id: idUse,
|
|
1774
|
-
name,
|
|
1775
|
-
type: inputType,
|
|
1776
|
-
onKeyDown: handleOnKeyDown,
|
|
1777
|
-
onChange: handleChange,
|
|
1778
|
-
onClick: handleClick,
|
|
1779
|
-
"aria-disabled": disabled,
|
|
1780
|
-
tabIndex: disabled ? -1 : 0
|
|
1781
|
-
}), /* @__PURE__ */ jsxs("label", {
|
|
1782
|
-
htmlFor: idUse,
|
|
1783
|
-
className: Tile_module_default.tile,
|
|
1784
|
-
children: [icon && /* @__PURE__ */ jsx("div", {
|
|
1785
|
-
className: Tile_module_default.tileIcon,
|
|
1786
|
-
children: /* @__PURE__ */ jsx(Icon, {
|
|
1787
|
-
name: icon,
|
|
1788
|
-
testId: icon
|
|
1789
|
-
})
|
|
1790
|
-
}), /* @__PURE__ */ jsxs("div", {
|
|
1791
|
-
className: Tile_module_default.tileLabel,
|
|
1792
|
-
children: [/* @__PURE__ */ jsx(Typography, {
|
|
1793
|
-
el: "h4",
|
|
1794
|
-
variant: "body-strongest",
|
|
1795
|
-
className: Tile_module_default.tileTitle,
|
|
1796
|
-
children: label
|
|
1797
|
-
}), subTitle && /* @__PURE__ */ jsx(Typography, {
|
|
1798
|
-
el: "p",
|
|
1799
|
-
variant: "body",
|
|
1800
|
-
children: subTitle
|
|
1801
|
-
})]
|
|
1802
|
-
})]
|
|
1803
|
-
})]
|
|
1804
|
-
});
|
|
1805
|
-
}
|
|
1806
|
-
var TileGroup_module_default = {
|
|
1807
|
-
"tile-group": "_tile-group_6rtof_1",
|
|
1808
|
-
tileGroup: "_tile-group_6rtof_1",
|
|
1809
|
-
"tile-container": "_tile-container_6rtof_8",
|
|
1810
|
-
tileContainer: "_tile-container_6rtof_8",
|
|
1811
|
-
"tile-group-error": "_tile-group-error_6rtof_14",
|
|
1812
|
-
tileGroupError: "_tile-group-error_6rtof_14",
|
|
1813
|
-
"tile-group-error-icon": "_tile-group-error-icon_6rtof_27",
|
|
1814
|
-
tileGroupErrorIcon: "_tile-group-error-icon_6rtof_27",
|
|
1815
|
-
"tile-group-horizontal": "_tile-group-horizontal_6rtof_32",
|
|
1816
|
-
tileGroupHorizontal: "_tile-group-horizontal_6rtof_32"
|
|
1817
|
-
};
|
|
1818
|
-
//#endregion
|
|
1819
|
-
//#region src/components/ui/atoms/TileGroup/TileGroup.tsx
|
|
1820
|
-
function TileGroup({ tiles, selected, allowMultiple = false, isHorizontal, name: nameProp, maxSelected = Infinity, errorMessage, onChange = noop, enableTracking = false, trackingFieldName }) {
|
|
1821
|
-
const uniqName = useId("tile");
|
|
1822
|
-
const name = nameProp ?? uniqName;
|
|
1823
|
-
const finalName = allowMultiple ? `${name}[]` : name;
|
|
1824
|
-
const inputType = allowMultiple ? "checkbox" : "radio";
|
|
1825
|
-
const userEvents = useAnalyticsContext();
|
|
1826
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [!!errorMessage?.message && /* @__PURE__ */ jsxs("div", {
|
|
1827
|
-
"aria-live": "polite",
|
|
1828
|
-
className: TileGroup_module_default.tileGroupError,
|
|
1829
|
-
children: [/* @__PURE__ */ jsx("span", {
|
|
1830
|
-
className: TileGroup_module_default.tileGroupErrorIcon,
|
|
1831
|
-
children: /* @__PURE__ */ jsx(Icon, { name: "field-error" })
|
|
1832
|
-
}), errorMessage.message]
|
|
1833
|
-
}), /* @__PURE__ */ jsx("div", {
|
|
1834
|
-
className: cx(TileGroup_module_default.tileGroup, { [TileGroup_module_default.tileGroupHorizontal]: isHorizontal }),
|
|
1835
|
-
children: tiles.map((tile) => {
|
|
1836
|
-
const { value, id, icon, subTitle, label, disabled } = tile;
|
|
1837
|
-
const handleChange = (checked) => {
|
|
1838
|
-
const newSelected = updateSelectedChoices(tile, checked, selected, allowMultiple);
|
|
1839
|
-
if (enableTracking) userEvents.addFieldEvent("Interacted with form field", {
|
|
1840
|
-
actionType: "input",
|
|
1841
|
-
field: trackingFieldName ?? name,
|
|
1842
|
-
returnValue: typeof newSelected === "string" ? newSelected : void 0
|
|
1843
|
-
});
|
|
1844
|
-
onChange(newSelected);
|
|
1845
|
-
};
|
|
1846
|
-
return /* @__PURE__ */ jsx(Tile, {
|
|
1847
|
-
name: finalName,
|
|
1848
|
-
className: TileGroup_module_default.tileContainer,
|
|
1849
|
-
inputType,
|
|
1850
|
-
isHorizontal,
|
|
1851
|
-
checked: choiceIsSelected(tile, selected, allowMultiple),
|
|
1852
|
-
label,
|
|
1853
|
-
id,
|
|
1854
|
-
subTitle,
|
|
1855
|
-
icon,
|
|
1856
|
-
disabled: !disabled && allowMultiple && selected.length >= maxSelected ? !choiceIsSelected(tile, selected, allowMultiple) : disabled,
|
|
1857
|
-
value,
|
|
1858
|
-
onChange: handleChange
|
|
1859
|
-
}, id);
|
|
1860
|
-
})
|
|
1861
|
-
})] });
|
|
1862
|
-
}
|
|
1863
|
-
function choiceIsSelected({ value }, selected, allowMultiple) {
|
|
1864
|
-
if (!allowMultiple) return value === selected;
|
|
1865
|
-
return selected.includes(value);
|
|
1866
|
-
}
|
|
1867
|
-
function updateSelectedChoices({ value }, checked, selected, allowMultiple) {
|
|
1868
|
-
if (!allowMultiple) return checked ? value : "";
|
|
1869
|
-
if (Array.isArray(selected)) {
|
|
1870
|
-
if (checked) return allowMultiple ? [...selected, value] : [value];
|
|
1871
|
-
return selected.filter((selectedChoice) => selectedChoice !== value);
|
|
1872
|
-
}
|
|
1873
|
-
return [];
|
|
1874
|
-
}
|
|
1875
|
-
//#endregion
|
|
1876
|
-
//#region src/components/Individual/forms/IdNowVerificationModal/isIdNowModalOpen.ts
|
|
1877
|
-
var showIdNowModal = signal(false);
|
|
1878
|
-
var idNowModalChildEntityId = signal();
|
|
1879
|
-
var idNowPostSubmit = signal(false);
|
|
1880
|
-
var shouldShowIdNowModal = computed(() => {
|
|
1881
|
-
const idNowModalChildEntityIdValue = !!idNowModalChildEntityId.value;
|
|
1882
|
-
return showIdNowModal.value && idNowModalChildEntityIdValue;
|
|
1883
|
-
});
|
|
1884
|
-
//#endregion
|
|
1885
|
-
//#region src/components/Individual/helpers/bafinUtils.ts
|
|
1886
|
-
/**
|
|
1887
|
-
* Checks whether the legal entity has both required data points for IDnow verification:
|
|
1888
|
-
* birth city (placeOfBirth) and nationality.
|
|
1889
|
-
*/
|
|
1890
|
-
var hasRequiredDataForIdNow = (legalEntity) => Boolean(legalEntity.individual?.birthData?.placeOfBirth && legalEntity.individual?.nationality);
|
|
1891
|
-
/**
|
|
1892
|
-
* For an IDnow-qualified BAFIN signatory, returns an object describing which of the required
|
|
1893
|
-
* data points (placeOfBirth, nationality) are still missing, or `{ missingSelfie: true }` when
|
|
1894
|
-
* both are present but the selfie verification is still needed, or `null` when no action is needed.
|
|
1895
|
-
*
|
|
1896
|
-
* Returns `null` when any of the following conditions are true:
|
|
1897
|
-
* - The entity is not a signatory, or the L_BAFIN scenario is not active
|
|
1898
|
-
* - The `2_215` (live-selfie) remediation code is absent from problems
|
|
1899
|
-
*/
|
|
1900
|
-
var getIdNowMissingDataPoints = (problems, legalEntity, scenarios, roles) => {
|
|
1901
|
-
if (!roles.includes(DecisionMakerTypes.SIGNATORY) || !scenarios?.includes(Scenarios.L_BAFIN)) return null;
|
|
1902
|
-
if (!problems) return null;
|
|
1903
|
-
if (!problems.missingData?.some((item) => item.remediatingActions?.some((action) => action.code === "2_215"))) return null;
|
|
1904
|
-
const missingPlaceOfBirth = !legalEntity.individual?.birthData?.placeOfBirth;
|
|
1905
|
-
const missingNationality = !legalEntity.individual?.nationality;
|
|
1906
|
-
if (!missingPlaceOfBirth && !missingNationality) return { missingSelfie: true };
|
|
1907
|
-
return {
|
|
1908
|
-
missingPlaceOfBirth,
|
|
1909
|
-
missingNationality
|
|
1910
|
-
};
|
|
1911
|
-
};
|
|
1912
|
-
/**
|
|
1913
|
-
* For the BAFIN signatory flow, certain ID verification errors and remediation actions are not applicable.
|
|
1914
|
-
* This utility function takes a problems object and returns a new, deeply cloned object with all
|
|
1915
|
-
* ID verification-related issues removed.
|
|
1916
|
-
*
|
|
1917
|
-
* Specifically, it removes:
|
|
1918
|
-
* - 'missingData' entries related to ID document upload ('1_301').
|
|
1919
|
-
* - The '1_301' remediation action from `remediationActions`.
|
|
1920
|
-
* - The entire `idVerificationMethod` object from `verificationErrors`.
|
|
1921
|
-
* - Any nested sub-errors with code '1_301' from `basicDetails` and `additionalPersonalDetails`.
|
|
1922
|
-
*
|
|
1923
|
-
* @param problems - The original entity problems object.
|
|
1924
|
-
* @returns A new `EntityProblems` object with BAFIN-specific modifications.
|
|
1925
|
-
*/
|
|
1926
|
-
var removeIdVerificationProblemsForBafinSignatory = (problems, decisionMakerLe) => {
|
|
1927
|
-
const newProblems = structuredClone(problems);
|
|
1928
|
-
if (newProblems.missingData?.some((item) => item.remediatingActions?.some((action) => action.code === "1_301" || action.code === "2_215"))) {
|
|
1929
|
-
if (hasRequiredDataForIdNow(decisionMakerLe)) setTimeout(() => {
|
|
1930
|
-
idNowModalChildEntityId.value = decisionMakerLe;
|
|
1931
|
-
showIdNowModal.value = true;
|
|
1932
|
-
}, 100);
|
|
1933
|
-
}
|
|
1934
|
-
if (Array.isArray(newProblems.missingData)) newProblems.missingData = newProblems.missingData.filter((item) => !item.remediatingActions?.some((action) => action.code === "1_301" || action.code === "2_215"));
|
|
1935
|
-
if (newProblems.remediationActions?.["1_301"]) delete newProblems.remediationActions["1_301"];
|
|
1936
|
-
if (newProblems.remediationActions?.["2_215"]) delete newProblems.remediationActions["2_215"];
|
|
1937
|
-
if (newProblems.verificationErrors?.idVerificationMethod) delete newProblems.verificationErrors.idVerificationMethod;
|
|
1938
|
-
["basicDetails", "additionalPersonalDetails"].forEach((formName) => {
|
|
1939
|
-
const subErrors = newProblems.verificationErrors?.[formName]?.["1_30"]?.["1_3000"];
|
|
1940
|
-
if (newProblems.verificationErrors?.[formName]?.["1_30"] && Array.isArray(subErrors)) newProblems.verificationErrors[formName]["1_30"]["1_3000"] = subErrors.filter((error) => error.code !== "1_301");
|
|
1941
|
-
});
|
|
1942
|
-
return newProblems;
|
|
1943
|
-
};
|
|
1944
|
-
/**
|
|
1945
|
-
* Type guard to check if the data object is a LegalEntityAssociation.
|
|
1946
|
-
*/
|
|
1947
|
-
var isLegalEntityAssociation = (data) => "legalEntityId" in data;
|
|
1948
|
-
/**
|
|
1949
|
-
* Checks if the current context matches the specific flow for a BAFIN signatory.
|
|
1950
|
-
* This is true when the task is for a decision maker, their role is 'signatory',
|
|
1951
|
-
* and the BAFIN scenario is active.
|
|
1952
|
-
*
|
|
1953
|
-
* @param params - The parameters for the check.
|
|
1954
|
-
* @returns `true` if the conditions for the BAFIN signatory flow are met.
|
|
1955
|
-
*/
|
|
1956
|
-
var isBafinSignatoryFlow = ({ taskType, data, scenarios }) => {
|
|
1957
|
-
if (!data || !scenarios) return false;
|
|
1958
|
-
const isSignatory = isLegalEntityAssociation(data) ? data.type === DecisionMakerTypes.SIGNATORY : data.basicDetails?.role?.includes(DecisionMakerTypes.SIGNATORY);
|
|
1959
|
-
if (taskType === TaskTypes.DECISION_MAKER && isSignatory) return scenarios.includes(Scenarios.L_BAFIN);
|
|
1960
|
-
return false;
|
|
1961
|
-
};
|
|
1962
|
-
//#endregion
|
|
1963
|
-
export { TAX_ID_REQUIRED_COUNTRIES_ORGANIZATION as A, taxInformationDefaultFieldConfig as B, COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER as C, COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_SOLE_PROPS as D, COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_COMPANIES as E, mapApiScriptLocalizationToSchemaFields as F, toFullWidth as H, mapSchemaFieldsToApiScriptLocalization as I, exemptedFromTaxDefaultFieldConfig as L, mapJapaneseLegalNamesToLocalization as M, mapLocalizationToJapaneseLegalNames as N, COUNTRIES_WITH_POSSIBLE_TRUSTEE_TAXID_ABSENT_V4 as O, isEmpty as P, exemptedFromTaxDefaultFieldMetadata as R, COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT as S, COUNTRIES_WITH_POSSIBLE_REGISTRATION_EXEMPTIONS_FOR_SOLE_PROPS as T, isJapanLocalizationEnabled as U, taxInformationDefaultFieldMetadata as V, taxIdNumberOptions as _, idNowPostSubmit as a, COUNTRIES_THAT_DONT_REQUIRE_SOLE_PROP_REGISTRATION as b, TileGroup as c, removeTaxInfoForCountry as d, upsertTaxInfoForCountry as f, getValidCompanyTypesForTaxIdNumberType as g, getTaxIdNumberOptions as h, idNowModalChildEntityId as i, isUsingCompanySearch as j, REGISTRATION_NUMBER_EXEMPTION_RULES as k, TAX_INFORMATION_FIELD as l, getDefaultTaxIdNumberType as m, isBafinSignatoryFlow as n, shouldShowIdNowModal as o, TaxIdNumberTypeSelector as p, removeIdVerificationProblemsForBafinSignatory as r, showIdNowModal as s, getIdNowMissingDataPoints as t, TaxInformationField as u, COUNTRIES_REQUIRING_FINANCIAL_INFORMATION as v, COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER_SOLE_PROPS as w, COUNTRIES_THAT_DO_NOT_USE_TAX_ID_FOR_SOLE_PROP as x, COUNTRIES_THAT_DONT_REQUIRE_COMPANY_REGISTRATION as y, getTaxInformationPlaceholderText as z };
|
|
1755
|
+
export { taxIdNumberOptions as A, isRegistrationNumberAbsentStateV4Scenario as C, getTaxIdNumberOptions as D, mapLocalizationToJapaneseLegalNames as E, getTaxIdNumberSelectorOptions as O, isRegistrationExemptionAllowed as S, mapJapaneseLegalNamesToLocalization as T, COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_COMPANIES as _, exemptedFromTaxDefaultFieldConfig as a, REGISTRATION_NUMBER_EXEMPTION_RULES as b, taxInformationDefaultFieldConfig as c, COUNTRIES_THAT_DONT_REQUIRE_COMPANY_REGISTRATION as d, COUNTRIES_THAT_DONT_REQUIRE_SOLE_PROP_REGISTRATION as f, COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER_SOLE_PROPS as g, COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER as h, findExistingTaxInformation as i, getValidCompanyTypesForTaxIdNumberType as k, taxInformationDefaultFieldMetadata as l, COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT as m, upsertTaxInfoForCountry as n, exemptedFromTaxDefaultFieldMetadata as o, COUNTRIES_THAT_DO_NOT_USE_TAX_ID_FOR_SOLE_PROP as p, TaxIdNumberTypeSelector as r, getTaxInformationPlaceholderText as s, removeTaxInfoForCountry as t, COUNTRIES_REQUIRING_FINANCIAL_INFORMATION as u, COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_SOLE_PROPS as v, isUsingCompanySearch as w, TAX_ID_REQUIRED_COUNTRIES_ORGANIZATION as x, COUNTRIES_WITH_POSSIBLE_TRUSTEE_TAXID_ABSENT_V4 as y };
|