@adyen/kyc-components 4.23.0 → 4.24.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 +35 -0
- package/dist/AcceptTermsOfServiceWorkflow-C3JrMbt5.js +28 -0
- package/dist/Accordion-Dgdxfe-d.js +112 -0
- package/dist/AccountSetupRejected-D63dyojj.js +19 -0
- package/dist/AdaptiveWorkflow-XhWdnJv-.js +33 -0
- package/dist/AdaptiveWorkflowComponent-pMWy1Vig.js +166 -0
- package/dist/AddressFields-BC3QHs2u.js +468 -0
- package/dist/Alert-Cc7p0N5h.js +172 -0
- package/dist/AnalyticsContext-CpimDlw4.js +21 -0
- package/dist/Avatar-oTPu6Ejy.js +54 -0
- package/dist/BusinessFinancingDropin-CxHK6KY3.js +1870 -0
- package/dist/BusinessFinancingPage-teAAjQl8.js +89 -0
- package/dist/BusinessRegistrationNumberField-DKka8aVU.js +103 -0
- package/dist/BusinessRegistrationNumberFieldGroup-Df6_sDA0.js +173 -0
- package/dist/BusinessTypeSelectionPage-BETJH6LZ.js +457 -0
- package/dist/Button-DPJ1k02w.js +108 -0
- package/dist/Checkbox-qfdF12cF.js +60 -0
- package/dist/ComponentGroup-SozxzKWw.js +32 -0
- package/dist/Confirm-DoN9R9Z3.js +77 -0
- package/dist/ConstitutionalDocument-Bxsr1hQb.js +1229 -0
- package/dist/ContactDetails-CiWftLi4.js +516 -0
- package/dist/ContextGuidance-BQPwRscq.js +29 -0
- package/dist/ContractViewer-CG9UNGz1.js +1030 -0
- package/dist/CountryField-DT6-Jr_b.js +38 -0
- package/dist/Currency-oeXHRWzy.js +211 -0
- package/dist/CustomerSupport-D0bE0zga.js +141 -0
- package/dist/DataConflictsModal-CCaMgguu.js +238 -0
- package/dist/DebugModal-Cvp7_Z-i.js +456 -0
- package/dist/DecisionMakerDetails-Bbb_8up2.js +569 -0
- package/dist/DecisionMakerDetailsPage-BDTMzs1X.js +121 -0
- package/dist/DecisionMakers-maoFXpGe.js +594 -0
- package/dist/Dropzone-ttbRg2LI.js +250 -0
- package/dist/EmbeddedStatus-CYd2p4sP.js +129 -0
- package/dist/EndStateLayout-zZPm8S5M.js +83 -0
- package/dist/EntityAssociation-C2_Xuvf5.js +163 -0
- package/dist/ErrorPanel-D4JNFkvi.js +205 -0
- package/dist/Field-DwDJQVSS.js +154 -0
- package/dist/FormFlow.module-DqMxjYHl.js +20 -0
- package/dist/GlobalEntryModal-CLoPJXFE.js +1203 -0
- package/dist/GlobalEntryPage-DNPSSZ3M.js +78 -0
- package/dist/Header-DVLlJ6we.js +93 -0
- package/dist/Icon-4XR6gZzk.js +175 -0
- package/dist/IdentityNumber-3V6ZqvHB.js +540 -0
- package/dist/IdentityNumberFieldGroup-CAjlgTWn.js +57 -0
- package/dist/IdentityScreeningWorkflow-CBStT1hs.js +307 -0
- package/dist/Image-Bn_Yyuof.js +33 -0
- package/dist/IndividualDropin-0t7Oj71F.js +4175 -0
- package/dist/IndustryCodeFieldGroup-C3Zro2ds.js +189 -0
- package/dist/InputDate-Bq3Sb-ZW.js +211 -0
- package/dist/InputText-CFDEmEtp.js +119 -0
- package/dist/Introduction-z2SqIq1W.js +326 -0
- package/dist/InvitedDecisionMakerComponent-CZOVc-t9.js +481 -0
- package/dist/JpAddressFields-F1YCOcbO.js +288 -0
- package/dist/LandingLayout-BsIoIFzs.js +76 -0
- package/dist/LegalCompanyNameField-Cosyjk52.js +108 -0
- package/dist/LegalName-CtqIpsfy.js +33 -0
- package/dist/LegalRepresentativeDetailsPage-DwIARCpj.js +73 -0
- package/dist/Link-CvYhseSD.js +32 -0
- package/dist/ListItem-CYTpdOMa.js +70 -0
- package/dist/Loader-BVtlpTeo.js +92 -0
- package/dist/LoaderWrapper-Dc88hY-P.js +34 -0
- package/dist/MaybeModal-C4ySaA8A.js +24 -0
- package/dist/Modal-CHES6970.js +109 -0
- package/dist/Name-CdCsijr5.js +61 -0
- package/dist/NewSummary-D55f70wB.js +73 -0
- package/dist/NodeRenderer-B3G7pvjG.js +185 -0
- package/dist/PatriotActDisclosure-DqUZeLms.js +266 -0
- package/dist/PayoutDetailsDropin-LKMpfono.js +4104 -0
- package/dist/PayoutDetailsPage-KNHCeXgk.js +69 -0
- package/dist/ProgressBar-DWFxLMUA.js +38 -0
- package/dist/RadioGroup-Bf3DlQnZ.js +47 -0
- package/dist/RadioWithLabel-DQIOEYpF.js +45 -0
- package/dist/Review-CS_-zAlg.js +99 -0
- package/dist/RootBusinessDetailsPage-1z2_FAb6.js +67 -0
- package/dist/RootBusinessLinesPage-BgbkJaW8.js +1464 -0
- package/dist/RootIndividualDetailsPage-DA4hh_gc.js +82 -0
- package/dist/Select-phAxjMBQ.js +782 -0
- package/dist/SignPCIComponent-tBnZMn1u.js +373 -0
- package/dist/SingpassSelection-B6_DsZtn.js +156 -0
- package/dist/SoleProprietorshipPage-2s1kA9ZV.js +69 -0
- package/dist/SourceOfFundsPage-CTjUdOWK.js +2800 -0
- package/dist/SourceOfFundsWorkflow-BZabOpi_.js +28 -0
- package/dist/StateContext-B2_Pqd_y.js +9 -0
- package/dist/StateField-BpMwetvd.js +55 -0
- package/dist/Step-C6XxGAda.js +191 -0
- package/dist/StructuredList-nPasiuLi.js +56 -0
- package/dist/Summary-DM31WxLr.js +235 -0
- package/dist/Task-DwGA1eXE.js +129 -0
- package/dist/TaskGroup-T594JSYM.js +46 -0
- package/dist/TaskListItem-Dx3hKOqG.js +123 -0
- package/dist/TaskStepperContextProvider-DdcsqXT7.js +26 -0
- package/dist/TaskVerificationStatus-DEXk_ndE.js +125 -0
- package/dist/TaxInformationField-CV7SpMH1.js +242 -0
- package/dist/TaxInformationFieldGroup-DI2LzuNr.js +290 -0
- package/dist/TaxReportingDropin-xYwJ-ju7.js +480 -0
- package/dist/TaxReportingWorkflow-BHyHgiI-.js +28 -0
- package/dist/TermsOfServiceManagement-CNQ4J5Gn.js +644 -0
- package/dist/TextArea-qGEo3PFG.js +81 -0
- package/dist/TileGroup-D1-M64Ul.js +172 -0
- package/dist/ToastContext-B_wd2IY2.js +13 -0
- package/dist/ToastContextProvider-DjYKMflX.js +103 -0
- package/dist/TrustDetailsPage-Byj68n3F.js +1172 -0
- package/dist/TrustMemberCompanyPage-Bcz4Ql7s.js +108 -0
- package/dist/TrustMemberIndividualPage-D6CgWF88.js +108 -0
- package/dist/TrustMemberRoleAndTypePage-IUp5FVRW.js +937 -0
- package/dist/TrustMembersOverview-7EoKoSMg.js +453 -0
- package/dist/UboTaskItem-BmcGj5_U.js +115 -0
- package/dist/UnincorporatedPartnershipIndividualPage-BKpJDhhU.js +78 -0
- package/dist/UnincorporatedPartnershipMemberCompanyPage-D8VliL0i.js +78 -0
- package/dist/UnincorporatedPartnershipMemberRoleAndTypePage-D00bHhyf.js +256 -0
- package/dist/UnincorporatedPartnershipMembersOverview-Dw5IMSkd.js +160 -0
- package/dist/VerificationErrorAlert-CixajVtq.js +38 -0
- package/dist/Workflow-CWzMRGHX.js +228 -0
- package/dist/_rolldown_dynamic_import_helper-sGNwd-kR.js +14 -0
- package/dist/accountHolderUtils-CAu4V0ed.js +43 -0
- package/dist/adyen-business-financing.js +38 -37
- package/dist/adyen-individual-configuration.js +65 -65
- package/dist/adyen-individual-status.js +35 -34
- package/dist/adyen-invited-decision-maker.js +3 -3
- package/dist/adyen-onboarding.js +109 -101
- package/dist/adyen-terms-of-service-management.js +3 -3
- package/dist/adyen-terms-of-service-status.js +9 -8
- package/dist/adyen-transfer-instrument-configuration.js +62 -61
- package/dist/adyen-transfer-instrument-management.js +76 -70
- package/dist/adyen-verification-status.js +10 -8
- package/dist/arrow-right-D2hul7WG.js +20 -0
- package/dist/bafinUtils-DDrD6bfK.js +96 -0
- package/dist/bag-CRRS1aow.js +20 -0
- package/dist/bank-BoirCLLW.js +20 -0
- package/dist/bg-BG-B0Ia8sQm.js +7 -0
- package/dist/bg-BG-B2xaZ3wB.js +7 -0
- package/dist/bg-BG-DAR7_x2a.js +7 -0
- package/dist/bg-BG-DqfAUTUt.js +7 -0
- package/dist/bg-BG-ivZjQNJZ.js +7 -0
- package/dist/bin-BOmfqfrr.js +30 -0
- package/dist/birthDateUtils-D6uk7zwm.js +84 -0
- package/dist/businessRegistrationNumberPatterns-A08SLm03.js +982 -0
- package/dist/capital-DTjbiurV.js +23 -0
- package/dist/cash-stack-7KpYpBek.js +33 -0
- package/dist/certificate-BPuoJ6Ip.js +23 -0
- package/dist/checkmark-BiSLf8M1.js +20 -0
- package/dist/checkmark-circle-Ams7bSve.js +28 -0
- package/dist/checkmark-circle-fill-_p4ss4ac.js +30 -0
- package/dist/checkmark-small-3bw4ftPV.js +20 -0
- package/dist/chevron-down-GgZawvoy.js +20 -0
- package/dist/chevron-left-TeZTTvo5.js +20 -0
- package/dist/chevron-right-Cg8XlTxx.js +20 -0
- package/dist/chevron-up-COQUTli0.js +20 -0
- package/dist/circle-CypWzg83.js +30 -0
- package/dist/circle-small-filled-DfdK2A35.js +20 -0
- package/dist/clock-DmfGJ2r9.js +28 -0
- package/dist/coins-CBvbB8_X.js +30 -0
- package/dist/constants-C8yo0_RA.js +233 -0
- package/dist/contract-D1_RJ_xh.js +20 -0
- package/dist/countries-BGMTpyJv.js +41 -0
- package/dist/country-BEZkohEO.js +25 -0
- package/dist/cross-BORHADVQ.js +20 -0
- package/dist/cross-circle-fill-CUXdo1x-.js +30 -0
- package/dist/cross-circle-fill-small-DdoPZZeo.js +20 -0
- package/dist/cs-CZ-BwO4yrI4.js +7 -0
- package/dist/cs-CZ-CHMQYoMF.js +7 -0
- package/dist/cs-CZ-DsKlW7_D.js +7 -0
- package/dist/cs-CZ-NVntX32n.js +7 -0
- package/dist/cs-CZ-ywYpJk1F.js +7 -0
- package/dist/da-DK-BvT8Ob4A.js +7 -0
- package/dist/da-DK-BzBfkSME.js +7 -0
- package/dist/da-DK-CE7jnGea.js +7 -0
- package/dist/da-DK-DH5YNYFM.js +7 -0
- package/dist/da-DK-LPtdP8h0.js +7 -0
- package/dist/datasetUtil-BdHPWsxZ.js +45 -0
- package/dist/de-DE-C9cUCFOi.js +7 -0
- package/dist/de-DE-Cn866nnd.js +7 -0
- package/dist/de-DE-DA4LpyZI.js +7 -0
- package/dist/de-DE-DKkoZQ0X.js +7 -0
- package/dist/de-DE-DY_EJohI.js +7 -0
- package/dist/de-DE-vdy64knk.js +7 -0
- package/dist/debouncedInputEvent-Fwwp_K_-.js +54 -0
- package/dist/debugStore-Dwn1FXrh.js +9 -0
- package/dist/decision-makers-group-iEF9oKPp.js +2673 -0
- package/dist/decisionMakerRoles-C6LMC4mh.js +185 -0
- package/dist/document-1-qvV57JdS.js +20 -0
- package/dist/document-person-DiJ7M8-D.js +28 -0
- package/dist/download-Ca4w0Yfr.js +23 -0
- package/dist/dropinUtils-DTBezwYT.js +491 -0
- package/dist/edit-1-D8VhDchs.js +20 -0
- package/dist/el-GR-ChapyKa7.js +7 -0
- package/dist/el-GR-Cvms0L4K.js +7 -0
- package/dist/el-GR-D9PjIB9j.js +7 -0
- package/dist/el-GR-Ov9hqMNe.js +7 -0
- package/dist/el-GR-aelq5Q0a.js +7 -0
- package/dist/el-GR-zFv0QxMR.js +7 -0
- package/dist/en-US-B7HQdrn_.js +7 -0
- package/dist/en-US-CI7y0UEH.js +7 -0
- package/dist/en-US-C_VjFvk_.js +7 -0
- package/dist/en-US-Cz4JoU20.js +41 -0
- package/dist/en-US-DPr5RN3e.js +7 -0
- package/dist/en-US-U0d3NI20.js +7 -0
- package/dist/en-US-tFsDZf7y.js +7 -0
- package/dist/entityAssociationUtil-CY0grcyH.js +58 -0
- package/dist/error-BvgoQFEI.js +36 -0
- package/dist/es-ES-BQrdtEfn.js +7 -0
- package/dist/es-ES-BdByhG4y.js +7 -0
- package/dist/es-ES-BzlHKYJK.js +7 -0
- package/dist/es-ES-DCUvAmKI.js +7 -0
- package/dist/es-ES-DdrA8McY.js +7 -0
- package/dist/es-ES-DhkTbihW.js +7 -0
- package/dist/es-LA-3WgncmHx.js +7 -0
- package/dist/es-LA-BxtxM3Ty.js +7 -0
- package/dist/es-LA-ChRHGYJP.js +7 -0
- package/dist/es-LA-JRuDva0n.js +7 -0
- package/dist/es-LA-i7tKJmA8.js +7 -0
- package/dist/et-EE-BXY66vAz.js +7 -0
- package/dist/et-EE-D8TSvkoE.js +7 -0
- package/dist/et-EE-DOgb4q9o.js +7 -0
- package/dist/et-EE-HHgM0CfO.js +7 -0
- package/dist/et-EE-V-YOCgoh.js +7 -0
- package/dist/external-link-Dy4le-8Q.js +20 -0
- package/dist/fi-FI-B-eTv4bG.js +7 -0
- package/dist/fi-FI-CClpbvJJ.js +7 -0
- package/dist/fi-FI-CVBmM-U1.js +7 -0
- package/dist/fi-FI-DCYPQ6vS.js +7 -0
- package/dist/fi-FI-DCbhu29J.js +7 -0
- package/dist/fieldConfigurations-CZCFghnK.js +11 -0
- package/dist/form-rules-B0RwhsVw.js +284 -0
- package/dist/formFieldsUtils-CnDkgahc.js +7 -0
- package/dist/formUtils-BHgG8yQZ.js +52 -0
- package/dist/formUtils-DVDcdZsP.js +84 -0
- package/dist/formatCurrency-BetgkQKi.js +23 -0
- package/dist/formatValidationError-q_w9DTrl.js +23 -0
- package/dist/fr-FR-B-jA_cbo.js +7 -0
- package/dist/fr-FR-BIyJL6Jj.js +7 -0
- package/dist/fr-FR-BzyefnBh.js +7 -0
- package/dist/fr-FR-C1xYwHeC.js +7 -0
- package/dist/fr-FR-D0hY9V44.js +7 -0
- package/dist/fr-FR-Doo1FVx-.js +7 -0
- package/dist/genUtils-nphCwt1A.js +60 -0
- package/dist/getDefaultRegistrationNumberType-CIu4WMln.js +1056 -0
- package/dist/getFormSlice-C1ma6Xd4.js +21 -0
- package/dist/getLegalEntityCountry-BK-HHa65.js +15 -0
- package/dist/getName-DgxRqagk.js +34 -0
- package/dist/getProblemsForEntity-Bn6dXidE.js +16 -0
- package/dist/getTrustedDecisionMakers-Ta-pURcL.js +25 -0
- package/dist/getTrustedFields-BJ88GlM-.js +28 -0
- package/dist/gift-Bs_mAgul.js +20 -0
- package/dist/globalStore-WASei98w.js +418 -0
- package/dist/graph-Co0JhGiY.js +32 -0
- package/dist/graph-up-DIvH9haf.js +38 -0
- package/dist/headquarter-BESfDGKh.js +42 -0
- package/dist/hotel-Vne7G5M6.js +33 -0
- package/dist/hr-HR-6Wj5Tf60.js +7 -0
- package/dist/hr-HR-B4FRVzrd.js +7 -0
- package/dist/hr-HR-B6z7-PYE.js +7 -0
- package/dist/hr-HR-BOYktLQ2.js +7 -0
- package/dist/hr-HR-Ct_41fWV.js +7 -0
- package/dist/http-fdIO--pH.js +204 -0
- package/dist/hu-HU-B7ofWKn_.js +7 -0
- package/dist/hu-HU-Bwm4UqZz.js +7 -0
- package/dist/hu-HU-CO_7jvk9.js +7 -0
- package/dist/hu-HU-CgJ_F3l2.js +7 -0
- package/dist/hu-HU-DXK7B0r_.js +7 -0
- package/dist/image-BQM21XCk.js +23 -0
- package/dist/info-DExoPRH5.js +32 -0
- package/dist/info-filled-11KMeUso.js +32 -0
- package/dist/invalidateRootLegalEntity-BHaVREw-.js +45 -0
- package/dist/isEmpty-Uewyl-r6.js +14 -0
- package/dist/isEmptyEntity-3OHnhXqG.js +43 -0
- package/dist/it-IT-BFIW0DCO.js +7 -0
- package/dist/it-IT-CNr6PIu3.js +7 -0
- package/dist/it-IT-CQVFYSVx.js +7 -0
- package/dist/it-IT-DfGdOsTs.js +7 -0
- package/dist/it-IT-DgRuEpeD.js +7 -0
- package/dist/it-IT-tZ7dP-Ia.js +7 -0
- package/dist/ja-JP--tMJF7eu.js +7 -0
- package/dist/ja-JP-BjMyxZiN.js +7 -0
- package/dist/ja-JP-Ct54-uwM.js +7 -0
- package/dist/ja-JP-CtX9NZKD.js +7 -0
- package/dist/ja-JP-DAClbueM.js +7 -0
- package/dist/ja-JP-DOuEAOlh.js +7 -0
- package/dist/keys-Ce8YnRP2.js +20 -0
- package/dist/legalArrangementUtils-C68JdH6I.js +114 -0
- package/dist/listToRecord-DumSkYDz.js +10 -0
- package/dist/location-zRH5zJ8c.js +23 -0
- package/dist/lt-LT-BUuouq_-.js +7 -0
- package/dist/lt-LT-Cs3cvyKf.js +7 -0
- package/dist/lt-LT-DQp7UGdC.js +7 -0
- package/dist/lt-LT-DoYCfhZU.js +7 -0
- package/dist/lt-LT-DqtpAjOg.js +7 -0
- package/dist/lv-LV-BCXqSzkk.js +7 -0
- package/dist/lv-LV-BW0BscAd.js +7 -0
- package/dist/lv-LV-C3p57pZV.js +7 -0
- package/dist/lv-LV-ZmyUvPst.js +7 -0
- package/dist/lv-LV-cKvnQI3j.js +7 -0
- package/dist/mail-i1-zg-cv.js +20 -0
- package/dist/mapAddressLocalizationToJpAddressSchema-DpOIaxj6.js +26 -0
- package/dist/mapExistingFile-BkwRTTRm.js +55 -0
- package/dist/mapJpAddressSchemaToAddressLocalizations-D3VO2nhc.js +74 -0
- package/dist/mapLegalEntityToIndividualSchema-CBKR-InO.js +251 -0
- package/dist/mapScriptLocalization-BCfkZo1y.js +46 -0
- package/dist/mapTransferInstrumentToPayoutAccount-ROfaTly6.js +44 -0
- package/dist/maskHelpers-C0wnCoJl.js +719 -0
- package/dist/minus-circle-filled-CxUdRO8J.js +30 -0
- package/dist/nl-NL-B77Xr99l.js +7 -0
- package/dist/nl-NL-BUwMAW5C.js +7 -0
- package/dist/nl-NL-B_MaTF5h.js +7 -0
- package/dist/nl-NL-CePL3t7P.js +7 -0
- package/dist/nl-NL-DR5SCDAF.js +7 -0
- package/dist/nl-NL-DqGE4Nz5.js +7 -0
- package/dist/no-NO-BePxpMbr.js +7 -0
- package/dist/no-NO-DGCfRiU8.js +7 -0
- package/dist/no-NO-DdI2BI_e.js +7 -0
- package/dist/no-NO-P8SZ1t-h.js +7 -0
- package/dist/no-NO-oL1v_O9N.js +7 -0
- package/dist/options-horizontal-D86T_xAF.js +30 -0
- package/dist/partner-Dje0ykF6.js +30 -0
- package/dist/patternValidators-DsrZkuOO.js +73 -0
- package/dist/pay-by-link-plane-DAiddPu6.js +33 -0
- package/dist/payout-DKiGv3F9.js +38 -0
- package/dist/pdf-CC8vqpTo.js +22320 -0
- package/dist/pdf.worker.min-CdKJICZZ.js +75124 -0
- package/dist/person-DgALGIIz.js +23 -0
- package/dist/pl-PL-6Q3Ue3F5.js +7 -0
- package/dist/pl-PL-B5PBixAB.js +7 -0
- package/dist/pl-PL-BCkw9R28.js +7 -0
- package/dist/pl-PL-BY6KUTBO.js +7 -0
- package/dist/pl-PL-D-s-JI6X.js +7 -0
- package/dist/plus-DlQKP2C9.js +20 -0
- package/dist/plus-circle-filled-BntUOVIJ.js +30 -0
- package/dist/processCapabilities-CWE5UFt8.js +870 -0
- package/dist/processValidationErrors-CjsNfiRK.js +62 -0
- package/dist/pt-BR-B_XHiDCU.js +7 -0
- package/dist/pt-BR-BvNR77Ru.js +7 -0
- package/dist/pt-BR-CrLCMcSz2.js +7 -0
- package/dist/pt-BR-MrUfWW4a.js +7 -0
- package/dist/pt-BR-vwt2tE7H.js +7 -0
- package/dist/pt-PT-B17is9TY.js +7 -0
- package/dist/pt-PT-BZNPd_Tb.js +7 -0
- package/dist/pt-PT-DDYnXawl.js +7 -0
- package/dist/pt-PT-DhF8wwYH.js +7 -0
- package/dist/pt-PT-Du2K44jh.js +7 -0
- package/dist/pt-PT-qAzFgjvF.js +7 -0
- package/dist/recurring-DZgT_ekJ.js +23 -0
- package/dist/resolveEnvironment-B3aGkYuN.js +1000 -0
- package/dist/revenue-accelerate-aMLYFVW6.js +30 -0
- package/dist/ro-RO-B3Fcn95o.js +7 -0
- package/dist/ro-RO-BA5GhaCE.js +7 -0
- package/dist/ro-RO-BmHe4pZ-.js +7 -0
- package/dist/ro-RO-DChAv29z.js +7 -0
- package/dist/ro-RO-W1t7Mnbn.js +7 -0
- package/dist/roleMetadata-Dm1FVuPT.js +56 -0
- package/dist/save-uDNye08N.js +20 -0
- package/dist/search-0OS6oe8N.js +30 -0
- package/dist/show-BWoS9-Y1.js +23 -0
- package/dist/sk-SK-BeNF_m_j.js +7 -0
- package/dist/sk-SK-C9CiQLgt.js +7 -0
- package/dist/sk-SK-CISCMQ2G.js +7 -0
- package/dist/sk-SK-CcoUWnJ4.js +7 -0
- package/dist/sk-SK-D10Kpths.js +7 -0
- package/dist/sl-SI-Bxu4m_5e.js +7 -0
- package/dist/sl-SI-DCMml0lX.js +7 -0
- package/dist/sl-SI-DmYiMn91.js +7 -0
- package/dist/sl-SI-DxomO9JQ.js +7 -0
- package/dist/sl-SI-Qe4hzx5a.js +7 -0
- package/dist/solution-payments-BMal7uJZ.js +20 -0
- package/dist/store-N7ZA4FKy.js +20 -0
- package/dist/style.css +2341 -2252
- package/dist/styles-DYaAeu4q.js +2337 -2248
- package/dist/summaryItem-uDWmtYtt.js +16 -0
- package/dist/sv-SE-B-CXDaXM.js +7 -0
- package/dist/sv-SE-BzPNBHOj.js +7 -0
- package/dist/sv-SE-C9SgeFv6.js +7 -0
- package/dist/sv-SE-DESDUMyu.js +7 -0
- package/dist/sv-SE-Dq6oK7B5.js +7 -0
- package/dist/sv-SE-issaSBHd.js +7 -0
- package/dist/terminal-1-0RlQpbUC.js +30 -0
- package/dist/toFullWidth-Dgy4X4i8.js +52 -0
- package/dist/translation-DbATp_35.js +684 -0
- package/dist/trustUtil-5cyXiJnX.js +98 -0
- package/dist/types/adaptiveWorkflow/components/Fields/TaxInformation/TaxIdTypeSelectorField.d.ts +1 -2
- package/dist/types/adaptiveWorkflow/components/Fields/TaxInformation/TaxInformationFieldGroup.d.ts +1 -2
- package/dist/types/adaptiveWorkflow/utils/utils.d.ts +1 -1
- package/dist/types/api/configurations/useScenarios.d.ts +1 -1
- package/dist/types/api/createLegalEntity/useCreateLegalEntity.d.ts +12 -12
- package/dist/types/api/documentValidation/useDocumentValidate.d.ts +2 -2
- package/dist/types/api/documents/documents.types.d.ts +9 -0
- package/dist/types/api/documents/useCreateDocument.d.ts +10 -3
- package/dist/types/api/documents/useDeleteDocument.d.ts +1 -1
- package/dist/types/api/documents/useDocument.d.ts +1 -1
- package/dist/types/api/documents/useDocuments.d.ts +10 -2
- package/dist/types/api/documents/useUpdateDocument.d.ts +3 -3
- package/dist/types/api/invitedEntity/getInvitedEntityProblems.d.ts +1 -1
- package/dist/types/api/legalEntity/legalEntity.types.d.ts +32 -0
- package/dist/types/api/legalEntity/useLegalEntity.d.ts +92 -92
- package/dist/types/api/legalEntity/useUpdateLegalEntity.d.ts +14 -14
- package/dist/types/api/taskStatus/useTaskStatuses.d.ts +1 -1
- package/dist/types/api/transferInstruments/transferInstruments.types.d.ts +18 -0
- package/dist/types/api/transferInstruments/useCreateTransferInstrument.d.ts +2 -2
- package/dist/types/api/transferInstruments/useTransferInstrument.d.ts +1 -1
- package/dist/types/api/transferInstruments/useUpdateTransferInstrument.d.ts +2 -2
- package/dist/types/api/transferInstruments/useUpdateTrustedTransferInstrument.d.ts +1 -1
- package/dist/types/components/Apps/tasks/TaskList/TaskList.d.ts +1 -1
- package/dist/types/components/BankAccount/fields/BankAccountNumber/fieldConfig.d.ts +2 -0
- package/dist/types/components/BankAccount/forms/BankDocument/types.d.ts +1 -1
- package/dist/types/components/BankAccount/forms/PayoutAccount/types.d.ts +1 -1
- package/dist/types/components/BankAccount/forms/PayoutCountryDetails/types.d.ts +1 -1
- package/dist/types/components/BankAccount/forms/PayoutDetails/PayoutDetails.d.ts +1 -1
- package/dist/types/components/BankAccount/forms/PayoutDetails/types.d.ts +1 -1
- package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/AccountHolderDescriptionFragment.d.ts +1 -1
- package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/types.d.ts +1 -1
- package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/utils.d.ts +1 -1
- package/dist/types/components/BankAccount/mapping/mapPayoutAccountSchemaToApiBankAccount.d.ts +2 -2
- package/dist/types/components/BankAccount/mapping/mapPayoutDetailsToTransferInstrument.d.ts +3 -3
- package/dist/types/components/BankAccount/mapping/mapPayoutDocumentsToApiDocuments.d.ts +2 -2
- package/dist/types/components/BankAccount/mapping/mapTransferInstrumentToPayoutAccount.d.ts +1 -1
- package/dist/types/components/BankAccount/mapping/payoutKeyMappings.d.ts +8 -4
- package/dist/types/components/BankAccount/tasks/PayoutAccount/PayoutAccountTaskListItem.d.ts +2 -2
- package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/utils.d.ts +1 -1
- package/dist/types/components/Business/hooks/useBusinessDetailsData.d.ts +1 -1
- package/dist/types/components/Business/hooks/useSubmitBusinessDetails.types.d.ts +1 -1
- package/dist/types/components/Business/mapping/businessDetails/businessDetailsKeyMappings.d.ts +4 -4
- package/dist/types/components/Business/mapping/businessDetails/mapBusinessDetailsSchemaToLegalEntity.d.ts +4 -4
- package/dist/types/components/Business/mapping/businessDetails/mapLegalEntityToBusinessDetailsSchema.d.ts +1 -1
- package/dist/types/components/Business/mapping/businessDetails/solePropBusinessDetailsKeyMappings.d.ts +4 -4
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +1 -1
- package/dist/types/components/Business/utils/buildRequiredForms.d.ts +1 -1
- package/dist/types/components/Business/utils/getAvailableCompanyStructures.d.ts +1 -2
- package/dist/types/components/Business/utils/utils.d.ts +2 -15
- package/dist/types/components/BusinessLines/tasks/types.d.ts +1 -1
- package/dist/types/components/Contract/tasks/PciDropin/types.d.ts +1 -1
- package/dist/types/components/Contract/tasks/ServiceAgreementDropin/types.d.ts +1 -1
- package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +33 -33
- package/dist/types/components/EFP/mapping/mapBusinessFinancingToLegalEntity.d.ts +2 -2
- package/dist/types/components/EFP/mapping/mapLegalEntityToBusinessFinancing.d.ts +2 -2
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/types.d.ts +3 -3
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/utils.d.ts +3 -4
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/SourceOfFundsGettingStarted/SourceOfFundsGettingStarted.d.ts +2 -3
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/SourceOfFundsUploader/SourceOfFundsUpload.d.ts +1 -1
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/types.d.ts +1 -3
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/utils.d.ts +13 -5
- package/dist/types/components/EFP/tasks/TaxReportingDropin/TaxReportingGettingStarted.d.ts +2 -2
- package/dist/types/components/EmbeddedDropins/CreateTransferInstrumentComponent/CreateTransferInstrumentComponent.d.ts +1 -1
- package/dist/types/components/EmbeddedDropins/ManageIndividualComponent/ManageIndividualComponent.d.ts +1 -1
- package/dist/types/components/EmbeddedDropins/ManageTransferInstrumentComponent/ManageTransferInstrumentComponent.d.ts +1 -1
- package/dist/types/components/EmbeddedDropins/ManageTransferInstrumentComponent/ManageTransferInstrumentOverview/ManageTransferInstrumentOverview.d.ts +1 -2
- package/dist/types/components/EmbeddedDropins/ManageTransferInstrumentComponent/ManageTransferInstrumentOverviewItem/ManageTransferInstrumentOverviewItem.d.ts +1 -2
- package/dist/types/components/EmbeddedDropins/ManageTransferInstrumentComponent/ManageTransferInstrumentOverviewItemModal/ManageTransferInstrumentOverviewItemModal.d.ts +1 -2
- package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/types.d.ts +1 -1
- package/dist/types/components/EmbeddedDropins/ViewVerificationStatus/ViewVerificationStatusComponent.d.ts +1 -1
- package/dist/types/components/GlobalEntry/companyTypeMetadata.d.ts +10 -0
- package/dist/types/components/GlobalEntry/forms/CompanyStructure/CompanyStructure.d.ts +3 -0
- package/dist/types/components/GlobalEntry/forms/CompanyStructure/types.d.ts +10 -0
- package/dist/types/components/GlobalEntry/forms/RegistrationInformation/RegistrationInformation.d.ts +1 -1
- package/dist/types/components/GlobalEntry/mapping/globalEntryKeyMapping.d.ts +15 -0
- package/dist/types/components/GlobalEntry/mapping/mapGlobalEntrySchemaToLegalEntity.d.ts +6 -0
- package/dist/types/components/GlobalEntry/mapping/mapLegalEntityToGlobalEntrySchema.d.ts +9 -0
- package/dist/types/components/GlobalEntry/rules.d.ts +1 -0
- package/dist/types/components/GlobalEntry/tasks/GlobalEntry.d.ts +1 -1
- package/dist/types/components/GlobalEntry/tasks/GlobalEntryModal.d.ts +1 -1
- package/dist/types/components/GlobalEntry/tasks/types.d.ts +2 -0
- package/dist/types/components/GlobalEntry/utils/buildRequiredForms.d.ts +16 -0
- package/dist/types/components/GlobalEntry/utils/getAvailableCompanyStructures.d.ts +12 -0
- package/dist/types/components/GlobalEntry/utils/submitGlobalEntry.d.ts +20 -0
- package/dist/types/components/GlobalEntry/utils/utils.d.ts +18 -0
- package/dist/types/components/GlobalEntry/validate.d.ts +3 -1
- package/dist/types/components/Individual/forms/BasicDetails/BasicDetails.types.d.ts +3 -3
- package/dist/types/components/Individual/forms/IdDocumentUpload/types.d.ts +1 -1
- package/dist/types/components/Individual/forms/IdNowVerificationModal/isIdNowModalOpen.d.ts +8 -8
- package/dist/types/components/Individual/forms/Individual.types.d.ts +2 -3
- package/dist/types/components/Individual/helpers/bafinUtils.d.ts +3 -4
- package/dist/types/components/Individual/helpers/findRelevantTaxInformation.d.ts +28 -0
- package/dist/types/components/Individual/helpers/hasLiveSelfieError.d.ts +11 -0
- package/dist/types/components/Individual/helpers/isManualVerificationOrExistingDoc.d.ts +13 -0
- package/dist/types/components/Individual/mapping/individualKeyMappings.d.ts +4 -4
- package/dist/types/components/Individual/mapping/mapIndividualDocumentToApiDocument.d.ts +2 -2
- package/dist/types/components/Individual/mapping/mapIndividualSchemaToLegalEntity.d.ts +2 -2
- package/dist/types/components/Individual/mapping/mapLegalEntityToIndividualSchema.d.ts +1 -1
- package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerDetails/DecisionMakerDetails.types.d.ts +1 -1
- package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerDetails/utils.d.ts +34 -10
- package/dist/types/components/Individual/tasks/DecisionMakers/getTrustedDecisionMakers.d.ts +2 -3
- package/dist/types/components/Individual/tasks/DecisionMakers/hooks/useTaskStatusWithTimeout.d.ts +1 -0
- package/dist/types/components/Individual/tasks/DecisionMakers/types.d.ts +2 -3
- package/dist/types/components/Individual/tasks/DecisionMakers/utils.d.ts +1 -1
- package/dist/types/components/Shared/EntityAssociation/types.d.ts +2 -2
- package/dist/types/components/Shared/Introduction/Introduction.d.ts +1 -1
- package/dist/types/components/Shared/Introduction/IntroductionScreen.d.ts +1 -1
- package/dist/types/components/Shared/Introduction/constants.d.ts +1 -1
- package/dist/types/components/Shared/Introduction/copy.d.ts +1 -1
- package/dist/types/components/Shared/SingpassBanner/SingpassBanner.d.ts +1 -1
- package/dist/types/components/Shared/SingpassSelection/types.d.ts +1 -1
- package/dist/types/components/Shared/devex/DebugListener/debugInfo.d.ts +1 -2
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/RegistrationNumberTypeSelector/getDefaultRegistrationNumberType.d.ts +1 -2
- package/dist/types/components/Shared/fields/TaxInformationField/TaxIdNumberTypeSelector/TaxIdNumberTypeSelector.d.ts +1 -2
- package/dist/types/components/Shared/fields/TaxInformationField/TaxIdNumberTypeSelector/findExistingTaxInformation.d.ts +10 -0
- package/dist/types/components/Shared/fields/TaxInformationField/fieldConfig.d.ts +3 -4
- package/dist/types/components/Shared/fields/TaxInformationField/taxIdNumberTypes.d.ts +107 -8
- package/dist/types/components/Shared/fields/TaxInformationField/types.d.ts +7 -6
- package/dist/types/components/Shared/fields/VatNumberField/VatNumberTypeSelector/VatNumberTypeSelector.d.ts +1 -2
- package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
- package/dist/types/components/Shared/forms/BusinessTypeSelection/types.d.ts +1 -1
- package/dist/types/components/Shared/forms/BusinessTypeSelection/useUpdateLegalEntityAndSelectAccountHolder.d.ts +1 -2
- package/dist/types/components/Shared/forms/BusinessTypeSelection/utils.d.ts +2 -4
- package/dist/types/components/Shared/forms/ConstitutionalDocument/types.d.ts +1 -1
- package/dist/types/components/Shared/forms/DocumentUpload/types.d.ts +1 -1
- package/dist/types/components/Shared/tasks/CustomerSupport/mapping/customerSupportKeyMapping.d.ts +2 -2
- package/dist/types/components/Trust/hooks/useExemptSettlor.d.ts +1 -1
- package/dist/types/components/Trust/hooks/useTrustMemberNavigation.hook.d.ts +1 -1
- package/dist/types/components/Trust/mapping/mapLegalEntityToTrust.d.ts +1 -1
- package/dist/types/components/Trust/mapping/mapTrustDocumentToApiDocument.d.ts +2 -2
- package/dist/types/components/Trust/mapping/mapTrustToLegalEntity.d.ts +2 -2
- package/dist/types/components/Trust/mapping/trustKeyMappings.d.ts +4 -4
- package/dist/types/components/Trust/mapping/trustMembers/getTrustMembers.d.ts +1 -1
- package/dist/types/components/Trust/mapping/trustMembers/mapEntityAssociationsToTrustMembers.d.ts +3 -4
- package/dist/types/components/Trust/mapping/trustMembers/mapRootLegalEntityToTrustMember.d.ts +1 -1
- package/dist/types/components/Trust/tasks/RoleAndTypeDropin/types.d.ts +1 -1
- package/dist/types/components/Trust/tasks/TrustDropin/types.d.ts +1 -1
- package/dist/types/components/Trust/tasks/TrustMembers/types.d.ts +3 -4
- package/dist/types/components/Trust/utils/addOrUpdateAssociatedTrustMember.d.ts +1 -1
- package/dist/types/components/Trust/utils/addOrUpdateUndefinedBeneficiary.d.ts +1 -1
- package/dist/types/components/Trust/utils/createExemptSettlor.d.ts +1 -1
- package/dist/types/components/Trust/utils/deleteAssociatedTrustMember.d.ts +1 -1
- package/dist/types/components/Trust/utils/deleteUndefinedBeneficiary.d.ts +1 -1
- package/dist/types/components/Trust/utils/trustUtil.d.ts +5 -6
- package/dist/types/components/Trust/utils/updateExemptSettlorName.d.ts +1 -1
- package/dist/types/components/UnincorporatedPartnership/hooks/useUnincorporatedPartnershipNavigation.d.ts +1 -2
- package/dist/types/components/UnincorporatedPartnership/mapping/mapLegalEntityToUnincorporatedPartnership.d.ts +1 -1
- package/dist/types/components/UnincorporatedPartnership/mapping/mapUnincorporatedPartnershipToLegalEntity.d.ts +2 -2
- package/dist/types/components/UnincorporatedPartnership/mapping/unincorporatedPartnershipKeyMappings.d.ts +3 -3
- package/dist/types/components/UnincorporatedPartnership/tasks/UnincorporatedPartnershipMembers/types.d.ts +1 -2
- package/dist/types/components/UnincorporatedPartnership/tasks/UnincorporatedPartnershipRoleAndType/types.d.ts +1 -2
- package/dist/types/components/UnincorporatedPartnership/utils/unincorporatedPartnershipMembers.d.ts +3 -4
- package/dist/types/components/ui/molecules/DocumentGuidance/DocumentGuidance.types.d.ts +1 -1
- package/dist/types/context/ToggleContext/types.d.ts +0 -4
- package/dist/types/core/errorMapping.d.ts +3 -4
- package/dist/types/core/models/api/accountIdentification.d.ts +5 -1
- package/dist/types/core/models/api/legal-entity-association.d.ts +0 -19
- package/dist/types/core/process-field-configurations.d.ts +4 -6
- package/dist/types/core/user-events.d.ts +2 -4
- package/dist/types/hooks/introduction/useCanSeeIntroduction.d.ts +1 -1
- package/dist/types/hooks/introduction/useIntroductionScreens.d.ts +1 -1
- package/dist/types/hooks/introduction/useShouldShowIntroduction.d.ts +1 -1
- package/dist/types/hooks/singpass/useSingpassMyInfoLogin.d.ts +1 -1
- package/dist/types/hooks/useAssociatedLegalEntity.d.ts +1 -2
- package/dist/types/hooks/useAssociatedLegalRepresentative.d.ts +1 -1
- package/dist/types/hooks/useBusinessSetup.d.ts +1 -1
- package/dist/types/hooks/useForm/types.d.ts +1 -2
- package/dist/types/hooks/useLegalEntityType.d.ts +1 -2
- package/dist/types/hooks/useScenarioConfiguration.d.ts +1 -1
- package/dist/types/router/DefaultRouteRedirect.d.ts +1 -1
- package/dist/types/router/OnboardingRouter.d.ts +1 -2
- package/dist/types/router/getDefaultTask.d.ts +1 -1
- package/dist/types/stores/globalStore/calculateTaskStatus.d.ts +3 -5
- package/dist/types/stores/globalStore/determineTaskIdentifiers.d.ts +3 -5
- package/dist/types/stores/globalStore/get-task-status.d.ts +4 -4
- package/dist/types/stores/globalStore/globalStore.d.ts +3 -5
- package/dist/types/stores/globalStore/isEmptyEntity.d.ts +1 -1
- package/dist/types/types/businessEntityType.d.ts +1 -2
- package/dist/types/types/errors/capability-problems.d.ts +5 -1
- package/dist/types/types/errors/entity-problems.d.ts +8 -5
- package/dist/types/types/form-rules.d.ts +1 -1
- package/dist/types/utils/accountHolderUtils.d.ts +1 -1
- package/dist/types/utils/addLinkedFields.d.ts +2 -2
- package/dist/types/utils/analytics/debouncedInputEvent.d.ts +4 -4
- package/dist/types/utils/analytics/getAnalyticsAssociatedEntityDetails.d.ts +2 -3
- package/dist/types/utils/analytics/getPrefilledDetails.d.ts +2 -2
- package/dist/types/utils/api/documentUtils.d.ts +21 -10
- package/dist/types/utils/api/getProblemsForEntity.d.ts +1 -1
- package/dist/types/utils/api/processCapabilities.d.ts +11 -4
- package/dist/types/utils/bankUtils.d.ts +5 -0
- package/dist/types/utils/birthDateUtils.d.ts +6 -1
- package/dist/types/utils/businessUtils.d.ts +21 -6
- package/dist/types/utils/customerSupportUtils.d.ts +2 -3
- package/dist/types/utils/decisionMakerRoles.d.ts +4 -5
- package/dist/types/utils/entityAssociationUtil.d.ts +21 -12
- package/dist/types/utils/entityStatusUtil.d.ts +1 -1
- package/dist/types/utils/getFieldsWithExistingData.d.ts +2 -2
- package/dist/types/utils/getLegalEntityCountry.d.ts +1 -1
- package/dist/types/utils/getName.d.ts +3 -3
- package/dist/types/utils/getTrustedFields.d.ts +4 -5
- package/dist/types/utils/mapping/documentGuidanceMap.d.ts +2 -2
- package/dist/types/utils/mapping/getPage.d.ts +3 -4
- package/dist/types/utils/mapping/mappingRecord.d.ts +1 -1
- package/dist/types/utils/roleMetadata.d.ts +1 -1
- package/dist/types/utils/unincorporatedParnershipUtils.d.ts +4 -4
- package/dist/types-B9zXzag-.js +18 -0
- package/dist/types-BA3bcGAv.js +58 -0
- package/dist/types-CZAHRt31.js +147 -0
- package/dist/types-Cwq1JAWT.js +31 -0
- package/dist/upload-C5NC1E4N.js +23 -0
- package/dist/uppercase-DvjwUM0n.js +7 -0
- package/dist/useAccountHolder-DDto9d9n.js +102 -0
- package/dist/useAdaptiveWorkflow-DryNv0zI.js +28 -0
- package/dist/useAllowedCountries-C-nqVePW.js +80 -0
- package/dist/useAnalyticsContext-gSnRnYgV.js +12 -0
- package/dist/useAssociatedLegalEntity-DtZtKlls.js +35 -0
- package/dist/useBusinessDetailsData-DFU0dLxw.js +4732 -0
- package/dist/useBusinessLines-BZfFqvS_.js +27 -0
- package/dist/useCanSeeIntroduction-DQbanJNE.js +38 -0
- package/dist/useCreateLegalEntity-qP7MeAmi.js +24 -0
- package/dist/useDataMissingRemediations-ttUrk09_.js +39 -0
- package/dist/useDataset-CdLBLq98.js +98 -0
- package/dist/useDeleteTransferInstrument-Dtv14H9I.js +31 -0
- package/dist/useForm-CWrbJG44.js +504 -0
- package/dist/useHideTaskStepper-Dk7ZQ3U8.js +26 -0
- package/dist/useId-BkDhUta2.js +28 -0
- package/dist/useIndustryCodes-BMK6IMiW.js +32 -0
- package/dist/useLegalEntity-DHA8TJeV.js +48 -0
- package/dist/useMultiForm-BxASst0O.js +790 -0
- package/dist/useNavigate-CO1Mcekp.js +246 -0
- package/dist/useOnboardingStatus-Cz6-hSX4.js +23 -0
- package/dist/usePciQuestionnaireList-CWz7Ngs6.js +26 -0
- package/dist/useSalesChannels-bV9DgyLW.js +47 -0
- package/dist/useScenarios-Bn93htbx.js +55 -0
- package/dist/useSettingsContext-9O3Aqpfq.js +12 -0
- package/dist/useTaskLandedEvent-DwZHcMEQ.js +26 -0
- package/dist/useTaskStatus-DJxOWvuN.js +23 -0
- package/dist/useTermsOfServiceStatus-CyVxYqpg.js +39 -0
- package/dist/useToastContext-B6Mqc2HY.js +12 -0
- package/dist/useToggleContext-B_YexrbT.js +21 -0
- package/dist/useTrustMembers-DWo3WU8M.js +151 -0
- package/dist/useUnincorporatedPartnershipMembers-DwFPW09D.js +69 -0
- package/dist/useUpdateBusinessLines-JRPjqoe9.js +43 -0
- package/dist/useUpdateLegalEntity-CqmqXsbR.js +29 -0
- package/dist/utils-BWumuCvl.js +210 -0
- package/dist/utils-CJcGZvj1.js +178 -0
- package/dist/utils-CYUYe54m.js +24 -0
- package/dist/utils-Ck_mZapQ.js +1755 -0
- package/dist/utils-DdHbAadK.js +80 -0
- package/dist/utils-SKYT7xU4.js +52 -0
- package/dist/validate-BZ1-ZeKr.js +430 -0
- package/dist/validate-DTz70AWN.js +224 -0
- package/dist/validate-DUcT-JGF.js +178 -0
- package/dist/validate-Dr8UKZCX.js +126 -0
- package/dist/validateExtractionResult-CntKbt8c.js +343 -0
- package/dist/validationError-DV6t8Ubb.js +55 -0
- package/dist/validationResult-bjYBDjbU.js +29 -0
- package/dist/validatorUtils-D2O6AAZn.js +106 -0
- package/dist/warning-circle-fill-C2lMYPJW.js +30 -0
- package/dist/warning-diamond-filled-CQ2DdW5g.js +30 -0
- package/dist/webinar-BpZWqd-g.js +33 -0
- package/package.json +26 -26
- package/dist/4-people-Dxu4nHSX.js +0 -35
- package/dist/AcceptTermsOfServiceWorkflow-CvKbU2WY.js +0 -28
- package/dist/Accordion-Sjyj7C_t.js +0 -112
- package/dist/AccountSetupRejected-Cq_nlmLn.js +0 -18
- package/dist/AdaptiveWorkflow-CM7ZVGXv.js +0 -210
- package/dist/AdaptiveWorkflowComponent-tM1hJ1zF.js +0 -165
- package/dist/AddressFields-BsxEdBvQ.js +0 -464
- package/dist/Avatar-Zp1T9qAL.js +0 -54
- package/dist/BusinessFinancingDropin-vugW4Vvi.js +0 -1857
- package/dist/BusinessFinancingPage-0J_LImeN.js +0 -89
- package/dist/BusinessRegistrationNumberField-qdC_srMn.js +0 -101
- package/dist/BusinessRegistrationNumberFieldGroup-BvC9n4ou.js +0 -171
- package/dist/BusinessTypeSelectionPage-WCEqP4G2.js +0 -457
- package/dist/Button-DfRmINzF.js +0 -108
- package/dist/Checkbox-B730k3Yy.js +0 -108
- package/dist/ComponentGroup-CsnkYMbT.js +0 -32
- package/dist/ConstitutionalDocument-D92EPGmG.js +0 -1224
- package/dist/ContactDetails-DDSd6X0z.js +0 -511
- package/dist/ContextGuidance-B2ew1lzC.js +0 -29
- package/dist/ContractViewer-JtnAXSDa.js +0 -979
- package/dist/Currency-BKTf95Wp.js +0 -210
- package/dist/CustomerSupport-CCFayyJG.js +0 -140
- package/dist/DataConflictsModal-D-fP_eNs.js +0 -237
- package/dist/DebugModal-CG6CvUnj.js +0 -450
- package/dist/DecisionMakerDetails-DWC1nORL.js +0 -565
- package/dist/DecisionMakerDetailsPage-BVXA74FO.js +0 -122
- package/dist/DecisionMakers-Cvm_i6Uf.js +0 -589
- package/dist/Dropzone-CNHxDEc3.js +0 -250
- package/dist/EmbeddedStatus-tbJfdxm8.js +0 -129
- package/dist/EndStateLayout-BK1Hh02g.js +0 -83
- package/dist/EntityAssociation-i903L9Dh.js +0 -163
- package/dist/ErrorPanel-tnFOlOZU.js +0 -205
- package/dist/GlobalEntryModal-DQoIIvGS.js +0 -975
- package/dist/GlobalEntryPage-DLRGPpAu.js +0 -78
- package/dist/Icon-C3S5_kkS.js +0 -175
- package/dist/IdentityNumber-B8MXzXsO.js +0 -536
- package/dist/IdentityNumberFieldGroup-D7xb2TY7.js +0 -57
- package/dist/IdentityScreeningWorkflow-BdGXtdns.js +0 -307
- package/dist/Image-D82terx4.js +0 -33
- package/dist/IndividualDropin-C0vTSDYU.js +0 -4138
- package/dist/IndustryCodeFieldGroup-CGcE5yYR.js +0 -188
- package/dist/InputDate-Ci60MBrH.js +0 -211
- package/dist/InputText-CTpVF0Mu.js +0 -154
- package/dist/Introduction-Dx6DDaL7.js +0 -327
- package/dist/InvitedDecisionMakerComponent-Ckd26d6Y.js +0 -481
- package/dist/JpAddressFields-C9MbL5XV.js +0 -287
- package/dist/LegalCompanyNameField-D0jM5LDT.js +0 -108
- package/dist/LegalName-TjhII9_p.js +0 -33
- package/dist/LegalRepresentativeDetailsPage-CvGtANu3.js +0 -74
- package/dist/Link-c2jAgGgc.js +0 -32
- package/dist/ListItem-C35r8558.js +0 -93
- package/dist/Loader-BEpMlKm2.js +0 -92
- package/dist/Modal-BsivDPTd.js +0 -129
- package/dist/Name-DMf8Uyof.js +0 -61
- package/dist/NewSummary-DxWLTnJy.js +0 -73
- package/dist/PatriotActDisclosure-ChZ_ePr2.js +0 -265
- package/dist/PayoutDetailsDropin-BhtJSFAS.js +0 -4073
- package/dist/PayoutDetailsPage-MW5Pygp2.js +0 -70
- package/dist/RadioGroup-D8DRUJ2o.js +0 -1806
- package/dist/Review-DImhCvoG.js +0 -99
- package/dist/RootBusinessDetailsPage-Cmh9Z_4g.js +0 -68
- package/dist/RootBusinessLinesPage-C_p-CtCH.js +0 -1455
- package/dist/RootIndividualDetailsPage-04cJ6C15.js +0 -80
- package/dist/Select-ByVcS_J2.js +0 -1093
- package/dist/SignPCIComponent-CAwp2xCC.js +0 -370
- package/dist/SingpassSelection-Txx3gp_g.js +0 -157
- package/dist/SoleProprietorshipPage-CWegllTo.js +0 -70
- package/dist/SourceOfFundsPage-B22iW1ow.js +0 -2781
- package/dist/SourceOfFundsWorkflow-BKHZbLR_.js +0 -28
- package/dist/StateField-CsO_28Co.js +0 -296
- package/dist/Step-BUMarnLL.js +0 -191
- package/dist/Task-Bj_CjiHG.js +0 -129
- package/dist/TaskGroup-BMXhoq1Y.js +0 -46
- package/dist/TaskListItem-BIKdDEzU.js +0 -123
- package/dist/TaskStepperContextProvider-D0tKJplv.js +0 -26
- package/dist/TaskVerificationStatus-DPA4ZEPa.js +0 -125
- package/dist/TaxInformationFieldGroup-D_6IRGj9.js +0 -287
- package/dist/TaxReportingDropin-DA475crP.js +0 -475
- package/dist/TaxReportingWorkflow-kcto0Ysw.js +0 -28
- package/dist/TermsOfServiceManagement-HDnaIeWZ.js +0 -635
- package/dist/TextArea-qbFhi8Az.js +0 -81
- package/dist/TrustDetailsPage-BqVS0xOU.js +0 -1155
- package/dist/TrustMemberCompanyPage-DTe7xWpj.js +0 -109
- package/dist/TrustMemberIndividualPage-C1BDs9Rm.js +0 -110
- package/dist/TrustMemberRoleAndTypePage-GXWuitmt.js +0 -927
- package/dist/TrustMembersOverview-BjJ5fPcC.js +0 -449
- package/dist/UboTaskItem-Aq3iNKX0.js +0 -115
- package/dist/UnincorporatedPartnershipIndividualPage-DdPh2_sa.js +0 -79
- package/dist/UnincorporatedPartnershipMemberCompanyPage-h3OTr_91.js +0 -79
- package/dist/UnincorporatedPartnershipMemberRoleAndTypePage-CwemN4fL.js +0 -254
- package/dist/UnincorporatedPartnershipMembersOverview-CUczPfUl.js +0 -158
- package/dist/VerificationErrorAlert-BBfoLMwb.js +0 -64
- package/dist/Workflow-Do7P-qDn.js +0 -228
- package/dist/accountHolderUtils-DMi_DHCU.js +0 -44
- package/dist/arrow-right-Bk-ewsex.js +0 -20
- package/dist/bafinUtils-M2AASP_e.js +0 -1963
- package/dist/bag-9BNq_QQO.js +0 -20
- package/dist/bank-BRbxxVK5.js +0 -20
- package/dist/bg-BG-BtgA44Ui.js +0 -7
- package/dist/bg-BG-DX5QKxJz.js +0 -7
- package/dist/bg-BG-DYkxVgeJ.js +0 -7
- package/dist/bg-BG-K6LIkCdf.js +0 -7
- package/dist/bg-BG-uuNDTOoN.js +0 -7
- package/dist/bin-DE1613_5.js +0 -30
- package/dist/businessRegistrationNumberPatterns-C_MSKHlF.js +0 -981
- package/dist/capital-aNk7ragc.js +0 -23
- package/dist/cash-stack-DuKKc4Qj.js +0 -33
- package/dist/certificate-9gDKvXCm.js +0 -23
- package/dist/checkmark-BuqDN4WO.js +0 -20
- package/dist/checkmark-circle-OqcwA6N6.js +0 -28
- package/dist/checkmark-circle-fill-BfcUovCf.js +0 -30
- package/dist/checkmark-small-CBORXg_J.js +0 -20
- package/dist/chevron-down-CjRta08O.js +0 -20
- package/dist/chevron-left-BEm04mIh.js +0 -20
- package/dist/chevron-right-B2GkHG0J.js +0 -20
- package/dist/chevron-up-BKfe5Btb.js +0 -20
- package/dist/circle-C-uuRI8F.js +0 -30
- package/dist/circle-small-filled-Bkh5_ZEu.js +0 -20
- package/dist/clock-BWfWiMxz.js +0 -28
- package/dist/coins-Cw-jDTUz.js +0 -30
- package/dist/constants-BSBlqXY7.js +0 -231
- package/dist/contract-PFVBW8xa.js +0 -20
- package/dist/countries-BE4iGVAo.js +0 -41
- package/dist/country-zZC2TAQB.js +0 -25
- package/dist/cross-B37j1-r4.js +0 -20
- package/dist/cross-circle-fill-CcjwpLj2.js +0 -30
- package/dist/cross-circle-fill-small-CJ4fddNo.js +0 -20
- package/dist/cs-CZ-BJSrh3Vp.js +0 -7
- package/dist/cs-CZ-CMXGY6Ep.js +0 -7
- package/dist/cs-CZ-Ci8c58xJ.js +0 -7
- package/dist/cs-CZ-Cu1v5FA8.js +0 -7
- package/dist/cs-CZ-lJQmuyHq.js +0 -7
- package/dist/da-DK-B9O3xbY6.js +0 -7
- package/dist/da-DK-BNwXg4DX.js +0 -7
- package/dist/da-DK-C1kmOHvo.js +0 -7
- package/dist/da-DK-D53M_d04.js +0 -7
- package/dist/da-DK-DjAV5d9A.js +0 -7
- package/dist/de-DE-B3sSNcDv.js +0 -7
- package/dist/de-DE-C9N6F5oM.js +0 -7
- package/dist/de-DE-CjMOQMqQ.js +0 -7
- package/dist/de-DE-qJPTCQlG.js +0 -7
- package/dist/de-DE-qSBQE-6M.js +0 -7
- package/dist/de-DE-w4l6boYT.js +0 -7
- package/dist/decision-makers-group-DAoxQRJ3.js +0 -4169
- package/dist/decisionMakerRoles-APTR-Ah_.js +0 -185
- package/dist/document-1-B3vw8uuK.js +0 -20
- package/dist/document-person-CERdIfH0.js +0 -28
- package/dist/download-CthdK4dV.js +0 -23
- package/dist/edit-1-BW7NwWP7.js +0 -20
- package/dist/el-GR-BLNCX9mm.js +0 -7
- package/dist/el-GR-Bx996PXx.js +0 -7
- package/dist/el-GR-CgoxpC-Q.js +0 -7
- package/dist/el-GR-DaAMIpOR.js +0 -7
- package/dist/el-GR-DqTetsjB.js +0 -7
- package/dist/el-GR-pGsVWsOm.js +0 -7
- package/dist/en-US-B82BbZaB.js +0 -7
- package/dist/en-US-BUmtG-Wj.js +0 -27
- package/dist/en-US-C3i5Oge2.js +0 -7
- package/dist/en-US-C8karqc5.js +0 -7
- package/dist/en-US-CJPD8qHc.js +0 -7
- package/dist/en-US-D0fscfsz.js +0 -7
- package/dist/en-US-DapC--Cs.js +0 -7
- package/dist/entityAssociationUtil-CLBR9osP.js +0 -59
- package/dist/error-CpJV-CLa.js +0 -36
- package/dist/es-ES-C14ZT-97.js +0 -7
- package/dist/es-ES-DeT4zIDW.js +0 -7
- package/dist/es-ES-DyB2KXfT.js +0 -7
- package/dist/es-ES-U4-lDfZq.js +0 -7
- package/dist/es-ES-tVQDUTJN.js +0 -7
- package/dist/es-ES-wvcyuTNN.js +0 -7
- package/dist/es-LA-B5IRDCf_.js +0 -7
- package/dist/es-LA-B_hzWiiE.js +0 -7
- package/dist/es-LA-CG_cu1hM.js +0 -7
- package/dist/es-LA-ChLRkx-r.js +0 -7
- package/dist/es-LA-mFT_9PL_.js +0 -7
- package/dist/et-EE-4_ZUNt3W.js +0 -7
- package/dist/et-EE-BCWBT8XN.js +0 -7
- package/dist/et-EE-BQEyJFZb.js +0 -7
- package/dist/et-EE-DSK7kb3n.js +0 -7
- package/dist/et-EE-DWVzz1wR.js +0 -7
- package/dist/external-link-CFgynH5A.js +0 -20
- package/dist/fi-FI-B-7uBAf5.js +0 -7
- package/dist/fi-FI-BeJtSWIh.js +0 -7
- package/dist/fi-FI-Caa9ydMd.js +0 -7
- package/dist/fi-FI-D06EzKrW.js +0 -7
- package/dist/fi-FI-DgMsQBRO.js +0 -7
- package/dist/form-rules-zzbZ2bV6.js +0 -1089
- package/dist/formatCurrency-Cq3WFpdZ.js +0 -23
- package/dist/formatValidationError-BHvKLMYZ.js +0 -23
- package/dist/fr-FR-8a-RK9xd.js +0 -7
- package/dist/fr-FR-BCfqr4jm.js +0 -7
- package/dist/fr-FR-BTJoQq71.js +0 -7
- package/dist/fr-FR-CDv300-8.js +0 -7
- package/dist/fr-FR-D7DTFYe4.js +0 -7
- package/dist/fr-FR-Dl4NL-Nc.js +0 -7
- package/dist/genUtils-Ce61IJs8.js +0 -60
- package/dist/getDefaultRegistrationNumberType-CI1NVzJR.js +0 -1055
- package/dist/getFormSlice-DzRO0UUx.js +0 -52
- package/dist/getLegalEntityCountry-CNE5uei8.js +0 -17
- package/dist/getName-s7qmFean.js +0 -35
- package/dist/getProblemsForEntity-Bh9nSdOW.js +0 -16
- package/dist/getTrustedDecisionMakers-DX3nImM5.js +0 -25
- package/dist/gift-0jLCte2h.js +0 -20
- package/dist/graph-DrxuzQF7.js +0 -32
- package/dist/graph-up-4qLbS2Ds.js +0 -38
- package/dist/headquarter-3o2GHW5H.js +0 -42
- package/dist/hotel-pZlrEAK8.js +0 -33
- package/dist/hr-HR-B11sggmG.js +0 -7
- package/dist/hr-HR-BjxPRJ1o.js +0 -7
- package/dist/hr-HR-COdiWKoq.js +0 -7
- package/dist/hr-HR-CXH5M5JZ.js +0 -7
- package/dist/hr-HR-me1zsMas.js +0 -7
- package/dist/http-DsJtugN1.js +0 -204
- package/dist/hu-HU-BNlsrO-l.js +0 -7
- package/dist/hu-HU-BQ5310Yi.js +0 -7
- package/dist/hu-HU-D1ZZwcl0.js +0 -7
- package/dist/hu-HU-DkSsL94T.js +0 -7
- package/dist/hu-HU-Dp6xOBN_.js +0 -7
- package/dist/image-tfgNnE3G.js +0 -23
- package/dist/info-DJW5JooY.js +0 -32
- package/dist/info-filled-C5mP6T4Z.js +0 -32
- package/dist/it-IT-BORQC-7u.js +0 -7
- package/dist/it-IT-BlaVymCj.js +0 -7
- package/dist/it-IT-CawjvBDX.js +0 -7
- package/dist/it-IT-Cnk7j_gC.js +0 -7
- package/dist/it-IT-DIIRAF4_.js +0 -7
- package/dist/it-IT-x4LV31GV.js +0 -7
- package/dist/ja-JP-CyXnoIu3.js +0 -7
- package/dist/ja-JP-DBne3dbI.js +0 -7
- package/dist/ja-JP-DS8zN3mY.js +0 -7
- package/dist/ja-JP-Dpe9Odla.js +0 -7
- package/dist/ja-JP-DrHQO_Se.js +0 -7
- package/dist/ja-JP-h3E8hgLv.js +0 -7
- package/dist/legal-entity-type-0MfCGzUf.js +0 -13
- package/dist/legalArrangementUtils-xvCxpgzJ.js +0 -113
- package/dist/location-Dk0rAiaT.js +0 -23
- package/dist/lt-LT-8kOI6QVq.js +0 -7
- package/dist/lt-LT-B18sQY9g.js +0 -7
- package/dist/lt-LT-Byl8QeWO.js +0 -7
- package/dist/lt-LT-D3ZUJfjr.js +0 -7
- package/dist/lt-LT-Fc1lOUlz.js +0 -7
- package/dist/lv-LV-C70c94CI.js +0 -7
- package/dist/lv-LV-CXifQKfG.js +0 -7
- package/dist/lv-LV-DctYQmfH.js +0 -7
- package/dist/lv-LV-Mj_iV56f.js +0 -7
- package/dist/lv-LV-adiXoKhv.js +0 -7
- package/dist/mail-DG7MBDNE.js +0 -20
- package/dist/mapAddressLocalizationToJpAddressSchema-TUaHGQh6.js +0 -26
- package/dist/mapExistingFile-CwGW1ru4.js +0 -55
- package/dist/mapJpAddressSchemaToAddressLocalizations-CdP6PRAO.js +0 -73
- package/dist/mapLegalEntityToIndividualSchema-ByhXwZqs.js +0 -214
- package/dist/mapTransferInstrumentToPayoutAccount-6eLKhumO.js +0 -44
- package/dist/minus-circle-filled-DglqAgJW.js +0 -30
- package/dist/nl-NL-BIpptPn4.js +0 -7
- package/dist/nl-NL-BWGCqpWp.js +0 -7
- package/dist/nl-NL-Bv8Zk-6e.js +0 -7
- package/dist/nl-NL-DOB0b0m4.js +0 -7
- package/dist/nl-NL-ehxkZFQd.js +0 -7
- package/dist/nl-NL-jt4eYGEY.js +0 -7
- package/dist/no-NO-BG1sYkpp.js +0 -7
- package/dist/no-NO-CeZQnyyD.js +0 -7
- package/dist/no-NO-Chwg5Roi.js +0 -7
- package/dist/no-NO-Dx_Z3uoZ.js +0 -7
- package/dist/no-NO-P5tRWhV9.js +0 -7
- package/dist/options-horizontal-CTUn7IEx.js +0 -30
- package/dist/partner-1StoI4_W.js +0 -30
- package/dist/pay-by-link-plane-Sa_qkL8C.js +0 -33
- package/dist/payout-BAYSxSqU.js +0 -38
- package/dist/pdf-uNYg4Mqz.js +0 -22315
- package/dist/pdf.worker.min-gK7UJW5a.js +0 -74644
- package/dist/person-Da15_s3G.js +0 -23
- package/dist/pl-PL-BsXtscoI.js +0 -7
- package/dist/pl-PL-CWFdZf24.js +0 -7
- package/dist/pl-PL-DSbuyzBx.js +0 -7
- package/dist/pl-PL-J9S3_lCf.js +0 -7
- package/dist/pl-PL-_KG-ZD1N.js +0 -7
- package/dist/plus-BQccvKkd.js +0 -20
- package/dist/plus-circle-filled-CqC30FRL.js +0 -30
- package/dist/processCapabilities-DRD0Aq2i.js +0 -874
- package/dist/processValidationErrors-oxuCOsth.js +0 -62
- package/dist/pt-BR-B2q9Nl16.js +0 -7
- package/dist/pt-BR-BYbyk6xS.js +0 -7
- package/dist/pt-BR-Cph-P8oH.js +0 -7
- package/dist/pt-BR-D1yTuXWd2.js +0 -7
- package/dist/pt-BR-fKlNUybd.js +0 -7
- package/dist/pt-PT-C1gtp2_N.js +0 -7
- package/dist/pt-PT-CQQkh5PS.js +0 -7
- package/dist/pt-PT-D8ldyR-j.js +0 -7
- package/dist/pt-PT-DAvsI-Tr.js +0 -7
- package/dist/pt-PT-DhokEMPi.js +0 -7
- package/dist/pt-PT-IPhkbQvT.js +0 -7
- package/dist/recurring-DSR1fNMh.js +0 -23
- package/dist/resolveEnvironment-BYEL10Nc.js +0 -2524
- package/dist/revenue-accelerate-CPhAVpPK.js +0 -30
- package/dist/ro-RO-C6xoaASq.js +0 -7
- package/dist/ro-RO-CP_IrOlX.js +0 -7
- package/dist/ro-RO-CQJk7Cpo.js +0 -7
- package/dist/ro-RO-CnMe6Mfw.js +0 -7
- package/dist/ro-RO-_BLhsnIB.js +0 -7
- package/dist/save-DQ-mJX8e.js +0 -20
- package/dist/search-DWqWTW_K.js +0 -30
- package/dist/show-BbhlD3IY.js +0 -23
- package/dist/sk-SK-BOc9IqyW.js +0 -7
- package/dist/sk-SK-Bb1CdAzD.js +0 -7
- package/dist/sk-SK-Br1Y4_CN.js +0 -7
- package/dist/sk-SK-Bx2_85dW.js +0 -7
- package/dist/sk-SK-C889qQFo.js +0 -7
- package/dist/sl-SI-B-Xa0hlk.js +0 -7
- package/dist/sl-SI-BQc61Sz2.js +0 -7
- package/dist/sl-SI-DHPadSTy.js +0 -7
- package/dist/sl-SI-DO9c7geI.js +0 -7
- package/dist/sl-SI-bkhhInrg.js +0 -7
- package/dist/solution-payments-D4BORMsX.js +0 -20
- package/dist/store-DWaq3ZiC.js +0 -20
- package/dist/sv-SE-BXrlr0X5.js +0 -7
- package/dist/sv-SE-Dk81lopg.js +0 -7
- package/dist/sv-SE-DzsWB30f.js +0 -7
- package/dist/sv-SE-IBYnJfbW.js +0 -7
- package/dist/sv-SE-X89Q6ZAq.js +0 -7
- package/dist/sv-SE-l_UVgmVu.js +0 -7
- package/dist/terminal-1-crR-pS_R.js +0 -30
- package/dist/translation-BOm4lmPx.js +0 -657
- package/dist/types/components/GlobalEntry/globalEntryKeyMapping.d.ts +0 -15
- package/dist/types/components/GlobalEntry/utils.d.ts +0 -30
- package/dist/types/components/Shared/fields/TaxInformationField/TaxIdNumberTypeSelector/getDefaultTaxIdNumberType.d.ts +0 -30
- package/dist/types/components/Shared/fields/TaxInformationField/TaxIdNumberTypeSelector/inferTaxIdNumberType.d.ts +0 -13
- package/dist/types/core/models/api/attachment.d.ts +0 -7
- package/dist/types/core/models/api/document.d.ts +0 -25
- package/dist/types/core/models/api/entity-type.d.ts +0 -5
- package/dist/types/core/models/api/legal-arrangement.d.ts +0 -24
- package/dist/types/core/models/api/legal-entity-type.d.ts +0 -8
- package/dist/types/core/models/api/legal-entity.d.ts +0 -36
- package/dist/types/core/models/api/problem.d.ts +0 -12
- package/dist/types/core/models/api/remediating-action.d.ts +0 -5
- package/dist/types/core/models/api/transfer-instrument.d.ts +0 -33
- package/dist/types/core/models/api/trusted-fields-provider.d.ts +0 -5
- package/dist/types/core/models/api/verification-error.d.ts +0 -19
- package/dist/types-BeveNAZK.js +0 -19
- package/dist/types-wRlt8bxb.js +0 -58
- package/dist/upload-D85xAAAm.js +0 -23
- package/dist/useAdaptiveWorkflow-DsQESk9f.js +0 -28
- package/dist/useBusinessDetailsData-Bja80UYy.js +0 -4722
- package/dist/useBusinessLines-BhSN6qCH.js +0 -27
- package/dist/useCanSeeIntroduction-BcfQC4IP.js +0 -38
- package/dist/useDataMissingRemediations-msU1AJvo.js +0 -39
- package/dist/useForm-DbDFfb2S.js +0 -502
- package/dist/useHideTaskStepper-CbMcV9mk.js +0 -26
- package/dist/useId-oOIS1nsj.js +0 -73
- package/dist/useIndustryCodes-uAj90IyS.js +0 -32
- package/dist/useLegalEntity-QQXN6YOm.js +0 -48
- package/dist/useNavigate-CiKOI5QV.js +0 -246
- package/dist/useOnboardingStatus-CsGUjkm-.js +0 -23
- package/dist/usePciQuestionnaireList-CFNJD8pS.js +0 -26
- package/dist/useSalesChannels-BvGJ9PT6.js +0 -47
- package/dist/useScenarios-CGcmXgJv.js +0 -55
- package/dist/useTaskLandedEvent-pmN03gtI.js +0 -26
- package/dist/useTaskStatus-CgrhdaE_.js +0 -23
- package/dist/useTermsOfServiceStatus-DbJDklA2.js +0 -39
- package/dist/useTrustMembers-f13Kf1Zk.js +0 -152
- package/dist/useUnincorporatedPartnershipMembers-K5jkCKfJ.js +0 -70
- package/dist/useUpdateBusinessLines-DCKYTzxd.js +0 -43
- package/dist/utils-2tir5QtF.js +0 -52
- package/dist/utils-BUOt0VrX.js +0 -179
- package/dist/utils-DBIDcVUN.js +0 -214
- package/dist/validate-BpZBKknS.js +0 -224
- package/dist/validate-CPTQceEQ.js +0 -151
- package/dist/validate-YBDlgvjy.js +0 -429
- package/dist/validate-u6nDNwf1.js +0 -126
- package/dist/validateExtractionResult-dH4TewHf.js +0 -343
- package/dist/validationError-B-B3GC86.js +0 -55
- package/dist/warning-circle-fill-BDTmKU1s.js +0 -30
- package/dist/warning-diamond-filled-BjDL-xa8.js +0 -30
- package/dist/webinar-YMbPoCx3.js +0 -33
|
@@ -0,0 +1,1755 @@
|
|
|
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] = "79963831-26c4-42c3-8ee0-c583e10bcdb8", e._sentryDebugIdIdentifier = "sentry-dbid-79963831-26c4-42c3-8ee0-c583e10bcdb8");
|
|
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 { t as Field } from "./Field-DwDJQVSS.js";
|
|
9
|
+
import { n as mapSchemaFieldsToApiScriptLocalization, t as mapApiScriptLocalizationToSchemaFields } from "./mapScriptLocalization-BCfkZo1y.js";
|
|
10
|
+
import { t as isEmpty } from "./isEmpty-Uewyl-r6.js";
|
|
11
|
+
import { a as validateNotEmptyOnBlur, o as validatePatternOnBlur } from "./patternValidators-DsrZkuOO.js";
|
|
12
|
+
import { a as nonInputs, i as makeMask, n as alphanumericInputs, o as numericInputs, r as customInputs, s as spacer, t as alphaInputs } from "./maskHelpers-C0wnCoJl.js";
|
|
13
|
+
import { n as businessRegistrationNumberMasks, t as businessRegistrationNumberPatterns } from "./businessRegistrationNumberPatterns-A08SLm03.js";
|
|
14
|
+
import { t as uppercase } from "./uppercase-DvjwUM0n.js";
|
|
15
|
+
import { t as RadioGroup } from "./RadioGroup-Bf3DlQnZ.js";
|
|
16
|
+
import { useCallback, useEffect, useMemo } from "preact/hooks";
|
|
17
|
+
import { jsx } from "preact/jsx-runtime";
|
|
18
|
+
//#region src/components/Shared/fields/TaxInformationField/taxIdNumberTypes.ts
|
|
19
|
+
var restrictedEntityTypes = [
|
|
20
|
+
"soleProprietorship",
|
|
21
|
+
"trust",
|
|
22
|
+
"individual"
|
|
23
|
+
];
|
|
24
|
+
var isRestrictedEntityType = (entityType) => Boolean(entityType && restrictedEntityTypes.includes(entityType));
|
|
25
|
+
var isApplicableOnlyForSingleRestrictedType = (option) => {
|
|
26
|
+
if (!option.applicableOnlyFor || option.applicableOnlyFor.length !== 1) return false;
|
|
27
|
+
return restrictedEntityTypes.includes(option.applicableOnlyFor[0]);
|
|
28
|
+
};
|
|
29
|
+
var taxIdNumberOptions = {
|
|
30
|
+
[CountryCodes.Australia]: [{
|
|
31
|
+
id: "ABN",
|
|
32
|
+
name: "australianBusinessNumberAbn"
|
|
33
|
+
}, {
|
|
34
|
+
id: "TFN",
|
|
35
|
+
name: "taxInformationNumber__AU_Individual",
|
|
36
|
+
applicableOnlyFor: ["individual"]
|
|
37
|
+
}],
|
|
38
|
+
[CountryCodes.Austria]: [{
|
|
39
|
+
id: "STEUERNUMMER",
|
|
40
|
+
name: "taxInformationNumber__AT"
|
|
41
|
+
}],
|
|
42
|
+
[CountryCodes.Belgium]: [{
|
|
43
|
+
id: "BUSINESS_NUMMER",
|
|
44
|
+
name: "businessNumber",
|
|
45
|
+
applicableOnlyFor: [
|
|
46
|
+
"soleProprietorship",
|
|
47
|
+
"privateCompany",
|
|
48
|
+
"governmentalOrganization",
|
|
49
|
+
"associationIncorporated",
|
|
50
|
+
"partnershipIncorporated",
|
|
51
|
+
"nonProfit",
|
|
52
|
+
"unincorporatedPartnership",
|
|
53
|
+
"unlistedPublicCompany"
|
|
54
|
+
]
|
|
55
|
+
}, {
|
|
56
|
+
id: "NUMERO_NATIONAL",
|
|
57
|
+
name: "taxInformationNumber__BE_Individual",
|
|
58
|
+
applicableOnlyFor: ["individual"]
|
|
59
|
+
}],
|
|
60
|
+
[CountryCodes.Brazil]: [{
|
|
61
|
+
id: "CNPJ",
|
|
62
|
+
name: "CNPJ"
|
|
63
|
+
}],
|
|
64
|
+
[CountryCodes.Bulgaria]: [{
|
|
65
|
+
id: "EGN",
|
|
66
|
+
name: "taxInformationNumber__BG",
|
|
67
|
+
applicableOnlyFor: ["individual"]
|
|
68
|
+
}],
|
|
69
|
+
[CountryCodes.Canada]: [{
|
|
70
|
+
id: "BUSINESS_NUMBER",
|
|
71
|
+
name: "businessNumber"
|
|
72
|
+
}, {
|
|
73
|
+
id: "SIN",
|
|
74
|
+
name: "taxInformationNumber__CA",
|
|
75
|
+
applicableOnlyFor: ["individual"]
|
|
76
|
+
}],
|
|
77
|
+
[CountryCodes.China]: [{
|
|
78
|
+
id: "RESIDENT_IDENTITY_CARD_NUMBER",
|
|
79
|
+
name: "taxInformationNumber__CN",
|
|
80
|
+
applicableOnlyFor: ["individual"]
|
|
81
|
+
}],
|
|
82
|
+
[CountryCodes.Croatia]: [{
|
|
83
|
+
id: "OIB",
|
|
84
|
+
name: "taxInformationNumber__HR"
|
|
85
|
+
}],
|
|
86
|
+
[CountryCodes.Cyprus]: [{
|
|
87
|
+
id: "TIC",
|
|
88
|
+
name: "taxInformationNumber__CY"
|
|
89
|
+
}],
|
|
90
|
+
[CountryCodes.CzechRepublic]: [{
|
|
91
|
+
id: "RODNE_CISLO",
|
|
92
|
+
name: "taxInformationNumber__CZ",
|
|
93
|
+
applicableOnlyFor: ["individual"]
|
|
94
|
+
}],
|
|
95
|
+
[CountryCodes.Denmark]: [{
|
|
96
|
+
id: "CPR",
|
|
97
|
+
name: "taxInformationNumber__DK",
|
|
98
|
+
applicableOnlyFor: ["individual"]
|
|
99
|
+
}],
|
|
100
|
+
[CountryCodes.Estonia]: [{
|
|
101
|
+
id: "ISIKUKOOD",
|
|
102
|
+
name: "taxInformationNumber__ET_Individual",
|
|
103
|
+
applicableOnlyFor: ["individual"]
|
|
104
|
+
}, {
|
|
105
|
+
id: "REGISTRIKOOD",
|
|
106
|
+
name: "registrikood",
|
|
107
|
+
applicableOnlyFor: ["privateCompany"]
|
|
108
|
+
}],
|
|
109
|
+
[CountryCodes.Egypt]: [{
|
|
110
|
+
id: "TIN_EG",
|
|
111
|
+
name: "taxInformationNumber__EG",
|
|
112
|
+
applicableOnlyFor: ["individual"]
|
|
113
|
+
}],
|
|
114
|
+
[CountryCodes.Finland]: [{
|
|
115
|
+
id: "HENKILOTUNNUS",
|
|
116
|
+
name: "taxInformationNumber__FI",
|
|
117
|
+
applicableOnlyFor: ["individual"]
|
|
118
|
+
}, {
|
|
119
|
+
id: "YTUNNUS",
|
|
120
|
+
name: "YTunnus",
|
|
121
|
+
applicableOnlyFor: ["privateCompany"]
|
|
122
|
+
}],
|
|
123
|
+
[CountryCodes.France]: [{
|
|
124
|
+
id: "SIRET",
|
|
125
|
+
name: "siret",
|
|
126
|
+
applicableOnlyFor: ["privateCompany"]
|
|
127
|
+
}],
|
|
128
|
+
[CountryCodes.Germany]: [{
|
|
129
|
+
id: "STEUERNUMMER",
|
|
130
|
+
name: "taxInformationNumber__DE",
|
|
131
|
+
applicableOnlyFor: [
|
|
132
|
+
"soleProprietorship",
|
|
133
|
+
"privateCompany",
|
|
134
|
+
"governmentalOrganization",
|
|
135
|
+
"associationIncorporated",
|
|
136
|
+
"partnershipIncorporated",
|
|
137
|
+
"nonProfit",
|
|
138
|
+
"unincorporatedPartnership",
|
|
139
|
+
"unlistedPublicCompany"
|
|
140
|
+
]
|
|
141
|
+
}, {
|
|
142
|
+
id: "IDNR",
|
|
143
|
+
name: "taxInformationNumber__DE_Individual",
|
|
144
|
+
applicableOnlyFor: ["individual"]
|
|
145
|
+
}],
|
|
146
|
+
[CountryCodes.Gibraltar]: [{
|
|
147
|
+
id: "GI_TAXPAYER_REFERENCE_NUMBER",
|
|
148
|
+
name: "taxpayerReferenceNumber"
|
|
149
|
+
}],
|
|
150
|
+
[CountryCodes.Greece]: [{
|
|
151
|
+
id: "AFM",
|
|
152
|
+
name: "taxInformationNumber__GR"
|
|
153
|
+
}],
|
|
154
|
+
[CountryCodes.Guernsey]: [{
|
|
155
|
+
id: "GG_REGISTRATION_NUMBER",
|
|
156
|
+
name: "taxInformationNumber"
|
|
157
|
+
}, {
|
|
158
|
+
id: "TIN_GG",
|
|
159
|
+
name: "nationalInsuranceNumber",
|
|
160
|
+
applicableOnlyFor: ["soleProprietorship"]
|
|
161
|
+
}],
|
|
162
|
+
[CountryCodes.HongKong]: [{
|
|
163
|
+
id: "BRN",
|
|
164
|
+
name: "taxInformationNumber__HK"
|
|
165
|
+
}, {
|
|
166
|
+
id: "HKID",
|
|
167
|
+
name: "taxInformationNumber__HK_Individual",
|
|
168
|
+
applicableOnlyFor: ["individual"]
|
|
169
|
+
}],
|
|
170
|
+
[CountryCodes.Hungary]: [{
|
|
171
|
+
id: "ADOAZONOSITO_JEL",
|
|
172
|
+
name: "taxInformationNumber__HU",
|
|
173
|
+
applicableOnlyFor: ["individual"]
|
|
174
|
+
}],
|
|
175
|
+
[CountryCodes.Iceland]: [{
|
|
176
|
+
id: "KENNITALA",
|
|
177
|
+
name: "taxInformationNumber__IS",
|
|
178
|
+
applicableOnlyFor: ["individual"]
|
|
179
|
+
}],
|
|
180
|
+
[CountryCodes.India]: [{
|
|
181
|
+
id: "PAN",
|
|
182
|
+
name: "taxInformationNumber__IN",
|
|
183
|
+
applicableOnlyFor: ["individual"]
|
|
184
|
+
}],
|
|
185
|
+
[CountryCodes.Ireland]: [{
|
|
186
|
+
id: "TRN",
|
|
187
|
+
name: "trnNumber",
|
|
188
|
+
applicableOnlyFor: ["privateCompany", "unincorporatedPartnership"]
|
|
189
|
+
}, {
|
|
190
|
+
id: "PERSONAL_PUBLIC_SERVICE_NUMBER",
|
|
191
|
+
name: "taxInformationNumber__IE_Individual",
|
|
192
|
+
applicableOnlyFor: ["individual"]
|
|
193
|
+
}],
|
|
194
|
+
[CountryCodes.IsleOfMan]: [{
|
|
195
|
+
id: "IM_TAX_REFERENCE_NUMBER",
|
|
196
|
+
name: "taxReferenceNumber"
|
|
197
|
+
}],
|
|
198
|
+
[CountryCodes.Italy]: [{
|
|
199
|
+
id: "CODICE_FISCALE",
|
|
200
|
+
name: "taxInformationNumber__IT"
|
|
201
|
+
}],
|
|
202
|
+
[CountryCodes.Israel]: [{
|
|
203
|
+
id: "IL_MISPAR_ZEHUT",
|
|
204
|
+
name: "taxInformationNumber__IL",
|
|
205
|
+
applicableOnlyFor: ["individual"]
|
|
206
|
+
}],
|
|
207
|
+
[CountryCodes.Japan]: [{
|
|
208
|
+
id: "CORPORATE_NUMBER",
|
|
209
|
+
name: "taxInformationNumber"
|
|
210
|
+
}, {
|
|
211
|
+
id: "JP_MY_NUMBER",
|
|
212
|
+
name: "taxInformationNumber__JP_Individual",
|
|
213
|
+
applicableOnlyFor: ["individual"]
|
|
214
|
+
}],
|
|
215
|
+
[CountryCodes.Jersey]: [{
|
|
216
|
+
id: "TIN_JE",
|
|
217
|
+
name: "taxIdentificationNumber"
|
|
218
|
+
}, {
|
|
219
|
+
id: "SSN",
|
|
220
|
+
name: "socialSecurityNumber",
|
|
221
|
+
applicableOnlyFor: ["soleProprietorship"]
|
|
222
|
+
}],
|
|
223
|
+
[CountryCodes.Latvia]: [{
|
|
224
|
+
id: "PERSONAS_KODS",
|
|
225
|
+
name: "taxInformationNumber__LV",
|
|
226
|
+
applicableOnlyFor: ["individual"]
|
|
227
|
+
}, {
|
|
228
|
+
id: "REGISTRACIJAS_NUMURS",
|
|
229
|
+
name: "lvRegistrationNumber",
|
|
230
|
+
applicableOnlyFor: ["privateCompany"]
|
|
231
|
+
}],
|
|
232
|
+
[CountryCodes.Lithuania]: [{
|
|
233
|
+
id: "ASMENS_KODAS",
|
|
234
|
+
name: "taxInformationNumber__LT"
|
|
235
|
+
}],
|
|
236
|
+
[CountryCodes.Luxembourg]: [{
|
|
237
|
+
id: "NATIONAL_IDENTIFICATION_NUMBER",
|
|
238
|
+
name: "taxInformationNumber__LU_Individual",
|
|
239
|
+
applicableOnlyFor: ["individual"]
|
|
240
|
+
}, {
|
|
241
|
+
id: "NATIONAL_IDENTIFICATION_NUMBER",
|
|
242
|
+
name: "taxInformationNumber__LU_Org",
|
|
243
|
+
applicableOnlyFor: ["privateCompany"]
|
|
244
|
+
}],
|
|
245
|
+
[CountryCodes.Malta]: [
|
|
246
|
+
{
|
|
247
|
+
id: "UNIQUE_TAXPAYER_REFERENCE_NUMBER",
|
|
248
|
+
name: "taxInformationNumber__MT_Individual_UTRN",
|
|
249
|
+
applicableOnlyFor: ["individual"]
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
id: "IDENTITY_CARD_NUMBER",
|
|
253
|
+
name: "taxInformationNumber__MT_Individual",
|
|
254
|
+
applicableOnlyFor: ["individual"]
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
id: "INCOME_TAX_REGISTRATION_NUMBER",
|
|
258
|
+
name: "taxInformationNumber__MT_Org",
|
|
259
|
+
applicableOnlyFor: ["privateCompany"]
|
|
260
|
+
}
|
|
261
|
+
],
|
|
262
|
+
[CountryCodes.Mexico]: [{
|
|
263
|
+
id: "RFC",
|
|
264
|
+
name: "taxInformationNumber__MX",
|
|
265
|
+
applicableOnlyFor: [
|
|
266
|
+
"privateCompany",
|
|
267
|
+
"governmentalOrganization",
|
|
268
|
+
"associationIncorporated",
|
|
269
|
+
"partnershipIncorporated",
|
|
270
|
+
"nonProfit",
|
|
271
|
+
"unincorporatedPartnership",
|
|
272
|
+
"unlistedPublicCompany"
|
|
273
|
+
]
|
|
274
|
+
}],
|
|
275
|
+
[CountryCodes.Netherlands]: [{
|
|
276
|
+
id: "RSIN",
|
|
277
|
+
name: "rsinNumber",
|
|
278
|
+
applicableOnlyFor: [
|
|
279
|
+
"privateCompany",
|
|
280
|
+
"governmentalOrganization",
|
|
281
|
+
"associationIncorporated",
|
|
282
|
+
"partnershipIncorporated",
|
|
283
|
+
"nonProfit",
|
|
284
|
+
"unincorporatedPartnership",
|
|
285
|
+
"unlistedPublicCompany"
|
|
286
|
+
]
|
|
287
|
+
}, {
|
|
288
|
+
id: "BSN",
|
|
289
|
+
name: "bsnNumber",
|
|
290
|
+
applicableOnlyFor: ["individual"]
|
|
291
|
+
}],
|
|
292
|
+
[CountryCodes.NewZealand]: [{
|
|
293
|
+
id: "IRD",
|
|
294
|
+
name: "irdNumber"
|
|
295
|
+
}],
|
|
296
|
+
[CountryCodes.Norway]: [{
|
|
297
|
+
id: "D_NUMBER",
|
|
298
|
+
name: "taxInformationNumber__NO",
|
|
299
|
+
applicableOnlyFor: ["individual"]
|
|
300
|
+
}],
|
|
301
|
+
[CountryCodes.Poland]: [{
|
|
302
|
+
id: "PESEL_NUMBER",
|
|
303
|
+
name: "taxInformationNumber__PL",
|
|
304
|
+
applicableOnlyFor: ["individual"]
|
|
305
|
+
}],
|
|
306
|
+
[CountryCodes.Portugal]: [{
|
|
307
|
+
id: "NUMERO_ID_CIVIL",
|
|
308
|
+
name: "taxInformationNumber__PT",
|
|
309
|
+
applicableOnlyFor: ["individual"]
|
|
310
|
+
}, {
|
|
311
|
+
id: "NIPC",
|
|
312
|
+
name: "NIPC",
|
|
313
|
+
applicableOnlyFor: ["privateCompany"]
|
|
314
|
+
}],
|
|
315
|
+
[CountryCodes.PuertoRico]: [{
|
|
316
|
+
id: "EIN",
|
|
317
|
+
name: "ein"
|
|
318
|
+
}],
|
|
319
|
+
[CountryCodes.Romania]: [{
|
|
320
|
+
id: "CNP",
|
|
321
|
+
name: "taxInformationNumber__RO",
|
|
322
|
+
applicableOnlyFor: ["individual"]
|
|
323
|
+
}],
|
|
324
|
+
[CountryCodes.Singapore]: [
|
|
325
|
+
{
|
|
326
|
+
id: "GST",
|
|
327
|
+
name: "gst"
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
id: "UEN",
|
|
331
|
+
name: "uen"
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
id: "NRIC",
|
|
335
|
+
name: "taxInformationNumber__SG_Individual",
|
|
336
|
+
applicableOnlyFor: ["individual"]
|
|
337
|
+
}
|
|
338
|
+
],
|
|
339
|
+
[CountryCodes.Slovakia]: [{
|
|
340
|
+
id: "RODNE_CISLO",
|
|
341
|
+
name: "taxInformationNumber__SK_Individual",
|
|
342
|
+
applicableOnlyFor: ["individual"]
|
|
343
|
+
}, {
|
|
344
|
+
id: "NATIONAL_IDENTIFICATION_NUMBER",
|
|
345
|
+
name: "taxInformationNumber__SK_Org",
|
|
346
|
+
applicableOnlyFor: ["privateCompany"]
|
|
347
|
+
}],
|
|
348
|
+
[CountryCodes.Slovenia]: [{
|
|
349
|
+
id: "SI_TAX_NUMBER",
|
|
350
|
+
name: "taxInformationNumber__SI_Individual",
|
|
351
|
+
applicableOnlyFor: ["individual"]
|
|
352
|
+
}, {
|
|
353
|
+
id: "NATIONAL_IDENTIFICATION_NUMBER",
|
|
354
|
+
name: "taxInformationNumber__SI_Org",
|
|
355
|
+
applicableOnlyFor: ["privateCompany"]
|
|
356
|
+
}],
|
|
357
|
+
[CountryCodes.SouthAfrica]: [{
|
|
358
|
+
id: "INCOME_TAX_REFERENCE_NUMBER",
|
|
359
|
+
name: "taxInformationNumber__ZA",
|
|
360
|
+
applicableOnlyFor: ["individual"]
|
|
361
|
+
}],
|
|
362
|
+
[CountryCodes.Spain]: [
|
|
363
|
+
{
|
|
364
|
+
id: "DNI",
|
|
365
|
+
name: "dni",
|
|
366
|
+
applicableOnlyFor: ["individual"]
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
id: "NIE",
|
|
370
|
+
name: "nie",
|
|
371
|
+
applicableOnlyFor: ["individual"]
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
id: "NIF",
|
|
375
|
+
name: "NIF",
|
|
376
|
+
applicableOnlyFor: ["privateCompany"]
|
|
377
|
+
}
|
|
378
|
+
],
|
|
379
|
+
[CountryCodes.Sweden]: [{
|
|
380
|
+
id: "PERSONNUMMER",
|
|
381
|
+
name: "taxInformationNumber__SE",
|
|
382
|
+
applicableOnlyFor: ["individual"]
|
|
383
|
+
}],
|
|
384
|
+
[CountryCodes.Switzerland]: [{
|
|
385
|
+
id: "AHV_NUMBER",
|
|
386
|
+
name: "taxInformationNumber__CH",
|
|
387
|
+
applicableOnlyFor: ["individual"]
|
|
388
|
+
}],
|
|
389
|
+
[CountryCodes.UnitedArabEmirates]: [{
|
|
390
|
+
id: "EMIRATES_ID",
|
|
391
|
+
name: "taxInformationNumber__AE",
|
|
392
|
+
applicableOnlyFor: ["individual"]
|
|
393
|
+
}],
|
|
394
|
+
[CountryCodes.UnitedKingdom]: [{
|
|
395
|
+
id: "UTR",
|
|
396
|
+
name: "utr"
|
|
397
|
+
}, {
|
|
398
|
+
id: "NINO",
|
|
399
|
+
name: "nationalInsuranceNumber",
|
|
400
|
+
applicableOnlyFor: ["individual"]
|
|
401
|
+
}],
|
|
402
|
+
[CountryCodes.UnitedStates]: [{
|
|
403
|
+
id: "EIN",
|
|
404
|
+
name: "ein"
|
|
405
|
+
}]
|
|
406
|
+
};
|
|
407
|
+
var getTaxIdNumberOptions = (country, companyType) => {
|
|
408
|
+
const optionsForCountry = taxIdNumberOptions[country];
|
|
409
|
+
if (!optionsForCountry) return optionsForCountry;
|
|
410
|
+
if (isRestrictedEntityType(companyType)) return optionsForCountry.filter((option) => option.applicableOnlyFor?.includes(companyType) ?? true);
|
|
411
|
+
return optionsForCountry.filter((option) => !isApplicableOnlyForSingleRestrictedType(option));
|
|
412
|
+
};
|
|
413
|
+
var getTaxIdNumberSelectorOptions = (country, companyType, exemptedOptionLabel) => {
|
|
414
|
+
const availableOptions = getTaxIdNumberOptions(country, companyType) ?? [];
|
|
415
|
+
if (availableOptions.length === 0 || !exemptedOptionLabel) return availableOptions;
|
|
416
|
+
return [...availableOptions, {
|
|
417
|
+
id: "exempted",
|
|
418
|
+
name: exemptedOptionLabel
|
|
419
|
+
}];
|
|
420
|
+
};
|
|
421
|
+
function getValidCompanyTypesForTaxIdNumberType(country, taxIdNumberType) {
|
|
422
|
+
if (!taxIdNumberType) return void 0;
|
|
423
|
+
const taxIdOption = taxIdNumberOptions[country]?.find((option) => option.id === taxIdNumberType);
|
|
424
|
+
if (!taxIdOption?.applicableOnlyFor) return void 0;
|
|
425
|
+
const validCompanyTypes = taxIdOption.applicableOnlyFor.filter((type) => type !== "individual" && type !== "trust" && type !== "unincorporatedPartnership");
|
|
426
|
+
return validCompanyTypes.length > 0 ? validCompanyTypes : void 0;
|
|
427
|
+
}
|
|
428
|
+
//#endregion
|
|
429
|
+
//#region src/utils/businessUtils.ts
|
|
430
|
+
/**
|
|
431
|
+
* @description Countries in this list use the provider-backed company search flow.
|
|
432
|
+
* For these countries, business details can be prefilled from provider results,
|
|
433
|
+
* and search/verification may require tax identifiers (for example TIN or VAT)
|
|
434
|
+
* in addition to company name/registration details.
|
|
435
|
+
*
|
|
436
|
+
* If a country is in this list, it means it will attempt to make an api call for company search.
|
|
437
|
+
* If the api doesnt have a provider for that country, it will return no results like below
|
|
438
|
+
* ```
|
|
439
|
+
* {
|
|
440
|
+
* "results": [],
|
|
441
|
+
* "provider": "NO_PROVIDER"
|
|
442
|
+
* }
|
|
443
|
+
* ```
|
|
444
|
+
*/
|
|
445
|
+
var COUNTRIES_USING_COMPANY_SEARCH = [
|
|
446
|
+
CountryCodes.UnitedStates,
|
|
447
|
+
CountryCodes.UnitedKingdom,
|
|
448
|
+
CountryCodes.Germany,
|
|
449
|
+
CountryCodes.France
|
|
450
|
+
];
|
|
451
|
+
/**
|
|
452
|
+
* Source of truth for registration-number exemption eligibility in Business Details.
|
|
453
|
+
*
|
|
454
|
+
* This map defines which company types can use `exemptedFromRegistrationNumber`, grouped by
|
|
455
|
+
* country. All exemption checks should be derived from this structure to keep behavior consistent
|
|
456
|
+
* across form rules.
|
|
457
|
+
*
|
|
458
|
+
* Interpretation:
|
|
459
|
+
* - Non-empty array: exemption is allowed only for the listed company types.
|
|
460
|
+
* - Empty array: exemption is allowed for that country without company-type restrictions.
|
|
461
|
+
*
|
|
462
|
+
*/
|
|
463
|
+
var REGISTRATION_NUMBER_EXEMPTION_RULES = {
|
|
464
|
+
[CountryCodes.Australia]: ["governmentalOrganization", "partnershipIncorporated"],
|
|
465
|
+
[CountryCodes.Austria]: ["soleProprietorship"],
|
|
466
|
+
[CountryCodes.Canada]: ["soleProprietorship"],
|
|
467
|
+
[CountryCodes.Denmark]: ["nonProfit"],
|
|
468
|
+
[CountryCodes.Finland]: ["soleProprietorship"],
|
|
469
|
+
[CountryCodes.Germany]: [
|
|
470
|
+
"governmentalOrganization",
|
|
471
|
+
"nonProfit",
|
|
472
|
+
"soleProprietorship"
|
|
473
|
+
],
|
|
474
|
+
[CountryCodes.HongKong]: [
|
|
475
|
+
"privateCompany",
|
|
476
|
+
"nonProfit",
|
|
477
|
+
"listedPublicCompany",
|
|
478
|
+
"unlistedPublicCompany",
|
|
479
|
+
"governmentalOrganization",
|
|
480
|
+
"partnershipIncorporated",
|
|
481
|
+
"associationIncorporated"
|
|
482
|
+
],
|
|
483
|
+
[CountryCodes.Lithuania]: ["soleProprietorship"],
|
|
484
|
+
[CountryCodes.Luxembourg]: ["soleProprietorship"],
|
|
485
|
+
[CountryCodes.NewZealand]: [],
|
|
486
|
+
[CountryCodes.Poland]: ["soleProprietorship"],
|
|
487
|
+
[CountryCodes.Sweden]: ["soleProprietorship"],
|
|
488
|
+
[CountryCodes.Switzerland]: ["soleProprietorship"]
|
|
489
|
+
};
|
|
490
|
+
/**
|
|
491
|
+
* Determines whether a registration-number exemption can be offered for a country and company type.
|
|
492
|
+
*
|
|
493
|
+
* Provide `companyType` when checking a specific entity (including a sole proprietorship); this checks
|
|
494
|
+
* that exact type against the country's rule. Omit it when deciding whether to show the exemption option
|
|
495
|
+
* for all company types in that country; it is then available only when at least one
|
|
496
|
+
* non-sole-proprietorship type is eligible.
|
|
497
|
+
*
|
|
498
|
+
* This distinction prevents sole-proprietorship-only countries from exposing the exemption to
|
|
499
|
+
* businesses while still allowing unrestricted countries (an empty rule) for every entity type.
|
|
500
|
+
*/
|
|
501
|
+
var isRegistrationExemptionAllowed = ({ country, companyType }) => {
|
|
502
|
+
const allowedCompanyTypes = REGISTRATION_NUMBER_EXEMPTION_RULES[country];
|
|
503
|
+
if (!allowedCompanyTypes) return false;
|
|
504
|
+
if (allowedCompanyTypes.length === 0) return true;
|
|
505
|
+
return companyType ? allowedCompanyTypes.includes(companyType) : allowedCompanyTypes.some((allowedCompanyType) => allowedCompanyType !== "soleProprietorship");
|
|
506
|
+
};
|
|
507
|
+
var isRegistrationNumberAbsentStateV4Scenario = (country, entityType) => country === CountryCodes.Australia && (entityType === "governmentalOrganization" || entityType === "partnershipIncorporated") || country === CountryCodes.NewZealand;
|
|
508
|
+
var COUNTRIES_THAT_DONT_REQUIRE_COMPANY_REGISTRATION = [
|
|
509
|
+
CountryCodes.HongKong,
|
|
510
|
+
CountryCodes.Mexico,
|
|
511
|
+
CountryCodes.PuertoRico,
|
|
512
|
+
CountryCodes.UnitedStates
|
|
513
|
+
];
|
|
514
|
+
var COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER = [CountryCodes.Canada, CountryCodes.UnitedStates];
|
|
515
|
+
/**
|
|
516
|
+
* Also used to determine what documenttype needs to be used
|
|
517
|
+
* when uploading tax document in mapping.ts
|
|
518
|
+
* */
|
|
519
|
+
var COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT = [
|
|
520
|
+
CountryCodes.Australia,
|
|
521
|
+
CountryCodes.Canada,
|
|
522
|
+
CountryCodes.Gibraltar,
|
|
523
|
+
CountryCodes.HongKong,
|
|
524
|
+
CountryCodes.NewZealand,
|
|
525
|
+
CountryCodes.PuertoRico,
|
|
526
|
+
CountryCodes.Singapore,
|
|
527
|
+
CountryCodes.UnitedStates,
|
|
528
|
+
CountryCodes.Guernsey,
|
|
529
|
+
CountryCodes.Jersey,
|
|
530
|
+
CountryCodes.IsleOfMan,
|
|
531
|
+
CountryCodes.Mexico,
|
|
532
|
+
CountryCodes.Brazil,
|
|
533
|
+
CountryCodes.Japan
|
|
534
|
+
];
|
|
535
|
+
var COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_COMPANIES = [];
|
|
536
|
+
var COUNTRIES_REQUIRING_FINANCIAL_INFORMATION = [
|
|
537
|
+
CountryCodes.Austria,
|
|
538
|
+
CountryCodes.Belgium,
|
|
539
|
+
CountryCodes.Croatia,
|
|
540
|
+
CountryCodes.Cyprus,
|
|
541
|
+
CountryCodes.Estonia,
|
|
542
|
+
CountryCodes.Finland,
|
|
543
|
+
CountryCodes.France,
|
|
544
|
+
CountryCodes.Germany,
|
|
545
|
+
CountryCodes.Greece,
|
|
546
|
+
CountryCodes.Ireland,
|
|
547
|
+
CountryCodes.Italy,
|
|
548
|
+
CountryCodes.Latvia,
|
|
549
|
+
CountryCodes.Lithuania,
|
|
550
|
+
CountryCodes.Luxembourg,
|
|
551
|
+
CountryCodes.Malta,
|
|
552
|
+
CountryCodes.Netherlands,
|
|
553
|
+
CountryCodes.Portugal,
|
|
554
|
+
CountryCodes.Slovakia,
|
|
555
|
+
CountryCodes.Slovenia,
|
|
556
|
+
CountryCodes.Spain,
|
|
557
|
+
CountryCodes.UnitedKingdom
|
|
558
|
+
];
|
|
559
|
+
var COUNTRIES_WITH_POSSIBLE_TRUSTEE_TAXID_ABSENT_V4 = [CountryCodes.Australia];
|
|
560
|
+
var TAX_ID_REQUIRED_COUNTRIES_ORGANIZATION = [
|
|
561
|
+
CountryCodes.Austria,
|
|
562
|
+
CountryCodes.Belgium,
|
|
563
|
+
CountryCodes.Croatia,
|
|
564
|
+
CountryCodes.Cyprus,
|
|
565
|
+
CountryCodes.Germany,
|
|
566
|
+
CountryCodes.Greece,
|
|
567
|
+
CountryCodes.Ireland,
|
|
568
|
+
CountryCodes.Luxembourg,
|
|
569
|
+
CountryCodes.Malta,
|
|
570
|
+
CountryCodes.Netherlands,
|
|
571
|
+
CountryCodes.Slovakia,
|
|
572
|
+
CountryCodes.Slovenia
|
|
573
|
+
];
|
|
574
|
+
/**
|
|
575
|
+
* Sole proprietorship specific rules
|
|
576
|
+
*/
|
|
577
|
+
var COUNTRIES_THAT_DONT_REQUIRE_SOLE_PROP_REGISTRATION = [
|
|
578
|
+
CountryCodes.Australia,
|
|
579
|
+
CountryCodes.Gibraltar,
|
|
580
|
+
CountryCodes.Guernsey,
|
|
581
|
+
CountryCodes.HongKong,
|
|
582
|
+
CountryCodes.Ireland,
|
|
583
|
+
CountryCodes.IsleOfMan,
|
|
584
|
+
CountryCodes.Jersey,
|
|
585
|
+
CountryCodes.Malta,
|
|
586
|
+
CountryCodes.Mexico,
|
|
587
|
+
CountryCodes.PuertoRico,
|
|
588
|
+
CountryCodes.Spain,
|
|
589
|
+
CountryCodes.UnitedKingdom,
|
|
590
|
+
CountryCodes.UnitedStates
|
|
591
|
+
];
|
|
592
|
+
var COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_SOLE_PROPS = [
|
|
593
|
+
CountryCodes.Canada,
|
|
594
|
+
CountryCodes.PuertoRico,
|
|
595
|
+
CountryCodes.UnitedStates
|
|
596
|
+
];
|
|
597
|
+
var COUNTRIES_THAT_DO_NOT_USE_TAX_ID_FOR_SOLE_PROP = [CountryCodes.Singapore];
|
|
598
|
+
var COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER_SOLE_PROPS = [CountryCodes.Germany];
|
|
599
|
+
var isUsingCompanySearch = (country, taskType) => {
|
|
600
|
+
if (taskType !== TaskTypes.BUSINESS_DETAILS) return false;
|
|
601
|
+
return COUNTRIES_USING_COMPANY_SEARCH.includes(country);
|
|
602
|
+
};
|
|
603
|
+
/**
|
|
604
|
+
* A Japanese business has a kanji legal name and a katakana reading of it, neither of which can be
|
|
605
|
+
* derived from the roman one, so they travel beside it as script localizations.
|
|
606
|
+
*
|
|
607
|
+
* @param data the form section holding the localized name fields, whatever the task calls it
|
|
608
|
+
* @returns the localizations that were filled in, so an empty array when neither was asked for
|
|
609
|
+
*/
|
|
610
|
+
var mapJapaneseLegalNamesToLocalization = (data) => [mapSchemaFieldsToApiScriptLocalization(data, "jaHani"), mapSchemaFieldsToApiScriptLocalization(data, "jaKana")].filter(({ fields }) => !isEmpty(fields)).map(({ script, fields }) => ({
|
|
611
|
+
script,
|
|
612
|
+
fields: { legalName: fields.legalCompanyName }
|
|
613
|
+
}));
|
|
614
|
+
/**
|
|
615
|
+
* Reads the kanji and katakana legal names back out of the script localizations, so they can
|
|
616
|
+
* prefill the fields they came from.
|
|
617
|
+
*
|
|
618
|
+
* @param localization the organization's script localizations, when it has any
|
|
619
|
+
*/
|
|
620
|
+
var mapLocalizationToJapaneseLegalNames = (localization) => (localization ?? []).reduce((schemaFields, { script, fields }) => ({
|
|
621
|
+
...schemaFields,
|
|
622
|
+
...mapApiScriptLocalizationToSchemaFields({
|
|
623
|
+
script,
|
|
624
|
+
fields: { legalCompanyName: fields?.legalName }
|
|
625
|
+
})
|
|
626
|
+
}), {});
|
|
627
|
+
//#endregion
|
|
628
|
+
//#region src/components/Shared/fields/TaxInformationField/fieldConfig.ts
|
|
629
|
+
var taxInformationDefaultFieldMetadata = { label: "taxId" };
|
|
630
|
+
var exemptedFromTaxDefaultFieldMetadata = { label: "iDontHaveATaxId" };
|
|
631
|
+
/**
|
|
632
|
+
* Mapping function to parse TaxInformation schemas to validate the string for TaxInformation.number
|
|
633
|
+
*
|
|
634
|
+
* @param validators - String validators for the TaxInformation.number
|
|
635
|
+
* @param country - Country in the fieldConfig
|
|
636
|
+
*/
|
|
637
|
+
var mapValidators = (validators, country) => validators.map((validator) => ({
|
|
638
|
+
...validator,
|
|
639
|
+
validate: (taxInformation) => {
|
|
640
|
+
const taxInfo = taxInformation?.find((taxId) => country === taxId.country);
|
|
641
|
+
if (taxInfo?.numberAbsent) return true;
|
|
642
|
+
return taxInfo?.number ? validator.validate(taxInfo.number) : false;
|
|
643
|
+
}
|
|
644
|
+
}));
|
|
645
|
+
var taxInformationDefaultFieldConfig = {
|
|
646
|
+
[CountryCodes.Australia]: ({ taxIdNumberType }) => {
|
|
647
|
+
switch (taxIdNumberType) {
|
|
648
|
+
case "TFN": return {
|
|
649
|
+
label: "taxInformationNumber__AU_Individual",
|
|
650
|
+
validators: mapValidators([validatePatternOnBlur(/^\d{9}$/)], CountryCodes.Australia),
|
|
651
|
+
mask: { mask: makeMask(...numericInputs(9)) },
|
|
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 { taxIdNumberOptions as A, isRegistrationNumberAbsentStateV4Scenario as C, getTaxIdNumberOptions as D, mapLocalizationToJapaneseLegalNames as E, getTaxIdNumberSelectorOptions as O, isRegistrationExemptionAllowed as S, mapJapaneseLegalNamesToLocalization as T, COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_COMPANIES as _, exemptedFromTaxDefaultFieldConfig as a, REGISTRATION_NUMBER_EXEMPTION_RULES as b, taxInformationDefaultFieldConfig as c, COUNTRIES_THAT_DONT_REQUIRE_COMPANY_REGISTRATION as d, COUNTRIES_THAT_DONT_REQUIRE_SOLE_PROP_REGISTRATION as f, COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER_SOLE_PROPS as g, COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER as h, findExistingTaxInformation as i, getValidCompanyTypesForTaxIdNumberType as k, taxInformationDefaultFieldMetadata as l, COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT as m, upsertTaxInfoForCountry as n, exemptedFromTaxDefaultFieldMetadata as o, COUNTRIES_THAT_DO_NOT_USE_TAX_ID_FOR_SOLE_PROP as p, TaxIdNumberTypeSelector as r, getTaxInformationPlaceholderText as s, removeTaxInfoForCountry as t, COUNTRIES_REQUIRING_FINANCIAL_INFORMATION as u, COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_SOLE_PROPS as v, isUsingCompanySearch as w, TAX_ID_REQUIRED_COUNTRIES_ORGANIZATION as x, COUNTRIES_WITH_POSSIBLE_TRUSTEE_TAXID_ABSENT_V4 as y };
|