@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
package/dist/utils-BLBh0VEd.js
DELETED
|
@@ -1,1755 +0,0 @@
|
|
|
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] = "cc76836f-e6d8-471c-9a02-f3f751f477c9", e._sentryDebugIdIdentifier = "sentry-dbid-cc76836f-e6d8-471c-9a02-f3f751f477c9");
|
|
4
|
-
} catch (e) {}
|
|
5
|
-
import { r as useTranslation } from "./translation-DbATp_35.js";
|
|
6
|
-
import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
|
|
7
|
-
import { t as TaskTypes } from "./taskTypes-3vSkMBDm.js";
|
|
8
|
-
import { a as alphanumericInputs, c as nonInputs, i as alphaInputs, l as numericInputs, o as customInputs, s as makeMask, u as spacer } from "./MaskedInput-CkDwzLxe.js";
|
|
9
|
-
import { n as businessRegistrationNumberMasks, t as businessRegistrationNumberPatterns } from "./businessRegistrationNumberPatterns-pbrCVTTp.js";
|
|
10
|
-
import { t as uppercase } from "./uppercase-DvjwUM0n.js";
|
|
11
|
-
import { a as validateNotEmptyOnBlur, o as validatePatternOnBlur } from "./patternValidators-DsrZkuOO.js";
|
|
12
|
-
import { n as mapSchemaFieldsToApiScriptLocalization, t as mapApiScriptLocalizationToSchemaFields } from "./mapScriptLocalization-BCfkZo1y.js";
|
|
13
|
-
import { t as isEmpty } from "./isEmpty-Uewyl-r6.js";
|
|
14
|
-
import { t as Field } from "./Field-Df7ajJE2.js";
|
|
15
|
-
import { t as RadioGroup } from "./RadioGroup-CY33MT83.js";
|
|
16
|
-
import { useCallback, useEffect, useMemo } from "preact/hooks";
|
|
17
|
-
import { jsx } from "preact/jsx-runtime";
|
|
18
|
-
//#region src/utils/businessUtils.ts
|
|
19
|
-
/**
|
|
20
|
-
* @description Countries in this list use the provider-backed company search flow.
|
|
21
|
-
* For these countries, business details can be prefilled from provider results,
|
|
22
|
-
* and search/verification may require tax identifiers (for example TIN or VAT)
|
|
23
|
-
* in addition to company name/registration details.
|
|
24
|
-
*
|
|
25
|
-
* If a country is in this list, it means it will attempt to make an api call for company search.
|
|
26
|
-
* If the api doesnt have a provider for that country, it will return no results like below
|
|
27
|
-
* ```
|
|
28
|
-
* {
|
|
29
|
-
* "results": [],
|
|
30
|
-
* "provider": "NO_PROVIDER"
|
|
31
|
-
* }
|
|
32
|
-
* ```
|
|
33
|
-
*/
|
|
34
|
-
var COUNTRIES_USING_COMPANY_SEARCH = [
|
|
35
|
-
CountryCodes.UnitedStates,
|
|
36
|
-
CountryCodes.UnitedKingdom,
|
|
37
|
-
CountryCodes.Germany,
|
|
38
|
-
CountryCodes.France
|
|
39
|
-
];
|
|
40
|
-
/**
|
|
41
|
-
* Source of truth for registration-number exemption eligibility in Business Details.
|
|
42
|
-
*
|
|
43
|
-
* This map defines which company types can use `exemptedFromRegistrationNumber`, grouped by
|
|
44
|
-
* country. All exemption checks should be derived from this structure to keep behavior consistent
|
|
45
|
-
* across form rules.
|
|
46
|
-
*
|
|
47
|
-
* Interpretation:
|
|
48
|
-
* - Non-empty array: exemption is allowed only for the listed company types.
|
|
49
|
-
* - Empty array: exemption is allowed for that country without company-type restrictions.
|
|
50
|
-
*
|
|
51
|
-
*/
|
|
52
|
-
var REGISTRATION_NUMBER_EXEMPTION_RULES = {
|
|
53
|
-
[CountryCodes.Australia]: ["governmentalOrganization", "partnershipIncorporated"],
|
|
54
|
-
[CountryCodes.Austria]: ["soleProprietorship"],
|
|
55
|
-
[CountryCodes.Canada]: ["soleProprietorship"],
|
|
56
|
-
[CountryCodes.Denmark]: ["nonProfit"],
|
|
57
|
-
[CountryCodes.Finland]: ["soleProprietorship"],
|
|
58
|
-
[CountryCodes.Germany]: [
|
|
59
|
-
"governmentalOrganization",
|
|
60
|
-
"nonProfit",
|
|
61
|
-
"soleProprietorship"
|
|
62
|
-
],
|
|
63
|
-
[CountryCodes.HongKong]: [
|
|
64
|
-
"privateCompany",
|
|
65
|
-
"nonProfit",
|
|
66
|
-
"listedPublicCompany",
|
|
67
|
-
"unlistedPublicCompany",
|
|
68
|
-
"governmentalOrganization",
|
|
69
|
-
"partnershipIncorporated",
|
|
70
|
-
"associationIncorporated"
|
|
71
|
-
],
|
|
72
|
-
[CountryCodes.Lithuania]: ["soleProprietorship"],
|
|
73
|
-
[CountryCodes.Luxembourg]: ["soleProprietorship"],
|
|
74
|
-
[CountryCodes.NewZealand]: [],
|
|
75
|
-
[CountryCodes.Poland]: ["soleProprietorship"],
|
|
76
|
-
[CountryCodes.Sweden]: ["soleProprietorship"],
|
|
77
|
-
[CountryCodes.Switzerland]: ["soleProprietorship"]
|
|
78
|
-
};
|
|
79
|
-
/**
|
|
80
|
-
* Determines whether a registration-number exemption can be offered for a country and company type.
|
|
81
|
-
*
|
|
82
|
-
* Provide `companyType` when checking a specific entity (including a sole proprietorship); this checks
|
|
83
|
-
* that exact type against the country's rule. Omit it when deciding whether to show the exemption option
|
|
84
|
-
* for all company types in that country; it is then available only when at least one
|
|
85
|
-
* non-sole-proprietorship type is eligible.
|
|
86
|
-
*
|
|
87
|
-
* This distinction prevents sole-proprietorship-only countries from exposing the exemption to
|
|
88
|
-
* businesses while still allowing unrestricted countries (an empty rule) for every entity type.
|
|
89
|
-
*/
|
|
90
|
-
var isRegistrationExemptionAllowed = ({ country, companyType }) => {
|
|
91
|
-
const allowedCompanyTypes = REGISTRATION_NUMBER_EXEMPTION_RULES[country];
|
|
92
|
-
if (!allowedCompanyTypes) return false;
|
|
93
|
-
if (allowedCompanyTypes.length === 0) return true;
|
|
94
|
-
return companyType ? allowedCompanyTypes.includes(companyType) : allowedCompanyTypes.some((allowedCompanyType) => allowedCompanyType !== "soleProprietorship");
|
|
95
|
-
};
|
|
96
|
-
var isRegistrationNumberAbsentStateV4Scenario = (country, entityType) => country === CountryCodes.Australia && (entityType === "governmentalOrganization" || entityType === "partnershipIncorporated") || country === CountryCodes.NewZealand;
|
|
97
|
-
var COUNTRIES_THAT_DONT_REQUIRE_COMPANY_REGISTRATION = [
|
|
98
|
-
CountryCodes.HongKong,
|
|
99
|
-
CountryCodes.Mexico,
|
|
100
|
-
CountryCodes.PuertoRico,
|
|
101
|
-
CountryCodes.UnitedStates
|
|
102
|
-
];
|
|
103
|
-
var COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER = [CountryCodes.Canada, CountryCodes.UnitedStates];
|
|
104
|
-
/**
|
|
105
|
-
* Also used to determine what documenttype needs to be used
|
|
106
|
-
* when uploading tax document in mapping.ts
|
|
107
|
-
* */
|
|
108
|
-
var COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT = [
|
|
109
|
-
CountryCodes.Australia,
|
|
110
|
-
CountryCodes.Canada,
|
|
111
|
-
CountryCodes.Gibraltar,
|
|
112
|
-
CountryCodes.HongKong,
|
|
113
|
-
CountryCodes.NewZealand,
|
|
114
|
-
CountryCodes.PuertoRico,
|
|
115
|
-
CountryCodes.Singapore,
|
|
116
|
-
CountryCodes.UnitedStates,
|
|
117
|
-
CountryCodes.Guernsey,
|
|
118
|
-
CountryCodes.Jersey,
|
|
119
|
-
CountryCodes.IsleOfMan,
|
|
120
|
-
CountryCodes.Mexico,
|
|
121
|
-
CountryCodes.Brazil,
|
|
122
|
-
CountryCodes.Japan
|
|
123
|
-
];
|
|
124
|
-
var COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_COMPANIES = [];
|
|
125
|
-
var COUNTRIES_REQUIRING_FINANCIAL_INFORMATION = [
|
|
126
|
-
CountryCodes.Austria,
|
|
127
|
-
CountryCodes.Belgium,
|
|
128
|
-
CountryCodes.Croatia,
|
|
129
|
-
CountryCodes.Cyprus,
|
|
130
|
-
CountryCodes.Estonia,
|
|
131
|
-
CountryCodes.Finland,
|
|
132
|
-
CountryCodes.France,
|
|
133
|
-
CountryCodes.Germany,
|
|
134
|
-
CountryCodes.Greece,
|
|
135
|
-
CountryCodes.Ireland,
|
|
136
|
-
CountryCodes.Italy,
|
|
137
|
-
CountryCodes.Latvia,
|
|
138
|
-
CountryCodes.Lithuania,
|
|
139
|
-
CountryCodes.Luxembourg,
|
|
140
|
-
CountryCodes.Malta,
|
|
141
|
-
CountryCodes.Netherlands,
|
|
142
|
-
CountryCodes.Portugal,
|
|
143
|
-
CountryCodes.Slovakia,
|
|
144
|
-
CountryCodes.Slovenia,
|
|
145
|
-
CountryCodes.Spain,
|
|
146
|
-
CountryCodes.UnitedKingdom
|
|
147
|
-
];
|
|
148
|
-
var COUNTRIES_WITH_POSSIBLE_TRUSTEE_TAXID_ABSENT_V4 = [CountryCodes.Australia];
|
|
149
|
-
var TAX_ID_REQUIRED_COUNTRIES_ORGANIZATION = [
|
|
150
|
-
CountryCodes.Austria,
|
|
151
|
-
CountryCodes.Belgium,
|
|
152
|
-
CountryCodes.Croatia,
|
|
153
|
-
CountryCodes.Cyprus,
|
|
154
|
-
CountryCodes.Germany,
|
|
155
|
-
CountryCodes.Greece,
|
|
156
|
-
CountryCodes.Ireland,
|
|
157
|
-
CountryCodes.Luxembourg,
|
|
158
|
-
CountryCodes.Malta,
|
|
159
|
-
CountryCodes.Netherlands,
|
|
160
|
-
CountryCodes.Slovakia,
|
|
161
|
-
CountryCodes.Slovenia
|
|
162
|
-
];
|
|
163
|
-
/**
|
|
164
|
-
* Sole proprietorship specific rules
|
|
165
|
-
*/
|
|
166
|
-
var COUNTRIES_THAT_DONT_REQUIRE_SOLE_PROP_REGISTRATION = [
|
|
167
|
-
CountryCodes.Australia,
|
|
168
|
-
CountryCodes.Gibraltar,
|
|
169
|
-
CountryCodes.Guernsey,
|
|
170
|
-
CountryCodes.HongKong,
|
|
171
|
-
CountryCodes.Ireland,
|
|
172
|
-
CountryCodes.IsleOfMan,
|
|
173
|
-
CountryCodes.Jersey,
|
|
174
|
-
CountryCodes.Malta,
|
|
175
|
-
CountryCodes.Mexico,
|
|
176
|
-
CountryCodes.PuertoRico,
|
|
177
|
-
CountryCodes.Spain,
|
|
178
|
-
CountryCodes.UnitedKingdom,
|
|
179
|
-
CountryCodes.UnitedStates
|
|
180
|
-
];
|
|
181
|
-
var COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_SOLE_PROPS = [
|
|
182
|
-
CountryCodes.Canada,
|
|
183
|
-
CountryCodes.PuertoRico,
|
|
184
|
-
CountryCodes.UnitedStates
|
|
185
|
-
];
|
|
186
|
-
var COUNTRIES_THAT_DO_NOT_USE_TAX_ID_FOR_SOLE_PROP = [CountryCodes.Singapore];
|
|
187
|
-
var COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER_SOLE_PROPS = [CountryCodes.Germany];
|
|
188
|
-
var isUsingCompanySearch = (country, taskType) => {
|
|
189
|
-
if (taskType !== TaskTypes.BUSINESS_DETAILS && taskType !== TaskTypes.GLOBAL_ENTRY) return false;
|
|
190
|
-
return COUNTRIES_USING_COMPANY_SEARCH.includes(country);
|
|
191
|
-
};
|
|
192
|
-
/**
|
|
193
|
-
* A Japanese business has a kanji legal name and a katakana reading of it, neither of which can be
|
|
194
|
-
* derived from the roman one, so they travel beside it as script localizations.
|
|
195
|
-
*
|
|
196
|
-
* @param data the form section holding the localized name fields, whatever the task calls it
|
|
197
|
-
* @returns the localizations that were filled in, so an empty array when neither was asked for
|
|
198
|
-
*/
|
|
199
|
-
var mapJapaneseLegalNamesToLocalization = (data) => [mapSchemaFieldsToApiScriptLocalization(data, "jaHani"), mapSchemaFieldsToApiScriptLocalization(data, "jaKana")].filter(({ fields }) => !isEmpty(fields)).map(({ script, fields }) => ({
|
|
200
|
-
script,
|
|
201
|
-
fields: { legalName: fields.legalCompanyName }
|
|
202
|
-
}));
|
|
203
|
-
/**
|
|
204
|
-
* Reads the kanji and katakana legal names back out of the script localizations, so they can
|
|
205
|
-
* prefill the fields they came from.
|
|
206
|
-
*
|
|
207
|
-
* @param localization the organization's script localizations, when it has any
|
|
208
|
-
*/
|
|
209
|
-
var mapLocalizationToJapaneseLegalNames = (localization) => (localization ?? []).reduce((schemaFields, { script, fields }) => ({
|
|
210
|
-
...schemaFields,
|
|
211
|
-
...mapApiScriptLocalizationToSchemaFields({
|
|
212
|
-
script,
|
|
213
|
-
fields: { legalCompanyName: fields?.legalName }
|
|
214
|
-
})
|
|
215
|
-
}), {});
|
|
216
|
-
//#endregion
|
|
217
|
-
//#region src/components/Shared/fields/TaxInformationField/taxIdNumberTypes.ts
|
|
218
|
-
var restrictedEntityTypes = [
|
|
219
|
-
"soleProprietorship",
|
|
220
|
-
"trust",
|
|
221
|
-
"individual"
|
|
222
|
-
];
|
|
223
|
-
var isRestrictedEntityType = (entityType) => Boolean(entityType && restrictedEntityTypes.includes(entityType));
|
|
224
|
-
var isApplicableOnlyForSingleRestrictedType = (option) => {
|
|
225
|
-
if (!option.applicableOnlyFor || option.applicableOnlyFor.length !== 1) return false;
|
|
226
|
-
return restrictedEntityTypes.includes(option.applicableOnlyFor[0]);
|
|
227
|
-
};
|
|
228
|
-
var taxIdNumberOptions = {
|
|
229
|
-
[CountryCodes.Australia]: [{
|
|
230
|
-
id: "ABN",
|
|
231
|
-
name: "australianBusinessNumberAbn"
|
|
232
|
-
}, {
|
|
233
|
-
id: "TFN",
|
|
234
|
-
name: "taxInformationNumber__AU_Individual",
|
|
235
|
-
applicableOnlyFor: ["individual"]
|
|
236
|
-
}],
|
|
237
|
-
[CountryCodes.Austria]: [{
|
|
238
|
-
id: "STEUERNUMMER",
|
|
239
|
-
name: "taxInformationNumber__AT"
|
|
240
|
-
}],
|
|
241
|
-
[CountryCodes.Belgium]: [{
|
|
242
|
-
id: "BUSINESS_NUMMER",
|
|
243
|
-
name: "businessNumber",
|
|
244
|
-
applicableOnlyFor: [
|
|
245
|
-
"soleProprietorship",
|
|
246
|
-
"privateCompany",
|
|
247
|
-
"governmentalOrganization",
|
|
248
|
-
"associationIncorporated",
|
|
249
|
-
"partnershipIncorporated",
|
|
250
|
-
"nonProfit",
|
|
251
|
-
"unincorporatedPartnership",
|
|
252
|
-
"unlistedPublicCompany"
|
|
253
|
-
]
|
|
254
|
-
}, {
|
|
255
|
-
id: "NUMERO_NATIONAL",
|
|
256
|
-
name: "taxInformationNumber__BE_Individual",
|
|
257
|
-
applicableOnlyFor: ["individual"]
|
|
258
|
-
}],
|
|
259
|
-
[CountryCodes.Brazil]: [{
|
|
260
|
-
id: "CNPJ",
|
|
261
|
-
name: "CNPJ"
|
|
262
|
-
}],
|
|
263
|
-
[CountryCodes.Bulgaria]: [{
|
|
264
|
-
id: "EGN",
|
|
265
|
-
name: "taxInformationNumber__BG",
|
|
266
|
-
applicableOnlyFor: ["individual"]
|
|
267
|
-
}],
|
|
268
|
-
[CountryCodes.Canada]: [{
|
|
269
|
-
id: "BUSINESS_NUMBER",
|
|
270
|
-
name: "businessNumber"
|
|
271
|
-
}, {
|
|
272
|
-
id: "SIN",
|
|
273
|
-
name: "taxInformationNumber__CA",
|
|
274
|
-
applicableOnlyFor: ["individual"]
|
|
275
|
-
}],
|
|
276
|
-
[CountryCodes.China]: [{
|
|
277
|
-
id: "RESIDENT_IDENTITY_CARD_NUMBER",
|
|
278
|
-
name: "taxInformationNumber__CN",
|
|
279
|
-
applicableOnlyFor: ["individual"]
|
|
280
|
-
}],
|
|
281
|
-
[CountryCodes.Croatia]: [{
|
|
282
|
-
id: "OIB",
|
|
283
|
-
name: "taxInformationNumber__HR"
|
|
284
|
-
}],
|
|
285
|
-
[CountryCodes.Cyprus]: [{
|
|
286
|
-
id: "TIC",
|
|
287
|
-
name: "taxInformationNumber__CY"
|
|
288
|
-
}],
|
|
289
|
-
[CountryCodes.CzechRepublic]: [{
|
|
290
|
-
id: "RODNE_CISLO",
|
|
291
|
-
name: "taxInformationNumber__CZ",
|
|
292
|
-
applicableOnlyFor: ["individual"]
|
|
293
|
-
}],
|
|
294
|
-
[CountryCodes.Denmark]: [{
|
|
295
|
-
id: "CPR",
|
|
296
|
-
name: "taxInformationNumber__DK",
|
|
297
|
-
applicableOnlyFor: ["individual"]
|
|
298
|
-
}],
|
|
299
|
-
[CountryCodes.Estonia]: [{
|
|
300
|
-
id: "ISIKUKOOD",
|
|
301
|
-
name: "taxInformationNumber__ET_Individual",
|
|
302
|
-
applicableOnlyFor: ["individual"]
|
|
303
|
-
}, {
|
|
304
|
-
id: "REGISTRIKOOD",
|
|
305
|
-
name: "registrikood",
|
|
306
|
-
applicableOnlyFor: ["privateCompany"]
|
|
307
|
-
}],
|
|
308
|
-
[CountryCodes.Egypt]: [{
|
|
309
|
-
id: "TIN_EG",
|
|
310
|
-
name: "taxInformationNumber__EG",
|
|
311
|
-
applicableOnlyFor: ["individual"]
|
|
312
|
-
}],
|
|
313
|
-
[CountryCodes.Finland]: [{
|
|
314
|
-
id: "HENKILOTUNNUS",
|
|
315
|
-
name: "taxInformationNumber__FI",
|
|
316
|
-
applicableOnlyFor: ["individual"]
|
|
317
|
-
}, {
|
|
318
|
-
id: "YTUNNUS",
|
|
319
|
-
name: "YTunnus",
|
|
320
|
-
applicableOnlyFor: ["privateCompany"]
|
|
321
|
-
}],
|
|
322
|
-
[CountryCodes.France]: [{
|
|
323
|
-
id: "SIRET",
|
|
324
|
-
name: "siret",
|
|
325
|
-
applicableOnlyFor: ["privateCompany"]
|
|
326
|
-
}],
|
|
327
|
-
[CountryCodes.Germany]: [{
|
|
328
|
-
id: "STEUERNUMMER",
|
|
329
|
-
name: "taxInformationNumber__DE",
|
|
330
|
-
applicableOnlyFor: [
|
|
331
|
-
"soleProprietorship",
|
|
332
|
-
"privateCompany",
|
|
333
|
-
"governmentalOrganization",
|
|
334
|
-
"associationIncorporated",
|
|
335
|
-
"partnershipIncorporated",
|
|
336
|
-
"nonProfit",
|
|
337
|
-
"unincorporatedPartnership",
|
|
338
|
-
"unlistedPublicCompany"
|
|
339
|
-
]
|
|
340
|
-
}, {
|
|
341
|
-
id: "IDNR",
|
|
342
|
-
name: "taxInformationNumber__DE_Individual",
|
|
343
|
-
applicableOnlyFor: ["individual"]
|
|
344
|
-
}],
|
|
345
|
-
[CountryCodes.Gibraltar]: [{
|
|
346
|
-
id: "GI_TAXPAYER_REFERENCE_NUMBER",
|
|
347
|
-
name: "taxpayerReferenceNumber"
|
|
348
|
-
}],
|
|
349
|
-
[CountryCodes.Greece]: [{
|
|
350
|
-
id: "AFM",
|
|
351
|
-
name: "taxInformationNumber__GR"
|
|
352
|
-
}],
|
|
353
|
-
[CountryCodes.Guernsey]: [{
|
|
354
|
-
id: "GG_REGISTRATION_NUMBER",
|
|
355
|
-
name: "taxInformationNumber"
|
|
356
|
-
}, {
|
|
357
|
-
id: "TIN_GG",
|
|
358
|
-
name: "nationalInsuranceNumber",
|
|
359
|
-
applicableOnlyFor: ["soleProprietorship"]
|
|
360
|
-
}],
|
|
361
|
-
[CountryCodes.HongKong]: [{
|
|
362
|
-
id: "BRN",
|
|
363
|
-
name: "taxInformationNumber__HK"
|
|
364
|
-
}, {
|
|
365
|
-
id: "HKID",
|
|
366
|
-
name: "taxInformationNumber__HK_Individual",
|
|
367
|
-
applicableOnlyFor: ["individual"]
|
|
368
|
-
}],
|
|
369
|
-
[CountryCodes.Hungary]: [{
|
|
370
|
-
id: "ADOAZONOSITO_JEL",
|
|
371
|
-
name: "taxInformationNumber__HU",
|
|
372
|
-
applicableOnlyFor: ["individual"]
|
|
373
|
-
}],
|
|
374
|
-
[CountryCodes.Iceland]: [{
|
|
375
|
-
id: "KENNITALA",
|
|
376
|
-
name: "taxInformationNumber__IS",
|
|
377
|
-
applicableOnlyFor: ["individual"]
|
|
378
|
-
}],
|
|
379
|
-
[CountryCodes.India]: [{
|
|
380
|
-
id: "PAN",
|
|
381
|
-
name: "taxInformationNumber__IN",
|
|
382
|
-
applicableOnlyFor: ["individual"]
|
|
383
|
-
}],
|
|
384
|
-
[CountryCodes.Ireland]: [{
|
|
385
|
-
id: "TRN",
|
|
386
|
-
name: "trnNumber",
|
|
387
|
-
applicableOnlyFor: ["privateCompany", "unincorporatedPartnership"]
|
|
388
|
-
}, {
|
|
389
|
-
id: "PERSONAL_PUBLIC_SERVICE_NUMBER",
|
|
390
|
-
name: "taxInformationNumber__IE_Individual",
|
|
391
|
-
applicableOnlyFor: ["individual"]
|
|
392
|
-
}],
|
|
393
|
-
[CountryCodes.IsleOfMan]: [{
|
|
394
|
-
id: "IM_TAX_REFERENCE_NUMBER",
|
|
395
|
-
name: "taxReferenceNumber"
|
|
396
|
-
}],
|
|
397
|
-
[CountryCodes.Italy]: [{
|
|
398
|
-
id: "CODICE_FISCALE",
|
|
399
|
-
name: "taxInformationNumber__IT"
|
|
400
|
-
}],
|
|
401
|
-
[CountryCodes.Israel]: [{
|
|
402
|
-
id: "IL_MISPAR_ZEHUT",
|
|
403
|
-
name: "taxInformationNumber__IL",
|
|
404
|
-
applicableOnlyFor: ["individual"]
|
|
405
|
-
}],
|
|
406
|
-
[CountryCodes.Japan]: [{
|
|
407
|
-
id: "CORPORATE_NUMBER",
|
|
408
|
-
name: "taxInformationNumber"
|
|
409
|
-
}, {
|
|
410
|
-
id: "JP_MY_NUMBER",
|
|
411
|
-
name: "taxInformationNumber__JP_Individual",
|
|
412
|
-
applicableOnlyFor: ["individual"]
|
|
413
|
-
}],
|
|
414
|
-
[CountryCodes.Jersey]: [{
|
|
415
|
-
id: "TIN_JE",
|
|
416
|
-
name: "taxIdentificationNumber"
|
|
417
|
-
}, {
|
|
418
|
-
id: "SSN",
|
|
419
|
-
name: "socialSecurityNumber",
|
|
420
|
-
applicableOnlyFor: ["soleProprietorship"]
|
|
421
|
-
}],
|
|
422
|
-
[CountryCodes.Latvia]: [{
|
|
423
|
-
id: "PERSONAS_KODS",
|
|
424
|
-
name: "taxInformationNumber__LV",
|
|
425
|
-
applicableOnlyFor: ["individual"]
|
|
426
|
-
}, {
|
|
427
|
-
id: "REGISTRACIJAS_NUMURS",
|
|
428
|
-
name: "lvRegistrationNumber",
|
|
429
|
-
applicableOnlyFor: ["privateCompany"]
|
|
430
|
-
}],
|
|
431
|
-
[CountryCodes.Lithuania]: [{
|
|
432
|
-
id: "ASMENS_KODAS",
|
|
433
|
-
name: "taxInformationNumber__LT"
|
|
434
|
-
}],
|
|
435
|
-
[CountryCodes.Luxembourg]: [{
|
|
436
|
-
id: "NATIONAL_IDENTIFICATION_NUMBER",
|
|
437
|
-
name: "taxInformationNumber__LU_Individual",
|
|
438
|
-
applicableOnlyFor: ["individual"]
|
|
439
|
-
}, {
|
|
440
|
-
id: "NATIONAL_IDENTIFICATION_NUMBER",
|
|
441
|
-
name: "taxInformationNumber__LU_Org",
|
|
442
|
-
applicableOnlyFor: ["privateCompany"]
|
|
443
|
-
}],
|
|
444
|
-
[CountryCodes.Malta]: [
|
|
445
|
-
{
|
|
446
|
-
id: "UNIQUE_TAXPAYER_REFERENCE_NUMBER",
|
|
447
|
-
name: "taxInformationNumber__MT_Individual_UTRN",
|
|
448
|
-
applicableOnlyFor: ["individual"]
|
|
449
|
-
},
|
|
450
|
-
{
|
|
451
|
-
id: "IDENTITY_CARD_NUMBER",
|
|
452
|
-
name: "taxInformationNumber__MT_Individual",
|
|
453
|
-
applicableOnlyFor: ["individual"]
|
|
454
|
-
},
|
|
455
|
-
{
|
|
456
|
-
id: "INCOME_TAX_REGISTRATION_NUMBER",
|
|
457
|
-
name: "taxInformationNumber__MT_Org",
|
|
458
|
-
applicableOnlyFor: ["privateCompany"]
|
|
459
|
-
}
|
|
460
|
-
],
|
|
461
|
-
[CountryCodes.Mexico]: [{
|
|
462
|
-
id: "RFC",
|
|
463
|
-
name: "taxInformationNumber__MX",
|
|
464
|
-
applicableOnlyFor: [
|
|
465
|
-
"privateCompany",
|
|
466
|
-
"governmentalOrganization",
|
|
467
|
-
"associationIncorporated",
|
|
468
|
-
"partnershipIncorporated",
|
|
469
|
-
"nonProfit",
|
|
470
|
-
"unincorporatedPartnership",
|
|
471
|
-
"unlistedPublicCompany"
|
|
472
|
-
]
|
|
473
|
-
}],
|
|
474
|
-
[CountryCodes.Netherlands]: [{
|
|
475
|
-
id: "RSIN",
|
|
476
|
-
name: "rsinNumber",
|
|
477
|
-
applicableOnlyFor: [
|
|
478
|
-
"privateCompany",
|
|
479
|
-
"governmentalOrganization",
|
|
480
|
-
"associationIncorporated",
|
|
481
|
-
"partnershipIncorporated",
|
|
482
|
-
"nonProfit",
|
|
483
|
-
"unincorporatedPartnership",
|
|
484
|
-
"unlistedPublicCompany"
|
|
485
|
-
]
|
|
486
|
-
}, {
|
|
487
|
-
id: "BSN",
|
|
488
|
-
name: "bsnNumber",
|
|
489
|
-
applicableOnlyFor: ["individual"]
|
|
490
|
-
}],
|
|
491
|
-
[CountryCodes.NewZealand]: [{
|
|
492
|
-
id: "IRD",
|
|
493
|
-
name: "irdNumber"
|
|
494
|
-
}],
|
|
495
|
-
[CountryCodes.Norway]: [{
|
|
496
|
-
id: "D_NUMBER",
|
|
497
|
-
name: "taxInformationNumber__NO",
|
|
498
|
-
applicableOnlyFor: ["individual"]
|
|
499
|
-
}],
|
|
500
|
-
[CountryCodes.Poland]: [{
|
|
501
|
-
id: "PESEL_NUMBER",
|
|
502
|
-
name: "taxInformationNumber__PL",
|
|
503
|
-
applicableOnlyFor: ["individual"]
|
|
504
|
-
}],
|
|
505
|
-
[CountryCodes.Portugal]: [{
|
|
506
|
-
id: "NUMERO_ID_CIVIL",
|
|
507
|
-
name: "taxInformationNumber__PT",
|
|
508
|
-
applicableOnlyFor: ["individual"]
|
|
509
|
-
}, {
|
|
510
|
-
id: "NIPC",
|
|
511
|
-
name: "NIPC",
|
|
512
|
-
applicableOnlyFor: ["privateCompany"]
|
|
513
|
-
}],
|
|
514
|
-
[CountryCodes.PuertoRico]: [{
|
|
515
|
-
id: "EIN",
|
|
516
|
-
name: "ein"
|
|
517
|
-
}],
|
|
518
|
-
[CountryCodes.Romania]: [{
|
|
519
|
-
id: "CNP",
|
|
520
|
-
name: "taxInformationNumber__RO",
|
|
521
|
-
applicableOnlyFor: ["individual"]
|
|
522
|
-
}],
|
|
523
|
-
[CountryCodes.Singapore]: [
|
|
524
|
-
{
|
|
525
|
-
id: "GST",
|
|
526
|
-
name: "gst"
|
|
527
|
-
},
|
|
528
|
-
{
|
|
529
|
-
id: "UEN",
|
|
530
|
-
name: "uen"
|
|
531
|
-
},
|
|
532
|
-
{
|
|
533
|
-
id: "NRIC",
|
|
534
|
-
name: "taxInformationNumber__SG_Individual",
|
|
535
|
-
applicableOnlyFor: ["individual"]
|
|
536
|
-
}
|
|
537
|
-
],
|
|
538
|
-
[CountryCodes.Slovakia]: [{
|
|
539
|
-
id: "RODNE_CISLO",
|
|
540
|
-
name: "taxInformationNumber__SK_Individual",
|
|
541
|
-
applicableOnlyFor: ["individual"]
|
|
542
|
-
}, {
|
|
543
|
-
id: "NATIONAL_IDENTIFICATION_NUMBER",
|
|
544
|
-
name: "taxInformationNumber__SK_Org",
|
|
545
|
-
applicableOnlyFor: ["privateCompany"]
|
|
546
|
-
}],
|
|
547
|
-
[CountryCodes.Slovenia]: [{
|
|
548
|
-
id: "SI_TAX_NUMBER",
|
|
549
|
-
name: "taxInformationNumber__SI_Individual",
|
|
550
|
-
applicableOnlyFor: ["individual"]
|
|
551
|
-
}, {
|
|
552
|
-
id: "NATIONAL_IDENTIFICATION_NUMBER",
|
|
553
|
-
name: "taxInformationNumber__SI_Org",
|
|
554
|
-
applicableOnlyFor: ["privateCompany"]
|
|
555
|
-
}],
|
|
556
|
-
[CountryCodes.SouthAfrica]: [{
|
|
557
|
-
id: "INCOME_TAX_REFERENCE_NUMBER",
|
|
558
|
-
name: "taxInformationNumber__ZA",
|
|
559
|
-
applicableOnlyFor: ["individual"]
|
|
560
|
-
}],
|
|
561
|
-
[CountryCodes.Spain]: [
|
|
562
|
-
{
|
|
563
|
-
id: "DNI",
|
|
564
|
-
name: "dni",
|
|
565
|
-
applicableOnlyFor: ["individual"]
|
|
566
|
-
},
|
|
567
|
-
{
|
|
568
|
-
id: "NIE",
|
|
569
|
-
name: "nie",
|
|
570
|
-
applicableOnlyFor: ["individual"]
|
|
571
|
-
},
|
|
572
|
-
{
|
|
573
|
-
id: "NIF",
|
|
574
|
-
name: "NIF",
|
|
575
|
-
applicableOnlyFor: ["privateCompany"]
|
|
576
|
-
}
|
|
577
|
-
],
|
|
578
|
-
[CountryCodes.Sweden]: [{
|
|
579
|
-
id: "PERSONNUMMER",
|
|
580
|
-
name: "taxInformationNumber__SE",
|
|
581
|
-
applicableOnlyFor: ["individual"]
|
|
582
|
-
}],
|
|
583
|
-
[CountryCodes.Switzerland]: [{
|
|
584
|
-
id: "AHV_NUMBER",
|
|
585
|
-
name: "taxInformationNumber__CH",
|
|
586
|
-
applicableOnlyFor: ["individual"]
|
|
587
|
-
}],
|
|
588
|
-
[CountryCodes.UnitedArabEmirates]: [{
|
|
589
|
-
id: "EMIRATES_ID",
|
|
590
|
-
name: "taxInformationNumber__AE",
|
|
591
|
-
applicableOnlyFor: ["individual"]
|
|
592
|
-
}],
|
|
593
|
-
[CountryCodes.UnitedKingdom]: [{
|
|
594
|
-
id: "UTR",
|
|
595
|
-
name: "utr"
|
|
596
|
-
}, {
|
|
597
|
-
id: "NINO",
|
|
598
|
-
name: "nationalInsuranceNumber",
|
|
599
|
-
applicableOnlyFor: ["individual"]
|
|
600
|
-
}],
|
|
601
|
-
[CountryCodes.UnitedStates]: [{
|
|
602
|
-
id: "EIN",
|
|
603
|
-
name: "ein"
|
|
604
|
-
}]
|
|
605
|
-
};
|
|
606
|
-
var getTaxIdNumberOptions = (country, companyType) => {
|
|
607
|
-
const optionsForCountry = taxIdNumberOptions[country];
|
|
608
|
-
if (!optionsForCountry) return optionsForCountry;
|
|
609
|
-
if (isRestrictedEntityType(companyType)) return optionsForCountry.filter((option) => option.applicableOnlyFor?.includes(companyType) ?? true);
|
|
610
|
-
return optionsForCountry.filter((option) => !isApplicableOnlyForSingleRestrictedType(option));
|
|
611
|
-
};
|
|
612
|
-
var getTaxIdNumberSelectorOptions = (country, companyType, exemptedOptionLabel) => {
|
|
613
|
-
const availableOptions = getTaxIdNumberOptions(country, companyType) ?? [];
|
|
614
|
-
if (availableOptions.length === 0 || !exemptedOptionLabel) return availableOptions;
|
|
615
|
-
return [...availableOptions, {
|
|
616
|
-
id: "exempted",
|
|
617
|
-
name: exemptedOptionLabel
|
|
618
|
-
}];
|
|
619
|
-
};
|
|
620
|
-
function getValidCompanyTypesForTaxIdNumberType(country, taxIdNumberType) {
|
|
621
|
-
if (!taxIdNumberType) return void 0;
|
|
622
|
-
const taxIdOption = taxIdNumberOptions[country]?.find((option) => option.id === taxIdNumberType);
|
|
623
|
-
if (!taxIdOption?.applicableOnlyFor) return void 0;
|
|
624
|
-
const validCompanyTypes = taxIdOption.applicableOnlyFor.filter((type) => type !== "individual" && type !== "trust" && type !== "unincorporatedPartnership");
|
|
625
|
-
return validCompanyTypes.length > 0 ? validCompanyTypes : void 0;
|
|
626
|
-
}
|
|
627
|
-
//#endregion
|
|
628
|
-
//#region src/components/Shared/fields/TaxInformationField/fieldConfig.ts
|
|
629
|
-
var taxInformationDefaultFieldMetadata = { label: "taxId" };
|
|
630
|
-
var exemptedFromTaxDefaultFieldMetadata = { label: "iDontHaveATaxId" };
|
|
631
|
-
/**
|
|
632
|
-
* Mapping function to parse TaxInformation schemas to validate the string for TaxInformation.number
|
|
633
|
-
*
|
|
634
|
-
* @param validators - String validators for the TaxInformation.number
|
|
635
|
-
* @param country - Country in the fieldConfig
|
|
636
|
-
*/
|
|
637
|
-
var mapValidators = (validators, country) => validators.map((validator) => ({
|
|
638
|
-
...validator,
|
|
639
|
-
validate: (taxInformation) => {
|
|
640
|
-
const taxInfo = taxInformation?.find((taxId) => country === taxId.country);
|
|
641
|
-
if (taxInfo?.numberAbsent) return true;
|
|
642
|
-
return taxInfo?.number ? validator.validate(taxInfo.number) : false;
|
|
643
|
-
}
|
|
644
|
-
}));
|
|
645
|
-
var taxInformationDefaultFieldConfig = {
|
|
646
|
-
[CountryCodes.Australia]: ({ taxIdNumberType }) => {
|
|
647
|
-
switch (taxIdNumberType) {
|
|
648
|
-
case "TFN": return {
|
|
649
|
-
label: "taxInformationNumber__AU_Individual",
|
|
650
|
-
validators: mapValidators([validatePatternOnBlur(/^\d{9}$/)], CountryCodes.Australia),
|
|
651
|
-
mask: { mask: makeMask(...numericInputs(9)) },
|
|
652
|
-
guidanceText: {
|
|
653
|
-
key: "enterNDigitsForExample",
|
|
654
|
-
values: {
|
|
655
|
-
numDigits: "9",
|
|
656
|
-
example: "123456789"
|
|
657
|
-
}
|
|
658
|
-
}
|
|
659
|
-
};
|
|
660
|
-
default: return {
|
|
661
|
-
label: "australianBusinessNumberAbn",
|
|
662
|
-
validators: mapValidators([validatePatternOnBlur(/^\d{11}$/)], CountryCodes.Australia),
|
|
663
|
-
mask: { mask: makeMask(...numericInputs(2), spacer, ...numericInputs(3), spacer, ...numericInputs(3), spacer, ...numericInputs(3)) },
|
|
664
|
-
guidanceText: {
|
|
665
|
-
key: "enterNDigitsForExample",
|
|
666
|
-
values: {
|
|
667
|
-
numDigits: "11",
|
|
668
|
-
example: "51 824 753 556"
|
|
669
|
-
}
|
|
670
|
-
}
|
|
671
|
-
};
|
|
672
|
-
}
|
|
673
|
-
},
|
|
674
|
-
[CountryCodes.Austria]: {
|
|
675
|
-
label: "taxInformationNumber__AT",
|
|
676
|
-
validators: mapValidators([validatePatternOnBlur(/^(?=(?:[^0-9]*\d){9}[^0-9]*$)[\d\-/]+$/)], CountryCodes.Austria),
|
|
677
|
-
mask: { mask: makeMask(...numericInputs(2), {
|
|
678
|
-
type: "input",
|
|
679
|
-
allow: /[-/]/,
|
|
680
|
-
optional: true
|
|
681
|
-
}, ...numericInputs(3), {
|
|
682
|
-
type: "input",
|
|
683
|
-
allow: /[-/]/,
|
|
684
|
-
optional: true
|
|
685
|
-
}, ...numericInputs(4)) },
|
|
686
|
-
guidanceText: {
|
|
687
|
-
key: "enterNDigitsForExample",
|
|
688
|
-
values: {
|
|
689
|
-
numDigits: "9",
|
|
690
|
-
example: "931736581"
|
|
691
|
-
}
|
|
692
|
-
}
|
|
693
|
-
},
|
|
694
|
-
[CountryCodes.Belgium]: ({ taxIdNumberType }) => {
|
|
695
|
-
switch (taxIdNumberType) {
|
|
696
|
-
case "NUMERO_NATIONAL": return {
|
|
697
|
-
label: "taxInformationNumber__BE_Individual",
|
|
698
|
-
validators: mapValidators([validatePatternOnBlur(/^\d{11}$/)], CountryCodes.Belgium),
|
|
699
|
-
mask: { mask: makeMask(...numericInputs(11)) },
|
|
700
|
-
guidanceText: {
|
|
701
|
-
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
702
|
-
values: {
|
|
703
|
-
example: "99999999999",
|
|
704
|
-
idType: "Numeró National"
|
|
705
|
-
}
|
|
706
|
-
}
|
|
707
|
-
};
|
|
708
|
-
default: return {
|
|
709
|
-
label: "taxInformationNumber__BE",
|
|
710
|
-
validators: mapValidators([validatePatternOnBlur(/^\d{10}$/)], CountryCodes.Belgium),
|
|
711
|
-
mask: { mask: makeMask(...numericInputs(10)) },
|
|
712
|
-
guidanceText: {
|
|
713
|
-
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
714
|
-
values: {
|
|
715
|
-
example: "0123321123",
|
|
716
|
-
idType: "Business nummer"
|
|
717
|
-
}
|
|
718
|
-
}
|
|
719
|
-
};
|
|
720
|
-
}
|
|
721
|
-
},
|
|
722
|
-
[CountryCodes.Bulgaria]: {
|
|
723
|
-
label: "taxInformationNumber__BG",
|
|
724
|
-
validators: mapValidators([validatePatternOnBlur(/^\d{10}$/)], CountryCodes.Bulgaria),
|
|
725
|
-
mask: { mask: makeMask(...numericInputs(10)) },
|
|
726
|
-
guidanceText: {
|
|
727
|
-
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
728
|
-
values: {
|
|
729
|
-
example: "8001010000",
|
|
730
|
-
idType: "Edinen grazhdanski nomer / ЕГН"
|
|
731
|
-
}
|
|
732
|
-
}
|
|
733
|
-
},
|
|
734
|
-
[CountryCodes.Canada]: ({ taxIdNumberType }) => {
|
|
735
|
-
switch (taxIdNumberType) {
|
|
736
|
-
case "SIN": return {
|
|
737
|
-
label: "taxInformationNumber__CA",
|
|
738
|
-
validators: mapValidators([validatePatternOnBlur(/^\d{9}$/)], CountryCodes.Canada),
|
|
739
|
-
mask: { mask: makeMask(...numericInputs(9)) },
|
|
740
|
-
guidanceText: {
|
|
741
|
-
key: "enterNDigitsForExample",
|
|
742
|
-
values: {
|
|
743
|
-
numDigits: "9",
|
|
744
|
-
example: "123456789"
|
|
745
|
-
}
|
|
746
|
-
}
|
|
747
|
-
};
|
|
748
|
-
default: return {
|
|
749
|
-
label: "businessNumber",
|
|
750
|
-
validators: mapValidators([validatePatternOnBlur(/^\d{9}$/)], CountryCodes.Canada),
|
|
751
|
-
mask: { mask: makeMask(...numericInputs(9)) },
|
|
752
|
-
guidanceText: {
|
|
753
|
-
key: "enterNDigitsForExample",
|
|
754
|
-
values: {
|
|
755
|
-
numDigits: "9",
|
|
756
|
-
example: "123456789"
|
|
757
|
-
}
|
|
758
|
-
}
|
|
759
|
-
};
|
|
760
|
-
}
|
|
761
|
-
},
|
|
762
|
-
[CountryCodes.China]: {
|
|
763
|
-
label: "taxInformationNumber__CN",
|
|
764
|
-
validators: mapValidators([validatePatternOnBlur(/^\d{17}[0-9X]$/)], CountryCodes.China),
|
|
765
|
-
mask: {
|
|
766
|
-
mask: makeMask(...numericInputs(17), ...customInputs(1, /[0-9X]/)),
|
|
767
|
-
transformOnType: uppercase
|
|
768
|
-
},
|
|
769
|
-
guidanceText: {
|
|
770
|
-
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
771
|
-
values: {
|
|
772
|
-
example: "11010519491231002X",
|
|
773
|
-
idType: "Resident Identity Card Number (居民身份证号码)"
|
|
774
|
-
}
|
|
775
|
-
}
|
|
776
|
-
},
|
|
777
|
-
[CountryCodes.Croatia]: {
|
|
778
|
-
label: "taxInformationNumber__HR",
|
|
779
|
-
validators: mapValidators([validatePatternOnBlur(/^\d{11}$/)], CountryCodes.Croatia),
|
|
780
|
-
mask: { mask: makeMask(...numericInputs(11)) },
|
|
781
|
-
guidanceText: {
|
|
782
|
-
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
783
|
-
values: {
|
|
784
|
-
example: "94577403194",
|
|
785
|
-
idType: "OIB"
|
|
786
|
-
}
|
|
787
|
-
}
|
|
788
|
-
},
|
|
789
|
-
[CountryCodes.Cyprus]: {
|
|
790
|
-
label: "taxInformationNumber__CY",
|
|
791
|
-
validators: mapValidators([validatePatternOnBlur(/^\d{8,9}[A-Z]$/)], CountryCodes.Cyprus),
|
|
792
|
-
mask: {
|
|
793
|
-
mask: makeMask(...numericInputs(8), ...numericInputs(1, true), ...alphaInputs(1)),
|
|
794
|
-
transformOnType: uppercase
|
|
795
|
-
},
|
|
796
|
-
guidanceText: {
|
|
797
|
-
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
798
|
-
values: {
|
|
799
|
-
example: "00123123T",
|
|
800
|
-
idType: "TIC"
|
|
801
|
-
}
|
|
802
|
-
}
|
|
803
|
-
},
|
|
804
|
-
[CountryCodes.CzechRepublic]: {
|
|
805
|
-
label: "taxInformationNumber__CZ",
|
|
806
|
-
validators: mapValidators([validatePatternOnBlur(/^\d{9,10}$/)], CountryCodes.CzechRepublic),
|
|
807
|
-
mask: { mask: makeMask(...numericInputs(6), ...nonInputs("/"), ...numericInputs(3), ...numericInputs(1, true)) },
|
|
808
|
-
guidanceText: {
|
|
809
|
-
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
810
|
-
values: {
|
|
811
|
-
example: "850523/1234",
|
|
812
|
-
idType: "Rodné číslo (RČ)"
|
|
813
|
-
}
|
|
814
|
-
}
|
|
815
|
-
},
|
|
816
|
-
[CountryCodes.Denmark]: {
|
|
817
|
-
label: "taxInformationNumber__DK",
|
|
818
|
-
validators: mapValidators([validatePatternOnBlur(/^\d{10}$/)], CountryCodes.Denmark),
|
|
819
|
-
mask: { mask: makeMask(...numericInputs(6), ...nonInputs("-"), ...numericInputs(4)) },
|
|
820
|
-
guidanceText: {
|
|
821
|
-
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
822
|
-
values: {
|
|
823
|
-
example: "120585-1234",
|
|
824
|
-
idType: "CPR-nummer (Personnummer)"
|
|
825
|
-
}
|
|
826
|
-
}
|
|
827
|
-
},
|
|
828
|
-
[CountryCodes.Egypt]: {
|
|
829
|
-
label: "taxInformationNumber__EG",
|
|
830
|
-
validators: mapValidators([validatePatternOnBlur(/^\d{9}$/)], CountryCodes.Egypt),
|
|
831
|
-
mask: { mask: makeMask(...numericInputs(9)) },
|
|
832
|
-
guidanceText: {
|
|
833
|
-
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
834
|
-
values: {
|
|
835
|
-
example: "123456789",
|
|
836
|
-
idType: "Tax Registration Number (رقم التسجيل الضريبي)"
|
|
837
|
-
}
|
|
838
|
-
}
|
|
839
|
-
},
|
|
840
|
-
[CountryCodes.Estonia]: {
|
|
841
|
-
label: "taxInformationNumber__ET_Individual",
|
|
842
|
-
validators: mapValidators([validatePatternOnBlur(/^\d{11}$/)], CountryCodes.Estonia),
|
|
843
|
-
mask: { mask: makeMask(...numericInputs(11)) },
|
|
844
|
-
guidanceText: {
|
|
845
|
-
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
846
|
-
values: {
|
|
847
|
-
example: "32708101201",
|
|
848
|
-
idType: "Isikukood"
|
|
849
|
-
}
|
|
850
|
-
}
|
|
851
|
-
},
|
|
852
|
-
[CountryCodes.Finland]: {
|
|
853
|
-
label: "taxInformationNumber__FI",
|
|
854
|
-
validators: mapValidators([validatePatternOnBlur(/^\d{6}[+\-A]\d{3}[0-9A-Y]$/)], CountryCodes.Finland),
|
|
855
|
-
mask: {
|
|
856
|
-
mask: makeMask(...numericInputs(6), {
|
|
857
|
-
type: "input",
|
|
858
|
-
allow: /[+\-A]/
|
|
859
|
-
}, ...numericInputs(3), {
|
|
860
|
-
type: "input",
|
|
861
|
-
allow: /[0-9A-Y]/
|
|
862
|
-
}),
|
|
863
|
-
transformOnType: uppercase
|
|
864
|
-
},
|
|
865
|
-
guidanceText: {
|
|
866
|
-
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
867
|
-
values: {
|
|
868
|
-
example: "131052-308T",
|
|
869
|
-
idType: "Henkilötunnus"
|
|
870
|
-
}
|
|
871
|
-
}
|
|
872
|
-
},
|
|
873
|
-
[CountryCodes.France]: {
|
|
874
|
-
label: "taxInformationNumber__FR",
|
|
875
|
-
validators: mapValidators([validatePatternOnBlur(/^\s*(\d\s*){13}$/)], CountryCodes.France),
|
|
876
|
-
mask: { mask: makeMask(...numericInputs(2), spacer, ...numericInputs(2), spacer, ...numericInputs(3), spacer, ...numericInputs(3), spacer, ...numericInputs(3)) },
|
|
877
|
-
guidanceText: {
|
|
878
|
-
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
879
|
-
values: {
|
|
880
|
-
example: "30 23 217 600 053",
|
|
881
|
-
idType: "Numéro SPI"
|
|
882
|
-
}
|
|
883
|
-
}
|
|
884
|
-
},
|
|
885
|
-
[CountryCodes.Germany]: ({ taxIdNumberType }) => {
|
|
886
|
-
switch (taxIdNumberType) {
|
|
887
|
-
case "IDNR": return {
|
|
888
|
-
label: "taxInformationNumber__DE_Individual",
|
|
889
|
-
validators: mapValidators([validatePatternOnBlur(/^\d{11}$/)], CountryCodes.Germany),
|
|
890
|
-
mask: { mask: makeMask(...numericInputs(11)) },
|
|
891
|
-
guidanceText: {
|
|
892
|
-
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
893
|
-
values: {
|
|
894
|
-
example: "26954371827",
|
|
895
|
-
idType: "IdNr"
|
|
896
|
-
}
|
|
897
|
-
}
|
|
898
|
-
};
|
|
899
|
-
default: return {
|
|
900
|
-
label: "taxInformationNumber__DE",
|
|
901
|
-
validators: mapValidators([validatePatternOnBlur(/^\d{10}$|^\d{11}$|^\d{13}$/)], CountryCodes.Germany),
|
|
902
|
-
mask: { mask: makeMask(...numericInputs(10), ...numericInputs(3, true)) },
|
|
903
|
-
guidanceText: {
|
|
904
|
-
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
905
|
-
values: {
|
|
906
|
-
example: "14310260208",
|
|
907
|
-
idType: "Steuernummer"
|
|
908
|
-
}
|
|
909
|
-
}
|
|
910
|
-
};
|
|
911
|
-
}
|
|
912
|
-
},
|
|
913
|
-
[CountryCodes.Gibraltar]: {
|
|
914
|
-
label: "taxpayerReferenceNumber",
|
|
915
|
-
validators: mapValidators([validatePatternOnBlur(/^\d{1,7}$/)], CountryCodes.Gibraltar),
|
|
916
|
-
mask: { mask: makeMask(...numericInputs(1), ...numericInputs(6, true)) },
|
|
917
|
-
guidanceText: {
|
|
918
|
-
key: "enterAMaximumOfNDigitsForExample",
|
|
919
|
-
values: {
|
|
920
|
-
maxDigits: "7",
|
|
921
|
-
example: "123456"
|
|
922
|
-
}
|
|
923
|
-
}
|
|
924
|
-
},
|
|
925
|
-
[CountryCodes.Greece]: {
|
|
926
|
-
label: "taxInformationNumber__GR",
|
|
927
|
-
validators: mapValidators([validatePatternOnBlur(/^\d{9}$/)], CountryCodes.Greece),
|
|
928
|
-
mask: { mask: makeMask(...numericInputs(9)) },
|
|
929
|
-
guidanceText: {
|
|
930
|
-
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
931
|
-
values: {
|
|
932
|
-
example: "244709851",
|
|
933
|
-
idType: "AFM"
|
|
934
|
-
}
|
|
935
|
-
}
|
|
936
|
-
},
|
|
937
|
-
[CountryCodes.Guernsey]: ({ taxIdNumberType }) => {
|
|
938
|
-
switch (taxIdNumberType) {
|
|
939
|
-
case "TIN_GG": return {
|
|
940
|
-
label: "nationalInsuranceNumber",
|
|
941
|
-
validators: mapValidators([validatePatternOnBlur(/^GY\d{6}[A-D]$/)], CountryCodes.Guernsey),
|
|
942
|
-
mask: {
|
|
943
|
-
mask: makeMask(...nonInputs("GY", { includeInValue: true }), spacer, ...numericInputs(2), spacer, ...numericInputs(2), spacer, ...numericInputs(2), spacer, {
|
|
944
|
-
type: "input",
|
|
945
|
-
allow: /[A-D]/
|
|
946
|
-
}),
|
|
947
|
-
transformOnType: uppercase
|
|
948
|
-
},
|
|
949
|
-
guidanceText: {
|
|
950
|
-
key: "enterTheRemainingNCharactersForExample",
|
|
951
|
-
values: {
|
|
952
|
-
numChars: "7",
|
|
953
|
-
example: "GY 12 34 56 A"
|
|
954
|
-
}
|
|
955
|
-
}
|
|
956
|
-
};
|
|
957
|
-
default: return {
|
|
958
|
-
label: "taxInformationNumber",
|
|
959
|
-
mask: businessRegistrationNumberMasks[CountryCodes.Guernsey].default,
|
|
960
|
-
validators: mapValidators([validatePatternOnBlur(businessRegistrationNumberPatterns[CountryCodes.Guernsey].default)], CountryCodes.Guernsey),
|
|
961
|
-
guidanceText: {
|
|
962
|
-
key: "enterAMaximumOfNDigitsForExample",
|
|
963
|
-
values: {
|
|
964
|
-
maxDigits: "9",
|
|
965
|
-
example: "123456"
|
|
966
|
-
}
|
|
967
|
-
}
|
|
968
|
-
};
|
|
969
|
-
}
|
|
970
|
-
},
|
|
971
|
-
[CountryCodes.HongKong]: ({ taxIdNumberType }) => {
|
|
972
|
-
switch (taxIdNumberType) {
|
|
973
|
-
case "HKID": return {
|
|
974
|
-
label: "taxInformationNumber__HK_Individual",
|
|
975
|
-
validators: mapValidators([validatePatternOnBlur(/^[A-Z]{1,2}[0-9]{6}[A-Z0-9]$/)], CountryCodes.HongKong),
|
|
976
|
-
mask: {
|
|
977
|
-
mask: makeMask(...alphaInputs(1), ...alphaInputs(1, true), ...numericInputs(6), ...nonInputs("(", { displayEagerly: false }), ...alphanumericInputs(1), ...nonInputs(")", { displayEagerly: true })),
|
|
978
|
-
transformOnType: uppercase
|
|
979
|
-
},
|
|
980
|
-
guidanceText: {
|
|
981
|
-
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
982
|
-
values: {
|
|
983
|
-
example: "A123456(7)",
|
|
984
|
-
idType: "Hong Kong Identity Card Number (HKID)"
|
|
985
|
-
}
|
|
986
|
-
}
|
|
987
|
-
};
|
|
988
|
-
default: return {
|
|
989
|
-
label: "taxInformationNumber__HK",
|
|
990
|
-
validators: mapValidators([validatePatternOnBlur(/^\d{8}$/)], CountryCodes.HongKong),
|
|
991
|
-
mask: { mask: makeMask(...numericInputs(8)) },
|
|
992
|
-
guidanceText: {
|
|
993
|
-
key: "enterNDigitsForExample",
|
|
994
|
-
values: {
|
|
995
|
-
numDigits: "8",
|
|
996
|
-
example: "70569713"
|
|
997
|
-
}
|
|
998
|
-
}
|
|
999
|
-
};
|
|
1000
|
-
}
|
|
1001
|
-
},
|
|
1002
|
-
[CountryCodes.Hungary]: {
|
|
1003
|
-
label: "taxInformationNumber__HU",
|
|
1004
|
-
validators: mapValidators([validatePatternOnBlur(/^\d{10}$/)], CountryCodes.Hungary),
|
|
1005
|
-
mask: { mask: makeMask(...numericInputs(10)) },
|
|
1006
|
-
guidanceText: {
|
|
1007
|
-
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
1008
|
-
values: {
|
|
1009
|
-
example: "8123456789",
|
|
1010
|
-
idType: "Adóazonosító jel"
|
|
1011
|
-
}
|
|
1012
|
-
}
|
|
1013
|
-
},
|
|
1014
|
-
[CountryCodes.Iceland]: {
|
|
1015
|
-
label: "taxInformationNumber__IS",
|
|
1016
|
-
validators: mapValidators([validatePatternOnBlur(/^\d{10}$/)], CountryCodes.Iceland),
|
|
1017
|
-
mask: { mask: makeMask(...numericInputs(6), ...nonInputs("-"), ...numericInputs(4)) },
|
|
1018
|
-
guidanceText: {
|
|
1019
|
-
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
1020
|
-
values: {
|
|
1021
|
-
example: "120585-1234",
|
|
1022
|
-
idType: "Kennitala"
|
|
1023
|
-
}
|
|
1024
|
-
}
|
|
1025
|
-
},
|
|
1026
|
-
[CountryCodes.Ireland]: ({ taxIdNumberType }) => {
|
|
1027
|
-
switch (taxIdNumberType) {
|
|
1028
|
-
case "PERSONAL_PUBLIC_SERVICE_NUMBER": return {
|
|
1029
|
-
label: "taxInformationNumber__IE_Individual",
|
|
1030
|
-
validators: mapValidators([validatePatternOnBlur(/^\d{7}[A-Z]$|^\d{7}[A-Z]{2}$/)], CountryCodes.Ireland),
|
|
1031
|
-
mask: {
|
|
1032
|
-
mask: makeMask(...numericInputs(7), ...alphaInputs(1), ...alphaInputs(1, true)),
|
|
1033
|
-
transformOnType: uppercase
|
|
1034
|
-
},
|
|
1035
|
-
guidanceText: {
|
|
1036
|
-
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
1037
|
-
values: {
|
|
1038
|
-
example: "1234567T",
|
|
1039
|
-
idType: "Personal Public Service Number"
|
|
1040
|
-
}
|
|
1041
|
-
}
|
|
1042
|
-
};
|
|
1043
|
-
default: return {
|
|
1044
|
-
label: "trnNumber",
|
|
1045
|
-
validators: mapValidators([validatePatternOnBlur(/^\d{7}[A-Z]$|^\d{7}[A-Z]{2}$/)], CountryCodes.Ireland),
|
|
1046
|
-
mask: {
|
|
1047
|
-
mask: makeMask(...numericInputs(7), ...alphaInputs(1), ...alphaInputs(1, true)),
|
|
1048
|
-
transformOnType: uppercase
|
|
1049
|
-
},
|
|
1050
|
-
guidanceText: {
|
|
1051
|
-
key: "enterXDigitsThenXToYLettersForExample",
|
|
1052
|
-
values: {
|
|
1053
|
-
numDigits: "7",
|
|
1054
|
-
minLetters: "1",
|
|
1055
|
-
maxLetters: "2",
|
|
1056
|
-
example: "1497955KA"
|
|
1057
|
-
}
|
|
1058
|
-
}
|
|
1059
|
-
};
|
|
1060
|
-
}
|
|
1061
|
-
},
|
|
1062
|
-
[CountryCodes.India]: {
|
|
1063
|
-
label: "taxInformationNumber__IN",
|
|
1064
|
-
validators: mapValidators([validatePatternOnBlur(/^[A-Z]{5}\d{4}[A-Z]$/)], CountryCodes.India),
|
|
1065
|
-
mask: {
|
|
1066
|
-
mask: makeMask(...alphaInputs(5), ...numericInputs(4), ...alphaInputs(1)),
|
|
1067
|
-
transformOnType: uppercase
|
|
1068
|
-
},
|
|
1069
|
-
guidanceText: {
|
|
1070
|
-
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
1071
|
-
values: {
|
|
1072
|
-
example: "ABCDE1234F",
|
|
1073
|
-
idType: "Permanent Account Number (PAN)"
|
|
1074
|
-
}
|
|
1075
|
-
}
|
|
1076
|
-
},
|
|
1077
|
-
[CountryCodes.Israel]: {
|
|
1078
|
-
label: "taxInformationNumber__IL",
|
|
1079
|
-
validators: mapValidators([validatePatternOnBlur(/^\d{9}$/)], CountryCodes.Israel),
|
|
1080
|
-
mask: { mask: makeMask(...numericInputs(9)) },
|
|
1081
|
-
guidanceText: {
|
|
1082
|
-
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
1083
|
-
values: {
|
|
1084
|
-
example: "123456782",
|
|
1085
|
-
idType: "Identity Number (Mispar Zehut / מספר זהות)"
|
|
1086
|
-
}
|
|
1087
|
-
}
|
|
1088
|
-
},
|
|
1089
|
-
[CountryCodes.Italy]: {
|
|
1090
|
-
label: "codiceFiscale",
|
|
1091
|
-
mask: { mask: makeMask(...numericInputs(11)) },
|
|
1092
|
-
validators: mapValidators([validatePatternOnBlur(/^\d{11}$/)], CountryCodes.Italy),
|
|
1093
|
-
guidanceText: {
|
|
1094
|
-
key: "enterNDigitsForExample",
|
|
1095
|
-
values: {
|
|
1096
|
-
numDigits: "11",
|
|
1097
|
-
example: "12345678901"
|
|
1098
|
-
}
|
|
1099
|
-
}
|
|
1100
|
-
},
|
|
1101
|
-
[CountryCodes.IsleOfMan]: {
|
|
1102
|
-
label: "taxReferenceNumber",
|
|
1103
|
-
validators: mapValidators([validatePatternOnBlur(/^[HCX]\d{8}$/)], CountryCodes.IsleOfMan),
|
|
1104
|
-
mask: {
|
|
1105
|
-
mask: makeMask({
|
|
1106
|
-
type: "input",
|
|
1107
|
-
allow: /[HCX]/
|
|
1108
|
-
}, ...numericInputs(6), ...nonInputs(" - "), ...numericInputs(2)),
|
|
1109
|
-
transformOnType: uppercase
|
|
1110
|
-
},
|
|
1111
|
-
guidanceText: {
|
|
1112
|
-
key: "enterNCharactersForExample",
|
|
1113
|
-
values: {
|
|
1114
|
-
numChars: "9",
|
|
1115
|
-
example: "C155673-79"
|
|
1116
|
-
}
|
|
1117
|
-
}
|
|
1118
|
-
},
|
|
1119
|
-
[CountryCodes.Japan]: ({ taxIdNumberType }) => {
|
|
1120
|
-
switch (taxIdNumberType) {
|
|
1121
|
-
case "CORPORATE_NUMBER":
|
|
1122
|
-
default: return {
|
|
1123
|
-
label: "taxInformationNumber__JP",
|
|
1124
|
-
validators: mapValidators([validatePatternOnBlur(/^\d{13}$/)], CountryCodes.Japan),
|
|
1125
|
-
guidanceText: {
|
|
1126
|
-
key: "enterNDigitsForExample",
|
|
1127
|
-
values: {
|
|
1128
|
-
numDigits: "13",
|
|
1129
|
-
example: "2169151989941"
|
|
1130
|
-
}
|
|
1131
|
-
}
|
|
1132
|
-
};
|
|
1133
|
-
case "JP_MY_NUMBER": return {
|
|
1134
|
-
label: "taxInformationNumber__JP_Individual",
|
|
1135
|
-
validators: mapValidators([validatePatternOnBlur(/^\d{12}$/)], CountryCodes.Japan),
|
|
1136
|
-
mask: { mask: makeMask(...numericInputs(12)) },
|
|
1137
|
-
guidanceText: {
|
|
1138
|
-
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
1139
|
-
values: {
|
|
1140
|
-
example: "123456789012",
|
|
1141
|
-
idType: "Individual Number / My Number (マイナンバー)"
|
|
1142
|
-
}
|
|
1143
|
-
}
|
|
1144
|
-
};
|
|
1145
|
-
}
|
|
1146
|
-
},
|
|
1147
|
-
[CountryCodes.Jersey]: ({ taxIdNumberType, companyType }) => {
|
|
1148
|
-
switch (taxIdNumberType) {
|
|
1149
|
-
case "SSN": return {
|
|
1150
|
-
label: "socialSecurityNumber",
|
|
1151
|
-
validators: mapValidators([validatePatternOnBlur(/^[A-Z]{2}\d{6}[A-Z]$/)], CountryCodes.Jersey),
|
|
1152
|
-
mask: {
|
|
1153
|
-
mask: makeMask(...alphaInputs(2), ...numericInputs(6), ...alphaInputs(1)),
|
|
1154
|
-
transformOnType: uppercase
|
|
1155
|
-
},
|
|
1156
|
-
guidanceText: {
|
|
1157
|
-
key: "enterNCharactersForExample",
|
|
1158
|
-
values: {
|
|
1159
|
-
numChars: "9",
|
|
1160
|
-
example: "JY000000A"
|
|
1161
|
-
}
|
|
1162
|
-
}
|
|
1163
|
-
};
|
|
1164
|
-
default: switch (companyType) {
|
|
1165
|
-
case "soleProprietorship": return {
|
|
1166
|
-
label: "taxIdentificationNumber",
|
|
1167
|
-
validators: mapValidators([validatePatternOnBlur(/^\d{10}$/)], CountryCodes.Jersey),
|
|
1168
|
-
mask: { mask: makeMask(...numericInputs(3), ...nonInputs(" - "), ...numericInputs(3), ...nonInputs(" - "), ...numericInputs(4)) },
|
|
1169
|
-
guidanceText: {
|
|
1170
|
-
key: "enterNDigitsForExample",
|
|
1171
|
-
values: {
|
|
1172
|
-
numDigits: "10",
|
|
1173
|
-
example: "100-100-1000"
|
|
1174
|
-
}
|
|
1175
|
-
}
|
|
1176
|
-
};
|
|
1177
|
-
default: return {
|
|
1178
|
-
label: "taxIdentificationNumber",
|
|
1179
|
-
validators: mapValidators([validatePatternOnBlur(/^[A-Z]{2}\d{5}$/)], CountryCodes.Jersey),
|
|
1180
|
-
mask: {
|
|
1181
|
-
mask: makeMask(...alphaInputs(2), ...numericInputs(5)),
|
|
1182
|
-
transformOnType: uppercase
|
|
1183
|
-
},
|
|
1184
|
-
guidanceText: {
|
|
1185
|
-
key: "enterNCharactersForExample",
|
|
1186
|
-
values: {
|
|
1187
|
-
numChars: "7",
|
|
1188
|
-
example: "CC17261"
|
|
1189
|
-
}
|
|
1190
|
-
}
|
|
1191
|
-
};
|
|
1192
|
-
}
|
|
1193
|
-
}
|
|
1194
|
-
},
|
|
1195
|
-
[CountryCodes.Latvia]: {
|
|
1196
|
-
label: "taxInformationNumber__LV",
|
|
1197
|
-
validators: mapValidators([validatePatternOnBlur(/^\d{11}$/)], CountryCodes.Latvia),
|
|
1198
|
-
mask: { mask: makeMask(...numericInputs(11)) },
|
|
1199
|
-
guidanceText: {
|
|
1200
|
-
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
1201
|
-
values: {
|
|
1202
|
-
example: "32532963606",
|
|
1203
|
-
idType: "Personas kods"
|
|
1204
|
-
}
|
|
1205
|
-
}
|
|
1206
|
-
},
|
|
1207
|
-
[CountryCodes.Lithuania]: {
|
|
1208
|
-
label: "taxInformationNumber__LT",
|
|
1209
|
-
validators: mapValidators([validatePatternOnBlur(/^\d{11}$/)], CountryCodes.Lithuania),
|
|
1210
|
-
mask: { mask: makeMask(...numericInputs(11)) },
|
|
1211
|
-
guidanceText: {
|
|
1212
|
-
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
1213
|
-
values: {
|
|
1214
|
-
example: "33309240064",
|
|
1215
|
-
idType: "Asmens kodas"
|
|
1216
|
-
}
|
|
1217
|
-
}
|
|
1218
|
-
},
|
|
1219
|
-
[CountryCodes.Luxembourg]: ({ companyType }) => {
|
|
1220
|
-
switch (companyType) {
|
|
1221
|
-
case "individual": return {
|
|
1222
|
-
label: "taxInformationNumber__LU_Individual",
|
|
1223
|
-
validators: mapValidators([validatePatternOnBlur(/^\d{13}$/)], CountryCodes.Luxembourg),
|
|
1224
|
-
mask: { mask: makeMask(...numericInputs(13)) },
|
|
1225
|
-
guidanceText: {
|
|
1226
|
-
key: "enterNCharactersForExample",
|
|
1227
|
-
values: {
|
|
1228
|
-
numChars: "13",
|
|
1229
|
-
example: "1893120105732"
|
|
1230
|
-
}
|
|
1231
|
-
}
|
|
1232
|
-
};
|
|
1233
|
-
default: return {
|
|
1234
|
-
label: "taxInformationNumber__LU_Org",
|
|
1235
|
-
validators: mapValidators([validatePatternOnBlur(/^\d{11}$/)], CountryCodes.Luxembourg),
|
|
1236
|
-
mask: { mask: makeMask(...numericInputs(11)) },
|
|
1237
|
-
guidanceText: {
|
|
1238
|
-
key: "enterNCharactersForExample",
|
|
1239
|
-
values: {
|
|
1240
|
-
numChars: "11",
|
|
1241
|
-
example: "19991201001"
|
|
1242
|
-
}
|
|
1243
|
-
}
|
|
1244
|
-
};
|
|
1245
|
-
}
|
|
1246
|
-
},
|
|
1247
|
-
[CountryCodes.Malta]: ({ taxIdNumberType }) => {
|
|
1248
|
-
switch (taxIdNumberType) {
|
|
1249
|
-
case "IDENTITY_CARD_NUMBER": return {
|
|
1250
|
-
label: "taxInformationNumber__MT_Individual",
|
|
1251
|
-
validators: mapValidators([validatePatternOnBlur(/^\d{7}[A-Z]$|^\d{9}$/)], CountryCodes.Malta),
|
|
1252
|
-
mask: {
|
|
1253
|
-
mask: makeMask(...numericInputs(7), ...alphanumericInputs(2)),
|
|
1254
|
-
transformOnType: uppercase
|
|
1255
|
-
},
|
|
1256
|
-
guidanceText: {
|
|
1257
|
-
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
1258
|
-
values: {
|
|
1259
|
-
example: "1234567A",
|
|
1260
|
-
idType: "Identity card number"
|
|
1261
|
-
}
|
|
1262
|
-
}
|
|
1263
|
-
};
|
|
1264
|
-
case "UNIQUE_TAXPAYER_REFERENCE_NUMBER": return {
|
|
1265
|
-
label: "taxInformationNumber__MT_Individual_UTRN",
|
|
1266
|
-
validators: mapValidators([validatePatternOnBlur(/^\d{9}$/)], CountryCodes.Malta),
|
|
1267
|
-
mask: { mask: makeMask(...numericInputs(9)) },
|
|
1268
|
-
guidanceText: {
|
|
1269
|
-
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
1270
|
-
values: {
|
|
1271
|
-
example: "999999999",
|
|
1272
|
-
idType: "Unique taxpayer reference number"
|
|
1273
|
-
}
|
|
1274
|
-
}
|
|
1275
|
-
};
|
|
1276
|
-
default: return {
|
|
1277
|
-
label: "taxInformationNumber__MT_Org",
|
|
1278
|
-
validators: mapValidators([validatePatternOnBlur(/^\d{9}$/)], CountryCodes.Malta),
|
|
1279
|
-
mask: { mask: makeMask(...numericInputs(9)) },
|
|
1280
|
-
guidanceText: {
|
|
1281
|
-
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
1282
|
-
values: {
|
|
1283
|
-
example: "123456789",
|
|
1284
|
-
idType: "Income Tax Registration Number"
|
|
1285
|
-
}
|
|
1286
|
-
}
|
|
1287
|
-
};
|
|
1288
|
-
}
|
|
1289
|
-
},
|
|
1290
|
-
[CountryCodes.Mexico]: ({ companyType }) => {
|
|
1291
|
-
switch (companyType) {
|
|
1292
|
-
case "soleProprietorship": return {
|
|
1293
|
-
label: "taxInformationNumber__MX",
|
|
1294
|
-
validators: mapValidators([validatePatternOnBlur(/^[a-zA-Z]{3,4}\d{6}[A-Za-z0-9]{3}$/)], CountryCodes.Mexico),
|
|
1295
|
-
mask: { mask: makeMask(...alphanumericInputs(12), ...alphanumericInputs(1, true)) },
|
|
1296
|
-
guidanceText: {
|
|
1297
|
-
key: "enterXToYCharactersForExample",
|
|
1298
|
-
values: {
|
|
1299
|
-
minDigis: "12",
|
|
1300
|
-
maxDigits: "13",
|
|
1301
|
-
example: "LFM200817DGA, GOMJ850215AB3"
|
|
1302
|
-
}
|
|
1303
|
-
}
|
|
1304
|
-
};
|
|
1305
|
-
default: return {
|
|
1306
|
-
label: "taxInformationNumber__MX",
|
|
1307
|
-
validators: mapValidators([validatePatternOnBlur(/^[a-zA-Z]{3}\d{6}[A-Za-z0-9]{3}$/)], CountryCodes.Mexico),
|
|
1308
|
-
mask: { mask: makeMask(...alphaInputs(3), ...numericInputs(6), ...alphanumericInputs(3)) },
|
|
1309
|
-
guidanceText: {
|
|
1310
|
-
key: "enterNCharactersForExample",
|
|
1311
|
-
values: {
|
|
1312
|
-
numDigits: "12",
|
|
1313
|
-
example: "LFM200817DGA, MEL9507278ZA"
|
|
1314
|
-
}
|
|
1315
|
-
}
|
|
1316
|
-
};
|
|
1317
|
-
}
|
|
1318
|
-
},
|
|
1319
|
-
[CountryCodes.Netherlands]: ({ companyType }) => {
|
|
1320
|
-
switch (companyType) {
|
|
1321
|
-
case "individual": return {
|
|
1322
|
-
label: "bsnNumber",
|
|
1323
|
-
validators: mapValidators([validatePatternOnBlur(/^\d{9}$/)], CountryCodes.Netherlands),
|
|
1324
|
-
mask: { mask: makeMask(...numericInputs(9)) },
|
|
1325
|
-
guidanceText: {
|
|
1326
|
-
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
1327
|
-
values: {
|
|
1328
|
-
example: "999999999",
|
|
1329
|
-
idType: "BSN"
|
|
1330
|
-
}
|
|
1331
|
-
}
|
|
1332
|
-
};
|
|
1333
|
-
default: return {
|
|
1334
|
-
label: "rsinNumber",
|
|
1335
|
-
validators: mapValidators([validatePatternOnBlur(/^\d{9}$/)], CountryCodes.Netherlands),
|
|
1336
|
-
mask: { mask: makeMask(...numericInputs(9)) },
|
|
1337
|
-
guidanceText: {
|
|
1338
|
-
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
1339
|
-
values: {
|
|
1340
|
-
example: "811786523",
|
|
1341
|
-
idType: "RSIN"
|
|
1342
|
-
}
|
|
1343
|
-
}
|
|
1344
|
-
};
|
|
1345
|
-
}
|
|
1346
|
-
},
|
|
1347
|
-
[CountryCodes.NewZealand]: {
|
|
1348
|
-
label: "irdNumber",
|
|
1349
|
-
validators: mapValidators([validatePatternOnBlur(/^\d{8,9}$/)], CountryCodes.NewZealand),
|
|
1350
|
-
mask: { mask: makeMask(...numericInputs(8), ...numericInputs(1, true)) },
|
|
1351
|
-
guidanceText: {
|
|
1352
|
-
key: "enterXToYDigitsForExample",
|
|
1353
|
-
values: {
|
|
1354
|
-
minDigits: "8",
|
|
1355
|
-
maxDigits: "9",
|
|
1356
|
-
example: "12345678"
|
|
1357
|
-
}
|
|
1358
|
-
}
|
|
1359
|
-
},
|
|
1360
|
-
[CountryCodes.Norway]: {
|
|
1361
|
-
label: "taxInformationNumber__NO",
|
|
1362
|
-
validators: mapValidators([validatePatternOnBlur(/^\d{11}$/)], CountryCodes.Norway),
|
|
1363
|
-
mask: { mask: makeMask(...numericInputs(11)) },
|
|
1364
|
-
guidanceText: {
|
|
1365
|
-
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
1366
|
-
values: {
|
|
1367
|
-
example: "12058512345",
|
|
1368
|
-
idType: "Fødselsnummer (or D-nummer)"
|
|
1369
|
-
}
|
|
1370
|
-
}
|
|
1371
|
-
},
|
|
1372
|
-
[CountryCodes.Poland]: {
|
|
1373
|
-
label: "taxInformationNumber__PL",
|
|
1374
|
-
validators: mapValidators([validatePatternOnBlur(/^\d{11}$/)], CountryCodes.Poland),
|
|
1375
|
-
mask: { mask: makeMask(...numericInputs(11)) },
|
|
1376
|
-
guidanceText: {
|
|
1377
|
-
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
1378
|
-
values: {
|
|
1379
|
-
example: "85052312345",
|
|
1380
|
-
idType: "PESEL"
|
|
1381
|
-
}
|
|
1382
|
-
}
|
|
1383
|
-
},
|
|
1384
|
-
[CountryCodes.Portugal]: {
|
|
1385
|
-
label: "taxInformationNumber__PT",
|
|
1386
|
-
validators: mapValidators([validatePatternOnBlur(/^\d{9}$/)], CountryCodes.Portugal),
|
|
1387
|
-
mask: { mask: makeMask(...numericInputs(9)) },
|
|
1388
|
-
guidanceText: {
|
|
1389
|
-
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
1390
|
-
values: {
|
|
1391
|
-
example: "299999998",
|
|
1392
|
-
idType: "Numéro ID Civil"
|
|
1393
|
-
}
|
|
1394
|
-
}
|
|
1395
|
-
},
|
|
1396
|
-
[CountryCodes.PuertoRico]: {
|
|
1397
|
-
label: "taxInformationNumber__US",
|
|
1398
|
-
validators: mapValidators([validatePatternOnBlur(/^\d{9}$/)], CountryCodes.PuertoRico),
|
|
1399
|
-
mask: { mask: makeMask(...numericInputs(2), ...nonInputs(" - "), ...numericInputs(7)) },
|
|
1400
|
-
guidanceText: {
|
|
1401
|
-
key: "validationPleaseEnterAValidEINWithFormat",
|
|
1402
|
-
values: {
|
|
1403
|
-
format: "XX-XXXXXXX",
|
|
1404
|
-
example: "98-7654321"
|
|
1405
|
-
}
|
|
1406
|
-
}
|
|
1407
|
-
},
|
|
1408
|
-
[CountryCodes.Romania]: {
|
|
1409
|
-
label: "taxInformationNumber__RO",
|
|
1410
|
-
validators: mapValidators([validatePatternOnBlur(/^\d{13}$/)], CountryCodes.Romania),
|
|
1411
|
-
mask: { mask: makeMask(...numericInputs(13)) },
|
|
1412
|
-
guidanceText: {
|
|
1413
|
-
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
1414
|
-
values: {
|
|
1415
|
-
example: "1234567890123",
|
|
1416
|
-
idType: "Cod Numeric Personal (CNP)"
|
|
1417
|
-
}
|
|
1418
|
-
}
|
|
1419
|
-
},
|
|
1420
|
-
[CountryCodes.Singapore]: ({ taxIdNumberType }) => {
|
|
1421
|
-
switch (taxIdNumberType) {
|
|
1422
|
-
case "NRIC": return {
|
|
1423
|
-
label: "taxInformationNumber__SG_Individual",
|
|
1424
|
-
validators: mapValidators([validatePatternOnBlur(/^[A-Z]\d{7}[A-Z]$/)], CountryCodes.Singapore),
|
|
1425
|
-
mask: {
|
|
1426
|
-
mask: makeMask(...alphaInputs(1), ...numericInputs(7), ...alphaInputs(1)),
|
|
1427
|
-
transformOnType: uppercase
|
|
1428
|
-
},
|
|
1429
|
-
guidanceText: {
|
|
1430
|
-
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
1431
|
-
values: {
|
|
1432
|
-
example: "S1234567A",
|
|
1433
|
-
idType: "Tax Reference Number (NRIC / FIN)"
|
|
1434
|
-
}
|
|
1435
|
-
}
|
|
1436
|
-
};
|
|
1437
|
-
default: return {
|
|
1438
|
-
label: "gst",
|
|
1439
|
-
validators: mapValidators([validatePatternOnBlur(/^[A-Z0-9]{9,10}$/)], CountryCodes.Singapore),
|
|
1440
|
-
mask: {
|
|
1441
|
-
mask: makeMask(...alphanumericInputs(2), ...nonInputs(" - "), ...alphanumericInputs(7), ...nonInputs(" - "), ...alphanumericInputs(1)),
|
|
1442
|
-
transformOnType: uppercase
|
|
1443
|
-
},
|
|
1444
|
-
guidanceText: {
|
|
1445
|
-
key: "enterNCharactersForExample",
|
|
1446
|
-
values: {
|
|
1447
|
-
numChars: "10",
|
|
1448
|
-
example: "M212345678"
|
|
1449
|
-
}
|
|
1450
|
-
}
|
|
1451
|
-
};
|
|
1452
|
-
}
|
|
1453
|
-
},
|
|
1454
|
-
[CountryCodes.Slovakia]: ({ companyType }) => {
|
|
1455
|
-
switch (companyType) {
|
|
1456
|
-
case "individual": return {
|
|
1457
|
-
label: "taxInformationNumber__SK_Individual",
|
|
1458
|
-
validators: mapValidators([validatePatternOnBlur(/^\d{9}$|^\d{10}$|^\d{11}$|^\d{6}\/\d{3}$|^\d{6}\/\d{4}$/)], CountryCodes.Slovakia),
|
|
1459
|
-
mask: { mask: makeMask(...numericInputs(6), {
|
|
1460
|
-
type: "input",
|
|
1461
|
-
allow: /\//,
|
|
1462
|
-
optional: true
|
|
1463
|
-
}, ...numericInputs(4), ...numericInputs(1, true)) },
|
|
1464
|
-
guidanceText: {
|
|
1465
|
-
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
1466
|
-
values: {
|
|
1467
|
-
example: "7711167420",
|
|
1468
|
-
idType: "Rodne Cislo"
|
|
1469
|
-
}
|
|
1470
|
-
}
|
|
1471
|
-
};
|
|
1472
|
-
default: return {
|
|
1473
|
-
label: "taxInformationNumber__SK_Org",
|
|
1474
|
-
validators: mapValidators([validatePatternOnBlur(/^\d{10}$/)], CountryCodes.Slovakia),
|
|
1475
|
-
mask: { mask: makeMask(...numericInputs(10)) },
|
|
1476
|
-
guidanceText: {
|
|
1477
|
-
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
1478
|
-
values: {
|
|
1479
|
-
example: "2020123456",
|
|
1480
|
-
idType: "Daňové identifikačné číslo (DIČ)"
|
|
1481
|
-
}
|
|
1482
|
-
}
|
|
1483
|
-
};
|
|
1484
|
-
}
|
|
1485
|
-
},
|
|
1486
|
-
[CountryCodes.Slovenia]: ({ companyType }) => {
|
|
1487
|
-
switch (companyType) {
|
|
1488
|
-
case "individual": return {
|
|
1489
|
-
label: "taxInformationNumber__SI_Individual",
|
|
1490
|
-
validators: mapValidators([validatePatternOnBlur(/^\d{8}$/)], CountryCodes.Slovenia),
|
|
1491
|
-
mask: { mask: makeMask(...numericInputs(8)) },
|
|
1492
|
-
guidanceText: {
|
|
1493
|
-
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
1494
|
-
values: {
|
|
1495
|
-
example: "15012557",
|
|
1496
|
-
idType: "SI tax number"
|
|
1497
|
-
}
|
|
1498
|
-
}
|
|
1499
|
-
};
|
|
1500
|
-
default: return {
|
|
1501
|
-
label: "taxInformationNumber__SI_Org",
|
|
1502
|
-
validators: mapValidators([validatePatternOnBlur(/^\d{8}$/)], CountryCodes.Slovenia),
|
|
1503
|
-
mask: { mask: makeMask(...numericInputs(8)) },
|
|
1504
|
-
guidanceText: {
|
|
1505
|
-
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
1506
|
-
values: {
|
|
1507
|
-
example: "12345678",
|
|
1508
|
-
idType: "Davčna številka"
|
|
1509
|
-
}
|
|
1510
|
-
}
|
|
1511
|
-
};
|
|
1512
|
-
}
|
|
1513
|
-
},
|
|
1514
|
-
[CountryCodes.SouthAfrica]: {
|
|
1515
|
-
label: "taxInformationNumber__ZA",
|
|
1516
|
-
validators: mapValidators([validatePatternOnBlur(/^\d{10}$/)], CountryCodes.SouthAfrica),
|
|
1517
|
-
mask: { mask: makeMask(...numericInputs(10)) },
|
|
1518
|
-
guidanceText: {
|
|
1519
|
-
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
1520
|
-
values: {
|
|
1521
|
-
example: "1234567890",
|
|
1522
|
-
idType: "Income Tax Reference Number"
|
|
1523
|
-
}
|
|
1524
|
-
}
|
|
1525
|
-
},
|
|
1526
|
-
[CountryCodes.Sweden]: {
|
|
1527
|
-
label: "taxInformationNumber__SE",
|
|
1528
|
-
validators: mapValidators([validatePatternOnBlur(/^\d{10,12}$/)], CountryCodes.Sweden),
|
|
1529
|
-
mask: { mask: makeMask(...numericInputs(6), ...numericInputs(2, true), ...nonInputs("-"), ...numericInputs(4)) },
|
|
1530
|
-
guidanceText: {
|
|
1531
|
-
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
1532
|
-
values: {
|
|
1533
|
-
example: "19850523-1234",
|
|
1534
|
-
idType: "Personnummer"
|
|
1535
|
-
}
|
|
1536
|
-
}
|
|
1537
|
-
},
|
|
1538
|
-
[CountryCodes.Switzerland]: {
|
|
1539
|
-
label: "taxInformationNumber__CH",
|
|
1540
|
-
validators: mapValidators([validatePatternOnBlur(/^\d{13}$/)], CountryCodes.Switzerland),
|
|
1541
|
-
mask: { mask: makeMask(...numericInputs(3), ...nonInputs("."), ...numericInputs(4), ...nonInputs("."), ...numericInputs(4), ...nonInputs("."), ...numericInputs(2)) },
|
|
1542
|
-
guidanceText: {
|
|
1543
|
-
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
1544
|
-
values: {
|
|
1545
|
-
example: "756.1234.5678.90",
|
|
1546
|
-
idType: "AHV-Nummer / Numéro AVS / Numero AVS"
|
|
1547
|
-
}
|
|
1548
|
-
}
|
|
1549
|
-
},
|
|
1550
|
-
[CountryCodes.UnitedArabEmirates]: {
|
|
1551
|
-
label: "taxInformationNumber__AE",
|
|
1552
|
-
validators: mapValidators([validatePatternOnBlur(/^\d{15}$/)], CountryCodes.UnitedArabEmirates),
|
|
1553
|
-
mask: { mask: makeMask(...numericInputs(3), ...nonInputs("-"), ...numericInputs(4), ...nonInputs("-"), ...numericInputs(7), ...nonInputs("-"), ...numericInputs(1)) },
|
|
1554
|
-
guidanceText: {
|
|
1555
|
-
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
1556
|
-
values: {
|
|
1557
|
-
example: "784-1985-1234567-1",
|
|
1558
|
-
idType: "Emirates ID Number (رقم الهوية)"
|
|
1559
|
-
}
|
|
1560
|
-
}
|
|
1561
|
-
},
|
|
1562
|
-
[CountryCodes.UnitedKingdom]: ({ taxIdNumberType, companyType }) => {
|
|
1563
|
-
switch (companyType) {
|
|
1564
|
-
case "individual": switch (taxIdNumberType) {
|
|
1565
|
-
case "NINO": return {
|
|
1566
|
-
label: "nationalInsuranceNumber",
|
|
1567
|
-
validators: mapValidators([validatePatternOnBlur(/^[A-Z]{2}\d{6}[A-D]$/)], CountryCodes.UnitedKingdom),
|
|
1568
|
-
guidanceText: {
|
|
1569
|
-
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
1570
|
-
values: {
|
|
1571
|
-
example: "AA123456C",
|
|
1572
|
-
idType: "NINO"
|
|
1573
|
-
}
|
|
1574
|
-
}
|
|
1575
|
-
};
|
|
1576
|
-
default: return {
|
|
1577
|
-
label: "utr",
|
|
1578
|
-
validators: mapValidators([validatePatternOnBlur(/^\d{10}$/)], CountryCodes.UnitedKingdom),
|
|
1579
|
-
mask: { mask: makeMask(...numericInputs(10)) },
|
|
1580
|
-
guidanceText: {
|
|
1581
|
-
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
1582
|
-
values: {
|
|
1583
|
-
example: "7172510005",
|
|
1584
|
-
idType: "UTR"
|
|
1585
|
-
}
|
|
1586
|
-
}
|
|
1587
|
-
};
|
|
1588
|
-
}
|
|
1589
|
-
default: return {
|
|
1590
|
-
label: "utr",
|
|
1591
|
-
validators: mapValidators([validatePatternOnBlur(/^\d{10}$/)], CountryCodes.UnitedKingdom),
|
|
1592
|
-
mask: { mask: makeMask(...numericInputs(10)) },
|
|
1593
|
-
guidanceText: {
|
|
1594
|
-
key: "validationPleaseEnterAValidIdNumberWithExample",
|
|
1595
|
-
values: {
|
|
1596
|
-
example: "7172510005",
|
|
1597
|
-
idType: "UTR"
|
|
1598
|
-
}
|
|
1599
|
-
}
|
|
1600
|
-
};
|
|
1601
|
-
}
|
|
1602
|
-
},
|
|
1603
|
-
[CountryCodes.UnitedStates]: {
|
|
1604
|
-
label: "taxInformationNumber__US",
|
|
1605
|
-
validators: mapValidators([validateNotEmptyOnBlur, validatePatternOnBlur(/^\d{9}$/)], CountryCodes.UnitedStates),
|
|
1606
|
-
mask: { mask: makeMask(...numericInputs(2), ...nonInputs(" - "), ...numericInputs(7)) },
|
|
1607
|
-
guidanceText: {
|
|
1608
|
-
key: "validationPleaseEnterAValidEINWithFormat",
|
|
1609
|
-
values: {
|
|
1610
|
-
format: "XX-XXXXXXX",
|
|
1611
|
-
example: "98-7654321"
|
|
1612
|
-
}
|
|
1613
|
-
}
|
|
1614
|
-
},
|
|
1615
|
-
/**
|
|
1616
|
-
* NOT YET SUPPORTED
|
|
1617
|
-
* These are brought over from the old pattern files. We have no idea if they are accurate or not.
|
|
1618
|
-
* See https://en.wikipedia.org/wiki/VAT_identification_number
|
|
1619
|
-
*/
|
|
1620
|
-
[CountryCodes.Philippines]: { validators: mapValidators([validatePatternOnBlur(/^\d{12}$/)], CountryCodes.Philippines) }
|
|
1621
|
-
};
|
|
1622
|
-
var exemptedFromTaxDefaultFieldConfig = { [CountryCodes.Australia]: { label: "thisBusinessIsntRequiredToHaveAnABN" } };
|
|
1623
|
-
var getTaxInformationPlaceholderText = ({ country, companyType, taxIdNumberType }) => {
|
|
1624
|
-
switch (country) {
|
|
1625
|
-
case CountryCodes.Austria: return "931736581";
|
|
1626
|
-
case CountryCodes.Belgium: switch (companyType) {
|
|
1627
|
-
case "individual": return "99999999999";
|
|
1628
|
-
default: return "0123321123";
|
|
1629
|
-
}
|
|
1630
|
-
case CountryCodes.Croatia: return "94577403194";
|
|
1631
|
-
case CountryCodes.Cyprus: return "00123123T";
|
|
1632
|
-
case CountryCodes.Estonia: return "32708101201";
|
|
1633
|
-
case CountryCodes.Ethiopia: return "32708101201";
|
|
1634
|
-
case CountryCodes.Finland: return "131052-308T";
|
|
1635
|
-
case CountryCodes.France: return "30 23 217 600 053";
|
|
1636
|
-
case CountryCodes.Germany: switch (companyType) {
|
|
1637
|
-
case "individual": return "26954371827";
|
|
1638
|
-
default: return "14310260208";
|
|
1639
|
-
}
|
|
1640
|
-
case CountryCodes.Gibraltar: return "123456";
|
|
1641
|
-
case CountryCodes.Greece: return "244709851";
|
|
1642
|
-
case CountryCodes.Ireland: switch (companyType) {
|
|
1643
|
-
case "individual": return "1234567T";
|
|
1644
|
-
default: return "1497955KA";
|
|
1645
|
-
}
|
|
1646
|
-
case CountryCodes.Italy: return "12345678901";
|
|
1647
|
-
case CountryCodes.IsleOfMan: return "C155673-79";
|
|
1648
|
-
case CountryCodes.Latvia: return "32532963606";
|
|
1649
|
-
case CountryCodes.Lithuania: return "33309240064";
|
|
1650
|
-
case CountryCodes.Luxembourg: switch (companyType) {
|
|
1651
|
-
case "individual": return "1893120105732";
|
|
1652
|
-
default: return "19991201001";
|
|
1653
|
-
}
|
|
1654
|
-
case CountryCodes.Malta: switch (companyType) {
|
|
1655
|
-
case "individual": switch (taxIdNumberType) {
|
|
1656
|
-
case "UNIQUE_TAXPAYER_REFERENCE_NUMBER": return "999999999";
|
|
1657
|
-
default: return "1234567A";
|
|
1658
|
-
}
|
|
1659
|
-
default: return "999999999";
|
|
1660
|
-
}
|
|
1661
|
-
case CountryCodes.Mexico: switch (companyType) {
|
|
1662
|
-
case "soleProprietorship": return "ABCD123456AB9";
|
|
1663
|
-
default: return "ABC123456AB9";
|
|
1664
|
-
}
|
|
1665
|
-
case CountryCodes.Netherlands: switch (companyType) {
|
|
1666
|
-
case "individual": return "999999999";
|
|
1667
|
-
default: return "811786523";
|
|
1668
|
-
}
|
|
1669
|
-
case CountryCodes.Portugal: return "299999998";
|
|
1670
|
-
case CountryCodes.Slovakia: switch (companyType) {
|
|
1671
|
-
case "individual": return "7711167420";
|
|
1672
|
-
default: return "2020123456";
|
|
1673
|
-
}
|
|
1674
|
-
case CountryCodes.Slovenia: switch (companyType) {
|
|
1675
|
-
case "individual": return "15012557";
|
|
1676
|
-
default: return "12345678";
|
|
1677
|
-
}
|
|
1678
|
-
case CountryCodes.UnitedKingdom: return "7172510005";
|
|
1679
|
-
case CountryCodes.Spain: return "99999999L";
|
|
1680
|
-
case CountryCodes.PuertoRico:
|
|
1681
|
-
case CountryCodes.UnitedStates: return "11-0000000";
|
|
1682
|
-
}
|
|
1683
|
-
};
|
|
1684
|
-
//#endregion
|
|
1685
|
-
//#region src/components/Shared/fields/TaxInformationField/TaxIdNumberTypeSelector/findExistingTaxInformation.ts
|
|
1686
|
-
/**
|
|
1687
|
-
* Finds tax information for a specific country from an array of tax information objects.
|
|
1688
|
-
*
|
|
1689
|
-
* @param taxInformation - Array of tax information objects to search through
|
|
1690
|
-
* @param country - Country code to find tax information for
|
|
1691
|
-
* @returns The first matching tax information object or undefined if none found
|
|
1692
|
-
*/
|
|
1693
|
-
function findExistingTaxInformation(taxInformation, country) {
|
|
1694
|
-
return taxInformation?.find((taxId) => taxId.country === country);
|
|
1695
|
-
}
|
|
1696
|
-
//#endregion
|
|
1697
|
-
//#region src/components/Shared/fields/TaxInformationField/TaxIdNumberTypeSelector/TaxIdNumberTypeSelector.tsx
|
|
1698
|
-
function TaxIdNumberTypeSelector({ country, companyType, selected, setSelected, exemptedOptionLabel, isUsSoleProp, errorMessage }) {
|
|
1699
|
-
const { t } = useTranslation("common");
|
|
1700
|
-
const handleSelect = useCallback((selectedStr) => {
|
|
1701
|
-
const newSelected = selectedStr;
|
|
1702
|
-
if (newSelected === "exempted") {
|
|
1703
|
-
if (exemptedOptionLabel) setSelected(newSelected);
|
|
1704
|
-
return;
|
|
1705
|
-
}
|
|
1706
|
-
setSelected(newSelected);
|
|
1707
|
-
}, [exemptedOptionLabel, setSelected]);
|
|
1708
|
-
const options = useMemo(() => getTaxIdNumberSelectorOptions(country, companyType, exemptedOptionLabel), [
|
|
1709
|
-
country,
|
|
1710
|
-
companyType,
|
|
1711
|
-
exemptedOptionLabel
|
|
1712
|
-
]);
|
|
1713
|
-
useEffect(() => {
|
|
1714
|
-
if (!isUsSoleProp && !selected && options.length > 0) handleSelect(options[0].id);
|
|
1715
|
-
}, [
|
|
1716
|
-
options,
|
|
1717
|
-
selected,
|
|
1718
|
-
handleSelect,
|
|
1719
|
-
isUsSoleProp
|
|
1720
|
-
]);
|
|
1721
|
-
if (options.length <= 1) return null;
|
|
1722
|
-
return /* @__PURE__ */ jsx(Field, {
|
|
1723
|
-
el: "fieldset",
|
|
1724
|
-
name: "taxIdNumberType",
|
|
1725
|
-
label: t(($) => $["whichTaxpayerIdentificationNumberDoYouUse"]),
|
|
1726
|
-
errorMessage,
|
|
1727
|
-
children: (childProps) => /* @__PURE__ */ jsx(RadioGroup, {
|
|
1728
|
-
...childProps,
|
|
1729
|
-
name: "taxIdNumberType",
|
|
1730
|
-
items: options,
|
|
1731
|
-
value: selected,
|
|
1732
|
-
onChange: handleSelect
|
|
1733
|
-
})
|
|
1734
|
-
});
|
|
1735
|
-
}
|
|
1736
|
-
//#endregion
|
|
1737
|
-
//#region src/components/Shared/fields/TaxInformationField/utils.ts
|
|
1738
|
-
/**
|
|
1739
|
-
* Immutably upserts a TaxInformation entry for a given country within the tax information array.
|
|
1740
|
-
* - If the array doesn't exist, creates a new one with the entry.
|
|
1741
|
-
* - If the country already has an entry, replaces it in-place.
|
|
1742
|
-
* - If the country has no entry yet, appends the new entry.
|
|
1743
|
-
*/
|
|
1744
|
-
function upsertTaxInfoForCountry(taxInformation, country, newEntry) {
|
|
1745
|
-
if (!taxInformation) return [newEntry];
|
|
1746
|
-
return (taxInformation.some((t) => t.country === country) ? taxInformation : [...taxInformation, newEntry]).map((t) => t.country === country ? newEntry : t);
|
|
1747
|
-
}
|
|
1748
|
-
/**
|
|
1749
|
-
* Removes all TaxInformation entries for the given country from the array.
|
|
1750
|
-
*/
|
|
1751
|
-
function removeTaxInfoForCountry(taxInformation, country) {
|
|
1752
|
-
return taxInformation?.filter((t) => t.country !== country);
|
|
1753
|
-
}
|
|
1754
|
-
//#endregion
|
|
1755
|
-
export { mapLocalizationToJapaneseLegalNames as A, COUNTRIES_WITH_POSSIBLE_TRUSTEE_TAXID_ABSENT_V4 as C, isRegistrationNumberAbsentStateV4Scenario as D, isRegistrationExemptionAllowed as E, isUsingCompanySearch as O, COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_SOLE_PROPS as S, TAX_ID_REQUIRED_COUNTRIES_ORGANIZATION as T, COUNTRIES_THAT_DO_NOT_USE_TAX_ID_FOR_SOLE_PROP as _, exemptedFromTaxDefaultFieldConfig as a, COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER_SOLE_PROPS as b, taxInformationDefaultFieldConfig as c, getTaxIdNumberSelectorOptions as d, getValidCompanyTypesForTaxIdNumberType as f, COUNTRIES_THAT_DONT_REQUIRE_SOLE_PROP_REGISTRATION as g, COUNTRIES_THAT_DONT_REQUIRE_COMPANY_REGISTRATION as h, findExistingTaxInformation as i, mapJapaneseLegalNamesToLocalization as k, taxInformationDefaultFieldMetadata as l, COUNTRIES_REQUIRING_FINANCIAL_INFORMATION as m, upsertTaxInfoForCountry as n, exemptedFromTaxDefaultFieldMetadata as o, taxIdNumberOptions as p, TaxIdNumberTypeSelector as r, getTaxInformationPlaceholderText as s, removeTaxInfoForCountry as t, getTaxIdNumberOptions as u, COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT as v, REGISTRATION_NUMBER_EXEMPTION_RULES as w, COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_COMPANIES as x, COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER as y };
|