@adyen/kyc-components 4.0.0 → 4.2.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/README.md +43 -30
- package/dist/4-people-BtDi7O9A.js +24 -0
- package/dist/AcceptTermsOfServiceComponent-DBf9qvsO.js +650 -0
- package/dist/Accordion-CqtzWVjL.js +88 -0
- package/dist/AccountSetupRejected-B_bbYtM2.js +26 -0
- package/dist/ActionBar-Dnv6j3rc.js +31 -0
- package/dist/Address-CbJvGOYV.js +1112 -0
- package/dist/Alert-uX8GYjqW.js +169 -0
- package/dist/Avatar-Cj2W0_1v.js +60 -0
- package/dist/BG-HKzabLqZ.js +27 -0
- package/dist/BusinessFinancingComponent-Bx2K8iN3.js +55 -0
- package/dist/BusinessFinancingDropin-CKsHfJ2J.js +2235 -0
- package/dist/BusinessFinancingPage-DmnaOPvo.js +43 -0
- package/dist/BusinessTypeSelectionPage-Bz0czSjO.js +440 -0
- package/dist/Card-OQuFzmxm.js +90 -0
- package/dist/Checkbox-BSxszx-9.js +74 -0
- package/dist/Confirm-DviRmz4e.js +64 -0
- package/dist/ConstitutionalDocument-hcS_-kxn.js +2361 -0
- package/dist/ContactDetails-BHn4lDFA.js +396 -0
- package/dist/ContextGuidance-BgMTeWIT.js +34 -0
- package/dist/ContractViewer-DcQHIGMU.js +935 -0
- package/dist/CountryField-D-WDIPSz.js +66 -0
- package/dist/CreateIndividualComponent-BJnGALzE.js +65 -0
- package/dist/CreateTransferInstrumentComponent-BudZmP_i.js +56 -0
- package/dist/Currency-BmTfhWzY.js +238 -0
- package/dist/CustomerSupport-C5g_pNY4.js +156 -0
- package/dist/DebugModal-C46w3DN5.js +416 -0
- package/dist/DecisionMakerDetailsPage-CMDK81px.js +104 -0
- package/dist/DecisionMakers-BbHkdcWY.js +858 -0
- package/dist/Dropzone-DMzbyRRZ.js +224 -0
- package/dist/EmbeddedStatus-Cto-qd3u.js +97 -0
- package/dist/EndStateLayout-Ds-6EhEu.js +71 -0
- package/dist/EntityAssociation-CAyTgh0S.js +178 -0
- package/dist/EntityGuidanceStatus-BdYW3yoc.js +106 -0
- package/dist/ErrorPanel-Doqj6bY8.js +194 -0
- package/dist/Field-CpaVW2RZ.js +141 -0
- package/dist/FormNavigation-D8lokOpO.js +144 -0
- package/dist/FormWrapper--B4boODe.js +135 -0
- package/dist/Header-hKHJmYRN.js +83 -0
- package/dist/Image-DIxxTupT.js +27 -0
- package/dist/Individual.rules-BAgQIMbK.js +383 -0
- package/dist/IndividualDropin-CpAEsMsL.js +5168 -0
- package/dist/InputDate-CoQAEyvT.js +43 -0
- package/dist/InputGroup-WBfGDV5F.js +32 -0
- package/dist/InputText-DmFCHVKa.js +134 -0
- package/dist/Introduction-DlnfG2qx.js +256 -0
- package/dist/JpAddress-D9wzTLlZ.js +329 -0
- package/dist/LandingLayout-pnTFiHf3.js +60 -0
- package/dist/LegalCompanyNameField-BOTkQIk6.js +138 -0
- package/dist/LegalRepresentativeDetailsPage-CnYE0t7-.js +55 -0
- package/dist/Link-B1s8_T7-.js +35 -0
- package/dist/List-BAzyC6sw.js +83 -0
- package/dist/ListItem-Coa9aGdN.js +69 -0
- package/dist/LoaderWrapper-YTarCjI9.js +42 -0
- package/dist/ManageIndividualComponent-D_RLxMfQ.js +46 -0
- package/dist/ManageTermsOfServiceComponent-VzhHb2cE.js +52 -0
- package/dist/ManageTransferInstrumentComponent-DevLP2pk.js +292 -0
- package/dist/MaskedInput-DEaltj9a.js +811 -0
- package/dist/MaybeModal-BcNIbjko.js +36 -0
- package/dist/Modal-sn2wYRN6.js +147 -0
- package/dist/Name-0TfRqG2t.js +81 -0
- package/dist/OnboardingDropinComponent-xFXjVEe0.js +2672 -0
- package/dist/PayoutDetailsDropin-popMzwBb.js +4972 -0
- package/dist/ProgressBar-B7gTQncy.js +47 -0
- package/dist/Radio-BMtxBpnn.js +39 -0
- package/dist/RadioGroup-B7fMJqmd.js +100 -0
- package/dist/RadioGroupCard-BqnCzi0b.js +152 -0
- package/dist/Review-DiV6r3gZ.js +84 -0
- package/dist/RootBusinessDetailsPage-BfQ4Pwdu.js +50 -0
- package/dist/RootBusinessLinesPage-CiZs8smP.js +1553 -0
- package/dist/RootIndividualDetailsPage-C92QtbjO.js +62 -0
- package/dist/Select-Cb77B0ji.js +868 -0
- package/dist/SignPCIComponent-B83OWndG.js +307 -0
- package/dist/SingpassSelection-Cc-ulD5h.js +132 -0
- package/dist/SoleProprietorshipPage-BYZkXtGh.js +50 -0
- package/dist/SourceOfFundsPage-DorVNEQ9.js +2162 -0
- package/dist/Spacer-BK3jDget.js +18 -0
- package/dist/StepProgressIndicator-DJ9FpFXO.js +78 -0
- package/dist/StoreProvider-qjyWZhxu.js +4845 -0
- package/dist/StructuredList-BNLhk_zV.js +61 -0
- package/dist/Summary-Bgq_Kcjg.js +220 -0
- package/dist/TaskVerificationStatus-DOZKjK09.js +129 -0
- package/dist/TaxInformationField-Dxx36AGr.js +3735 -0
- package/dist/TaxReportingDropin-tQf3UTtj.js +503 -0
- package/dist/TextArea-B4QNgWAM.js +103 -0
- package/dist/TileGroup-Dwrh9ZxO.js +203 -0
- package/dist/TrustDetailsPage-CKFlO2Ug.js +2187 -0
- package/dist/TrustMemberCompanyPage-BeeQ4TlK.js +68 -0
- package/dist/TrustMemberIndividualPage-cPDpa-cf.js +64 -0
- package/dist/TrustMemberRoleAndTypePage-C_isMpuS.js +1081 -0
- package/dist/TrustMembersOverview-CixBpWbT.js +439 -0
- package/dist/UnincorporatedPartnershipIndividualPage-BvVu1mfm.js +63 -0
- package/dist/UnincorporatedPartnershipMemberCompanyPage-HFF2AWev.js +71 -0
- package/dist/UnincorporatedPartnershipMemberRoleAndTypePage-DWRiDapM.js +292 -0
- package/dist/UnincorporatedPartnershipMembersOverview-BgxWBXQP.js +173 -0
- package/dist/VerificationErrorAlert-DjNgDy5_.js +60 -0
- package/dist/ViewVerificationStatusComponent-BZWz8bMd.js +181 -0
- package/dist/accountHolderUtils-dRujT8-D.js +66 -0
- package/dist/adyen-business-financing.js +13 -5
- package/dist/adyen-individual-configuration.js +8 -4
- package/dist/adyen-individual-status.js +5 -4
- package/dist/adyen-invited-decision-maker.js +87 -0
- package/dist/adyen-kyc-components.js +23 -21
- package/dist/adyen-onboarding.js +8 -4
- package/dist/adyen-terms-of-service-management.js +8 -4
- package/dist/adyen-terms-of-service-status.js +5 -4
- package/dist/adyen-transfer-instrument-configuration.js +8 -4
- package/dist/adyen-transfer-instrument-management.js +5 -4
- package/dist/adyen-verification-status.js +8 -4
- package/dist/arrow-right-BoqwUH_d.js +14 -0
- package/dist/bafinUtils-CyvEB6AP.js +80 -0
- package/dist/bag-BXVWLrwo.js +14 -0
- package/dist/bank-1GvaHPAZ.js +14 -0
- package/dist/bg-BG-6XzbmxcW.js +13 -0
- package/dist/bg-BG-C6kad3Qr.js +61 -0
- package/dist/bg-BG-CEipapl4.js +63 -0
- package/dist/bg-BG-CFuVZnaC.js +13 -0
- package/dist/bg-BG-DAqp35Dx.js +13 -0
- package/dist/bg-BG-DMNRRZZE.js +75 -0
- package/dist/bg-BG-DyX-yYYI.js +13 -0
- package/dist/bg-BG-K7feXvEc.js +38 -0
- package/dist/bg-BG-zZhDshGi.js +65 -0
- package/dist/bin-Ba-3ll8T.js +18 -0
- package/dist/business-lines-BAqTbnBw.js +135 -0
- package/dist/capital-9TKHySO7.js +17 -0
- package/dist/cash-stack-DwYu4xNy.js +22 -0
- package/dist/certificate-N2YFedpI.js +17 -0
- package/dist/checkmark-D9dGhGpG.js +14 -0
- package/dist/checkmark-circle-CFWClLQ6.js +20 -0
- package/dist/checkmark-circle-fill-DEB-tuGl.js +17 -0
- package/dist/checkmark-small-D3VNx2lo.js +14 -0
- package/dist/chevron-down-C7SUSYfl.js +14 -0
- package/dist/chevron-left-BXmd-S46.js +14 -0
- package/dist/chevron-right-jE6RwM2B.js +14 -0
- package/dist/chevron-up-BdfNcqzq.js +14 -0
- package/dist/circle-BJPTMCWB.js +17 -0
- package/dist/circle-small-filled-BuO8Vg8j.js +14 -0
- package/dist/clock-DAzaBRWk.js +20 -0
- package/dist/coins-DYdzG5e_.js +17 -0
- package/dist/commonValidators-C9eSN1bv.js +24 -0
- package/dist/company-types-value-D_mKv5PT.js +23 -0
- package/dist/contract-BfJb1t6M.js +14 -0
- package/dist/cross-CDS_eot4.js +14 -0
- package/dist/cross-circle-fill-C-EJ57Yn.js +17 -0
- package/dist/cross-circle-fill-small-DkPjsuBH.js +14 -0
- package/dist/cs-CZ-BD5bYeuJ.js +13 -0
- package/dist/cs-CZ-BHbWTH_v.js +63 -0
- package/dist/cs-CZ-C6vEQ8P9.js +13 -0
- package/dist/cs-CZ-CYQO0o5V.js +38 -0
- package/dist/cs-CZ-CYsR__kj.js +13 -0
- package/dist/cs-CZ-C_GFp3nV.js +61 -0
- package/dist/cs-CZ-Ck22NTT9.js +65 -0
- package/dist/cs-CZ-DXSMRqPu.js +75 -0
- package/dist/cs-CZ-Ke47w0bj.js +13 -0
- package/dist/currency-CrdnaaDu.js +35 -0
- package/dist/da-DK-B3Pg-MWO.js +13 -0
- package/dist/da-DK-C60mLiV1.js +61 -0
- package/dist/da-DK-CGWvmdkq.js +38 -0
- package/dist/da-DK-Cd5IQPv3.js +75 -0
- package/dist/da-DK-Cx4-hLO1.js +13 -0
- package/dist/da-DK-DQ4ZYSea.js +65 -0
- package/dist/da-DK-DzcTI92X.js +13 -0
- package/dist/da-DK-h8DYQ_Iq.js +13 -0
- package/dist/da-DK-vcVNQJbX.js +63 -0
- package/dist/datasetUtil-BHQp0-xL.js +58 -0
- package/dist/de-DE-C9NH2zMh.js +75 -0
- package/dist/de-DE-CL8D8vKZ.js +13 -0
- package/dist/de-DE-CWEW2yqg.js +63 -0
- package/dist/de-DE-CkbOZ6S_.js +65 -0
- package/dist/de-DE-Cvz1TGdB.js +61 -0
- package/dist/de-DE-DHDJhahG.js +38 -0
- package/dist/de-DE-LQE_LFFL.js +13 -0
- package/dist/de-DE-S6qDey1L.js +13 -0
- package/dist/de-DE-dPfrbCii.js +13 -0
- package/dist/debouncedInputEvent-Cv2S512Y.js +46 -0
- package/dist/decision-makers-group-DrvpnEqj.js +1944 -0
- package/dist/digital-wallet-Bx5YM1LY.js +46 -0
- package/dist/document-1-qlSTF558.js +14 -0
- package/dist/document-blurred-BiWap0xs.js +37 -0
- package/dist/document-cut-off-aQezqOif.js +32 -0
- package/dist/document-expired-BhBXaWWQ.js +38 -0
- package/dist/document-front-DYuhZGeQ.js +30 -0
- package/dist/document-person-CDbnTOdV.js +20 -0
- package/dist/download-BZQB1WkZ.js +17 -0
- package/dist/dropinUtils-CAGEedke.js +200 -0
- package/dist/edit-1-DAqtnOIx.js +14 -0
- package/dist/el-GR-B78b9rSH.js +63 -0
- package/dist/el-GR-DGbzdIL0.js +13 -0
- package/dist/el-GR-DHNlnOwf.js +38 -0
- package/dist/el-GR-DSlgFwLb.js +61 -0
- package/dist/el-GR-DTHQslLc.js +75 -0
- package/dist/el-GR-Dazirlmt.js +13 -0
- package/dist/el-GR-DoS_Va-n.js +13 -0
- package/dist/el-GR-DudORw4U.js +65 -0
- package/dist/el-GR-Dvv3-Qib.js +13 -0
- package/dist/en-US-AgtwE4Fl.js +63 -0
- package/dist/en-US-BSQXKu6d.js +54 -0
- package/dist/en-US-CjjPhkB5.js +65 -0
- package/dist/en-US-D1sB335h.js +61 -0
- package/dist/en-US-DLY20x1O.js +13 -0
- package/dist/en-US-DoiQhi0j.js +38 -0
- package/dist/en-US-G607HIyo.js +75 -0
- package/dist/en-US-cVpRgdC8.js +13 -0
- package/dist/es-ES--IvNed_Q.js +13 -0
- package/dist/es-ES-BAolMrZ0.js +65 -0
- package/dist/es-ES-BYl5-PFR.js +13 -0
- package/dist/es-ES-CDgjGql5.js +63 -0
- package/dist/es-ES-CxnsKEh4.js +38 -0
- package/dist/es-ES-DK-7qtDf.js +75 -0
- package/dist/es-ES-DdGmXdxO.js +13 -0
- package/dist/es-ES-Dj5-YMmZ.js +61 -0
- package/dist/es-ES-Vn4AcK9-.js +13 -0
- package/dist/et-EE-4fHYOoff.js +13 -0
- package/dist/et-EE-BOIrYrz9.js +65 -0
- package/dist/et-EE-BQixWUEV.js +38 -0
- package/dist/et-EE-BeZJ4Ub1.js +13 -0
- package/dist/et-EE-Bij5j-z5.js +61 -0
- package/dist/et-EE-CsTXSlnY.js +13 -0
- package/dist/et-EE-D0PMC4ie.js +63 -0
- package/dist/et-EE-D5SNtVsM.js +13 -0
- package/dist/et-EE-DNC4hcxm.js +75 -0
- package/dist/external-link-Cg6pJaSJ.js +14 -0
- package/dist/fi-FI-57-xkioo.js +38 -0
- package/dist/fi-FI-B2xHiSHi.js +61 -0
- package/dist/fi-FI-BJLU1JHw.js +75 -0
- package/dist/fi-FI-BUixKfXH.js +13 -0
- package/dist/fi-FI-CIYa9SyS.js +13 -0
- package/dist/fi-FI-CWIaV6Iz.js +13 -0
- package/dist/fi-FI-CsZlDJFb.js +63 -0
- package/dist/fi-FI-D8WrLxxq.js +65 -0
- package/dist/fi-FI-DFxljML-.js +13 -0
- package/dist/fieldConfigurations-BUT9DTUH.js +21 -0
- package/dist/filterProblemsByTaskForms-Cz7iQtms.js +30 -0
- package/dist/form-rules-DhbF2mY4.js +13 -0
- package/dist/formUtils-BYIcPMjp.js +107 -0
- package/dist/fr-FR-B2je0smB.js +75 -0
- package/dist/fr-FR-BM-qNLci.js +13 -0
- package/dist/fr-FR-Beljeilc.js +65 -0
- package/dist/fr-FR-BxiX8Zfi.js +38 -0
- package/dist/fr-FR-CCb4Oux7.js +13 -0
- package/dist/fr-FR-CNQtWSXx.js +61 -0
- package/dist/fr-FR-DPehHVb6.js +13 -0
- package/dist/fr-FR-VoxPkXSc.js +63 -0
- package/dist/fr-FR-l5z31r7i.js +13 -0
- package/dist/funds-in-CInoUdmG.js +21 -0
- package/dist/getName-BIUEu4TI.js +41 -0
- package/dist/getProblemsForEntity-BFrbrf8n.js +24 -0
- package/dist/getProps-Cc3J2-z9.js +148 -0
- package/dist/getTrustedFields-C5-mXl-l.js +64 -0
- package/dist/gift-omNInZeB.js +14 -0
- package/dist/graph-DunG_uu1.js +21 -0
- package/dist/graph-up-BZze4i6m.js +20 -0
- package/dist/headquarter-BhpSibFO.js +21 -0
- package/dist/hotel-Cp7VgGCJ.js +22 -0
- package/dist/house-BhyBQdR3.js +21 -0
- package/dist/hr-HR-B6U5Rzzw.js +61 -0
- package/dist/hr-HR-BAI0N9bo.js +13 -0
- package/dist/hr-HR-BF74vdPD.js +13 -0
- package/dist/hr-HR-Bjx-KdVs.js +13 -0
- package/dist/hr-HR-BtowKWUi.js +13 -0
- package/dist/hr-HR-BynZTNSB.js +38 -0
- package/dist/hr-HR-C0NLgF1r.js +75 -0
- package/dist/hr-HR-CbdP2tk-.js +63 -0
- package/dist/hr-HR-lIHN6Yl2.js +65 -0
- package/dist/hu-HU-B-lUkFnQ.js +13 -0
- package/dist/hu-HU-BLLoj5CX.js +61 -0
- package/dist/hu-HU-BpNDP1I8.js +13 -0
- package/dist/hu-HU-BtRIDozk.js +38 -0
- package/dist/hu-HU-CWdwNCev.js +65 -0
- package/dist/hu-HU-DU-5ujQK.js +75 -0
- package/dist/hu-HU-DYhMVR_c.js +13 -0
- package/dist/hu-HU-MHIPehPS.js +13 -0
- package/dist/hu-HU-pFpTvMiD.js +63 -0
- package/dist/id-blurred-B5lHEP8M.js +59 -0
- package/dist/id-cut-off-Ba1FRzKO.js +55 -0
- package/dist/id-front-CpNWN6nG.js +52 -0
- package/dist/id-glare-DgCQON8k.js +49 -0
- package/dist/iframeWidget-7rZG5Ja-.js +234 -0
- package/dist/image-CmB0ioUM.js +17 -0
- package/dist/info-Bb_-xIEK.js +21 -0
- package/dist/info-filled-CK8LB339.js +17 -0
- package/dist/instant-verification-UrnuHTYn.js +40 -0
- package/dist/isEmpty-DhGVlmpA.js +23 -0
- package/dist/isNewEntity-7Vw_eQBr.js +13 -0
- package/dist/it-IT-5a7NHVFo.js +65 -0
- package/dist/it-IT-BAvmkEF8.js +13 -0
- package/dist/it-IT-BRO0Hf5X.js +13 -0
- package/dist/it-IT-Cr20JO4o.js +61 -0
- package/dist/it-IT-D63gRTDc.js +13 -0
- package/dist/it-IT-DOBp2-MP.js +13 -0
- package/dist/it-IT-DZjw9LNC.js +63 -0
- package/dist/it-IT-Dhwa9Ecj.js +75 -0
- package/dist/it-IT-masgjk9F.js +38 -0
- package/dist/ja-JP-B3Y0VVpN.js +152 -0
- package/dist/ja-JP-BZb5ndp9.js +75 -0
- package/dist/ja-JP-BeeuQ_LL.js +61 -0
- package/dist/ja-JP-BqluCflj.js +63 -0
- package/dist/ja-JP-CaUe8KW7.js +27 -0
- package/dist/ja-JP-DL0IjTzn.js +13 -0
- package/dist/ja-JP-DSvZhFNY.js +65 -0
- package/dist/ja-JP-GX3l4yqn.js +125 -0
- package/dist/ja-JP-g6VOUGXZ.js +136 -0
- package/dist/ja-JP-vv3-YsHU.js +38 -0
- package/dist/japanSupportUtils-vwyJ0OrD.js +16 -0
- package/dist/jpAddressSchema-DEOyz9Yo.js +26 -0
- package/dist/localizeDateString-BjYXf_CF.js +27 -0
- package/dist/location-itJfxrDQ.js +17 -0
- package/dist/lt-LT-0WbfHH_o.js +61 -0
- package/dist/lt-LT-2BMif2Bk.js +38 -0
- package/dist/lt-LT-BX8dOAzK.js +13 -0
- package/dist/lt-LT-C8n1GZoU.js +75 -0
- package/dist/lt-LT-CXw4ywLM.js +63 -0
- package/dist/lt-LT-CgalYpUh.js +65 -0
- package/dist/lt-LT-DDs3ngzd.js +13 -0
- package/dist/lt-LT-DpszrZ9m.js +13 -0
- package/dist/lt-LT-WRulV980.js +13 -0
- package/dist/lv-LV-B3IqVQos.js +13 -0
- package/dist/lv-LV-BZN4-Xat.js +75 -0
- package/dist/lv-LV-BuuUUumH.js +61 -0
- package/dist/lv-LV-C9Dhkruv.js +13 -0
- package/dist/lv-LV-CHdEDRVO.js +38 -0
- package/dist/lv-LV-CmB2-IO5.js +13 -0
- package/dist/lv-LV-DYqBaW2-.js +63 -0
- package/dist/lv-LV-aAd9SEqx.js +65 -0
- package/dist/lv-LV-dA8yYdKe.js +13 -0
- package/dist/mail-VHTlAusn.js +14 -0
- package/dist/manual-verification-BO8zgAYT.js +41 -0
- package/dist/mapExistingFile-1MUQJf2c.js +230 -0
- package/dist/mapJpAddressSchemaToAddressLocalizations-BCWDaJEu.js +162 -0
- package/dist/mapLegalEntityToIndividualSchema-D7Eku9KI.js +206 -0
- package/dist/mapTransferInstrumentToPayoutAccount-BYNYjRzc.js +34 -0
- package/dist/minus-circle-filled-ZhtJ0GD3.js +17 -0
- package/dist/nl-NL-B0fvINJj.js +75 -0
- package/dist/nl-NL-CmURERx_.js +65 -0
- package/dist/nl-NL-CnvvqAEg.js +13 -0
- package/dist/nl-NL-D1b5RUJ0.js +38 -0
- package/dist/nl-NL-DV4NqPVW.js +13 -0
- package/dist/nl-NL-KQ6bciOb.js +13 -0
- package/dist/nl-NL-KsfqCp2v.js +61 -0
- package/dist/nl-NL-SjOGmGk5.js +13 -0
- package/dist/nl-NL-lcNM54vV.js +63 -0
- package/dist/no-NO-B9618F4_.js +13 -0
- package/dist/no-NO-BAWVf0GX.js +13 -0
- package/dist/no-NO-BdG6WnpB.js +61 -0
- package/dist/no-NO-CIKbQbKT.js +13 -0
- package/dist/no-NO-CTrVITNu.js +63 -0
- package/dist/no-NO-Dkh4SWbB.js +38 -0
- package/dist/no-NO-Ds3VioxT.js +13 -0
- package/dist/no-NO-Jw7Gae-a.js +75 -0
- package/dist/no-NO-qyqWODMp.js +65 -0
- package/dist/onfido-logo-BSkKPH10.js +14 -0
- package/dist/options-horizontal-GuXvLvV3.js +18 -0
- package/dist/partner-QD27Vy4w.js +18 -0
- package/dist/passport-blurred-CVG493IJ.js +59 -0
- package/dist/passport-cut-off-COzA_TmB.js +56 -0
- package/dist/passport-front-WJleLixT.js +52 -0
- package/dist/passport-front-green-CZVkCa1n.js +232 -0
- package/dist/passport-glare-BP5WnJZj.js +50 -0
- package/dist/patternValidators-Ddoxs0Q5.js +83 -0
- package/dist/pay-by-link-plane-BpY8Q6-B.js +22 -0
- package/dist/payout-DtB68BcZ.js +20 -0
- package/dist/payout-verification-instant-BzpfOQLD.js +41 -0
- package/dist/payout-verification-manual-gNEoeZkV.js +90 -0
- package/dist/person-IVZG3t3_.js +17 -0
- package/dist/pl-PL-BgbxWHGE.js +13 -0
- package/dist/pl-PL-BkGihn5Q.js +38 -0
- package/dist/pl-PL-Bmaq3IC3.js +75 -0
- package/dist/pl-PL-CErRPlR2.js +63 -0
- package/dist/pl-PL-CTOkaDMG.js +13 -0
- package/dist/pl-PL-DEMxxz7h.js +13 -0
- package/dist/pl-PL-DW9eaUml.js +61 -0
- package/dist/pl-PL-DqzUSnFK.js +13 -0
- package/dist/pl-PL-q9azN24o.js +65 -0
- package/dist/plaid-logo-FsZ7kfL-.js +14 -0
- package/dist/plus-DiALAL8-.js +14 -0
- package/dist/plus-circle-filled-BzHtTqEN.js +17 -0
- package/dist/process-field-configurations-BgkGx8kj.js +324 -0
- package/dist/pt-BR-BRdIEO2O.js +38 -0
- package/dist/pt-BR-BaTE6BB_.js +75 -0
- package/dist/pt-BR-BdfWE-a1.js +61 -0
- package/dist/pt-BR-BfDe_8iW.js +13 -0
- package/dist/pt-BR-BxoOF8jB.js +65 -0
- package/dist/pt-BR-CLUsrQAl.js +13 -0
- package/dist/pt-BR-Ct4s4jXV.js +13 -0
- package/dist/pt-BR-DA44Wgbt.js +63 -0
- package/dist/pt-BR-zuqB_CBf.js +13 -0
- package/dist/pt-PT-BLRgiqFj.js +13 -0
- package/dist/pt-PT-BfL7qUzo.js +38 -0
- package/dist/pt-PT-CFY1O_K0.js +13 -0
- package/dist/pt-PT-DBEsmXQX.js +13 -0
- package/dist/pt-PT-F1qPZJ2c.js +13 -0
- package/dist/pt-PT-PIiikho9.js +63 -0
- package/dist/pt-PT-c0ap84_F.js +75 -0
- package/dist/pt-PT-ej54BPbB.js +61 -0
- package/dist/pt-PT-pIChDwiI.js +65 -0
- package/dist/recurring-DKNs9K3x.js +17 -0
- package/dist/reporting-D5ABpLO_.js +16 -0
- package/dist/resolveEnvironment-BOoObZUD.js +84 -0
- package/dist/revenue-accelerate-D7Sp0V4a.js +17 -0
- package/dist/review-D4TUjcWF.js +17 -0
- package/dist/ro-RO-0vx6ZLWV.js +13 -0
- package/dist/ro-RO-1ZFmLikG.js +61 -0
- package/dist/ro-RO-7CJ4F5iB.js +13 -0
- package/dist/ro-RO-BPOHV6Wp.js +75 -0
- package/dist/ro-RO-BeA_YyJ8.js +13 -0
- package/dist/ro-RO-Bv9hZxwD.js +63 -0
- package/dist/ro-RO-C00Ig8CL.js +13 -0
- package/dist/ro-RO-C2yBVFht.js +38 -0
- package/dist/ro-RO-DRsaNX9j.js +65 -0
- package/dist/roleMetadata-45H_XXPF.js +66 -0
- package/dist/save-BfqO2JBI.js +14 -0
- package/dist/search-Cmzbf5zI.js +17 -0
- package/dist/show-IdbU1C6P.js +17 -0
- package/dist/singpass-logo-wY4xsmTX.js +17 -0
- package/dist/singpass-verification-instant-JCqTr7Mv.js +40 -0
- package/dist/singpass-verification-manual-DQ7XW6R3.js +34 -0
- package/dist/sk-SK-3_SoEn6P.js +75 -0
- package/dist/sk-SK-7-enbO1N.js +65 -0
- package/dist/sk-SK-BbJWayDh.js +13 -0
- package/dist/sk-SK-C74EF23u.js +38 -0
- package/dist/sk-SK-ChVwlbp0.js +63 -0
- package/dist/sk-SK-Dm-pif_7.js +61 -0
- package/dist/sk-SK-DuLm2CVx.js +13 -0
- package/dist/sk-SK-DubwJifw.js +13 -0
- package/dist/sk-SK-Og9MJXpR.js +13 -0
- package/dist/sl-SI-59OQIZ3f.js +13 -0
- package/dist/sl-SI-BAIm-qBe.js +13 -0
- package/dist/sl-SI-CoI7iOco.js +13 -0
- package/dist/sl-SI-CvUzNn9Z.js +38 -0
- package/dist/sl-SI-DTvJT7fC.js +65 -0
- package/dist/sl-SI-DZHePXbK.js +63 -0
- package/dist/sl-SI-DbfswGh0.js +75 -0
- package/dist/sl-SI-HO7231cu.js +61 -0
- package/dist/sl-SI-hxwQIw_i.js +13 -0
- package/dist/solution-payments-DpyE_sdS.js +14 -0
- package/dist/store-Btc4GcmU.js +14 -0
- package/dist/style.css +2846 -2814
- package/dist/styles-CLV89_hH.js +2846 -2814
- package/dist/summaryItem-CAQCQSkt.js +18 -0
- package/dist/sv-SE-0PQ-U1u6.js +13 -0
- package/dist/sv-SE-BZNey_8S.js +13 -0
- package/dist/sv-SE-BcJ8p_Tx.js +61 -0
- package/dist/sv-SE-BsLkPEzn.js +38 -0
- package/dist/sv-SE-CQWBP7n1.js +13 -0
- package/dist/sv-SE-ChoPzG_G.js +13 -0
- package/dist/sv-SE-D_Efxy3s.js +75 -0
- package/dist/sv-SE-Dq56vGlB.js +63 -0
- package/dist/sv-SE-N-Hqwcjq.js +65 -0
- package/dist/tax-reporting-graph-hgoilCHZ.js +504 -0
- package/dist/terminal-1-D1pwXCoi.js +18 -0
- package/dist/tink-logo-DDyjz5eJ.js +17 -0
- package/dist/types/api/address/useAddressCleanse.d.ts +1 -1
- package/dist/types/api/address/useRetrieveAddress.d.ts +1 -1
- package/dist/types/api/address/useRetrieveFromPostcodeJp.d.ts +1 -1
- package/dist/types/api/address/useSearchAddress.d.ts +1 -2
- package/dist/types/api/businessLines/businessLines.types.d.ts +6 -1
- package/dist/types/api/businessLines/useBusinessLines.d.ts +3 -3
- package/dist/types/api/businessLines/useCreateBusinessLine.d.ts +2 -2
- package/dist/types/api/businessLines/useDeleteBusinessLine.d.ts +2 -2
- package/dist/types/api/businessLines/useUpdateBusinessLines.d.ts +2 -2
- package/dist/types/api/businessLines/useUpdateSourceOfFunds.d.ts +2 -2
- package/dist/types/api/check/useCheck.d.ts +1 -2
- package/dist/types/api/companyDataSet/companyDataset.types.d.ts +5 -0
- package/dist/types/api/companyDataSet/handleCompanyDataset.d.ts +6 -3
- package/dist/types/api/companyDataSet/useClearCompanyData.d.ts +2 -2
- package/dist/types/api/companySearch/companySearch.types.d.ts +8 -0
- package/dist/types/api/companySearch/useCompanySearch.d.ts +9 -4
- package/dist/types/api/companySelection/companySelection.types.d.ts +3 -3
- package/dist/types/api/companySelection/useCompanySelection.d.ts +2 -18
- package/dist/types/api/configurations/useScenarios.d.ts +3 -161
- package/dist/types/api/configurations/useSupportedCountries.d.ts +1 -1
- package/dist/types/api/configurations/useTaskTypes.d.ts +1 -1
- package/dist/types/api/configurations/useVersionConfiguration.d.ts +1 -1
- package/dist/types/api/createLegalEntity/useCreateLegalEntity.d.ts +2 -2
- package/dist/types/api/datasets/useLegalForms.d.ts +1 -1
- package/dist/types/api/datasets/useNaceCodes.d.ts +1 -1
- package/dist/types/api/datasets/useSourceOfFundsTypes.d.ts +1 -1
- package/dist/types/api/documentValidation/useDocumentValidate.d.ts +2 -4
- package/dist/types/api/documents/useCreateDocument.d.ts +2 -2
- package/dist/types/api/documents/useDeleteDocument.d.ts +2 -2
- package/dist/types/api/documents/useDocument.d.ts +2 -2
- package/dist/types/api/documents/useDocuments.d.ts +4 -0
- package/dist/types/api/documents/useUpdateDocument.d.ts +2 -2
- package/dist/types/api/entityVerifications/useVerifyIdNumber.d.ts +2 -2
- package/dist/types/api/idNowProvider/useIdNowProvider.d.ts +3 -4
- package/dist/types/api/idVerificationProviders/idVerificationStartCheck.d.ts +2 -2
- package/dist/types/api/idVerificationProviders/useExtractDocumentInformation.d.ts +2 -2
- package/dist/types/api/idVerificationProviders/useIdVerificationToken.d.ts +3 -3
- package/dist/types/api/industryCodes/useIndustryCodes.d.ts +1 -2
- package/dist/types/api/legalEntity/useConfirmReview.d.ts +2 -2
- package/dist/types/api/legalEntity/useLegalEntity.d.ts +8 -389
- package/dist/types/api/legalEntity/useUpdateLegalEntity.d.ts +5 -5
- package/dist/types/api/onboardingStatus/useGenerateOnboardingLink.d.ts +2 -2
- package/dist/types/api/onboardingStatus/useOnboardingStatus.d.ts +1 -1
- package/dist/types/api/openId/useOpenIdAuthorizationLink.d.ts +1 -2
- package/dist/types/api/pci/usePciQuestionnaireList.d.ts +1 -1
- package/dist/types/api/pci/usePciStatus.d.ts +1 -1
- package/dist/types/api/pci/usePciTemplate.d.ts +1 -1
- package/dist/types/api/pci/useSignPci.d.ts +2 -3
- package/dist/types/api/providersConfiguration/useProviderStatus.d.ts +1 -1
- package/dist/types/api/queryKeys.d.ts +4 -2
- package/dist/types/api/taskStatus/useTaskStatus.d.ts +2 -2
- package/dist/types/api/taxClassification/useTaxClassification.d.ts +1 -1
- package/dist/types/api/termsOfService/useAcceptTermsOfService.d.ts +2 -3
- package/dist/types/api/termsOfService/useAcceptedTermsOfService.d.ts +1 -7
- package/dist/types/api/termsOfService/useTermsOfService.d.ts +1 -1
- package/dist/types/api/termsOfService/useTermsOfServiceAcceptanceInfos.d.ts +1 -1
- package/dist/types/api/termsOfService/useTermsOfServiceStatus.d.ts +1 -1
- package/dist/types/api/tinVerification/useVerifyTin.d.ts +1 -1
- package/dist/types/api/transferInstruments/useBankVerificationProviders.d.ts +1 -1
- package/dist/types/api/transferInstruments/useCreateTrustedTransferInstrument.d.ts +1 -1
- package/dist/types/api/transferInstruments/useDeleteTransferInstrument.d.ts +1 -1
- package/dist/types/api/transferInstruments/useHandleBankVerificationError.d.ts +1 -1
- package/dist/types/api/transferInstruments/useTransferInstrument.d.ts +2 -2
- package/dist/types/api/transferInstruments/useTransferInstruments.d.ts +1 -1
- package/dist/types/api/transferInstruments/useUpdateTransferInstrument.d.ts +1 -1
- package/dist/types/api/transferInstruments/useUpdateTrustedTransferInstrument.d.ts +15 -0
- package/dist/types/api/types.d.ts +3 -2
- package/dist/types/api/uiAnalytics/useAnalyticsSession.d.ts +2 -2
- package/dist/types/api/uiAnalytics/usePushAnalyticEvent.d.ts +2 -2
- package/dist/types/api/validation/useValidateAccountIdentification.d.ts +2 -3
- package/dist/types/api/validation/useValidatePhoneNumber.d.ts +1 -1
- package/dist/types/components/Apps/tasks/TaskList/utils.d.ts +4 -0
- package/dist/types/components/BankAccount/forms/BankDocument/BankDocumentClassification.d.ts +1 -2
- package/dist/types/components/BankAccount/forms/BankDocument/types.d.ts +0 -1
- package/dist/types/components/BankAccount/forms/BankVerification/types.d.ts +1 -0
- package/dist/types/components/BankAccount/forms/BankVerification/verification/overlay/BankVerificationOverlay.d.ts +1 -1
- package/dist/types/components/BankAccount/forms/PayoutDetails/rules.d.ts +2 -2
- package/dist/types/components/BankAccount/forms/PayoutDetails/types.d.ts +0 -1
- package/dist/types/components/BankAccount/mapping/payoutKeyMappings.d.ts +439 -439
- package/dist/types/components/BankAccount/pages/PayoutDetailsPage.d.ts +3 -3
- package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/PayoutDetailsDropin.d.ts +1 -1
- package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/utils.d.ts +1 -1
- package/dist/types/components/BankAccount/utils/payoutAccountUtil.d.ts +1 -1
- package/dist/types/components/Business/forms/AdditionalInformation/AdditionalInformation.d.ts +1 -4
- package/dist/types/components/Business/forms/AdditionalInformation/VerifiedBusinessCard/VerifiedBusinessCard.d.ts +8 -0
- package/dist/types/components/Business/forms/AdditionalInformation/types.d.ts +4 -6
- package/dist/types/components/Business/forms/AdditionalInformation/utils.d.ts +2 -5
- package/dist/types/components/Business/forms/BasicInformation/BasicInformation.d.ts +1 -4
- package/dist/types/components/Business/forms/BasicInformation/types.d.ts +5 -18
- package/dist/types/components/Business/forms/BusinessDetails/form-ids.d.ts +2 -0
- package/dist/types/components/Business/forms/BusinessDetails/forms.d.ts +12 -46
- package/dist/types/components/Business/forms/BusinessDetails/types.d.ts +2 -22
- package/dist/types/components/Business/forms/BusinessSelection/BusinessInformationCard/BusinessInformationCard.d.ts +8 -9
- package/dist/types/components/Business/forms/BusinessSelection/BusinessSelection.d.ts +13 -3
- package/dist/types/components/Business/forms/BusinessSelection/types.d.ts +0 -11
- package/dist/types/components/Business/forms/CompanyStructure/CompanyStructure.d.ts +3 -4
- package/dist/types/components/Business/forms/CompanyStructure/types.d.ts +0 -6
- package/dist/types/components/Business/forms/FinancialInformation/formatFinancialInformationSummary.d.ts +4 -0
- package/dist/types/components/Business/forms/FinancialInformation/mapping/mapFinancialInformationToFinancialReport.d.ts +3 -0
- package/dist/types/components/Business/forms/FinancialInformation/mapping/mapFinancialReportsToFinancialInformation.d.ts +3 -0
- package/dist/types/components/Business/forms/ProofOfDirectorDocument/ProofOfDirectorDocument.d.ts +1 -1
- package/dist/types/components/Business/forms/ProofOfDirectorDocument/types.d.ts +0 -3
- package/dist/types/components/Business/forms/ProofOfOwnershipDocument/ProofOfOwnershipDocument.d.ts +1 -1
- package/dist/types/components/Business/forms/ProofOfOwnershipDocument/types.d.ts +0 -3
- package/dist/types/components/Business/forms/ProofOfSignatoryDocument/ProofOfSignatoryDocument.d.ts +1 -1
- package/dist/types/components/Business/forms/ProofOfSignatoryDocument/types.d.ts +0 -3
- package/dist/types/components/Business/forms/RegistrationDocument/RegistrationDocument.d.ts +1 -1
- package/dist/types/components/Business/forms/RegistrationDocument/types.d.ts +1 -3
- package/dist/types/components/Business/forms/TaxDocument/TaxDocument.d.ts +1 -1
- package/dist/types/components/Business/forms/TaxDocument/types.d.ts +1 -3
- package/dist/types/components/Business/forms/forms.types.d.ts +0 -3
- package/dist/types/components/Business/forms/rules.d.ts +10 -10
- package/dist/types/components/Business/mapping/businessDetails/businessBankAccountTaxIdUtils.d.ts +7 -0
- package/dist/types/components/Business/mapping/businessDetails/mapBusinessDetailsSchemaToLegalEntity.d.ts +4 -2
- package/dist/types/components/Business/mapping/businessDetails/mapLegalEntityToBusinessDetailsSchema.d.ts +8 -2
- package/dist/types/components/Business/pages/RootBusinessDetailsPage.d.ts +1 -2
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/BusinessDetailsDropin.d.ts +3 -3
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/businessDetailsStore.d.ts +0 -2
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +14 -6
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/utils.d.ts +24 -9
- package/dist/types/components/Business/utils/applyVerifiedBusinessData.d.ts +1 -1
- package/dist/types/components/Business/utils/companyUtil.d.ts +0 -10
- package/dist/types/components/Business/utils/formatDataForSummary.d.ts +5 -0
- package/dist/types/components/Business/utils/submit.d.ts +2 -0
- package/dist/types/components/Business/utils/useBusinessDetailsData.d.ts +21 -0
- package/dist/types/components/BusinessLines/constants.d.ts +10 -0
- package/dist/types/components/BusinessLines/fields/Carousel/Carousel.d.ts +10 -10
- package/dist/types/components/BusinessLines/fields/SctaField/SctaField.d.ts +2 -0
- package/dist/types/components/BusinessLines/fields/SctaField/types.d.ts +6 -0
- package/dist/types/components/BusinessLines/fields/WebDataField/types.d.ts +1 -1
- package/dist/types/components/BusinessLines/forms/IndustryCodesForm/IndustryCodesForm.d.ts +1 -1
- package/dist/types/components/BusinessLines/forms/SctaForm/SctaForm.d.ts +2 -0
- package/dist/types/components/BusinessLines/forms/SctaForm/SctaInfoModal.d.ts +3 -0
- package/dist/types/components/BusinessLines/forms/SctaForm/types.d.ts +2 -0
- package/dist/types/components/BusinessLines/forms/rules.d.ts +2 -1
- package/dist/types/components/BusinessLines/pages/RootBusinessLinesPage.d.ts +1 -2
- package/dist/types/components/BusinessLines/tasks/BusinessLines/BusinessLineModal/BusinessLineModal.d.ts +2 -1
- package/dist/types/components/BusinessLines/tasks/BusinessLines/BusinessLinesDropin.d.ts +1 -1
- package/dist/types/components/BusinessLines/tasks/types.d.ts +4 -0
- package/dist/types/components/BusinessLines/tasks/utils.d.ts +26 -4
- package/dist/types/components/BusinessLines/tasks/validate.d.ts +2 -0
- package/dist/types/components/Contract/tasks/ServiceAgreementDropin/ServiceAgreementDropin.d.ts +1 -1
- package/dist/types/components/Contract/tasks/ServiceAgreementDropin/types.d.ts +3 -3
- package/dist/types/components/EFP/fields/LegalFormField/LegalFormField.d.ts +1 -1
- package/dist/types/components/EFP/fields/NaceCodeField/NaceCodeField.d.ts +1 -1
- package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +5812 -582
- package/dist/types/components/EFP/mapping/mapBusinessFinancingToLegalEntity.d.ts +3 -2
- package/dist/types/components/EFP/mapping/mapLegalEntityToBusinessFinancing.d.ts +1 -1
- package/dist/types/components/EFP/pages/BusinessFinancingPage.d.ts +1 -2
- package/dist/types/components/EFP/pages/SourceOfFundsPage.d.ts +1 -2
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/AdditionalFieldsForBusinessFinancingSoleProprietor.d.ts +2 -0
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingSoleProprietorPersonalInformation.d.ts +4 -0
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/types.d.ts +28 -0
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/utils.d.ts +15 -4
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/validate.d.ts +10 -1
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/types.d.ts +20 -21
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/utils.d.ts +6 -4
- package/dist/types/components/EFP/tasks/TaxReportingDropin/utils.d.ts +1 -2
- package/dist/types/components/EmbeddedDropins/BusinessFinancingComponent/utils.d.ts +2 -1
- package/dist/types/components/EmbeddedDropins/CreateIndividualComponent/CreateIndividualComponent.d.ts +2 -2
- package/dist/types/components/EmbeddedDropins/InvitedDecisionMakerComponent/InvitedDecisionMakerComponent.d.ts +4 -0
- package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/DropinComposer.d.ts +1 -1
- package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/RouterDropinComposer.d.ts +4 -0
- package/dist/types/components/Individual/fields/DriversLicense/DriversLicense.types.d.ts +1 -1
- package/dist/types/components/Individual/fields/IdentityNumber/fieldConfig.d.ts +4 -3
- package/dist/types/components/Individual/forms/AdditionalPersonalDetails/AdditionalPersonalDetails.types.d.ts +29 -0
- package/dist/types/components/Individual/forms/AdditionalPersonalDetails/Identity/Identity.types.d.ts +13 -0
- package/dist/types/components/Individual/forms/AdditionalPersonalDetails/Identity/TypeOfIdentity/index.d.ts +11 -0
- package/dist/types/components/Individual/forms/AdditionalPersonalDetails/Identity/validate.d.ts +4 -0
- package/dist/types/components/Individual/forms/AdditionalPersonalDetails/validate.d.ts +22 -0
- package/dist/types/components/Individual/forms/BasicDetails/BasicDetails.types.d.ts +22 -0
- package/dist/types/components/Individual/forms/BasicDetails/validate.d.ts +8 -0
- package/dist/types/components/Individual/forms/DataConflictsModal/ConflictRow.d.ts +12 -0
- package/dist/types/components/Individual/forms/DataConflictsModal/DataConflictsModal.d.ts +24 -0
- package/dist/types/components/Individual/forms/IdDocumentUpload/types.d.ts +43 -0
- package/dist/types/components/Individual/forms/IdDocumentUpload/utils.d.ts +3 -0
- package/dist/types/components/Individual/forms/IdNowVerificationModal/isIdNowModalOpen.d.ts +18 -0
- package/dist/types/components/Individual/forms/IdVerificationMethod/IdVerificationMethod.types.d.ts +21 -0
- package/dist/types/components/Individual/forms/IdVerificationMethod/OnfidoVerificationModal/OnfidoVerificationModal.d.ts +7 -0
- package/dist/types/components/Individual/forms/IdVerificationMethod/UploadedDocument/UploadedDocument.d.ts +7 -0
- package/dist/types/components/Individual/forms/IdVerificationMethod/individualOnfidoConflictsSchema.d.ts +46 -0
- package/dist/types/components/Individual/forms/IdVerificationMethod/mapExtractionResultToSchema.d.ts +4 -0
- package/dist/types/components/Individual/forms/IdVerificationMethod/validateExtractionResult.d.ts +12 -0
- package/dist/types/components/Individual/forms/Individual.d.ts +56 -0
- package/dist/types/components/Individual/forms/Individual.rules.d.ts +45 -0
- package/dist/types/components/Individual/forms/Individual.types.d.ts +60 -0
- package/dist/types/components/Individual/forms/ProofOfRelationship/types.d.ts +14 -0
- package/dist/types/components/Individual/forms/ProofOfResidency/types.d.ts +39 -0
- package/dist/types/components/Individual/forms/SignatoryQuestionnaire/SignatoryQuestionnaire.types.d.ts +6 -0
- package/dist/types/components/Individual/forms/UboQuestionnaire/UboQuestionnaire.types.d.ts +13 -0
- package/dist/types/components/Individual/forms/UboQuestionnaire/UboQuestionnaireModalContent.d.ts +7 -0
- package/dist/types/components/Individual/forms/form-ids.d.ts +2 -0
- package/dist/types/components/Individual/helpers/bafinUtils.d.ts +3 -2
- package/dist/types/components/Individual/helpers/mandateIdVerificationForMotionCapture.d.ts +2 -3
- package/dist/types/components/Individual/helpers/roleUtils.d.ts +1 -1
- package/dist/types/components/Individual/mapping/adjustOnfidoIdentificationData.d.ts +1 -1
- package/dist/types/components/Individual/mapping/getOnfidoIdentityTypeToApiIdentityTypeMap.d.ts +1 -1
- package/dist/types/components/Individual/mapping/individualKeyMappings.d.ts +6 -12
- package/dist/types/components/Individual/mapping/mapApiDocumentToIndividualDocuments.d.ts +2 -2
- package/dist/types/components/Individual/mapping/mapIndividualDocumentToApiDocument.d.ts +2 -3
- package/dist/types/components/Individual/mapping/mapIndividualSchemaToLegalEntity.d.ts +5 -0
- package/dist/types/components/Individual/mapping/mapLegalEntityToIndividualSchema.d.ts +3 -0
- package/dist/types/components/Individual/pages/DecisionMakerDetailsPage.d.ts +6 -7
- package/dist/types/components/Individual/pages/LegalRepresentativeDetailsPage.d.ts +2 -2
- package/dist/types/components/Individual/pages/RootIndividualDetailsPage.d.ts +2 -2
- package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerDetails/utils.d.ts +2 -14
- package/dist/types/components/Individual/tasks/DecisionMakers/RemediationAlerts/remediation.config.d.ts +0 -2
- package/dist/types/components/Individual/tasks/DecisionMakers/types.d.ts +8 -0
- package/dist/types/components/Individual/tasks/DecisionMakers/utils.d.ts +1 -1
- package/dist/types/components/Individual/tasks/IndividualDropin/IndividualDropin.d.ts +2 -2
- package/dist/types/components/Individual/tasks/IndividualDropin/individualFormConfig.d.ts +3 -3
- package/dist/types/components/Shared/EntityAssociation/EntityAssociation.d.ts +0 -1
- package/dist/types/components/Shared/FormFlow/FormFlow.d.ts +1 -1
- package/dist/types/components/Shared/FormFlow/FormFlow.types.d.ts +2 -2
- package/dist/types/components/Shared/Introduction/copy.d.ts +3 -3
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/BusinessRegistrationNumberField.d.ts +1 -1
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/fieldConfig.d.ts +10 -0
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/types.d.ts +2 -1
- package/dist/types/components/Shared/fields/CountryField/types.d.ts +2 -1
- package/dist/types/components/Shared/fields/CountryOfGoverningLawField/CountryOfGoverningLawField.d.ts +1 -1
- package/dist/types/components/Shared/fields/CountryOfGoverningLawField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/Currency/Currency.d.ts +1 -1
- package/dist/types/components/Shared/fields/Currency/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/DBANameField/DBANameField.d.ts +1 -1
- package/dist/types/components/Shared/fields/DBANameField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/DateOfIncorporationField/DateOfIncorporationField.d.ts +1 -1
- package/dist/types/components/Shared/fields/DateOfIncorporationField/types.d.ts +3 -1
- package/dist/types/components/Shared/fields/EInvoicingCodeField/EInvoicingCodeField.d.ts +1 -1
- package/dist/types/components/Shared/fields/EInvoicingCodeField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/countryIdNumberTypes.d.ts +117 -1
- package/dist/types/components/Shared/fields/IndustryCodeField/IndustryCodeField.d.ts +1 -1
- package/dist/types/components/Shared/fields/IndustryCodeField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/LegalCompanyNameField/fieldConfig.d.ts +12 -6
- package/dist/types/components/Shared/fields/LegalCompanyNameField/types.d.ts +3 -1
- package/dist/types/components/Shared/fields/LocalizedNameFields/types.d.ts +9 -0
- package/dist/types/components/Shared/fields/LocalizedNameFields/validate.d.ts +5 -0
- package/dist/types/components/Shared/fields/NumberOfEmployees/NumberOfEmployees.d.ts +1 -1
- package/dist/types/components/Shared/fields/NumberOfEmployees/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/PhoneField/PhoneField.d.ts +1 -1
- package/dist/types/components/Shared/fields/PhoneField/fieldConfig.d.ts +5 -0
- package/dist/types/components/Shared/fields/PhoneField/types.d.ts +2 -1
- package/dist/types/components/Shared/fields/StateField/StateField.d.ts +1 -1
- package/dist/types/components/Shared/fields/StateField/fieldConfig.d.ts +8 -0
- package/dist/types/components/Shared/fields/StateField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/StockExchangeMICField/StockExchangeMICField.d.ts +1 -1
- package/dist/types/components/Shared/fields/StockExchangeMICField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/StockISINField/StockISINField.d.ts +1 -1
- package/dist/types/components/Shared/fields/StockISINField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/StockTickerSymbol/StockTickerSymbolField.d.ts +1 -1
- package/dist/types/components/Shared/fields/StockTickerSymbol/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/TaxInformationField/TaxInformationField.d.ts +1 -1
- package/dist/types/components/Shared/fields/TaxInformationField/fieldConfig.d.ts +6 -0
- package/dist/types/components/Shared/fields/TaxInformationField/types.d.ts +2 -1
- package/dist/types/components/Shared/fields/VatNumberField/VatNumberField.d.ts +1 -1
- package/dist/types/components/Shared/fields/VatNumberField/types.d.ts +1 -1
- package/dist/types/components/Shared/forms/Address/Address.d.ts +1 -1
- package/dist/types/components/Shared/forms/Address/localized/jp/jpAddressSchema.d.ts +3 -1
- package/dist/types/components/Shared/forms/Address/types.d.ts +2 -2
- package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
- package/dist/types/components/Shared/forms/BusinessTypeSelection/utils.d.ts +1 -1
- package/dist/types/components/Trust/forms/Trust/rules.d.ts +5 -4
- package/dist/types/components/Trust/hooks/useTrustMemberNavigation.hook.d.ts +1 -1
- package/dist/types/components/Trust/pages/TrustDetailsPage.d.ts +1 -2
- package/dist/types/components/Trust/pages/TrustMemberCompanyPage.d.ts +3 -3
- package/dist/types/components/Trust/pages/TrustMemberIndividualPage.d.ts +5 -5
- package/dist/types/components/Trust/pages/TrustMemberRoleAndTypePage.d.ts +2 -2
- package/dist/types/components/Trust/tasks/RoleAndTypeDropin/formatRoleAndEntityTypeSummary.d.ts +1 -1
- package/dist/types/components/Trust/tasks/TrustDropin/TrustMultiform.d.ts +2 -1
- package/dist/types/components/Trust/tasks/TrustDropin/TrustMultiformDropin.d.ts +1 -1
- package/dist/types/components/Trust/tasks/TrustMembers/TrustMembersOverview.d.ts +1 -2
- package/dist/types/components/UnincorporatedPartnership/hooks/useUnincorporatedPartnershipNavigation.d.ts +1 -1
- package/dist/types/components/UnincorporatedPartnership/pages/UnincorporatedPartnershipIndividualPage.d.ts +5 -5
- package/dist/types/components/UnincorporatedPartnership/pages/UnincorporatedPartnershipMemberCompanyPage.d.ts +3 -3
- package/dist/types/components/UnincorporatedPartnership/pages/UnincorporatedPartnershipMemberRoleAndTypePage.d.ts +1 -1
- package/dist/types/components/ui/atoms/Card/Card.d.ts +19 -0
- package/dist/types/components/ui/atoms/Link/Link.types.d.ts +1 -1
- package/dist/types/components/ui/atoms/Loader/Loader.d.ts +11 -5
- package/dist/types/components/ui/atoms/Modal/MaybeModal.d.ts +1 -1
- package/dist/types/components/ui/atoms/MultiSelectList/MultiSelectList.d.ts +0 -1
- package/dist/types/components/ui/atoms/Svg/Svg.d.ts +0 -1
- package/dist/types/components/ui/atoms/Svg/svgs.d.ts +4 -0
- package/dist/types/components/ui/atoms/Tile/Tile.d.ts +2 -1
- package/dist/types/components/ui/molecules/EmbeddedStatus/statusToTag.d.ts +2 -2
- package/dist/types/components/ui/molecules/ErrorPanel/ErrorPanel.d.ts +0 -1
- package/dist/types/context/ExperimentContext/types.d.ts +28 -50
- package/dist/types/context/QueryContext/QueryClient.d.ts +1 -1
- package/dist/types/context/StateContext/types.d.ts +2 -3
- package/dist/types/core/models/api/individual.d.ts +3 -0
- package/dist/types/core/models/api/instant-id-verification.d.ts +1 -1
- package/dist/types/core/models/api/legal-arrangement.d.ts +3 -0
- package/dist/types/core/models/api/legal-entity-association.d.ts +1 -1
- package/dist/types/core/models/api/legal-entity.d.ts +1 -6
- package/dist/types/core/process-field-configurations.d.ts +0 -5
- package/dist/types/core/services/types.d.ts +1 -1
- package/dist/types/core/user-events.d.ts +4 -2
- package/dist/types/embeds/baseEmbedProps.d.ts +0 -21
- package/dist/types/embeds/business-financing/adyen-business-financing.d.ts +2 -1
- package/dist/types/embeds/business-financing/adyen-business-financing.types.d.ts +2 -0
- package/dist/types/embeds/individual-configuration/adyen-individual-configuration.d.ts +5 -1
- package/dist/types/embeds/individual-configuration/adyen-individual-configuration.types.d.ts +2 -2
- package/dist/types/embeds/invited-decision-maker/adyen-invited-decision-maker.d.ts +5 -0
- package/dist/types/embeds/invited-decision-maker/adyen-invited-decision-maker.types.d.ts +34 -0
- package/dist/types/embeds/onboarding/adyen-onboarding.d.ts +2 -1
- package/dist/types/embeds/terms-of-service-management/adyen-terms-of-service-management.d.ts +5 -1
- package/dist/types/embeds/transfer-instrument-configuration/adyen-transfer-instrument-configuration.d.ts +2 -1
- package/dist/types/embeds/verification-status/adyen-verification-status.d.ts +2 -1
- package/dist/types/hooks/useAssociatedLegalEntity.d.ts +1 -1
- package/dist/types/hooks/useForm/types.d.ts +0 -8
- package/dist/types/hooks/useLegalCompanyNameField/useLegalCompanyNameField.d.ts +4 -2
- package/dist/types/hooks/usePageLandedEvent.d.ts +7 -0
- package/dist/types/hooks/useUboQuestionnaire.d.ts +2 -2
- package/dist/types/language/types.d.ts +7 -2
- package/dist/types/language/utils.d.ts +1 -2
- package/dist/types/router/DefaultRouteRedirect.d.ts +8 -0
- package/dist/types/router/MemoryRouterContext.d.ts +9 -0
- package/dist/types/router/OnboardingRouter.d.ts +39 -0
- package/dist/types/router/SuspenseRoute.d.ts +7 -0
- package/dist/types/router/getDefaultTask.d.ts +16 -0
- package/dist/types/router/routeConfig.d.ts +68 -0
- package/dist/types/router/useCurrentTask.d.ts +5 -0
- package/dist/types/router/useNavigate.d.ts +7 -0
- package/dist/types/stores/formState.d.ts +2 -0
- package/dist/types/stores/globalStore/get-task-status.d.ts +6 -0
- package/dist/types/stores/globalStore/taskStatus.d.ts +5 -3
- package/dist/types/types/assert.d.ts +1 -0
- package/dist/types/types/datasets/currency.d.ts +0 -1
- package/dist/types/types/form.d.ts +0 -2
- package/dist/types/utils/addLinkedFields.d.ts +0 -2
- package/dist/types/utils/analytics/debouncedInputEvent.d.ts +1 -0
- package/dist/types/utils/analytics/getPrefilledDetails.d.ts +28 -0
- package/dist/types/utils/api/documentUtils.d.ts +6 -0
- package/dist/types/utils/api/processCapabilitites.d.ts +14 -2
- package/dist/types/utils/birthDateUtils.d.ts +0 -17
- package/dist/types/utils/customerSupportUtils.d.ts +3 -0
- package/dist/types/utils/entityAssociationUtil.d.ts +3 -4
- package/dist/types/utils/entityStatusUtil.d.ts +1 -1
- package/dist/types/utils/fieldConfigurations.d.ts +0 -2
- package/dist/types/utils/formUtils.d.ts +1 -6
- package/dist/types/utils/getDisplayErrorMessage.d.ts +1 -2
- package/dist/types/utils/getFieldsWithExistingData.d.ts +2 -3
- package/dist/types/utils/getName.d.ts +1 -1
- package/dist/types/utils/japanSupportUtils.d.ts +3 -0
- package/dist/types/utils/logger.d.ts +0 -1
- package/dist/types/utils/makeSelectItemForRole.d.ts +1 -1
- package/dist/types/utils/performance.d.ts +64 -0
- package/dist/types/utils/regex/patternValidators.d.ts +1 -1
- package/dist/types/utils/translation.d.ts +3 -2
- package/dist/types/utils/validatorUtils.d.ts +3 -1
- package/dist/types/utils/verification/helpers/verifyIdNumber.d.ts +3 -2
- package/dist/types-BW4HQI5X.js +142 -0
- package/dist/types-D7ibfssA.js +74 -0
- package/dist/types-DRjaiEYd.js +64 -0
- package/dist/types-DSsQZPmi.js +34 -0
- package/dist/unincorporated-partnership-MeN1dp53.js +97 -0
- package/dist/upload-BmUXjsaU.js +17 -0
- package/dist/us-check-C1rTBsCY.js +46 -0
- package/dist/us-check-account-number-9lI1dXNC.js +48 -0
- package/dist/us-check-routing-number-s_KaAGSM.js +49 -0
- package/dist/useAssociatedLegalEntity-jaSfQ9rQ.js +34 -0
- package/dist/useBusinessDetailsData-5O2km9MB.js +5310 -0
- package/dist/useBusinessLines-DuBQrvIQ.js +29 -0
- package/dist/useCanSeeIntroduction-Boj-VdF4.js +48 -0
- package/dist/useCreateLegalEntity-DQx1byaP.js +32 -0
- package/dist/useDataMissingRemediations-Drava4pQ.js +41 -0
- package/dist/useDataset-3t4wCptb.js +76 -0
- package/dist/useDeleteTransferInstrument-CUjrvIfw.js +32 -0
- package/dist/useForm-CsrT0zKF.js +582 -0
- package/dist/useFormContext-D1NuWw_2.js +201 -0
- package/dist/useGlobalData-vS5GxkpZ.js +68 -0
- package/dist/useId-BZ0PA7jP.js +24 -0
- package/dist/useMultiForm-82RYFvCF.js +873 -0
- package/dist/useNavigate-DLBqtyNN.js +265 -0
- package/dist/useOnboardingStatus-B3HSS36K.js +28 -0
- package/dist/usePciQuestionnaireList-B2425Wiw.js +29 -0
- package/dist/useSalesChannels-B9Z_g_9G.js +65 -0
- package/dist/useScenarios-DCRvLaxV.js +48 -0
- package/dist/useSetting-C108TWwa.js +19 -0
- package/dist/useTaskStatus-DjHWxlNL.js +51 -0
- package/dist/useTermsOfServiceStatus-BTLQKn3X.js +43 -0
- package/dist/useToastContext-CYdZ2BD2.js +49 -0
- package/dist/useTrustMembers-BvFhj1PW.js +163 -0
- package/dist/useUnincorporatedPartnershipMembers-wCGUg18Y.js +99 -0
- package/dist/useUpdateBusinessLines-DAHY8qXu.js +339 -0
- package/dist/useUpdateLegalEntity-B7VJAlhD.js +40 -0
- package/dist/utils-BCit-Kzj.js +58 -0
- package/dist/utils-BU2KHXr7.js +237 -0
- package/dist/utils-BiqRkf5f.js +159 -0
- package/dist/utils-C4cwFCf5.js +778 -0
- package/dist/utils-Cc8niKnm.js +29 -0
- package/dist/validate-BnkIeDb7.js +434 -0
- package/dist/validate-fYuz9-yq.js +108 -0
- package/dist/validationError-Bod1gd-k.js +86 -0
- package/dist/warning-circle-fill-DBvt921B.js +17 -0
- package/dist/warning-diamond-filled-Lb2od2ry.js +17 -0
- package/dist/webinar-m9nuFZBt.js +22 -0
- package/dist/yapily-logo-BduxhNRA.js +17 -0
- package/package.json +78 -57
- package/dist/4-people-BzyXLUF9.js +0 -24
- package/dist/AcceptTermsOfServiceComponent-CmHBNGjM.js +0 -659
- package/dist/Accordion-Cp_VkxR6.js +0 -88
- package/dist/AccountSetupRejected-CoxWTlar.js +0 -26
- package/dist/ActionBar-CxUKVmTE.js +0 -31
- package/dist/Address-Db6Q_KUo.js +0 -1348
- package/dist/Alert-DEiOX0nw.js +0 -159
- package/dist/Avatar-3K6S_tIS.js +0 -60
- package/dist/BG-DlvaKo4n.js +0 -27
- package/dist/BusinessDetailsMultiformDropin-CYoIN4Fa.js +0 -4220
- package/dist/BusinessFinancingComponent-DyvM-fsY.js +0 -54
- package/dist/BusinessFinancingDropin-BOvR4LwU.js +0 -1853
- package/dist/BusinessFinancingPage-8C0ztBfS.js +0 -43
- package/dist/BusinessTypeSelectionPage-DpZAsa8K.js +0 -427
- package/dist/Card-CdpPhK9y.js +0 -82
- package/dist/ConstitutionalDocument-NLs6ka9K.js +0 -143
- package/dist/ContractViewer-Byp71k2e.js +0 -935
- package/dist/CountryField-9w8wRZMW.js +0 -843
- package/dist/CreateIndividualComponent-zGcoEyq0.js +0 -71
- package/dist/CreateTransferInstrumentComponent-Ct_v-IyH.js +0 -63
- package/dist/Currency-53s7DEeh.js +0 -183
- package/dist/CustomerSupport-BRcUQ4fR.js +0 -153
- package/dist/DebugModal-CokbXGK9.js +0 -413
- package/dist/DecisionMakerDetailsPage-B5cLY8iP.js +0 -106
- package/dist/DecisionMakers-BQ24LfqB.js +0 -830
- package/dist/EmbeddedStatus-DB9B_u3L.js +0 -99
- package/dist/EndStateLayout-BWC5aqVS.js +0 -71
- package/dist/EntityAssociation-gzYdcHoL.js +0 -159
- package/dist/EntityGuidanceStatus-BKeZKnbP.js +0 -105
- package/dist/FormFlow-Cf3Ff2qw.js +0 -224
- package/dist/FormNavigation-CjgZbv9G.js +0 -144
- package/dist/FormWrapper-dbBZegkX.js +0 -135
- package/dist/IndividualOnfido-Cc7dydKq.js +0 -9594
- package/dist/IndividualOnfidoDropin-BpU2cL4E.js +0 -2497
- package/dist/InputText-Dsw9kiwL.js +0 -249
- package/dist/Introduction-C8mTk4l_.js +0 -300
- package/dist/JpAddress-R81eO-aY.js +0 -280
- package/dist/LegalRepresentativeDetailsPage-DIQX18v2.js +0 -60
- package/dist/ListItem-D3p6EgP_.js +0 -69
- package/dist/ManageIndividualComponent-CmM-vP9E.js +0 -46
- package/dist/ManageTermsOfServiceComponent-C3hXZJx5.js +0 -52
- package/dist/ManageTransferInstrumentComponent-co6LYrVY.js +0 -287
- package/dist/MaybeModal-BVQOzETz.js +0 -25
- package/dist/Modal-CloeVnNp.js +0 -149
- package/dist/OnboardingDropinComponent-CDAK4v1o.js +0 -7908
- package/dist/PayoutDetailsDropin-DCrlrNki.js +0 -4841
- package/dist/Review-Dqn49vJM.js +0 -83
- package/dist/RootBusinessDetailsPage-DSEq3TIn.js +0 -61
- package/dist/RootBusinessLinesPage-CbPhOber.js +0 -1118
- package/dist/RootIndividualDetailsPage-Bp_7gSIB.js +0 -71
- package/dist/SignPCIComponent-B6kYuqT_.js +0 -304
- package/dist/SingpassSelection-aDrNTYr3.js +0 -130
- package/dist/SoleProprietorshipPage-HnUsyjKp.js +0 -60
- package/dist/SourceOfFundsPage-BkMEIV_L.js +0 -2383
- package/dist/StepProgressIndicator-BgeMe93n.js +0 -78
- package/dist/StoreProvider-BFN15Go9.js +0 -7674
- package/dist/Summary-BkE_c8pU.js +0 -204
- package/dist/TaxReportingDropin-LG9zvOMN.js +0 -502
- package/dist/TrustDetailsPage-C8w8pEvB.js +0 -2149
- package/dist/TrustMemberCompanyPage-IDEwpLW3.js +0 -73
- package/dist/TrustMemberIndividualPage-rKB3iVFk.js +0 -66
- package/dist/TrustMemberRoleAndTypePage-CLtX8V0M.js +0 -985
- package/dist/TrustMembersOverview-Bs203hm0.js +0 -438
- package/dist/UnincorporatedPartnershipIndividualPage-CBTaUEld.js +0 -65
- package/dist/UnincorporatedPartnershipMemberCompanyPage-ZnLe9Uq3.js +0 -76
- package/dist/UnincorporatedPartnershipMemberRoleAndTypePage-BXImA2c_.js +0 -281
- package/dist/UnincorporatedPartnershipMembersOverview-c7k2JzcO.js +0 -172
- package/dist/VerificationErrorAlert-uubpHQGE.js +0 -79
- package/dist/ViewVerificationStatusComponent-DO9L2hEO.js +0 -180
- package/dist/arrow-right-KxA3SvQj.js +0 -14
- package/dist/bag-BPumznWh.js +0 -14
- package/dist/bank-D6FiNBhs.js +0 -14
- package/dist/bg-BG-B7Xs_t04.js +0 -13
- package/dist/bg-BG-CepHap8j.js +0 -68
- package/dist/bg-BG-D9J6LnkI.js +0 -57
- package/dist/bg-BG-DH45-0B-.js +0 -29
- package/dist/bg-BG-DRkMqyL8.js +0 -13
- package/dist/bg-BG-Dp4LxSP7.js +0 -37
- package/dist/bg-BG-DpIAKQve.js +0 -113
- package/dist/bg-BG-mLSjG76Q.js +0 -13
- package/dist/bg-BG-wVquMNtT.js +0 -55
- package/dist/bin-Bz6KOIeE.js +0 -18
- package/dist/business-lines-DboUCbXw.js +0 -135
- package/dist/capital-GVQ3svwN.js +0 -17
- package/dist/cash-stack-D9AoDDwt.js +0 -22
- package/dist/certificate-CdEWgHQf.js +0 -17
- package/dist/checkmark-Q7x6tGhy.js +0 -14
- package/dist/checkmark-circle-fill-CsvN5_PL.js +0 -17
- package/dist/checkmark-circle-x7dzbp3I.js +0 -20
- package/dist/checkmark-small-D35myntq.js +0 -14
- package/dist/chevron-down-C2iDorpW.js +0 -14
- package/dist/chevron-left-ztPO84q-.js +0 -14
- package/dist/chevron-right-C_JN0oDt.js +0 -14
- package/dist/chevron-up-CgG8n25g.js +0 -14
- package/dist/circle-Bt3Nlr3q.js +0 -17
- package/dist/circle-small-filled-YMzP6yQU.js +0 -14
- package/dist/clock-BZHremOA.js +0 -20
- package/dist/coins-fkAk6dCo.js +0 -17
- package/dist/contract-BTa4HltT.js +0 -14
- package/dist/cross-Cn09MtQ_.js +0 -14
- package/dist/cross-circle-fill-small-DCz52AuN.js +0 -14
- package/dist/cs-CZ--jOkoHVS.js +0 -55
- package/dist/cs-CZ-BDf9m4Rw.js +0 -113
- package/dist/cs-CZ-BP7niQM9.js +0 -68
- package/dist/cs-CZ-BSWXexr4.js +0 -13
- package/dist/cs-CZ-BsV9NiQ2.js +0 -13
- package/dist/cs-CZ-CyLqoG1j.js +0 -37
- package/dist/cs-CZ-DPVMeRye.js +0 -29
- package/dist/cs-CZ-DY_pQqAT.js +0 -57
- package/dist/cs-CZ-DalFZigH.js +0 -13
- package/dist/da-DK-CI-vfqPo.js +0 -113
- package/dist/da-DK-D4Ojw97o.js +0 -13
- package/dist/da-DK-DU4dCNEw.js +0 -29
- package/dist/da-DK-DYpfNZdP.js +0 -37
- package/dist/da-DK-Dc0QYG8m.js +0 -68
- package/dist/da-DK-JHZnsI59.js +0 -55
- package/dist/da-DK-P3YSaBqs.js +0 -13
- package/dist/da-DK-R_y7YwqQ.js +0 -13
- package/dist/da-DK-jK7c9UL0.js +0 -57
- package/dist/de-DE-BR6CLZw6.js +0 -13
- package/dist/de-DE-BXt1K0Tr.js +0 -37
- package/dist/de-DE-BcuLmcC8.js +0 -13
- package/dist/de-DE-Dz2OsS1F.js +0 -68
- package/dist/de-DE-Dz2l6jRl.js +0 -29
- package/dist/de-DE-VGGEkxUT.js +0 -55
- package/dist/de-DE-nG2MBigU.js +0 -113
- package/dist/de-DE-opyC1JO-.js +0 -13
- package/dist/de-DE-wmerDL2e.js +0 -57
- package/dist/debouncedInputEvent-Dlbc7VjU.js +0 -109
- package/dist/decision-makers-group-CgddXgrx.js +0 -1944
- package/dist/digital-wallet-D_IpxnkN.js +0 -46
- package/dist/document-1-C08ut-Dt.js +0 -14
- package/dist/document-blurred-2Zpodj3_.js +0 -37
- package/dist/document-cut-off-ClS7RiOp.js +0 -32
- package/dist/document-expired-CjksBq-N.js +0 -38
- package/dist/document-front-DiAairT3.js +0 -30
- package/dist/document-person-vxlA6C5f.js +0 -20
- package/dist/documentUtils-CUgKVLK4.js +0 -218
- package/dist/download-Drhk9k1f.js +0 -17
- package/dist/dropinUtils-D2lBlNWp.js +0 -202
- package/dist/edit-1-CFoDTMvQ.js +0 -14
- package/dist/el-GR-B3FHqTOX.js +0 -13
- package/dist/el-GR-B90M6tcZ.js +0 -37
- package/dist/el-GR-BHG69mXl.js +0 -68
- package/dist/el-GR-BX-MyQZY.js +0 -113
- package/dist/el-GR-Btrk_npt.js +0 -57
- package/dist/el-GR-CWd7XYDU.js +0 -13
- package/dist/el-GR-CofvCav-.js +0 -13
- package/dist/el-GR-MLFY-Gg7.js +0 -29
- package/dist/el-GR-gkaKwnln.js +0 -55
- package/dist/en-US-BPI4FZwa.js +0 -113
- package/dist/en-US-CzEL6t1W.js +0 -55
- package/dist/en-US-D-B35AoN.js +0 -68
- package/dist/en-US-DYo4OF-P.js +0 -29
- package/dist/en-US-Dg505Oh3.js +0 -37
- package/dist/en-US-fyGPkcqX.js +0 -13
- package/dist/en-US-gsp7CD_E.js +0 -57
- package/dist/es-ES-0ROz-BJh.js +0 -29
- package/dist/es-ES-BAg3NqQO.js +0 -13
- package/dist/es-ES-BI_jdT67.js +0 -68
- package/dist/es-ES-BhINIOee.js +0 -13
- package/dist/es-ES-BhNhIf08.js +0 -37
- package/dist/es-ES-Bn9_0wK0.js +0 -55
- package/dist/es-ES-CEp-ttVJ.js +0 -13
- package/dist/es-ES-Q16q2JJ6.js +0 -113
- package/dist/es-ES-Qnc0Q6JH.js +0 -57
- package/dist/et-EE-BMgFCxds.js +0 -37
- package/dist/et-EE-BYSnV6Iq.js +0 -55
- package/dist/et-EE-Bk2IHQWP.js +0 -13
- package/dist/et-EE-C_PZO2aI.js +0 -68
- package/dist/et-EE-Ci8RU2wg.js +0 -13
- package/dist/et-EE-DmShD6oS.js +0 -113
- package/dist/et-EE-TzXANcP2.js +0 -57
- package/dist/et-EE-esci5847.js +0 -29
- package/dist/et-EE-x29FUaYN.js +0 -118
- package/dist/external-link-DCMYUMfW.js +0 -14
- package/dist/fi-FI-B_P4BAda.js +0 -113
- package/dist/fi-FI-CDISJifz.js +0 -13
- package/dist/fi-FI-DjlB2a7k.js +0 -13
- package/dist/fi-FI-Dn2MC8uW.js +0 -57
- package/dist/fi-FI-MiyuQqH8.js +0 -13
- package/dist/fi-FI-PVFqd5Ra.js +0 -55
- package/dist/fi-FI-hwzizPnr.js +0 -68
- package/dist/fi-FI-xXrvDLFe.js +0 -29
- package/dist/fi-FI-ysUrBilO.js +0 -37
- package/dist/fieldConfigurations-C38LzPl3.js +0 -1402
- package/dist/fr-FR-BSvSKazD.js +0 -37
- package/dist/fr-FR-BWX14yb7.js +0 -57
- package/dist/fr-FR-Bw9O-QAU.js +0 -29
- package/dist/fr-FR-CUdiBCVB.js +0 -113
- package/dist/fr-FR-CYZXbwc9.js +0 -68
- package/dist/fr-FR-DGMVrsJv.js +0 -13
- package/dist/fr-FR-Dx-CiPdB.js +0 -13
- package/dist/fr-FR-aJ3cg4x0.js +0 -13
- package/dist/fr-FR-mJK4hjwD.js +0 -55
- package/dist/funds-in-D8bj0aoE.js +0 -21
- package/dist/getFieldsWithExistingData-B0l_1eCG.js +0 -22
- package/dist/getName-CIw0MR9e.js +0 -48
- package/dist/gift-CQ_DEma7.js +0 -14
- package/dist/graph-BJmqglH2.js +0 -21
- package/dist/graph-up-Bq6adtlX.js +0 -20
- package/dist/hasDataChanged-B-_hLK5I.js +0 -19
- package/dist/headquarter-DNYyuuFq.js +0 -21
- package/dist/hotel-BuNql78Z.js +0 -22
- package/dist/house-B6sNRj-B.js +0 -21
- package/dist/hr-HR-BHt_jklG.js +0 -13
- package/dist/hr-HR-BLpGb4f2.js +0 -37
- package/dist/hr-HR-CXpCIMhI.js +0 -113
- package/dist/hr-HR-CZLSQruE.js +0 -57
- package/dist/hr-HR-D8_yhtIo.js +0 -29
- package/dist/hr-HR-VivDwwdW.js +0 -13
- package/dist/hr-HR-bE6cvRCQ.js +0 -68
- package/dist/hr-HR-n7aMHIpM.js +0 -13
- package/dist/hr-HR-qmYyO-nT.js +0 -55
- package/dist/hu-HU-CS-7iNS4.js +0 -55
- package/dist/hu-HU-Ca9Hex26.js +0 -37
- package/dist/hu-HU-DDsdPI5V.js +0 -13
- package/dist/hu-HU-DG-NUDx4.js +0 -68
- package/dist/hu-HU-D_DvlCMw.js +0 -13
- package/dist/hu-HU-DqEBeq-w.js +0 -113
- package/dist/hu-HU-KliQetm5.js +0 -29
- package/dist/hu-HU-WEtpzb41.js +0 -13
- package/dist/hu-HU-kp8Go5hZ.js +0 -57
- package/dist/id-blurred-9dzBOWCE.js +0 -59
- package/dist/id-cut-off-CohJCI2h.js +0 -55
- package/dist/id-front-CSZfvdRg.js +0 -52
- package/dist/id-glare-Q2JWo5ts.js +0 -49
- package/dist/id-verification-instant-BUVBO4R3.js +0 -58
- package/dist/id-verification-manual-B3YZALYU.js +0 -55
- package/dist/iframeWidget-yBLSAmf8.js +0 -234
- package/dist/image-BSihO8lR.js +0 -17
- package/dist/info-vHTZWoJ7.js +0 -21
- package/dist/instant-verification-Dvvkyfmp.js +0 -40
- package/dist/it-IT-B0YGvVgW.js +0 -57
- package/dist/it-IT-BTWkWSJq.js +0 -55
- package/dist/it-IT-C2MZo4KT.js +0 -13
- package/dist/it-IT-DLm11dH5.js +0 -13
- package/dist/it-IT-Erh1DIlj.js +0 -68
- package/dist/it-IT-MwpjRAG6.js +0 -29
- package/dist/it-IT-NCFAqV1F.js +0 -113
- package/dist/it-IT-Qfzc8jnW.js +0 -37
- package/dist/it-IT-yV7ewjWU.js +0 -13
- package/dist/ja-JP-2u5fqLWF.js +0 -29
- package/dist/ja-JP-Bktpl_2b.js +0 -118
- package/dist/ja-JP-CHQ64lw1.js +0 -37
- package/dist/ja-JP-CSz7fEkn.js +0 -55
- package/dist/ja-JP-CWe8f7m4.js +0 -13
- package/dist/ja-JP-C_-moDrA.js +0 -113
- package/dist/ja-JP-Ctsk4z4q.js +0 -151
- package/dist/ja-JP-Dz9IVH4p.js +0 -57
- package/dist/ja-JP-ThzG9vIo.js +0 -68
- package/dist/ja-JP-bz7ekGnF.js +0 -27
- package/dist/localizeDateString-C-G2nUor.js +0 -27
- package/dist/location-Q4oKvnkl.js +0 -17
- package/dist/lt-LT-0RKZeraM.js +0 -37
- package/dist/lt-LT-B6XmKUXx.js +0 -55
- package/dist/lt-LT-BEsBoIQ9.js +0 -29
- package/dist/lt-LT-CU5qHa7a.js +0 -113
- package/dist/lt-LT-CYiW52tl.js +0 -13
- package/dist/lt-LT-Cg9c0kae.js +0 -13
- package/dist/lt-LT-Nd1uRoIj.js +0 -68
- package/dist/lt-LT-W6fTjwB5.js +0 -13
- package/dist/lt-LT-l9rzkFg9.js +0 -57
- package/dist/lv-LV-Bh-WQp0K.js +0 -37
- package/dist/lv-LV-CgMxfFK8.js +0 -13
- package/dist/lv-LV-CpGkmcLz.js +0 -113
- package/dist/lv-LV-CxUmQHF9.js +0 -13
- package/dist/lv-LV-DKhV24CI.js +0 -68
- package/dist/lv-LV-DYbb5pkt.js +0 -57
- package/dist/lv-LV-DsSpy50n.js +0 -55
- package/dist/lv-LV-DsxFGThp.js +0 -13
- package/dist/lv-LV-Veji7-on.js +0 -29
- package/dist/mail-BOdyoVqB.js +0 -14
- package/dist/manual-verification-BvZWqA00.js +0 -41
- package/dist/mapExistingFile-BhW5UmN9.js +0 -156
- package/dist/mapFinancialReportsToFinancialInformation-Dl-cl9eQ.js +0 -67
- package/dist/mapJpAddressSchemaToAddressLocalizations-KFAvfuC1.js +0 -63
- package/dist/mapLegalEntityToIndividualOnfidoSchema-D51tRiYd.js +0 -143
- package/dist/mapTransferInstrumentToPayoutAccount-CU5wx0wJ.js +0 -33
- package/dist/minus-circle-filled-kC2IUvKz.js +0 -17
- package/dist/nl-NL-BMUYBqlF.js +0 -57
- package/dist/nl-NL-Bk-1-C0e.js +0 -13
- package/dist/nl-NL-BuW3jWdI.js +0 -29
- package/dist/nl-NL-CMw-FwQV.js +0 -13
- package/dist/nl-NL-CTf7zH4M.js +0 -55
- package/dist/nl-NL-D7gBNWEY.js +0 -37
- package/dist/nl-NL-DKMs4pB2.js +0 -13
- package/dist/nl-NL-DMpB18Te.js +0 -113
- package/dist/nl-NL-O9GCHMDA.js +0 -68
- package/dist/no-NO-B-oUwe9q.js +0 -13
- package/dist/no-NO-C-gCYc9q.js +0 -37
- package/dist/no-NO-CA0EizAy.js +0 -29
- package/dist/no-NO-CA1aR6Wh.js +0 -68
- package/dist/no-NO-Ca5qoVaU.js +0 -113
- package/dist/no-NO-DKbWxgF-.js +0 -57
- package/dist/no-NO-DN9qf-_I.js +0 -13
- package/dist/no-NO-Dhj0Fh__.js +0 -13
- package/dist/no-NO-RfTK9KAV.js +0 -55
- package/dist/onfido-logo-BWSv__sQ.js +0 -14
- package/dist/options-horizontal-CBmbNv7R.js +0 -18
- package/dist/partner-CPjsrePY.js +0 -18
- package/dist/passport-blurred-B4UDQfmc.js +0 -59
- package/dist/passport-cut-off-C0N2mgLk.js +0 -56
- package/dist/passport-front-BwA7wR91.js +0 -52
- package/dist/passport-front-green-BL4HmtsB.js +0 -232
- package/dist/passport-glare-Mg2ixsYA.js +0 -50
- package/dist/pay-by-link-plane-BVZndh67.js +0 -22
- package/dist/payout-ChUEoLjt.js +0 -20
- package/dist/payout-verification-instant-5u-wvFKv.js +0 -41
- package/dist/payout-verification-manual-BH2mu0UW.js +0 -90
- package/dist/person-DGjUU4S4.js +0 -17
- package/dist/pl-PL-B0zGy_b4.js +0 -57
- package/dist/pl-PL-BKDK0_G8.js +0 -68
- package/dist/pl-PL-BSI0zHO1.js +0 -113
- package/dist/pl-PL-D7nhdbfR.js +0 -29
- package/dist/pl-PL-DGSYzOx6.js +0 -13
- package/dist/pl-PL-Duj3tncM.js +0 -13
- package/dist/pl-PL-Dy8qWH39.js +0 -55
- package/dist/pl-PL-LnVPufjb.js +0 -37
- package/dist/pl-PL-p8YxqOFg.js +0 -13
- package/dist/plaid-logo-CtActXTN.js +0 -14
- package/dist/plus-CWXA5wdX.js +0 -14
- package/dist/plus-circle-filled-CbC0u2Y1.js +0 -17
- package/dist/process-field-configurations-DoOFQqtn.js +0 -324
- package/dist/pt-BR--kaJvtE6.js +0 -57
- package/dist/pt-BR-BbFJsIVX.js +0 -55
- package/dist/pt-BR-Be5ZycMV.js +0 -13
- package/dist/pt-BR-Cj8MlQyq.js +0 -113
- package/dist/pt-BR-Cm4vZocb.js +0 -13
- package/dist/pt-BR-D1nTSLod.js +0 -29
- package/dist/pt-BR-DKrMpM6v.js +0 -13
- package/dist/pt-BR-NtLaWlnZ.js +0 -68
- package/dist/pt-BR-ur86nRrK.js +0 -37
- package/dist/pt-PT-B4F_5NWi.js +0 -55
- package/dist/pt-PT-B9L50746.js +0 -29
- package/dist/pt-PT-BJjCTMYf.js +0 -13
- package/dist/pt-PT-BJkVzfAJ.js +0 -113
- package/dist/pt-PT-BR-BI5Jn.js +0 -13
- package/dist/pt-PT-BZ5ZZm6G.js +0 -57
- package/dist/pt-PT-Bh7v8xbp.js +0 -13
- package/dist/pt-PT-CVNEcs32.js +0 -37
- package/dist/pt-PT-DSxxVA0f.js +0 -68
- package/dist/recurring-CkL4cCM2.js +0 -17
- package/dist/reporting-DerosUNm.js +0 -16
- package/dist/resolveEnvironment-Dyejukh7.js +0 -164
- package/dist/revenue-accelerate-Dp4Ns_5c.js +0 -17
- package/dist/review-CxIN9azU.js +0 -17
- package/dist/ro-RO-5I4Q_FyK.js +0 -13
- package/dist/ro-RO-B8leE4ZJ.js +0 -13
- package/dist/ro-RO-Bybq8JFn.js +0 -68
- package/dist/ro-RO-CICjAFys.js +0 -55
- package/dist/ro-RO-CdSsgoUG.js +0 -57
- package/dist/ro-RO-DjGku_3y.js +0 -13
- package/dist/ro-RO-DvG65dTt.js +0 -29
- package/dist/ro-RO-RgC5M6CE.js +0 -113
- package/dist/ro-RO-i7lojG2G.js +0 -37
- package/dist/rules-DP604XPJ.js +0 -314
- package/dist/save-Fgy7EDid.js +0 -14
- package/dist/search-C4GZ-Rc1.js +0 -17
- package/dist/show-yPjPmEf8.js +0 -17
- package/dist/singpass-logo-BkMSwiGY.js +0 -17
- package/dist/singpass-verification-instant-hY4eGFwl.js +0 -40
- package/dist/singpass-verification-manual-DwhRpy5Q.js +0 -34
- package/dist/sk-SK-0BVxI7bf.js +0 -113
- package/dist/sk-SK-B5brxU1N.js +0 -37
- package/dist/sk-SK-BMJgOJoa.js +0 -29
- package/dist/sk-SK-BRd5TN22.js +0 -55
- package/dist/sk-SK-BVmoP_EU.js +0 -13
- package/dist/sk-SK-BWwRIx2d.js +0 -13
- package/dist/sk-SK-Bb18qPBw.js +0 -13
- package/dist/sk-SK-BiBWPJUf.js +0 -57
- package/dist/sk-SK-C6rMIxpz.js +0 -68
- package/dist/sl-SI-6s8xycKg.js +0 -13
- package/dist/sl-SI-BMF8YtOm.js +0 -29
- package/dist/sl-SI-BxImW_RL.js +0 -113
- package/dist/sl-SI-CUCrzJQv.js +0 -37
- package/dist/sl-SI-CaJmYb6p.js +0 -13
- package/dist/sl-SI-D8dDckrW.js +0 -55
- package/dist/sl-SI-DtdGMD6i.js +0 -57
- package/dist/sl-SI-ZxyvdgdS.js +0 -13
- package/dist/sl-SI-tPwbFvOI.js +0 -68
- package/dist/solution-payments-CNAat9h7.js +0 -14
- package/dist/store-IuAkDRAp.js +0 -14
- package/dist/sv-SE-B1sbgsnh.js +0 -13
- package/dist/sv-SE-BUq1X9F0.js +0 -113
- package/dist/sv-SE-BYC_f8r7.js +0 -29
- package/dist/sv-SE-C6uPh9g5.js +0 -37
- package/dist/sv-SE-CCFIf86P.js +0 -13
- package/dist/sv-SE-DGpvVvWj.js +0 -55
- package/dist/sv-SE-D_ZnGxiQ.js +0 -13
- package/dist/sv-SE-K1QT1cOt.js +0 -68
- package/dist/sv-SE-kR514dO1.js +0 -57
- package/dist/tax-reporting-graph-DjzwRgE6.js +0 -504
- package/dist/terminal-1-_me9J9h0.js +0 -18
- package/dist/tink-logo-BcIv93ND.js +0 -17
- package/dist/types/components/Business/forms/AdditionalInformation/AdditionalInformationMultiform.d.ts +0 -9
- package/dist/types/components/Business/forms/AdditionalInformation/VerifiedBusinessCard.d.ts +0 -9
- package/dist/types/components/Business/forms/BasicInformation/BasicInformationMultiform.d.ts +0 -11
- package/dist/types/components/Business/forms/BusinessDetails/BusinessDetails.d.ts +0 -3
- package/dist/types/components/Business/forms/BusinessSelection/BusinessSelectionMultiform.d.ts +0 -14
- package/dist/types/components/Business/forms/CompanyStructure/CompanyStructureMultiform.d.ts +0 -4
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/mandatoryFields.d.ts +0 -3
- package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/BusinessDetailsMultiformDropin.d.ts +0 -5
- package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/types.d.ts +0 -2
- package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/utils.d.ts +0 -19
- package/dist/types/components/Individual/fields/DecisionMakerRole/DecisionMakerRole.d.ts +0 -3
- package/dist/types/components/Individual/fields/DecisionMakerRole/NomineeDecisionMakerRole.d.ts +0 -10
- package/dist/types/components/Individual/fields/DecisionMakerRole/types.d.ts +0 -23
- package/dist/types/components/Individual/fields/LocalizedNameFields/types.d.ts +0 -9
- package/dist/types/components/Individual/fields/NameFields/validate.d.ts +0 -4
- package/dist/types/components/Individual/forms/Individual/IdDocumentUpload/IdDocumentAlreadyUpload.d.ts +0 -2
- package/dist/types/components/Individual/forms/Individual/IdDocumentUpload/IdDocumentInstantVerification.d.ts +0 -3
- package/dist/types/components/Individual/forms/Individual/IdDocumentUpload/IdDocumentUpload.d.ts +0 -3
- package/dist/types/components/Individual/forms/Individual/IdDocumentUpload/types.d.ts +0 -53
- package/dist/types/components/Individual/forms/Individual/IdDocumentUpload/utils.d.ts +0 -3
- package/dist/types/components/Individual/forms/Individual/IdVerificationMethod/IdVerificationMethod.d.ts +0 -3
- package/dist/types/components/Individual/forms/Individual/IdVerificationMethod/idVerificationMethodMetadata.d.ts +0 -15
- package/dist/types/components/Individual/forms/Individual/IdVerificationMethod/types.d.ts +0 -14
- package/dist/types/components/Individual/forms/Individual/Individual.d.ts +0 -9
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/Identity.d.ts +0 -2
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/IdentityAu/IdentityAu.d.ts +0 -2
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/IdentityAu/validate.d.ts +0 -3
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/IdentityHK/IdentityHK.d.ts +0 -2
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/IdentityHK/validate.d.ts +0 -3
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/IdentityNZ/IdentityNZ.d.ts +0 -2
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/IdentityNZ/validate.d.ts +0 -3
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/TypeOfIdentity/index.d.ts +0 -11
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/identityUS/IdentityUS.d.ts +0 -4
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/types.d.ts +0 -14
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/PersonalDetails.d.ts +0 -3
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/types.d.ts +0 -39
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/validate.d.ts +0 -21
- package/dist/types/components/Individual/forms/Individual/ProofOfRelationship/types.d.ts +0 -14
- package/dist/types/components/Individual/forms/Individual/ProofOfResidency/types.d.ts +0 -39
- package/dist/types/components/Individual/forms/Individual/rules.d.ts +0 -40
- package/dist/types/components/Individual/forms/Individual/types.d.ts +0 -51
- package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/AdditionalPersonalDetails.types.d.ts +0 -29
- package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/Identity/Identity.types.d.ts +0 -13
- package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/Identity/TypeOfIdentity/index.d.ts +0 -11
- package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/Identity/validate.d.ts +0 -4
- package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/validate.d.ts +0 -22
- package/dist/types/components/Individual/forms/IndividualOnfido/BasicDetails/BasicDetails.types.d.ts +0 -22
- package/dist/types/components/Individual/forms/IndividualOnfido/BasicDetails/validate.d.ts +0 -6
- package/dist/types/components/Individual/forms/IndividualOnfido/DataConflictsModal/ConflictRow.d.ts +0 -12
- package/dist/types/components/Individual/forms/IndividualOnfido/DataConflictsModal/DataConflictsModal.d.ts +0 -24
- package/dist/types/components/Individual/forms/IndividualOnfido/IdNowVerificationModal/isIdNowModalOpen.d.ts +0 -17
- package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/IdVerificationMethod.types.d.ts +0 -20
- package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/OnfidoVerificationModal/OnfidoVerificationModal.d.ts +0 -7
- package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/UploadedDocument/UploadedDocument.d.ts +0 -7
- package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/individualOnfidoConflictsSchema.d.ts +0 -46
- package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/mapExtractionResultToSchema.d.ts +0 -4
- package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/validateExtractionResult.d.ts +0 -12
- package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.d.ts +0 -52
- package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.rules.d.ts +0 -46
- package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.types.d.ts +0 -59
- package/dist/types/components/Individual/forms/IndividualOnfido/SignatoryQuestionnaire/SignatoryQuestionnaire.types.d.ts +0 -6
- package/dist/types/components/Individual/forms/IndividualOnfido/UboQuestionnaire/UboQuestionnaire.types.d.ts +0 -13
- package/dist/types/components/Individual/forms/IndividualOnfido/UboQuestionnaire/UboQuestionnaireModalContent.d.ts +0 -7
- package/dist/types/components/Individual/helpers/isOnfidoAutofillFlowEnabled.d.ts +0 -4
- package/dist/types/components/Individual/mapping/adjustIdentificationData.d.ts +0 -3
- package/dist/types/components/Individual/mapping/getIdentityTypeToApiIdentityTypeMap.d.ts +0 -3
- package/dist/types/components/Individual/mapping/individualOnfidoKeyMappings.d.ts +0 -8
- package/dist/types/components/Individual/mapping/mapIndividualOnfidoSchemaToLegalEntity.d.ts +0 -5
- package/dist/types/components/Individual/mapping/mapIndividualToLegalEntity.d.ts +0 -3
- package/dist/types/components/Individual/mapping/mapLegalEntityToIndividual.d.ts +0 -3
- package/dist/types/components/Individual/mapping/mapLegalEntityToIndividualOnfidoSchema.d.ts +0 -3
- package/dist/types/components/Individual/tasks/IndividualOnfidoDropin/IndividualOnfidoDropin.d.ts +0 -2
- package/dist/types/components/Individual/tasks/IndividualOnfidoDropin/individualOnfidoFormConfig.d.ts +0 -4
- package/dist/types/components/Shared/forms/BusinessTypeSelection/EntityTypeRadioGroupCard.d.ts +0 -11
- package/dist/types/components/Shared/forms/FinancialInformation/formatFinancialInformationSummary.d.ts +0 -4
- package/dist/types/components/Shared/forms/FinancialInformation/mapping/mapFinancialInformationToFinancialReport.d.ts +0 -3
- package/dist/types/components/Shared/forms/FinancialInformation/mapping/mapFinancialReportsToFinancialInformation.d.ts +0 -3
- package/dist/types/components/Shared/tasks/TaskList/utils.d.ts +0 -8
- package/dist/types/components/ui/molecules/Card/Card.d.ts +0 -3
- package/dist/types/components/ui/molecules/Card/types.d.ts +0 -26
- package/dist/types/embeds/EmbedBaseElement.d.ts +0 -41
- package/dist/types/embeds/EmbedCore.d.ts +0 -22
- package/dist/types/embeds/business-financing/AdyenBusinessFinancing.d.ts +0 -13
- package/dist/types/embeds/individual-configuration/AdyenIndividual.d.ts +0 -12
- package/dist/types/embeds/individual-status/AdyenManageIndividual.d.ts +0 -12
- package/dist/types/embeds/onboarding/AdyenOnboarding.d.ts +0 -12
- package/dist/types/embeds/terms-of-service-management/AdyenTermsOfService.d.ts +0 -12
- package/dist/types/embeds/terms-of-service-status/AdyenManageTermsOfService.d.ts +0 -12
- package/dist/types/embeds/transfer-instrument-configuration/AdyenTransferInstrument.d.ts +0 -16
- package/dist/types/embeds/transfer-instrument-management/AdyenManageTransferInstrument.d.ts +0 -14
- package/dist/types/embeds/verification-status/AdyenVerificationStatus.d.ts +0 -20
- package/dist/types-C972Lk6s.js +0 -34
- package/dist/types-CLz74bOT.js +0 -88
- package/dist/types-Ctv8hbzY.js +0 -74
- package/dist/types-f66rmUFy.js +0 -164
- package/dist/upload-BF65P4KM.js +0 -17
- package/dist/us-check-CYY6Crhr.js +0 -46
- package/dist/us-check-account-number-C7KE5YzX.js +0 -48
- package/dist/us-check-routing-number-DUbhsYAR.js +0 -49
- package/dist/useAssociatedLegalEntity-DAB1oG6O.js +0 -33
- package/dist/useCreateLegalEntity-BK5YcHA-.js +0 -31
- package/dist/useDataset-BtfHQp4w.js +0 -220
- package/dist/useForm-wQyeWa1b.js +0 -1623
- package/dist/useGlobalData-B33uuhtd.js +0 -68
- package/dist/useMultiForm-rZmCYsI4.js +0 -864
- package/dist/useOnboardingStatus-BbIpiZR4.js +0 -27
- package/dist/useScenarios-DPOodENA.js +0 -46
- package/dist/useTermsOfServiceStatus-DKeMR4Xi.js +0 -42
- package/dist/useToastContext-BK9oGWtb.js +0 -60
- package/dist/useUnincorporatedPartnershipMembers-Cdts5Hbn.js +0 -99
- package/dist/useUpdateBusinessLines-CWYtpMwr.js +0 -46
- package/dist/useUpdateLegalEntity-oa8qEzc4.js +0 -39
- package/dist/utils-AP5TpAhf.js +0 -774
- package/dist/utils-COz1RbbA.js +0 -237
- package/dist/validate-BYwVLb-X.js +0 -41
- package/dist/validate-CBVdP51L.js +0 -100
- package/dist/validationError-CvZLhw5H.js +0 -86
- package/dist/warning-circle-fill-CEN1WL7A.js +0 -17
- package/dist/warning-diamond-filled-BfXMlVrG.js +0 -17
- package/dist/webinar-DqjqrNEv.js +0 -22
- package/dist/yapily-logo-CZ4ywjwA.js +0 -17
- /package/dist/types/components/{Shared → Apps}/tasks/TaskList/PayoutAccountTaskListItem.d.ts +0 -0
- /package/dist/types/components/{Shared → Apps}/tasks/TaskList/TaskList.d.ts +0 -0
- /package/dist/types/components/{Shared → Apps}/tasks/TaskList/TaskListGroup.d.ts +0 -0
- /package/dist/types/components/{Shared → Apps}/tasks/TaskList/TaskListItem.d.ts +0 -0
- /package/dist/types/components/{Shared → Apps}/tasks/TaskList/types.d.ts +0 -0
- /package/dist/types/components/Business/{tasks/BusinessDetailsMultiformDropin → forms/BusinessDetails}/BusinessDetailsMultiform.d.ts +0 -0
- /package/dist/types/components/{Shared → Business}/forms/FinancialInformation/FinancialInformation.d.ts +0 -0
- /package/dist/types/components/{Shared → Business}/forms/FinancialInformation/ReportedValue.d.ts +0 -0
- /package/dist/types/components/{Shared → Business}/forms/FinancialInformation/types.d.ts +0 -0
- /package/dist/types/components/{Shared → Business}/forms/FinancialInformation/validate.d.ts +0 -0
- /package/dist/types/components/Business/tasks/{BusinessDetailsMultiformDropin → BusinessDetailsDropin}/validate.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{IndividualOnfido/AdditionalPersonalDetails → AdditionalPersonalDetails}/AdditionalPersonalDetails.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{IndividualOnfido/AdditionalPersonalDetails → AdditionalPersonalDetails}/Identity/Identity.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{IndividualOnfido/BasicDetails → BasicDetails}/BasicDetails.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{IndividualOnfido/GuidanceQuestion → GuidanceQuestion}/GuidanceQuestion.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{Individual/IdDocumentUpload → IdDocumentUpload}/IdDocumentManualUpload.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{IndividualOnfido/IdNowVerificationModal → IdNowVerificationModal}/IdNowVerificationModal.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{Individual/IdVerification → IdVerification}/IdVerification.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{Individual/IdVerification → IdVerification}/idVerificationProviderId.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{Individual/IdVerification → IdVerification}/types.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{IndividualOnfido/IdVerificationMethod → IdVerificationMethod}/IdVerificationMethod.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{IndividualOnfido/ManualIdUpload → ManualIdUpload}/ManualIdUpload.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{Individual/ProofOfRelationship → ProofOfRelationship}/index.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{Individual/ProofOfResidency → ProofOfResidency}/ProofOfResidency.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{IndividualOnfido/SignatoryQuestionnaire → SignatoryQuestionnaire}/SignatoryQuestionnaire.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{IndividualOnfido/SignatoryQuestionnaire → SignatoryQuestionnaire}/SignatoryQuestionnaireModalContent.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{IndividualOnfido/UboQuestionnaire → UboQuestionnaire}/UboQuestionnaire.d.ts +0 -0
- /package/dist/types/components/Individual/tasks/{IndividualOnfidoDropin/IndividualOnfidoStore.d.ts → IndividualDropin/IndividualStore.d.ts} +0 -0
- /package/dist/types/components/{Individual → Shared}/fields/LocalizedNameFields/LocalizedNameFields.d.ts +0 -0
|
@@ -0,0 +1,2361 @@
|
|
|
1
|
+
;
|
|
2
|
+
{
|
|
3
|
+
try {
|
|
4
|
+
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "08227dd5-6fa3-4b7e-b481-77ddabc7a5e8", e._sentryDebugIdIdentifier = "sentry-dbid-08227dd5-6fa3-4b7e-b481-77ddabc7a5e8");
|
|
6
|
+
} catch (e) {
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
;
|
|
10
|
+
import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
|
|
11
|
+
import { C as Checkbox } from "./Checkbox-BSxszx-9.js";
|
|
12
|
+
import { F as Field } from "./Field-CpaVW2RZ.js";
|
|
13
|
+
import { m as makeMask, n as numericInputs, s as spacer, M as MaskedInput, a as nonInputs, b as alphaInputs, d as alphanumericInputs } from "./MaskedInput-DEaltj9a.js";
|
|
14
|
+
import { useMemo, useCallback, useEffect, useRef } from "preact/hooks";
|
|
15
|
+
import { R as RadioGroup } from "./RadioGroup-B7fMJqmd.js";
|
|
16
|
+
import { u as useTranslation, a0 as CountryCodes, v as useExperimentsContext, a6 as objectsDeepEqual, o as LegalEntityTypes } from "./StoreProvider-qjyWZhxu.js";
|
|
17
|
+
import { j as getCompanyRegistrationNumberOptions, s as stateFormatGuidanceText, p as businessRegistrationNumberMasks, q as businessRegistrationNumberPatterns, v as vatNumberOptions, w as getVatNumberOptions, M as MemoizedDocumentUpload } from "./TaxInformationField-Dxx36AGr.js";
|
|
18
|
+
import { C as CompanyTypesValues } from "./company-types-value-D_mKv5PT.js";
|
|
19
|
+
import { a as validateNotEmptyOnBlur, v as validatePatternOnBlur } from "./patternValidators-Ddoxs0Q5.js";
|
|
20
|
+
import { I as InputText } from "./InputText-DmFCHVKa.js";
|
|
21
|
+
import { u as uppercase } from "./mapExistingFile-1MUQJf2c.js";
|
|
22
|
+
import { createElement } from "preact";
|
|
23
|
+
import { H as Header } from "./Header-hKHJmYRN.js";
|
|
24
|
+
import { S as StateContextSetter } from "./validate-BnkIeDb7.js";
|
|
25
|
+
import { u as useForm } from "./useForm-CsrT0zKF.js";
|
|
26
|
+
import { C as ContextGuidance } from "./ContextGuidance-BgMTeWIT.js";
|
|
27
|
+
import { E as ErrorPanel } from "./ErrorPanel-Doqj6bY8.js";
|
|
28
|
+
import { c as createFormUtils } from "./formUtils-BYIcPMjp.js";
|
|
29
|
+
import { a as getFormProps } from "./getProps-Cc3J2-z9.js";
|
|
30
|
+
import { A as Address } from "./Address-CbJvGOYV.js";
|
|
31
|
+
import { memo } from "preact/compat";
|
|
32
|
+
import { u as usePageLandedEvent } from "./Summary-Bgq_Kcjg.js";
|
|
33
|
+
function CompanyRegistrationNumberTypeSelector({
|
|
34
|
+
country,
|
|
35
|
+
companyType,
|
|
36
|
+
selected,
|
|
37
|
+
setSelected,
|
|
38
|
+
exemptedOption
|
|
39
|
+
}) {
|
|
40
|
+
const { t } = useTranslation("common");
|
|
41
|
+
const options = useMemo(() => {
|
|
42
|
+
const availableOptions = getCompanyRegistrationNumberOptions(country, companyType) ?? [];
|
|
43
|
+
if (availableOptions.length === 0 || !exemptedOption) return availableOptions;
|
|
44
|
+
return [
|
|
45
|
+
...availableOptions,
|
|
46
|
+
{
|
|
47
|
+
id: "exempted",
|
|
48
|
+
name: exemptedOption
|
|
49
|
+
}
|
|
50
|
+
];
|
|
51
|
+
}, [companyType, country, exemptedOption]);
|
|
52
|
+
const handleSelect = useCallback(
|
|
53
|
+
(selectedStr) => {
|
|
54
|
+
const newSelected = selectedStr;
|
|
55
|
+
if (newSelected === "exempted") {
|
|
56
|
+
if (exemptedOption) {
|
|
57
|
+
setSelected(newSelected);
|
|
58
|
+
}
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
setSelected(newSelected);
|
|
62
|
+
},
|
|
63
|
+
[exemptedOption, setSelected]
|
|
64
|
+
);
|
|
65
|
+
useEffect(() => {
|
|
66
|
+
if (options.length > 0 && (!selected || !options.some((option) => option.id === selected))) {
|
|
67
|
+
if (selected === "exempted") return;
|
|
68
|
+
setSelected(options[0].id);
|
|
69
|
+
}
|
|
70
|
+
}, [options, selected, setSelected]);
|
|
71
|
+
if (options.length <= 1) return null;
|
|
72
|
+
return /* @__PURE__ */ jsx(
|
|
73
|
+
Field,
|
|
74
|
+
{
|
|
75
|
+
el: "fieldset",
|
|
76
|
+
name: "companyRegistrationNumberType",
|
|
77
|
+
label: t(($) => $["whichTypeOfRegistrationNumberDoYouHave"]),
|
|
78
|
+
children: (childProps) => /* @__PURE__ */ jsx(
|
|
79
|
+
RadioGroup,
|
|
80
|
+
{
|
|
81
|
+
...childProps,
|
|
82
|
+
name: "companyRegistrationNumberType",
|
|
83
|
+
items: options,
|
|
84
|
+
value: selected,
|
|
85
|
+
onChange: handleSelect
|
|
86
|
+
}
|
|
87
|
+
)
|
|
88
|
+
}
|
|
89
|
+
);
|
|
90
|
+
}
|
|
91
|
+
const registrationNumberDefaultFieldMetadata = {
|
|
92
|
+
label: "registrationNumber"
|
|
93
|
+
};
|
|
94
|
+
const registrationNumberDefaultFieldConfig = {
|
|
95
|
+
[CountryCodes.Australia]: ({ companyType }) => {
|
|
96
|
+
if (companyType === CompanyTypesValues.INCORPORATED_ASSOCIATION) {
|
|
97
|
+
return {
|
|
98
|
+
label: "incorporatedAssociationRegistrationNumber",
|
|
99
|
+
mask: businessRegistrationNumberMasks[CountryCodes.Australia].associationIncorporated,
|
|
100
|
+
validators: validatePatternOnBlur(
|
|
101
|
+
businessRegistrationNumberPatterns[CountryCodes.Australia].associationIncorporated
|
|
102
|
+
),
|
|
103
|
+
guidanceText: {
|
|
104
|
+
key: "enterXToYCharactersForExample",
|
|
105
|
+
values: {
|
|
106
|
+
minChars: "3",
|
|
107
|
+
maxChars: "20",
|
|
108
|
+
example: "200312345A"
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
return {
|
|
114
|
+
label: "australianBusinessNumberAcn",
|
|
115
|
+
mask: businessRegistrationNumberMasks[CountryCodes.Australia].default,
|
|
116
|
+
validators: validatePatternOnBlur(
|
|
117
|
+
businessRegistrationNumberPatterns[CountryCodes.Australia].default
|
|
118
|
+
),
|
|
119
|
+
guidanceText: {
|
|
120
|
+
key: "enterNDigitsForExample",
|
|
121
|
+
values: {
|
|
122
|
+
numDigits: "9",
|
|
123
|
+
example: "123 456 789"
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
},
|
|
128
|
+
[CountryCodes.Austria]: ({ registrationNumberType }) => registrationNumberType === "ZVR" ? {
|
|
129
|
+
label: "zentralesVereinsregisterId",
|
|
130
|
+
mask: businessRegistrationNumberMasks[CountryCodes.Austria].ZVR,
|
|
131
|
+
validators: validatePatternOnBlur(
|
|
132
|
+
businessRegistrationNumberPatterns[CountryCodes.Austria].ZVR
|
|
133
|
+
),
|
|
134
|
+
guidanceText: {
|
|
135
|
+
key: "enterTheRemainingNDigitsForExample",
|
|
136
|
+
values: {
|
|
137
|
+
numDigits: "9-10",
|
|
138
|
+
example: "AT-ZVR-555769679"
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
} : {
|
|
142
|
+
label: "firmenbuchnummer",
|
|
143
|
+
mask: businessRegistrationNumberMasks[CountryCodes.Austria].firmenbuchnummer,
|
|
144
|
+
validators: validatePatternOnBlur(
|
|
145
|
+
businessRegistrationNumberPatterns[CountryCodes.Austria].firmenbuchnummer
|
|
146
|
+
),
|
|
147
|
+
guidanceText: {
|
|
148
|
+
key: "enterAMaximumOfNCharactersWithAMixForExample",
|
|
149
|
+
values: {
|
|
150
|
+
maxChars: "9",
|
|
151
|
+
example: "T1001a, FN89060n"
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
[CountryCodes.Belgium]: {
|
|
156
|
+
label: "enterpriseNumber",
|
|
157
|
+
mask: businessRegistrationNumberMasks[CountryCodes.Belgium].default,
|
|
158
|
+
validators: validatePatternOnBlur(
|
|
159
|
+
businessRegistrationNumberPatterns[CountryCodes.Belgium].default
|
|
160
|
+
),
|
|
161
|
+
guidanceText: {
|
|
162
|
+
key: "enterNDigitsForExample",
|
|
163
|
+
values: {
|
|
164
|
+
numDigits: "10",
|
|
165
|
+
example: "1234567890"
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
[CountryCodes.Brazil]: {
|
|
170
|
+
label: "CNPJ",
|
|
171
|
+
mask: businessRegistrationNumberMasks[CountryCodes.Brazil].default,
|
|
172
|
+
validators: validatePatternOnBlur(
|
|
173
|
+
businessRegistrationNumberPatterns[CountryCodes.Brazil].default
|
|
174
|
+
),
|
|
175
|
+
guidanceText: {
|
|
176
|
+
key: "enterNDigitsForExample",
|
|
177
|
+
values: {
|
|
178
|
+
numDigits: "14",
|
|
179
|
+
example: "28.773.626/8318-21"
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
[CountryCodes.Bulgaria]: {
|
|
184
|
+
label: "uniqueIdentificationCode",
|
|
185
|
+
mask: businessRegistrationNumberMasks[CountryCodes.Bulgaria].default,
|
|
186
|
+
validators: validatePatternOnBlur(
|
|
187
|
+
businessRegistrationNumberPatterns[CountryCodes.Bulgaria].default
|
|
188
|
+
),
|
|
189
|
+
guidanceText: {
|
|
190
|
+
key: "enterNDigitsForExample",
|
|
191
|
+
values: {
|
|
192
|
+
numDigits: "9",
|
|
193
|
+
example: "812114069"
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
[CountryCodes.Canada]: {
|
|
198
|
+
label: "businessIncorporationNumber",
|
|
199
|
+
mask: businessRegistrationNumberMasks[CountryCodes.Canada].default,
|
|
200
|
+
validators: validatePatternOnBlur(
|
|
201
|
+
businessRegistrationNumberPatterns[CountryCodes.Canada].default
|
|
202
|
+
),
|
|
203
|
+
guidanceText: {
|
|
204
|
+
key: "enterXToYCharactersForExample",
|
|
205
|
+
values: {
|
|
206
|
+
minChars: "5",
|
|
207
|
+
maxChars: "10",
|
|
208
|
+
example: "BC1234567"
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
},
|
|
212
|
+
[CountryCodes.Croatia]: ({ companyType }) => {
|
|
213
|
+
switch (companyType) {
|
|
214
|
+
case CompanyTypesValues.SOLE_PROPRIETORSHIP:
|
|
215
|
+
return {
|
|
216
|
+
label: "MBO",
|
|
217
|
+
mask: businessRegistrationNumberMasks[CountryCodes.Croatia].soleProprietorship,
|
|
218
|
+
validators: validatePatternOnBlur(
|
|
219
|
+
businessRegistrationNumberPatterns[CountryCodes.Croatia].soleProprietorship
|
|
220
|
+
),
|
|
221
|
+
guidanceText: {
|
|
222
|
+
key: "enterNDigitsForExample",
|
|
223
|
+
values: {
|
|
224
|
+
numDigits: "8",
|
|
225
|
+
example: "12345678"
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
};
|
|
229
|
+
default:
|
|
230
|
+
return {
|
|
231
|
+
label: "MBS",
|
|
232
|
+
mask: businessRegistrationNumberMasks[CountryCodes.Croatia].default,
|
|
233
|
+
validators: validatePatternOnBlur(
|
|
234
|
+
businessRegistrationNumberPatterns[CountryCodes.Croatia].default
|
|
235
|
+
),
|
|
236
|
+
guidanceText: {
|
|
237
|
+
key: "enterNDigitsForExample",
|
|
238
|
+
values: {
|
|
239
|
+
numDigits: "9",
|
|
240
|
+
example: "080020970"
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
};
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
[CountryCodes.Cyprus]: {
|
|
247
|
+
label: "cyRegistrationNumber",
|
|
248
|
+
mask: businessRegistrationNumberMasks[CountryCodes.Cyprus].default,
|
|
249
|
+
validators: validatePatternOnBlur(
|
|
250
|
+
businessRegistrationNumberPatterns[CountryCodes.Cyprus].default
|
|
251
|
+
),
|
|
252
|
+
guidanceText: {
|
|
253
|
+
key: "enterEnglishLetterFollowedByXtoYDigitsForExample",
|
|
254
|
+
values: {
|
|
255
|
+
minDigits: "1",
|
|
256
|
+
maxDigits: "8",
|
|
257
|
+
example: "C12345678"
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
},
|
|
261
|
+
[CountryCodes.CzechRepublic]: {
|
|
262
|
+
label: "ICO",
|
|
263
|
+
mask: businessRegistrationNumberMasks[CountryCodes.CzechRepublic].default,
|
|
264
|
+
validators: validatePatternOnBlur(
|
|
265
|
+
businessRegistrationNumberPatterns[CountryCodes.CzechRepublic].default
|
|
266
|
+
),
|
|
267
|
+
guidanceText: {
|
|
268
|
+
key: "enterXToYDigitsForExample",
|
|
269
|
+
values: {
|
|
270
|
+
minDigits: "8",
|
|
271
|
+
maxDigits: "10",
|
|
272
|
+
example: "12345678"
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
},
|
|
276
|
+
[CountryCodes.Denmark]: {
|
|
277
|
+
label: "CVR-nummer",
|
|
278
|
+
mask: businessRegistrationNumberMasks[CountryCodes.Denmark].default,
|
|
279
|
+
validators: validatePatternOnBlur(
|
|
280
|
+
businessRegistrationNumberPatterns[CountryCodes.Denmark].default
|
|
281
|
+
),
|
|
282
|
+
guidanceText: {
|
|
283
|
+
key: "enterNDigitsForExample",
|
|
284
|
+
values: {
|
|
285
|
+
numDigits: "8",
|
|
286
|
+
example: "22756214"
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
},
|
|
290
|
+
[CountryCodes.Estonia]: {
|
|
291
|
+
label: "registrikood",
|
|
292
|
+
mask: businessRegistrationNumberMasks[CountryCodes.Estonia].default,
|
|
293
|
+
validators: validatePatternOnBlur(
|
|
294
|
+
businessRegistrationNumberPatterns[CountryCodes.Estonia].default
|
|
295
|
+
),
|
|
296
|
+
guidanceText: {
|
|
297
|
+
key: "enterNDigitsForExample",
|
|
298
|
+
values: {
|
|
299
|
+
numDigits: "8",
|
|
300
|
+
example: "10345833"
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
},
|
|
304
|
+
[CountryCodes.Finland]: {
|
|
305
|
+
label: "YTunnus",
|
|
306
|
+
mask: businessRegistrationNumberMasks[CountryCodes.Finland].default,
|
|
307
|
+
validators: validatePatternOnBlur(
|
|
308
|
+
businessRegistrationNumberPatterns[CountryCodes.Finland].default
|
|
309
|
+
),
|
|
310
|
+
guidanceText: {
|
|
311
|
+
key: "enterNDigitsForExample",
|
|
312
|
+
values: {
|
|
313
|
+
numDigits: "8",
|
|
314
|
+
example: "1234567-8"
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
},
|
|
318
|
+
[CountryCodes.France]: ({ registrationNumberType }) => registrationNumberType === "RNA" ? {
|
|
319
|
+
label: "rnaNumber",
|
|
320
|
+
mask: businessRegistrationNumberMasks[CountryCodes.France].RNA,
|
|
321
|
+
validators: validatePatternOnBlur(
|
|
322
|
+
businessRegistrationNumberPatterns[CountryCodes.France].RNA
|
|
323
|
+
),
|
|
324
|
+
guidanceText: {
|
|
325
|
+
key: "enterTheRemainingNDigitsForExample",
|
|
326
|
+
values: {
|
|
327
|
+
numDigits: "9",
|
|
328
|
+
example: "W123456789 or W9M1234567"
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
} : {
|
|
332
|
+
label: "siret",
|
|
333
|
+
mask: businessRegistrationNumberMasks[CountryCodes.France].SIRET,
|
|
334
|
+
validators: validatePatternOnBlur(
|
|
335
|
+
businessRegistrationNumberPatterns[CountryCodes.France].SIRET
|
|
336
|
+
),
|
|
337
|
+
guidanceText: {
|
|
338
|
+
key: "enterNDigitsForExample",
|
|
339
|
+
values: {
|
|
340
|
+
numDigits: "14",
|
|
341
|
+
example: "542051180-00066"
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
},
|
|
345
|
+
[CountryCodes.Germany]: {
|
|
346
|
+
label: "handelsregisternummerOrVereinsregisternummer",
|
|
347
|
+
mask: businessRegistrationNumberMasks[CountryCodes.Germany].default,
|
|
348
|
+
validators: validatePatternOnBlur(
|
|
349
|
+
businessRegistrationNumberPatterns[CountryCodes.Germany].default
|
|
350
|
+
),
|
|
351
|
+
guidanceText: {
|
|
352
|
+
key: "enterAMaximumOfNCharactersWithAMixForExample",
|
|
353
|
+
values: {
|
|
354
|
+
maxChars: "20",
|
|
355
|
+
example: "HRB100484, HRA123456ABCDE-A1234, VR350378A"
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
},
|
|
359
|
+
[CountryCodes.Gibraltar]: {
|
|
360
|
+
label: "companyRegistrationNumber",
|
|
361
|
+
mask: businessRegistrationNumberMasks[CountryCodes.Gibraltar].default,
|
|
362
|
+
validators: validatePatternOnBlur(
|
|
363
|
+
businessRegistrationNumberPatterns[CountryCodes.Gibraltar].default
|
|
364
|
+
),
|
|
365
|
+
guidanceText: {
|
|
366
|
+
key: "enterAMaximumOfNCharactersForExample",
|
|
367
|
+
values: {
|
|
368
|
+
maxChars: "8",
|
|
369
|
+
example: "04366849"
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
},
|
|
373
|
+
[CountryCodes.Greece]: {
|
|
374
|
+
label: "GEMI-number",
|
|
375
|
+
mask: businessRegistrationNumberMasks[CountryCodes.Greece].default,
|
|
376
|
+
validators: validatePatternOnBlur(
|
|
377
|
+
businessRegistrationNumberPatterns[CountryCodes.Greece].default
|
|
378
|
+
),
|
|
379
|
+
guidanceText: {
|
|
380
|
+
key: "enterNDigitsForExample",
|
|
381
|
+
values: {
|
|
382
|
+
numDigits: "12",
|
|
383
|
+
example: "757001000000"
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
},
|
|
387
|
+
[CountryCodes.Guernsey]: {
|
|
388
|
+
label: "registrationNumber",
|
|
389
|
+
mask: businessRegistrationNumberMasks[CountryCodes.Guernsey].default,
|
|
390
|
+
validators: validatePatternOnBlur(
|
|
391
|
+
businessRegistrationNumberPatterns[CountryCodes.Guernsey].default
|
|
392
|
+
),
|
|
393
|
+
guidanceText: {
|
|
394
|
+
key: "enterAMaximumOfNDigitsForExample",
|
|
395
|
+
values: {
|
|
396
|
+
maxDigits: "9",
|
|
397
|
+
example: "123456"
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
},
|
|
401
|
+
[CountryCodes.HongKong]: {
|
|
402
|
+
label: "companyRegistrationNumber__HK",
|
|
403
|
+
mask: businessRegistrationNumberMasks[CountryCodes.HongKong].default,
|
|
404
|
+
validators: validatePatternOnBlur(
|
|
405
|
+
businessRegistrationNumberPatterns[CountryCodes.HongKong].default
|
|
406
|
+
),
|
|
407
|
+
guidanceText: {
|
|
408
|
+
key: "enterNDigitsForExample",
|
|
409
|
+
values: {
|
|
410
|
+
numDigits: "7",
|
|
411
|
+
example: "1234567"
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
},
|
|
415
|
+
[CountryCodes.Hungary]: ({ companyType }) => {
|
|
416
|
+
if (companyType === CompanyTypesValues.SOLE_PROPRIETORSHIP) {
|
|
417
|
+
return {
|
|
418
|
+
label: "huRegistrationNumberForSoleProp",
|
|
419
|
+
mask: businessRegistrationNumberMasks[CountryCodes.Hungary].nyilvantartasiSzam,
|
|
420
|
+
validators: validatePatternOnBlur(
|
|
421
|
+
businessRegistrationNumberPatterns[CountryCodes.Hungary].nyilvantartasiSzam
|
|
422
|
+
),
|
|
423
|
+
guidanceText: {
|
|
424
|
+
key: "enterXToYDigitsForExample",
|
|
425
|
+
values: {
|
|
426
|
+
minDigits: "7",
|
|
427
|
+
maxDigits: "10",
|
|
428
|
+
example: "06123456"
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
};
|
|
432
|
+
}
|
|
433
|
+
return {
|
|
434
|
+
label: "huRegistrationNumber",
|
|
435
|
+
mask: businessRegistrationNumberMasks[CountryCodes.Hungary].default,
|
|
436
|
+
validators: validatePatternOnBlur(
|
|
437
|
+
businessRegistrationNumberPatterns[CountryCodes.Hungary].default
|
|
438
|
+
),
|
|
439
|
+
guidanceText: {
|
|
440
|
+
key: "enterNDigitsForExample",
|
|
441
|
+
values: {
|
|
442
|
+
numDigits: "10",
|
|
443
|
+
example: "06-12-345678"
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
};
|
|
447
|
+
},
|
|
448
|
+
[CountryCodes.Ireland]: {
|
|
449
|
+
label: "companyNumber",
|
|
450
|
+
mask: businessRegistrationNumberMasks[CountryCodes.Ireland].default,
|
|
451
|
+
validators: validatePatternOnBlur(
|
|
452
|
+
businessRegistrationNumberPatterns[CountryCodes.Ireland].default
|
|
453
|
+
),
|
|
454
|
+
guidanceText: {
|
|
455
|
+
key: "enterAMaximumOfNDigitsForExample",
|
|
456
|
+
values: {
|
|
457
|
+
maxDigits: "8",
|
|
458
|
+
example: "10123456"
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
},
|
|
462
|
+
[CountryCodes.IsleOfMan]: {
|
|
463
|
+
label: "registrationNumber",
|
|
464
|
+
mask: businessRegistrationNumberMasks[CountryCodes.IsleOfMan].default,
|
|
465
|
+
validators: validatePatternOnBlur(
|
|
466
|
+
businessRegistrationNumberPatterns[CountryCodes.IsleOfMan].default
|
|
467
|
+
),
|
|
468
|
+
guidanceText: {
|
|
469
|
+
key: "enterNDigitsAndThen1LetterForExample",
|
|
470
|
+
values: {
|
|
471
|
+
numDigits: "6",
|
|
472
|
+
example: "114293C"
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
},
|
|
476
|
+
[CountryCodes.Italy]: ({ registrationNumberType }) => {
|
|
477
|
+
switch (registrationNumberType) {
|
|
478
|
+
case "CCIAA":
|
|
479
|
+
return {
|
|
480
|
+
label: "CCIAA",
|
|
481
|
+
mask: businessRegistrationNumberMasks[CountryCodes.Italy].CCIAA,
|
|
482
|
+
validators: validatePatternOnBlur(
|
|
483
|
+
businessRegistrationNumberPatterns[CountryCodes.Italy].CCIAA
|
|
484
|
+
),
|
|
485
|
+
guidanceText: {
|
|
486
|
+
key: "enterNLettersAndThenXToYDigitsForExample",
|
|
487
|
+
values: {
|
|
488
|
+
numLetters: "2",
|
|
489
|
+
minDigits: "6",
|
|
490
|
+
maxDigits: "7",
|
|
491
|
+
example: "TO0091712"
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
};
|
|
495
|
+
case "partitaIVA":
|
|
496
|
+
default:
|
|
497
|
+
return {
|
|
498
|
+
label: "codiceFiscalePartitaIVA",
|
|
499
|
+
validators: validatePatternOnBlur(/^\d{11}$/),
|
|
500
|
+
mask: {
|
|
501
|
+
mask: makeMask(spacer, ...numericInputs(11))
|
|
502
|
+
},
|
|
503
|
+
guidanceText: {
|
|
504
|
+
key: "enterTheRemainingNDigitsForExample",
|
|
505
|
+
values: {
|
|
506
|
+
numDigits: "11",
|
|
507
|
+
example: "47040001100"
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
};
|
|
511
|
+
}
|
|
512
|
+
},
|
|
513
|
+
[CountryCodes.Japan]: {
|
|
514
|
+
label: "corporateRegistrationNumber",
|
|
515
|
+
mask: businessRegistrationNumberMasks[CountryCodes.Japan].default,
|
|
516
|
+
validators: validatePatternOnBlur(
|
|
517
|
+
businessRegistrationNumberPatterns[CountryCodes.Japan].default
|
|
518
|
+
),
|
|
519
|
+
guidanceText: {
|
|
520
|
+
key: "enterAMaximumOfNCharactersForExample",
|
|
521
|
+
values: {
|
|
522
|
+
maxChars: "12",
|
|
523
|
+
example: "224863141686"
|
|
524
|
+
}
|
|
525
|
+
}
|
|
526
|
+
},
|
|
527
|
+
[CountryCodes.Jersey]: {
|
|
528
|
+
label: "registrationNumber",
|
|
529
|
+
mask: businessRegistrationNumberMasks[CountryCodes.Jersey].default,
|
|
530
|
+
validators: validatePatternOnBlur(
|
|
531
|
+
businessRegistrationNumberPatterns[CountryCodes.Jersey].default
|
|
532
|
+
),
|
|
533
|
+
guidanceText: {
|
|
534
|
+
key: "enterAMaximumOfNCharactersForExample",
|
|
535
|
+
values: {
|
|
536
|
+
maxChars: "9",
|
|
537
|
+
example: "123722"
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
},
|
|
541
|
+
[CountryCodes.Latvia]: {
|
|
542
|
+
label: "lvRegistrationNumber",
|
|
543
|
+
mask: businessRegistrationNumberMasks[CountryCodes.Latvia].default,
|
|
544
|
+
validators: validatePatternOnBlur(
|
|
545
|
+
businessRegistrationNumberPatterns[CountryCodes.Latvia].default
|
|
546
|
+
),
|
|
547
|
+
guidanceText: {
|
|
548
|
+
key: "enterNDigitsForExample",
|
|
549
|
+
values: {
|
|
550
|
+
numDigits: "11",
|
|
551
|
+
example: "50003251661"
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
},
|
|
555
|
+
[CountryCodes.Liechtenstein]: {
|
|
556
|
+
label: "liRegistrationNumber",
|
|
557
|
+
mask: businessRegistrationNumberMasks[CountryCodes.Liechtenstein].default,
|
|
558
|
+
validators: validatePatternOnBlur(
|
|
559
|
+
businessRegistrationNumberPatterns[CountryCodes.Liechtenstein].default
|
|
560
|
+
),
|
|
561
|
+
guidanceText: {
|
|
562
|
+
key: "enterTheRemainingNDigitsForExample",
|
|
563
|
+
values: {
|
|
564
|
+
numDigits: "11",
|
|
565
|
+
example: "FL-0001.012.124-5"
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
},
|
|
569
|
+
[CountryCodes.Lithuania]: {
|
|
570
|
+
label: "ltRegistrationNumber",
|
|
571
|
+
mask: businessRegistrationNumberMasks[CountryCodes.Lithuania].default,
|
|
572
|
+
validators: validatePatternOnBlur(
|
|
573
|
+
businessRegistrationNumberPatterns[CountryCodes.Lithuania].default
|
|
574
|
+
),
|
|
575
|
+
guidanceText: {
|
|
576
|
+
key: "enterXToYDigitsForExample",
|
|
577
|
+
values: {
|
|
578
|
+
minDigits: "6",
|
|
579
|
+
maxDigits: "9",
|
|
580
|
+
example: "123456789"
|
|
581
|
+
}
|
|
582
|
+
}
|
|
583
|
+
},
|
|
584
|
+
[CountryCodes.Luxembourg]: {
|
|
585
|
+
label: "luRegistrationNumber",
|
|
586
|
+
mask: businessRegistrationNumberMasks[CountryCodes.Luxembourg].default,
|
|
587
|
+
validators: validatePatternOnBlur(
|
|
588
|
+
businessRegistrationNumberPatterns[CountryCodes.Luxembourg].default
|
|
589
|
+
),
|
|
590
|
+
guidanceText: {
|
|
591
|
+
key: "enter1LetterAndThenNDigitsForExample",
|
|
592
|
+
values: {
|
|
593
|
+
example: "C127766"
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
},
|
|
597
|
+
[CountryCodes.Malta]: {
|
|
598
|
+
label: "companyRegistrationNumber",
|
|
599
|
+
mask: businessRegistrationNumberMasks[CountryCodes.Malta].default,
|
|
600
|
+
validators: validatePatternOnBlur(
|
|
601
|
+
businessRegistrationNumberPatterns[CountryCodes.Malta].default
|
|
602
|
+
),
|
|
603
|
+
guidanceText: {
|
|
604
|
+
key: "enterTheRemainingXToYDigitsForExample",
|
|
605
|
+
values: {
|
|
606
|
+
minDigits: "4",
|
|
607
|
+
maxDigits: "6",
|
|
608
|
+
example: "C 43070, P 1234"
|
|
609
|
+
}
|
|
610
|
+
}
|
|
611
|
+
},
|
|
612
|
+
[CountryCodes.Malaysia]: {
|
|
613
|
+
label: "SSM",
|
|
614
|
+
mask: businessRegistrationNumberMasks[CountryCodes.Malaysia].default,
|
|
615
|
+
validators: validatePatternOnBlur(
|
|
616
|
+
businessRegistrationNumberPatterns[CountryCodes.Malaysia].default
|
|
617
|
+
),
|
|
618
|
+
guidanceText: {
|
|
619
|
+
key: "enterXOrYDigitsForExample",
|
|
620
|
+
values: {
|
|
621
|
+
xDigits: "7",
|
|
622
|
+
yDigits: "12",
|
|
623
|
+
example: "1234567, 201901000005"
|
|
624
|
+
}
|
|
625
|
+
}
|
|
626
|
+
},
|
|
627
|
+
[CountryCodes.Mexico]: {
|
|
628
|
+
label: "RFC",
|
|
629
|
+
mask: businessRegistrationNumberMasks[CountryCodes.Mexico].default,
|
|
630
|
+
validators: validatePatternOnBlur(
|
|
631
|
+
businessRegistrationNumberPatterns[CountryCodes.Mexico].default
|
|
632
|
+
),
|
|
633
|
+
guidanceText: {
|
|
634
|
+
key: "enterNDigitsForExample",
|
|
635
|
+
values: {
|
|
636
|
+
numDigits: "12",
|
|
637
|
+
example: "LFM200817DGA"
|
|
638
|
+
}
|
|
639
|
+
}
|
|
640
|
+
},
|
|
641
|
+
[CountryCodes.Monaco]: ({ companyType }) => companyType === CompanyTypesValues.SOLE_PROPRIETORSHIP ? {
|
|
642
|
+
label: "mcRegistrationNumberSoleProp",
|
|
643
|
+
mask: businessRegistrationNumberMasks[CountryCodes.Monaco].soleProprietorship,
|
|
644
|
+
validators: validatePatternOnBlur(
|
|
645
|
+
businessRegistrationNumberPatterns[CountryCodes.Monaco].soleProprietorship
|
|
646
|
+
),
|
|
647
|
+
guidanceText: {
|
|
648
|
+
key: "enterXToYCharactersWithAMixForExample",
|
|
649
|
+
values: {
|
|
650
|
+
minChars: "8",
|
|
651
|
+
maxChars: "11",
|
|
652
|
+
example: "8732P92873"
|
|
653
|
+
}
|
|
654
|
+
}
|
|
655
|
+
} : {
|
|
656
|
+
label: "mcRegistrationNumber",
|
|
657
|
+
mask: businessRegistrationNumberMasks[CountryCodes.Monaco].default,
|
|
658
|
+
validators: validatePatternOnBlur(
|
|
659
|
+
businessRegistrationNumberPatterns[CountryCodes.Monaco].default
|
|
660
|
+
),
|
|
661
|
+
guidanceText: {
|
|
662
|
+
key: "enterXToYCharactersWithAMixForExample",
|
|
663
|
+
values: {
|
|
664
|
+
minChars: "8",
|
|
665
|
+
maxChars: "11",
|
|
666
|
+
example: "84SB02071"
|
|
667
|
+
}
|
|
668
|
+
}
|
|
669
|
+
},
|
|
670
|
+
[CountryCodes.Netherlands]: {
|
|
671
|
+
label: "chamberOfCommerceRegistrationNumber",
|
|
672
|
+
mask: businessRegistrationNumberMasks[CountryCodes.Netherlands].default,
|
|
673
|
+
validators: validatePatternOnBlur(
|
|
674
|
+
businessRegistrationNumberPatterns[CountryCodes.Netherlands].default
|
|
675
|
+
),
|
|
676
|
+
guidanceText: {
|
|
677
|
+
key: "enterNDigitsForExample",
|
|
678
|
+
values: {
|
|
679
|
+
numDigits: "8",
|
|
680
|
+
example: "34179503"
|
|
681
|
+
}
|
|
682
|
+
}
|
|
683
|
+
},
|
|
684
|
+
[CountryCodes.NewZealand]: ({ registrationNumberType }) => registrationNumberType === "NZBN" ? {
|
|
685
|
+
label: "NZBN",
|
|
686
|
+
mask: businessRegistrationNumberMasks[CountryCodes.NewZealand].NZBN,
|
|
687
|
+
validators: validatePatternOnBlur(
|
|
688
|
+
businessRegistrationNumberPatterns[CountryCodes.NewZealand].NZBN
|
|
689
|
+
),
|
|
690
|
+
guidanceText: {
|
|
691
|
+
key: "enterNDigitsForExample",
|
|
692
|
+
values: {
|
|
693
|
+
numDigits: "13",
|
|
694
|
+
example: "1234567890123"
|
|
695
|
+
}
|
|
696
|
+
}
|
|
697
|
+
} : {
|
|
698
|
+
label: "companyNumberNZ",
|
|
699
|
+
mask: businessRegistrationNumberMasks[CountryCodes.NewZealand].companyNumberNZ,
|
|
700
|
+
validators: validatePatternOnBlur(
|
|
701
|
+
businessRegistrationNumberPatterns[CountryCodes.NewZealand].companyNumberNZ
|
|
702
|
+
),
|
|
703
|
+
guidanceText: {
|
|
704
|
+
key: "enterNDigitsForExample",
|
|
705
|
+
values: {
|
|
706
|
+
numDigits: "7",
|
|
707
|
+
example: "1234567"
|
|
708
|
+
}
|
|
709
|
+
}
|
|
710
|
+
},
|
|
711
|
+
[CountryCodes.Norway]: {
|
|
712
|
+
label: "organisasjonsnummer",
|
|
713
|
+
mask: businessRegistrationNumberMasks[CountryCodes.Norway].default,
|
|
714
|
+
validators: validatePatternOnBlur(
|
|
715
|
+
businessRegistrationNumberPatterns[CountryCodes.Norway].default
|
|
716
|
+
),
|
|
717
|
+
guidanceText: {
|
|
718
|
+
key: "enterNDigitsForExample",
|
|
719
|
+
values: {
|
|
720
|
+
numDigits: "9",
|
|
721
|
+
example: "923609016"
|
|
722
|
+
}
|
|
723
|
+
}
|
|
724
|
+
},
|
|
725
|
+
[CountryCodes.Poland]: ({ registrationNumberType }) => registrationNumberType === "krsNumber" ? {
|
|
726
|
+
label: "krsNumber",
|
|
727
|
+
mask: businessRegistrationNumberMasks[CountryCodes.Poland].krsNumber,
|
|
728
|
+
validators: validatePatternOnBlur(
|
|
729
|
+
businessRegistrationNumberPatterns[CountryCodes.Poland].krsNumber
|
|
730
|
+
),
|
|
731
|
+
guidanceText: {
|
|
732
|
+
key: "enterNDigitsForExample",
|
|
733
|
+
values: {
|
|
734
|
+
numDigits: "10",
|
|
735
|
+
example: "1234567890"
|
|
736
|
+
}
|
|
737
|
+
}
|
|
738
|
+
} : {
|
|
739
|
+
label: "regon",
|
|
740
|
+
mask: businessRegistrationNumberMasks[CountryCodes.Poland].regon,
|
|
741
|
+
validators: validatePatternOnBlur(
|
|
742
|
+
businessRegistrationNumberPatterns[CountryCodes.Poland].regon
|
|
743
|
+
),
|
|
744
|
+
guidanceText: {
|
|
745
|
+
key: "enterNDigitsForExample",
|
|
746
|
+
values: {
|
|
747
|
+
numDigits: "9",
|
|
748
|
+
example: "123456789"
|
|
749
|
+
}
|
|
750
|
+
}
|
|
751
|
+
},
|
|
752
|
+
[CountryCodes.Portugal]: {
|
|
753
|
+
label: "NIPC",
|
|
754
|
+
mask: businessRegistrationNumberMasks[CountryCodes.Portugal].default,
|
|
755
|
+
validators: validatePatternOnBlur(
|
|
756
|
+
businessRegistrationNumberPatterns[CountryCodes.Portugal].default
|
|
757
|
+
),
|
|
758
|
+
guidanceText: {
|
|
759
|
+
key: "enterNDigitsForExample",
|
|
760
|
+
values: {
|
|
761
|
+
numDigits: "9",
|
|
762
|
+
example: "123456789"
|
|
763
|
+
}
|
|
764
|
+
}
|
|
765
|
+
},
|
|
766
|
+
[CountryCodes.PuertoRico]: {
|
|
767
|
+
// should exactly match CountryCodes.UnitedStates
|
|
768
|
+
},
|
|
769
|
+
[CountryCodes.Romania]: ({ registrationNumberType }) => registrationNumberType === "roRegNumberOldFormat" ? {
|
|
770
|
+
label: "roRegNumberOldFormat_label",
|
|
771
|
+
mask: businessRegistrationNumberMasks[CountryCodes.Romania].roRegNumberOldFormat,
|
|
772
|
+
validators: validatePatternOnBlur(
|
|
773
|
+
businessRegistrationNumberPatterns[CountryCodes.Romania].roRegNumberOldFormat
|
|
774
|
+
),
|
|
775
|
+
guidanceText: {
|
|
776
|
+
key: "roRegNumberOldFormat_maskGuidance"
|
|
777
|
+
}
|
|
778
|
+
} : {
|
|
779
|
+
label: "roRegNumberNewFormat_label",
|
|
780
|
+
mask: businessRegistrationNumberMasks[CountryCodes.Romania].roRegNumberNewFormat,
|
|
781
|
+
validators: validatePatternOnBlur(
|
|
782
|
+
businessRegistrationNumberPatterns[CountryCodes.Romania].roRegNumberNewFormat
|
|
783
|
+
),
|
|
784
|
+
guidanceText: {
|
|
785
|
+
key: "roRegNumberNewFormat_maskGuidance"
|
|
786
|
+
}
|
|
787
|
+
},
|
|
788
|
+
[CountryCodes.Singapore]: {
|
|
789
|
+
label: "uen",
|
|
790
|
+
mask: businessRegistrationNumberMasks[CountryCodes.Singapore].default,
|
|
791
|
+
validators: validatePatternOnBlur(
|
|
792
|
+
businessRegistrationNumberPatterns[CountryCodes.Singapore].default
|
|
793
|
+
),
|
|
794
|
+
guidanceText: {
|
|
795
|
+
key: "enterXToYCharactersWithAMixForExample",
|
|
796
|
+
values: {
|
|
797
|
+
minChars: "9",
|
|
798
|
+
maxChars: "10",
|
|
799
|
+
example: "200312345A"
|
|
800
|
+
}
|
|
801
|
+
}
|
|
802
|
+
},
|
|
803
|
+
[CountryCodes.Slovakia]: {
|
|
804
|
+
label: "skRegistrationNumber",
|
|
805
|
+
mask: businessRegistrationNumberMasks[CountryCodes.Slovakia].default,
|
|
806
|
+
validators: validatePatternOnBlur(
|
|
807
|
+
businessRegistrationNumberPatterns[CountryCodes.Slovakia].default
|
|
808
|
+
),
|
|
809
|
+
guidanceText: {
|
|
810
|
+
key: "enterNDigitsForExample",
|
|
811
|
+
values: {
|
|
812
|
+
numDigits: "8",
|
|
813
|
+
example: "12345678"
|
|
814
|
+
}
|
|
815
|
+
}
|
|
816
|
+
},
|
|
817
|
+
[CountryCodes.Slovenia]: {
|
|
818
|
+
label: "siRegistrationNumber",
|
|
819
|
+
mask: businessRegistrationNumberMasks[CountryCodes.Slovenia].default,
|
|
820
|
+
validators: validatePatternOnBlur(
|
|
821
|
+
businessRegistrationNumberPatterns[CountryCodes.Slovenia].default
|
|
822
|
+
),
|
|
823
|
+
guidanceText: {
|
|
824
|
+
key: "enterNDigitsForExample",
|
|
825
|
+
values: {
|
|
826
|
+
numDigits: "10",
|
|
827
|
+
example: "1006500006"
|
|
828
|
+
}
|
|
829
|
+
}
|
|
830
|
+
},
|
|
831
|
+
[CountryCodes.Spain]: {
|
|
832
|
+
label: "NIF",
|
|
833
|
+
mask: businessRegistrationNumberMasks[CountryCodes.Spain].default,
|
|
834
|
+
validators: validatePatternOnBlur(
|
|
835
|
+
businessRegistrationNumberPatterns[CountryCodes.Spain].default
|
|
836
|
+
),
|
|
837
|
+
guidanceText: {
|
|
838
|
+
key: "enter1LetterAndThenNDigitsForExample",
|
|
839
|
+
values: {
|
|
840
|
+
numDigits: "8",
|
|
841
|
+
example: "A39000013"
|
|
842
|
+
}
|
|
843
|
+
}
|
|
844
|
+
},
|
|
845
|
+
[CountryCodes.Sweden]: {
|
|
846
|
+
label: "organisationsnummer",
|
|
847
|
+
mask: businessRegistrationNumberMasks[CountryCodes.Sweden].default,
|
|
848
|
+
validators: validatePatternOnBlur(
|
|
849
|
+
businessRegistrationNumberPatterns[CountryCodes.Sweden].default
|
|
850
|
+
),
|
|
851
|
+
guidanceText: {
|
|
852
|
+
key: "enterNDigitsForExample",
|
|
853
|
+
values: {
|
|
854
|
+
numDigits: "10",
|
|
855
|
+
example: "202100-5489"
|
|
856
|
+
}
|
|
857
|
+
}
|
|
858
|
+
},
|
|
859
|
+
[CountryCodes.Switzerland]: {
|
|
860
|
+
label: "chRegistrationNumber",
|
|
861
|
+
mask: businessRegistrationNumberMasks[CountryCodes.Switzerland].default,
|
|
862
|
+
validators: validatePatternOnBlur(
|
|
863
|
+
businessRegistrationNumberPatterns[CountryCodes.Switzerland].default
|
|
864
|
+
),
|
|
865
|
+
guidanceText: {
|
|
866
|
+
key: "enterTheRemainingNDigitsForExample",
|
|
867
|
+
values: {
|
|
868
|
+
numDigits: "9",
|
|
869
|
+
example: "CHE-123.456.789"
|
|
870
|
+
}
|
|
871
|
+
}
|
|
872
|
+
},
|
|
873
|
+
[CountryCodes.UnitedArabEmirates]: {
|
|
874
|
+
label: "commercialLicence",
|
|
875
|
+
validators: validateNotEmptyOnBlur
|
|
876
|
+
},
|
|
877
|
+
[CountryCodes.UnitedKingdom]: ({ companyType, registrationNumberType }) => {
|
|
878
|
+
const defaultConfig = {
|
|
879
|
+
label: "companyNumber",
|
|
880
|
+
mask: businessRegistrationNumberMasks[CountryCodes.UnitedKingdom].default,
|
|
881
|
+
validators: validatePatternOnBlur(
|
|
882
|
+
businessRegistrationNumberPatterns[CountryCodes.UnitedKingdom].default
|
|
883
|
+
),
|
|
884
|
+
guidanceText: {
|
|
885
|
+
key: "enterNCharactersForExample",
|
|
886
|
+
values: {
|
|
887
|
+
numChars: "8",
|
|
888
|
+
example: "43668490"
|
|
889
|
+
}
|
|
890
|
+
}
|
|
891
|
+
};
|
|
892
|
+
switch (companyType) {
|
|
893
|
+
case "nonProfit":
|
|
894
|
+
switch (registrationNumberType) {
|
|
895
|
+
case "charity":
|
|
896
|
+
return {
|
|
897
|
+
label: "charityNumber",
|
|
898
|
+
mask: businessRegistrationNumberMasks[CountryCodes.UnitedKingdom].nonProfit,
|
|
899
|
+
validators: validatePatternOnBlur(
|
|
900
|
+
businessRegistrationNumberPatterns[CountryCodes.UnitedKingdom].nonProfit
|
|
901
|
+
),
|
|
902
|
+
guidanceText: {
|
|
903
|
+
key: "enterThreeDifferingOptionsForExample",
|
|
904
|
+
values: {
|
|
905
|
+
firstOption: "6, 7 or 8 digits",
|
|
906
|
+
secondOption: "6 digits with a 2-letter prefix",
|
|
907
|
+
thirdOption: "6 digits with a suffix like -0",
|
|
908
|
+
firstExample: "123456",
|
|
909
|
+
secondExample: "SC012345",
|
|
910
|
+
thirdExample: "123456-0"
|
|
911
|
+
}
|
|
912
|
+
}
|
|
913
|
+
};
|
|
914
|
+
default:
|
|
915
|
+
return defaultConfig;
|
|
916
|
+
}
|
|
917
|
+
default:
|
|
918
|
+
return defaultConfig;
|
|
919
|
+
}
|
|
920
|
+
},
|
|
921
|
+
[CountryCodes.UnitedStates]: ({ state }) => ({
|
|
922
|
+
label: "registrationNumber__US",
|
|
923
|
+
mask: state ? businessRegistrationNumberMasks[CountryCodes.UnitedStates][state] : businessRegistrationNumberMasks[CountryCodes.UnitedStates].default,
|
|
924
|
+
validators: state ? validatePatternOnBlur(businessRegistrationNumberPatterns[CountryCodes.UnitedStates][state]) : validatePatternOnBlur(
|
|
925
|
+
businessRegistrationNumberPatterns[CountryCodes.UnitedStates].default
|
|
926
|
+
),
|
|
927
|
+
guidanceText: state ? stateFormatGuidanceText[state] : stateFormatGuidanceText.default
|
|
928
|
+
})
|
|
929
|
+
};
|
|
930
|
+
const exemptFromRegistrationNumberDefaultFieldMetadata = {
|
|
931
|
+
label: "iDontHaveARegistrationNumber"
|
|
932
|
+
};
|
|
933
|
+
const exemptFromRegistrationNumberDefaultFieldConfig = {
|
|
934
|
+
[CountryCodes.Australia]: {
|
|
935
|
+
label: "doNotHaveAcn"
|
|
936
|
+
},
|
|
937
|
+
[CountryCodes.Austria]: {
|
|
938
|
+
label: "doNotHaveFirmenbuchnummer"
|
|
939
|
+
},
|
|
940
|
+
[CountryCodes.Finland]: {
|
|
941
|
+
label: "doNotHaveYTunnus"
|
|
942
|
+
},
|
|
943
|
+
[CountryCodes.HongKong]: {
|
|
944
|
+
label: "iDoNotHaveCompanyRegistrationNumber"
|
|
945
|
+
},
|
|
946
|
+
[CountryCodes.Germany]: {
|
|
947
|
+
label: "doNotHaveHandelsregisternummerOrVereinsregisternummer"
|
|
948
|
+
},
|
|
949
|
+
[CountryCodes.Lithuania]: {
|
|
950
|
+
label: "doNotHaveLtRegistrationNumber"
|
|
951
|
+
},
|
|
952
|
+
[CountryCodes.Luxembourg]: {
|
|
953
|
+
label: "doNotHaveLuRegistrationNumber"
|
|
954
|
+
},
|
|
955
|
+
[CountryCodes.Poland]: {
|
|
956
|
+
label: "doNotHaveRegonKrsNumber"
|
|
957
|
+
},
|
|
958
|
+
[CountryCodes.PuertoRico]: {
|
|
959
|
+
label: "doNotHaveEIN"
|
|
960
|
+
},
|
|
961
|
+
[CountryCodes.Sweden]: {
|
|
962
|
+
label: "doNotHaveOrganisationsnummer"
|
|
963
|
+
},
|
|
964
|
+
[CountryCodes.Switzerland]: {
|
|
965
|
+
label: "doNotHaveChRegistrationNumber"
|
|
966
|
+
}
|
|
967
|
+
};
|
|
968
|
+
const getRegistrationNumberHelperText = (t, { country, companyType }) => {
|
|
969
|
+
if (country === CountryCodes.Australia && companyType === CompanyTypesValues.INCORPORATED_ASSOCIATION) {
|
|
970
|
+
return t(($) => $["findYourIncorporatedAssociationNumberInThePublicRegistryForYourState"]);
|
|
971
|
+
}
|
|
972
|
+
return void 0;
|
|
973
|
+
};
|
|
974
|
+
const inferCompanyRegistrationNumberType = (registrationNumber, country, companyType) => {
|
|
975
|
+
const optionsForCountry = getCompanyRegistrationNumberOptions(country, companyType);
|
|
976
|
+
const metadataFn = registrationNumberDefaultFieldConfig[country];
|
|
977
|
+
if (!optionsForCountry) return void 0;
|
|
978
|
+
if (optionsForCountry.length === 1)
|
|
979
|
+
return optionsForCountry[0].id;
|
|
980
|
+
if (!optionsForCountry || !metadataFn) return void 0;
|
|
981
|
+
const allMetaData = optionsForCountry.reduce(
|
|
982
|
+
(acc, option) => {
|
|
983
|
+
const meta = typeof metadataFn === "function" ? metadataFn({
|
|
984
|
+
registrationNumberType: option.id,
|
|
985
|
+
companyType
|
|
986
|
+
}) : metadataFn;
|
|
987
|
+
if (meta.label && !acc[meta.label]) {
|
|
988
|
+
acc[meta.label] = meta;
|
|
989
|
+
}
|
|
990
|
+
return acc;
|
|
991
|
+
},
|
|
992
|
+
{}
|
|
993
|
+
);
|
|
994
|
+
for (const option of optionsForCountry) {
|
|
995
|
+
const fieldMetadata = allMetaData[option.name];
|
|
996
|
+
if (!fieldMetadata?.validators) continue;
|
|
997
|
+
const validators = Array.isArray(fieldMetadata.validators) ? fieldMetadata.validators : [fieldMetadata.validators];
|
|
998
|
+
if (validators.every((validator) => validator.validate(registrationNumber))) {
|
|
999
|
+
return option.id;
|
|
1000
|
+
}
|
|
1001
|
+
}
|
|
1002
|
+
};
|
|
1003
|
+
function getDefaultRegistrationNumberType(registrationNumber, country, companyType) {
|
|
1004
|
+
return registrationNumber ? inferCompanyRegistrationNumberType(registrationNumber, country, companyType) : getCompanyRegistrationNumberOptions(country, companyType)?.[0]?.id;
|
|
1005
|
+
}
|
|
1006
|
+
const BUSINESS_REGISTRATION_NUMBER_FIELD = ["registrationNumber", "registrationNumberType", "exemptedFromRegistrationNumber"];
|
|
1007
|
+
function BusinessRegistrationNumberField({
|
|
1008
|
+
data,
|
|
1009
|
+
valid,
|
|
1010
|
+
errors,
|
|
1011
|
+
labels,
|
|
1012
|
+
mask,
|
|
1013
|
+
guidanceText,
|
|
1014
|
+
helperText,
|
|
1015
|
+
readonly,
|
|
1016
|
+
shouldValidate,
|
|
1017
|
+
optional,
|
|
1018
|
+
handleChangeFor,
|
|
1019
|
+
country,
|
|
1020
|
+
canExempt,
|
|
1021
|
+
companyType
|
|
1022
|
+
}) {
|
|
1023
|
+
const registrationNumberOptions = getCompanyRegistrationNumberOptions(country, companyType);
|
|
1024
|
+
const defaultType = getDefaultRegistrationNumberType(
|
|
1025
|
+
data.registrationNumber,
|
|
1026
|
+
country,
|
|
1027
|
+
companyType
|
|
1028
|
+
);
|
|
1029
|
+
const showExemptedOption = canExempt && !!registrationNumberOptions && registrationNumberOptions.length > 1;
|
|
1030
|
+
const registrationNumberType = data.exemptedFromRegistrationNumber ? "exempted" : data.registrationNumberType ? data.registrationNumberType : defaultType;
|
|
1031
|
+
const handleRegistrationNumberChange = (e, mode) => {
|
|
1032
|
+
const value = typeof e === "string" ? e : e.currentTarget.value;
|
|
1033
|
+
handleChangeFor("registrationNumber", mode)(value);
|
|
1034
|
+
handleChangeFor("registrationNumberType")(registrationNumberType);
|
|
1035
|
+
};
|
|
1036
|
+
const handleExemptedFromRegistrationNumber = (exempt) => {
|
|
1037
|
+
if (exempt) handleChangeFor("registrationNumber")("");
|
|
1038
|
+
handleChangeFor("exemptedFromRegistrationNumber")(exempt);
|
|
1039
|
+
};
|
|
1040
|
+
const handleCompanyRegistrationNumberTypeChange = (regNumberType) => {
|
|
1041
|
+
if (regNumberType === "exempted") {
|
|
1042
|
+
if (!canExempt) {
|
|
1043
|
+
throw Error(`${country} does not allow tax exemptions`);
|
|
1044
|
+
}
|
|
1045
|
+
handleChangeFor("registrationNumber")("");
|
|
1046
|
+
handleChangeFor("exemptedFromRegistrationNumber")(true);
|
|
1047
|
+
handleChangeFor("registrationNumberType")(void 0);
|
|
1048
|
+
return;
|
|
1049
|
+
}
|
|
1050
|
+
if (canExempt && data.exemptedFromRegistrationNumber === true) {
|
|
1051
|
+
handleChangeFor("exemptedFromRegistrationNumber")(false);
|
|
1052
|
+
}
|
|
1053
|
+
handleChangeFor("registrationNumber")("");
|
|
1054
|
+
handleChangeFor("registrationNumberType")(regNumberType);
|
|
1055
|
+
};
|
|
1056
|
+
if (registrationNumberType && registrationNumberType !== "exempted") {
|
|
1057
|
+
const countryHasType = registrationNumberOptions?.find(
|
|
1058
|
+
(option) => option.id === registrationNumberType
|
|
1059
|
+
);
|
|
1060
|
+
if (!countryHasType) {
|
|
1061
|
+
handleChangeFor("registrationNumberType")(defaultType);
|
|
1062
|
+
}
|
|
1063
|
+
}
|
|
1064
|
+
return /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-field__business-registration", children: [
|
|
1065
|
+
/* @__PURE__ */ jsx(
|
|
1066
|
+
CompanyRegistrationNumberTypeSelector,
|
|
1067
|
+
{
|
|
1068
|
+
companyType,
|
|
1069
|
+
country,
|
|
1070
|
+
setSelected: handleCompanyRegistrationNumberTypeChange,
|
|
1071
|
+
selected: registrationNumberType,
|
|
1072
|
+
exemptedOption: showExemptedOption ? labels.exemptedFromRegistrationNumber : false
|
|
1073
|
+
}
|
|
1074
|
+
),
|
|
1075
|
+
/* @__PURE__ */ jsx(
|
|
1076
|
+
MaskedInput,
|
|
1077
|
+
{
|
|
1078
|
+
"aria-required": true,
|
|
1079
|
+
"aria-invalid": !valid.registrationNumber,
|
|
1080
|
+
name: "registrationNumber",
|
|
1081
|
+
type: "text",
|
|
1082
|
+
value: data?.registrationNumber ?? "",
|
|
1083
|
+
label: labels.registrationNumber ?? "",
|
|
1084
|
+
formatGuidance: guidanceText?.registrationNumber ?? "",
|
|
1085
|
+
errorMessage: errors.registrationNumber,
|
|
1086
|
+
isValid: Boolean(valid.registrationNumber),
|
|
1087
|
+
onInput: (e) => handleRegistrationNumberChange(e, "input"),
|
|
1088
|
+
onBlur: (e) => handleRegistrationNumberChange(e, "blur"),
|
|
1089
|
+
disabled: data.exemptedFromRegistrationNumber,
|
|
1090
|
+
optional,
|
|
1091
|
+
readonly,
|
|
1092
|
+
shouldValidate: !optional && shouldValidate,
|
|
1093
|
+
helper: helperText,
|
|
1094
|
+
...mask
|
|
1095
|
+
}
|
|
1096
|
+
),
|
|
1097
|
+
canExempt && !showExemptedOption && /* @__PURE__ */ jsx(Field, { name: "exemptedFromRegistrationNumber", children: (childProps) => /* @__PURE__ */ jsx(
|
|
1098
|
+
Checkbox,
|
|
1099
|
+
{
|
|
1100
|
+
...childProps,
|
|
1101
|
+
"aria-required": false,
|
|
1102
|
+
"aria-invalid": false,
|
|
1103
|
+
name: "exemptedFromRegistrationNumber",
|
|
1104
|
+
value: "exemptedFromRegistrationNumber",
|
|
1105
|
+
checked: Boolean(data.exemptedFromRegistrationNumber),
|
|
1106
|
+
label: labels?.exemptedFromRegistrationNumber,
|
|
1107
|
+
readonly,
|
|
1108
|
+
onChange: handleExemptedFromRegistrationNumber
|
|
1109
|
+
}
|
|
1110
|
+
) })
|
|
1111
|
+
] });
|
|
1112
|
+
}
|
|
1113
|
+
const DBA_NAME_FIELD = [
|
|
1114
|
+
"hasDoingBusinessAs",
|
|
1115
|
+
"doingBusinessAs"
|
|
1116
|
+
];
|
|
1117
|
+
function DBANameField({
|
|
1118
|
+
data,
|
|
1119
|
+
valid,
|
|
1120
|
+
errors,
|
|
1121
|
+
labels,
|
|
1122
|
+
readonly,
|
|
1123
|
+
handleChangeFor
|
|
1124
|
+
}) {
|
|
1125
|
+
const { t } = useTranslation("common");
|
|
1126
|
+
const hasDoingBusinessAsValue = useMemo(() => {
|
|
1127
|
+
if (typeof data.hasDoingBusinessAs !== "boolean") return void 0;
|
|
1128
|
+
return data.hasDoingBusinessAs ? "yes" : "no";
|
|
1129
|
+
}, [data.hasDoingBusinessAs]);
|
|
1130
|
+
const handleHasDoingBusinessAsChange = (val) => {
|
|
1131
|
+
handleChangeFor("hasDoingBusinessAs")(val === "yes" ? true : false);
|
|
1132
|
+
};
|
|
1133
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1134
|
+
/* @__PURE__ */ jsx(
|
|
1135
|
+
Field,
|
|
1136
|
+
{
|
|
1137
|
+
el: "fieldset",
|
|
1138
|
+
name: "hasDoingBusinessAsName",
|
|
1139
|
+
label: labels.hasDoingBusinessAs ?? t(($) => $["hasDba"]),
|
|
1140
|
+
helper: t(($) => $["hasDba__helperText"]),
|
|
1141
|
+
isValid: valid.hasDoingBusinessAs,
|
|
1142
|
+
errorMessage: errors.hasDoingBusinessAs,
|
|
1143
|
+
children: (childProps) => /* @__PURE__ */ jsx(
|
|
1144
|
+
RadioGroup,
|
|
1145
|
+
{
|
|
1146
|
+
...childProps,
|
|
1147
|
+
name: "hasDoingBusinessAs",
|
|
1148
|
+
items: [
|
|
1149
|
+
{ id: "yes", name: "yes" },
|
|
1150
|
+
{ id: "no", name: "no" }
|
|
1151
|
+
],
|
|
1152
|
+
value: hasDoingBusinessAsValue,
|
|
1153
|
+
onChange: handleHasDoingBusinessAsChange,
|
|
1154
|
+
horizontal: true
|
|
1155
|
+
}
|
|
1156
|
+
)
|
|
1157
|
+
}
|
|
1158
|
+
),
|
|
1159
|
+
data.hasDoingBusinessAs && /* @__PURE__ */ jsx(
|
|
1160
|
+
Field,
|
|
1161
|
+
{
|
|
1162
|
+
name: "doingBusinessAs",
|
|
1163
|
+
label: labels.doingBusinessAs ?? t(($) => $["dbaName"]),
|
|
1164
|
+
errorMessage: errors.doingBusinessAs,
|
|
1165
|
+
isValid: valid.doingBusinessAs,
|
|
1166
|
+
children: (childProps) => /* @__PURE__ */ jsx(
|
|
1167
|
+
InputText,
|
|
1168
|
+
{
|
|
1169
|
+
...childProps,
|
|
1170
|
+
"aria-required": true,
|
|
1171
|
+
"aria-invalid": !valid.doingBusinessAs,
|
|
1172
|
+
name: "doingBusinessAs",
|
|
1173
|
+
value: data.doingBusinessAs,
|
|
1174
|
+
readonly,
|
|
1175
|
+
onInput: handleChangeFor("doingBusinessAs", "input"),
|
|
1176
|
+
onBlur: handleChangeFor("doingBusinessAs", "blur")
|
|
1177
|
+
}
|
|
1178
|
+
)
|
|
1179
|
+
}
|
|
1180
|
+
)
|
|
1181
|
+
] });
|
|
1182
|
+
}
|
|
1183
|
+
const doingBusinessAsAbsentFieldMetadata = {
|
|
1184
|
+
validators: [validateNotEmptyOnBlur]
|
|
1185
|
+
};
|
|
1186
|
+
const doingBusinessAsFieldMetadata = {
|
|
1187
|
+
label: "doingBusinessAs",
|
|
1188
|
+
validators: [validateNotEmptyOnBlur]
|
|
1189
|
+
};
|
|
1190
|
+
const vatAbsenceReasonMetadata = {
|
|
1191
|
+
validators: [validateNotEmptyOnBlur]
|
|
1192
|
+
};
|
|
1193
|
+
const defaultFieldMetadata = {
|
|
1194
|
+
label: "vatNumber"
|
|
1195
|
+
};
|
|
1196
|
+
const defaultFieldConfig = {
|
|
1197
|
+
[CountryCodes.Austria]: {
|
|
1198
|
+
label: "UST-ID",
|
|
1199
|
+
validators: validatePatternOnBlur(/^ATU\d{8}$/),
|
|
1200
|
+
mask: {
|
|
1201
|
+
mask: makeMask(...nonInputs("ATU", { includeInValue: true }), spacer, ...numericInputs(8))
|
|
1202
|
+
},
|
|
1203
|
+
guidanceText: {
|
|
1204
|
+
key: "enterTheRemainingNDigitsForExample",
|
|
1205
|
+
values: {
|
|
1206
|
+
numDigits: "8",
|
|
1207
|
+
example: "ATU51507409"
|
|
1208
|
+
}
|
|
1209
|
+
}
|
|
1210
|
+
},
|
|
1211
|
+
[CountryCodes.Belgium]: {
|
|
1212
|
+
label: "euVatNumber",
|
|
1213
|
+
validators: validatePatternOnBlur(/^BE[10]\d{9}$/),
|
|
1214
|
+
mask: {
|
|
1215
|
+
mask: makeMask(...nonInputs("BE", { includeInValue: true }), spacer, ...numericInputs(10))
|
|
1216
|
+
},
|
|
1217
|
+
guidanceText: {
|
|
1218
|
+
key: "enterTheRemainingNDigitsForExample",
|
|
1219
|
+
values: {
|
|
1220
|
+
numDigits: "10",
|
|
1221
|
+
example: "BE1234567890"
|
|
1222
|
+
}
|
|
1223
|
+
}
|
|
1224
|
+
},
|
|
1225
|
+
[CountryCodes.Bulgaria]: {
|
|
1226
|
+
label: "identifikacionenNomerDDS",
|
|
1227
|
+
validators: validatePatternOnBlur(/^BG\d{9,10}$/),
|
|
1228
|
+
mask: {
|
|
1229
|
+
mask: makeMask(
|
|
1230
|
+
...nonInputs("BG", { includeInValue: true }),
|
|
1231
|
+
spacer,
|
|
1232
|
+
...numericInputs(9),
|
|
1233
|
+
...numericInputs(1, true)
|
|
1234
|
+
)
|
|
1235
|
+
},
|
|
1236
|
+
guidanceText: {
|
|
1237
|
+
key: "enterTheRemainingXToYDigitsForExample",
|
|
1238
|
+
values: {
|
|
1239
|
+
minDigits: "9",
|
|
1240
|
+
maxDigits: "10",
|
|
1241
|
+
example: "BG1234567890"
|
|
1242
|
+
}
|
|
1243
|
+
}
|
|
1244
|
+
},
|
|
1245
|
+
[CountryCodes.Croatia]: {
|
|
1246
|
+
label: "PDVIdBrojOIB",
|
|
1247
|
+
validators: validatePatternOnBlur(/^HR\d{11}$/),
|
|
1248
|
+
mask: {
|
|
1249
|
+
mask: makeMask(...nonInputs("HR", { includeInValue: true }), spacer, ...numericInputs(11))
|
|
1250
|
+
},
|
|
1251
|
+
guidanceText: {
|
|
1252
|
+
key: "enterTheRemainingNDigitsForExample",
|
|
1253
|
+
values: {
|
|
1254
|
+
numDigits: "11",
|
|
1255
|
+
example: "HR94577403194"
|
|
1256
|
+
}
|
|
1257
|
+
}
|
|
1258
|
+
},
|
|
1259
|
+
[CountryCodes.Cyprus]: {
|
|
1260
|
+
label: "arithmosEngraphes",
|
|
1261
|
+
validators: validatePatternOnBlur(/^CY[A-Z0-9]{9}$/),
|
|
1262
|
+
mask: {
|
|
1263
|
+
mask: makeMask(
|
|
1264
|
+
...nonInputs("CY", { includeInValue: true }),
|
|
1265
|
+
spacer,
|
|
1266
|
+
...alphanumericInputs(9)
|
|
1267
|
+
),
|
|
1268
|
+
transformOnType: uppercase
|
|
1269
|
+
},
|
|
1270
|
+
guidanceText: {
|
|
1271
|
+
key: "enterTheRemainingNCharactersForExample",
|
|
1272
|
+
values: {
|
|
1273
|
+
numChars: "9",
|
|
1274
|
+
example: "CY12345678X"
|
|
1275
|
+
}
|
|
1276
|
+
}
|
|
1277
|
+
},
|
|
1278
|
+
[CountryCodes.CzechRepublic]: {
|
|
1279
|
+
label: "DIC",
|
|
1280
|
+
validators: validatePatternOnBlur(/^CZ\d{8,10}$/),
|
|
1281
|
+
mask: {
|
|
1282
|
+
mask: makeMask(
|
|
1283
|
+
...nonInputs("CZ", { includeInValue: true }),
|
|
1284
|
+
spacer,
|
|
1285
|
+
...numericInputs(8),
|
|
1286
|
+
...numericInputs(2, true)
|
|
1287
|
+
)
|
|
1288
|
+
},
|
|
1289
|
+
guidanceText: {
|
|
1290
|
+
key: "enterTheRemainingXToYDigitsForExample",
|
|
1291
|
+
values: {
|
|
1292
|
+
minDigits: "8",
|
|
1293
|
+
maxDigits: "10",
|
|
1294
|
+
example: "CZ00177041"
|
|
1295
|
+
}
|
|
1296
|
+
}
|
|
1297
|
+
},
|
|
1298
|
+
[CountryCodes.Denmark]: ({ vatNumberType }) => {
|
|
1299
|
+
switch (vatNumberType) {
|
|
1300
|
+
case "stamregister":
|
|
1301
|
+
return {
|
|
1302
|
+
label: "stamregister",
|
|
1303
|
+
validators: validatePatternOnBlur(/^SE\d{8}$/),
|
|
1304
|
+
mask: {
|
|
1305
|
+
mask: makeMask(
|
|
1306
|
+
...nonInputs("SE", { includeInValue: true }),
|
|
1307
|
+
spacer,
|
|
1308
|
+
...numericInputs(8)
|
|
1309
|
+
)
|
|
1310
|
+
},
|
|
1311
|
+
guidanceText: {
|
|
1312
|
+
key: "enterTheRemainingNDigitsForExample",
|
|
1313
|
+
values: {
|
|
1314
|
+
numDigits: "8",
|
|
1315
|
+
example: "SE12345678"
|
|
1316
|
+
}
|
|
1317
|
+
}
|
|
1318
|
+
};
|
|
1319
|
+
case "momsregistreringsnummerCVR":
|
|
1320
|
+
default:
|
|
1321
|
+
return {
|
|
1322
|
+
label: "momsregistreringsnummerCVR",
|
|
1323
|
+
validators: validatePatternOnBlur(/^DK\d{8}$/),
|
|
1324
|
+
mask: {
|
|
1325
|
+
mask: makeMask(
|
|
1326
|
+
...nonInputs("DK", { includeInValue: true }),
|
|
1327
|
+
spacer,
|
|
1328
|
+
...numericInputs(8)
|
|
1329
|
+
)
|
|
1330
|
+
},
|
|
1331
|
+
guidanceText: {
|
|
1332
|
+
key: "enterTheRemainingNDigitsForExample",
|
|
1333
|
+
values: {
|
|
1334
|
+
numDigits: "8",
|
|
1335
|
+
example: "DK12345678"
|
|
1336
|
+
}
|
|
1337
|
+
}
|
|
1338
|
+
};
|
|
1339
|
+
}
|
|
1340
|
+
},
|
|
1341
|
+
[CountryCodes.Estonia]: {
|
|
1342
|
+
label: "kaibemaksukohustuslaseNumber",
|
|
1343
|
+
validators: validatePatternOnBlur(/^EE\d{9}$/),
|
|
1344
|
+
mask: {
|
|
1345
|
+
mask: makeMask(...nonInputs("EE", { includeInValue: true }), spacer, ...numericInputs(9))
|
|
1346
|
+
},
|
|
1347
|
+
guidanceText: {
|
|
1348
|
+
key: "enterTheRemainingNDigitsForExample",
|
|
1349
|
+
values: {
|
|
1350
|
+
numDigits: "9",
|
|
1351
|
+
example: "EE100254507"
|
|
1352
|
+
}
|
|
1353
|
+
}
|
|
1354
|
+
},
|
|
1355
|
+
[CountryCodes.Finland]: {
|
|
1356
|
+
label: "arvonlisaveronumeroMervardesskattenummer",
|
|
1357
|
+
validators: validatePatternOnBlur(/^FI\d{8}$/),
|
|
1358
|
+
mask: {
|
|
1359
|
+
mask: makeMask(...nonInputs("FI", { includeInValue: true }), spacer, ...numericInputs(8))
|
|
1360
|
+
},
|
|
1361
|
+
guidanceText: {
|
|
1362
|
+
key: "enterTheRemainingNDigitsForExample",
|
|
1363
|
+
values: {
|
|
1364
|
+
numDigits: "9",
|
|
1365
|
+
example: "FI12345678"
|
|
1366
|
+
}
|
|
1367
|
+
}
|
|
1368
|
+
},
|
|
1369
|
+
[CountryCodes.France]: ({ vatNumberType }) => {
|
|
1370
|
+
const sharedMetadata = {
|
|
1371
|
+
validators: validatePatternOnBlur(/^FR\d{11}$/),
|
|
1372
|
+
mask: {
|
|
1373
|
+
mask: makeMask(...nonInputs("FR", { includeInValue: true }), spacer, ...numericInputs(11))
|
|
1374
|
+
}
|
|
1375
|
+
};
|
|
1376
|
+
switch (vatNumberType) {
|
|
1377
|
+
case "NumeroDeTVA":
|
|
1378
|
+
return {
|
|
1379
|
+
...sharedMetadata,
|
|
1380
|
+
label: "NumeroDeTVA",
|
|
1381
|
+
guidanceText: {
|
|
1382
|
+
key: "enterTheRemainingNDigitsForExample",
|
|
1383
|
+
values: {
|
|
1384
|
+
numDigits: "11",
|
|
1385
|
+
example: "FR12999999999"
|
|
1386
|
+
}
|
|
1387
|
+
}
|
|
1388
|
+
};
|
|
1389
|
+
case "numeroDIdentificationALATaxe":
|
|
1390
|
+
default:
|
|
1391
|
+
return {
|
|
1392
|
+
...sharedMetadata,
|
|
1393
|
+
label: "numeroDIdentificationALATaxe",
|
|
1394
|
+
guidanceText: {
|
|
1395
|
+
key: "enterTheRemainingNDigitsForExample",
|
|
1396
|
+
values: {
|
|
1397
|
+
numDigits: "11",
|
|
1398
|
+
example: "FR12345678901"
|
|
1399
|
+
}
|
|
1400
|
+
}
|
|
1401
|
+
};
|
|
1402
|
+
}
|
|
1403
|
+
},
|
|
1404
|
+
[CountryCodes.Germany]: {
|
|
1405
|
+
label: "USt-IdNr",
|
|
1406
|
+
validators: validatePatternOnBlur(/^DE\d{9}$/),
|
|
1407
|
+
mask: {
|
|
1408
|
+
mask: makeMask(...nonInputs("DE", { includeInValue: true }), spacer, ...numericInputs(9))
|
|
1409
|
+
},
|
|
1410
|
+
guidanceText: {
|
|
1411
|
+
key: "enterTheRemainingNDigitsForExample",
|
|
1412
|
+
values: {
|
|
1413
|
+
numDigits: "9",
|
|
1414
|
+
example: "DE115235681"
|
|
1415
|
+
}
|
|
1416
|
+
}
|
|
1417
|
+
},
|
|
1418
|
+
[CountryCodes.Greece]: {
|
|
1419
|
+
label: "grTaxId",
|
|
1420
|
+
validators: validatePatternOnBlur(/^EL\d{9}$/),
|
|
1421
|
+
mask: {
|
|
1422
|
+
mask: makeMask(...nonInputs("EL", { includeInValue: true }), spacer, ...numericInputs(9))
|
|
1423
|
+
},
|
|
1424
|
+
guidanceText: {
|
|
1425
|
+
key: "enterTheRemainingNDigitsForExample",
|
|
1426
|
+
values: {
|
|
1427
|
+
numDigits: "9",
|
|
1428
|
+
example: "EL123456789"
|
|
1429
|
+
}
|
|
1430
|
+
}
|
|
1431
|
+
},
|
|
1432
|
+
[CountryCodes.Hungary]: {
|
|
1433
|
+
label: "huTaxId",
|
|
1434
|
+
validators: validatePatternOnBlur(/^HU\d{8}$/),
|
|
1435
|
+
mask: {
|
|
1436
|
+
mask: makeMask(...nonInputs("HU", { includeInValue: true }), spacer, ...numericInputs(8))
|
|
1437
|
+
},
|
|
1438
|
+
guidanceText: {
|
|
1439
|
+
key: "enterTheRemainingNDigitsForExample",
|
|
1440
|
+
values: {
|
|
1441
|
+
numDigits: "8",
|
|
1442
|
+
example: "HU12345678"
|
|
1443
|
+
}
|
|
1444
|
+
}
|
|
1445
|
+
},
|
|
1446
|
+
[CountryCodes.Ireland]: {
|
|
1447
|
+
label: "vatNumber",
|
|
1448
|
+
validators: validatePatternOnBlur(/^IE[A-Z0-9]{8,9}$/),
|
|
1449
|
+
mask: {
|
|
1450
|
+
mask: makeMask(
|
|
1451
|
+
...nonInputs("IE", { includeInValue: true }),
|
|
1452
|
+
spacer,
|
|
1453
|
+
...alphanumericInputs(8),
|
|
1454
|
+
...alphanumericInputs(1, true)
|
|
1455
|
+
),
|
|
1456
|
+
transformOnType: uppercase
|
|
1457
|
+
},
|
|
1458
|
+
guidanceText: {
|
|
1459
|
+
key: "enterTheRemainingXToYCharactersForExample",
|
|
1460
|
+
values: {
|
|
1461
|
+
minChars: "8",
|
|
1462
|
+
maxChars: "9",
|
|
1463
|
+
example: "IE999999XX"
|
|
1464
|
+
}
|
|
1465
|
+
}
|
|
1466
|
+
},
|
|
1467
|
+
[CountryCodes.Italy]: {
|
|
1468
|
+
label: "vatNumber",
|
|
1469
|
+
validators: validatePatternOnBlur(/^IT\d{11}$/),
|
|
1470
|
+
mask: {
|
|
1471
|
+
mask: makeMask(...nonInputs("IT", { includeInValue: true }), spacer, ...numericInputs(11))
|
|
1472
|
+
},
|
|
1473
|
+
guidanceText: {
|
|
1474
|
+
key: "enterTheRemainingNDigitsForExample",
|
|
1475
|
+
values: {
|
|
1476
|
+
numDigits: "11",
|
|
1477
|
+
example: "IT47040001100"
|
|
1478
|
+
}
|
|
1479
|
+
}
|
|
1480
|
+
},
|
|
1481
|
+
[CountryCodes.Latvia]: {
|
|
1482
|
+
label: "lvTaxId",
|
|
1483
|
+
validators: validatePatternOnBlur(/^LV\d{11}$/),
|
|
1484
|
+
mask: {
|
|
1485
|
+
mask: makeMask(...nonInputs("LV", { includeInValue: true }), spacer, ...numericInputs(11))
|
|
1486
|
+
},
|
|
1487
|
+
guidanceText: {
|
|
1488
|
+
key: "enterTheRemainingNDigitsForExample",
|
|
1489
|
+
values: {
|
|
1490
|
+
numDigits: "11",
|
|
1491
|
+
example: "LV43603021620"
|
|
1492
|
+
}
|
|
1493
|
+
}
|
|
1494
|
+
},
|
|
1495
|
+
[CountryCodes.Liechtenstein]: {
|
|
1496
|
+
label: "vatRegistrationNumber",
|
|
1497
|
+
validators: validatePatternOnBlur(/^[0-9]{1,6}$/),
|
|
1498
|
+
mask: {
|
|
1499
|
+
mask: makeMask(...numericInputs(1), ...numericInputs(5, true))
|
|
1500
|
+
},
|
|
1501
|
+
guidanceText: {
|
|
1502
|
+
key: "enterAMaximumOfNDigitsForExample",
|
|
1503
|
+
values: {
|
|
1504
|
+
maxDigits: "6",
|
|
1505
|
+
example: "123456"
|
|
1506
|
+
}
|
|
1507
|
+
}
|
|
1508
|
+
},
|
|
1509
|
+
[CountryCodes.Lithuania]: {
|
|
1510
|
+
label: "PVMmoketojoKodas",
|
|
1511
|
+
validators: validatePatternOnBlur(/^LT\d{9,12}$/),
|
|
1512
|
+
mask: {
|
|
1513
|
+
mask: makeMask(
|
|
1514
|
+
...nonInputs("LT", { includeInValue: true }),
|
|
1515
|
+
spacer,
|
|
1516
|
+
...numericInputs(9),
|
|
1517
|
+
...numericInputs(3, true)
|
|
1518
|
+
)
|
|
1519
|
+
},
|
|
1520
|
+
guidanceText: {
|
|
1521
|
+
key: "enterTheRemainingXToYDigitsForExample",
|
|
1522
|
+
values: {
|
|
1523
|
+
minDigits: "9",
|
|
1524
|
+
maxDigits: "12",
|
|
1525
|
+
example: "LT664517219"
|
|
1526
|
+
}
|
|
1527
|
+
}
|
|
1528
|
+
},
|
|
1529
|
+
[CountryCodes.Luxembourg]: {
|
|
1530
|
+
label: "numeroDIdentificationALATaxe",
|
|
1531
|
+
validators: validatePatternOnBlur(/^LU\d{8}$/),
|
|
1532
|
+
mask: {
|
|
1533
|
+
mask: makeMask(...nonInputs("LU", { includeInValue: true }), spacer, ...numericInputs(8))
|
|
1534
|
+
},
|
|
1535
|
+
guidanceText: {
|
|
1536
|
+
key: "enterTheRemainingNDigitsForExample",
|
|
1537
|
+
values: {
|
|
1538
|
+
numDigits: "8",
|
|
1539
|
+
example: "LU18928066"
|
|
1540
|
+
}
|
|
1541
|
+
}
|
|
1542
|
+
},
|
|
1543
|
+
[CountryCodes.Malaysia]: {
|
|
1544
|
+
label: "SST",
|
|
1545
|
+
validators: validatePatternOnBlur(/^([A-Z]\d{2}[-]\d{4}[-]\d{8}|\d{12})$/),
|
|
1546
|
+
guidanceText: {
|
|
1547
|
+
key: "enterXOrYCharactersForExample",
|
|
1548
|
+
values: {
|
|
1549
|
+
xChars: "12",
|
|
1550
|
+
yChars: "14",
|
|
1551
|
+
example: "123456789012, D11-1808-20032117"
|
|
1552
|
+
}
|
|
1553
|
+
}
|
|
1554
|
+
},
|
|
1555
|
+
[CountryCodes.Malta]: {
|
|
1556
|
+
label: "vatNumber",
|
|
1557
|
+
validators: validatePatternOnBlur(/^MT\d{8}$/),
|
|
1558
|
+
mask: {
|
|
1559
|
+
mask: makeMask(...nonInputs("MT", { includeInValue: true }), spacer, ...numericInputs(8))
|
|
1560
|
+
},
|
|
1561
|
+
guidanceText: {
|
|
1562
|
+
key: "enterTheRemainingNDigitsForExample",
|
|
1563
|
+
values: {
|
|
1564
|
+
numDigits: "8",
|
|
1565
|
+
example: "MT12345678"
|
|
1566
|
+
}
|
|
1567
|
+
}
|
|
1568
|
+
},
|
|
1569
|
+
[CountryCodes.Monaco]: {
|
|
1570
|
+
label: "numeroDIdentificationALATaxe",
|
|
1571
|
+
validators: validatePatternOnBlur(/^FR[0-9]{11}$/),
|
|
1572
|
+
mask: {
|
|
1573
|
+
mask: makeMask(...nonInputs("FR", { includeInValue: true }), spacer, ...numericInputs(11))
|
|
1574
|
+
},
|
|
1575
|
+
guidanceText: {
|
|
1576
|
+
key: "enterTheRemainingNDigitsForExample",
|
|
1577
|
+
values: {
|
|
1578
|
+
numDigits: "11",
|
|
1579
|
+
example: "FR12345678999"
|
|
1580
|
+
}
|
|
1581
|
+
}
|
|
1582
|
+
},
|
|
1583
|
+
[CountryCodes.Netherlands]: {
|
|
1584
|
+
label: "btwNummer",
|
|
1585
|
+
validators: validatePatternOnBlur(/^NL\d{9}B\d{2}$/),
|
|
1586
|
+
mask: {
|
|
1587
|
+
mask: makeMask(
|
|
1588
|
+
...nonInputs("NL", { includeInValue: true }),
|
|
1589
|
+
spacer,
|
|
1590
|
+
...numericInputs(9),
|
|
1591
|
+
spacer,
|
|
1592
|
+
...nonInputs("B", { includeInValue: true }),
|
|
1593
|
+
spacer,
|
|
1594
|
+
...numericInputs(2)
|
|
1595
|
+
),
|
|
1596
|
+
transformOnType: uppercase
|
|
1597
|
+
},
|
|
1598
|
+
guidanceText: {
|
|
1599
|
+
key: "enterTheRemainingNCharactersForExample",
|
|
1600
|
+
values: {
|
|
1601
|
+
numChars: "12",
|
|
1602
|
+
example: "NL123456789B01"
|
|
1603
|
+
}
|
|
1604
|
+
}
|
|
1605
|
+
},
|
|
1606
|
+
[CountryCodes.Norway]: {
|
|
1607
|
+
label: "mvanummer",
|
|
1608
|
+
validators: validatePatternOnBlur(/^\d{9}MVA$/),
|
|
1609
|
+
mask: {
|
|
1610
|
+
mask: makeMask(
|
|
1611
|
+
...numericInputs(9),
|
|
1612
|
+
...nonInputs("MVA", { includeInValue: true, displayEagerly: true })
|
|
1613
|
+
)
|
|
1614
|
+
},
|
|
1615
|
+
guidanceText: {
|
|
1616
|
+
key: "enterNDigitsForExample",
|
|
1617
|
+
values: {
|
|
1618
|
+
numDigits: "9",
|
|
1619
|
+
example: "123456789MVA"
|
|
1620
|
+
}
|
|
1621
|
+
}
|
|
1622
|
+
},
|
|
1623
|
+
[CountryCodes.Poland]: {
|
|
1624
|
+
label: "NIP",
|
|
1625
|
+
validators: validatePatternOnBlur(/^PL\d{10}$/),
|
|
1626
|
+
mask: {
|
|
1627
|
+
mask: makeMask(...nonInputs("PL", { includeInValue: true }), spacer, ...numericInputs(10))
|
|
1628
|
+
},
|
|
1629
|
+
guidanceText: {
|
|
1630
|
+
key: "enterTheRemainingNDigitsForExample",
|
|
1631
|
+
values: {
|
|
1632
|
+
numDigits: "10",
|
|
1633
|
+
example: "PL1234567890"
|
|
1634
|
+
}
|
|
1635
|
+
}
|
|
1636
|
+
},
|
|
1637
|
+
[CountryCodes.Portugal]: {
|
|
1638
|
+
label: "numerodeIVA",
|
|
1639
|
+
validators: validatePatternOnBlur(/^PT\d{9}$/),
|
|
1640
|
+
mask: {
|
|
1641
|
+
mask: makeMask(...nonInputs("PT", { includeInValue: true }), spacer, ...numericInputs(9))
|
|
1642
|
+
},
|
|
1643
|
+
guidanceText: {
|
|
1644
|
+
key: "enterTheRemainingNDigitsForExample",
|
|
1645
|
+
values: {
|
|
1646
|
+
numDigits: "9",
|
|
1647
|
+
example: "PT123456789"
|
|
1648
|
+
}
|
|
1649
|
+
}
|
|
1650
|
+
},
|
|
1651
|
+
[CountryCodes.Romania]: {
|
|
1652
|
+
label: "codulDeIdentificareFiscala",
|
|
1653
|
+
validators: validatePatternOnBlur(/^RO\d{2,12}$/),
|
|
1654
|
+
mask: {
|
|
1655
|
+
mask: makeMask(
|
|
1656
|
+
...nonInputs("RO", { includeInValue: true }),
|
|
1657
|
+
spacer,
|
|
1658
|
+
...numericInputs(2),
|
|
1659
|
+
...numericInputs(8, true)
|
|
1660
|
+
)
|
|
1661
|
+
},
|
|
1662
|
+
guidanceText: {
|
|
1663
|
+
key: "enterTheRemainingXToYDigitsForExample",
|
|
1664
|
+
values: {
|
|
1665
|
+
minDigits: "2",
|
|
1666
|
+
maxDigits: "10",
|
|
1667
|
+
example: "RO12345678"
|
|
1668
|
+
}
|
|
1669
|
+
}
|
|
1670
|
+
},
|
|
1671
|
+
[CountryCodes.Slovakia]: {
|
|
1672
|
+
label: "skTaxId",
|
|
1673
|
+
validators: validatePatternOnBlur(/^SK\d{10}$/),
|
|
1674
|
+
mask: {
|
|
1675
|
+
mask: makeMask(...nonInputs("SK", { includeInValue: true }), spacer, ...numericInputs(10))
|
|
1676
|
+
},
|
|
1677
|
+
guidanceText: {
|
|
1678
|
+
key: "enterTheRemainingNDigitsForExample",
|
|
1679
|
+
values: {
|
|
1680
|
+
numDigits: "10",
|
|
1681
|
+
example: "SK1234567890"
|
|
1682
|
+
}
|
|
1683
|
+
}
|
|
1684
|
+
},
|
|
1685
|
+
[CountryCodes.Slovenia]: {
|
|
1686
|
+
label: "siTaxId",
|
|
1687
|
+
validators: validatePatternOnBlur(/^SI\d{8}$/),
|
|
1688
|
+
mask: {
|
|
1689
|
+
mask: makeMask(...nonInputs("SI", { includeInValue: true }), spacer, ...numericInputs(8))
|
|
1690
|
+
},
|
|
1691
|
+
guidanceText: {
|
|
1692
|
+
key: "enterTheRemainingNDigitsForExample",
|
|
1693
|
+
values: {
|
|
1694
|
+
numDigits: "8",
|
|
1695
|
+
example: "SI12345678"
|
|
1696
|
+
}
|
|
1697
|
+
}
|
|
1698
|
+
},
|
|
1699
|
+
[CountryCodes.Spain]: {
|
|
1700
|
+
label: "NIFdeIVA",
|
|
1701
|
+
validators: validatePatternOnBlur(/^ES[A-Z0-9]\d{7}[A-Z0-9]$/),
|
|
1702
|
+
mask: {
|
|
1703
|
+
mask: makeMask(
|
|
1704
|
+
...nonInputs("ES", { includeInValue: true }),
|
|
1705
|
+
spacer,
|
|
1706
|
+
...alphanumericInputs(9)
|
|
1707
|
+
),
|
|
1708
|
+
transformOnType: uppercase
|
|
1709
|
+
},
|
|
1710
|
+
guidanceText: {
|
|
1711
|
+
key: "enterTheRemainingNCharactersForExample",
|
|
1712
|
+
values: {
|
|
1713
|
+
numChars: "9",
|
|
1714
|
+
example: "ES12345678X"
|
|
1715
|
+
}
|
|
1716
|
+
}
|
|
1717
|
+
},
|
|
1718
|
+
[CountryCodes.Sweden]: {
|
|
1719
|
+
label: "vatNummerMomsregistreringsnummerOrMomsnummer",
|
|
1720
|
+
validators: validatePatternOnBlur(/^SE\d{12}$/),
|
|
1721
|
+
mask: {
|
|
1722
|
+
mask: makeMask(...nonInputs("SE", { includeInValue: true }), spacer, ...numericInputs(12))
|
|
1723
|
+
},
|
|
1724
|
+
guidanceText: {
|
|
1725
|
+
key: "enterTheRemainingNDigitsForExample",
|
|
1726
|
+
values: {
|
|
1727
|
+
numDigits: "12",
|
|
1728
|
+
example: "SE123456789001"
|
|
1729
|
+
}
|
|
1730
|
+
}
|
|
1731
|
+
},
|
|
1732
|
+
[CountryCodes.Switzerland]: {
|
|
1733
|
+
label: "Mehrwertsteuernummer",
|
|
1734
|
+
// CHE123456789TVA | CHE....MWST | CHE.......IVA
|
|
1735
|
+
validators: validatePatternOnBlur(/^CHE\d{9}(TVA|MWST|IVA)$/),
|
|
1736
|
+
mask: {
|
|
1737
|
+
mask: makeMask(
|
|
1738
|
+
...nonInputs("CHE", { includeInValue: true }),
|
|
1739
|
+
...nonInputs(" - "),
|
|
1740
|
+
...numericInputs(3),
|
|
1741
|
+
...nonInputs(" . "),
|
|
1742
|
+
...numericInputs(3),
|
|
1743
|
+
...nonInputs(" . "),
|
|
1744
|
+
...numericInputs(3),
|
|
1745
|
+
spacer,
|
|
1746
|
+
...alphaInputs(3),
|
|
1747
|
+
...alphaInputs(1, true)
|
|
1748
|
+
),
|
|
1749
|
+
transformOnType: uppercase
|
|
1750
|
+
},
|
|
1751
|
+
guidanceText: {
|
|
1752
|
+
key: "enterTheRemainingNDigitsThenXToYLettersForExample",
|
|
1753
|
+
values: {
|
|
1754
|
+
numDigits: "9",
|
|
1755
|
+
minLetters: "3",
|
|
1756
|
+
maxLetters: "4",
|
|
1757
|
+
example: "CHE-123.456.789 TVA"
|
|
1758
|
+
}
|
|
1759
|
+
}
|
|
1760
|
+
},
|
|
1761
|
+
[CountryCodes.UnitedArabEmirates]: {
|
|
1762
|
+
label: "vatRegistrationNumber",
|
|
1763
|
+
validators: validateNotEmptyOnBlur
|
|
1764
|
+
},
|
|
1765
|
+
[CountryCodes.UnitedKingdom]: {
|
|
1766
|
+
label: "vatRegistrationNumber",
|
|
1767
|
+
validators: validatePatternOnBlur(/^GB\d{9,12}$/),
|
|
1768
|
+
mask: {
|
|
1769
|
+
mask: makeMask(
|
|
1770
|
+
...nonInputs("GB", { includeInValue: true }),
|
|
1771
|
+
spacer,
|
|
1772
|
+
...numericInputs(9),
|
|
1773
|
+
...numericInputs(3, true)
|
|
1774
|
+
)
|
|
1775
|
+
},
|
|
1776
|
+
guidanceText: {
|
|
1777
|
+
key: "enterTheRemainingXToYDigitsForExample",
|
|
1778
|
+
values: {
|
|
1779
|
+
minDigits: "9",
|
|
1780
|
+
maxDigits: "12",
|
|
1781
|
+
example: "GB1234567890"
|
|
1782
|
+
}
|
|
1783
|
+
}
|
|
1784
|
+
},
|
|
1785
|
+
/**
|
|
1786
|
+
* NOT YET SUPPORTED
|
|
1787
|
+
* These are brought over from the old pattern files. We have no idea if they are accurate or not.
|
|
1788
|
+
* See https://en.wikipedia.org/wiki/VAT_identification_number
|
|
1789
|
+
*/
|
|
1790
|
+
[CountryCodes.Albania]: {
|
|
1791
|
+
validators: validatePatternOnBlur(/^[JKLM][A-Z0-9]{8}[A-Z]$/)
|
|
1792
|
+
},
|
|
1793
|
+
[CountryCodes.Belarus]: {
|
|
1794
|
+
validators: validatePatternOnBlur(/^\d{9}$/)
|
|
1795
|
+
},
|
|
1796
|
+
[CountryCodes.RussianFederation]: {
|
|
1797
|
+
validators: validatePatternOnBlur(/^(\d{10}|\d{12})$/)
|
|
1798
|
+
},
|
|
1799
|
+
[CountryCodes.SanMarino]: {
|
|
1800
|
+
validators: validatePatternOnBlur(/^\d{5}$/)
|
|
1801
|
+
},
|
|
1802
|
+
[CountryCodes.Serbia]: {
|
|
1803
|
+
validators: validatePatternOnBlur(/^\d{9}$/)
|
|
1804
|
+
},
|
|
1805
|
+
[CountryCodes.Turkey]: {
|
|
1806
|
+
validators: validatePatternOnBlur(/^\d{10}$/)
|
|
1807
|
+
},
|
|
1808
|
+
[CountryCodes.Ukraine]: {
|
|
1809
|
+
validators: validatePatternOnBlur(/^\d{12}$/)
|
|
1810
|
+
},
|
|
1811
|
+
[CountryCodes.Argentina]: {
|
|
1812
|
+
validators: validatePatternOnBlur(/^\d{11}$/)
|
|
1813
|
+
},
|
|
1814
|
+
[CountryCodes.Chile]: {
|
|
1815
|
+
validators: validatePatternOnBlur(/^\d{9}$/)
|
|
1816
|
+
},
|
|
1817
|
+
[CountryCodes.Colombia]: {
|
|
1818
|
+
validators: validatePatternOnBlur(/^\d{10}$/)
|
|
1819
|
+
},
|
|
1820
|
+
[CountryCodes.CostaRica]: {
|
|
1821
|
+
validators: validatePatternOnBlur(/^\d{9,12}$/)
|
|
1822
|
+
},
|
|
1823
|
+
[CountryCodes.Ecuador]: {
|
|
1824
|
+
validators: validatePatternOnBlur(/^\d{13}$/)
|
|
1825
|
+
},
|
|
1826
|
+
[CountryCodes.Guatemala]: {
|
|
1827
|
+
validators: validatePatternOnBlur(/^\d{8}$/)
|
|
1828
|
+
},
|
|
1829
|
+
[CountryCodes.Peru]: {
|
|
1830
|
+
validators: validatePatternOnBlur(/^\d{11}$/)
|
|
1831
|
+
},
|
|
1832
|
+
[CountryCodes.Venezuela]: {
|
|
1833
|
+
validators: validatePatternOnBlur(/^[JGVE]-\d{8}-?\d$/)
|
|
1834
|
+
}
|
|
1835
|
+
};
|
|
1836
|
+
const inferVatNumberType = (vatNumber, country) => {
|
|
1837
|
+
const optionsForCountry = vatNumberOptions[country];
|
|
1838
|
+
const metadataFn = defaultFieldConfig[country];
|
|
1839
|
+
if (!optionsForCountry || !metadataFn) return void 0;
|
|
1840
|
+
for (const option of optionsForCountry) {
|
|
1841
|
+
const fieldMetadata = typeof metadataFn === "function" ? metadataFn({
|
|
1842
|
+
vatNumberType: option.id
|
|
1843
|
+
}) : metadataFn;
|
|
1844
|
+
if (!fieldMetadata.validators) continue;
|
|
1845
|
+
const validators = Array.isArray(fieldMetadata.validators) ? fieldMetadata.validators : [fieldMetadata.validators];
|
|
1846
|
+
if (validators.every((validator) => validator.validate(vatNumber))) {
|
|
1847
|
+
return option.id;
|
|
1848
|
+
}
|
|
1849
|
+
}
|
|
1850
|
+
};
|
|
1851
|
+
function getDefaultVatNumberType(vatNumber, country) {
|
|
1852
|
+
return vatNumber ? inferVatNumberType(vatNumber, country) : vatNumberOptions[country]?.[0]?.id;
|
|
1853
|
+
}
|
|
1854
|
+
function VatNumberTypeSelector({
|
|
1855
|
+
country,
|
|
1856
|
+
companyType,
|
|
1857
|
+
selected,
|
|
1858
|
+
setSelected,
|
|
1859
|
+
exemptedOption
|
|
1860
|
+
}) {
|
|
1861
|
+
const { t } = useTranslation("common");
|
|
1862
|
+
const handleSelect = useCallback(
|
|
1863
|
+
(selectedStr) => {
|
|
1864
|
+
const newSelected = selectedStr;
|
|
1865
|
+
if (newSelected === "exempted") {
|
|
1866
|
+
if (exemptedOption) {
|
|
1867
|
+
setSelected(newSelected, true);
|
|
1868
|
+
}
|
|
1869
|
+
return;
|
|
1870
|
+
}
|
|
1871
|
+
setSelected(newSelected, false);
|
|
1872
|
+
},
|
|
1873
|
+
[exemptedOption, setSelected]
|
|
1874
|
+
);
|
|
1875
|
+
const options = useMemo(() => {
|
|
1876
|
+
const availableOptions = getVatNumberOptions(country, companyType) ?? [];
|
|
1877
|
+
if (availableOptions.length === 0 || !exemptedOption) return availableOptions;
|
|
1878
|
+
return [
|
|
1879
|
+
...availableOptions,
|
|
1880
|
+
{
|
|
1881
|
+
id: "exempted",
|
|
1882
|
+
name: exemptedOption
|
|
1883
|
+
}
|
|
1884
|
+
];
|
|
1885
|
+
}, [country, companyType, exemptedOption]);
|
|
1886
|
+
useEffect(() => {
|
|
1887
|
+
if (!selected && options.length > 0) {
|
|
1888
|
+
handleSelect(options[0].id);
|
|
1889
|
+
}
|
|
1890
|
+
}, [options, selected, handleSelect]);
|
|
1891
|
+
if (options.length <= 1) return null;
|
|
1892
|
+
return /* @__PURE__ */ jsx(
|
|
1893
|
+
Field,
|
|
1894
|
+
{
|
|
1895
|
+
el: "fieldset",
|
|
1896
|
+
name: "vatNumberType",
|
|
1897
|
+
label: t(($) => $["whichTypeOfTaxIdNumberDoYouHave"]),
|
|
1898
|
+
children: (childProps) => /* @__PURE__ */ jsx(
|
|
1899
|
+
RadioGroup,
|
|
1900
|
+
{
|
|
1901
|
+
...childProps,
|
|
1902
|
+
name: "vatNumberType",
|
|
1903
|
+
items: options,
|
|
1904
|
+
value: selected,
|
|
1905
|
+
onChange: handleSelect
|
|
1906
|
+
}
|
|
1907
|
+
)
|
|
1908
|
+
}
|
|
1909
|
+
);
|
|
1910
|
+
}
|
|
1911
|
+
const VAT_NUMBER_FIELD = [
|
|
1912
|
+
"vatNumber",
|
|
1913
|
+
"vatNumberType",
|
|
1914
|
+
"exemptedFromVat",
|
|
1915
|
+
"vatAbsenceReason"
|
|
1916
|
+
];
|
|
1917
|
+
function VatNumberField({
|
|
1918
|
+
data,
|
|
1919
|
+
valid,
|
|
1920
|
+
errors,
|
|
1921
|
+
labels,
|
|
1922
|
+
mask,
|
|
1923
|
+
guidanceText,
|
|
1924
|
+
readonly,
|
|
1925
|
+
optional,
|
|
1926
|
+
shouldValidate,
|
|
1927
|
+
handleChangeFor,
|
|
1928
|
+
canExempt,
|
|
1929
|
+
country
|
|
1930
|
+
}) {
|
|
1931
|
+
const { isExperimentEnabled } = useExperimentsContext();
|
|
1932
|
+
const options = vatNumberOptions[country];
|
|
1933
|
+
const defaultType = getDefaultVatNumberType(data.vatNumber, country);
|
|
1934
|
+
const vatAbsenceReasons = isExperimentEnabled("ShowExtraTaxExemptionReasons") ? ["belowTaxThreshold", "industryExemption", "countryWithoutVatOrGstSystem"] : ["belowTaxThreshold", "industryExemption"];
|
|
1935
|
+
const showVatExemptedOptions = canExempt && options?.length > 1;
|
|
1936
|
+
const vatNumberType = data.exemptedFromVat ? "exempted" : data.vatNumberType ? data.vatNumberType : defaultType;
|
|
1937
|
+
const handleVatNumberChange = (e, mode) => {
|
|
1938
|
+
const value = typeof e === "string" ? e : e.currentTarget.value;
|
|
1939
|
+
handleChangeFor("vatNumber", mode)(value);
|
|
1940
|
+
handleChangeFor("vatNumberType")(vatNumberType);
|
|
1941
|
+
};
|
|
1942
|
+
const handleVatNumberTypeChange = (vatType, exemptValue) => {
|
|
1943
|
+
if (vatType === "exempted") {
|
|
1944
|
+
if (!canExempt) {
|
|
1945
|
+
throw Error(`${country} does not allow VAT exemptions`);
|
|
1946
|
+
}
|
|
1947
|
+
handleChangeFor("vatNumber")(null);
|
|
1948
|
+
handleChangeFor("vatNumberType")(void 0);
|
|
1949
|
+
handleChangeFor("exemptedFromVat")(exemptValue);
|
|
1950
|
+
return;
|
|
1951
|
+
}
|
|
1952
|
+
if (canExempt) {
|
|
1953
|
+
handleChangeFor("exemptedFromVat")(exemptValue);
|
|
1954
|
+
}
|
|
1955
|
+
handleChangeFor("vatNumberType")(vatType);
|
|
1956
|
+
};
|
|
1957
|
+
if (vatNumberType && vatNumberType !== "exempted") {
|
|
1958
|
+
const countryHasType = options?.find((option) => option.id === vatNumberType);
|
|
1959
|
+
if (!countryHasType) {
|
|
1960
|
+
handleChangeFor("vatNumberType")(defaultType);
|
|
1961
|
+
}
|
|
1962
|
+
}
|
|
1963
|
+
if (data.exemptedFromVat === false && data.vatAbsenceReason) {
|
|
1964
|
+
handleChangeFor("vatAbsenceReason")(null);
|
|
1965
|
+
}
|
|
1966
|
+
return /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-field__vat-number", children: [
|
|
1967
|
+
/* @__PURE__ */ jsx(
|
|
1968
|
+
VatNumberTypeSelector,
|
|
1969
|
+
{
|
|
1970
|
+
country,
|
|
1971
|
+
setSelected: handleVatNumberTypeChange,
|
|
1972
|
+
selected: vatNumberType,
|
|
1973
|
+
exemptedOption: showVatExemptedOptions ? labels.exemptedFromVat : false
|
|
1974
|
+
}
|
|
1975
|
+
),
|
|
1976
|
+
/* @__PURE__ */ jsx(
|
|
1977
|
+
MaskedInput,
|
|
1978
|
+
{
|
|
1979
|
+
type: "text",
|
|
1980
|
+
"aria-required": true,
|
|
1981
|
+
"aria-invalid": !valid.vatNumber,
|
|
1982
|
+
name: "vatNumber",
|
|
1983
|
+
value: data?.vatNumber ?? "",
|
|
1984
|
+
label: labels.vatNumber ?? "",
|
|
1985
|
+
formatGuidance: guidanceText?.vatNumber ?? "",
|
|
1986
|
+
errorMessage: errors.vatNumber,
|
|
1987
|
+
isValid: Boolean(valid.vatNumber),
|
|
1988
|
+
onInput: (e) => handleVatNumberChange(e, "input"),
|
|
1989
|
+
onBlur: (e) => handleVatNumberChange(e, "blur"),
|
|
1990
|
+
disabled: data.exemptedFromVat,
|
|
1991
|
+
readonly,
|
|
1992
|
+
optional,
|
|
1993
|
+
shouldValidate,
|
|
1994
|
+
...mask
|
|
1995
|
+
}
|
|
1996
|
+
),
|
|
1997
|
+
canExempt && !showVatExemptedOptions && /* @__PURE__ */ jsx(Field, { name: "exemptedFromVat", children: (childProps) => /* @__PURE__ */ jsx(
|
|
1998
|
+
Checkbox,
|
|
1999
|
+
{
|
|
2000
|
+
...childProps,
|
|
2001
|
+
"aria-required": false,
|
|
2002
|
+
"aria-invalid": false,
|
|
2003
|
+
name: "exemptedFromVat",
|
|
2004
|
+
label: labels?.exemptedFromVat,
|
|
2005
|
+
value: "exemptedFromVat",
|
|
2006
|
+
checked: Boolean(data.exemptedFromVat),
|
|
2007
|
+
onChange: (e) => handleVatNumberTypeChange("exempted", e)
|
|
2008
|
+
}
|
|
2009
|
+
) }),
|
|
2010
|
+
data.exemptedFromVat && /* @__PURE__ */ jsx(
|
|
2011
|
+
Field,
|
|
2012
|
+
{
|
|
2013
|
+
el: "fieldset",
|
|
2014
|
+
name: "vatAbsenceReason",
|
|
2015
|
+
label: labels?.vatAbsenceReason,
|
|
2016
|
+
errorMessage: errors.vatAbsenceReason,
|
|
2017
|
+
isValid: valid.vatAbsenceReason,
|
|
2018
|
+
children: (childProps) => /* @__PURE__ */ jsx(
|
|
2019
|
+
RadioGroup,
|
|
2020
|
+
{
|
|
2021
|
+
...childProps,
|
|
2022
|
+
name: "vatAbsenceReason",
|
|
2023
|
+
onChange: handleChangeFor("vatAbsenceReason"),
|
|
2024
|
+
value: data.vatAbsenceReason,
|
|
2025
|
+
items: vatAbsenceReasons.map((reason) => ({ id: reason, name: reason }))
|
|
2026
|
+
}
|
|
2027
|
+
)
|
|
2028
|
+
}
|
|
2029
|
+
)
|
|
2030
|
+
] });
|
|
2031
|
+
}
|
|
2032
|
+
const operationalAddressIsSameIds = {
|
|
2033
|
+
OPERATIONAL_ADDRESS_IS_SAME: "OperationAddressAnswerYes",
|
|
2034
|
+
OPERATIONAL_ADDRESS_IS_NOT_SAME: "OperationAddressAnswerNo"
|
|
2035
|
+
};
|
|
2036
|
+
const operationalAddressIsSameItems = [
|
|
2037
|
+
{
|
|
2038
|
+
id: operationalAddressIsSameIds.OPERATIONAL_ADDRESS_IS_SAME,
|
|
2039
|
+
name: "operationalAddressIsSameItemName"
|
|
2040
|
+
},
|
|
2041
|
+
{
|
|
2042
|
+
id: operationalAddressIsSameIds.OPERATIONAL_ADDRESS_IS_NOT_SAME,
|
|
2043
|
+
name: "operationalAddressIsNotSameItemName"
|
|
2044
|
+
}
|
|
2045
|
+
];
|
|
2046
|
+
const registrationAddressValidationRules = {
|
|
2047
|
+
operationalAddressIsSame: {
|
|
2048
|
+
modes: ["blur"],
|
|
2049
|
+
validate: (operationalAddressIsSame) => !!operationalAddressIsSame,
|
|
2050
|
+
errorMessage: "fieldIsRequired"
|
|
2051
|
+
}
|
|
2052
|
+
};
|
|
2053
|
+
const registrationAddressFields = [
|
|
2054
|
+
"registrationAddress",
|
|
2055
|
+
"operationalAddress",
|
|
2056
|
+
"operationalAddressIsSame"
|
|
2057
|
+
];
|
|
2058
|
+
const registrationAddressForms = {
|
|
2059
|
+
registrationAddress: {
|
|
2060
|
+
formId: "registrationAddress"
|
|
2061
|
+
},
|
|
2062
|
+
operationalAddress: {
|
|
2063
|
+
formId: "operationalAddress"
|
|
2064
|
+
}
|
|
2065
|
+
};
|
|
2066
|
+
const registrationAddressFormID = registrationAddressForms.registrationAddress.formId;
|
|
2067
|
+
const operationalAddressFormID = registrationAddressForms.operationalAddress.formId;
|
|
2068
|
+
function RegistrationAddress(props) {
|
|
2069
|
+
const { t } = useTranslation("common");
|
|
2070
|
+
const { id, heading, description, country, data, validators, problems } = props;
|
|
2071
|
+
const {
|
|
2072
|
+
requiredFields: registrationAddressRequiredFields,
|
|
2073
|
+
optionalFields: registrationAddressOptionalFields,
|
|
2074
|
+
readOnlyFields: registrationAddressReadOnlyFields,
|
|
2075
|
+
obscuredFields: registrationAddressObscuredFields,
|
|
2076
|
+
verifyFields: registrationAddressVerifyFields,
|
|
2077
|
+
trustedFields: registrationAddressTrustedFields
|
|
2078
|
+
} = getFormProps(props, registrationAddressFormID);
|
|
2079
|
+
const {
|
|
2080
|
+
data: formData,
|
|
2081
|
+
valid: formValid,
|
|
2082
|
+
errors: formErrors,
|
|
2083
|
+
fieldProblems: formFieldProblems,
|
|
2084
|
+
handleChangeFor,
|
|
2085
|
+
setValid
|
|
2086
|
+
} = useForm({
|
|
2087
|
+
...props,
|
|
2088
|
+
schema: ["operationalAddressIsSame"],
|
|
2089
|
+
defaultData: data,
|
|
2090
|
+
rules: validators || registrationAddressValidationRules,
|
|
2091
|
+
obscuredFields: [],
|
|
2092
|
+
optionalFields: registrationAddressOptionalFields,
|
|
2093
|
+
trustedFields: registrationAddressTrustedFields
|
|
2094
|
+
});
|
|
2095
|
+
const mergedProps = {
|
|
2096
|
+
...props,
|
|
2097
|
+
requiredFields: registrationAddressRequiredFields,
|
|
2098
|
+
optionalFields: registrationAddressOptionalFields,
|
|
2099
|
+
readOnlyFields: registrationAddressReadOnlyFields,
|
|
2100
|
+
obscuredFields: registrationAddressObscuredFields,
|
|
2101
|
+
trustedFields: registrationAddressTrustedFields
|
|
2102
|
+
};
|
|
2103
|
+
const formUtils = createFormUtils(mergedProps, t);
|
|
2104
|
+
const stateRef = useRef({ setState: null });
|
|
2105
|
+
useEffect(() => {
|
|
2106
|
+
stateRef?.current?.setState?.({
|
|
2107
|
+
type: "addToState",
|
|
2108
|
+
value: {
|
|
2109
|
+
data: formData,
|
|
2110
|
+
valid: formValid,
|
|
2111
|
+
errors: formErrors,
|
|
2112
|
+
fieldProblems: formFieldProblems,
|
|
2113
|
+
dataStoreId: id,
|
|
2114
|
+
schema: [
|
|
2115
|
+
"registrationAddress",
|
|
2116
|
+
"operationalAddressIsSame",
|
|
2117
|
+
...isOperationAddressNotSame() ? ["operationalAddress"] : []
|
|
2118
|
+
]
|
|
2119
|
+
}
|
|
2120
|
+
});
|
|
2121
|
+
}, [formData, formValid, formErrors, formFieldProblems]);
|
|
2122
|
+
const isOperationAddressNotSame = () => formData.operationalAddressIsSame === operationalAddressIsSameIds.OPERATIONAL_ADDRESS_IS_NOT_SAME;
|
|
2123
|
+
const registrationAddressFormProps = getFormProps(props, registrationAddressFormID);
|
|
2124
|
+
const operationalAddressFormProps = getFormProps(props, operationalAddressFormID);
|
|
2125
|
+
const handleRegistrationAddressChange = (state) => {
|
|
2126
|
+
handleChangeFor("registrationAddress")(state.data);
|
|
2127
|
+
setValid("registrationAddress", Boolean(state.isValid));
|
|
2128
|
+
};
|
|
2129
|
+
const handleOperationalAddressChange = (state) => {
|
|
2130
|
+
handleChangeFor("operationalAddress")(state.data);
|
|
2131
|
+
setValid("operationalAddress", Boolean(state.isValid));
|
|
2132
|
+
};
|
|
2133
|
+
const handleOperationalAddressIsSameChange = (value) => {
|
|
2134
|
+
handleChangeFor("operationalAddressIsSame")(value);
|
|
2135
|
+
if (value === "OperationAddressAnswerYes") setValid("operationalAddress", true);
|
|
2136
|
+
};
|
|
2137
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
2138
|
+
/* @__PURE__ */ jsx(StateContextSetter, { owner: id, stateRef }),
|
|
2139
|
+
heading && /* @__PURE__ */ jsx(Header, { title: heading, description }),
|
|
2140
|
+
/* @__PURE__ */ jsx(
|
|
2141
|
+
ErrorPanel,
|
|
2142
|
+
{
|
|
2143
|
+
verificationErrors: id ? problems?.verificationErrors?.[id] : void 0,
|
|
2144
|
+
validationErrors: id ? problems?.validationErrors?.[id] : void 0,
|
|
2145
|
+
formUtils,
|
|
2146
|
+
id: "ariaErrorField"
|
|
2147
|
+
}
|
|
2148
|
+
),
|
|
2149
|
+
/* @__PURE__ */ jsx(
|
|
2150
|
+
ContextGuidance,
|
|
2151
|
+
{
|
|
2152
|
+
titleId: "whyDoINeedToFillInThisInformation",
|
|
2153
|
+
contentId: "reasonForFillingCompanyAddressDetails",
|
|
2154
|
+
title: t(($) => $["whyDoINeedToFillInThisInformation"]),
|
|
2155
|
+
content: t(($) => $["reasonForFillingCompanyAddressDetails"])
|
|
2156
|
+
}
|
|
2157
|
+
),
|
|
2158
|
+
/* @__PURE__ */ jsx(
|
|
2159
|
+
Address,
|
|
2160
|
+
{
|
|
2161
|
+
...registrationAddressFormProps,
|
|
2162
|
+
data: { ...registrationAddressFormProps?.data, country },
|
|
2163
|
+
hideCountry: true,
|
|
2164
|
+
id,
|
|
2165
|
+
addressType: "registrationAddress",
|
|
2166
|
+
optionalFields: ["otherAddressInformation"],
|
|
2167
|
+
onChange: handleRegistrationAddressChange
|
|
2168
|
+
}
|
|
2169
|
+
),
|
|
2170
|
+
/* @__PURE__ */ jsx(Header, { title: t(($) => $["operationalAddressHeader"]), secondary: true }),
|
|
2171
|
+
/* @__PURE__ */ jsx(
|
|
2172
|
+
Field,
|
|
2173
|
+
{
|
|
2174
|
+
el: "fieldset",
|
|
2175
|
+
name: "operationalAddressIsSame",
|
|
2176
|
+
label: formUtils.getLabel("operationalAddressIsSame"),
|
|
2177
|
+
errorMessage: formErrors.operationalAddressIsSame?.errorMessage,
|
|
2178
|
+
children: (childProps) => /* @__PURE__ */ jsx(
|
|
2179
|
+
RadioGroup,
|
|
2180
|
+
{
|
|
2181
|
+
...childProps,
|
|
2182
|
+
name: "operationalAddressIsSame",
|
|
2183
|
+
items: operationalAddressIsSameItems,
|
|
2184
|
+
value: formData.operationalAddressIsSame,
|
|
2185
|
+
disabled: formUtils.isReadOnly("operationalAddressIsSame"),
|
|
2186
|
+
onChange: handleOperationalAddressIsSameChange,
|
|
2187
|
+
"aria-required": true,
|
|
2188
|
+
"aria-invalid": !formValid.operationalAddressIsSame
|
|
2189
|
+
}
|
|
2190
|
+
)
|
|
2191
|
+
}
|
|
2192
|
+
),
|
|
2193
|
+
isOperationAddressNotSame() && /* @__PURE__ */ createElement(
|
|
2194
|
+
Address,
|
|
2195
|
+
{
|
|
2196
|
+
...operationalAddressFormProps,
|
|
2197
|
+
key: "operationalAddress",
|
|
2198
|
+
data: { ...operationalAddressFormProps?.data, country },
|
|
2199
|
+
hideCountry: true,
|
|
2200
|
+
id,
|
|
2201
|
+
optionalFields: ["otherAddressInformation"],
|
|
2202
|
+
addressType: "operationalAddress",
|
|
2203
|
+
onChange: handleOperationalAddressChange
|
|
2204
|
+
}
|
|
2205
|
+
)
|
|
2206
|
+
] });
|
|
2207
|
+
}
|
|
2208
|
+
const ConstitutionalDocumentTypes = {
|
|
2209
|
+
BUSINESS_NAME_FILING: "doingBusinessAsNameFiling",
|
|
2210
|
+
TAX_FILING: "taxFiling",
|
|
2211
|
+
EMPLOYER_IDENTIFICATION_NUMBER_VERIFICATION_LETTER: "einVerificationLetter",
|
|
2212
|
+
BUSINESS_REGISTRATION_DOCUMENT: "businessRegistrationDocument",
|
|
2213
|
+
TRUST_DEED: "trustDeed",
|
|
2214
|
+
TRUST_INSTRUMENT: "trustInstrument",
|
|
2215
|
+
PARTNERSHIP_AGREEMENT: "partnershipAgreement",
|
|
2216
|
+
MEETING_MINUTES: "meetingMinutes"
|
|
2217
|
+
};
|
|
2218
|
+
const getConstitutionDocumentTypeOptionsMapping = (legalEntityType, country) => {
|
|
2219
|
+
switch (legalEntityType) {
|
|
2220
|
+
case LegalEntityTypes.SOLE_PROPRIETORSHIP:
|
|
2221
|
+
switch (country) {
|
|
2222
|
+
case "FR":
|
|
2223
|
+
return [
|
|
2224
|
+
{
|
|
2225
|
+
id: ConstitutionalDocumentTypes.BUSINESS_NAME_FILING,
|
|
2226
|
+
name: "doingBusinessAsNameFiling__FR"
|
|
2227
|
+
},
|
|
2228
|
+
{ id: ConstitutionalDocumentTypes.TAX_FILING, name: "taxFiling" },
|
|
2229
|
+
{
|
|
2230
|
+
id: ConstitutionalDocumentTypes.BUSINESS_REGISTRATION_DOCUMENT,
|
|
2231
|
+
name: "businessRegistrationDocument__FR"
|
|
2232
|
+
}
|
|
2233
|
+
];
|
|
2234
|
+
case "US":
|
|
2235
|
+
return [
|
|
2236
|
+
{
|
|
2237
|
+
id: ConstitutionalDocumentTypes.BUSINESS_NAME_FILING,
|
|
2238
|
+
name: "doingBusinessAsNameFiling__US"
|
|
2239
|
+
},
|
|
2240
|
+
{ id: ConstitutionalDocumentTypes.TAX_FILING, name: "taxFiling__US" },
|
|
2241
|
+
{
|
|
2242
|
+
id: ConstitutionalDocumentTypes.EMPLOYER_IDENTIFICATION_NUMBER_VERIFICATION_LETTER,
|
|
2243
|
+
name: "einVerificationLetter"
|
|
2244
|
+
}
|
|
2245
|
+
];
|
|
2246
|
+
default:
|
|
2247
|
+
return [
|
|
2248
|
+
{
|
|
2249
|
+
id: ConstitutionalDocumentTypes.BUSINESS_NAME_FILING,
|
|
2250
|
+
name: "doingBusinessAsNameFiling"
|
|
2251
|
+
},
|
|
2252
|
+
{ id: ConstitutionalDocumentTypes.TAX_FILING, name: "taxFiling" }
|
|
2253
|
+
];
|
|
2254
|
+
}
|
|
2255
|
+
case LegalEntityTypes.UNINCORPORATED_PARTNERSHIP:
|
|
2256
|
+
return [
|
|
2257
|
+
{
|
|
2258
|
+
id: ConstitutionalDocumentTypes.PARTNERSHIP_AGREEMENT,
|
|
2259
|
+
name: "partnershipAgreement"
|
|
2260
|
+
},
|
|
2261
|
+
{
|
|
2262
|
+
id: ConstitutionalDocumentTypes.MEETING_MINUTES,
|
|
2263
|
+
name: "meetingMinutes"
|
|
2264
|
+
}
|
|
2265
|
+
];
|
|
2266
|
+
default:
|
|
2267
|
+
return [
|
|
2268
|
+
{ id: ConstitutionalDocumentTypes.TRUST_DEED, name: "trustDeed" },
|
|
2269
|
+
{ id: ConstitutionalDocumentTypes.TRUST_INSTRUMENT, name: "trustInstrument" }
|
|
2270
|
+
];
|
|
2271
|
+
}
|
|
2272
|
+
};
|
|
2273
|
+
function getLegalEntityTypeBasedConstitutionalDocumentHeaderDescriptionTranslationkey(legalEntityType) {
|
|
2274
|
+
switch (legalEntityType) {
|
|
2275
|
+
case LegalEntityTypes.SOLE_PROPRIETORSHIP:
|
|
2276
|
+
return "constitutionalDocumentSoleProprietorshipHeaderDescription";
|
|
2277
|
+
case LegalEntityTypes.TRUST:
|
|
2278
|
+
return "constitutionalDocumentTrustHeaderDescription";
|
|
2279
|
+
case LegalEntityTypes.UNINCORPORATED_PARTNERSHIP:
|
|
2280
|
+
return "constitutionalDocumentUnincorporatedPartnershipDescription";
|
|
2281
|
+
default:
|
|
2282
|
+
return "constitutionalDocumentHeaderDescription";
|
|
2283
|
+
}
|
|
2284
|
+
}
|
|
2285
|
+
const unincorporatedPartnershipRequirementsVariants = ["Name", "Details", "UpToDate"];
|
|
2286
|
+
function ConstitutionalDocumentUpload({
|
|
2287
|
+
id,
|
|
2288
|
+
legalEntityType,
|
|
2289
|
+
...props
|
|
2290
|
+
}) {
|
|
2291
|
+
const { t } = useTranslation(["common"]);
|
|
2292
|
+
usePageLandedEvent();
|
|
2293
|
+
const isUnincorporatedPartnership = legalEntityType === LegalEntityTypes.UNINCORPORATED_PARTNERSHIP;
|
|
2294
|
+
const constitutionalDocumentRequirements = getConstitutionDocumentTypeOptionsMapping(
|
|
2295
|
+
legalEntityType,
|
|
2296
|
+
props.country
|
|
2297
|
+
);
|
|
2298
|
+
const guidanceContent = /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-upload-field__guidance adyen-kyc-u-margin-bottom-24", children: [
|
|
2299
|
+
/* @__PURE__ */ jsx("strong", { children: t(($) => $["uploadOneOfTheseDocuments"]) }),
|
|
2300
|
+
/* @__PURE__ */ jsx("ul", { children: constitutionalDocumentRequirements?.map(({ name }, i) => /* @__PURE__ */ jsx("li", { children: t(($) => $[name]) }, i)) }),
|
|
2301
|
+
isUnincorporatedPartnership && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
2302
|
+
/* @__PURE__ */ jsx("strong", { children: t(($) => $["documentRequirements"]) }),
|
|
2303
|
+
/* @__PURE__ */ jsx("ul", { children: unincorporatedPartnershipRequirementsVariants.map((item, i) => /* @__PURE__ */ jsx("li", { children: t(
|
|
2304
|
+
($) => $[`documentRequirementsUnincorporatedPartnership${item}`],
|
|
2305
|
+
{ ns: "common" }
|
|
2306
|
+
) }, i)) })
|
|
2307
|
+
] }),
|
|
2308
|
+
props.country !== "US" && !isUnincorporatedPartnership && /* @__PURE__ */ jsx("div", { className: "adyen-kyc-u-margin-y-16", children: /* @__PURE__ */ jsxs("span", { children: [
|
|
2309
|
+
t(($) => $["infoInUploadedDocumentIsTrue"]),
|
|
2310
|
+
" "
|
|
2311
|
+
] }) })
|
|
2312
|
+
] });
|
|
2313
|
+
return /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
2314
|
+
MemoizedDocumentUpload,
|
|
2315
|
+
{
|
|
2316
|
+
...props,
|
|
2317
|
+
documentType: "constitutionalDocument",
|
|
2318
|
+
documentField: "constitutionalDocument",
|
|
2319
|
+
heading: t(($) => $["constitutionalDocumentHeader"]),
|
|
2320
|
+
description: t(
|
|
2321
|
+
($) => $[getLegalEntityTypeBasedConstitutionalDocumentHeaderDescriptionTranslationkey(
|
|
2322
|
+
legalEntityType
|
|
2323
|
+
)],
|
|
2324
|
+
{ ns: "common" }
|
|
2325
|
+
),
|
|
2326
|
+
guidanceContent,
|
|
2327
|
+
id,
|
|
2328
|
+
hidePageCount: true
|
|
2329
|
+
}
|
|
2330
|
+
) });
|
|
2331
|
+
}
|
|
2332
|
+
const MemoizedConstitutionalDocument = memo(
|
|
2333
|
+
ConstitutionalDocumentUpload,
|
|
2334
|
+
(prevProps, nextProps) => objectsDeepEqual(prevProps.requiredFields, nextProps.requiredFields) && objectsDeepEqual(prevProps.data, nextProps.data) && objectsDeepEqual(prevProps.formVerificationErrors, nextProps.formVerificationErrors) && objectsDeepEqual(prevProps.fieldValidationErrors, nextProps.fieldValidationErrors) && prevProps.shouldValidate === nextProps.shouldValidate
|
|
2335
|
+
);
|
|
2336
|
+
export {
|
|
2337
|
+
BUSINESS_REGISTRATION_NUMBER_FIELD as B,
|
|
2338
|
+
DBA_NAME_FIELD as D,
|
|
2339
|
+
MemoizedConstitutionalDocument as M,
|
|
2340
|
+
RegistrationAddress as R,
|
|
2341
|
+
VAT_NUMBER_FIELD as V,
|
|
2342
|
+
defaultFieldConfig as a,
|
|
2343
|
+
registrationNumberDefaultFieldMetadata as b,
|
|
2344
|
+
registrationNumberDefaultFieldConfig as c,
|
|
2345
|
+
defaultFieldMetadata as d,
|
|
2346
|
+
doingBusinessAsFieldMetadata as e,
|
|
2347
|
+
doingBusinessAsAbsentFieldMetadata as f,
|
|
2348
|
+
DBANameField as g,
|
|
2349
|
+
BusinessRegistrationNumberField as h,
|
|
2350
|
+
getRegistrationNumberHelperText as i,
|
|
2351
|
+
VatNumberField as j,
|
|
2352
|
+
getDefaultRegistrationNumberType as k,
|
|
2353
|
+
getDefaultVatNumberType as l,
|
|
2354
|
+
inferCompanyRegistrationNumberType as m,
|
|
2355
|
+
exemptFromRegistrationNumberDefaultFieldMetadata as n,
|
|
2356
|
+
operationalAddressIsSameIds as o,
|
|
2357
|
+
exemptFromRegistrationNumberDefaultFieldConfig as p,
|
|
2358
|
+
operationalAddressIsSameItems as q,
|
|
2359
|
+
registrationAddressFields as r,
|
|
2360
|
+
vatAbsenceReasonMetadata as v
|
|
2361
|
+
};
|