@adyen/kyc-components 4.25.0-beta.2 → 4.26.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{4-people-DKuivE0m.js → 4-people-CAxQpi_3.js} +2 -2
- package/dist/{AcceptTermsOfServiceWorkflow-BKWCrZdZ.js → AcceptTermsOfServiceWorkflow-eOcHITwQ.js} +4 -4
- package/dist/{Accordion-D_DOaWj2.js → Accordion-BAdwrgCR.js} +4 -24
- package/dist/{AccountSetupRejected-BtcxtVKO.js → AccountSetupRejected-Jii0yaLC.js} +3 -4
- package/dist/{NodeRenderer-Z10yF5MV.js → AdaptiveWorkflow-B6SIOcbU.js} +87 -34
- package/dist/{AdaptiveWorkflowComponent-C4Q6NVtv.js → AdaptiveWorkflowComponent-we5_UgiI.js} +32 -33
- package/dist/{AddressFields-CFG2_P0x.js → AddressFields-Qq_8lUYz.js} +21 -27
- package/dist/{Avatar-k5lNd5KG.js → Avatar-C2zeqSSB.js} +10 -8
- package/dist/{BusinessFinancingDropin-BjTnxk__.js → BusinessFinancingDropin-gMa--znJ.js} +61 -71
- package/dist/{BusinessFinancingPage-C4dAslMp.js → BusinessFinancingPage-BIdRvI7h.js} +7 -7
- package/dist/{BusinessRegistrationNumberField-Dz1uGvRQ.js → BusinessRegistrationNumberField-Vr3KBWJD.js} +7 -8
- package/dist/{BusinessRegistrationNumberFieldGroup-BFPrFa1_.js → BusinessRegistrationNumberFieldGroup-DLGAFcRN.js} +7 -8
- package/dist/{BusinessTypeSelectionPage-DeWD37jR.js → BusinessTypeSelectionPage-9B2SxGcV.js} +16 -17
- package/dist/{Button-BxdC8cVB.js → Button-Dwr6jvJZ.js} +2 -2
- package/dist/Checkbox-zAGhz7rC.js +114 -0
- package/dist/{ComponentGroup-S6c3rVoX.js → ComponentGroup-DH_CH6bM.js} +4 -4
- package/dist/{ConstitutionalDocument-CNNhKkzD.js → ConstitutionalDocument-DMNlJJzp.js} +25 -28
- package/dist/{ContactDetails-_HCOKj3-.js → ContactDetails-kwe-LwUD.js} +8 -13
- package/dist/{ContextGuidance-v-d9RQuo.js → ContextGuidance-1tQjHxTm.js} +3 -3
- package/dist/CountryField-BkNURmjP.js +56 -0
- package/dist/{Currency-3Z9i_AhY.js → Currency-BjBbhCzV.js} +10 -12
- package/dist/{CustomerSupport-B0UJHtAq.js → CustomerSupport-CT4s3fyC.js} +17 -17
- package/dist/DateField-CJeu0KoS.js +73 -0
- package/dist/{DebugModal-BxebnUyQ.js → DebugModal-YjFFNeOM.js} +12 -17
- package/dist/{DecisionMakerDetails-RF9BoMYF.js → DecisionMakerDetails-B4aCl2kl.js} +21 -24
- package/dist/{DecisionMakerDetailsPage-CGOs2Ubt.js → DecisionMakerDetailsPage-Dg_RbdxY.js} +43 -40
- package/dist/{DecisionMakers-qRoXooYA.js → DecisionMakers-Cq3yVb54.js} +55 -61
- package/dist/{DetailViewLayout-DNCGEd7b.js → DetailViewLayout-DJgAzdlZ.js} +8 -6
- package/dist/{Dropzone-cewfCgXt.js → Dropzone-Cgqct7ux.js} +8 -8
- package/dist/EmailField-CVwmsS5d.js +61 -0
- package/dist/{EmbeddedStatus-Keg7UojY.js → EmbeddedStatus-4YjyzkcD.js} +4 -4
- package/dist/{EndStateLayout-GHEYl82p.js → EndStateLayout-C5Pqler-.js} +3 -3
- package/dist/{EntityAssociation-BPtrqdQR.js → EntityAssociation-DzNk5XbC.js} +7 -7
- package/dist/{ErrorPanel-PefRq1M4.js → ErrorPanel-DtbpEeJk.js} +24 -19
- package/dist/{GlobalEntryModal-CTGSdkW7.js → GlobalEntryModal-D9rqts-z.js} +203 -78
- package/dist/{GlobalEntryPage-CdGXV-QZ.js → GlobalEntryPage-OTglAvMX.js} +10 -10
- package/dist/Icon-_YUEZg1p.js +175 -0
- package/dist/{IdentityNumber-Cz6-4YcM.js → IdentityNumber-9SwAYweE.js} +10 -12
- package/dist/{IdentityNumberFieldGroup-D2PV_4A5.js → IdentityNumberFieldGroup-B9SxTHei.js} +16 -14
- package/dist/{IdentityScreeningWorkflow-mbcaIctn.js → IdentityScreeningWorkflow-C-nLWlJS.js} +16 -16
- package/dist/{Image-Bn_Yyuof.js → Image-CxnjHtP1.js} +1 -1
- package/dist/{IndividualDropin-D1UOavsw.js → IndividualDropin-BpFRq3S4.js} +266 -281
- package/dist/{IndustryCodeFieldGroup-DmOqxPIg.js → IndustryCodeFieldGroup-CEWUFYmK.js} +9 -10
- package/dist/{InputDate-B0RNGCq2.js → InputDate-DjUm9FiK.js} +6 -29
- package/dist/InputDate.utils-D4Ov0KIl.js +25 -0
- package/dist/{InputGroup-B4U3QVEp.js → InputGroup-Bv005B22.js} +7 -6
- package/dist/{InputText-CwPK55J0.js → InputText-DtoBABE5.js} +42 -4
- package/dist/{Introduction-DFW6EaLG.js → Introduction-GW5FJSTJ.js} +9 -9
- package/dist/{InvitedDecisionMakerComponent-hdQc0T7D.js → InvitedDecisionMakerComponent-tahktJVa.js} +45 -45
- package/dist/{JpAddressFields-CzGnXBMk.js → JpAddressFields-CpRh_gFz.js} +13 -13
- package/dist/{LegalCompanyNameField-CV2EgRCw.js → LegalCompanyNameField-Coff77lN.js} +5 -5
- package/dist/{LegalRepresentativeDetailsPage-BiAfoErR.js → LegalRepresentativeDetailsPage-CXMGtJvO.js} +35 -34
- package/dist/{Link-C3dYYTm_.js → Link-D0Yqc2r0.js} +7 -6
- package/dist/{List-ywoRPg-q.js → List-qvNxW9lm.js} +3 -2
- package/dist/{ListItem-CHGVbHhB.js → ListItem-DY-qq1lS.js} +29 -4
- package/dist/{Loader-BVtlpTeo.js → Loader-BDaKGf77.js} +1 -1
- package/dist/{Modal-Dq44ZUNN.js → Modal-Dx_NESnV.js} +25 -5
- package/dist/{Name-BfQr3et_.js → Name-CrLaukRh.js} +5 -5
- package/dist/NumberField-CS93IGoS.js +60 -0
- package/dist/{PatriotActDisclosure-BNAsJXEL.js → PatriotActDisclosure-C3jKKi6y.js} +11 -12
- package/dist/{PayoutDetailsDropin-NyizAaYy.js → PayoutDetailsDropin-BxOJ9P17.js} +163 -158
- package/dist/{PayoutDetailsPage-NM0Eqf4K.js → PayoutDetailsPage-BxaCk685.js} +10 -9
- package/dist/{Review-CzgmjDcZ.js → Review-C81Qsrkg.js} +25 -24
- package/dist/{RootBusinessDetailsPage-B1a0hu8F.js → RootBusinessDetailsPage-CwRyRbEv.js} +9 -7
- package/dist/{RootBusinessLinesPage-Dv1uT7OS.js → RootBusinessLinesPage-C3GZQ-KO.js} +48 -53
- package/dist/{RootIndividualDetailsPage-vkjzmyF7.js → RootIndividualDetailsPage-CvVVlkJI.js} +42 -39
- package/dist/{Select-prMx73V9.js → Select-AiAom5JL.js} +330 -19
- package/dist/{SignPCIComponent-CIkdVNH2.js → SignPCIComponent-Dmr9dDYB.js} +19 -23
- package/dist/{SingpassSelection-B6NONcr4.js → SingpassSelection-BXHvwmgp.js} +7 -7
- package/dist/Skeleton-7xDqhYr-.js +30 -0
- package/dist/{SoleProprietorshipPage-BmNs557C.js → SoleProprietorshipPage-DKL4anrn.js} +7 -7
- package/dist/{SourceOfFundsPage-B5nZ3MjN.js → SourceOfFundsPage-2dxP6dlL.js} +46 -58
- package/dist/{SourceOfFundsWorkflow-IkLZG9JI.js → SourceOfFundsWorkflow-Didn1fld.js} +4 -4
- package/dist/{StackLayout-IUdNMDgW.js → StackLayout-J1ynSX-P.js} +6 -5
- package/dist/{utils-lIizXlcC.js → StateField-BoIVEnaZ.js} +89 -3
- package/dist/{Step-BJh4XZae.js → Step-CiwqdcuY.js} +19 -13
- package/dist/SummarySection-B6A_AT1m.js +60 -0
- package/dist/{Task-yQcY16x1.js → Task-CJDcviJ6.js} +8 -8
- package/dist/{TaskGroup-C9iFHpux.js → TaskGroup-BXkrbyTG.js} +5 -5
- package/dist/{TaskListItem-ChlmCIfF.js → TaskListItem-CQXvVRWG.js} +11 -11
- package/dist/{TaskStepperContextProvider-I7talGDO.js → TaskStepperContextProvider-9wlnwii7.js} +1 -1
- package/dist/{TaskVerificationStatus-Bd5Eftf2.js → TaskVerificationStatus-zoxTZ2mt.js} +3 -3
- package/dist/{TaxInformationFieldGroup-Dq0J9rBU.js → TaxInformationFieldGroup-CnaGMge9.js} +19 -18
- package/dist/{TaxReportingDropin-Cq3gBWtp.js → TaxReportingDropin-F4e4CxiC.js} +22 -26
- package/dist/{TaxReportingWorkflow-flQPRAPy.js → TaxReportingWorkflow-Caa_klQR.js} +4 -4
- package/dist/{TermsOfServiceManagement-BM5K4cpw.js → TermsOfServiceManagement-5x2f0QgC.js} +21 -30
- package/dist/{TextArea-C12oXMzX.js → TextArea-eJQFkYyd.js} +5 -5
- package/dist/TextField-Ca7rT4tr.js +73 -0
- package/dist/{TrustDetailsPage-z7s9FxVC.js → TrustDetailsPage-D3RkKlpJ.js} +59 -67
- package/dist/{TrustMemberCompanyPage-tU2HTiDG.js → TrustMemberCompanyPage-BvBxQg7D.js} +8 -8
- package/dist/{TrustMemberIndividualPage-BLBtnoSq.js → TrustMemberIndividualPage-D4idWK8j.js} +35 -34
- package/dist/{TrustMemberRoleAndTypePage-DIwrtOWr.js → TrustMemberRoleAndTypePage-CyKm_knd.js} +23 -30
- package/dist/{TrustMembersOverview-CowTgfIb.js → TrustMembersOverview-BnP0wZSf.js} +18 -22
- package/dist/{UboTaskItem-CZLDzQil.js → UboTaskItem-Degn5OyC.js} +8 -8
- package/dist/{UnincorporatedPartnershipIndividualPage-BT0j54-O.js → UnincorporatedPartnershipIndividualPage-Bgb4oCRJ.js} +35 -34
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-DFOoV0wQ.js → UnincorporatedPartnershipMemberCompanyPage-T6SOH3Mv.js} +8 -8
- package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-D973uyHj.js → UnincorporatedPartnershipMemberRoleAndTypePage-BVfav_Z_.js} +14 -16
- package/dist/{UnincorporatedPartnershipMembersOverview-5w1BrDMI.js → UnincorporatedPartnershipMembersOverview-DPW48_Lv.js} +11 -14
- package/dist/VerificationErrorAlert-q1SEqBXx.js +68 -0
- package/dist/WebsiteField-CnOU49Hn.js +62 -0
- package/dist/{Workflow-CF-HUIjR.js → Workflow-D298oRt0.js} +9 -9
- package/dist/{accountHolderUtils-CAu4V0ed.js → accountHolderUtils-CLuKAgaj.js} +3 -3
- package/dist/adyen-business-financing.js +8 -9
- package/dist/adyen-individual-configuration.js +36 -36
- package/dist/adyen-individual-status.js +8 -9
- package/dist/adyen-invited-decision-maker.js +3 -3
- package/dist/adyen-onboarding.js +61 -59
- package/dist/adyen-terms-of-service-management.js +3 -3
- package/dist/adyen-terms-of-service-status.js +6 -7
- package/dist/adyen-transfer-instrument-configuration.js +7 -8
- package/dist/adyen-transfer-instrument-management.js +16 -22
- package/dist/adyen-verification-status.js +7 -9
- package/dist/{arrow-right-D2hul7WG.js → arrow-right-BwP9nNDE.js} +2 -2
- package/dist/bafinUtils-CsDthERR.js +3548 -0
- package/dist/{bag-CRRS1aow.js → bag-Cnk9dcZg.js} +2 -2
- package/dist/{bank-BoirCLLW.js → bank-UssyP-aG.js} +2 -2
- package/dist/bg-BG-C7z9VtPy.js +7 -0
- package/dist/{bin-BOmfqfrr.js → bin--Ft4cPCj.js} +2 -2
- package/dist/{capital-DTjbiurV.js → capital-BbOFhTHY.js} +2 -2
- package/dist/{cash-stack-7KpYpBek.js → cash-stack-LTzc8hQZ.js} +2 -2
- package/dist/{certificate-BPuoJ6Ip.js → certificate-CswNcwlI.js} +2 -2
- package/dist/{checkmark-BiSLf8M1.js → checkmark-DH1abKZn.js} +2 -2
- package/dist/{checkmark-circle-Ams7bSve.js → checkmark-circle-VWM-JsI6.js} +2 -2
- package/dist/{checkmark-circle-fill-_p4ss4ac.js → checkmark-circle-fill-AuW2DQDT.js} +2 -2
- package/dist/{checkmark-small-3bw4ftPV.js → checkmark-small-B6vsnsSO.js} +2 -2
- package/dist/{chevron-down-GgZawvoy.js → chevron-down-BGAMP7CF.js} +2 -2
- package/dist/{chevron-left-TeZTTvo5.js → chevron-left-EjFIt8Cd.js} +2 -2
- package/dist/{chevron-right-Cg8XlTxx.js → chevron-right-B5zb9mkt.js} +2 -2
- package/dist/{chevron-up-COQUTli0.js → chevron-up-DZiittpJ.js} +2 -2
- package/dist/{circle-CypWzg83.js → circle-CygvxRY_.js} +2 -2
- package/dist/{circle-small-filled-DfdK2A35.js → circle-small-filled-PeElhgJU.js} +2 -2
- package/dist/{clock-DmfGJ2r9.js → clock-CQXEE5jK.js} +2 -2
- package/dist/{coins-CBvbB8_X.js → coins-C7syygUR.js} +2 -2
- package/dist/{constants-DAb_IqC6.js → constants-Dvga6KjU.js} +7 -8
- package/dist/{contract-D1_RJ_xh.js → contract-BWEAd7e-.js} +2 -2
- package/dist/{countries-BGMTpyJv.js → countries-ZMuvRtQR.js} +1 -1
- package/dist/{country-BEZkohEO.js → country-WYlusjTL.js} +2 -2
- package/dist/{cross-circle-fill-CUXdo1x-.js → cross-circle-fill-Bxj_fgQE.js} +2 -2
- package/dist/cross-circle-fill-small-DwUKcL9P.js +20 -0
- package/dist/{cross-BORHADVQ.js → cross-vK6qh9R0.js} +2 -2
- package/dist/cs-CZ-B_u3kWRS.js +7 -0
- package/dist/da-DK-s_nCUhFO.js +7 -0
- package/dist/de-DE-5lHcZmT6.js +7 -0
- package/dist/{decisionMakerRoles-JEb0ON4e.js → decisionMakerRoles-DA8MK9Dh.js} +2 -2
- package/dist/{document-1-qvV57JdS.js → document-1-BPWF8zKf.js} +2 -2
- package/dist/{document-person-DiJ7M8-D.js → document-person-DVRFNq7g.js} +2 -2
- package/dist/{documentUtils-CxjFpoJB.js → documentUtils-6K3LdjjN.js} +6 -4
- package/dist/{download-Ca4w0Yfr.js → download-DfdpoHdN.js} +2 -2
- package/dist/dropinUtils-CSlRmPSn.js +2572 -0
- package/dist/{edit-1-D8VhDchs.js → edit-1-BgVB06zI.js} +2 -2
- package/dist/el-GR-DTaQeK-A.js +7 -0
- package/dist/{entityAssociationUtil-CY0grcyH.js → entityAssociationUtil-BlfcBl3i.js} +1 -1
- package/dist/{error-DrzrPjvf.js → error-DjErFfKK.js} +3 -3
- package/dist/es-ES-tZMJvO6B.js +7 -0
- package/dist/es-LA-C0x1nQUQ.js +7 -0
- package/dist/et-EE-BqB-3lW_.js +7 -0
- package/dist/{external-link-Dy4le-8Q.js → external-link-BbXGAtFE.js} +2 -2
- package/dist/fi-FI-BpwWFhLW.js +7 -0
- package/dist/{form-rules-DhuNdiqF.js → form-rules-HzaYJh36.js} +90 -5
- package/dist/{formatValidationError-z2D5oU1e.js → formatValidationError-D3vBdIym.js} +2 -2
- package/dist/fr-FR-DMPXwPYV.js +7 -0
- package/dist/{getDefaultRegistrationNumberType-BNO2BcfK.js → getDefaultRegistrationNumberType-CiEvyeR9.js} +5 -7
- package/dist/{useAssociatedLegalEntity-BdcoiUby.js → getFormSlice-CxtXJ0-P.js} +23 -5
- package/dist/{getName-DgxRqagk.js → getName-Cii7OyRd.js} +2 -2
- package/dist/{getProblemsForEntity-BY_voJ99.js → getProblemsForEntity-mdb3Bfpj.js} +3 -3
- package/dist/{getTrustedDecisionMakers-Ta-pURcL.js → getTrustedDecisionMakers-D89oYOLp.js} +2 -2
- package/dist/getValidationError-DvQgc-X3.js +19 -0
- package/dist/{gift-Bs_mAgul.js → gift-BjS6ErNG.js} +2 -2
- package/dist/{graph-Co0JhGiY.js → graph-B8rX9eXr.js} +2 -2
- package/dist/{graph-up-DIvH9haf.js → graph-up-Dwaq7upe.js} +2 -2
- package/dist/{headquarter-BESfDGKh.js → headquarter-CXwws_UP.js} +2 -2
- package/dist/{hotel-Vne7G5M6.js → hotel-CD5Lv9P7.js} +2 -2
- package/dist/hr-HR-D5kV_w60.js +7 -0
- package/dist/{http-DsJtugN1.js → http-C8rt2BZk.js} +5 -4
- package/dist/hu-HU-Bl1dnZfO.js +7 -0
- package/dist/{image-BQM21XCk.js → image-BTE2a8ZV.js} +2 -2
- package/dist/{info-DExoPRH5.js → info-BTc0bCCM.js} +2 -2
- package/dist/{info-filled-11KMeUso.js → info-filled-DhYinieW.js} +2 -2
- package/dist/it-IT-DiuPLWbr.js +7 -0
- package/dist/ja-JP-COBWjdXk.js +7 -0
- package/dist/{legalArrangementUtils-C68JdH6I.js → legalArrangementUtils-Crgt_L7h.js} +1 -1
- package/dist/{location-zRH5zJ8c.js → location-CwE3Q0gg.js} +2 -2
- package/dist/lt-LT-D9Pum2_8.js +7 -0
- package/dist/lv-LV-DDcLP43G.js +7 -0
- package/dist/{mail-i1-zg-cv.js → mail-CIeugZTd.js} +2 -2
- package/dist/{mapAddressLocalizationToJpAddressSchema-DpOIaxj6.js → mapAddressLocalizationToJpAddressSchema-BLOAhwWM.js} +2 -2
- package/dist/{mapExistingFile-RrS8dCpX.js → mapExistingFile-BXfeQxev.js} +2 -2
- package/dist/{mapJpAddressSchemaToAddressLocalizations-wwD6Rp3Q.js → mapJpAddressSchemaToAddressLocalizations-cseKFm-l.js} +16 -15
- package/dist/{mapLegalEntityToIndividualSchema-DtT3pcZJ.js → mapLegalEntityToIndividualSchema-DvGFy20Z.js} +12 -13
- package/dist/{mapTransferInstrumentToPayoutAccount-BpXU-nP1.js → mapTransferInstrumentToPayoutAccount-Cq7PMPOa.js} +4 -4
- package/dist/{minus-circle-filled-CxUdRO8J.js → minus-circle-filled-96DZCdcJ.js} +2 -2
- package/dist/nl-NL-CBRRvqAY.js +7 -0
- package/dist/no-NO-C9lYR_fQ.js +7 -0
- package/dist/{options-horizontal-D86T_xAF.js → options-horizontal-BU9r-Xx3.js} +2 -2
- package/dist/{partner-Dje0ykF6.js → partner-C1SWc0pB.js} +2 -2
- package/dist/{pay-by-link-plane-DAiddPu6.js → pay-by-link-plane-xK4Zkol0.js} +2 -2
- package/dist/{payout-DKiGv3F9.js → payout-zGf0LNbo.js} +2 -2
- package/dist/{pdf-CC8vqpTo.js → pdf-Bbs3Ji9v.js} +157 -174
- package/dist/{pdf.worker.min-CdKJICZZ.js → pdf.worker.min-DTQpK-0h.js} +67 -58
- package/dist/{person-DgALGIIz.js → person-xTKhpEGR.js} +2 -2
- package/dist/pl-PL-CZST_1gV.js +7 -0
- package/dist/{plus-DlQKP2C9.js → plus-Cm_dWRpB.js} +2 -2
- package/dist/{plus-circle-filled-BntUOVIJ.js → plus-circle-filled-Df77eidx.js} +2 -2
- package/dist/{processCapabilities-CWE5UFt8.js → processCapabilities-FL4-KAbd.js} +7 -9
- package/dist/{processValidationErrors-CFU1x_1n.js → processValidationErrors-Cn-RYAun.js} +4 -4
- package/dist/pt-BR-C32QroLH.js +7 -0
- package/dist/pt-PT-ByfmK1XA.js +7 -0
- package/dist/{recurring-DZgT_ekJ.js → recurring-BfwVHJ2Z.js} +2 -2
- package/dist/resolveEnvironment-D8-1H8bU.js +2516 -0
- package/dist/{revenue-accelerate-aMLYFVW6.js → revenue-accelerate-ClN0cx7Z.js} +2 -2
- package/dist/ro-RO-YkglLwfY.js +7 -0
- package/dist/{save-uDNye08N.js → save-QK2A-teG.js} +2 -2
- package/dist/{search-0OS6oe8N.js → search-DVSyT7Q7.js} +2 -2
- package/dist/{uppercase-DvjwUM0n.js → sharedValidators-DODW7kuK.js} +5 -3
- package/dist/{show-BWoS9-Y1.js → show-BRWLIRSA.js} +2 -2
- package/dist/sk-SK-BYRIVzdY.js +7 -0
- package/dist/sl-SI-Cjub_bfF.js +7 -0
- package/dist/{solution-payments-BMal7uJZ.js → solution-payments-BZZceFVV.js} +2 -2
- package/dist/{store-N7ZA4FKy.js → store-DLKKLXhn.js} +2 -2
- package/dist/style.css +1418 -1157
- package/dist/styles-DYaAeu4q.js +1418 -1157
- package/dist/sv-SE-1re-9Lp8.js +7 -0
- package/dist/{terminal-1-0RlQpbUC.js → terminal-1-CpAyEdjO.js} +2 -2
- package/dist/{translation-DbATp_35.js → translation-CpH8D2NK.js} +34 -30
- package/dist/types/adaptiveWorkflow/component-registry.d.ts +19 -2
- package/dist/types/adaptiveWorkflow/components/NodeRenderer/NodeRenderer.d.ts +7 -0
- package/dist/types/adaptiveWorkflow/components/NodeRenderer/SimpleFieldRenderer.d.ts +2 -2
- package/dist/types/adaptiveWorkflow/components/Shared/Fields/CountryField/CountryField.d.ts +4 -0
- package/dist/types/adaptiveWorkflow/components/Shared/Fields/CountryField/contextMap.d.ts +10 -0
- package/dist/types/adaptiveWorkflow/components/Shared/Fields/DateField/DateField.d.ts +4 -0
- package/dist/types/adaptiveWorkflow/components/Shared/Fields/DateField/contextMap.d.ts +9 -0
- package/dist/types/adaptiveWorkflow/components/Shared/Fields/DateField/validators.d.ts +2 -0
- package/dist/types/adaptiveWorkflow/components/Shared/Fields/EmailField/EmailField.d.ts +4 -0
- package/dist/types/adaptiveWorkflow/components/Shared/Fields/EmailField/contextMap.d.ts +10 -0
- package/dist/types/adaptiveWorkflow/components/Shared/Fields/EmailField/validators.d.ts +2 -0
- package/dist/types/adaptiveWorkflow/components/Shared/Fields/NumberField/NumberField.d.ts +4 -0
- package/dist/types/adaptiveWorkflow/components/Shared/Fields/NumberField/contextMap.d.ts +9 -0
- package/dist/types/adaptiveWorkflow/components/Shared/Fields/NumberField/validators.d.ts +2 -0
- package/dist/types/adaptiveWorkflow/components/Shared/Fields/TextField/TextField.d.ts +4 -0
- package/dist/types/adaptiveWorkflow/components/Shared/Fields/TextField/contextMap.d.ts +10 -0
- package/dist/types/adaptiveWorkflow/components/Shared/Fields/TextField/validators.d.ts +4 -0
- package/dist/types/adaptiveWorkflow/components/Shared/Fields/WebsiteField/WebsiteField.d.ts +4 -0
- package/dist/types/adaptiveWorkflow/components/Shared/Fields/WebsiteField/contextMap.d.ts +10 -0
- package/dist/types/adaptiveWorkflow/components/Shared/Fields/WebsiteField/validators.d.ts +3 -0
- package/dist/types/adaptiveWorkflow/utils/validators/getValidationError.d.ts +7 -0
- package/dist/types/adaptiveWorkflow/utils/validators/sharedValidators.d.ts +3 -0
- package/dist/types/adaptiveWorkflow/utils/validators/types.d.ts +6 -0
- package/dist/types/api/adaptive/useAdaptiveWorkflow.d.ts +1 -1
- package/dist/types/api/address/useAddressCleanse.d.ts +2 -2
- package/dist/types/api/address/useRetrieveAddress.d.ts +2 -2
- package/dist/types/api/address/useRetrieveFromPostcodeJp.d.ts +2 -2
- package/dist/types/api/address/useSearchAddress.d.ts +2 -2
- package/dist/types/api/businessLines/useBusinessLines.d.ts +1 -1
- package/dist/types/api/companySearch/useCompanySearch.d.ts +6 -293
- package/dist/types/api/configurations/useSupportedCountries.d.ts +1 -1
- package/dist/types/api/configurations/useTaskTypes.d.ts +1 -1
- package/dist/types/api/configurations/useVersionConfiguration.d.ts +2 -2
- package/dist/types/api/datasets/useLegalForms.d.ts +1 -1
- package/dist/types/api/datasets/useNaceCodes.d.ts +1 -1
- package/dist/types/api/datasets/useSourceOfFundsTypes.d.ts +1 -1
- package/dist/types/api/documents/useDocument.d.ts +1 -1
- package/dist/types/api/documents/useDocuments.d.ts +2 -2
- package/dist/types/api/idNowProvider/useIdNowProvider.d.ts +3 -3
- package/dist/types/api/idVerificationProviders/useIdVerificationToken.d.ts +2 -2
- package/dist/types/api/industryCodes/useIndustryCodes.d.ts +1 -1
- package/dist/types/api/invitations/useInvitationStatus.d.ts +1 -1
- package/dist/types/api/invitedEntity/useInvitedEntityAssociationData.d.ts +2 -2
- package/dist/types/api/invitedEntity/useInvitedEntityRootCapabilities.d.ts +2 -2
- package/dist/types/api/invitedEntity/useInvitedEntityVerificationErrors.d.ts +2 -2
- package/dist/types/api/legalEntity/useLegalEntity.d.ts +9 -9
- package/dist/types/api/onboardingStatus/useOnboardingStatus.d.ts +1 -1
- package/dist/types/api/openId/useOpenIdAuthorizationLink.d.ts +1 -1
- package/dist/types/api/pci/usePciQuestionnaireList.d.ts +2 -2
- package/dist/types/api/pci/usePciStatus.d.ts +2 -2
- package/dist/types/api/pci/usePciTemplate.d.ts +2 -2
- package/dist/types/api/providersConfiguration/useProviderStatus.d.ts +1 -1
- package/dist/types/api/taskStatus/useTaskStatus.d.ts +2 -2
- package/dist/types/api/taskStatus/useTaskStatuses.d.ts +2 -2
- package/dist/types/api/taxClassification/useTaxClassification.d.ts +2 -2
- package/dist/types/api/termsOfService/useAcceptedTermsOfService.d.ts +2 -2
- package/dist/types/api/termsOfService/useTermsOfService.d.ts +2 -2
- package/dist/types/api/termsOfService/useTermsOfServiceAcceptanceInfos.d.ts +1 -1
- package/dist/types/api/termsOfService/useTermsOfServiceStatus.d.ts +2 -2
- package/dist/types/api/tinVerification/useVerifyTin.d.ts +5 -245
- package/dist/types/api/toggles/useToggles.d.ts +1 -1
- package/dist/types/api/transferInstruments/useBankVerificationProviders.d.ts +1 -1
- package/dist/types/api/transferInstruments/useTransferInstrument.d.ts +1 -1
- package/dist/types/api/transferInstruments/useTransferInstruments.d.ts +1 -1
- package/dist/types/api/uiAnalytics/useAnalyticsSession.d.ts +2 -2
- package/dist/types/api/validation/useValidatePhoneNumber.d.ts +2 -2
- package/dist/types/components/BankAccount/mapping/mapPayoutAccountSchemaToApiBankAccount.d.ts +3 -2
- package/dist/types/components/BankAccount/mapping/mapPayoutDetailsToTransferInstrument.d.ts +3 -2
- package/dist/types/components/Business/forms/rules.d.ts +3 -1
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingSummary.d.ts +3 -2
- package/dist/types/components/GlobalEntry/hooks/usePrefetchCompanySearch.d.ts +11 -0
- package/dist/types/components/GlobalEntry/rules.d.ts +1 -1
- package/dist/types/components/GlobalEntry/utils/submitGlobalEntry.d.ts +3 -1
- package/dist/types/components/Individual/forms/BasicDetails/validate.d.ts +3 -1
- package/dist/types/components/Individual/forms/Individual.rules.d.ts +4 -2
- package/dist/types/components/Shared/NewSummary/NewSummary.d.ts +7 -6
- package/dist/types/components/Shared/SummarySection/SummarySection.d.ts +12 -4
- package/dist/types/components/Shared/fields/LocalizedNameFields/validate.d.ts +2 -2
- package/dist/types/components/Shared/fields/RegistrationAndOperationalAddressFields/utils.d.ts +1 -1
- package/dist/types/components/Shared/fields/TaxInformationField/taxIdNumberTypes.d.ts +1 -1
- package/dist/types/components/Shared/forms/Address/localized/jp/jpAddressSchema.d.ts +11 -1
- package/dist/types/components/ui/atoms/Typography/Typography.types.d.ts +1 -1
- package/dist/types/context/SettingsContext/types.d.ts +8 -0
- package/dist/types/context/ToggleContext/types.d.ts +3 -13
- package/dist/types/utils/japanSupportUtils.d.ts +2 -2
- package/dist/types/utils/validatorUtils.d.ts +2 -0
- package/dist/{types-D6p5FQF-.js → types-BymnGWO9.js} +1 -1
- package/dist/{types-B9zXzag-.js → types-qahGXhtr.js} +1 -1
- package/dist/{upload-C5NC1E4N.js → upload-BI7LKlDm.js} +2 -2
- package/dist/{useAdaptiveWorkflow-DsQESk9f.js → useAdaptiveWorkflow-B35cXauP.js} +1 -1
- package/dist/{useBusinessDetailsData-dsYTeDom.js → useBusinessDetailsData-BEM6OCqH.js} +132 -150
- package/dist/{useBusinessLines-BhSN6qCH.js → useBusinessLines-0FcuDMzo.js} +1 -1
- package/dist/{useCanSeeIntroduction-BLGY7sE-.js → useCanSeeIntroduction-B6BDOCm_.js} +5 -5
- package/dist/{useDataMissingRemediations-ttUrk09_.js → useDataMissingRemediations-DKjYzfe2.js} +3 -3
- package/dist/{useForm-BFeaSvlP.js → useForm-fYu8sJ-i.js} +6 -6
- package/dist/{useHideTaskStepper-C_w6iUY-.js → useHideTaskStepper-BgCN--mG.js} +1 -1
- package/dist/{invalidateRootLegalEntity-B97dCa-s.js → useId-CEUET5IS.js} +32 -4
- package/dist/{useIndustryCodes-uAj90IyS.js → useIndustryCodes-La1cU8oH.js} +1 -1
- package/dist/{useLegalEntity-QQXN6YOm.js → useLegalEntity-CxeMoCm4.js} +4 -3
- package/dist/{useNavigate-J0sRAAoI.js → useNavigate-B1z7McBl.js} +33 -33
- package/dist/{useOnboardingStatus-CsGUjkm-.js → useOnboardingStatus-CX8IrDe_.js} +1 -1
- package/dist/{usePciQuestionnaireList-CFNJD8pS.js → usePciQuestionnaireList-CB_tjNsz.js} +1 -1
- package/dist/{useSalesChannels-huIL6Dhk.js → useSalesChannels-DJAmDo-r.js} +5 -5
- package/dist/{useScenarios-DV2TeNvN.js → useScenarios-DfE71fl7.js} +7 -6
- package/dist/{useSettingsContext-9O3Aqpfq.js → useSettingsContext-Bpf4UqRT.js} +6 -3
- package/dist/{useTaskLandedEvent-DwZHcMEQ.js → useTaskLandedEvent-BtuFBe20.js} +2 -2
- package/dist/{useTaskStatus-CgrhdaE_.js → useTaskStatus-4nAPf_uD.js} +1 -1
- package/dist/{useTermsOfServiceStatus-DbJDklA2.js → useTermsOfServiceStatus-FDpSDjco.js} +1 -1
- package/dist/{useTrustMembers-uhgi2qfN.js → useTrustMembers-D3sCwcaT.js} +9 -8
- package/dist/{useUnincorporatedPartnershipMembers-DVEWj1is.js → useUnincorporatedPartnershipMembers-DcfQJdVZ.js} +5 -5
- package/dist/{useUpdateBusinessLines-DCKYTzxd.js → useUpdateBusinessLines-B-pF2YT-.js} +1 -1
- package/dist/{utils-SKYT7xU4.js → utils-BFxg3gPM.js} +2 -2
- package/dist/{utils-D8pwjFm5.js → utils-CcBgYW2P.js} +5 -6
- package/dist/utils-Oc-YLiM0.js +214 -0
- package/dist/{validate-BBVJuFm5.js → validate-1rlz-OH4.js} +15 -17
- package/dist/{validate-Bkpa-y5Q.js → validate-B2P8hpA5.js} +7 -7
- package/dist/{validate-t6pT7AaZ.js → validate-S1Bm0XnT.js} +3 -3
- package/dist/{validate-Dmdw3pYn.js → validate-x5CYfY5E.js} +2 -2
- package/dist/{validateExtractionResult-qkFkcrwl.js → validateExtractionResult-IRRMwcNi.js} +5 -7
- package/dist/{warning-circle-fill-C2lMYPJW.js → warning-circle-fill-ClFvGo5m.js} +2 -2
- package/dist/{warning-diamond-filled-CQ2DdW5g.js → warning-diamond-filled-CWyKR65i.js} +2 -2
- package/dist/{webinar-BpZWqd-g.js → webinar-DWX7Z5Wz.js} +2 -2
- package/package.json +36 -36
- package/dist/AdaptiveWorkflow-2EE8iiMD.js +0 -33
- package/dist/Alert-BqbbDRYR.js +0 -172
- package/dist/AnalyticsContext-CpimDlw4.js +0 -21
- package/dist/Checkbox-qfdF12cF.js +0 -60
- package/dist/Confirm-DjFpxSzC.js +0 -77
- package/dist/CountryField-CMOB4yz4.js +0 -38
- package/dist/DataConflictsModal-8Nnj7_UD.js +0 -238
- package/dist/Field-Df7ajJE2.js +0 -154
- package/dist/FormFlow.module-DqMxjYHl.js +0 -20
- package/dist/Header-DvifUz7-.js +0 -93
- package/dist/Icon-DFQgr7dy.js +0 -175
- package/dist/LandingLayout-BsIoIFzs.js +0 -76
- package/dist/LegalName-BYQ12uWc.js +0 -33
- package/dist/LoaderWrapper-Dc88hY-P.js +0 -34
- package/dist/MaskedInput-CkDwzLxe.js +0 -719
- package/dist/MaybeModal-Dfm1rIUG.js +0 -24
- package/dist/NewSummary-DYLlnpwx.js +0 -73
- package/dist/ProgressBar-DWFxLMUA.js +0 -38
- package/dist/RadioGroup-CY33MT83.js +0 -47
- package/dist/RadioWithLabel-BmUFWDxq.js +0 -45
- package/dist/SettingsContext-Dl-9WWCI.js +0 -9
- package/dist/StateContext-B2_Pqd_y.js +0 -9
- package/dist/StateField-BiNI3dm9.js +0 -55
- package/dist/StructuredList-BHUmeWeh.js +0 -56
- package/dist/Summary-BTDbRMfh.js +0 -235
- package/dist/TaxInformationField--Uhp0zLv.js +0 -242
- package/dist/TileGroup-BFcSgQ1l.js +0 -172
- package/dist/ToastContext-B_wd2IY2.js +0 -13
- package/dist/ToastContextProvider-BSQ1Upl_.js +0 -103
- package/dist/VerificationErrorAlert-B6HmAZ0g.js +0 -38
- package/dist/_rolldown_dynamic_import_helper-sGNwd-kR.js +0 -14
- package/dist/bafinUtils-RXELXyTR.js +0 -96
- package/dist/bg-BG-DfbtcqF4.js +0 -7
- package/dist/birthDateUtils-D6uk7zwm.js +0 -84
- package/dist/businessRegistrationNumberPatterns-pbrCVTTp.js +0 -982
- package/dist/cross-circle-fill-small-DdoPZZeo.js +0 -20
- package/dist/cs-CZ-CajuRLo4.js +0 -7
- package/dist/da-DK-BEwmSejn.js +0 -7
- package/dist/datasetUtil-BdHPWsxZ.js +0 -45
- package/dist/de-DE-PyK3jl-6.js +0 -7
- package/dist/debouncedInputEvent-Fwwp_K_-.js +0 -54
- package/dist/debugStore-Dwn1FXrh.js +0 -9
- package/dist/dropinUtils-OsMsnnYG.js +0 -496
- package/dist/el-GR-KPFghikv.js +0 -7
- package/dist/es-ES-z4jLCvkJ.js +0 -7
- package/dist/es-LA-Dx4QymCh.js +0 -7
- package/dist/et-EE-1EhDxtTe.js +0 -7
- package/dist/fi-FI-Dc2RMc_u.js +0 -7
- package/dist/fieldConfigurations-CZCFghnK.js +0 -11
- package/dist/formFieldsUtils-CnDkgahc.js +0 -7
- package/dist/formUtils-BHgG8yQZ.js +0 -52
- package/dist/formUtils-DAKrWwgL.js +0 -84
- package/dist/fr-FR-DswL4wQ1.js +0 -7
- package/dist/getFormSlice-C1ma6Xd4.js +0 -21
- package/dist/getTrustedFields-BJ88GlM-.js +0 -28
- package/dist/globalStore--_np-9ON.js +0 -418
- package/dist/hr-HR-DI2D_V50.js +0 -7
- package/dist/hu-HU-lyRcZjGI.js +0 -7
- package/dist/isEmpty-Uewyl-r6.js +0 -14
- package/dist/isEmptyEntity-3OHnhXqG.js +0 -43
- package/dist/it-IT-Bn4CEcmI.js +0 -7
- package/dist/ja-JP-CAX_xwUx.js +0 -7
- package/dist/keys-Ce8YnRP2.js +0 -20
- package/dist/listToRecord-DumSkYDz.js +0 -10
- package/dist/lt-LT-BdgYuJW7.js +0 -7
- package/dist/lv-LV-Bz5c0Psg.js +0 -7
- package/dist/mapScriptLocalization-BCfkZo1y.js +0 -46
- package/dist/nl-NL-BE2cQh0x.js +0 -7
- package/dist/no-NO-vgzpp44v.js +0 -7
- package/dist/patternValidators-DsrZkuOO.js +0 -73
- package/dist/pl-PL-DgDSRVmp.js +0 -7
- package/dist/pt-BR-BaKp-J8F.js +0 -7
- package/dist/pt-PT-Df48oeP5.js +0 -7
- package/dist/resolveEnvironment-CcCbs90B.js +0 -999
- package/dist/ro-RO-CTMsv_EY.js +0 -7
- package/dist/roleMetadata-CbgaYaH8.js +0 -56
- package/dist/sk-SK-oqO5I3Aw.js +0 -7
- package/dist/sl-SI-CQhJFnpj.js +0 -7
- package/dist/summaryItem-uDWmtYtt.js +0 -16
- package/dist/sv-SE-CmevESLi.js +0 -7
- package/dist/toFullWidth-Dgy4X4i8.js +0 -52
- package/dist/trustUtil-BG17fZ56.js +0 -98
- package/dist/types/adaptiveWorkflow/components/Fields/LegalName.d.ts +0 -14
- package/dist/types-B28r2lAW.js +0 -30
- package/dist/types-CZAHRt31.js +0 -147
- package/dist/useAccountHolder-BpIX1iBG.js +0 -102
- package/dist/useAllowedCountries-qyvo-c6A.js +0 -80
- package/dist/useAnalyticsContext-gSnRnYgV.js +0 -12
- package/dist/useCreateLegalEntity-CYZd_62a.js +0 -24
- package/dist/useDataset-K19TDoyR.js +0 -98
- package/dist/useDeleteTransferInstrument-C10xzHiO.js +0 -31
- package/dist/useId-BkDhUta2.js +0 -28
- package/dist/useMultiForm-CM3lpilP.js +0 -790
- package/dist/useToastContext-B6Mqc2HY.js +0 -12
- package/dist/useToggleContext-B_YexrbT.js +0 -21
- package/dist/useUpdateLegalEntity-B7LRg8m0.js +0 -29
- package/dist/utils-BLBh0VEd.js +0 -1755
- package/dist/utils-CYUYe54m.js +0 -24
- package/dist/utils-DdHbAadK.js +0 -80
- package/dist/validationError-DUn2rT0n.js +0 -55
- package/dist/validationResult-bjYBDjbU.js +0 -29
- package/dist/validatorUtils-D2O6AAZn.js +0 -106
- /package/dist/{pt-BR-CPbFPNwq2.js → pt-BR-CPbFPNwq.js} +0 -0
|
@@ -0,0 +1,3548 @@
|
|
|
1
|
+
try {
|
|
2
|
+
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "f14a41a0-3e0a-4b1b-ac3c-1160ae1656c8", e._sentryDebugIdIdentifier = "sentry-dbid-f14a41a0-3e0a-4b1b-ac3c-1160ae1656c8");
|
|
4
|
+
} catch (e) {}
|
|
5
|
+
import { r as useTranslation } from "./translation-CpH8D2NK.js";
|
|
6
|
+
import { P as listToRecord, mt as useAccountHolder, x as Alert } from "./resolveEnvironment-D8-1H8bU.js";
|
|
7
|
+
import { t as Icon } from "./Icon-_YUEZg1p.js";
|
|
8
|
+
import { t as Typography } from "./Typography-CAc_f5Iq.js";
|
|
9
|
+
import { t as Button } from "./Button-Dwr6jvJZ.js";
|
|
10
|
+
import { i as noop, s as keysOf } from "./genUtils-nphCwt1A.js";
|
|
11
|
+
import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
|
|
12
|
+
import { t as TaskTypes } from "./taskTypes-3vSkMBDm.js";
|
|
13
|
+
import { t as DecisionMakerTypes } from "./decisionMaker-CR0qaGWQ.js";
|
|
14
|
+
import { t as Scenarios } from "./scenarios-nibtmpSb.js";
|
|
15
|
+
import { i as useToggleContext, t as Checkbox } from "./Checkbox-zAGhz7rC.js";
|
|
16
|
+
import { i as useAnalyticsContext, r as KEYBOARD_KEYS, t as Modal } from "./Modal-Dx_NESnV.js";
|
|
17
|
+
import { t as useId } from "./useId-CEUET5IS.js";
|
|
18
|
+
import { r as resolveFieldMetadata } from "./form-rules-HzaYJh36.js";
|
|
19
|
+
import { f as translateTranslatable, r as Field } from "./Select-AiAom5JL.js";
|
|
20
|
+
import { s as Confirm } from "./utils-Oc-YLiM0.js";
|
|
21
|
+
import { A as nonInputs, C as validateNotEmptyOnBlur, D as alphanumericInputs, E as alphaInputs, M as spacer, O as customInputs, T as uppercase, a as MaskedInput, i as RadioWithLabel, j as numericInputs, k as makeMask, r as RadioGroup, w as validatePatternOnBlur } from "./dropinUtils-CSlRmPSn.js";
|
|
22
|
+
import { useCallback, useEffect, useMemo, useRef, useState } from "preact/hooks";
|
|
23
|
+
import cx from "classnames";
|
|
24
|
+
import { Fragment, jsx, jsxs } from "preact/jsx-runtime";
|
|
25
|
+
import { computed, signal } from "@preact/signals";
|
|
26
|
+
//#region src/types/datasets/state-code.ts
|
|
27
|
+
var StateCodesUS = {
|
|
28
|
+
Alabama: "AL",
|
|
29
|
+
Alaska: "AK",
|
|
30
|
+
Arizona: "AZ",
|
|
31
|
+
Arkansas: "AR",
|
|
32
|
+
California: "CA",
|
|
33
|
+
Colorado: "CO",
|
|
34
|
+
Connecticut: "CT",
|
|
35
|
+
Delaware: "DE",
|
|
36
|
+
DistrictOfColumbia: "DC",
|
|
37
|
+
Florida: "FL",
|
|
38
|
+
Georgia: "GA",
|
|
39
|
+
Hawaii: "HI",
|
|
40
|
+
Idaho: "ID",
|
|
41
|
+
Illinois: "IL",
|
|
42
|
+
Indiana: "IN",
|
|
43
|
+
Iowa: "IA",
|
|
44
|
+
Kansas: "KS",
|
|
45
|
+
Kentucky: "KY",
|
|
46
|
+
Louisiana: "LA",
|
|
47
|
+
Maine: "ME",
|
|
48
|
+
Maryland: "MD",
|
|
49
|
+
Massachusetts: "MA",
|
|
50
|
+
Michigan: "MI",
|
|
51
|
+
Minnesota: "MN",
|
|
52
|
+
Mississippi: "MS",
|
|
53
|
+
Missouri: "MO",
|
|
54
|
+
Montana: "MT",
|
|
55
|
+
Nebraska: "NE",
|
|
56
|
+
Nevada: "NV",
|
|
57
|
+
NewHampshire: "NH",
|
|
58
|
+
NewJersey: "NJ",
|
|
59
|
+
NewMexico: "NM",
|
|
60
|
+
NewYork: "NY",
|
|
61
|
+
NorthCarolina: "NC",
|
|
62
|
+
NorthDakota: "ND",
|
|
63
|
+
Ohio: "OH",
|
|
64
|
+
Oklahoma: "OK",
|
|
65
|
+
Oregon: "OR",
|
|
66
|
+
Pennsylvania: "PA",
|
|
67
|
+
RhodeIsland: "RI",
|
|
68
|
+
SouthCarolina: "SC",
|
|
69
|
+
SouthDakota: "SD",
|
|
70
|
+
Tennessee: "TN",
|
|
71
|
+
Texas: "TX",
|
|
72
|
+
Utah: "UT",
|
|
73
|
+
Vermont: "VT",
|
|
74
|
+
Virginia: "VA",
|
|
75
|
+
Washington: "WA",
|
|
76
|
+
WestVirginia: "WV",
|
|
77
|
+
Wisconsin: "WI",
|
|
78
|
+
Wyoming: "WY",
|
|
79
|
+
ArmedForcesAmericas: "AA",
|
|
80
|
+
ArmedForcesEurope: "AE",
|
|
81
|
+
ArmedForcesPacific: "AP"
|
|
82
|
+
};
|
|
83
|
+
//#endregion
|
|
84
|
+
//#region src/utils/masking/masks/businessRegistrationNumberMasks.ts
|
|
85
|
+
var businessRegistrationNumberMasks = {
|
|
86
|
+
[CountryCodes.Austria]: {
|
|
87
|
+
firmenbuchnummer: { mask: makeMask({
|
|
88
|
+
type: "input",
|
|
89
|
+
allow: /[TF]/
|
|
90
|
+
}, {
|
|
91
|
+
type: "input",
|
|
92
|
+
allow: /N/,
|
|
93
|
+
optional: true
|
|
94
|
+
}, ...numericInputs(3), ...numericInputs(3, true), {
|
|
95
|
+
type: "input",
|
|
96
|
+
allow: /[a-z]/
|
|
97
|
+
}) },
|
|
98
|
+
ZVR: { mask: makeMask(...nonInputs("AT", { includeInValue: true }), spacer, ...nonInputs("-", { includeInValue: true }), spacer, ...nonInputs("ZVR", { includeInValue: true }), spacer, ...nonInputs("-", { includeInValue: true }), spacer, ...numericInputs(9), ...numericInputs(1, true)) }
|
|
99
|
+
},
|
|
100
|
+
[CountryCodes.Australia]: {
|
|
101
|
+
default: { mask: makeMask(...numericInputs(3), spacer, ...numericInputs(3), spacer, ...numericInputs(3)) },
|
|
102
|
+
associationIncorporated: {
|
|
103
|
+
mask: makeMask(...alphanumericInputs(3), ...alphanumericInputs(20, true)),
|
|
104
|
+
transformOnType: uppercase
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
[CountryCodes.Belgium]: { default: { mask: makeMask(...numericInputs(10)) } },
|
|
108
|
+
[CountryCodes.Brazil]: { default: { mask: makeMask(...numericInputs(2), ...nonInputs(" . "), ...numericInputs(3), ...nonInputs(" . "), ...numericInputs(3), ...nonInputs(" / "), ...numericInputs(4), ...nonInputs(" - "), ...numericInputs(2)) } },
|
|
109
|
+
[CountryCodes.Bulgaria]: { default: { mask: makeMask(...numericInputs(9)) } },
|
|
110
|
+
[CountryCodes.Canada]: { default: {
|
|
111
|
+
mask: makeMask(...alphanumericInputs(5), ...alphanumericInputs(5, true)),
|
|
112
|
+
transformOnType: uppercase
|
|
113
|
+
} },
|
|
114
|
+
[CountryCodes.Croatia]: {
|
|
115
|
+
default: { mask: makeMask(...numericInputs(9)) },
|
|
116
|
+
soleProprietorship: { mask: makeMask(...numericInputs(8)) }
|
|
117
|
+
},
|
|
118
|
+
[CountryCodes.Cyprus]: { default: {
|
|
119
|
+
mask: makeMask(...customInputs(1, /^[COP]$/), ...numericInputs(1), ...numericInputs(7, true)),
|
|
120
|
+
transformOnType: uppercase
|
|
121
|
+
} },
|
|
122
|
+
[CountryCodes.CzechRepublic]: { default: { mask: makeMask(...numericInputs(8), ...numericInputs(2, true)) } },
|
|
123
|
+
[CountryCodes.Denmark]: { default: { mask: makeMask(...numericInputs(8)) } },
|
|
124
|
+
[CountryCodes.Estonia]: { default: { mask: makeMask(...numericInputs(8)) } },
|
|
125
|
+
[CountryCodes.Finland]: { default: { mask: makeMask(...numericInputs(7), spacer, ...nonInputs("-", { includeInValue: true }), spacer, ...numericInputs(1)) } },
|
|
126
|
+
[CountryCodes.France]: {
|
|
127
|
+
SIRET: { mask: makeMask(...numericInputs(9), ...nonInputs(" - "), ...numericInputs(5)) },
|
|
128
|
+
RNA: { mask: makeMask(...nonInputs("W", { includeInValue: true }), ...numericInputs(1), ...alphanumericInputs(1), ...numericInputs(7)) }
|
|
129
|
+
},
|
|
130
|
+
[CountryCodes.Germany]: { default: {
|
|
131
|
+
mask: makeMask(...alphanumericInputs(3), ...customInputs(17, /[A-Z0-9-]/, true)),
|
|
132
|
+
transformOnType: uppercase
|
|
133
|
+
} },
|
|
134
|
+
[CountryCodes.Gibraltar]: { default: {
|
|
135
|
+
mask: makeMask(...alphanumericInputs(1), ...alphanumericInputs(7, true)),
|
|
136
|
+
transformOnType: uppercase
|
|
137
|
+
} },
|
|
138
|
+
[CountryCodes.Greece]: { default: { mask: makeMask(...numericInputs(12)) } },
|
|
139
|
+
[CountryCodes.Guernsey]: { default: { mask: makeMask(...numericInputs(1), ...numericInputs(8, true)) } },
|
|
140
|
+
[CountryCodes.HongKong]: { default: { mask: makeMask(...numericInputs(7)) } },
|
|
141
|
+
[CountryCodes.Hungary]: {
|
|
142
|
+
default: { mask: makeMask(...numericInputs(2), ...nonInputs(" - "), ...numericInputs(2), ...nonInputs(" - "), ...numericInputs(6)) },
|
|
143
|
+
nyilvantartasiSzam: { mask: makeMask(...numericInputs(10)) }
|
|
144
|
+
},
|
|
145
|
+
[CountryCodes.Ireland]: { default: { mask: makeMask(...numericInputs(1), ...numericInputs(7, true)) } },
|
|
146
|
+
[CountryCodes.IsleOfMan]: { default: {
|
|
147
|
+
mask: makeMask(...numericInputs(6), ...alphaInputs(1)),
|
|
148
|
+
transformOnType: uppercase
|
|
149
|
+
} },
|
|
150
|
+
[CountryCodes.Italy]: {
|
|
151
|
+
partitaIVA: { mask: makeMask(...numericInputs(11)) },
|
|
152
|
+
CCIAA: {
|
|
153
|
+
mask: makeMask(...alphaInputs(2), ...numericInputs(6), ...numericInputs(1, true)),
|
|
154
|
+
transformOnType: uppercase
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
[CountryCodes.Japan]: { default: { mask: makeMask(...numericInputs(12)) } },
|
|
158
|
+
[CountryCodes.Jersey]: { default: {
|
|
159
|
+
mask: makeMask(...alphanumericInputs(1), ...alphanumericInputs(8, true)),
|
|
160
|
+
transformOnType: uppercase
|
|
161
|
+
} },
|
|
162
|
+
[CountryCodes.Latvia]: { default: { mask: makeMask(...numericInputs(11)) } },
|
|
163
|
+
[CountryCodes.Liechtenstein]: { default: { mask: makeMask(...nonInputs("FL", { includeInValue: true }), spacer, ...nonInputs("-", { includeInValue: true }), spacer, ...numericInputs(4), spacer, ...nonInputs(".", { includeInValue: true }), spacer, ...numericInputs(3), spacer, ...nonInputs(".", { includeInValue: true }), spacer, ...numericInputs(3), spacer, ...nonInputs("-", { includeInValue: true }), spacer, ...numericInputs(1)) } },
|
|
164
|
+
[CountryCodes.Lithuania]: { default: { mask: makeMask(...numericInputs(6), ...numericInputs(3, true)) } },
|
|
165
|
+
[CountryCodes.Luxembourg]: { default: {
|
|
166
|
+
mask: makeMask(...alphaInputs(1), ...numericInputs(9, true)),
|
|
167
|
+
transformOnType: uppercase
|
|
168
|
+
} },
|
|
169
|
+
[CountryCodes.Malaysia]: { default: { mask: makeMask(...numericInputs(7), ...numericInputs(5, true)) } },
|
|
170
|
+
[CountryCodes.Malta]: { default: {
|
|
171
|
+
mask: makeMask(...customInputs(1, /[CP]/), spacer, ...numericInputs(4), ...numericInputs(2, true)),
|
|
172
|
+
transformOnType: uppercase
|
|
173
|
+
} },
|
|
174
|
+
[CountryCodes.Monaco]: {
|
|
175
|
+
default: {
|
|
176
|
+
mask: makeMask(...alphanumericInputs(8), ...alphanumericInputs(3, true)),
|
|
177
|
+
transformOnType: uppercase
|
|
178
|
+
},
|
|
179
|
+
soleProprietorship: {
|
|
180
|
+
mask: makeMask(...alphanumericInputs(8), ...alphanumericInputs(3, true)),
|
|
181
|
+
transformOnType: uppercase
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
[CountryCodes.Netherlands]: { default: { mask: makeMask(...numericInputs(8)) } },
|
|
185
|
+
[CountryCodes.NewZealand]: {
|
|
186
|
+
NZBN: { mask: makeMask(...numericInputs(13)) },
|
|
187
|
+
companyNumberNZ: { mask: makeMask(...numericInputs(7)) }
|
|
188
|
+
},
|
|
189
|
+
[CountryCodes.Norway]: { default: { mask: makeMask(...numericInputs(9)) } },
|
|
190
|
+
[CountryCodes.Poland]: {
|
|
191
|
+
krsNumber: { mask: makeMask(...numericInputs(10)) },
|
|
192
|
+
regon: { mask: makeMask(...numericInputs(9)) }
|
|
193
|
+
},
|
|
194
|
+
[CountryCodes.Portugal]: { default: { mask: makeMask(...numericInputs(9)) } },
|
|
195
|
+
[CountryCodes.Romania]: {
|
|
196
|
+
roRegNumberOldFormat: {
|
|
197
|
+
mask: makeMask(...alphaInputs(1), ...numericInputs(1), ...numericInputs(1, true), ...customInputs(1, /[/]/), ...numericInputs(1), ...numericInputs(8, true), ...customInputs(1, /[/]/), ...numericInputs(4)),
|
|
198
|
+
transformOnType: uppercase
|
|
199
|
+
},
|
|
200
|
+
roRegNumberNewFormat: {
|
|
201
|
+
mask: makeMask({
|
|
202
|
+
type: "input",
|
|
203
|
+
allow: /[JFC]/
|
|
204
|
+
}, ...numericInputs(13)),
|
|
205
|
+
transformOnType: uppercase
|
|
206
|
+
}
|
|
207
|
+
},
|
|
208
|
+
[CountryCodes.Singapore]: { default: {
|
|
209
|
+
mask: makeMask(...alphanumericInputs(9), ...alphanumericInputs(1, true)),
|
|
210
|
+
transformOnType: uppercase
|
|
211
|
+
} },
|
|
212
|
+
[CountryCodes.Slovakia]: { default: { mask: makeMask(...numericInputs(8)) } },
|
|
213
|
+
[CountryCodes.Slovenia]: { default: { mask: makeMask(...numericInputs(10)) } },
|
|
214
|
+
[CountryCodes.Spain]: { default: {
|
|
215
|
+
mask: makeMask(...alphaInputs(1), ...alphanumericInputs(8)),
|
|
216
|
+
transformOnType: uppercase
|
|
217
|
+
} },
|
|
218
|
+
[CountryCodes.Sweden]: { default: { mask: makeMask(...numericInputs(6), ...nonInputs(" - "), ...numericInputs(4)) } },
|
|
219
|
+
[CountryCodes.Switzerland]: { default: { mask: makeMask(...nonInputs("CHE", { includeInValue: true }), ...nonInputs(" - "), ...numericInputs(3), ...nonInputs(" . "), ...numericInputs(3), ...nonInputs(" . "), ...numericInputs(3)) } },
|
|
220
|
+
[CountryCodes.UnitedKingdom]: {
|
|
221
|
+
default: {
|
|
222
|
+
mask: makeMask(...alphanumericInputs(8)),
|
|
223
|
+
transformOnType: uppercase
|
|
224
|
+
},
|
|
225
|
+
nonProfit: {
|
|
226
|
+
mask: makeMask(...alphanumericInputs(6), ...customInputs(1, /[a-zA-Z0-9-]/, true), ...alphanumericInputs(1, true)),
|
|
227
|
+
transformOnType: uppercase
|
|
228
|
+
}
|
|
229
|
+
},
|
|
230
|
+
[CountryCodes.UnitedStates]: {
|
|
231
|
+
[StateCodesUS.Alabama]: {
|
|
232
|
+
mask: makeMask(...numericInputs(9), ...nonInputs(" "), ...nonInputs(StateCodesUS.Alabama)),
|
|
233
|
+
transformOnType: uppercase
|
|
234
|
+
},
|
|
235
|
+
[StateCodesUS.Alaska]: {
|
|
236
|
+
mask: makeMask(...numericInputs(8), ...nonInputs(" "), ...nonInputs(StateCodesUS.Alaska)),
|
|
237
|
+
transformOnType: uppercase
|
|
238
|
+
},
|
|
239
|
+
[StateCodesUS.Arizona]: {
|
|
240
|
+
mask: makeMask(...numericInputs(8), ...nonInputs(" "), ...nonInputs(StateCodesUS.Arizona)),
|
|
241
|
+
transformOnType: uppercase
|
|
242
|
+
},
|
|
243
|
+
[StateCodesUS.Arkansas]: {
|
|
244
|
+
mask: makeMask({
|
|
245
|
+
type: "input",
|
|
246
|
+
allow: /[8]/
|
|
247
|
+
}, ...numericInputs(8), ...nonInputs(" "), ...nonInputs(StateCodesUS.Arkansas)),
|
|
248
|
+
transformOnType: uppercase
|
|
249
|
+
},
|
|
250
|
+
[StateCodesUS.California]: {
|
|
251
|
+
mask: makeMask(...numericInputs(7), ...numericInputs(5, true), ...nonInputs(" "), ...nonInputs(StateCodesUS.California)),
|
|
252
|
+
transformOnType: uppercase
|
|
253
|
+
},
|
|
254
|
+
[StateCodesUS.Colorado]: {
|
|
255
|
+
mask: makeMask(...numericInputs(11), ...nonInputs(" "), ...nonInputs(StateCodesUS.Colorado)),
|
|
256
|
+
transformOnType: uppercase
|
|
257
|
+
},
|
|
258
|
+
[StateCodesUS.Connecticut]: {
|
|
259
|
+
mask: makeMask(...numericInputs(7), ...nonInputs(" "), ...nonInputs(StateCodesUS.Connecticut)),
|
|
260
|
+
transformOnType: uppercase
|
|
261
|
+
},
|
|
262
|
+
[StateCodesUS.Delaware]: {
|
|
263
|
+
mask: makeMask(...numericInputs(7), ...nonInputs(" "), ...nonInputs(StateCodesUS.Delaware)),
|
|
264
|
+
transformOnType: uppercase
|
|
265
|
+
},
|
|
266
|
+
[StateCodesUS.Florida]: {
|
|
267
|
+
mask: makeMask(...numericInputs(6), ...numericInputs(6, true), ...nonInputs(" "), ...nonInputs(StateCodesUS.Florida)),
|
|
268
|
+
transformOnType: uppercase
|
|
269
|
+
},
|
|
270
|
+
[StateCodesUS.Georgia]: {
|
|
271
|
+
mask: makeMask(...numericInputs(8), ...nonInputs(" "), ...nonInputs(StateCodesUS.Georgia)),
|
|
272
|
+
transformOnType: uppercase
|
|
273
|
+
},
|
|
274
|
+
[StateCodesUS.Hawaii]: {
|
|
275
|
+
mask: makeMask(...numericInputs(5), ...numericInputs(3, true), {
|
|
276
|
+
type: "input",
|
|
277
|
+
allow: /[CDFLNPTZ]/
|
|
278
|
+
}, {
|
|
279
|
+
type: "input",
|
|
280
|
+
allow: /[1-8Z]/
|
|
281
|
+
}, ...nonInputs(" "), ...nonInputs(StateCodesUS.Hawaii)),
|
|
282
|
+
transformOnType: uppercase
|
|
283
|
+
},
|
|
284
|
+
[StateCodesUS.Idaho]: {
|
|
285
|
+
mask: makeMask(...numericInputs(6), ...nonInputs(" "), ...nonInputs(StateCodesUS.Idaho)),
|
|
286
|
+
transformOnType: uppercase
|
|
287
|
+
},
|
|
288
|
+
[StateCodesUS.Illinois]: {
|
|
289
|
+
mask: makeMask(...numericInputs(8), ...nonInputs(" "), ...nonInputs(StateCodesUS.Illinois)),
|
|
290
|
+
transformOnType: uppercase
|
|
291
|
+
},
|
|
292
|
+
[StateCodesUS.Indiana]: {
|
|
293
|
+
mask: makeMask(...numericInputs(10), ...nonInputs(" "), ...nonInputs(StateCodesUS.Indiana)),
|
|
294
|
+
transformOnType: uppercase
|
|
295
|
+
},
|
|
296
|
+
[StateCodesUS.Iowa]: {
|
|
297
|
+
mask: makeMask(...numericInputs(6), ...numericInputs(2, true), ...nonInputs(" "), ...nonInputs(StateCodesUS.Iowa)),
|
|
298
|
+
transformOnType: uppercase
|
|
299
|
+
},
|
|
300
|
+
[StateCodesUS.Kansas]: {
|
|
301
|
+
mask: makeMask(...numericInputs(7), ...numericInputs(2, true), ...nonInputs(" "), ...nonInputs(StateCodesUS.Kansas)),
|
|
302
|
+
transformOnType: uppercase
|
|
303
|
+
},
|
|
304
|
+
[StateCodesUS.Kentucky]: {
|
|
305
|
+
mask: makeMask(...numericInputs(9), ...numericInputs(1, true), ...nonInputs(" "), ...nonInputs(StateCodesUS.Kentucky)),
|
|
306
|
+
transformOnType: uppercase
|
|
307
|
+
},
|
|
308
|
+
[StateCodesUS.Louisiana]: {
|
|
309
|
+
mask: makeMask(...numericInputs(9), ...numericInputs(1, true), ...nonInputs(" "), ...nonInputs(StateCodesUS.Louisiana)),
|
|
310
|
+
transformOnType: uppercase
|
|
311
|
+
},
|
|
312
|
+
[StateCodesUS.Maine]: {
|
|
313
|
+
mask: makeMask(...numericInputs(8), ...nonInputs(" "), ...nonInputs(StateCodesUS.Maine)),
|
|
314
|
+
transformOnType: uppercase
|
|
315
|
+
},
|
|
316
|
+
[StateCodesUS.Maryland]: {
|
|
317
|
+
mask: makeMask(...numericInputs(8), ...nonInputs(" "), ...nonInputs(StateCodesUS.Maryland)),
|
|
318
|
+
transformOnType: uppercase
|
|
319
|
+
},
|
|
320
|
+
[StateCodesUS.Massachusetts]: {
|
|
321
|
+
mask: makeMask(...numericInputs(10), ...nonInputs(" "), ...nonInputs(StateCodesUS.Massachusetts)),
|
|
322
|
+
transformOnType: uppercase
|
|
323
|
+
},
|
|
324
|
+
[StateCodesUS.Michigan]: {
|
|
325
|
+
mask: makeMask(...numericInputs(6), ...numericInputs(3, true), ...nonInputs(" "), ...nonInputs(StateCodesUS.Michigan)),
|
|
326
|
+
transformOnType: uppercase
|
|
327
|
+
},
|
|
328
|
+
[StateCodesUS.Minnesota]: {
|
|
329
|
+
mask: makeMask(...numericInputs(7), ...nonInputs(" "), ...nonInputs(StateCodesUS.Minnesota)),
|
|
330
|
+
transformOnType: uppercase
|
|
331
|
+
},
|
|
332
|
+
[StateCodesUS.Mississippi]: {
|
|
333
|
+
mask: makeMask(...numericInputs(7), ...numericInputs(3, true), ...nonInputs(" "), ...nonInputs(StateCodesUS.Mississippi)),
|
|
334
|
+
transformOnType: uppercase
|
|
335
|
+
},
|
|
336
|
+
[StateCodesUS.Missouri]: {
|
|
337
|
+
mask: makeMask(...numericInputs(10), ...nonInputs(" "), ...nonInputs(StateCodesUS.Missouri)),
|
|
338
|
+
transformOnType: uppercase
|
|
339
|
+
},
|
|
340
|
+
[StateCodesUS.Montana]: {
|
|
341
|
+
mask: makeMask(...numericInputs(7), ...nonInputs(" "), ...nonInputs(StateCodesUS.Montana)),
|
|
342
|
+
transformOnType: uppercase
|
|
343
|
+
},
|
|
344
|
+
[StateCodesUS.Nebraska]: {
|
|
345
|
+
mask: makeMask(...numericInputs(9), ...numericInputs(2, true), ...nonInputs(" "), ...nonInputs(StateCodesUS.Nebraska)),
|
|
346
|
+
transformOnType: uppercase
|
|
347
|
+
},
|
|
348
|
+
[StateCodesUS.Nevada]: {
|
|
349
|
+
mask: makeMask(...numericInputs(9), ...numericInputs(2, true), ...nonInputs(" "), ...nonInputs(StateCodesUS.Nevada)),
|
|
350
|
+
transformOnType: uppercase
|
|
351
|
+
},
|
|
352
|
+
[StateCodesUS.NewHampshire]: {
|
|
353
|
+
mask: makeMask(...numericInputs(9), ...nonInputs(" "), ...nonInputs(StateCodesUS.NewHampshire)),
|
|
354
|
+
transformOnType: uppercase
|
|
355
|
+
},
|
|
356
|
+
[StateCodesUS.NewJersey]: {
|
|
357
|
+
mask: makeMask(...numericInputs(10), ...nonInputs(" "), ...nonInputs(StateCodesUS.NewJersey)),
|
|
358
|
+
transformOnType: uppercase
|
|
359
|
+
},
|
|
360
|
+
[StateCodesUS.NewMexico]: {
|
|
361
|
+
mask: makeMask(...numericInputs(6), ...nonInputs(" "), ...nonInputs(StateCodesUS.NewMexico)),
|
|
362
|
+
transformOnType: uppercase
|
|
363
|
+
},
|
|
364
|
+
[StateCodesUS.NewYork]: {
|
|
365
|
+
mask: makeMask(...numericInputs(7), ...nonInputs(" "), ...nonInputs(StateCodesUS.NewYork)),
|
|
366
|
+
transformOnType: uppercase
|
|
367
|
+
},
|
|
368
|
+
[StateCodesUS.NorthCarolina]: {
|
|
369
|
+
mask: makeMask(...numericInputs(7), ...nonInputs(" "), ...nonInputs(StateCodesUS.NorthCarolina)),
|
|
370
|
+
transformOnType: uppercase
|
|
371
|
+
},
|
|
372
|
+
[StateCodesUS.NorthDakota]: {
|
|
373
|
+
mask: makeMask(...numericInputs(7), ...numericInputs(3, true), ...nonInputs(" "), ...nonInputs(StateCodesUS.NorthDakota)),
|
|
374
|
+
transformOnType: uppercase
|
|
375
|
+
},
|
|
376
|
+
[StateCodesUS.Ohio]: {
|
|
377
|
+
mask: makeMask(...numericInputs(10), ...nonInputs(" "), ...nonInputs(StateCodesUS.Ohio)),
|
|
378
|
+
transformOnType: uppercase
|
|
379
|
+
},
|
|
380
|
+
[StateCodesUS.Oklahoma]: {
|
|
381
|
+
mask: makeMask(...numericInputs(10), ...nonInputs(" "), ...nonInputs(StateCodesUS.Oklahoma)),
|
|
382
|
+
transformOnType: uppercase
|
|
383
|
+
},
|
|
384
|
+
[StateCodesUS.Oregon]: {
|
|
385
|
+
mask: makeMask(...numericInputs(9), ...nonInputs(" "), ...nonInputs(StateCodesUS.Oregon)),
|
|
386
|
+
transformOnType: uppercase
|
|
387
|
+
},
|
|
388
|
+
[StateCodesUS.Pennsylvania]: {
|
|
389
|
+
mask: makeMask(...numericInputs(7), ...nonInputs(" "), ...nonInputs(StateCodesUS.Pennsylvania)),
|
|
390
|
+
transformOnType: uppercase
|
|
391
|
+
},
|
|
392
|
+
[StateCodesUS.RhodeIsland]: {
|
|
393
|
+
mask: makeMask(...numericInputs(7), ...nonInputs(" "), ...nonInputs(StateCodesUS.RhodeIsland)),
|
|
394
|
+
transformOnType: uppercase
|
|
395
|
+
},
|
|
396
|
+
[StateCodesUS.SouthCarolina]: {
|
|
397
|
+
mask: makeMask(...numericInputs(7), ...nonInputs(" "), ...nonInputs(StateCodesUS.SouthCarolina)),
|
|
398
|
+
transformOnType: uppercase
|
|
399
|
+
},
|
|
400
|
+
[StateCodesUS.SouthDakota]: {
|
|
401
|
+
mask: makeMask(...numericInputs(7), ...nonInputs(" "), ...nonInputs(StateCodesUS.SouthDakota)),
|
|
402
|
+
transformOnType: uppercase
|
|
403
|
+
},
|
|
404
|
+
[StateCodesUS.Tennessee]: {
|
|
405
|
+
mask: makeMask(...numericInputs(6), ...nonInputs(" "), ...nonInputs(StateCodesUS.Tennessee)),
|
|
406
|
+
transformOnType: uppercase
|
|
407
|
+
},
|
|
408
|
+
[StateCodesUS.Texas]: {
|
|
409
|
+
mask: makeMask(...numericInputs(10), ...nonInputs(" "), ...nonInputs(StateCodesUS.Texas)),
|
|
410
|
+
transformOnType: uppercase
|
|
411
|
+
},
|
|
412
|
+
[StateCodesUS.Utah]: {
|
|
413
|
+
mask: makeMask(...numericInputs(7), ...nonInputs(" "), ...nonInputs(StateCodesUS.Utah)),
|
|
414
|
+
transformOnType: uppercase
|
|
415
|
+
},
|
|
416
|
+
[StateCodesUS.Vermont]: {
|
|
417
|
+
mask: makeMask(...numericInputs(6), ...nonInputs(" "), ...nonInputs(StateCodesUS.Vermont)),
|
|
418
|
+
transformOnType: uppercase
|
|
419
|
+
},
|
|
420
|
+
[StateCodesUS.Virginia]: {
|
|
421
|
+
mask: makeMask(...numericInputs(7), ...nonInputs(" "), ...nonInputs(StateCodesUS.Virginia)),
|
|
422
|
+
transformOnType: uppercase
|
|
423
|
+
},
|
|
424
|
+
[StateCodesUS.Washington]: {
|
|
425
|
+
mask: makeMask(...numericInputs(9), ...nonInputs(" "), ...nonInputs(StateCodesUS.Washington)),
|
|
426
|
+
transformOnType: uppercase
|
|
427
|
+
},
|
|
428
|
+
[StateCodesUS.WestVirginia]: {
|
|
429
|
+
mask: makeMask(...numericInputs(6), ...nonInputs(" "), ...nonInputs(StateCodesUS.WestVirginia)),
|
|
430
|
+
transformOnType: uppercase
|
|
431
|
+
},
|
|
432
|
+
[StateCodesUS.Wisconsin]: {
|
|
433
|
+
mask: makeMask(...numericInputs(6), ...nonInputs(" "), ...nonInputs(StateCodesUS.Wisconsin)),
|
|
434
|
+
transformOnType: uppercase
|
|
435
|
+
},
|
|
436
|
+
[StateCodesUS.Wyoming]: {
|
|
437
|
+
mask: makeMask(...numericInputs(6), ...nonInputs(" "), ...nonInputs(StateCodesUS.Wyoming)),
|
|
438
|
+
transformOnType: uppercase
|
|
439
|
+
},
|
|
440
|
+
[StateCodesUS.DistrictOfColumbia]: {
|
|
441
|
+
mask: makeMask(...numericInputs(9)),
|
|
442
|
+
transformOnType: uppercase
|
|
443
|
+
},
|
|
444
|
+
[StateCodesUS.ArmedForcesAmericas]: {
|
|
445
|
+
mask: makeMask(...numericInputs(9)),
|
|
446
|
+
transformOnType: uppercase
|
|
447
|
+
},
|
|
448
|
+
[StateCodesUS.ArmedForcesEurope]: {
|
|
449
|
+
mask: makeMask(...numericInputs(9)),
|
|
450
|
+
transformOnType: uppercase
|
|
451
|
+
},
|
|
452
|
+
[StateCodesUS.ArmedForcesPacific]: {
|
|
453
|
+
mask: makeMask(...numericInputs(9)),
|
|
454
|
+
transformOnType: uppercase
|
|
455
|
+
},
|
|
456
|
+
default: {
|
|
457
|
+
mask: makeMask(...numericInputs(9)),
|
|
458
|
+
transformOnType: uppercase
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
};
|
|
462
|
+
var stateFormatGuidanceText = {
|
|
463
|
+
[StateCodesUS.Alabama]: {
|
|
464
|
+
key: "enterNDigitsForExample",
|
|
465
|
+
values: {
|
|
466
|
+
numDigits: "9",
|
|
467
|
+
example: "123456789 AL"
|
|
468
|
+
}
|
|
469
|
+
},
|
|
470
|
+
[StateCodesUS.Alaska]: {
|
|
471
|
+
key: "enterNDigitsForExample",
|
|
472
|
+
values: {
|
|
473
|
+
numDigits: "8",
|
|
474
|
+
example: "12345678 AK"
|
|
475
|
+
}
|
|
476
|
+
},
|
|
477
|
+
[StateCodesUS.Arizona]: {
|
|
478
|
+
key: "enterNDigitsForExample",
|
|
479
|
+
values: {
|
|
480
|
+
numDigits: "8",
|
|
481
|
+
example: "12345678 AZ"
|
|
482
|
+
}
|
|
483
|
+
},
|
|
484
|
+
[StateCodesUS.Arkansas]: {
|
|
485
|
+
key: "enterTheRemainingNDigitsForExample",
|
|
486
|
+
values: {
|
|
487
|
+
numDigits: "8",
|
|
488
|
+
example: "800000001 AR"
|
|
489
|
+
}
|
|
490
|
+
},
|
|
491
|
+
[StateCodesUS.California]: {
|
|
492
|
+
key: "enterXOrYDigitsForExample",
|
|
493
|
+
values: {
|
|
494
|
+
xDigits: "8",
|
|
495
|
+
yDigits: "12",
|
|
496
|
+
example: "12345678 CA"
|
|
497
|
+
}
|
|
498
|
+
},
|
|
499
|
+
[StateCodesUS.Colorado]: {
|
|
500
|
+
key: "enterNDigitsForExample",
|
|
501
|
+
values: {
|
|
502
|
+
numDigits: "11",
|
|
503
|
+
example: "12345678901 CO"
|
|
504
|
+
}
|
|
505
|
+
},
|
|
506
|
+
[StateCodesUS.Connecticut]: {
|
|
507
|
+
key: "enterNDigitsForExample",
|
|
508
|
+
values: {
|
|
509
|
+
numDigits: "7",
|
|
510
|
+
example: "1234567 CT"
|
|
511
|
+
}
|
|
512
|
+
},
|
|
513
|
+
[StateCodesUS.Delaware]: {
|
|
514
|
+
key: "enterNDigitsForExample",
|
|
515
|
+
values: {
|
|
516
|
+
numDigits: "7",
|
|
517
|
+
example: "1234567 DE"
|
|
518
|
+
}
|
|
519
|
+
},
|
|
520
|
+
[StateCodesUS.Florida]: {
|
|
521
|
+
key: "enterXOrYDigitsForExample",
|
|
522
|
+
values: {
|
|
523
|
+
xDigits: "6",
|
|
524
|
+
yDigits: "12",
|
|
525
|
+
example: "123456789012 FL"
|
|
526
|
+
}
|
|
527
|
+
},
|
|
528
|
+
[StateCodesUS.Georgia]: {
|
|
529
|
+
key: "enterNDigitsForExample",
|
|
530
|
+
values: {
|
|
531
|
+
numDigits: "8",
|
|
532
|
+
example: "12345678 GA"
|
|
533
|
+
}
|
|
534
|
+
},
|
|
535
|
+
[StateCodesUS.Hawaii]: {
|
|
536
|
+
key: "validationPleaseEnterAValidBusinessRegistrationNumberWithFormat",
|
|
537
|
+
values: { example: "12345678ZZ HI" }
|
|
538
|
+
},
|
|
539
|
+
[StateCodesUS.Idaho]: {
|
|
540
|
+
key: "enterNDigitsForExample",
|
|
541
|
+
values: {
|
|
542
|
+
numDigits: "6",
|
|
543
|
+
example: "123456 ID"
|
|
544
|
+
}
|
|
545
|
+
},
|
|
546
|
+
[StateCodesUS.Illinois]: {
|
|
547
|
+
key: "enterNDigitsForExample",
|
|
548
|
+
values: {
|
|
549
|
+
numDigits: "8",
|
|
550
|
+
example: "12345678 IL"
|
|
551
|
+
}
|
|
552
|
+
},
|
|
553
|
+
[StateCodesUS.Indiana]: {
|
|
554
|
+
key: "enterNDigitsForExample",
|
|
555
|
+
values: {
|
|
556
|
+
numDigits: "10",
|
|
557
|
+
example: "1234567890 IN"
|
|
558
|
+
}
|
|
559
|
+
},
|
|
560
|
+
[StateCodesUS.Iowa]: {
|
|
561
|
+
key: "enterXToYDigitsForExample",
|
|
562
|
+
values: {
|
|
563
|
+
minDigits: "6",
|
|
564
|
+
maxDigits: "8",
|
|
565
|
+
example: "12345678 IA"
|
|
566
|
+
}
|
|
567
|
+
},
|
|
568
|
+
[StateCodesUS.Kansas]: {
|
|
569
|
+
key: "enterXToYDigitsForExample",
|
|
570
|
+
values: {
|
|
571
|
+
minDigits: "7",
|
|
572
|
+
maxDigits: "9",
|
|
573
|
+
example: "1234567890 KS"
|
|
574
|
+
}
|
|
575
|
+
},
|
|
576
|
+
[StateCodesUS.Kentucky]: {
|
|
577
|
+
key: "enterXToYDigitsForExample",
|
|
578
|
+
values: {
|
|
579
|
+
minDigits: "9",
|
|
580
|
+
maxDigits: "10",
|
|
581
|
+
example: "1234567890 KY"
|
|
582
|
+
}
|
|
583
|
+
},
|
|
584
|
+
[StateCodesUS.Louisiana]: {
|
|
585
|
+
key: "enterXToYDigitsForExample",
|
|
586
|
+
values: {
|
|
587
|
+
minDigits: "9",
|
|
588
|
+
maxDigits: "10",
|
|
589
|
+
example: "1234567890 LA"
|
|
590
|
+
}
|
|
591
|
+
},
|
|
592
|
+
[StateCodesUS.Maine]: {
|
|
593
|
+
key: "enterNDigitsForExample",
|
|
594
|
+
values: {
|
|
595
|
+
numDigits: "8",
|
|
596
|
+
example: "12345678 ME"
|
|
597
|
+
}
|
|
598
|
+
},
|
|
599
|
+
[StateCodesUS.Maryland]: {
|
|
600
|
+
key: "enterNDigitsForExample",
|
|
601
|
+
values: {
|
|
602
|
+
numDigits: "8",
|
|
603
|
+
example: "12345678 MD"
|
|
604
|
+
}
|
|
605
|
+
},
|
|
606
|
+
[StateCodesUS.Massachusetts]: {
|
|
607
|
+
key: "enterNDigitsForExample",
|
|
608
|
+
values: {
|
|
609
|
+
numDigits: "10",
|
|
610
|
+
example: "1234567890 MA"
|
|
611
|
+
}
|
|
612
|
+
},
|
|
613
|
+
[StateCodesUS.Michigan]: {
|
|
614
|
+
key: "enterXOrYDigitsForExample",
|
|
615
|
+
values: {
|
|
616
|
+
xDigits: "6",
|
|
617
|
+
yDigits: "9",
|
|
618
|
+
example: "123456 MI"
|
|
619
|
+
}
|
|
620
|
+
},
|
|
621
|
+
[StateCodesUS.Minnesota]: {
|
|
622
|
+
key: "enterNDigitsForExample",
|
|
623
|
+
values: {
|
|
624
|
+
numDigits: "7",
|
|
625
|
+
example: "1234567 MN"
|
|
626
|
+
}
|
|
627
|
+
},
|
|
628
|
+
[StateCodesUS.Mississippi]: {
|
|
629
|
+
key: "enterXToYDigitsForExample",
|
|
630
|
+
values: {
|
|
631
|
+
minDigits: "7",
|
|
632
|
+
maxDigits: "10",
|
|
633
|
+
example: "1234567 MS"
|
|
634
|
+
}
|
|
635
|
+
},
|
|
636
|
+
[StateCodesUS.Missouri]: {
|
|
637
|
+
key: "enterNDigitsForExample",
|
|
638
|
+
values: {
|
|
639
|
+
numDigits: "10",
|
|
640
|
+
example: "1234567890 MO"
|
|
641
|
+
}
|
|
642
|
+
},
|
|
643
|
+
[StateCodesUS.Montana]: {
|
|
644
|
+
key: "enterNDigitsForExample",
|
|
645
|
+
values: {
|
|
646
|
+
numDigits: "7",
|
|
647
|
+
example: "1234567 MT"
|
|
648
|
+
}
|
|
649
|
+
},
|
|
650
|
+
[StateCodesUS.Nebraska]: {
|
|
651
|
+
key: "enterXToYDigitsForExample",
|
|
652
|
+
values: {
|
|
653
|
+
minDigits: "9",
|
|
654
|
+
maxDigits: "11",
|
|
655
|
+
example: "123456789 NE"
|
|
656
|
+
}
|
|
657
|
+
},
|
|
658
|
+
[StateCodesUS.Nevada]: {
|
|
659
|
+
key: "enterXToYDigitsForExample",
|
|
660
|
+
values: {
|
|
661
|
+
minDigits: "9",
|
|
662
|
+
maxDigits: "11",
|
|
663
|
+
example: "123456789 NV"
|
|
664
|
+
}
|
|
665
|
+
},
|
|
666
|
+
[StateCodesUS.NewHampshire]: {
|
|
667
|
+
key: "enterNDigitsForExample",
|
|
668
|
+
values: {
|
|
669
|
+
numDigits: "9",
|
|
670
|
+
example: "123456789 NH"
|
|
671
|
+
}
|
|
672
|
+
},
|
|
673
|
+
[StateCodesUS.NewJersey]: {
|
|
674
|
+
key: "enterNDigitsForExample",
|
|
675
|
+
values: {
|
|
676
|
+
numDigits: "10",
|
|
677
|
+
example: "1234567890 NJ"
|
|
678
|
+
}
|
|
679
|
+
},
|
|
680
|
+
[StateCodesUS.NewMexico]: {
|
|
681
|
+
key: "enterNDigitsForExample",
|
|
682
|
+
values: {
|
|
683
|
+
numDigits: "6",
|
|
684
|
+
example: "123456 NM"
|
|
685
|
+
}
|
|
686
|
+
},
|
|
687
|
+
[StateCodesUS.NewYork]: {
|
|
688
|
+
key: "enterNDigitsForExample",
|
|
689
|
+
values: {
|
|
690
|
+
numDigits: "7",
|
|
691
|
+
example: "1234567 NY"
|
|
692
|
+
}
|
|
693
|
+
},
|
|
694
|
+
[StateCodesUS.NorthCarolina]: {
|
|
695
|
+
key: "enterNDigitsForExample",
|
|
696
|
+
values: {
|
|
697
|
+
numDigits: "7",
|
|
698
|
+
example: "1234567 NC"
|
|
699
|
+
}
|
|
700
|
+
},
|
|
701
|
+
[StateCodesUS.NorthDakota]: {
|
|
702
|
+
key: "enterXToYDigitsForExample",
|
|
703
|
+
values: {
|
|
704
|
+
minDigits: "7",
|
|
705
|
+
maxDigits: "10",
|
|
706
|
+
example: "1234567 ND"
|
|
707
|
+
}
|
|
708
|
+
},
|
|
709
|
+
[StateCodesUS.Ohio]: {
|
|
710
|
+
key: "enterNDigitsForExample",
|
|
711
|
+
values: {
|
|
712
|
+
numDigits: "10",
|
|
713
|
+
example: "1234567890 OH"
|
|
714
|
+
}
|
|
715
|
+
},
|
|
716
|
+
[StateCodesUS.Oklahoma]: {
|
|
717
|
+
key: "enterNDigitsForExample",
|
|
718
|
+
values: {
|
|
719
|
+
numDigits: "10",
|
|
720
|
+
example: "1234567890 OK"
|
|
721
|
+
}
|
|
722
|
+
},
|
|
723
|
+
[StateCodesUS.Oregon]: {
|
|
724
|
+
key: "enterNDigitsForExample",
|
|
725
|
+
values: {
|
|
726
|
+
numDigits: "9",
|
|
727
|
+
example: "123456789 OR"
|
|
728
|
+
}
|
|
729
|
+
},
|
|
730
|
+
[StateCodesUS.Pennsylvania]: {
|
|
731
|
+
key: "enterNDigitsForExample",
|
|
732
|
+
values: {
|
|
733
|
+
numDigits: "7",
|
|
734
|
+
example: "1234567 PA"
|
|
735
|
+
}
|
|
736
|
+
},
|
|
737
|
+
[StateCodesUS.RhodeIsland]: {
|
|
738
|
+
key: "enterNDigitsForExample",
|
|
739
|
+
values: {
|
|
740
|
+
numDigits: "7",
|
|
741
|
+
example: "1234567 RI"
|
|
742
|
+
}
|
|
743
|
+
},
|
|
744
|
+
[StateCodesUS.SouthCarolina]: {
|
|
745
|
+
key: "enterNDigitsForExample",
|
|
746
|
+
values: {
|
|
747
|
+
numDigits: "7",
|
|
748
|
+
example: "1234567 SC"
|
|
749
|
+
}
|
|
750
|
+
},
|
|
751
|
+
[StateCodesUS.SouthDakota]: {
|
|
752
|
+
key: "enterNDigitsForExample",
|
|
753
|
+
values: {
|
|
754
|
+
numDigits: "7",
|
|
755
|
+
example: "1234567 SD"
|
|
756
|
+
}
|
|
757
|
+
},
|
|
758
|
+
[StateCodesUS.Tennessee]: {
|
|
759
|
+
key: "enterNDigitsForExample",
|
|
760
|
+
values: {
|
|
761
|
+
numDigits: "6",
|
|
762
|
+
example: "123456 TN"
|
|
763
|
+
}
|
|
764
|
+
},
|
|
765
|
+
[StateCodesUS.Texas]: {
|
|
766
|
+
key: "enterNDigitsForExample",
|
|
767
|
+
values: {
|
|
768
|
+
numDigits: "10",
|
|
769
|
+
example: "1234567890 TX"
|
|
770
|
+
}
|
|
771
|
+
},
|
|
772
|
+
[StateCodesUS.Utah]: {
|
|
773
|
+
key: "enterNDigitsForExample",
|
|
774
|
+
values: {
|
|
775
|
+
numDigits: "7",
|
|
776
|
+
example: "1234567 UT"
|
|
777
|
+
}
|
|
778
|
+
},
|
|
779
|
+
[StateCodesUS.Vermont]: {
|
|
780
|
+
key: "enterNDigitsForExample",
|
|
781
|
+
values: {
|
|
782
|
+
numDigits: "6",
|
|
783
|
+
example: "123456 VT"
|
|
784
|
+
}
|
|
785
|
+
},
|
|
786
|
+
[StateCodesUS.Virginia]: {
|
|
787
|
+
key: "enterNDigitsForExample",
|
|
788
|
+
values: {
|
|
789
|
+
numDigits: "7",
|
|
790
|
+
example: "1234567 VA"
|
|
791
|
+
}
|
|
792
|
+
},
|
|
793
|
+
[StateCodesUS.Washington]: {
|
|
794
|
+
key: "enterNDigitsForExample",
|
|
795
|
+
values: {
|
|
796
|
+
numDigits: "9",
|
|
797
|
+
example: "123456789 WA"
|
|
798
|
+
}
|
|
799
|
+
},
|
|
800
|
+
[StateCodesUS.WestVirginia]: {
|
|
801
|
+
key: "enterNDigitsForExample",
|
|
802
|
+
values: {
|
|
803
|
+
numDigits: "6",
|
|
804
|
+
example: "123456 WV"
|
|
805
|
+
}
|
|
806
|
+
},
|
|
807
|
+
[StateCodesUS.Wisconsin]: {
|
|
808
|
+
key: "enterNDigitsForExample",
|
|
809
|
+
values: {
|
|
810
|
+
numDigits: "6",
|
|
811
|
+
example: "123456 WI"
|
|
812
|
+
}
|
|
813
|
+
},
|
|
814
|
+
[StateCodesUS.Wyoming]: {
|
|
815
|
+
key: "enterNDigitsForExample",
|
|
816
|
+
values: {
|
|
817
|
+
numDigits: "6",
|
|
818
|
+
example: "123456 WY"
|
|
819
|
+
}
|
|
820
|
+
},
|
|
821
|
+
[StateCodesUS.DistrictOfColumbia]: {
|
|
822
|
+
key: "enterNDigitsForExample",
|
|
823
|
+
values: {
|
|
824
|
+
numDigits: "9",
|
|
825
|
+
example: "123456789"
|
|
826
|
+
}
|
|
827
|
+
},
|
|
828
|
+
[StateCodesUS.ArmedForcesAmericas]: {
|
|
829
|
+
key: "enterNDigitsForExample",
|
|
830
|
+
values: {
|
|
831
|
+
numDigits: "9",
|
|
832
|
+
example: "123456789"
|
|
833
|
+
}
|
|
834
|
+
},
|
|
835
|
+
[StateCodesUS.ArmedForcesEurope]: {
|
|
836
|
+
key: "enterNDigitsForExample",
|
|
837
|
+
values: {
|
|
838
|
+
numDigits: "9",
|
|
839
|
+
example: "123456789"
|
|
840
|
+
}
|
|
841
|
+
},
|
|
842
|
+
[StateCodesUS.ArmedForcesPacific]: {
|
|
843
|
+
key: "enterNDigitsForExample",
|
|
844
|
+
values: {
|
|
845
|
+
numDigits: "9",
|
|
846
|
+
example: "123456789"
|
|
847
|
+
}
|
|
848
|
+
},
|
|
849
|
+
default: {
|
|
850
|
+
key: "enterNDigitsForExample",
|
|
851
|
+
values: {
|
|
852
|
+
numDigits: "9",
|
|
853
|
+
example: "123456789"
|
|
854
|
+
}
|
|
855
|
+
}
|
|
856
|
+
};
|
|
857
|
+
//#endregion
|
|
858
|
+
//#region src/utils/regex/businessRegistrationNumberPatterns.ts
|
|
859
|
+
var businessRegistrationNumberPatterns = {
|
|
860
|
+
[CountryCodes.Australia]: {
|
|
861
|
+
default: /^\d{9}$/,
|
|
862
|
+
associationIncorporated: /^[a-zA-Z0-9]{3,20}$/
|
|
863
|
+
},
|
|
864
|
+
[CountryCodes.Austria]: {
|
|
865
|
+
firmenbuchnummer: /^(FN|T)\d{3,6}[a-z]$/,
|
|
866
|
+
ZVR: /^(AT-ZVR-)\d{9,10}$/
|
|
867
|
+
},
|
|
868
|
+
[CountryCodes.Belgium]: { default: /^\d{10}$/ },
|
|
869
|
+
[CountryCodes.Brazil]: { default: /^\d{14}$/ },
|
|
870
|
+
[CountryCodes.Bulgaria]: { default: /^\d{9}$/ },
|
|
871
|
+
[CountryCodes.Canada]: { default: /^[a-zA-Z0-9]{5,10}$/ },
|
|
872
|
+
[CountryCodes.Croatia]: {
|
|
873
|
+
default: /^\d{9}$/,
|
|
874
|
+
soleProprietorship: /^\d{8}$/
|
|
875
|
+
},
|
|
876
|
+
[CountryCodes.Cyprus]: { default: /^[COP]{1}\d{1,8}$/ },
|
|
877
|
+
[CountryCodes.CzechRepublic]: { default: /^\d{8,10}$/ },
|
|
878
|
+
[CountryCodes.Denmark]: { default: /^\d{8}$/ },
|
|
879
|
+
[CountryCodes.Estonia]: { default: /^\d{8}$/ },
|
|
880
|
+
[CountryCodes.Finland]: { default: /^\d{7}-?\d$/ },
|
|
881
|
+
[CountryCodes.France]: {
|
|
882
|
+
SIRET: /^\d{9}-?\d{5}$/,
|
|
883
|
+
RNA: /^W(\d{9}|\d[A-Za-z]\d{7})$/
|
|
884
|
+
},
|
|
885
|
+
[CountryCodes.Gibraltar]: { default: /^[a-zA-Z0-9]{1,8}$/ },
|
|
886
|
+
[CountryCodes.Germany]: { default: /^[A-Z]{2,3}\d{1,6}[A-Z]{0,5}(?:-[A-Z]\d{4})?$/ },
|
|
887
|
+
[CountryCodes.Greece]: { default: /^\d{12}$/ },
|
|
888
|
+
[CountryCodes.Guernsey]: { default: /^\d{1,9}$/ },
|
|
889
|
+
[CountryCodes.HongKong]: { default: /^\d{7}$/ },
|
|
890
|
+
[CountryCodes.Hungary]: {
|
|
891
|
+
default: /^\d{10}$/,
|
|
892
|
+
nyilvantartasiSzam: /^\d{7,10}$/
|
|
893
|
+
},
|
|
894
|
+
[CountryCodes.Iceland]: { default: /^\d{10}$/ },
|
|
895
|
+
[CountryCodes.India]: { default: /^\d{21}$/ },
|
|
896
|
+
[CountryCodes.Indonesia]: { default: /^\d{12}$/ },
|
|
897
|
+
[CountryCodes.Ireland]: { default: /^[1-9]\d{1,7}$/ },
|
|
898
|
+
[CountryCodes.IsleOfMan]: { default: /^\d{6}[A-Z]$/ },
|
|
899
|
+
[CountryCodes.Italy]: {
|
|
900
|
+
partitaIVA: /^\d{11}$/,
|
|
901
|
+
CCIAA: /^[a-zA-Z]{2}\d{6,7}$/
|
|
902
|
+
},
|
|
903
|
+
[CountryCodes.Japan]: { default: /^\d{12}$/ },
|
|
904
|
+
[CountryCodes.Jersey]: { default: /^[a-zA-Z0-9]{1,9}$/ },
|
|
905
|
+
[CountryCodes.Korea]: { default: /^\d{10}$/ },
|
|
906
|
+
[CountryCodes.Latvia]: { default: /^\d{11}$/ },
|
|
907
|
+
[CountryCodes.Liechtenstein]: { default: /FL-[0-9]{4}[.][0-9]{3}[.][0-9]{3}-[0-9]$/ },
|
|
908
|
+
[CountryCodes.Lithuania]: { default: /^\d{6,9}$/ },
|
|
909
|
+
[CountryCodes.Luxembourg]: { default: /^[a-zA-Z]\d{1,9}$/ },
|
|
910
|
+
[CountryCodes.Malaysia]: { default: /^\d{7}$|^\d{12}$/ },
|
|
911
|
+
[CountryCodes.Malta]: { default: /^[CP]\s?\d{4,6}$/ },
|
|
912
|
+
[CountryCodes.Monaco]: {
|
|
913
|
+
default: /^[0-9]{2}[A-Z]{1,3}[0-9]{5}$/,
|
|
914
|
+
soleProprietorship: /^\d{2,4}[A-Z]\d{5}$/
|
|
915
|
+
},
|
|
916
|
+
[CountryCodes.Netherlands]: { default: /^\d{8}$/ },
|
|
917
|
+
[CountryCodes.NewZealand]: {
|
|
918
|
+
NZBN: /^\d{13}$/,
|
|
919
|
+
companyNumberNZ: /^\d{7}$/
|
|
920
|
+
},
|
|
921
|
+
[CountryCodes.Norway]: { default: /^\d{9}$/ },
|
|
922
|
+
[CountryCodes.Poland]: {
|
|
923
|
+
krsNumber: /^\d{10}$/,
|
|
924
|
+
regon: /^\d{9}$/
|
|
925
|
+
},
|
|
926
|
+
[CountryCodes.Portugal]: { default: /^\d{9}$/ },
|
|
927
|
+
[CountryCodes.Romania]: {
|
|
928
|
+
roRegNumberOldFormat: /^[A-Z]\d{1,2}\/\d{1,9}\/\d{4}$/,
|
|
929
|
+
roRegNumberNewFormat: /^[JFC]\d{13}$/
|
|
930
|
+
},
|
|
931
|
+
[CountryCodes.Singapore]: { default: /^[a-zA-Z0-9]{9,10}$/ },
|
|
932
|
+
[CountryCodes.Slovakia]: { default: /^\d{8}$/ },
|
|
933
|
+
[CountryCodes.Slovenia]: { default: /^\d{10}$/ },
|
|
934
|
+
[CountryCodes.Spain]: { default: /^[a-zA-Z][a-zA-Z0-9]{8}$/ },
|
|
935
|
+
[CountryCodes.Sweden]: { default: /^\d{10}$/ },
|
|
936
|
+
[CountryCodes.Switzerland]: { default: /^CHE\d{9}$|^CH\d{11}$/ },
|
|
937
|
+
[CountryCodes.UnitedKingdom]: {
|
|
938
|
+
default: /^[a-zA-Z0-9]{8}$/,
|
|
939
|
+
nonProfit: /^(?:(?:[A-Z]{2})?\d{6}|\d{6,8}|\d{6}-\d)$/
|
|
940
|
+
},
|
|
941
|
+
[CountryCodes.UnitedStates]: {
|
|
942
|
+
[StateCodesUS.Alabama]: /^\d{9}$/,
|
|
943
|
+
[StateCodesUS.Alaska]: /^\d{8}$/,
|
|
944
|
+
[StateCodesUS.Arizona]: /^\d{8}$/,
|
|
945
|
+
[StateCodesUS.Arkansas]: /^8\d{8}$/,
|
|
946
|
+
[StateCodesUS.California]: /^\d{7}$|^\d{12}$/,
|
|
947
|
+
[StateCodesUS.Colorado]: /^\d{11}$/,
|
|
948
|
+
[StateCodesUS.Connecticut]: /^\d{7}$/,
|
|
949
|
+
[StateCodesUS.Delaware]: /^\d{7}$/,
|
|
950
|
+
[StateCodesUS.Florida]: /^\d{6}$|^\d{12}$/,
|
|
951
|
+
[StateCodesUS.Georgia]: /^\d{8}$/,
|
|
952
|
+
[StateCodesUS.Hawaii]: /^\d{5,8}(C1|C2|C3|C4|C5|D1|D2|D3|D4|F1|F2|L1|L2|N1|N2|P1|P2|T1|T2|T3|T4|T5|T6|T7|T8|ZZ)$/,
|
|
953
|
+
[StateCodesUS.Idaho]: /^\d{6}$/,
|
|
954
|
+
[StateCodesUS.Illinois]: /^\d{8}$/,
|
|
955
|
+
[StateCodesUS.Indiana]: /^\d{10}$/,
|
|
956
|
+
[StateCodesUS.Iowa]: /^\d{6,8}$/,
|
|
957
|
+
[StateCodesUS.Kansas]: /^\d{7,9}$/,
|
|
958
|
+
[StateCodesUS.Kentucky]: /^\d{9,10}$/,
|
|
959
|
+
[StateCodesUS.Louisiana]: /^\d{9,10}$/,
|
|
960
|
+
[StateCodesUS.Maine]: /^\d{8}$/,
|
|
961
|
+
[StateCodesUS.Maryland]: /^\d{8}$/,
|
|
962
|
+
[StateCodesUS.Massachusetts]: /^\d{10}$/,
|
|
963
|
+
[StateCodesUS.Michigan]: /^\d{6}$|^\d{9}$/,
|
|
964
|
+
[StateCodesUS.Minnesota]: /^\d{7}$/,
|
|
965
|
+
[StateCodesUS.Mississippi]: /^\d{7,10}$/,
|
|
966
|
+
[StateCodesUS.Missouri]: /^\d{10}$/,
|
|
967
|
+
[StateCodesUS.Montana]: /^\d{7}$/,
|
|
968
|
+
[StateCodesUS.Nebraska]: /^\d{9,11}$/,
|
|
969
|
+
[StateCodesUS.Nevada]: /^\d{9,11}$/,
|
|
970
|
+
[StateCodesUS.NewHampshire]: /^\d{9}$/,
|
|
971
|
+
[StateCodesUS.NewJersey]: /^\d{10}$/,
|
|
972
|
+
[StateCodesUS.NewMexico]: /^\d{6}$/,
|
|
973
|
+
[StateCodesUS.NewYork]: /^\d{7}$/,
|
|
974
|
+
[StateCodesUS.NorthCarolina]: /^\d{7}$/,
|
|
975
|
+
[StateCodesUS.NorthDakota]: /^\d{7,10}$/,
|
|
976
|
+
[StateCodesUS.Ohio]: /^\d{10}$/,
|
|
977
|
+
[StateCodesUS.Oklahoma]: /^\d{10}$/,
|
|
978
|
+
[StateCodesUS.Oregon]: /^\d{9}$/,
|
|
979
|
+
[StateCodesUS.Pennsylvania]: /^\d{7}$/,
|
|
980
|
+
[StateCodesUS.RhodeIsland]: /^\d{7}$/,
|
|
981
|
+
[StateCodesUS.SouthCarolina]: /^\d{7}$/,
|
|
982
|
+
[StateCodesUS.SouthDakota]: /^\d{7}$/,
|
|
983
|
+
[StateCodesUS.Tennessee]: /^\d{6}$/,
|
|
984
|
+
[StateCodesUS.Texas]: /^\d{10}$/,
|
|
985
|
+
[StateCodesUS.Utah]: /^\d{7}$/,
|
|
986
|
+
[StateCodesUS.Vermont]: /^\d{6}$/,
|
|
987
|
+
[StateCodesUS.Virginia]: /^\d{7}$/,
|
|
988
|
+
[StateCodesUS.Washington]: /^\d{9}$/,
|
|
989
|
+
[StateCodesUS.WestVirginia]: /^\d{6}$/,
|
|
990
|
+
[StateCodesUS.Wisconsin]: /^\d{6}$/,
|
|
991
|
+
[StateCodesUS.Wyoming]: /^\d{6}$/,
|
|
992
|
+
[StateCodesUS.DistrictOfColumbia]: /^\d{9}$/,
|
|
993
|
+
[StateCodesUS.ArmedForcesAmericas]: /^\d{9}$/,
|
|
994
|
+
[StateCodesUS.ArmedForcesEurope]: /^\d{9}$/,
|
|
995
|
+
[StateCodesUS.ArmedForcesPacific]: /^\d{9}$/,
|
|
996
|
+
default: /^\d{9}$/
|
|
997
|
+
}
|
|
998
|
+
};
|
|
999
|
+
//#endregion
|
|
1000
|
+
//#region src/utils/mapScriptLocalization.ts
|
|
1001
|
+
/**
|
|
1002
|
+
* Takes a {@link ScriptLocalization} and converts it into a schema with matching field names.
|
|
1003
|
+
*
|
|
1004
|
+
* E.g.
|
|
1005
|
+
* ```ts
|
|
1006
|
+
* const scriptLocalization = {
|
|
1007
|
+
* script: 'ja-Kana',
|
|
1008
|
+
* fields: {
|
|
1009
|
+
* firstName: 'アレキサンダー',
|
|
1010
|
+
* lastName: 'パトリック',
|
|
1011
|
+
* },
|
|
1012
|
+
* } as const;
|
|
1013
|
+
*
|
|
1014
|
+
* const schema = mapApiScriptLocalizationToSchemaFields(scriptLocalization);
|
|
1015
|
+
* console.log(schema);
|
|
1016
|
+
* // {
|
|
1017
|
+
* // jaKanaFirstName: 'アレキサンダー',
|
|
1018
|
+
* // jaKanaLastName: 'パトリック'
|
|
1019
|
+
* // }
|
|
1020
|
+
* ```
|
|
1021
|
+
*
|
|
1022
|
+
*/
|
|
1023
|
+
function mapApiScriptLocalizationToSchemaFields(localization) {
|
|
1024
|
+
const schema = {};
|
|
1025
|
+
const scriptNameInSchema = localization.script.replace("-", "");
|
|
1026
|
+
for (const [field, value] of Object.entries(localization.fields)) schema[scriptNameInSchema + field[0].toUpperCase() + field.slice(1)] = value;
|
|
1027
|
+
return schema;
|
|
1028
|
+
}
|
|
1029
|
+
/**
|
|
1030
|
+
* Given a schema and a script, takes the fields prefixed with that script and produces a {@link ScriptLocalization}.
|
|
1031
|
+
*
|
|
1032
|
+
* E.g.
|
|
1033
|
+
* ```ts
|
|
1034
|
+
* const schema = {
|
|
1035
|
+
* firstName: 'Alex',
|
|
1036
|
+
* lastName: 'Tompkins',
|
|
1037
|
+
* jaKanaFirstName: 'アレキサンダー',
|
|
1038
|
+
* jaKanaLastName: 'パトリック',
|
|
1039
|
+
* jaHaniFirstName: 'pretend this is hiragana',
|
|
1040
|
+
* jaHaniLastName: 'this too',
|
|
1041
|
+
* };
|
|
1042
|
+
*
|
|
1043
|
+
* const localization = mapSchemaFieldsToApiScriptLocalization(schema, 'jaKana');
|
|
1044
|
+
* console.log(localization);
|
|
1045
|
+
* // {
|
|
1046
|
+
* // script: 'ja-Kana',
|
|
1047
|
+
* // fields: { firstName: 'アレキサンダー', lastName: 'パトリック' },
|
|
1048
|
+
* // };
|
|
1049
|
+
* ```
|
|
1050
|
+
*/
|
|
1051
|
+
function mapSchemaFieldsToApiScriptLocalization(data, script) {
|
|
1052
|
+
const fields = {};
|
|
1053
|
+
for (const [schemaField, value] of Object.entries(data)) if (schemaField.startsWith(script)) {
|
|
1054
|
+
let fieldName = schemaField.replace(script, "");
|
|
1055
|
+
fieldName = fieldName[0].toLowerCase() + fieldName.slice(1);
|
|
1056
|
+
fields[fieldName] = value;
|
|
1057
|
+
}
|
|
1058
|
+
return {
|
|
1059
|
+
script: `${script.slice(0, 2)}-${script.slice(2)}`,
|
|
1060
|
+
fields
|
|
1061
|
+
};
|
|
1062
|
+
}
|
|
1063
|
+
//#endregion
|
|
1064
|
+
//#region src/utils/isEmpty.ts
|
|
1065
|
+
var isEmpty = (obj, ignoreEmptyProperties = true) => {
|
|
1066
|
+
if (obj === null || obj === void 0) return true;
|
|
1067
|
+
if (Array.isArray(obj)) return obj.length === 0;
|
|
1068
|
+
if (typeof obj !== "object") return false;
|
|
1069
|
+
return keysOf(obj).every((key) => !Object.hasOwn(obj, key) || ignoreEmptyProperties && isEmpty(obj[key], true));
|
|
1070
|
+
};
|
|
1071
|
+
//#endregion
|
|
1072
|
+
//#region src/utils/businessUtils.ts
|
|
1073
|
+
/**
|
|
1074
|
+
* @description Countries in this list use the provider-backed company search flow.
|
|
1075
|
+
* For these countries, business details can be prefilled from provider results,
|
|
1076
|
+
* and search/verification may require tax identifiers (for example TIN or VAT)
|
|
1077
|
+
* in addition to company name/registration details.
|
|
1078
|
+
*
|
|
1079
|
+
* If a country is in this list, it means it will attempt to make an api call for company search.
|
|
1080
|
+
* If the api doesnt have a provider for that country, it will return no results like below
|
|
1081
|
+
* ```
|
|
1082
|
+
* {
|
|
1083
|
+
* "results": [],
|
|
1084
|
+
* "provider": "NO_PROVIDER"
|
|
1085
|
+
* }
|
|
1086
|
+
* ```
|
|
1087
|
+
*/
|
|
1088
|
+
var COUNTRIES_USING_COMPANY_SEARCH = [
|
|
1089
|
+
CountryCodes.UnitedStates,
|
|
1090
|
+
CountryCodes.UnitedKingdom,
|
|
1091
|
+
CountryCodes.Germany,
|
|
1092
|
+
CountryCodes.France
|
|
1093
|
+
];
|
|
1094
|
+
/**
|
|
1095
|
+
* Source of truth for registration-number exemption eligibility in Business Details.
|
|
1096
|
+
*
|
|
1097
|
+
* This map defines which company types can use `exemptedFromRegistrationNumber`, grouped by
|
|
1098
|
+
* country. All exemption checks should be derived from this structure to keep behavior consistent
|
|
1099
|
+
* across form rules.
|
|
1100
|
+
*
|
|
1101
|
+
* Interpretation:
|
|
1102
|
+
* - Non-empty array: exemption is allowed only for the listed company types.
|
|
1103
|
+
* - Empty array: exemption is allowed for that country without company-type restrictions.
|
|
1104
|
+
*
|
|
1105
|
+
*/
|
|
1106
|
+
var REGISTRATION_NUMBER_EXEMPTION_RULES = {
|
|
1107
|
+
[CountryCodes.Australia]: ["governmentalOrganization", "partnershipIncorporated"],
|
|
1108
|
+
[CountryCodes.Austria]: ["soleProprietorship"],
|
|
1109
|
+
[CountryCodes.Canada]: ["soleProprietorship"],
|
|
1110
|
+
[CountryCodes.Denmark]: ["nonProfit"],
|
|
1111
|
+
[CountryCodes.Finland]: ["soleProprietorship"],
|
|
1112
|
+
[CountryCodes.Germany]: [
|
|
1113
|
+
"governmentalOrganization",
|
|
1114
|
+
"nonProfit",
|
|
1115
|
+
"soleProprietorship"
|
|
1116
|
+
],
|
|
1117
|
+
[CountryCodes.HongKong]: [
|
|
1118
|
+
"privateCompany",
|
|
1119
|
+
"nonProfit",
|
|
1120
|
+
"listedPublicCompany",
|
|
1121
|
+
"unlistedPublicCompany",
|
|
1122
|
+
"governmentalOrganization",
|
|
1123
|
+
"partnershipIncorporated",
|
|
1124
|
+
"associationIncorporated"
|
|
1125
|
+
],
|
|
1126
|
+
[CountryCodes.Lithuania]: ["soleProprietorship"],
|
|
1127
|
+
[CountryCodes.Luxembourg]: ["soleProprietorship"],
|
|
1128
|
+
[CountryCodes.NewZealand]: [],
|
|
1129
|
+
[CountryCodes.Poland]: ["soleProprietorship"],
|
|
1130
|
+
[CountryCodes.Sweden]: ["soleProprietorship"],
|
|
1131
|
+
[CountryCodes.Switzerland]: ["soleProprietorship"]
|
|
1132
|
+
};
|
|
1133
|
+
/**
|
|
1134
|
+
* Determines whether a registration-number exemption can be offered for a country and company type.
|
|
1135
|
+
*
|
|
1136
|
+
* Provide `companyType` when checking a specific entity (including a sole proprietorship); this checks
|
|
1137
|
+
* that exact type against the country's rule. Omit it when deciding whether to show the exemption option
|
|
1138
|
+
* for all company types in that country; it is then available only when at least one
|
|
1139
|
+
* non-sole-proprietorship type is eligible.
|
|
1140
|
+
*
|
|
1141
|
+
* This distinction prevents sole-proprietorship-only countries from exposing the exemption to
|
|
1142
|
+
* businesses while still allowing unrestricted countries (an empty rule) for every entity type.
|
|
1143
|
+
*/
|
|
1144
|
+
var isRegistrationExemptionAllowed = ({ country, companyType }) => {
|
|
1145
|
+
const allowedCompanyTypes = REGISTRATION_NUMBER_EXEMPTION_RULES[country];
|
|
1146
|
+
if (!allowedCompanyTypes) return false;
|
|
1147
|
+
if (allowedCompanyTypes.length === 0) return true;
|
|
1148
|
+
return companyType ? allowedCompanyTypes.includes(companyType) : allowedCompanyTypes.some((allowedCompanyType) => allowedCompanyType !== "soleProprietorship");
|
|
1149
|
+
};
|
|
1150
|
+
var isRegistrationNumberAbsentStateV4Scenario = (country, entityType) => country === CountryCodes.Australia && (entityType === "governmentalOrganization" || entityType === "partnershipIncorporated") || country === CountryCodes.NewZealand;
|
|
1151
|
+
var COUNTRIES_THAT_DONT_REQUIRE_COMPANY_REGISTRATION = [
|
|
1152
|
+
CountryCodes.HongKong,
|
|
1153
|
+
CountryCodes.Mexico,
|
|
1154
|
+
CountryCodes.PuertoRico,
|
|
1155
|
+
CountryCodes.UnitedStates
|
|
1156
|
+
];
|
|
1157
|
+
var COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER = [CountryCodes.Canada, CountryCodes.UnitedStates];
|
|
1158
|
+
/**
|
|
1159
|
+
* Also used to determine what documenttype needs to be used
|
|
1160
|
+
* when uploading tax document in mapping.ts
|
|
1161
|
+
* */
|
|
1162
|
+
var COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT = [
|
|
1163
|
+
CountryCodes.Australia,
|
|
1164
|
+
CountryCodes.Canada,
|
|
1165
|
+
CountryCodes.Gibraltar,
|
|
1166
|
+
CountryCodes.HongKong,
|
|
1167
|
+
CountryCodes.NewZealand,
|
|
1168
|
+
CountryCodes.PuertoRico,
|
|
1169
|
+
CountryCodes.Singapore,
|
|
1170
|
+
CountryCodes.UnitedStates,
|
|
1171
|
+
CountryCodes.Guernsey,
|
|
1172
|
+
CountryCodes.Jersey,
|
|
1173
|
+
CountryCodes.IsleOfMan,
|
|
1174
|
+
CountryCodes.Mexico,
|
|
1175
|
+
CountryCodes.Brazil,
|
|
1176
|
+
CountryCodes.Japan
|
|
1177
|
+
];
|
|
1178
|
+
var COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_COMPANIES = [];
|
|
1179
|
+
var COUNTRIES_REQUIRING_FINANCIAL_INFORMATION = [
|
|
1180
|
+
CountryCodes.Austria,
|
|
1181
|
+
CountryCodes.Belgium,
|
|
1182
|
+
CountryCodes.Croatia,
|
|
1183
|
+
CountryCodes.Cyprus,
|
|
1184
|
+
CountryCodes.Estonia,
|
|
1185
|
+
CountryCodes.Finland,
|
|
1186
|
+
CountryCodes.France,
|
|
1187
|
+
CountryCodes.Germany,
|
|
1188
|
+
CountryCodes.Greece,
|
|
1189
|
+
CountryCodes.Ireland,
|
|
1190
|
+
CountryCodes.Italy,
|
|
1191
|
+
CountryCodes.Latvia,
|
|
1192
|
+
CountryCodes.Lithuania,
|
|
1193
|
+
CountryCodes.Luxembourg,
|
|
1194
|
+
CountryCodes.Malta,
|
|
1195
|
+
CountryCodes.Netherlands,
|
|
1196
|
+
CountryCodes.Portugal,
|
|
1197
|
+
CountryCodes.Slovakia,
|
|
1198
|
+
CountryCodes.Slovenia,
|
|
1199
|
+
CountryCodes.Spain,
|
|
1200
|
+
CountryCodes.UnitedKingdom
|
|
1201
|
+
];
|
|
1202
|
+
var COUNTRIES_WITH_POSSIBLE_TRUSTEE_TAXID_ABSENT_V4 = [CountryCodes.Australia];
|
|
1203
|
+
var TAX_ID_REQUIRED_COUNTRIES_ORGANIZATION = [
|
|
1204
|
+
CountryCodes.Austria,
|
|
1205
|
+
CountryCodes.Belgium,
|
|
1206
|
+
CountryCodes.Croatia,
|
|
1207
|
+
CountryCodes.Cyprus,
|
|
1208
|
+
CountryCodes.Germany,
|
|
1209
|
+
CountryCodes.Greece,
|
|
1210
|
+
CountryCodes.Ireland,
|
|
1211
|
+
CountryCodes.Luxembourg,
|
|
1212
|
+
CountryCodes.Malta,
|
|
1213
|
+
CountryCodes.Netherlands,
|
|
1214
|
+
CountryCodes.Slovakia,
|
|
1215
|
+
CountryCodes.Slovenia
|
|
1216
|
+
];
|
|
1217
|
+
/**
|
|
1218
|
+
* Sole proprietorship specific rules
|
|
1219
|
+
*/
|
|
1220
|
+
var COUNTRIES_THAT_DONT_REQUIRE_SOLE_PROP_REGISTRATION = [
|
|
1221
|
+
CountryCodes.Australia,
|
|
1222
|
+
CountryCodes.Gibraltar,
|
|
1223
|
+
CountryCodes.Guernsey,
|
|
1224
|
+
CountryCodes.HongKong,
|
|
1225
|
+
CountryCodes.Ireland,
|
|
1226
|
+
CountryCodes.IsleOfMan,
|
|
1227
|
+
CountryCodes.Jersey,
|
|
1228
|
+
CountryCodes.Malta,
|
|
1229
|
+
CountryCodes.Mexico,
|
|
1230
|
+
CountryCodes.PuertoRico,
|
|
1231
|
+
CountryCodes.Spain,
|
|
1232
|
+
CountryCodes.UnitedKingdom,
|
|
1233
|
+
CountryCodes.UnitedStates
|
|
1234
|
+
];
|
|
1235
|
+
var COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_SOLE_PROPS = [
|
|
1236
|
+
CountryCodes.Canada,
|
|
1237
|
+
CountryCodes.PuertoRico,
|
|
1238
|
+
CountryCodes.UnitedStates
|
|
1239
|
+
];
|
|
1240
|
+
var COUNTRIES_THAT_DO_NOT_USE_TAX_ID_FOR_SOLE_PROP = [CountryCodes.Singapore];
|
|
1241
|
+
var COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER_SOLE_PROPS = [CountryCodes.Germany];
|
|
1242
|
+
var isUsingCompanySearch = (country, taskType) => {
|
|
1243
|
+
if (taskType !== TaskTypes.BUSINESS_DETAILS && taskType !== TaskTypes.GLOBAL_ENTRY) return false;
|
|
1244
|
+
return COUNTRIES_USING_COMPANY_SEARCH.includes(country);
|
|
1245
|
+
};
|
|
1246
|
+
/**
|
|
1247
|
+
* A Japanese business has a kanji legal name and a katakana reading of it, neither of which can be
|
|
1248
|
+
* derived from the roman one, so they travel beside it as script localizations.
|
|
1249
|
+
*
|
|
1250
|
+
* @param data the form section holding the localized name fields, whatever the task calls it
|
|
1251
|
+
* @returns the localizations that were filled in, so an empty array when neither was asked for
|
|
1252
|
+
*/
|
|
1253
|
+
var mapJapaneseLegalNamesToLocalization = (data) => [mapSchemaFieldsToApiScriptLocalization(data, "jaHani"), mapSchemaFieldsToApiScriptLocalization(data, "jaKana")].filter(({ fields }) => !isEmpty(fields)).map(({ script, fields }) => ({
|
|
1254
|
+
script,
|
|
1255
|
+
fields: { legalName: fields.legalCompanyName }
|
|
1256
|
+
}));
|
|
1257
|
+
/**
|
|
1258
|
+
* Reads the kanji and katakana legal names back out of the script localizations, so they can
|
|
1259
|
+
* prefill the fields they came from.
|
|
1260
|
+
*
|
|
1261
|
+
* @param localization the organization's script localizations, when it has any
|
|
1262
|
+
*/
|
|
1263
|
+
var mapLocalizationToJapaneseLegalNames = (localization) => (localization ?? []).reduce((schemaFields, { script, fields }) => ({
|
|
1264
|
+
...schemaFields,
|
|
1265
|
+
...mapApiScriptLocalizationToSchemaFields({
|
|
1266
|
+
script,
|
|
1267
|
+
fields: { legalCompanyName: fields?.legalName }
|
|
1268
|
+
})
|
|
1269
|
+
}), {});
|
|
1270
|
+
var Tile_module_default = {
|
|
1271
|
+
"tile-container": "_tile-container_17be3_1",
|
|
1272
|
+
tileContainer: "_tile-container_17be3_1",
|
|
1273
|
+
tile: "_tile_17be3_1",
|
|
1274
|
+
"tile-icon": "_tile-icon_17be3_18",
|
|
1275
|
+
tileIcon: "_tile-icon_17be3_18",
|
|
1276
|
+
"tile-title": "_tile-title_17be3_35",
|
|
1277
|
+
tileTitle: "_tile-title_17be3_35",
|
|
1278
|
+
"tile-checkbox": "_tile-checkbox_17be3_49",
|
|
1279
|
+
tileCheckbox: "_tile-checkbox_17be3_49",
|
|
1280
|
+
"tile-container-horizontal": "_tile-container-horizontal_17be3_89",
|
|
1281
|
+
tileContainerHorizontal: "_tile-container-horizontal_17be3_89",
|
|
1282
|
+
"tile-label": "_tile-label_17be3_100",
|
|
1283
|
+
tileLabel: "_tile-label_17be3_100"
|
|
1284
|
+
};
|
|
1285
|
+
//#endregion
|
|
1286
|
+
//#region src/components/ui/atoms/Tile/Tile.tsx
|
|
1287
|
+
function Tile({ checked, disabled, icon, id, inputType = "checkbox", isHorizontal, label, name, className, onChange, subTitle, value }) {
|
|
1288
|
+
const inputNode = useRef(null);
|
|
1289
|
+
const uniqId = useId("tile");
|
|
1290
|
+
const idUse = id ?? uniqId;
|
|
1291
|
+
const handleChange = (e) => {
|
|
1292
|
+
if (disabled) return;
|
|
1293
|
+
onChange?.(e.currentTarget.checked);
|
|
1294
|
+
inputNode.current?.focus();
|
|
1295
|
+
};
|
|
1296
|
+
const handleClick = (e) => {
|
|
1297
|
+
if (disabled || inputType === "radio") return;
|
|
1298
|
+
if (checked) {
|
|
1299
|
+
e.preventDefault();
|
|
1300
|
+
onChange?.(false);
|
|
1301
|
+
inputNode.current?.focus();
|
|
1302
|
+
}
|
|
1303
|
+
};
|
|
1304
|
+
const handleOnKeyDown = (e) => {
|
|
1305
|
+
if (e.key === KEYBOARD_KEYS.enter || e.key === KEYBOARD_KEYS.space) {
|
|
1306
|
+
e.preventDefault();
|
|
1307
|
+
if (disabled) return;
|
|
1308
|
+
if (inputType === "radio" && !checked) {
|
|
1309
|
+
onChange?.(true);
|
|
1310
|
+
inputNode.current?.focus();
|
|
1311
|
+
} else if (inputType === "checkbox") {
|
|
1312
|
+
onChange?.(!checked);
|
|
1313
|
+
inputNode.current?.focus();
|
|
1314
|
+
}
|
|
1315
|
+
}
|
|
1316
|
+
};
|
|
1317
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
1318
|
+
className: cx(Tile_module_default.tileContainer, className, { [Tile_module_default.tileContainerHorizontal]: isHorizontal }),
|
|
1319
|
+
children: [/* @__PURE__ */ jsx("input", {
|
|
1320
|
+
ref: inputNode,
|
|
1321
|
+
className: Tile_module_default.tileCheckbox,
|
|
1322
|
+
disabled,
|
|
1323
|
+
checked: !!checked,
|
|
1324
|
+
value,
|
|
1325
|
+
id: idUse,
|
|
1326
|
+
name,
|
|
1327
|
+
type: inputType,
|
|
1328
|
+
onKeyDown: handleOnKeyDown,
|
|
1329
|
+
onChange: handleChange,
|
|
1330
|
+
onClick: handleClick,
|
|
1331
|
+
"aria-disabled": disabled,
|
|
1332
|
+
tabIndex: disabled ? -1 : 0
|
|
1333
|
+
}), /* @__PURE__ */ jsxs("label", {
|
|
1334
|
+
htmlFor: idUse,
|
|
1335
|
+
className: Tile_module_default.tile,
|
|
1336
|
+
children: [icon && /* @__PURE__ */ jsx("div", {
|
|
1337
|
+
className: Tile_module_default.tileIcon,
|
|
1338
|
+
children: /* @__PURE__ */ jsx(Icon, {
|
|
1339
|
+
name: icon,
|
|
1340
|
+
testId: icon
|
|
1341
|
+
})
|
|
1342
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
1343
|
+
className: Tile_module_default.tileLabel,
|
|
1344
|
+
children: [/* @__PURE__ */ jsx(Typography, {
|
|
1345
|
+
el: "h4",
|
|
1346
|
+
variant: "body-strongest",
|
|
1347
|
+
className: Tile_module_default.tileTitle,
|
|
1348
|
+
children: label
|
|
1349
|
+
}), subTitle && /* @__PURE__ */ jsx(Typography, {
|
|
1350
|
+
el: "p",
|
|
1351
|
+
variant: "body",
|
|
1352
|
+
children: subTitle
|
|
1353
|
+
})]
|
|
1354
|
+
})]
|
|
1355
|
+
})]
|
|
1356
|
+
});
|
|
1357
|
+
}
|
|
1358
|
+
var TileGroup_module_default = {
|
|
1359
|
+
"tile-group": "_tile-group_6rtof_1",
|
|
1360
|
+
tileGroup: "_tile-group_6rtof_1",
|
|
1361
|
+
"tile-container": "_tile-container_6rtof_8",
|
|
1362
|
+
tileContainer: "_tile-container_6rtof_8",
|
|
1363
|
+
"tile-group-error": "_tile-group-error_6rtof_14",
|
|
1364
|
+
tileGroupError: "_tile-group-error_6rtof_14",
|
|
1365
|
+
"tile-group-error-icon": "_tile-group-error-icon_6rtof_27",
|
|
1366
|
+
tileGroupErrorIcon: "_tile-group-error-icon_6rtof_27",
|
|
1367
|
+
"tile-group-horizontal": "_tile-group-horizontal_6rtof_32",
|
|
1368
|
+
tileGroupHorizontal: "_tile-group-horizontal_6rtof_32"
|
|
1369
|
+
};
|
|
1370
|
+
//#endregion
|
|
1371
|
+
//#region src/components/ui/atoms/TileGroup/TileGroup.tsx
|
|
1372
|
+
function TileGroup({ tiles, selected, allowMultiple = false, isHorizontal, name: nameProp, maxSelected = Infinity, errorMessage, onChange = noop, enableTracking = false, trackingFieldName }) {
|
|
1373
|
+
const uniqName = useId("tile");
|
|
1374
|
+
const name = nameProp ?? uniqName;
|
|
1375
|
+
const finalName = allowMultiple ? `${name}[]` : name;
|
|
1376
|
+
const inputType = allowMultiple ? "checkbox" : "radio";
|
|
1377
|
+
const userEvents = useAnalyticsContext();
|
|
1378
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [!!errorMessage?.message && /* @__PURE__ */ jsxs("div", {
|
|
1379
|
+
"aria-live": "polite",
|
|
1380
|
+
className: TileGroup_module_default.tileGroupError,
|
|
1381
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
1382
|
+
className: TileGroup_module_default.tileGroupErrorIcon,
|
|
1383
|
+
children: /* @__PURE__ */ jsx(Icon, { name: "field-error" })
|
|
1384
|
+
}), errorMessage.message]
|
|
1385
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
1386
|
+
className: cx(TileGroup_module_default.tileGroup, { [TileGroup_module_default.tileGroupHorizontal]: isHorizontal }),
|
|
1387
|
+
children: tiles.map((tile) => {
|
|
1388
|
+
const { value, id, icon, subTitle, label, disabled } = tile;
|
|
1389
|
+
const handleChange = (checked) => {
|
|
1390
|
+
const newSelected = updateSelectedChoices(tile, checked, selected, allowMultiple);
|
|
1391
|
+
if (enableTracking) userEvents.addFieldEvent("Interacted with form field", {
|
|
1392
|
+
actionType: "input",
|
|
1393
|
+
field: trackingFieldName ?? name,
|
|
1394
|
+
returnValue: typeof newSelected === "string" ? newSelected : void 0
|
|
1395
|
+
});
|
|
1396
|
+
onChange(newSelected);
|
|
1397
|
+
};
|
|
1398
|
+
return /* @__PURE__ */ jsx(Tile, {
|
|
1399
|
+
name: finalName,
|
|
1400
|
+
className: TileGroup_module_default.tileContainer,
|
|
1401
|
+
inputType,
|
|
1402
|
+
isHorizontal,
|
|
1403
|
+
checked: choiceIsSelected(tile, selected, allowMultiple),
|
|
1404
|
+
label,
|
|
1405
|
+
id,
|
|
1406
|
+
subTitle,
|
|
1407
|
+
icon,
|
|
1408
|
+
disabled: !disabled && allowMultiple && selected.length >= maxSelected ? !choiceIsSelected(tile, selected, allowMultiple) : disabled,
|
|
1409
|
+
value,
|
|
1410
|
+
onChange: handleChange
|
|
1411
|
+
}, id);
|
|
1412
|
+
})
|
|
1413
|
+
})] });
|
|
1414
|
+
}
|
|
1415
|
+
function choiceIsSelected({ value }, selected, allowMultiple) {
|
|
1416
|
+
if (!allowMultiple) return value === selected;
|
|
1417
|
+
return selected.includes(value);
|
|
1418
|
+
}
|
|
1419
|
+
function updateSelectedChoices({ value }, checked, selected, allowMultiple) {
|
|
1420
|
+
if (!allowMultiple) return checked ? value : "";
|
|
1421
|
+
if (Array.isArray(selected)) {
|
|
1422
|
+
if (checked) return allowMultiple ? [...selected, value] : [value];
|
|
1423
|
+
return selected.filter((selectedChoice) => selectedChoice !== value);
|
|
1424
|
+
}
|
|
1425
|
+
return [];
|
|
1426
|
+
}
|
|
1427
|
+
//#endregion
|
|
1428
|
+
//#region src/components/Shared/fields/TaxInformationField/taxIdNumberTypes.ts
|
|
1429
|
+
var restrictedEntityTypes = [
|
|
1430
|
+
"soleProprietorship",
|
|
1431
|
+
"trust",
|
|
1432
|
+
"individual"
|
|
1433
|
+
];
|
|
1434
|
+
var isRestrictedEntityType = (entityType) => Boolean(entityType && restrictedEntityTypes.includes(entityType));
|
|
1435
|
+
var isApplicableOnlyForSingleRestrictedType = (option) => {
|
|
1436
|
+
if (!option.applicableOnlyFor || option.applicableOnlyFor.length !== 1) return false;
|
|
1437
|
+
return restrictedEntityTypes.includes(option.applicableOnlyFor[0]);
|
|
1438
|
+
};
|
|
1439
|
+
var taxIdNumberOptions = {
|
|
1440
|
+
[CountryCodes.Australia]: [{
|
|
1441
|
+
id: "ABN",
|
|
1442
|
+
name: "australianBusinessNumberAbn"
|
|
1443
|
+
}, {
|
|
1444
|
+
id: "TFN",
|
|
1445
|
+
name: "taxInformationNumber__AU_Individual",
|
|
1446
|
+
applicableOnlyFor: ["individual"]
|
|
1447
|
+
}],
|
|
1448
|
+
[CountryCodes.Austria]: [{
|
|
1449
|
+
id: "STEUERNUMMER",
|
|
1450
|
+
name: "taxInformationNumber__AT"
|
|
1451
|
+
}],
|
|
1452
|
+
[CountryCodes.Belgium]: [{
|
|
1453
|
+
id: "BUSINESS_NUMMER",
|
|
1454
|
+
name: "businessNumber",
|
|
1455
|
+
applicableOnlyFor: [
|
|
1456
|
+
"soleProprietorship",
|
|
1457
|
+
"privateCompany",
|
|
1458
|
+
"governmentalOrganization",
|
|
1459
|
+
"associationIncorporated",
|
|
1460
|
+
"partnershipIncorporated",
|
|
1461
|
+
"nonProfit",
|
|
1462
|
+
"unincorporatedPartnership",
|
|
1463
|
+
"unlistedPublicCompany"
|
|
1464
|
+
]
|
|
1465
|
+
}, {
|
|
1466
|
+
id: "NUMERO_NATIONAL",
|
|
1467
|
+
name: "taxInformationNumber__BE_Individual",
|
|
1468
|
+
applicableOnlyFor: ["individual"]
|
|
1469
|
+
}],
|
|
1470
|
+
[CountryCodes.Brazil]: [{
|
|
1471
|
+
id: "CNPJ",
|
|
1472
|
+
name: "CNPJ"
|
|
1473
|
+
}],
|
|
1474
|
+
[CountryCodes.Bulgaria]: [{
|
|
1475
|
+
id: "EGN",
|
|
1476
|
+
name: "taxInformationNumber__BG",
|
|
1477
|
+
applicableOnlyFor: ["individual"]
|
|
1478
|
+
}],
|
|
1479
|
+
[CountryCodes.Canada]: [{
|
|
1480
|
+
id: "BUSINESS_NUMBER",
|
|
1481
|
+
name: "businessNumber"
|
|
1482
|
+
}, {
|
|
1483
|
+
id: "SIN",
|
|
1484
|
+
name: "taxInformationNumber__CA",
|
|
1485
|
+
applicableOnlyFor: ["individual"]
|
|
1486
|
+
}],
|
|
1487
|
+
[CountryCodes.China]: [{
|
|
1488
|
+
id: "RESIDENT_IDENTITY_CARD_NUMBER",
|
|
1489
|
+
name: "taxInformationNumber__CN",
|
|
1490
|
+
applicableOnlyFor: ["individual"]
|
|
1491
|
+
}],
|
|
1492
|
+
[CountryCodes.Croatia]: [{
|
|
1493
|
+
id: "OIB",
|
|
1494
|
+
name: "taxInformationNumber__HR"
|
|
1495
|
+
}],
|
|
1496
|
+
[CountryCodes.Cyprus]: [{
|
|
1497
|
+
id: "TIC",
|
|
1498
|
+
name: "taxInformationNumber__CY"
|
|
1499
|
+
}],
|
|
1500
|
+
[CountryCodes.CzechRepublic]: [{
|
|
1501
|
+
id: "RODNE_CISLO",
|
|
1502
|
+
name: "taxInformationNumber__CZ",
|
|
1503
|
+
applicableOnlyFor: ["individual"]
|
|
1504
|
+
}],
|
|
1505
|
+
[CountryCodes.Denmark]: [{
|
|
1506
|
+
id: "CPR",
|
|
1507
|
+
name: "taxInformationNumber__DK",
|
|
1508
|
+
applicableOnlyFor: ["individual"]
|
|
1509
|
+
}],
|
|
1510
|
+
[CountryCodes.Estonia]: [{
|
|
1511
|
+
id: "ISIKUKOOD",
|
|
1512
|
+
name: "taxInformationNumber__ET_Individual",
|
|
1513
|
+
applicableOnlyFor: ["individual"]
|
|
1514
|
+
}, {
|
|
1515
|
+
id: "REGISTRIKOOD",
|
|
1516
|
+
name: "registrikood",
|
|
1517
|
+
applicableOnlyFor: ["privateCompany"]
|
|
1518
|
+
}],
|
|
1519
|
+
[CountryCodes.Egypt]: [{
|
|
1520
|
+
id: "TIN_EG",
|
|
1521
|
+
name: "taxInformationNumber__EG",
|
|
1522
|
+
applicableOnlyFor: ["individual"]
|
|
1523
|
+
}],
|
|
1524
|
+
[CountryCodes.Finland]: [{
|
|
1525
|
+
id: "HENKILOTUNNUS",
|
|
1526
|
+
name: "taxInformationNumber__FI",
|
|
1527
|
+
applicableOnlyFor: ["individual"]
|
|
1528
|
+
}, {
|
|
1529
|
+
id: "YTUNNUS",
|
|
1530
|
+
name: "YTunnus",
|
|
1531
|
+
applicableOnlyFor: ["privateCompany"]
|
|
1532
|
+
}],
|
|
1533
|
+
[CountryCodes.France]: [{
|
|
1534
|
+
id: "SIRET",
|
|
1535
|
+
name: "siret",
|
|
1536
|
+
applicableOnlyFor: ["privateCompany"]
|
|
1537
|
+
}],
|
|
1538
|
+
[CountryCodes.Germany]: [{
|
|
1539
|
+
id: "STEUERNUMMER",
|
|
1540
|
+
name: "taxInformationNumber__DE",
|
|
1541
|
+
applicableOnlyFor: [
|
|
1542
|
+
"soleProprietorship",
|
|
1543
|
+
"privateCompany",
|
|
1544
|
+
"governmentalOrganization",
|
|
1545
|
+
"associationIncorporated",
|
|
1546
|
+
"partnershipIncorporated",
|
|
1547
|
+
"nonProfit",
|
|
1548
|
+
"unincorporatedPartnership",
|
|
1549
|
+
"unlistedPublicCompany"
|
|
1550
|
+
]
|
|
1551
|
+
}, {
|
|
1552
|
+
id: "IDNR",
|
|
1553
|
+
name: "taxInformationNumber__DE_Individual",
|
|
1554
|
+
applicableOnlyFor: ["individual"]
|
|
1555
|
+
}],
|
|
1556
|
+
[CountryCodes.Gibraltar]: [{
|
|
1557
|
+
id: "GI_TAXPAYER_REFERENCE_NUMBER",
|
|
1558
|
+
name: "taxpayerReferenceNumber"
|
|
1559
|
+
}],
|
|
1560
|
+
[CountryCodes.Greece]: [{
|
|
1561
|
+
id: "AFM",
|
|
1562
|
+
name: "taxInformationNumber__GR"
|
|
1563
|
+
}],
|
|
1564
|
+
[CountryCodes.Guernsey]: [{
|
|
1565
|
+
id: "GG_REGISTRATION_NUMBER",
|
|
1566
|
+
name: "taxInformationNumber"
|
|
1567
|
+
}, {
|
|
1568
|
+
id: "TIN_GG",
|
|
1569
|
+
name: "nationalInsuranceNumber",
|
|
1570
|
+
applicableOnlyFor: ["soleProprietorship"]
|
|
1571
|
+
}],
|
|
1572
|
+
[CountryCodes.HongKong]: [{
|
|
1573
|
+
id: "BRN",
|
|
1574
|
+
name: "taxInformationNumber__HK"
|
|
1575
|
+
}, {
|
|
1576
|
+
id: "HKID",
|
|
1577
|
+
name: "taxInformationNumber__HK_Individual",
|
|
1578
|
+
applicableOnlyFor: ["individual"]
|
|
1579
|
+
}],
|
|
1580
|
+
[CountryCodes.Hungary]: [{
|
|
1581
|
+
id: "ADOAZONOSITO_JEL",
|
|
1582
|
+
name: "taxInformationNumber__HU",
|
|
1583
|
+
applicableOnlyFor: ["individual"]
|
|
1584
|
+
}],
|
|
1585
|
+
[CountryCodes.Iceland]: [{
|
|
1586
|
+
id: "KENNITALA",
|
|
1587
|
+
name: "taxInformationNumber__IS",
|
|
1588
|
+
applicableOnlyFor: ["individual"]
|
|
1589
|
+
}],
|
|
1590
|
+
[CountryCodes.India]: [{
|
|
1591
|
+
id: "PAN",
|
|
1592
|
+
name: "taxInformationNumber__IN",
|
|
1593
|
+
applicableOnlyFor: ["individual"]
|
|
1594
|
+
}],
|
|
1595
|
+
[CountryCodes.Ireland]: [{
|
|
1596
|
+
id: "TRN",
|
|
1597
|
+
name: "trnNumber",
|
|
1598
|
+
applicableOnlyFor: ["privateCompany", "unincorporatedPartnership"]
|
|
1599
|
+
}, {
|
|
1600
|
+
id: "PERSONAL_PUBLIC_SERVICE_NUMBER",
|
|
1601
|
+
name: "taxInformationNumber__IE_Individual",
|
|
1602
|
+
applicableOnlyFor: ["individual"]
|
|
1603
|
+
}],
|
|
1604
|
+
[CountryCodes.IsleOfMan]: [{
|
|
1605
|
+
id: "IM_TAX_REFERENCE_NUMBER",
|
|
1606
|
+
name: "taxReferenceNumber"
|
|
1607
|
+
}],
|
|
1608
|
+
[CountryCodes.Italy]: [{
|
|
1609
|
+
id: "CODICE_FISCALE",
|
|
1610
|
+
name: "taxInformationNumber__IT"
|
|
1611
|
+
}],
|
|
1612
|
+
[CountryCodes.Israel]: [{
|
|
1613
|
+
id: "IL_MISPAR_ZEHUT",
|
|
1614
|
+
name: "taxInformationNumber__IL",
|
|
1615
|
+
applicableOnlyFor: ["individual"]
|
|
1616
|
+
}],
|
|
1617
|
+
[CountryCodes.Japan]: [{
|
|
1618
|
+
id: "CORPORATE_NUMBER",
|
|
1619
|
+
name: "taxInformationNumber"
|
|
1620
|
+
}, {
|
|
1621
|
+
id: "JP_MY_NUMBER",
|
|
1622
|
+
name: "taxInformationNumber__JP_Individual",
|
|
1623
|
+
applicableOnlyFor: ["individual"]
|
|
1624
|
+
}],
|
|
1625
|
+
[CountryCodes.Jersey]: [{
|
|
1626
|
+
id: "TIN_JE",
|
|
1627
|
+
name: "taxIdentificationNumber"
|
|
1628
|
+
}, {
|
|
1629
|
+
id: "SSN",
|
|
1630
|
+
name: "socialSecurityNumber",
|
|
1631
|
+
applicableOnlyFor: ["soleProprietorship"]
|
|
1632
|
+
}],
|
|
1633
|
+
[CountryCodes.Latvia]: [{
|
|
1634
|
+
id: "PERSONAS_KODS",
|
|
1635
|
+
name: "taxInformationNumber__LV",
|
|
1636
|
+
applicableOnlyFor: ["individual"]
|
|
1637
|
+
}, {
|
|
1638
|
+
id: "REGISTRACIJAS_NUMURS",
|
|
1639
|
+
name: "lvRegistrationNumber",
|
|
1640
|
+
applicableOnlyFor: ["privateCompany"]
|
|
1641
|
+
}],
|
|
1642
|
+
[CountryCodes.Lithuania]: [{
|
|
1643
|
+
id: "ASMENS_KODAS",
|
|
1644
|
+
name: "taxInformationNumber__LT"
|
|
1645
|
+
}],
|
|
1646
|
+
[CountryCodes.Luxembourg]: [{
|
|
1647
|
+
id: "NATIONAL_IDENTIFICATION_NUMBER",
|
|
1648
|
+
name: "taxInformationNumber__LU_Individual",
|
|
1649
|
+
applicableOnlyFor: ["individual"]
|
|
1650
|
+
}, {
|
|
1651
|
+
id: "NATIONAL_IDENTIFICATION_NUMBER",
|
|
1652
|
+
name: "taxInformationNumber__LU_Org",
|
|
1653
|
+
applicableOnlyFor: ["privateCompany"]
|
|
1654
|
+
}],
|
|
1655
|
+
[CountryCodes.Malta]: [
|
|
1656
|
+
{
|
|
1657
|
+
id: "UNIQUE_TAXPAYER_REFERENCE_NUMBER",
|
|
1658
|
+
name: "taxInformationNumber__MT_Individual_UTRN",
|
|
1659
|
+
applicableOnlyFor: ["individual"]
|
|
1660
|
+
},
|
|
1661
|
+
{
|
|
1662
|
+
id: "IDENTITY_CARD_NUMBER",
|
|
1663
|
+
name: "taxInformationNumber__MT_Individual",
|
|
1664
|
+
applicableOnlyFor: ["individual"]
|
|
1665
|
+
},
|
|
1666
|
+
{
|
|
1667
|
+
id: "INCOME_TAX_REGISTRATION_NUMBER",
|
|
1668
|
+
name: "taxInformationNumber__MT_Org",
|
|
1669
|
+
applicableOnlyFor: ["privateCompany"]
|
|
1670
|
+
}
|
|
1671
|
+
],
|
|
1672
|
+
[CountryCodes.Mexico]: [{
|
|
1673
|
+
id: "RFC",
|
|
1674
|
+
name: "taxInformationNumber__MX",
|
|
1675
|
+
applicableOnlyFor: [
|
|
1676
|
+
"privateCompany",
|
|
1677
|
+
"governmentalOrganization",
|
|
1678
|
+
"associationIncorporated",
|
|
1679
|
+
"partnershipIncorporated",
|
|
1680
|
+
"nonProfit",
|
|
1681
|
+
"unincorporatedPartnership",
|
|
1682
|
+
"unlistedPublicCompany",
|
|
1683
|
+
"listedPublicCompany"
|
|
1684
|
+
]
|
|
1685
|
+
}],
|
|
1686
|
+
[CountryCodes.Netherlands]: [{
|
|
1687
|
+
id: "RSIN",
|
|
1688
|
+
name: "rsinNumber",
|
|
1689
|
+
applicableOnlyFor: [
|
|
1690
|
+
"privateCompany",
|
|
1691
|
+
"governmentalOrganization",
|
|
1692
|
+
"associationIncorporated",
|
|
1693
|
+
"partnershipIncorporated",
|
|
1694
|
+
"nonProfit",
|
|
1695
|
+
"unincorporatedPartnership",
|
|
1696
|
+
"unlistedPublicCompany"
|
|
1697
|
+
]
|
|
1698
|
+
}, {
|
|
1699
|
+
id: "BSN",
|
|
1700
|
+
name: "bsnNumber",
|
|
1701
|
+
applicableOnlyFor: ["individual"]
|
|
1702
|
+
}],
|
|
1703
|
+
[CountryCodes.NewZealand]: [{
|
|
1704
|
+
id: "IRD",
|
|
1705
|
+
name: "irdNumber"
|
|
1706
|
+
}],
|
|
1707
|
+
[CountryCodes.Norway]: [{
|
|
1708
|
+
id: "D_NUMBER",
|
|
1709
|
+
name: "taxInformationNumber__NO",
|
|
1710
|
+
applicableOnlyFor: ["individual"]
|
|
1711
|
+
}],
|
|
1712
|
+
[CountryCodes.Poland]: [{
|
|
1713
|
+
id: "PESEL_NUMBER",
|
|
1714
|
+
name: "taxInformationNumber__PL",
|
|
1715
|
+
applicableOnlyFor: ["individual"]
|
|
1716
|
+
}],
|
|
1717
|
+
[CountryCodes.Portugal]: [{
|
|
1718
|
+
id: "NUMERO_ID_CIVIL",
|
|
1719
|
+
name: "taxInformationNumber__PT",
|
|
1720
|
+
applicableOnlyFor: ["individual"]
|
|
1721
|
+
}, {
|
|
1722
|
+
id: "NIPC",
|
|
1723
|
+
name: "NIPC",
|
|
1724
|
+
applicableOnlyFor: ["privateCompany"]
|
|
1725
|
+
}],
|
|
1726
|
+
[CountryCodes.PuertoRico]: [{
|
|
1727
|
+
id: "EIN",
|
|
1728
|
+
name: "ein"
|
|
1729
|
+
}],
|
|
1730
|
+
[CountryCodes.Romania]: [{
|
|
1731
|
+
id: "CNP",
|
|
1732
|
+
name: "taxInformationNumber__RO",
|
|
1733
|
+
applicableOnlyFor: ["individual"]
|
|
1734
|
+
}],
|
|
1735
|
+
[CountryCodes.Singapore]: [
|
|
1736
|
+
{
|
|
1737
|
+
id: "GST",
|
|
1738
|
+
name: "gst"
|
|
1739
|
+
},
|
|
1740
|
+
{
|
|
1741
|
+
id: "UEN",
|
|
1742
|
+
name: "uen"
|
|
1743
|
+
},
|
|
1744
|
+
{
|
|
1745
|
+
id: "NRIC",
|
|
1746
|
+
name: "taxInformationNumber__SG_Individual",
|
|
1747
|
+
applicableOnlyFor: ["individual"]
|
|
1748
|
+
}
|
|
1749
|
+
],
|
|
1750
|
+
[CountryCodes.Slovakia]: [{
|
|
1751
|
+
id: "RODNE_CISLO",
|
|
1752
|
+
name: "taxInformationNumber__SK_Individual",
|
|
1753
|
+
applicableOnlyFor: ["individual"]
|
|
1754
|
+
}, {
|
|
1755
|
+
id: "NATIONAL_IDENTIFICATION_NUMBER",
|
|
1756
|
+
name: "taxInformationNumber__SK_Org",
|
|
1757
|
+
applicableOnlyFor: ["privateCompany"]
|
|
1758
|
+
}],
|
|
1759
|
+
[CountryCodes.Slovenia]: [{
|
|
1760
|
+
id: "SI_TAX_NUMBER",
|
|
1761
|
+
name: "taxInformationNumber__SI_Individual",
|
|
1762
|
+
applicableOnlyFor: ["individual"]
|
|
1763
|
+
}, {
|
|
1764
|
+
id: "NATIONAL_IDENTIFICATION_NUMBER",
|
|
1765
|
+
name: "taxInformationNumber__SI_Org",
|
|
1766
|
+
applicableOnlyFor: ["privateCompany"]
|
|
1767
|
+
}],
|
|
1768
|
+
[CountryCodes.SouthAfrica]: [{
|
|
1769
|
+
id: "INCOME_TAX_REFERENCE_NUMBER",
|
|
1770
|
+
name: "taxInformationNumber__ZA",
|
|
1771
|
+
applicableOnlyFor: ["individual"]
|
|
1772
|
+
}],
|
|
1773
|
+
[CountryCodes.Spain]: [
|
|
1774
|
+
{
|
|
1775
|
+
id: "DNI",
|
|
1776
|
+
name: "dni",
|
|
1777
|
+
applicableOnlyFor: ["individual"]
|
|
1778
|
+
},
|
|
1779
|
+
{
|
|
1780
|
+
id: "NIE",
|
|
1781
|
+
name: "nie",
|
|
1782
|
+
applicableOnlyFor: ["individual"]
|
|
1783
|
+
},
|
|
1784
|
+
{
|
|
1785
|
+
id: "NIF",
|
|
1786
|
+
name: "NIF",
|
|
1787
|
+
applicableOnlyFor: ["privateCompany"]
|
|
1788
|
+
}
|
|
1789
|
+
],
|
|
1790
|
+
[CountryCodes.Sweden]: [{
|
|
1791
|
+
id: "PERSONNUMMER",
|
|
1792
|
+
name: "taxInformationNumber__SE",
|
|
1793
|
+
applicableOnlyFor: ["individual"]
|
|
1794
|
+
}],
|
|
1795
|
+
[CountryCodes.Switzerland]: [{
|
|
1796
|
+
id: "AHV_NUMBER",
|
|
1797
|
+
name: "taxInformationNumber__CH",
|
|
1798
|
+
applicableOnlyFor: ["individual"]
|
|
1799
|
+
}],
|
|
1800
|
+
[CountryCodes.UnitedArabEmirates]: [{
|
|
1801
|
+
id: "EMIRATES_ID",
|
|
1802
|
+
name: "taxInformationNumber__AE",
|
|
1803
|
+
applicableOnlyFor: ["individual"]
|
|
1804
|
+
}],
|
|
1805
|
+
[CountryCodes.UnitedKingdom]: [{
|
|
1806
|
+
id: "UTR",
|
|
1807
|
+
name: "utr"
|
|
1808
|
+
}, {
|
|
1809
|
+
id: "NINO",
|
|
1810
|
+
name: "nationalInsuranceNumber",
|
|
1811
|
+
applicableOnlyFor: ["individual"]
|
|
1812
|
+
}],
|
|
1813
|
+
[CountryCodes.UnitedStates]: [{
|
|
1814
|
+
id: "EIN",
|
|
1815
|
+
name: "ein"
|
|
1816
|
+
}]
|
|
1817
|
+
};
|
|
1818
|
+
var getTaxIdNumberOptions = (country, companyType) => {
|
|
1819
|
+
const optionsForCountry = taxIdNumberOptions[country];
|
|
1820
|
+
if (!optionsForCountry) return optionsForCountry;
|
|
1821
|
+
if (isRestrictedEntityType(companyType)) return optionsForCountry.filter((option) => option.applicableOnlyFor?.includes(companyType) ?? true);
|
|
1822
|
+
return optionsForCountry.filter((option) => !isApplicableOnlyForSingleRestrictedType(option));
|
|
1823
|
+
};
|
|
1824
|
+
var getTaxIdNumberSelectorOptions = (country, companyType, exemptedOptionLabel) => {
|
|
1825
|
+
const availableOptions = getTaxIdNumberOptions(country, companyType) ?? [];
|
|
1826
|
+
if (availableOptions.length === 0 || !exemptedOptionLabel) return availableOptions;
|
|
1827
|
+
return [...availableOptions, {
|
|
1828
|
+
id: "exempted",
|
|
1829
|
+
name: exemptedOptionLabel
|
|
1830
|
+
}];
|
|
1831
|
+
};
|
|
1832
|
+
function getValidCompanyTypesForTaxIdNumberType(country, taxIdNumberType) {
|
|
1833
|
+
if (!taxIdNumberType) return void 0;
|
|
1834
|
+
const taxIdOption = taxIdNumberOptions[country]?.find((option) => option.id === taxIdNumberType);
|
|
1835
|
+
if (!taxIdOption?.applicableOnlyFor) return void 0;
|
|
1836
|
+
const validCompanyTypes = taxIdOption.applicableOnlyFor.filter((type) => type !== "individual" && type !== "trust" && type !== "unincorporatedPartnership");
|
|
1837
|
+
return validCompanyTypes.length > 0 ? validCompanyTypes : void 0;
|
|
1838
|
+
}
|
|
1839
|
+
//#endregion
|
|
1840
|
+
//#region src/utils/japanSupportUtils.ts
|
|
1841
|
+
var isJapanLocalizationEnabled = (isSettingEnabled = () => false, country) => {
|
|
1842
|
+
return country === CountryCodes.Japan && isSettingEnabled("enableJapanLocalization");
|
|
1843
|
+
};
|
|
1844
|
+
//#endregion
|
|
1845
|
+
//#region src/utils/textTransformation/toFullWidth.ts
|
|
1846
|
+
var applyDelta = (delta) => (char) => String.fromCharCode(char.charCodeAt(0) + delta);
|
|
1847
|
+
/**
|
|
1848
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/normalize#nfkc
|
|
1849
|
+
*/
|
|
1850
|
+
var standardNormalization = (input) => input.normalize("NFKC");
|
|
1851
|
+
/**
|
|
1852
|
+
* The order here does matter, since the characters matched by each converter may overlap.
|
|
1853
|
+
*/
|
|
1854
|
+
var converters = [
|
|
1855
|
+
{
|
|
1856
|
+
name: "latin",
|
|
1857
|
+
match: /[!-~]/g,
|
|
1858
|
+
convert: applyDelta(65248)
|
|
1859
|
+
},
|
|
1860
|
+
{
|
|
1861
|
+
name: "hangul1",
|
|
1862
|
+
match: /[ᄀ-ᄒ]/g,
|
|
1863
|
+
convert: standardNormalization
|
|
1864
|
+
},
|
|
1865
|
+
{
|
|
1866
|
+
name: "hangul2",
|
|
1867
|
+
match: /[ᅡ-ᅵ]/g,
|
|
1868
|
+
convert: standardNormalization
|
|
1869
|
+
},
|
|
1870
|
+
{
|
|
1871
|
+
name: "katakana",
|
|
1872
|
+
match: /[\uff60-\uff9f]+/g,
|
|
1873
|
+
convert: standardNormalization
|
|
1874
|
+
},
|
|
1875
|
+
{
|
|
1876
|
+
name: "extras",
|
|
1877
|
+
match: /[¢£¬¯¦¥₩\u0020|←↑→↓■°]/g,
|
|
1878
|
+
convert: (char) => {
|
|
1879
|
+
return "¢£¬ ̄¦¥₩ |←↑→↓■○"["¢£¬¯¦¥₩ |←↑→↓■°".indexOf(char)];
|
|
1880
|
+
}
|
|
1881
|
+
}
|
|
1882
|
+
];
|
|
1883
|
+
/**
|
|
1884
|
+
* Replaces half-width characters with full-width characters.
|
|
1885
|
+
* Includes Latin characters, Katakana, Hangul and various symbols.
|
|
1886
|
+
*/
|
|
1887
|
+
var toFullWidth = (value) => {
|
|
1888
|
+
let input = value;
|
|
1889
|
+
for (const { match, convert } of converters) input = input.replaceAll(match, convert);
|
|
1890
|
+
return input;
|
|
1891
|
+
};
|
|
1892
|
+
//#endregion
|
|
1893
|
+
//#region src/components/Shared/fields/TaxInformationField/fieldConfig.ts
|
|
1894
|
+
var taxInformationDefaultFieldMetadata = { label: "taxId" };
|
|
1895
|
+
var exemptedFromTaxDefaultFieldMetadata = { label: "iDontHaveATaxId" };
|
|
1896
|
+
/**
|
|
1897
|
+
* Mapping function to parse TaxInformation schemas to validate the string for TaxInformation.number
|
|
1898
|
+
*
|
|
1899
|
+
* @param validators - String validators for the TaxInformation.number
|
|
1900
|
+
* @param country - Country in the fieldConfig
|
|
1901
|
+
*/
|
|
1902
|
+
var mapValidators = (validators, country) => validators.map((validator) => ({
|
|
1903
|
+
...validator,
|
|
1904
|
+
validate: (taxInformation) => {
|
|
1905
|
+
const taxInfo = taxInformation?.find((taxId) => country === taxId.country);
|
|
1906
|
+
if (taxInfo?.numberAbsent) return true;
|
|
1907
|
+
return taxInfo?.number ? validator.validate(taxInfo.number) : false;
|
|
1908
|
+
}
|
|
1909
|
+
}));
|
|
1910
|
+
var taxInformationDefaultFieldConfig = {
|
|
1911
|
+
[CountryCodes.Australia]: ({ taxIdNumberType }) => {
|
|
1912
|
+
switch (taxIdNumberType) {
|
|
1913
|
+
case "TFN": return {
|
|
1914
|
+
label: "taxInformationNumber__AU_Individual",
|
|
1915
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{9}$/)], CountryCodes.Australia),
|
|
1916
|
+
mask: { mask: makeMask(...numericInputs(9)) },
|
|
1917
|
+
guidanceText: {
|
|
1918
|
+
key: "enterNDigitsForExample",
|
|
1919
|
+
values: {
|
|
1920
|
+
numDigits: "9",
|
|
1921
|
+
example: "123456789"
|
|
1922
|
+
}
|
|
1923
|
+
}
|
|
1924
|
+
};
|
|
1925
|
+
default: return {
|
|
1926
|
+
label: "australianBusinessNumberAbn",
|
|
1927
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{11}$/)], CountryCodes.Australia),
|
|
1928
|
+
mask: { mask: makeMask(...numericInputs(2), spacer, ...numericInputs(3), spacer, ...numericInputs(3), spacer, ...numericInputs(3)) },
|
|
1929
|
+
guidanceText: {
|
|
1930
|
+
key: "enterNDigitsForExample",
|
|
1931
|
+
values: {
|
|
1932
|
+
numDigits: "11",
|
|
1933
|
+
example: "51 824 753 556"
|
|
1934
|
+
}
|
|
1935
|
+
}
|
|
1936
|
+
};
|
|
1937
|
+
}
|
|
1938
|
+
},
|
|
1939
|
+
[CountryCodes.Austria]: {
|
|
1940
|
+
label: "taxInformationNumber__AT",
|
|
1941
|
+
validators: mapValidators([validatePatternOnBlur(/^(?=(?:[^0-9]*\d){9}[^0-9]*$)[\d\-/]+$/)], CountryCodes.Austria),
|
|
1942
|
+
mask: { mask: makeMask(...numericInputs(2), {
|
|
1943
|
+
type: "input",
|
|
1944
|
+
allow: /[-/]/,
|
|
1945
|
+
optional: true
|
|
1946
|
+
}, ...numericInputs(3), {
|
|
1947
|
+
type: "input",
|
|
1948
|
+
allow: /[-/]/,
|
|
1949
|
+
optional: true
|
|
1950
|
+
}, ...numericInputs(4)) },
|
|
1951
|
+
guidanceText: {
|
|
1952
|
+
key: "enterNDigitsForExample",
|
|
1953
|
+
values: {
|
|
1954
|
+
numDigits: "9",
|
|
1955
|
+
example: "931736581"
|
|
1956
|
+
}
|
|
1957
|
+
}
|
|
1958
|
+
},
|
|
1959
|
+
[CountryCodes.Belgium]: ({ taxIdNumberType }) => {
|
|
1960
|
+
switch (taxIdNumberType) {
|
|
1961
|
+
case "NUMERO_NATIONAL": return {
|
|
1962
|
+
label: "taxInformationNumber__BE_Individual",
|
|
1963
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{11}$/)], CountryCodes.Belgium),
|
|
1964
|
+
mask: { mask: makeMask(...numericInputs(11)) },
|
|
1965
|
+
guidanceText: {
|
|
1966
|
+
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
1967
|
+
values: {
|
|
1968
|
+
example: "99999999999",
|
|
1969
|
+
idType: "Numeró National"
|
|
1970
|
+
}
|
|
1971
|
+
}
|
|
1972
|
+
};
|
|
1973
|
+
default: return {
|
|
1974
|
+
label: "taxInformationNumber__BE",
|
|
1975
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{10}$/)], CountryCodes.Belgium),
|
|
1976
|
+
mask: { mask: makeMask(...numericInputs(10)) },
|
|
1977
|
+
guidanceText: {
|
|
1978
|
+
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
1979
|
+
values: {
|
|
1980
|
+
example: "0123321123",
|
|
1981
|
+
idType: "Business nummer"
|
|
1982
|
+
}
|
|
1983
|
+
}
|
|
1984
|
+
};
|
|
1985
|
+
}
|
|
1986
|
+
},
|
|
1987
|
+
[CountryCodes.Bulgaria]: {
|
|
1988
|
+
label: "taxInformationNumber__BG",
|
|
1989
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{10}$/)], CountryCodes.Bulgaria),
|
|
1990
|
+
mask: { mask: makeMask(...numericInputs(10)) },
|
|
1991
|
+
guidanceText: {
|
|
1992
|
+
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
1993
|
+
values: {
|
|
1994
|
+
example: "8001010000",
|
|
1995
|
+
idType: "Edinen grazhdanski nomer / ЕГН"
|
|
1996
|
+
}
|
|
1997
|
+
}
|
|
1998
|
+
},
|
|
1999
|
+
[CountryCodes.Canada]: ({ taxIdNumberType }) => {
|
|
2000
|
+
switch (taxIdNumberType) {
|
|
2001
|
+
case "SIN": return {
|
|
2002
|
+
label: "taxInformationNumber__CA",
|
|
2003
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{9}$/)], CountryCodes.Canada),
|
|
2004
|
+
mask: { mask: makeMask(...numericInputs(9)) },
|
|
2005
|
+
guidanceText: {
|
|
2006
|
+
key: "enterNDigitsForExample",
|
|
2007
|
+
values: {
|
|
2008
|
+
numDigits: "9",
|
|
2009
|
+
example: "123456789"
|
|
2010
|
+
}
|
|
2011
|
+
}
|
|
2012
|
+
};
|
|
2013
|
+
default: return {
|
|
2014
|
+
label: "businessNumber",
|
|
2015
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{9}$/)], CountryCodes.Canada),
|
|
2016
|
+
mask: { mask: makeMask(...numericInputs(9)) },
|
|
2017
|
+
guidanceText: {
|
|
2018
|
+
key: "enterNDigitsForExample",
|
|
2019
|
+
values: {
|
|
2020
|
+
numDigits: "9",
|
|
2021
|
+
example: "123456789"
|
|
2022
|
+
}
|
|
2023
|
+
}
|
|
2024
|
+
};
|
|
2025
|
+
}
|
|
2026
|
+
},
|
|
2027
|
+
[CountryCodes.China]: {
|
|
2028
|
+
label: "taxInformationNumber__CN",
|
|
2029
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{17}[0-9X]$/)], CountryCodes.China),
|
|
2030
|
+
mask: {
|
|
2031
|
+
mask: makeMask(...numericInputs(17), ...customInputs(1, /[0-9X]/)),
|
|
2032
|
+
transformOnType: uppercase
|
|
2033
|
+
},
|
|
2034
|
+
guidanceText: {
|
|
2035
|
+
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
2036
|
+
values: {
|
|
2037
|
+
example: "11010519491231002X",
|
|
2038
|
+
idType: "Resident Identity Card Number (居民身份证号码)"
|
|
2039
|
+
}
|
|
2040
|
+
}
|
|
2041
|
+
},
|
|
2042
|
+
[CountryCodes.Croatia]: {
|
|
2043
|
+
label: "taxInformationNumber__HR",
|
|
2044
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{11}$/)], CountryCodes.Croatia),
|
|
2045
|
+
mask: { mask: makeMask(...numericInputs(11)) },
|
|
2046
|
+
guidanceText: {
|
|
2047
|
+
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
2048
|
+
values: {
|
|
2049
|
+
example: "94577403194",
|
|
2050
|
+
idType: "OIB"
|
|
2051
|
+
}
|
|
2052
|
+
}
|
|
2053
|
+
},
|
|
2054
|
+
[CountryCodes.Cyprus]: {
|
|
2055
|
+
label: "taxInformationNumber__CY",
|
|
2056
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{8,9}[A-Z]$/)], CountryCodes.Cyprus),
|
|
2057
|
+
mask: {
|
|
2058
|
+
mask: makeMask(...numericInputs(8), ...numericInputs(1, true), ...alphaInputs(1)),
|
|
2059
|
+
transformOnType: uppercase
|
|
2060
|
+
},
|
|
2061
|
+
guidanceText: {
|
|
2062
|
+
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
2063
|
+
values: {
|
|
2064
|
+
example: "00123123T",
|
|
2065
|
+
idType: "TIC"
|
|
2066
|
+
}
|
|
2067
|
+
}
|
|
2068
|
+
},
|
|
2069
|
+
[CountryCodes.CzechRepublic]: {
|
|
2070
|
+
label: "taxInformationNumber__CZ",
|
|
2071
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{9,10}$/)], CountryCodes.CzechRepublic),
|
|
2072
|
+
mask: { mask: makeMask(...numericInputs(6), ...nonInputs("/"), ...numericInputs(3), ...numericInputs(1, true)) },
|
|
2073
|
+
guidanceText: {
|
|
2074
|
+
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
2075
|
+
values: {
|
|
2076
|
+
example: "850523/1234",
|
|
2077
|
+
idType: "Rodné číslo (RČ)"
|
|
2078
|
+
}
|
|
2079
|
+
}
|
|
2080
|
+
},
|
|
2081
|
+
[CountryCodes.Denmark]: {
|
|
2082
|
+
label: "taxInformationNumber__DK",
|
|
2083
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{10}$/)], CountryCodes.Denmark),
|
|
2084
|
+
mask: { mask: makeMask(...numericInputs(6), ...nonInputs("-"), ...numericInputs(4)) },
|
|
2085
|
+
guidanceText: {
|
|
2086
|
+
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
2087
|
+
values: {
|
|
2088
|
+
example: "120585-1234",
|
|
2089
|
+
idType: "CPR-nummer (Personnummer)"
|
|
2090
|
+
}
|
|
2091
|
+
}
|
|
2092
|
+
},
|
|
2093
|
+
[CountryCodes.Egypt]: {
|
|
2094
|
+
label: "taxInformationNumber__EG",
|
|
2095
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{9}$/)], CountryCodes.Egypt),
|
|
2096
|
+
mask: { mask: makeMask(...numericInputs(9)) },
|
|
2097
|
+
guidanceText: {
|
|
2098
|
+
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
2099
|
+
values: {
|
|
2100
|
+
example: "123456789",
|
|
2101
|
+
idType: "Tax Registration Number (رقم التسجيل الضريبي)"
|
|
2102
|
+
}
|
|
2103
|
+
}
|
|
2104
|
+
},
|
|
2105
|
+
[CountryCodes.Estonia]: {
|
|
2106
|
+
label: "taxInformationNumber__ET_Individual",
|
|
2107
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{11}$/)], CountryCodes.Estonia),
|
|
2108
|
+
mask: { mask: makeMask(...numericInputs(11)) },
|
|
2109
|
+
guidanceText: {
|
|
2110
|
+
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
2111
|
+
values: {
|
|
2112
|
+
example: "32708101201",
|
|
2113
|
+
idType: "Isikukood"
|
|
2114
|
+
}
|
|
2115
|
+
}
|
|
2116
|
+
},
|
|
2117
|
+
[CountryCodes.Finland]: {
|
|
2118
|
+
label: "taxInformationNumber__FI",
|
|
2119
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{6}[+\-A]\d{3}[0-9A-Y]$/)], CountryCodes.Finland),
|
|
2120
|
+
mask: {
|
|
2121
|
+
mask: makeMask(...numericInputs(6), {
|
|
2122
|
+
type: "input",
|
|
2123
|
+
allow: /[+\-A]/
|
|
2124
|
+
}, ...numericInputs(3), {
|
|
2125
|
+
type: "input",
|
|
2126
|
+
allow: /[0-9A-Y]/
|
|
2127
|
+
}),
|
|
2128
|
+
transformOnType: uppercase
|
|
2129
|
+
},
|
|
2130
|
+
guidanceText: {
|
|
2131
|
+
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
2132
|
+
values: {
|
|
2133
|
+
example: "131052-308T",
|
|
2134
|
+
idType: "Henkilötunnus"
|
|
2135
|
+
}
|
|
2136
|
+
}
|
|
2137
|
+
},
|
|
2138
|
+
[CountryCodes.France]: {
|
|
2139
|
+
label: "taxInformationNumber__FR",
|
|
2140
|
+
validators: mapValidators([validatePatternOnBlur(/^\s*(\d\s*){13}$/)], CountryCodes.France),
|
|
2141
|
+
mask: { mask: makeMask(...numericInputs(2), spacer, ...numericInputs(2), spacer, ...numericInputs(3), spacer, ...numericInputs(3), spacer, ...numericInputs(3)) },
|
|
2142
|
+
guidanceText: {
|
|
2143
|
+
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
2144
|
+
values: {
|
|
2145
|
+
example: "30 23 217 600 053",
|
|
2146
|
+
idType: "Numéro SPI"
|
|
2147
|
+
}
|
|
2148
|
+
}
|
|
2149
|
+
},
|
|
2150
|
+
[CountryCodes.Germany]: ({ taxIdNumberType }) => {
|
|
2151
|
+
switch (taxIdNumberType) {
|
|
2152
|
+
case "IDNR": return {
|
|
2153
|
+
label: "taxInformationNumber__DE_Individual",
|
|
2154
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{11}$/)], CountryCodes.Germany),
|
|
2155
|
+
mask: { mask: makeMask(...numericInputs(11)) },
|
|
2156
|
+
guidanceText: {
|
|
2157
|
+
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
2158
|
+
values: {
|
|
2159
|
+
example: "26954371827",
|
|
2160
|
+
idType: "IdNr"
|
|
2161
|
+
}
|
|
2162
|
+
}
|
|
2163
|
+
};
|
|
2164
|
+
default: return {
|
|
2165
|
+
label: "taxInformationNumber__DE",
|
|
2166
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{10}$|^\d{11}$|^\d{13}$/)], CountryCodes.Germany),
|
|
2167
|
+
mask: { mask: makeMask(...numericInputs(10), ...numericInputs(3, true)) },
|
|
2168
|
+
guidanceText: {
|
|
2169
|
+
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
2170
|
+
values: {
|
|
2171
|
+
example: "14310260208",
|
|
2172
|
+
idType: "Steuernummer"
|
|
2173
|
+
}
|
|
2174
|
+
}
|
|
2175
|
+
};
|
|
2176
|
+
}
|
|
2177
|
+
},
|
|
2178
|
+
[CountryCodes.Gibraltar]: {
|
|
2179
|
+
label: "taxpayerReferenceNumber",
|
|
2180
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{1,7}$/)], CountryCodes.Gibraltar),
|
|
2181
|
+
mask: { mask: makeMask(...numericInputs(1), ...numericInputs(6, true)) },
|
|
2182
|
+
guidanceText: {
|
|
2183
|
+
key: "enterAMaximumOfNDigitsForExample",
|
|
2184
|
+
values: {
|
|
2185
|
+
maxDigits: "7",
|
|
2186
|
+
example: "123456"
|
|
2187
|
+
}
|
|
2188
|
+
}
|
|
2189
|
+
},
|
|
2190
|
+
[CountryCodes.Greece]: {
|
|
2191
|
+
label: "taxInformationNumber__GR",
|
|
2192
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{9}$/)], CountryCodes.Greece),
|
|
2193
|
+
mask: { mask: makeMask(...numericInputs(9)) },
|
|
2194
|
+
guidanceText: {
|
|
2195
|
+
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
2196
|
+
values: {
|
|
2197
|
+
example: "244709851",
|
|
2198
|
+
idType: "AFM"
|
|
2199
|
+
}
|
|
2200
|
+
}
|
|
2201
|
+
},
|
|
2202
|
+
[CountryCodes.Guernsey]: ({ taxIdNumberType }) => {
|
|
2203
|
+
switch (taxIdNumberType) {
|
|
2204
|
+
case "TIN_GG": return {
|
|
2205
|
+
label: "nationalInsuranceNumber",
|
|
2206
|
+
validators: mapValidators([validatePatternOnBlur(/^GY\d{6}[A-D]$/)], CountryCodes.Guernsey),
|
|
2207
|
+
mask: {
|
|
2208
|
+
mask: makeMask(...nonInputs("GY", { includeInValue: true }), spacer, ...numericInputs(2), spacer, ...numericInputs(2), spacer, ...numericInputs(2), spacer, {
|
|
2209
|
+
type: "input",
|
|
2210
|
+
allow: /[A-D]/
|
|
2211
|
+
}),
|
|
2212
|
+
transformOnType: uppercase
|
|
2213
|
+
},
|
|
2214
|
+
guidanceText: {
|
|
2215
|
+
key: "enterTheRemainingNCharactersForExample",
|
|
2216
|
+
values: {
|
|
2217
|
+
numChars: "7",
|
|
2218
|
+
example: "GY 12 34 56 A"
|
|
2219
|
+
}
|
|
2220
|
+
}
|
|
2221
|
+
};
|
|
2222
|
+
default: return {
|
|
2223
|
+
label: "taxInformationNumber",
|
|
2224
|
+
mask: businessRegistrationNumberMasks[CountryCodes.Guernsey].default,
|
|
2225
|
+
validators: mapValidators([validatePatternOnBlur(businessRegistrationNumberPatterns[CountryCodes.Guernsey].default)], CountryCodes.Guernsey),
|
|
2226
|
+
guidanceText: {
|
|
2227
|
+
key: "enterAMaximumOfNDigitsForExample",
|
|
2228
|
+
values: {
|
|
2229
|
+
maxDigits: "9",
|
|
2230
|
+
example: "123456"
|
|
2231
|
+
}
|
|
2232
|
+
}
|
|
2233
|
+
};
|
|
2234
|
+
}
|
|
2235
|
+
},
|
|
2236
|
+
[CountryCodes.HongKong]: ({ taxIdNumberType }) => {
|
|
2237
|
+
switch (taxIdNumberType) {
|
|
2238
|
+
case "HKID": return {
|
|
2239
|
+
label: "taxInformationNumber__HK_Individual",
|
|
2240
|
+
validators: mapValidators([validatePatternOnBlur(/^[A-Z]{1,2}[0-9]{6}[A-Z0-9]$/)], CountryCodes.HongKong),
|
|
2241
|
+
mask: {
|
|
2242
|
+
mask: makeMask(...alphaInputs(1), ...alphaInputs(1, true), ...numericInputs(6), ...nonInputs("(", { displayEagerly: false }), ...alphanumericInputs(1), ...nonInputs(")", { displayEagerly: true })),
|
|
2243
|
+
transformOnType: uppercase
|
|
2244
|
+
},
|
|
2245
|
+
guidanceText: {
|
|
2246
|
+
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
2247
|
+
values: {
|
|
2248
|
+
example: "A123456(7)",
|
|
2249
|
+
idType: "Hong Kong Identity Card Number (HKID)"
|
|
2250
|
+
}
|
|
2251
|
+
}
|
|
2252
|
+
};
|
|
2253
|
+
default: return {
|
|
2254
|
+
label: "taxInformationNumber__HK",
|
|
2255
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{8}$/)], CountryCodes.HongKong),
|
|
2256
|
+
mask: { mask: makeMask(...numericInputs(8)) },
|
|
2257
|
+
guidanceText: {
|
|
2258
|
+
key: "enterNDigitsForExample",
|
|
2259
|
+
values: {
|
|
2260
|
+
numDigits: "8",
|
|
2261
|
+
example: "70569713"
|
|
2262
|
+
}
|
|
2263
|
+
}
|
|
2264
|
+
};
|
|
2265
|
+
}
|
|
2266
|
+
},
|
|
2267
|
+
[CountryCodes.Hungary]: {
|
|
2268
|
+
label: "taxInformationNumber__HU",
|
|
2269
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{10}$/)], CountryCodes.Hungary),
|
|
2270
|
+
mask: { mask: makeMask(...numericInputs(10)) },
|
|
2271
|
+
guidanceText: {
|
|
2272
|
+
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
2273
|
+
values: {
|
|
2274
|
+
example: "8123456789",
|
|
2275
|
+
idType: "Adóazonosító jel"
|
|
2276
|
+
}
|
|
2277
|
+
}
|
|
2278
|
+
},
|
|
2279
|
+
[CountryCodes.Iceland]: {
|
|
2280
|
+
label: "taxInformationNumber__IS",
|
|
2281
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{10}$/)], CountryCodes.Iceland),
|
|
2282
|
+
mask: { mask: makeMask(...numericInputs(6), ...nonInputs("-"), ...numericInputs(4)) },
|
|
2283
|
+
guidanceText: {
|
|
2284
|
+
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
2285
|
+
values: {
|
|
2286
|
+
example: "120585-1234",
|
|
2287
|
+
idType: "Kennitala"
|
|
2288
|
+
}
|
|
2289
|
+
}
|
|
2290
|
+
},
|
|
2291
|
+
[CountryCodes.Ireland]: ({ taxIdNumberType }) => {
|
|
2292
|
+
switch (taxIdNumberType) {
|
|
2293
|
+
case "PERSONAL_PUBLIC_SERVICE_NUMBER": return {
|
|
2294
|
+
label: "taxInformationNumber__IE_Individual",
|
|
2295
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{7}[A-Z]$|^\d{7}[A-Z]{2}$/)], CountryCodes.Ireland),
|
|
2296
|
+
mask: {
|
|
2297
|
+
mask: makeMask(...numericInputs(7), ...alphaInputs(1), ...alphaInputs(1, true)),
|
|
2298
|
+
transformOnType: uppercase
|
|
2299
|
+
},
|
|
2300
|
+
guidanceText: {
|
|
2301
|
+
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
2302
|
+
values: {
|
|
2303
|
+
example: "1234567T",
|
|
2304
|
+
idType: "Personal Public Service Number"
|
|
2305
|
+
}
|
|
2306
|
+
}
|
|
2307
|
+
};
|
|
2308
|
+
default: return {
|
|
2309
|
+
label: "trnNumber",
|
|
2310
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{7}[A-Z]$|^\d{7}[A-Z]{2}$/)], CountryCodes.Ireland),
|
|
2311
|
+
mask: {
|
|
2312
|
+
mask: makeMask(...numericInputs(7), ...alphaInputs(1), ...alphaInputs(1, true)),
|
|
2313
|
+
transformOnType: uppercase
|
|
2314
|
+
},
|
|
2315
|
+
guidanceText: {
|
|
2316
|
+
key: "enterXDigitsThenXToYLettersForExample",
|
|
2317
|
+
values: {
|
|
2318
|
+
numDigits: "7",
|
|
2319
|
+
minLetters: "1",
|
|
2320
|
+
maxLetters: "2",
|
|
2321
|
+
example: "1497955KA"
|
|
2322
|
+
}
|
|
2323
|
+
}
|
|
2324
|
+
};
|
|
2325
|
+
}
|
|
2326
|
+
},
|
|
2327
|
+
[CountryCodes.India]: {
|
|
2328
|
+
label: "taxInformationNumber__IN",
|
|
2329
|
+
validators: mapValidators([validatePatternOnBlur(/^[A-Z]{5}\d{4}[A-Z]$/)], CountryCodes.India),
|
|
2330
|
+
mask: {
|
|
2331
|
+
mask: makeMask(...alphaInputs(5), ...numericInputs(4), ...alphaInputs(1)),
|
|
2332
|
+
transformOnType: uppercase
|
|
2333
|
+
},
|
|
2334
|
+
guidanceText: {
|
|
2335
|
+
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
2336
|
+
values: {
|
|
2337
|
+
example: "ABCDE1234F",
|
|
2338
|
+
idType: "Permanent Account Number (PAN)"
|
|
2339
|
+
}
|
|
2340
|
+
}
|
|
2341
|
+
},
|
|
2342
|
+
[CountryCodes.Israel]: {
|
|
2343
|
+
label: "taxInformationNumber__IL",
|
|
2344
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{9}$/)], CountryCodes.Israel),
|
|
2345
|
+
mask: { mask: makeMask(...numericInputs(9)) },
|
|
2346
|
+
guidanceText: {
|
|
2347
|
+
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
2348
|
+
values: {
|
|
2349
|
+
example: "123456782",
|
|
2350
|
+
idType: "Identity Number (Mispar Zehut / מספר זהות)"
|
|
2351
|
+
}
|
|
2352
|
+
}
|
|
2353
|
+
},
|
|
2354
|
+
[CountryCodes.Italy]: {
|
|
2355
|
+
label: "codiceFiscale",
|
|
2356
|
+
mask: { mask: makeMask(...numericInputs(11)) },
|
|
2357
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{11}$/)], CountryCodes.Italy),
|
|
2358
|
+
guidanceText: {
|
|
2359
|
+
key: "enterNDigitsForExample",
|
|
2360
|
+
values: {
|
|
2361
|
+
numDigits: "11",
|
|
2362
|
+
example: "12345678901"
|
|
2363
|
+
}
|
|
2364
|
+
}
|
|
2365
|
+
},
|
|
2366
|
+
[CountryCodes.IsleOfMan]: {
|
|
2367
|
+
label: "taxReferenceNumber",
|
|
2368
|
+
validators: mapValidators([validatePatternOnBlur(/^[HCX]\d{8}$/)], CountryCodes.IsleOfMan),
|
|
2369
|
+
mask: {
|
|
2370
|
+
mask: makeMask({
|
|
2371
|
+
type: "input",
|
|
2372
|
+
allow: /[HCX]/
|
|
2373
|
+
}, ...numericInputs(6), ...nonInputs(" - "), ...numericInputs(2)),
|
|
2374
|
+
transformOnType: uppercase
|
|
2375
|
+
},
|
|
2376
|
+
guidanceText: {
|
|
2377
|
+
key: "enterNCharactersForExample",
|
|
2378
|
+
values: {
|
|
2379
|
+
numChars: "9",
|
|
2380
|
+
example: "C155673-79"
|
|
2381
|
+
}
|
|
2382
|
+
}
|
|
2383
|
+
},
|
|
2384
|
+
[CountryCodes.Japan]: ({ taxIdNumberType }) => {
|
|
2385
|
+
switch (taxIdNumberType) {
|
|
2386
|
+
case "CORPORATE_NUMBER":
|
|
2387
|
+
default: return {
|
|
2388
|
+
label: "taxInformationNumber__JP",
|
|
2389
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{13}$/)], CountryCodes.Japan),
|
|
2390
|
+
guidanceText: {
|
|
2391
|
+
key: "enterNDigitsForExample",
|
|
2392
|
+
values: {
|
|
2393
|
+
numDigits: "13",
|
|
2394
|
+
example: "2169151989941"
|
|
2395
|
+
}
|
|
2396
|
+
}
|
|
2397
|
+
};
|
|
2398
|
+
case "JP_MY_NUMBER": return {
|
|
2399
|
+
label: "taxInformationNumber__JP_Individual",
|
|
2400
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{12}$/)], CountryCodes.Japan),
|
|
2401
|
+
mask: { mask: makeMask(...numericInputs(12)) },
|
|
2402
|
+
guidanceText: {
|
|
2403
|
+
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
2404
|
+
values: {
|
|
2405
|
+
example: "123456789012",
|
|
2406
|
+
idType: "Individual Number / My Number (マイナンバー)"
|
|
2407
|
+
}
|
|
2408
|
+
}
|
|
2409
|
+
};
|
|
2410
|
+
}
|
|
2411
|
+
},
|
|
2412
|
+
[CountryCodes.Jersey]: ({ taxIdNumberType, companyType }) => {
|
|
2413
|
+
switch (taxIdNumberType) {
|
|
2414
|
+
case "SSN": return {
|
|
2415
|
+
label: "socialSecurityNumber",
|
|
2416
|
+
validators: mapValidators([validatePatternOnBlur(/^[A-Z]{2}\d{6}[A-Z]$/)], CountryCodes.Jersey),
|
|
2417
|
+
mask: {
|
|
2418
|
+
mask: makeMask(...alphaInputs(2), ...numericInputs(6), ...alphaInputs(1)),
|
|
2419
|
+
transformOnType: uppercase
|
|
2420
|
+
},
|
|
2421
|
+
guidanceText: {
|
|
2422
|
+
key: "enterNCharactersForExample",
|
|
2423
|
+
values: {
|
|
2424
|
+
numChars: "9",
|
|
2425
|
+
example: "JY000000A"
|
|
2426
|
+
}
|
|
2427
|
+
}
|
|
2428
|
+
};
|
|
2429
|
+
default: switch (companyType) {
|
|
2430
|
+
case "soleProprietorship": return {
|
|
2431
|
+
label: "taxIdentificationNumber",
|
|
2432
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{10}$/)], CountryCodes.Jersey),
|
|
2433
|
+
mask: { mask: makeMask(...numericInputs(3), ...nonInputs(" - "), ...numericInputs(3), ...nonInputs(" - "), ...numericInputs(4)) },
|
|
2434
|
+
guidanceText: {
|
|
2435
|
+
key: "enterNDigitsForExample",
|
|
2436
|
+
values: {
|
|
2437
|
+
numDigits: "10",
|
|
2438
|
+
example: "100-100-1000"
|
|
2439
|
+
}
|
|
2440
|
+
}
|
|
2441
|
+
};
|
|
2442
|
+
default: return {
|
|
2443
|
+
label: "taxIdentificationNumber",
|
|
2444
|
+
validators: mapValidators([validatePatternOnBlur(/^[A-Z]{2}\d{5}$/)], CountryCodes.Jersey),
|
|
2445
|
+
mask: {
|
|
2446
|
+
mask: makeMask(...alphaInputs(2), ...numericInputs(5)),
|
|
2447
|
+
transformOnType: uppercase
|
|
2448
|
+
},
|
|
2449
|
+
guidanceText: {
|
|
2450
|
+
key: "enterNCharactersForExample",
|
|
2451
|
+
values: {
|
|
2452
|
+
numChars: "7",
|
|
2453
|
+
example: "CC17261"
|
|
2454
|
+
}
|
|
2455
|
+
}
|
|
2456
|
+
};
|
|
2457
|
+
}
|
|
2458
|
+
}
|
|
2459
|
+
},
|
|
2460
|
+
[CountryCodes.Latvia]: {
|
|
2461
|
+
label: "taxInformationNumber__LV",
|
|
2462
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{11}$/)], CountryCodes.Latvia),
|
|
2463
|
+
mask: { mask: makeMask(...numericInputs(11)) },
|
|
2464
|
+
guidanceText: {
|
|
2465
|
+
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
2466
|
+
values: {
|
|
2467
|
+
example: "32532963606",
|
|
2468
|
+
idType: "Personas kods"
|
|
2469
|
+
}
|
|
2470
|
+
}
|
|
2471
|
+
},
|
|
2472
|
+
[CountryCodes.Lithuania]: {
|
|
2473
|
+
label: "taxInformationNumber__LT",
|
|
2474
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{11}$/)], CountryCodes.Lithuania),
|
|
2475
|
+
mask: { mask: makeMask(...numericInputs(11)) },
|
|
2476
|
+
guidanceText: {
|
|
2477
|
+
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
2478
|
+
values: {
|
|
2479
|
+
example: "33309240064",
|
|
2480
|
+
idType: "Asmens kodas"
|
|
2481
|
+
}
|
|
2482
|
+
}
|
|
2483
|
+
},
|
|
2484
|
+
[CountryCodes.Luxembourg]: ({ companyType }) => {
|
|
2485
|
+
switch (companyType) {
|
|
2486
|
+
case "individual": return {
|
|
2487
|
+
label: "taxInformationNumber__LU_Individual",
|
|
2488
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{13}$/)], CountryCodes.Luxembourg),
|
|
2489
|
+
mask: { mask: makeMask(...numericInputs(13)) },
|
|
2490
|
+
guidanceText: {
|
|
2491
|
+
key: "enterNCharactersForExample",
|
|
2492
|
+
values: {
|
|
2493
|
+
numChars: "13",
|
|
2494
|
+
example: "1893120105732"
|
|
2495
|
+
}
|
|
2496
|
+
}
|
|
2497
|
+
};
|
|
2498
|
+
default: return {
|
|
2499
|
+
label: "taxInformationNumber__LU_Org",
|
|
2500
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{11}$/)], CountryCodes.Luxembourg),
|
|
2501
|
+
mask: { mask: makeMask(...numericInputs(11)) },
|
|
2502
|
+
guidanceText: {
|
|
2503
|
+
key: "enterNCharactersForExample",
|
|
2504
|
+
values: {
|
|
2505
|
+
numChars: "11",
|
|
2506
|
+
example: "19991201001"
|
|
2507
|
+
}
|
|
2508
|
+
}
|
|
2509
|
+
};
|
|
2510
|
+
}
|
|
2511
|
+
},
|
|
2512
|
+
[CountryCodes.Malta]: ({ taxIdNumberType }) => {
|
|
2513
|
+
switch (taxIdNumberType) {
|
|
2514
|
+
case "IDENTITY_CARD_NUMBER": return {
|
|
2515
|
+
label: "taxInformationNumber__MT_Individual",
|
|
2516
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{7}[A-Z]$|^\d{9}$/)], CountryCodes.Malta),
|
|
2517
|
+
mask: {
|
|
2518
|
+
mask: makeMask(...numericInputs(7), ...alphanumericInputs(2)),
|
|
2519
|
+
transformOnType: uppercase
|
|
2520
|
+
},
|
|
2521
|
+
guidanceText: {
|
|
2522
|
+
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
2523
|
+
values: {
|
|
2524
|
+
example: "1234567A",
|
|
2525
|
+
idType: "Identity card number"
|
|
2526
|
+
}
|
|
2527
|
+
}
|
|
2528
|
+
};
|
|
2529
|
+
case "UNIQUE_TAXPAYER_REFERENCE_NUMBER": return {
|
|
2530
|
+
label: "taxInformationNumber__MT_Individual_UTRN",
|
|
2531
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{9}$/)], CountryCodes.Malta),
|
|
2532
|
+
mask: { mask: makeMask(...numericInputs(9)) },
|
|
2533
|
+
guidanceText: {
|
|
2534
|
+
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
2535
|
+
values: {
|
|
2536
|
+
example: "999999999",
|
|
2537
|
+
idType: "Unique taxpayer reference number"
|
|
2538
|
+
}
|
|
2539
|
+
}
|
|
2540
|
+
};
|
|
2541
|
+
default: return {
|
|
2542
|
+
label: "taxInformationNumber__MT_Org",
|
|
2543
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{9}$/)], CountryCodes.Malta),
|
|
2544
|
+
mask: { mask: makeMask(...numericInputs(9)) },
|
|
2545
|
+
guidanceText: {
|
|
2546
|
+
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
2547
|
+
values: {
|
|
2548
|
+
example: "123456789",
|
|
2549
|
+
idType: "Income Tax Registration Number"
|
|
2550
|
+
}
|
|
2551
|
+
}
|
|
2552
|
+
};
|
|
2553
|
+
}
|
|
2554
|
+
},
|
|
2555
|
+
[CountryCodes.Mexico]: ({ companyType }) => {
|
|
2556
|
+
switch (companyType) {
|
|
2557
|
+
case "soleProprietorship": return {
|
|
2558
|
+
label: "taxInformationNumber__MX",
|
|
2559
|
+
validators: mapValidators([validatePatternOnBlur(/^[a-zA-Z]{3,4}\d{6}[A-Za-z0-9]{3}$/)], CountryCodes.Mexico),
|
|
2560
|
+
mask: { mask: makeMask(...alphanumericInputs(12), ...alphanumericInputs(1, true)) },
|
|
2561
|
+
guidanceText: {
|
|
2562
|
+
key: "enterXToYCharactersForExample",
|
|
2563
|
+
values: {
|
|
2564
|
+
minDigis: "12",
|
|
2565
|
+
maxDigits: "13",
|
|
2566
|
+
example: "LFM200817DGA, GOMJ850215AB3"
|
|
2567
|
+
}
|
|
2568
|
+
}
|
|
2569
|
+
};
|
|
2570
|
+
default: return {
|
|
2571
|
+
label: "taxInformationNumber__MX",
|
|
2572
|
+
validators: mapValidators([validatePatternOnBlur(/^[a-zA-Z]{3}\d{6}[A-Za-z0-9]{3}$/)], CountryCodes.Mexico),
|
|
2573
|
+
mask: { mask: makeMask(...alphaInputs(3), ...numericInputs(6), ...alphanumericInputs(3)) },
|
|
2574
|
+
guidanceText: {
|
|
2575
|
+
key: "enterNCharactersForExample",
|
|
2576
|
+
values: {
|
|
2577
|
+
numDigits: "12",
|
|
2578
|
+
example: "LFM200817DGA, MEL9507278ZA"
|
|
2579
|
+
}
|
|
2580
|
+
}
|
|
2581
|
+
};
|
|
2582
|
+
}
|
|
2583
|
+
},
|
|
2584
|
+
[CountryCodes.Netherlands]: ({ companyType }) => {
|
|
2585
|
+
switch (companyType) {
|
|
2586
|
+
case "individual": return {
|
|
2587
|
+
label: "bsnNumber",
|
|
2588
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{9}$/)], CountryCodes.Netherlands),
|
|
2589
|
+
mask: { mask: makeMask(...numericInputs(9)) },
|
|
2590
|
+
guidanceText: {
|
|
2591
|
+
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
2592
|
+
values: {
|
|
2593
|
+
example: "999999999",
|
|
2594
|
+
idType: "BSN"
|
|
2595
|
+
}
|
|
2596
|
+
}
|
|
2597
|
+
};
|
|
2598
|
+
default: return {
|
|
2599
|
+
label: "rsinNumber",
|
|
2600
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{9}$/)], CountryCodes.Netherlands),
|
|
2601
|
+
mask: { mask: makeMask(...numericInputs(9)) },
|
|
2602
|
+
guidanceText: {
|
|
2603
|
+
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
2604
|
+
values: {
|
|
2605
|
+
example: "811786523",
|
|
2606
|
+
idType: "RSIN"
|
|
2607
|
+
}
|
|
2608
|
+
}
|
|
2609
|
+
};
|
|
2610
|
+
}
|
|
2611
|
+
},
|
|
2612
|
+
[CountryCodes.NewZealand]: {
|
|
2613
|
+
label: "irdNumber",
|
|
2614
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{8,9}$/)], CountryCodes.NewZealand),
|
|
2615
|
+
mask: { mask: makeMask(...numericInputs(8), ...numericInputs(1, true)) },
|
|
2616
|
+
guidanceText: {
|
|
2617
|
+
key: "enterXToYDigitsForExample",
|
|
2618
|
+
values: {
|
|
2619
|
+
minDigits: "8",
|
|
2620
|
+
maxDigits: "9",
|
|
2621
|
+
example: "12345678"
|
|
2622
|
+
}
|
|
2623
|
+
}
|
|
2624
|
+
},
|
|
2625
|
+
[CountryCodes.Norway]: {
|
|
2626
|
+
label: "taxInformationNumber__NO",
|
|
2627
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{11}$/)], CountryCodes.Norway),
|
|
2628
|
+
mask: { mask: makeMask(...numericInputs(11)) },
|
|
2629
|
+
guidanceText: {
|
|
2630
|
+
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
2631
|
+
values: {
|
|
2632
|
+
example: "12058512345",
|
|
2633
|
+
idType: "Fødselsnummer (or D-nummer)"
|
|
2634
|
+
}
|
|
2635
|
+
}
|
|
2636
|
+
},
|
|
2637
|
+
[CountryCodes.Poland]: {
|
|
2638
|
+
label: "taxInformationNumber__PL",
|
|
2639
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{11}$/)], CountryCodes.Poland),
|
|
2640
|
+
mask: { mask: makeMask(...numericInputs(11)) },
|
|
2641
|
+
guidanceText: {
|
|
2642
|
+
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
2643
|
+
values: {
|
|
2644
|
+
example: "85052312345",
|
|
2645
|
+
idType: "PESEL"
|
|
2646
|
+
}
|
|
2647
|
+
}
|
|
2648
|
+
},
|
|
2649
|
+
[CountryCodes.Portugal]: {
|
|
2650
|
+
label: "taxInformationNumber__PT",
|
|
2651
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{9}$/)], CountryCodes.Portugal),
|
|
2652
|
+
mask: { mask: makeMask(...numericInputs(9)) },
|
|
2653
|
+
guidanceText: {
|
|
2654
|
+
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
2655
|
+
values: {
|
|
2656
|
+
example: "299999998",
|
|
2657
|
+
idType: "Numéro ID Civil"
|
|
2658
|
+
}
|
|
2659
|
+
}
|
|
2660
|
+
},
|
|
2661
|
+
[CountryCodes.PuertoRico]: {
|
|
2662
|
+
label: "taxInformationNumber__US",
|
|
2663
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{9}$/)], CountryCodes.PuertoRico),
|
|
2664
|
+
mask: { mask: makeMask(...numericInputs(2), ...nonInputs(" - "), ...numericInputs(7)) },
|
|
2665
|
+
guidanceText: {
|
|
2666
|
+
key: "validationPleaseEnterAValidEINWithFormat",
|
|
2667
|
+
values: {
|
|
2668
|
+
format: "XX-XXXXXXX",
|
|
2669
|
+
example: "98-7654321"
|
|
2670
|
+
}
|
|
2671
|
+
}
|
|
2672
|
+
},
|
|
2673
|
+
[CountryCodes.Romania]: {
|
|
2674
|
+
label: "taxInformationNumber__RO",
|
|
2675
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{13}$/)], CountryCodes.Romania),
|
|
2676
|
+
mask: { mask: makeMask(...numericInputs(13)) },
|
|
2677
|
+
guidanceText: {
|
|
2678
|
+
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
2679
|
+
values: {
|
|
2680
|
+
example: "1234567890123",
|
|
2681
|
+
idType: "Cod Numeric Personal (CNP)"
|
|
2682
|
+
}
|
|
2683
|
+
}
|
|
2684
|
+
},
|
|
2685
|
+
[CountryCodes.Singapore]: ({ taxIdNumberType }) => {
|
|
2686
|
+
switch (taxIdNumberType) {
|
|
2687
|
+
case "NRIC": return {
|
|
2688
|
+
label: "taxInformationNumber__SG_Individual",
|
|
2689
|
+
validators: mapValidators([validatePatternOnBlur(/^[A-Z]\d{7}[A-Z]$/)], CountryCodes.Singapore),
|
|
2690
|
+
mask: {
|
|
2691
|
+
mask: makeMask(...alphaInputs(1), ...numericInputs(7), ...alphaInputs(1)),
|
|
2692
|
+
transformOnType: uppercase
|
|
2693
|
+
},
|
|
2694
|
+
guidanceText: {
|
|
2695
|
+
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
2696
|
+
values: {
|
|
2697
|
+
example: "S1234567A",
|
|
2698
|
+
idType: "Tax Reference Number (NRIC / FIN)"
|
|
2699
|
+
}
|
|
2700
|
+
}
|
|
2701
|
+
};
|
|
2702
|
+
default: return {
|
|
2703
|
+
label: "gst",
|
|
2704
|
+
validators: mapValidators([validatePatternOnBlur(/^[A-Z0-9]{9,10}$/)], CountryCodes.Singapore),
|
|
2705
|
+
mask: {
|
|
2706
|
+
mask: makeMask(...alphanumericInputs(2), ...nonInputs(" - "), ...alphanumericInputs(7), ...nonInputs(" - "), ...alphanumericInputs(1)),
|
|
2707
|
+
transformOnType: uppercase
|
|
2708
|
+
},
|
|
2709
|
+
guidanceText: {
|
|
2710
|
+
key: "enterNCharactersForExample",
|
|
2711
|
+
values: {
|
|
2712
|
+
numChars: "10",
|
|
2713
|
+
example: "M212345678"
|
|
2714
|
+
}
|
|
2715
|
+
}
|
|
2716
|
+
};
|
|
2717
|
+
}
|
|
2718
|
+
},
|
|
2719
|
+
[CountryCodes.Slovakia]: ({ companyType }) => {
|
|
2720
|
+
switch (companyType) {
|
|
2721
|
+
case "individual": return {
|
|
2722
|
+
label: "taxInformationNumber__SK_Individual",
|
|
2723
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{9}$|^\d{10}$|^\d{11}$|^\d{6}\/\d{3}$|^\d{6}\/\d{4}$/)], CountryCodes.Slovakia),
|
|
2724
|
+
mask: { mask: makeMask(...numericInputs(6), {
|
|
2725
|
+
type: "input",
|
|
2726
|
+
allow: /\//,
|
|
2727
|
+
optional: true
|
|
2728
|
+
}, ...numericInputs(4), ...numericInputs(1, true)) },
|
|
2729
|
+
guidanceText: {
|
|
2730
|
+
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
2731
|
+
values: {
|
|
2732
|
+
example: "7711167420",
|
|
2733
|
+
idType: "Rodne Cislo"
|
|
2734
|
+
}
|
|
2735
|
+
}
|
|
2736
|
+
};
|
|
2737
|
+
default: return {
|
|
2738
|
+
label: "taxInformationNumber__SK_Org",
|
|
2739
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{10}$/)], CountryCodes.Slovakia),
|
|
2740
|
+
mask: { mask: makeMask(...numericInputs(10)) },
|
|
2741
|
+
guidanceText: {
|
|
2742
|
+
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
2743
|
+
values: {
|
|
2744
|
+
example: "2020123456",
|
|
2745
|
+
idType: "Daňové identifikačné číslo (DIČ)"
|
|
2746
|
+
}
|
|
2747
|
+
}
|
|
2748
|
+
};
|
|
2749
|
+
}
|
|
2750
|
+
},
|
|
2751
|
+
[CountryCodes.Slovenia]: ({ companyType }) => {
|
|
2752
|
+
switch (companyType) {
|
|
2753
|
+
case "individual": return {
|
|
2754
|
+
label: "taxInformationNumber__SI_Individual",
|
|
2755
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{8}$/)], CountryCodes.Slovenia),
|
|
2756
|
+
mask: { mask: makeMask(...numericInputs(8)) },
|
|
2757
|
+
guidanceText: {
|
|
2758
|
+
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
2759
|
+
values: {
|
|
2760
|
+
example: "15012557",
|
|
2761
|
+
idType: "SI tax number"
|
|
2762
|
+
}
|
|
2763
|
+
}
|
|
2764
|
+
};
|
|
2765
|
+
default: return {
|
|
2766
|
+
label: "taxInformationNumber__SI_Org",
|
|
2767
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{8}$/)], CountryCodes.Slovenia),
|
|
2768
|
+
mask: { mask: makeMask(...numericInputs(8)) },
|
|
2769
|
+
guidanceText: {
|
|
2770
|
+
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
2771
|
+
values: {
|
|
2772
|
+
example: "12345678",
|
|
2773
|
+
idType: "Davčna številka"
|
|
2774
|
+
}
|
|
2775
|
+
}
|
|
2776
|
+
};
|
|
2777
|
+
}
|
|
2778
|
+
},
|
|
2779
|
+
[CountryCodes.SouthAfrica]: {
|
|
2780
|
+
label: "taxInformationNumber__ZA",
|
|
2781
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{10}$/)], CountryCodes.SouthAfrica),
|
|
2782
|
+
mask: { mask: makeMask(...numericInputs(10)) },
|
|
2783
|
+
guidanceText: {
|
|
2784
|
+
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
2785
|
+
values: {
|
|
2786
|
+
example: "1234567890",
|
|
2787
|
+
idType: "Income Tax Reference Number"
|
|
2788
|
+
}
|
|
2789
|
+
}
|
|
2790
|
+
},
|
|
2791
|
+
[CountryCodes.Sweden]: {
|
|
2792
|
+
label: "taxInformationNumber__SE",
|
|
2793
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{10,12}$/)], CountryCodes.Sweden),
|
|
2794
|
+
mask: { mask: makeMask(...numericInputs(6), ...numericInputs(2, true), ...nonInputs("-"), ...numericInputs(4)) },
|
|
2795
|
+
guidanceText: {
|
|
2796
|
+
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
2797
|
+
values: {
|
|
2798
|
+
example: "19850523-1234",
|
|
2799
|
+
idType: "Personnummer"
|
|
2800
|
+
}
|
|
2801
|
+
}
|
|
2802
|
+
},
|
|
2803
|
+
[CountryCodes.Switzerland]: {
|
|
2804
|
+
label: "taxInformationNumber__CH",
|
|
2805
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{13}$/)], CountryCodes.Switzerland),
|
|
2806
|
+
mask: { mask: makeMask(...numericInputs(3), ...nonInputs("."), ...numericInputs(4), ...nonInputs("."), ...numericInputs(4), ...nonInputs("."), ...numericInputs(2)) },
|
|
2807
|
+
guidanceText: {
|
|
2808
|
+
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
2809
|
+
values: {
|
|
2810
|
+
example: "756.1234.5678.90",
|
|
2811
|
+
idType: "AHV-Nummer / Numéro AVS / Numero AVS"
|
|
2812
|
+
}
|
|
2813
|
+
}
|
|
2814
|
+
},
|
|
2815
|
+
[CountryCodes.UnitedArabEmirates]: {
|
|
2816
|
+
label: "taxInformationNumber__AE",
|
|
2817
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{15}$/)], CountryCodes.UnitedArabEmirates),
|
|
2818
|
+
mask: { mask: makeMask(...numericInputs(3), ...nonInputs("-"), ...numericInputs(4), ...nonInputs("-"), ...numericInputs(7), ...nonInputs("-"), ...numericInputs(1)) },
|
|
2819
|
+
guidanceText: {
|
|
2820
|
+
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
2821
|
+
values: {
|
|
2822
|
+
example: "784-1985-1234567-1",
|
|
2823
|
+
idType: "Emirates ID Number (رقم الهوية)"
|
|
2824
|
+
}
|
|
2825
|
+
}
|
|
2826
|
+
},
|
|
2827
|
+
[CountryCodes.UnitedKingdom]: ({ taxIdNumberType, companyType }) => {
|
|
2828
|
+
switch (companyType) {
|
|
2829
|
+
case "individual": switch (taxIdNumberType) {
|
|
2830
|
+
case "NINO": return {
|
|
2831
|
+
label: "nationalInsuranceNumber",
|
|
2832
|
+
validators: mapValidators([validatePatternOnBlur(/^[A-Z]{2}\d{6}[A-D]$/)], CountryCodes.UnitedKingdom),
|
|
2833
|
+
guidanceText: {
|
|
2834
|
+
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
2835
|
+
values: {
|
|
2836
|
+
example: "AA123456C",
|
|
2837
|
+
idType: "NINO"
|
|
2838
|
+
}
|
|
2839
|
+
}
|
|
2840
|
+
};
|
|
2841
|
+
default: return {
|
|
2842
|
+
label: "utr",
|
|
2843
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{10}$/)], CountryCodes.UnitedKingdom),
|
|
2844
|
+
mask: { mask: makeMask(...numericInputs(10)) },
|
|
2845
|
+
guidanceText: {
|
|
2846
|
+
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
2847
|
+
values: {
|
|
2848
|
+
example: "7172510005",
|
|
2849
|
+
idType: "UTR"
|
|
2850
|
+
}
|
|
2851
|
+
}
|
|
2852
|
+
};
|
|
2853
|
+
}
|
|
2854
|
+
default: return {
|
|
2855
|
+
label: "utr",
|
|
2856
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{10}$/)], CountryCodes.UnitedKingdom),
|
|
2857
|
+
mask: { mask: makeMask(...numericInputs(10)) },
|
|
2858
|
+
guidanceText: {
|
|
2859
|
+
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
2860
|
+
values: {
|
|
2861
|
+
example: "7172510005",
|
|
2862
|
+
idType: "UTR"
|
|
2863
|
+
}
|
|
2864
|
+
}
|
|
2865
|
+
};
|
|
2866
|
+
}
|
|
2867
|
+
},
|
|
2868
|
+
[CountryCodes.UnitedStates]: {
|
|
2869
|
+
label: "taxInformationNumber__US",
|
|
2870
|
+
validators: mapValidators([validateNotEmptyOnBlur, validatePatternOnBlur(/^\d{9}$/)], CountryCodes.UnitedStates),
|
|
2871
|
+
mask: { mask: makeMask(...numericInputs(2), ...nonInputs(" - "), ...numericInputs(7)) },
|
|
2872
|
+
guidanceText: {
|
|
2873
|
+
key: "validationPleaseEnterAValidEINWithFormat",
|
|
2874
|
+
values: {
|
|
2875
|
+
format: "XX-XXXXXXX",
|
|
2876
|
+
example: "98-7654321"
|
|
2877
|
+
}
|
|
2878
|
+
}
|
|
2879
|
+
},
|
|
2880
|
+
/**
|
|
2881
|
+
* NOT YET SUPPORTED
|
|
2882
|
+
* These are brought over from the old pattern files. We have no idea if they are accurate or not.
|
|
2883
|
+
* See https://en.wikipedia.org/wiki/VAT_identification_number
|
|
2884
|
+
*/
|
|
2885
|
+
[CountryCodes.Philippines]: { validators: mapValidators([validatePatternOnBlur(/^\d{12}$/)], CountryCodes.Philippines) }
|
|
2886
|
+
};
|
|
2887
|
+
var exemptedFromTaxDefaultFieldConfig = { [CountryCodes.Australia]: { label: "thisBusinessIsntRequiredToHaveAnABN" } };
|
|
2888
|
+
var getTaxInformationPlaceholderText = ({ country, companyType, taxIdNumberType }) => {
|
|
2889
|
+
switch (country) {
|
|
2890
|
+
case CountryCodes.Austria: return "931736581";
|
|
2891
|
+
case CountryCodes.Belgium: switch (companyType) {
|
|
2892
|
+
case "individual": return "99999999999";
|
|
2893
|
+
default: return "0123321123";
|
|
2894
|
+
}
|
|
2895
|
+
case CountryCodes.Croatia: return "94577403194";
|
|
2896
|
+
case CountryCodes.Cyprus: return "00123123T";
|
|
2897
|
+
case CountryCodes.Estonia: return "32708101201";
|
|
2898
|
+
case CountryCodes.Ethiopia: return "32708101201";
|
|
2899
|
+
case CountryCodes.Finland: return "131052-308T";
|
|
2900
|
+
case CountryCodes.France: return "30 23 217 600 053";
|
|
2901
|
+
case CountryCodes.Germany: switch (companyType) {
|
|
2902
|
+
case "individual": return "26954371827";
|
|
2903
|
+
default: return "14310260208";
|
|
2904
|
+
}
|
|
2905
|
+
case CountryCodes.Gibraltar: return "123456";
|
|
2906
|
+
case CountryCodes.Greece: return "244709851";
|
|
2907
|
+
case CountryCodes.Ireland: switch (companyType) {
|
|
2908
|
+
case "individual": return "1234567T";
|
|
2909
|
+
default: return "1497955KA";
|
|
2910
|
+
}
|
|
2911
|
+
case CountryCodes.Italy: return "12345678901";
|
|
2912
|
+
case CountryCodes.IsleOfMan: return "C155673-79";
|
|
2913
|
+
case CountryCodes.Latvia: return "32532963606";
|
|
2914
|
+
case CountryCodes.Lithuania: return "33309240064";
|
|
2915
|
+
case CountryCodes.Luxembourg: switch (companyType) {
|
|
2916
|
+
case "individual": return "1893120105732";
|
|
2917
|
+
default: return "19991201001";
|
|
2918
|
+
}
|
|
2919
|
+
case CountryCodes.Malta: switch (companyType) {
|
|
2920
|
+
case "individual": switch (taxIdNumberType) {
|
|
2921
|
+
case "UNIQUE_TAXPAYER_REFERENCE_NUMBER": return "999999999";
|
|
2922
|
+
default: return "1234567A";
|
|
2923
|
+
}
|
|
2924
|
+
default: return "999999999";
|
|
2925
|
+
}
|
|
2926
|
+
case CountryCodes.Mexico: switch (companyType) {
|
|
2927
|
+
case "soleProprietorship": return "ABCD123456AB9";
|
|
2928
|
+
default: return "ABC123456AB9";
|
|
2929
|
+
}
|
|
2930
|
+
case CountryCodes.Netherlands: switch (companyType) {
|
|
2931
|
+
case "individual": return "999999999";
|
|
2932
|
+
default: return "811786523";
|
|
2933
|
+
}
|
|
2934
|
+
case CountryCodes.Portugal: return "299999998";
|
|
2935
|
+
case CountryCodes.Slovakia: switch (companyType) {
|
|
2936
|
+
case "individual": return "7711167420";
|
|
2937
|
+
default: return "2020123456";
|
|
2938
|
+
}
|
|
2939
|
+
case CountryCodes.Slovenia: switch (companyType) {
|
|
2940
|
+
case "individual": return "15012557";
|
|
2941
|
+
default: return "12345678";
|
|
2942
|
+
}
|
|
2943
|
+
case CountryCodes.UnitedKingdom: return "7172510005";
|
|
2944
|
+
case CountryCodes.Spain: return "99999999L";
|
|
2945
|
+
case CountryCodes.PuertoRico:
|
|
2946
|
+
case CountryCodes.UnitedStates: return "11-0000000";
|
|
2947
|
+
}
|
|
2948
|
+
};
|
|
2949
|
+
//#endregion
|
|
2950
|
+
//#region src/components/Shared/fields/TaxInformationField/TaxIdNumberTypeSelector/findExistingTaxInformation.ts
|
|
2951
|
+
/**
|
|
2952
|
+
* Finds tax information for a specific country from an array of tax information objects.
|
|
2953
|
+
*
|
|
2954
|
+
* @param taxInformation - Array of tax information objects to search through
|
|
2955
|
+
* @param country - Country code to find tax information for
|
|
2956
|
+
* @returns The first matching tax information object or undefined if none found
|
|
2957
|
+
*/
|
|
2958
|
+
function findExistingTaxInformation(taxInformation, country) {
|
|
2959
|
+
return taxInformation?.find((taxId) => taxId.country === country);
|
|
2960
|
+
}
|
|
2961
|
+
//#endregion
|
|
2962
|
+
//#region src/components/Shared/fields/TaxInformationField/TaxIdNumberTypeSelector/TaxIdNumberTypeSelector.tsx
|
|
2963
|
+
function TaxIdNumberTypeSelector({ country, companyType, selected, setSelected, exemptedOptionLabel, isUsSoleProp, errorMessage }) {
|
|
2964
|
+
const { t } = useTranslation("common");
|
|
2965
|
+
const handleSelect = useCallback((selectedStr) => {
|
|
2966
|
+
const newSelected = selectedStr;
|
|
2967
|
+
if (newSelected === "exempted") {
|
|
2968
|
+
if (exemptedOptionLabel) setSelected(newSelected);
|
|
2969
|
+
return;
|
|
2970
|
+
}
|
|
2971
|
+
setSelected(newSelected);
|
|
2972
|
+
}, [exemptedOptionLabel, setSelected]);
|
|
2973
|
+
const options = useMemo(() => getTaxIdNumberSelectorOptions(country, companyType, exemptedOptionLabel), [
|
|
2974
|
+
country,
|
|
2975
|
+
companyType,
|
|
2976
|
+
exemptedOptionLabel
|
|
2977
|
+
]);
|
|
2978
|
+
useEffect(() => {
|
|
2979
|
+
if (!isUsSoleProp && !selected && options.length > 0) handleSelect(options[0].id);
|
|
2980
|
+
}, [
|
|
2981
|
+
options,
|
|
2982
|
+
selected,
|
|
2983
|
+
handleSelect,
|
|
2984
|
+
isUsSoleProp
|
|
2985
|
+
]);
|
|
2986
|
+
if (options.length <= 1) return null;
|
|
2987
|
+
return /* @__PURE__ */ jsx(Field, {
|
|
2988
|
+
el: "fieldset",
|
|
2989
|
+
name: "taxIdNumberType",
|
|
2990
|
+
label: t(($) => $["whichTaxpayerIdentificationNumberDoYouUse"]),
|
|
2991
|
+
errorMessage,
|
|
2992
|
+
children: (childProps) => /* @__PURE__ */ jsx(RadioGroup, {
|
|
2993
|
+
...childProps,
|
|
2994
|
+
name: "taxIdNumberType",
|
|
2995
|
+
items: options,
|
|
2996
|
+
value: selected,
|
|
2997
|
+
onChange: handleSelect
|
|
2998
|
+
})
|
|
2999
|
+
});
|
|
3000
|
+
}
|
|
3001
|
+
//#endregion
|
|
3002
|
+
//#region src/components/Shared/fields/TaxInformationField/utils.ts
|
|
3003
|
+
/**
|
|
3004
|
+
* Immutably upserts a TaxInformation entry for a given country within the tax information array.
|
|
3005
|
+
* - If the array doesn't exist, creates a new one with the entry.
|
|
3006
|
+
* - If the country already has an entry, replaces it in-place.
|
|
3007
|
+
* - If the country has no entry yet, appends the new entry.
|
|
3008
|
+
*/
|
|
3009
|
+
function upsertTaxInfoForCountry(taxInformation, country, newEntry) {
|
|
3010
|
+
if (!taxInformation) return [newEntry];
|
|
3011
|
+
return (taxInformation.some((t) => t.country === country) ? taxInformation : [...taxInformation, newEntry]).map((t) => t.country === country ? newEntry : t);
|
|
3012
|
+
}
|
|
3013
|
+
/**
|
|
3014
|
+
* Removes all TaxInformation entries for the given country from the array.
|
|
3015
|
+
*/
|
|
3016
|
+
function removeTaxInfoForCountry(taxInformation, country) {
|
|
3017
|
+
return taxInformation?.filter((t) => t.country !== country);
|
|
3018
|
+
}
|
|
3019
|
+
//#endregion
|
|
3020
|
+
//#region src/components/Shared/fields/TaxInformationField/TaxInformationField.tsx
|
|
3021
|
+
var TAX_INFORMATION_FIELD = [
|
|
3022
|
+
"taxInformation",
|
|
3023
|
+
"exemptedFromTax",
|
|
3024
|
+
"isUen"
|
|
3025
|
+
];
|
|
3026
|
+
/**
|
|
3027
|
+
* Renders a dynamic form field for tax identification information, adapting its display
|
|
3028
|
+
* and behavior based on country and company type. It supports various tax ID input
|
|
3029
|
+
* scenarios, including two specialized handling for US Sole Proprietorships (where SSN option acts as exemption selection)
|
|
3030
|
+
* and Singapore Companies (where registration number (UEN) can be used for tax ID).
|
|
3031
|
+
*/
|
|
3032
|
+
function TaxInformationField({ data, valid, errors, placeholder, readonly, optional, shouldValidate, handleChangeFor, country, canExempt, registrationNumber, entityType, defaultData }) {
|
|
3033
|
+
const { isFeatureEnabled } = useToggleContext();
|
|
3034
|
+
const { t } = useTranslation("common");
|
|
3035
|
+
const { accountHolder } = useAccountHolder();
|
|
3036
|
+
const currentCountryTaxInformation = useMemo(() => data?.taxInformation?.find((taxInfo) => taxInfo.country === country) ?? (!data.exemptedFromTax ? defaultData?.find((taxInfo) => taxInfo.country === country) : void 0), [
|
|
3037
|
+
data?.taxInformation,
|
|
3038
|
+
data.exemptedFromTax,
|
|
3039
|
+
defaultData,
|
|
3040
|
+
country
|
|
3041
|
+
]);
|
|
3042
|
+
const isUsSoleProp = country === "US" && entityType === "soleProprietorship";
|
|
3043
|
+
const options = getTaxIdNumberOptions(country, entityType);
|
|
3044
|
+
const showTaxIdExemptedOptions = canExempt && (options?.length ?? 0) > 1 || isUsSoleProp;
|
|
3045
|
+
const canSaveAbsentState = isFeatureEnabled("EnableRegistrationAndTaxAbsentStatesV4") && COUNTRIES_WITH_POSSIBLE_TRUSTEE_TAXID_ABSENT_V4.includes(country) && accountHolder === "aTrust";
|
|
3046
|
+
const { label: resolvedExemptionLabel } = resolveFieldMetadata(exemptedFromTaxDefaultFieldConfig[country], {}, exemptedFromTaxDefaultFieldMetadata);
|
|
3047
|
+
const exemptedFromTaxLabel = t(($) => $[resolvedExemptionLabel ?? "iDontHaveATaxId"]);
|
|
3048
|
+
const exemptionLabel = isUsSoleProp ? t(($) => $["socialSecurityNumber"]) : exemptedFromTaxLabel;
|
|
3049
|
+
const selectorOptions = getTaxIdNumberSelectorOptions(country, entityType, showTaxIdExemptedOptions ? exemptionLabel : void 0);
|
|
3050
|
+
const shouldRenderInput = isUsSoleProp ? currentCountryTaxInformation?.type === "EIN" : !data.isUen;
|
|
3051
|
+
const taxIdNumberType = useMemo(() => {
|
|
3052
|
+
if (data.exemptedFromTax) return "exempted";
|
|
3053
|
+
if (currentCountryTaxInformation?.type) return currentCountryTaxInformation.type;
|
|
3054
|
+
if (isUsSoleProp) return void 0;
|
|
3055
|
+
return findExistingTaxInformation(data.taxInformation, country)?.type;
|
|
3056
|
+
}, [
|
|
3057
|
+
country,
|
|
3058
|
+
currentCountryTaxInformation?.type,
|
|
3059
|
+
data.exemptedFromTax,
|
|
3060
|
+
data.taxInformation,
|
|
3061
|
+
entityType,
|
|
3062
|
+
isUsSoleProp
|
|
3063
|
+
]);
|
|
3064
|
+
const shouldDisplayErrorOnSelector = selectorOptions.length > 1 && taxIdNumberType === void 0;
|
|
3065
|
+
const selectorError = shouldDisplayErrorOnSelector ? errors.taxInformation : void 0;
|
|
3066
|
+
const inputError = shouldDisplayErrorOnSelector ? void 0 : errors.taxInformation;
|
|
3067
|
+
const { label, mask, guidanceText } = resolveFieldMetadata(taxInformationDefaultFieldConfig[country], {
|
|
3068
|
+
taxIdNumberType: taxIdNumberType === "exempted" ? void 0 : taxIdNumberType,
|
|
3069
|
+
companyType: entityType
|
|
3070
|
+
}, taxInformationDefaultFieldMetadata);
|
|
3071
|
+
const updateTaxInfo = useCallback((mode, newEntry) => {
|
|
3072
|
+
const entry = canSaveAbsentState ? {
|
|
3073
|
+
...newEntry,
|
|
3074
|
+
numberAbsent: newEntry.numberAbsent ?? false
|
|
3075
|
+
} : newEntry;
|
|
3076
|
+
handleChangeFor("taxInformation", mode)(upsertTaxInfoForCountry(data.taxInformation, country, entry));
|
|
3077
|
+
}, [
|
|
3078
|
+
canSaveAbsentState,
|
|
3079
|
+
country,
|
|
3080
|
+
data.taxInformation,
|
|
3081
|
+
handleChangeFor
|
|
3082
|
+
]);
|
|
3083
|
+
const updateTaxType = useCallback((type, mode) => {
|
|
3084
|
+
updateTaxInfo(mode, {
|
|
3085
|
+
country,
|
|
3086
|
+
number: currentCountryTaxInformation?.number,
|
|
3087
|
+
type
|
|
3088
|
+
});
|
|
3089
|
+
}, [
|
|
3090
|
+
country,
|
|
3091
|
+
currentCountryTaxInformation?.number,
|
|
3092
|
+
updateTaxInfo
|
|
3093
|
+
]);
|
|
3094
|
+
const resetToDefaultData = useCallback(() => {
|
|
3095
|
+
if (defaultData !== void 0) handleChangeFor("taxInformation", "input")(defaultData);
|
|
3096
|
+
}, [defaultData, handleChangeFor]);
|
|
3097
|
+
const removeCountryTaxInfo = useCallback(() => {
|
|
3098
|
+
handleChangeFor("taxInformation", "input")(removeTaxInfoForCountry(data.taxInformation, country));
|
|
3099
|
+
}, [
|
|
3100
|
+
country,
|
|
3101
|
+
data.taxInformation,
|
|
3102
|
+
handleChangeFor
|
|
3103
|
+
]);
|
|
3104
|
+
const setUenAsTaxId = useCallback((uen) => {
|
|
3105
|
+
updateTaxInfo("blur", {
|
|
3106
|
+
country,
|
|
3107
|
+
number: uen ?? "",
|
|
3108
|
+
type: "UEN"
|
|
3109
|
+
});
|
|
3110
|
+
}, [country, updateTaxInfo]);
|
|
3111
|
+
const addTaxAbsentStatus = useCallback((exempted) => {
|
|
3112
|
+
handleChangeFor("taxInformation", "input")(upsertTaxInfoForCountry(data.taxInformation, country, {
|
|
3113
|
+
country,
|
|
3114
|
+
numberAbsent: exempted
|
|
3115
|
+
}));
|
|
3116
|
+
}, [
|
|
3117
|
+
country,
|
|
3118
|
+
data.taxInformation,
|
|
3119
|
+
handleChangeFor
|
|
3120
|
+
]);
|
|
3121
|
+
const handleTaxNumberChange = useCallback((e, mode) => {
|
|
3122
|
+
const value = e ? typeof e === "string" ? e : e.currentTarget.value : void 0;
|
|
3123
|
+
const resolvedType = currentCountryTaxInformation?.type ?? (taxIdNumberType !== "exempted" ? taxIdNumberType : void 0);
|
|
3124
|
+
updateTaxInfo(mode, {
|
|
3125
|
+
country,
|
|
3126
|
+
number: value,
|
|
3127
|
+
type: resolvedType
|
|
3128
|
+
});
|
|
3129
|
+
}, [
|
|
3130
|
+
country,
|
|
3131
|
+
currentCountryTaxInformation?.type,
|
|
3132
|
+
taxIdNumberType,
|
|
3133
|
+
updateTaxInfo
|
|
3134
|
+
]);
|
|
3135
|
+
const handleTaxIdNumberTypeChange = useCallback((taxIdType) => {
|
|
3136
|
+
if (!canExempt && taxIdType === "exempted") throw Error(`${country} does not allow tax exemptions`);
|
|
3137
|
+
if (taxIdType === "exempted") {
|
|
3138
|
+
handleChangeFor("exemptedFromTax")(true);
|
|
3139
|
+
updateTaxType(void 0, "input");
|
|
3140
|
+
return canSaveAbsentState ? addTaxAbsentStatus(true) : removeCountryTaxInfo();
|
|
3141
|
+
}
|
|
3142
|
+
handleChangeFor("exemptedFromTax")(false);
|
|
3143
|
+
if (country === "SG") {
|
|
3144
|
+
if (taxIdType === "UEN") {
|
|
3145
|
+
handleChangeFor("isUen")(true);
|
|
3146
|
+
setUenAsTaxId(registrationNumber);
|
|
3147
|
+
} else {
|
|
3148
|
+
handleChangeFor("isUen")(false);
|
|
3149
|
+
removeCountryTaxInfo();
|
|
3150
|
+
}
|
|
3151
|
+
}
|
|
3152
|
+
updateTaxType(taxIdType, "input");
|
|
3153
|
+
}, [
|
|
3154
|
+
addTaxAbsentStatus,
|
|
3155
|
+
canExempt,
|
|
3156
|
+
canSaveAbsentState,
|
|
3157
|
+
country,
|
|
3158
|
+
handleChangeFor,
|
|
3159
|
+
updateTaxType,
|
|
3160
|
+
registrationNumber,
|
|
3161
|
+
removeCountryTaxInfo,
|
|
3162
|
+
setUenAsTaxId
|
|
3163
|
+
]);
|
|
3164
|
+
const handleExemptedFromTaxChange = useCallback((exempted) => {
|
|
3165
|
+
handleChangeFor("exemptedFromTax")(exempted);
|
|
3166
|
+
if (canSaveAbsentState) addTaxAbsentStatus(exempted);
|
|
3167
|
+
else removeCountryTaxInfo();
|
|
3168
|
+
}, [
|
|
3169
|
+
addTaxAbsentStatus,
|
|
3170
|
+
canSaveAbsentState,
|
|
3171
|
+
handleChangeFor,
|
|
3172
|
+
removeCountryTaxInfo
|
|
3173
|
+
]);
|
|
3174
|
+
const prevCountryRef = useRef(country);
|
|
3175
|
+
useEffect(() => {
|
|
3176
|
+
if (!country || prevCountryRef.current === country) return;
|
|
3177
|
+
prevCountryRef.current = country;
|
|
3178
|
+
const hasSavedTaxId = defaultData?.find((taxId) => taxId.country === country);
|
|
3179
|
+
if (currentCountryTaxInformation && !hasSavedTaxId) return;
|
|
3180
|
+
if (entityType === "soleProprietorship") return;
|
|
3181
|
+
resetToDefaultData();
|
|
3182
|
+
}, [country]);
|
|
3183
|
+
useEffect(() => {
|
|
3184
|
+
if (country === "SG" && data.isUen && registrationNumber && registrationNumber !== currentCountryTaxInformation?.number) setUenAsTaxId(registrationNumber);
|
|
3185
|
+
}, [
|
|
3186
|
+
registrationNumber,
|
|
3187
|
+
currentCountryTaxInformation?.number,
|
|
3188
|
+
data.isUen,
|
|
3189
|
+
country,
|
|
3190
|
+
setUenAsTaxId
|
|
3191
|
+
]);
|
|
3192
|
+
const isInitialized = useRef(false);
|
|
3193
|
+
if (!isInitialized.current && country === "SG" && !defaultData?.find((taxInfo) => taxInfo.country === country)?.number) {
|
|
3194
|
+
isInitialized.current = true;
|
|
3195
|
+
handleChangeFor("isUen")(false);
|
|
3196
|
+
}
|
|
3197
|
+
return /* @__PURE__ */ jsxs("div", { children: [
|
|
3198
|
+
/* @__PURE__ */ jsx(TaxIdNumberTypeSelector, {
|
|
3199
|
+
country,
|
|
3200
|
+
companyType: entityType,
|
|
3201
|
+
setSelected: handleTaxIdNumberTypeChange,
|
|
3202
|
+
selected: taxIdNumberType,
|
|
3203
|
+
exemptedOptionLabel: showTaxIdExemptedOptions ? exemptionLabel : void 0,
|
|
3204
|
+
isUsSoleProp,
|
|
3205
|
+
errorMessage: selectorError
|
|
3206
|
+
}),
|
|
3207
|
+
shouldRenderInput && /* @__PURE__ */ jsx(MaskedInput, {
|
|
3208
|
+
type: "text",
|
|
3209
|
+
"aria-required": true,
|
|
3210
|
+
"aria-invalid": !valid.taxInformation,
|
|
3211
|
+
name: "taxInformation",
|
|
3212
|
+
label: t(($) => $[label ?? "taxId"]),
|
|
3213
|
+
formatGuidance: translateTranslatable(t, guidanceText),
|
|
3214
|
+
value: currentCountryTaxInformation?.number ?? "",
|
|
3215
|
+
errorMessage: inputError,
|
|
3216
|
+
placeholder,
|
|
3217
|
+
isValid: Boolean(valid.taxInformation) && !!currentCountryTaxInformation,
|
|
3218
|
+
onInput: (e) => handleTaxNumberChange(e, "input"),
|
|
3219
|
+
onBlur: (e) => handleTaxNumberChange(e, "blur"),
|
|
3220
|
+
disabled: data.exemptedFromTax || data.isUen,
|
|
3221
|
+
readonly,
|
|
3222
|
+
optional,
|
|
3223
|
+
shouldValidate,
|
|
3224
|
+
...mask
|
|
3225
|
+
}),
|
|
3226
|
+
canExempt && !showTaxIdExemptedOptions && /* @__PURE__ */ jsx(Field, {
|
|
3227
|
+
name: "exemptedFromTax",
|
|
3228
|
+
children: (childProps) => /* @__PURE__ */ jsx(Checkbox, {
|
|
3229
|
+
...childProps,
|
|
3230
|
+
"aria-required": false,
|
|
3231
|
+
"aria-invalid": false,
|
|
3232
|
+
name: "exemptedFromTax",
|
|
3233
|
+
label: exemptedFromTaxLabel,
|
|
3234
|
+
value: "exemptedFromTax",
|
|
3235
|
+
checked: Boolean(data.exemptedFromTax),
|
|
3236
|
+
onChange: handleExemptedFromTaxChange
|
|
3237
|
+
})
|
|
3238
|
+
})
|
|
3239
|
+
] });
|
|
3240
|
+
}
|
|
3241
|
+
var ConflictRow_module_default = {
|
|
3242
|
+
"conflict-row-table": "_conflict-row-table_y7ii4_1",
|
|
3243
|
+
conflictRowTable: "_conflict-row-table_y7ii4_1",
|
|
3244
|
+
"conflict-row-list": "_conflict-row-list_y7ii4_12",
|
|
3245
|
+
conflictRowList: "_conflict-row-list_y7ii4_12",
|
|
3246
|
+
"conflict-row-list-option-label": "_conflict-row-list-option-label_y7ii4_29",
|
|
3247
|
+
conflictRowListOptionLabel: "_conflict-row-list-option-label_y7ii4_29"
|
|
3248
|
+
};
|
|
3249
|
+
//#endregion
|
|
3250
|
+
//#region src/components/Shared/DataConflictsModal/ConflictRow.tsx
|
|
3251
|
+
var ConflictRow = ({ provided, detected, label, formatter = (val) => val, selected, onSelect, showAs }) => {
|
|
3252
|
+
const { t } = useTranslation("common");
|
|
3253
|
+
const hasOnlyProvided = !isEmpty(provided) && isEmpty(detected);
|
|
3254
|
+
const hasOnlyDetected = isEmpty(provided) && !isEmpty(detected);
|
|
3255
|
+
useEffect(() => {
|
|
3256
|
+
if (selected !== void 0) return;
|
|
3257
|
+
if (hasOnlyProvided) onSelect("provided");
|
|
3258
|
+
else if (hasOnlyDetected) onSelect("detected");
|
|
3259
|
+
}, [
|
|
3260
|
+
hasOnlyProvided,
|
|
3261
|
+
hasOnlyDetected,
|
|
3262
|
+
onSelect,
|
|
3263
|
+
selected
|
|
3264
|
+
]);
|
|
3265
|
+
if (hasOnlyProvided || hasOnlyDetected) return;
|
|
3266
|
+
return showAs === "listItem" ? /* @__PURE__ */ jsxs("div", {
|
|
3267
|
+
className: ConflictRow_module_default.conflictRowList,
|
|
3268
|
+
children: [/* @__PURE__ */ jsx("dt", { children: /* @__PURE__ */ jsx(Typography, {
|
|
3269
|
+
variant: "caption",
|
|
3270
|
+
children: t(($) => $[label])
|
|
3271
|
+
}) }), /* @__PURE__ */ jsxs("dd", { children: [/* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx(Typography, {
|
|
3272
|
+
variant: "caption",
|
|
3273
|
+
color: "tertiary",
|
|
3274
|
+
className: ConflictRow_module_default.conflictRowListOptionLabel,
|
|
3275
|
+
children: t(($) => $["youEntered"])
|
|
3276
|
+
}), /* @__PURE__ */ jsx(RadioWithLabel, {
|
|
3277
|
+
label: formatter(provided),
|
|
3278
|
+
value: "provided",
|
|
3279
|
+
checked: selected === "provided",
|
|
3280
|
+
onClick: () => onSelect("provided")
|
|
3281
|
+
})] }), /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx(Typography, {
|
|
3282
|
+
variant: "caption",
|
|
3283
|
+
color: "tertiary",
|
|
3284
|
+
className: ConflictRow_module_default.conflictRowListOptionLabel,
|
|
3285
|
+
children: t(($) => $["weDetected"])
|
|
3286
|
+
}), /* @__PURE__ */ jsx(RadioWithLabel, {
|
|
3287
|
+
label: formatter(detected),
|
|
3288
|
+
value: "detected",
|
|
3289
|
+
checked: selected === "detected",
|
|
3290
|
+
onClick: () => onSelect("detected")
|
|
3291
|
+
})] })] })]
|
|
3292
|
+
}) : /* @__PURE__ */ jsxs("tr", {
|
|
3293
|
+
className: ConflictRow_module_default.conflictRowTable,
|
|
3294
|
+
children: [
|
|
3295
|
+
/* @__PURE__ */ jsx("td", { children: /* @__PURE__ */ jsx(Typography, {
|
|
3296
|
+
variant: "caption",
|
|
3297
|
+
children: t(($) => $[label])
|
|
3298
|
+
}) }),
|
|
3299
|
+
/* @__PURE__ */ jsx("td", { children: /* @__PURE__ */ jsx(RadioWithLabel, {
|
|
3300
|
+
label: formatter(provided),
|
|
3301
|
+
value: "provided",
|
|
3302
|
+
checked: selected === "provided",
|
|
3303
|
+
onClick: () => onSelect("provided")
|
|
3304
|
+
}) }),
|
|
3305
|
+
/* @__PURE__ */ jsx("td", { children: /* @__PURE__ */ jsx(RadioWithLabel, {
|
|
3306
|
+
label: formatter(detected),
|
|
3307
|
+
value: "detected",
|
|
3308
|
+
checked: selected === "detected",
|
|
3309
|
+
onClick: () => onSelect("detected")
|
|
3310
|
+
}) })
|
|
3311
|
+
]
|
|
3312
|
+
});
|
|
3313
|
+
};
|
|
3314
|
+
var DataConflictsModal_module_default = {
|
|
3315
|
+
"data-conflicts-wrapper": "_data-conflicts-wrapper_c81aq_1",
|
|
3316
|
+
dataConflictsWrapper: "_data-conflicts-wrapper_c81aq_1",
|
|
3317
|
+
"data-conflicts-header": "_data-conflicts-header_c81aq_7",
|
|
3318
|
+
dataConflictsHeader: "_data-conflicts-header_c81aq_7",
|
|
3319
|
+
"data-conflicts-table": "_data-conflicts-table_c81aq_15",
|
|
3320
|
+
dataConflictsTable: "_data-conflicts-table_c81aq_15",
|
|
3321
|
+
"data-conflicts-list": "_data-conflicts-list_c81aq_26",
|
|
3322
|
+
dataConflictsList: "_data-conflicts-list_c81aq_26",
|
|
3323
|
+
"data-conflicts-list-forced": "_data-conflicts-list-forced_c81aq_46",
|
|
3324
|
+
dataConflictsListForced: "_data-conflicts-list-forced_c81aq_46",
|
|
3325
|
+
"data-conflicts-table-hidden": "_data-conflicts-table-hidden_c81aq_50",
|
|
3326
|
+
dataConflictsTableHidden: "_data-conflicts-table-hidden_c81aq_50"
|
|
3327
|
+
};
|
|
3328
|
+
//#endregion
|
|
3329
|
+
//#region src/components/Shared/DataConflictsModal/DataConflictsModal.tsx
|
|
3330
|
+
/**
|
|
3331
|
+
* A modal component for resolving data conflicts between two data sources.
|
|
3332
|
+
*
|
|
3333
|
+
* This component is typically used in a KYC (Know Your Customer) flow where user-provided data
|
|
3334
|
+
* is compared against data extracted from a document (e.g., via OCR).
|
|
3335
|
+
*
|
|
3336
|
+
* It identifies differing fields, presents them to the user, and allows them to select the
|
|
3337
|
+
* correct version for each field before proceeding.
|
|
3338
|
+
*
|
|
3339
|
+
* @template Data The shape of the data objects being compared.
|
|
3340
|
+
* @template Property A union of keys from the `Data` object, constrained to `NsTranslationKey<'common'>`.
|
|
3341
|
+
*/
|
|
3342
|
+
var DataConflictsModal = ({ providedData, detectedData, conflictingProperties, formatters, title, explanation, onContinue, labels, onCancel, cancelConfirmation, listOnly = false }) => {
|
|
3343
|
+
const { t: commonT } = useTranslation("common");
|
|
3344
|
+
const [showCancelModal, setShowCancelModal] = useState(false);
|
|
3345
|
+
const [showError, setShowError] = useState(false);
|
|
3346
|
+
/**
|
|
3347
|
+
* A record object that maps each conflicting property key to its `provided` and `detected` values.
|
|
3348
|
+
* This is memoized for performance, as it's derived from `conflictingProperties` and only needs
|
|
3349
|
+
* to be recalculated if the list of conflicts changes.
|
|
3350
|
+
*
|
|
3351
|
+
* @example
|
|
3352
|
+
* // returns: { firstName: { provided: 'Jon', detected: 'John' } }
|
|
3353
|
+
*/
|
|
3354
|
+
const conflictItems = useMemo(() => listToRecord(conflictingProperties, (property) => ({
|
|
3355
|
+
provided: providedData[property],
|
|
3356
|
+
detected: detectedData[property]
|
|
3357
|
+
})), [
|
|
3358
|
+
conflictingProperties,
|
|
3359
|
+
providedData,
|
|
3360
|
+
detectedData
|
|
3361
|
+
]);
|
|
3362
|
+
const [resolutions, setResolutions] = useState(() => listToRecord(conflictingProperties, () => void 0));
|
|
3363
|
+
const resolveProperty = useCallback((property, selected) => {
|
|
3364
|
+
setShowError(false);
|
|
3365
|
+
setResolutions((prev) => ({
|
|
3366
|
+
...prev,
|
|
3367
|
+
[property]: selected
|
|
3368
|
+
}));
|
|
3369
|
+
}, []);
|
|
3370
|
+
return /* @__PURE__ */ jsxs(Modal, {
|
|
3371
|
+
ariaLabel: title,
|
|
3372
|
+
onClose: () => cancelConfirmation ? setShowCancelModal(true) : onCancel(),
|
|
3373
|
+
inset: true,
|
|
3374
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
3375
|
+
className: DataConflictsModal_module_default.dataConflictsWrapper,
|
|
3376
|
+
children: [
|
|
3377
|
+
/* @__PURE__ */ jsxs("div", {
|
|
3378
|
+
className: DataConflictsModal_module_default.dataConflictsHeader,
|
|
3379
|
+
children: [/* @__PURE__ */ jsx(Typography, {
|
|
3380
|
+
variant: "title-l",
|
|
3381
|
+
el: "h1",
|
|
3382
|
+
children: title
|
|
3383
|
+
}), /* @__PURE__ */ jsx(Typography, {
|
|
3384
|
+
variant: "body",
|
|
3385
|
+
children: explanation
|
|
3386
|
+
})]
|
|
3387
|
+
}),
|
|
3388
|
+
showError ? /* @__PURE__ */ jsx(Alert, {
|
|
3389
|
+
variant: "error",
|
|
3390
|
+
title: commonT(($) => $["chooseTheCorrectDetailsBeforeProceeding"])
|
|
3391
|
+
}) : void 0,
|
|
3392
|
+
/* @__PURE__ */ jsx("dl", {
|
|
3393
|
+
className: cx(DataConflictsModal_module_default.dataConflictsList, { [DataConflictsModal_module_default.dataConflictsListForced]: listOnly }),
|
|
3394
|
+
children: keysOf(conflictItems).map((property) => /* @__PURE__ */ jsx(ConflictRow, {
|
|
3395
|
+
showAs: "listItem",
|
|
3396
|
+
label: labels?.[property] ?? property,
|
|
3397
|
+
formatter: formatters[property],
|
|
3398
|
+
provided: conflictItems[property].provided,
|
|
3399
|
+
detected: conflictItems[property].detected,
|
|
3400
|
+
selected: resolutions[property],
|
|
3401
|
+
onSelect: (selected) => resolveProperty(property, selected)
|
|
3402
|
+
}, property))
|
|
3403
|
+
}),
|
|
3404
|
+
/* @__PURE__ */ jsxs("table", {
|
|
3405
|
+
className: cx(DataConflictsModal_module_default.dataConflictsTable, { [DataConflictsModal_module_default.dataConflictsTableHidden]: listOnly }),
|
|
3406
|
+
children: [/* @__PURE__ */ jsx("thead", { children: /* @__PURE__ */ jsxs("tr", { children: [
|
|
3407
|
+
/* @__PURE__ */ jsx("th", {}),
|
|
3408
|
+
/* @__PURE__ */ jsx("th", { children: /* @__PURE__ */ jsx(Typography, {
|
|
3409
|
+
variant: "caption",
|
|
3410
|
+
color: "tertiary",
|
|
3411
|
+
children: commonT(($) => $["youEntered"])
|
|
3412
|
+
}) }),
|
|
3413
|
+
/* @__PURE__ */ jsx("th", { children: /* @__PURE__ */ jsx(Typography, {
|
|
3414
|
+
variant: "caption",
|
|
3415
|
+
color: "tertiary",
|
|
3416
|
+
children: commonT(($) => $["weDetected"])
|
|
3417
|
+
}) })
|
|
3418
|
+
] }) }), /* @__PURE__ */ jsx("tbody", { children: keysOf(conflictItems).map((property) => /* @__PURE__ */ jsx(ConflictRow, {
|
|
3419
|
+
showAs: "tableRow",
|
|
3420
|
+
label: labels?.[property] ?? property,
|
|
3421
|
+
formatter: formatters[property],
|
|
3422
|
+
provided: conflictItems[property].provided,
|
|
3423
|
+
detected: conflictItems[property].detected,
|
|
3424
|
+
selected: resolutions[property],
|
|
3425
|
+
onSelect: (selected) => resolveProperty(property, selected)
|
|
3426
|
+
}, property)) })]
|
|
3427
|
+
}),
|
|
3428
|
+
/* @__PURE__ */ jsx(Button, {
|
|
3429
|
+
fullWidth: true,
|
|
3430
|
+
onClick: () => {
|
|
3431
|
+
if (!conflictingProperties.every((p) => resolutions[p])) {
|
|
3432
|
+
setShowError(true);
|
|
3433
|
+
return;
|
|
3434
|
+
}
|
|
3435
|
+
/**
|
|
3436
|
+
* 2. Build an object containing only the user's selections for the conflicting properties.
|
|
3437
|
+
* This intermediate object will only contain the keys that had a mismatch.
|
|
3438
|
+
*/
|
|
3439
|
+
const resolvedConflicts = listToRecord(conflictingProperties, (property) => {
|
|
3440
|
+
return resolutions[property] === "provided" ? providedData[property] : detectedData[property];
|
|
3441
|
+
});
|
|
3442
|
+
onContinue({
|
|
3443
|
+
...providedData,
|
|
3444
|
+
...resolvedConflicts
|
|
3445
|
+
});
|
|
3446
|
+
},
|
|
3447
|
+
children: commonT(($) => $["confirmSelection"])
|
|
3448
|
+
})
|
|
3449
|
+
]
|
|
3450
|
+
}), cancelConfirmation && showCancelModal && /* @__PURE__ */ jsx(Confirm, {
|
|
3451
|
+
title: cancelConfirmation.title,
|
|
3452
|
+
confirmText: cancelConfirmation.confirmText,
|
|
3453
|
+
description: cancelConfirmation.description,
|
|
3454
|
+
onConfirm: onCancel,
|
|
3455
|
+
onCancel: () => setShowCancelModal(false),
|
|
3456
|
+
critical: false
|
|
3457
|
+
})]
|
|
3458
|
+
});
|
|
3459
|
+
};
|
|
3460
|
+
//#endregion
|
|
3461
|
+
//#region src/components/Individual/forms/IdNowVerificationModal/isIdNowModalOpen.ts
|
|
3462
|
+
var showIdNowModal = signal(false);
|
|
3463
|
+
var idNowModalChildEntityId = signal();
|
|
3464
|
+
var idNowPostSubmit = signal(false);
|
|
3465
|
+
var shouldShowIdNowModal = computed(() => {
|
|
3466
|
+
const idNowModalChildEntityIdValue = !!idNowModalChildEntityId.value;
|
|
3467
|
+
return showIdNowModal.value && idNowModalChildEntityIdValue;
|
|
3468
|
+
});
|
|
3469
|
+
//#endregion
|
|
3470
|
+
//#region src/components/Individual/helpers/bafinUtils.ts
|
|
3471
|
+
/**
|
|
3472
|
+
* Checks whether the legal entity has both required data points for IDnow verification:
|
|
3473
|
+
* birth city (placeOfBirth) and nationality.
|
|
3474
|
+
*/
|
|
3475
|
+
var hasRequiredDataForIdNow = (legalEntity) => Boolean(legalEntity.individual?.birthData?.placeOfBirth && legalEntity.individual?.nationality);
|
|
3476
|
+
/**
|
|
3477
|
+
* For an IDnow-qualified BAFIN signatory, returns an object describing which of the required
|
|
3478
|
+
* data points (placeOfBirth, nationality) are still missing, or `{ missingSelfie: true }` when
|
|
3479
|
+
* both are present but the selfie verification is still needed, or `null` when no action is needed.
|
|
3480
|
+
*
|
|
3481
|
+
* Returns `null` when any of the following conditions are true:
|
|
3482
|
+
* - The entity is not a signatory, or the L_BAFIN scenario is not active
|
|
3483
|
+
* - The `2_215` (live-selfie) remediation code is absent from problems
|
|
3484
|
+
*/
|
|
3485
|
+
var getIdNowMissingDataPoints = (problems, legalEntity, scenarios, roles) => {
|
|
3486
|
+
if (!roles.includes(DecisionMakerTypes.SIGNATORY) || !scenarios?.includes(Scenarios.L_BAFIN)) return null;
|
|
3487
|
+
if (!problems) return null;
|
|
3488
|
+
if (!problems.missingData?.some((item) => item.remediatingActions?.some((action) => action.code === "2_215"))) return null;
|
|
3489
|
+
const missingPlaceOfBirth = !legalEntity.individual?.birthData?.placeOfBirth;
|
|
3490
|
+
const missingNationality = !legalEntity.individual?.nationality;
|
|
3491
|
+
if (!missingPlaceOfBirth && !missingNationality) return { missingSelfie: true };
|
|
3492
|
+
return {
|
|
3493
|
+
missingPlaceOfBirth,
|
|
3494
|
+
missingNationality
|
|
3495
|
+
};
|
|
3496
|
+
};
|
|
3497
|
+
/**
|
|
3498
|
+
* For the BAFIN signatory flow, certain ID verification errors and remediation actions are not applicable.
|
|
3499
|
+
* This utility function takes a problems object and returns a new, deeply cloned object with all
|
|
3500
|
+
* ID verification-related issues removed.
|
|
3501
|
+
*
|
|
3502
|
+
* Specifically, it removes:
|
|
3503
|
+
* - 'missingData' entries related to ID document upload ('1_301').
|
|
3504
|
+
* - The '1_301' remediation action from `remediationActions`.
|
|
3505
|
+
* - The entire `idVerificationMethod` object from `verificationErrors`.
|
|
3506
|
+
* - Any nested sub-errors with code '1_301' from `basicDetails` and `additionalPersonalDetails`.
|
|
3507
|
+
*
|
|
3508
|
+
* @param problems - The original entity problems object.
|
|
3509
|
+
* @returns A new `EntityProblems` object with BAFIN-specific modifications.
|
|
3510
|
+
*/
|
|
3511
|
+
var removeIdVerificationProblemsForBafinSignatory = (problems, decisionMakerLe) => {
|
|
3512
|
+
const newProblems = structuredClone(problems);
|
|
3513
|
+
if (newProblems.missingData?.some((item) => item.remediatingActions?.some((action) => action.code === "1_301" || action.code === "2_215"))) {
|
|
3514
|
+
if (hasRequiredDataForIdNow(decisionMakerLe)) setTimeout(() => {
|
|
3515
|
+
idNowModalChildEntityId.value = decisionMakerLe;
|
|
3516
|
+
showIdNowModal.value = true;
|
|
3517
|
+
}, 100);
|
|
3518
|
+
}
|
|
3519
|
+
if (Array.isArray(newProblems.missingData)) newProblems.missingData = newProblems.missingData.filter((item) => !item.remediatingActions?.some((action) => action.code === "1_301" || action.code === "2_215"));
|
|
3520
|
+
if (newProblems.remediationActions?.["1_301"]) delete newProblems.remediationActions["1_301"];
|
|
3521
|
+
if (newProblems.remediationActions?.["2_215"]) delete newProblems.remediationActions["2_215"];
|
|
3522
|
+
if (newProblems.verificationErrors?.idVerificationMethod) delete newProblems.verificationErrors.idVerificationMethod;
|
|
3523
|
+
["basicDetails", "additionalPersonalDetails"].forEach((formName) => {
|
|
3524
|
+
const subErrors = newProblems.verificationErrors?.[formName]?.["1_30"]?.["1_3000"];
|
|
3525
|
+
if (newProblems.verificationErrors?.[formName]?.["1_30"] && Array.isArray(subErrors)) newProblems.verificationErrors[formName]["1_30"]["1_3000"] = subErrors.filter((error) => error.code !== "1_301");
|
|
3526
|
+
});
|
|
3527
|
+
return newProblems;
|
|
3528
|
+
};
|
|
3529
|
+
/**
|
|
3530
|
+
* Type guard to check if the data object is a LegalEntityAssociationDto.
|
|
3531
|
+
*/
|
|
3532
|
+
var isLegalEntityAssociation = (data) => "legalEntityId" in data;
|
|
3533
|
+
/**
|
|
3534
|
+
* Checks if the current context matches the specific flow for a BAFIN signatory.
|
|
3535
|
+
* This is true when the task is for a decision maker, their role is 'signatory',
|
|
3536
|
+
* and the BAFIN scenario is active.
|
|
3537
|
+
*
|
|
3538
|
+
* @param params - The parameters for the check.
|
|
3539
|
+
* @returns `true` if the conditions for the BAFIN signatory flow are met.
|
|
3540
|
+
*/
|
|
3541
|
+
var isBafinSignatoryFlow = ({ taskType, data, scenarios }) => {
|
|
3542
|
+
if (!data || !scenarios) return false;
|
|
3543
|
+
const isSignatory = isLegalEntityAssociation(data) ? data.type === DecisionMakerTypes.SIGNATORY : data.basicDetails?.role?.includes(DecisionMakerTypes.SIGNATORY);
|
|
3544
|
+
if (taskType === TaskTypes.DECISION_MAKER && isSignatory) return scenarios.includes(Scenarios.L_BAFIN);
|
|
3545
|
+
return false;
|
|
3546
|
+
};
|
|
3547
|
+
//#endregion
|
|
3548
|
+
export { COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT as A, isUsingCompanySearch as B, getValidCompanyTypesForTaxIdNumberType as C, COUNTRIES_THAT_DONT_REQUIRE_COMPANY_REGISTRATION as D, COUNTRIES_REQUIRING_FINANCIAL_INFORMATION as E, COUNTRIES_WITH_POSSIBLE_TRUSTEE_TAXID_ABSENT_V4 as F, mapSchemaFieldsToApiScriptLocalization as G, mapLocalizationToJapaneseLegalNames as H, REGISTRATION_NUMBER_EXEMPTION_RULES as I, stateFormatGuidanceText as J, businessRegistrationNumberPatterns as K, TAX_ID_REQUIRED_COUNTRIES_ORGANIZATION as L, COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER_SOLE_PROPS as M, COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_COMPANIES as N, COUNTRIES_THAT_DONT_REQUIRE_SOLE_PROP_REGISTRATION as O, COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_SOLE_PROPS as P, isRegistrationExemptionAllowed as R, getTaxIdNumberOptions as S, TileGroup as T, isEmpty as U, mapJapaneseLegalNamesToLocalization as V, mapApiScriptLocalizationToSchemaFields as W, getTaxInformationPlaceholderText as _, idNowPostSubmit as a, toFullWidth as b, DataConflictsModal as c, removeTaxInfoForCountry as d, upsertTaxInfoForCountry as f, exemptedFromTaxDefaultFieldMetadata as g, exemptedFromTaxDefaultFieldConfig as h, idNowModalChildEntityId as i, COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER as j, COUNTRIES_THAT_DO_NOT_USE_TAX_ID_FOR_SOLE_PROP as k, TAX_INFORMATION_FIELD as l, findExistingTaxInformation as m, isBafinSignatoryFlow as n, shouldShowIdNowModal as o, TaxIdNumberTypeSelector as p, businessRegistrationNumberMasks as q, removeIdVerificationProblemsForBafinSignatory as r, showIdNowModal as s, getIdNowMissingDataPoints as t, TaxInformationField as u, taxInformationDefaultFieldConfig as v, taxIdNumberOptions as w, isJapanLocalizationEnabled as x, taxInformationDefaultFieldMetadata as y, isRegistrationNumberAbsentStateV4Scenario as z };
|