@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.
Files changed (1393) hide show
  1. package/README.md +43 -30
  2. package/dist/4-people-BtDi7O9A.js +24 -0
  3. package/dist/AcceptTermsOfServiceComponent-DBf9qvsO.js +650 -0
  4. package/dist/Accordion-CqtzWVjL.js +88 -0
  5. package/dist/AccountSetupRejected-B_bbYtM2.js +26 -0
  6. package/dist/ActionBar-Dnv6j3rc.js +31 -0
  7. package/dist/Address-CbJvGOYV.js +1112 -0
  8. package/dist/Alert-uX8GYjqW.js +169 -0
  9. package/dist/Avatar-Cj2W0_1v.js +60 -0
  10. package/dist/BG-HKzabLqZ.js +27 -0
  11. package/dist/BusinessFinancingComponent-Bx2K8iN3.js +55 -0
  12. package/dist/BusinessFinancingDropin-CKsHfJ2J.js +2235 -0
  13. package/dist/BusinessFinancingPage-DmnaOPvo.js +43 -0
  14. package/dist/BusinessTypeSelectionPage-Bz0czSjO.js +440 -0
  15. package/dist/Card-OQuFzmxm.js +90 -0
  16. package/dist/Checkbox-BSxszx-9.js +74 -0
  17. package/dist/Confirm-DviRmz4e.js +64 -0
  18. package/dist/ConstitutionalDocument-hcS_-kxn.js +2361 -0
  19. package/dist/ContactDetails-BHn4lDFA.js +396 -0
  20. package/dist/ContextGuidance-BgMTeWIT.js +34 -0
  21. package/dist/ContractViewer-DcQHIGMU.js +935 -0
  22. package/dist/CountryField-D-WDIPSz.js +66 -0
  23. package/dist/CreateIndividualComponent-BJnGALzE.js +65 -0
  24. package/dist/CreateTransferInstrumentComponent-BudZmP_i.js +56 -0
  25. package/dist/Currency-BmTfhWzY.js +238 -0
  26. package/dist/CustomerSupport-C5g_pNY4.js +156 -0
  27. package/dist/DebugModal-C46w3DN5.js +416 -0
  28. package/dist/DecisionMakerDetailsPage-CMDK81px.js +104 -0
  29. package/dist/DecisionMakers-BbHkdcWY.js +858 -0
  30. package/dist/Dropzone-DMzbyRRZ.js +224 -0
  31. package/dist/EmbeddedStatus-Cto-qd3u.js +97 -0
  32. package/dist/EndStateLayout-Ds-6EhEu.js +71 -0
  33. package/dist/EntityAssociation-CAyTgh0S.js +178 -0
  34. package/dist/EntityGuidanceStatus-BdYW3yoc.js +106 -0
  35. package/dist/ErrorPanel-Doqj6bY8.js +194 -0
  36. package/dist/Field-CpaVW2RZ.js +141 -0
  37. package/dist/FormNavigation-D8lokOpO.js +144 -0
  38. package/dist/FormWrapper--B4boODe.js +135 -0
  39. package/dist/Header-hKHJmYRN.js +83 -0
  40. package/dist/Image-DIxxTupT.js +27 -0
  41. package/dist/Individual.rules-BAgQIMbK.js +383 -0
  42. package/dist/IndividualDropin-CpAEsMsL.js +5168 -0
  43. package/dist/InputDate-CoQAEyvT.js +43 -0
  44. package/dist/InputGroup-WBfGDV5F.js +32 -0
  45. package/dist/InputText-DmFCHVKa.js +134 -0
  46. package/dist/Introduction-DlnfG2qx.js +256 -0
  47. package/dist/JpAddress-D9wzTLlZ.js +329 -0
  48. package/dist/LandingLayout-pnTFiHf3.js +60 -0
  49. package/dist/LegalCompanyNameField-BOTkQIk6.js +138 -0
  50. package/dist/LegalRepresentativeDetailsPage-CnYE0t7-.js +55 -0
  51. package/dist/Link-B1s8_T7-.js +35 -0
  52. package/dist/List-BAzyC6sw.js +83 -0
  53. package/dist/ListItem-Coa9aGdN.js +69 -0
  54. package/dist/LoaderWrapper-YTarCjI9.js +42 -0
  55. package/dist/ManageIndividualComponent-D_RLxMfQ.js +46 -0
  56. package/dist/ManageTermsOfServiceComponent-VzhHb2cE.js +52 -0
  57. package/dist/ManageTransferInstrumentComponent-DevLP2pk.js +292 -0
  58. package/dist/MaskedInput-DEaltj9a.js +811 -0
  59. package/dist/MaybeModal-BcNIbjko.js +36 -0
  60. package/dist/Modal-sn2wYRN6.js +147 -0
  61. package/dist/Name-0TfRqG2t.js +81 -0
  62. package/dist/OnboardingDropinComponent-xFXjVEe0.js +2672 -0
  63. package/dist/PayoutDetailsDropin-popMzwBb.js +4972 -0
  64. package/dist/ProgressBar-B7gTQncy.js +47 -0
  65. package/dist/Radio-BMtxBpnn.js +39 -0
  66. package/dist/RadioGroup-B7fMJqmd.js +100 -0
  67. package/dist/RadioGroupCard-BqnCzi0b.js +152 -0
  68. package/dist/Review-DiV6r3gZ.js +84 -0
  69. package/dist/RootBusinessDetailsPage-BfQ4Pwdu.js +50 -0
  70. package/dist/RootBusinessLinesPage-CiZs8smP.js +1553 -0
  71. package/dist/RootIndividualDetailsPage-C92QtbjO.js +62 -0
  72. package/dist/Select-Cb77B0ji.js +868 -0
  73. package/dist/SignPCIComponent-B83OWndG.js +307 -0
  74. package/dist/SingpassSelection-Cc-ulD5h.js +132 -0
  75. package/dist/SoleProprietorshipPage-BYZkXtGh.js +50 -0
  76. package/dist/SourceOfFundsPage-DorVNEQ9.js +2162 -0
  77. package/dist/Spacer-BK3jDget.js +18 -0
  78. package/dist/StepProgressIndicator-DJ9FpFXO.js +78 -0
  79. package/dist/StoreProvider-qjyWZhxu.js +4845 -0
  80. package/dist/StructuredList-BNLhk_zV.js +61 -0
  81. package/dist/Summary-Bgq_Kcjg.js +220 -0
  82. package/dist/TaskVerificationStatus-DOZKjK09.js +129 -0
  83. package/dist/TaxInformationField-Dxx36AGr.js +3735 -0
  84. package/dist/TaxReportingDropin-tQf3UTtj.js +503 -0
  85. package/dist/TextArea-B4QNgWAM.js +103 -0
  86. package/dist/TileGroup-Dwrh9ZxO.js +203 -0
  87. package/dist/TrustDetailsPage-CKFlO2Ug.js +2187 -0
  88. package/dist/TrustMemberCompanyPage-BeeQ4TlK.js +68 -0
  89. package/dist/TrustMemberIndividualPage-cPDpa-cf.js +64 -0
  90. package/dist/TrustMemberRoleAndTypePage-C_isMpuS.js +1081 -0
  91. package/dist/TrustMembersOverview-CixBpWbT.js +439 -0
  92. package/dist/UnincorporatedPartnershipIndividualPage-BvVu1mfm.js +63 -0
  93. package/dist/UnincorporatedPartnershipMemberCompanyPage-HFF2AWev.js +71 -0
  94. package/dist/UnincorporatedPartnershipMemberRoleAndTypePage-DWRiDapM.js +292 -0
  95. package/dist/UnincorporatedPartnershipMembersOverview-BgxWBXQP.js +173 -0
  96. package/dist/VerificationErrorAlert-DjNgDy5_.js +60 -0
  97. package/dist/ViewVerificationStatusComponent-BZWz8bMd.js +181 -0
  98. package/dist/accountHolderUtils-dRujT8-D.js +66 -0
  99. package/dist/adyen-business-financing.js +13 -5
  100. package/dist/adyen-individual-configuration.js +8 -4
  101. package/dist/adyen-individual-status.js +5 -4
  102. package/dist/adyen-invited-decision-maker.js +87 -0
  103. package/dist/adyen-kyc-components.js +23 -21
  104. package/dist/adyen-onboarding.js +8 -4
  105. package/dist/adyen-terms-of-service-management.js +8 -4
  106. package/dist/adyen-terms-of-service-status.js +5 -4
  107. package/dist/adyen-transfer-instrument-configuration.js +8 -4
  108. package/dist/adyen-transfer-instrument-management.js +5 -4
  109. package/dist/adyen-verification-status.js +8 -4
  110. package/dist/arrow-right-BoqwUH_d.js +14 -0
  111. package/dist/bafinUtils-CyvEB6AP.js +80 -0
  112. package/dist/bag-BXVWLrwo.js +14 -0
  113. package/dist/bank-1GvaHPAZ.js +14 -0
  114. package/dist/bg-BG-6XzbmxcW.js +13 -0
  115. package/dist/bg-BG-C6kad3Qr.js +61 -0
  116. package/dist/bg-BG-CEipapl4.js +63 -0
  117. package/dist/bg-BG-CFuVZnaC.js +13 -0
  118. package/dist/bg-BG-DAqp35Dx.js +13 -0
  119. package/dist/bg-BG-DMNRRZZE.js +75 -0
  120. package/dist/bg-BG-DyX-yYYI.js +13 -0
  121. package/dist/bg-BG-K7feXvEc.js +38 -0
  122. package/dist/bg-BG-zZhDshGi.js +65 -0
  123. package/dist/bin-Ba-3ll8T.js +18 -0
  124. package/dist/business-lines-BAqTbnBw.js +135 -0
  125. package/dist/capital-9TKHySO7.js +17 -0
  126. package/dist/cash-stack-DwYu4xNy.js +22 -0
  127. package/dist/certificate-N2YFedpI.js +17 -0
  128. package/dist/checkmark-D9dGhGpG.js +14 -0
  129. package/dist/checkmark-circle-CFWClLQ6.js +20 -0
  130. package/dist/checkmark-circle-fill-DEB-tuGl.js +17 -0
  131. package/dist/checkmark-small-D3VNx2lo.js +14 -0
  132. package/dist/chevron-down-C7SUSYfl.js +14 -0
  133. package/dist/chevron-left-BXmd-S46.js +14 -0
  134. package/dist/chevron-right-jE6RwM2B.js +14 -0
  135. package/dist/chevron-up-BdfNcqzq.js +14 -0
  136. package/dist/circle-BJPTMCWB.js +17 -0
  137. package/dist/circle-small-filled-BuO8Vg8j.js +14 -0
  138. package/dist/clock-DAzaBRWk.js +20 -0
  139. package/dist/coins-DYdzG5e_.js +17 -0
  140. package/dist/commonValidators-C9eSN1bv.js +24 -0
  141. package/dist/company-types-value-D_mKv5PT.js +23 -0
  142. package/dist/contract-BfJb1t6M.js +14 -0
  143. package/dist/cross-CDS_eot4.js +14 -0
  144. package/dist/cross-circle-fill-C-EJ57Yn.js +17 -0
  145. package/dist/cross-circle-fill-small-DkPjsuBH.js +14 -0
  146. package/dist/cs-CZ-BD5bYeuJ.js +13 -0
  147. package/dist/cs-CZ-BHbWTH_v.js +63 -0
  148. package/dist/cs-CZ-C6vEQ8P9.js +13 -0
  149. package/dist/cs-CZ-CYQO0o5V.js +38 -0
  150. package/dist/cs-CZ-CYsR__kj.js +13 -0
  151. package/dist/cs-CZ-C_GFp3nV.js +61 -0
  152. package/dist/cs-CZ-Ck22NTT9.js +65 -0
  153. package/dist/cs-CZ-DXSMRqPu.js +75 -0
  154. package/dist/cs-CZ-Ke47w0bj.js +13 -0
  155. package/dist/currency-CrdnaaDu.js +35 -0
  156. package/dist/da-DK-B3Pg-MWO.js +13 -0
  157. package/dist/da-DK-C60mLiV1.js +61 -0
  158. package/dist/da-DK-CGWvmdkq.js +38 -0
  159. package/dist/da-DK-Cd5IQPv3.js +75 -0
  160. package/dist/da-DK-Cx4-hLO1.js +13 -0
  161. package/dist/da-DK-DQ4ZYSea.js +65 -0
  162. package/dist/da-DK-DzcTI92X.js +13 -0
  163. package/dist/da-DK-h8DYQ_Iq.js +13 -0
  164. package/dist/da-DK-vcVNQJbX.js +63 -0
  165. package/dist/datasetUtil-BHQp0-xL.js +58 -0
  166. package/dist/de-DE-C9NH2zMh.js +75 -0
  167. package/dist/de-DE-CL8D8vKZ.js +13 -0
  168. package/dist/de-DE-CWEW2yqg.js +63 -0
  169. package/dist/de-DE-CkbOZ6S_.js +65 -0
  170. package/dist/de-DE-Cvz1TGdB.js +61 -0
  171. package/dist/de-DE-DHDJhahG.js +38 -0
  172. package/dist/de-DE-LQE_LFFL.js +13 -0
  173. package/dist/de-DE-S6qDey1L.js +13 -0
  174. package/dist/de-DE-dPfrbCii.js +13 -0
  175. package/dist/debouncedInputEvent-Cv2S512Y.js +46 -0
  176. package/dist/decision-makers-group-DrvpnEqj.js +1944 -0
  177. package/dist/digital-wallet-Bx5YM1LY.js +46 -0
  178. package/dist/document-1-qlSTF558.js +14 -0
  179. package/dist/document-blurred-BiWap0xs.js +37 -0
  180. package/dist/document-cut-off-aQezqOif.js +32 -0
  181. package/dist/document-expired-BhBXaWWQ.js +38 -0
  182. package/dist/document-front-DYuhZGeQ.js +30 -0
  183. package/dist/document-person-CDbnTOdV.js +20 -0
  184. package/dist/download-BZQB1WkZ.js +17 -0
  185. package/dist/dropinUtils-CAGEedke.js +200 -0
  186. package/dist/edit-1-DAqtnOIx.js +14 -0
  187. package/dist/el-GR-B78b9rSH.js +63 -0
  188. package/dist/el-GR-DGbzdIL0.js +13 -0
  189. package/dist/el-GR-DHNlnOwf.js +38 -0
  190. package/dist/el-GR-DSlgFwLb.js +61 -0
  191. package/dist/el-GR-DTHQslLc.js +75 -0
  192. package/dist/el-GR-Dazirlmt.js +13 -0
  193. package/dist/el-GR-DoS_Va-n.js +13 -0
  194. package/dist/el-GR-DudORw4U.js +65 -0
  195. package/dist/el-GR-Dvv3-Qib.js +13 -0
  196. package/dist/en-US-AgtwE4Fl.js +63 -0
  197. package/dist/en-US-BSQXKu6d.js +54 -0
  198. package/dist/en-US-CjjPhkB5.js +65 -0
  199. package/dist/en-US-D1sB335h.js +61 -0
  200. package/dist/en-US-DLY20x1O.js +13 -0
  201. package/dist/en-US-DoiQhi0j.js +38 -0
  202. package/dist/en-US-G607HIyo.js +75 -0
  203. package/dist/en-US-cVpRgdC8.js +13 -0
  204. package/dist/es-ES--IvNed_Q.js +13 -0
  205. package/dist/es-ES-BAolMrZ0.js +65 -0
  206. package/dist/es-ES-BYl5-PFR.js +13 -0
  207. package/dist/es-ES-CDgjGql5.js +63 -0
  208. package/dist/es-ES-CxnsKEh4.js +38 -0
  209. package/dist/es-ES-DK-7qtDf.js +75 -0
  210. package/dist/es-ES-DdGmXdxO.js +13 -0
  211. package/dist/es-ES-Dj5-YMmZ.js +61 -0
  212. package/dist/es-ES-Vn4AcK9-.js +13 -0
  213. package/dist/et-EE-4fHYOoff.js +13 -0
  214. package/dist/et-EE-BOIrYrz9.js +65 -0
  215. package/dist/et-EE-BQixWUEV.js +38 -0
  216. package/dist/et-EE-BeZJ4Ub1.js +13 -0
  217. package/dist/et-EE-Bij5j-z5.js +61 -0
  218. package/dist/et-EE-CsTXSlnY.js +13 -0
  219. package/dist/et-EE-D0PMC4ie.js +63 -0
  220. package/dist/et-EE-D5SNtVsM.js +13 -0
  221. package/dist/et-EE-DNC4hcxm.js +75 -0
  222. package/dist/external-link-Cg6pJaSJ.js +14 -0
  223. package/dist/fi-FI-57-xkioo.js +38 -0
  224. package/dist/fi-FI-B2xHiSHi.js +61 -0
  225. package/dist/fi-FI-BJLU1JHw.js +75 -0
  226. package/dist/fi-FI-BUixKfXH.js +13 -0
  227. package/dist/fi-FI-CIYa9SyS.js +13 -0
  228. package/dist/fi-FI-CWIaV6Iz.js +13 -0
  229. package/dist/fi-FI-CsZlDJFb.js +63 -0
  230. package/dist/fi-FI-D8WrLxxq.js +65 -0
  231. package/dist/fi-FI-DFxljML-.js +13 -0
  232. package/dist/fieldConfigurations-BUT9DTUH.js +21 -0
  233. package/dist/filterProblemsByTaskForms-Cz7iQtms.js +30 -0
  234. package/dist/form-rules-DhbF2mY4.js +13 -0
  235. package/dist/formUtils-BYIcPMjp.js +107 -0
  236. package/dist/fr-FR-B2je0smB.js +75 -0
  237. package/dist/fr-FR-BM-qNLci.js +13 -0
  238. package/dist/fr-FR-Beljeilc.js +65 -0
  239. package/dist/fr-FR-BxiX8Zfi.js +38 -0
  240. package/dist/fr-FR-CCb4Oux7.js +13 -0
  241. package/dist/fr-FR-CNQtWSXx.js +61 -0
  242. package/dist/fr-FR-DPehHVb6.js +13 -0
  243. package/dist/fr-FR-VoxPkXSc.js +63 -0
  244. package/dist/fr-FR-l5z31r7i.js +13 -0
  245. package/dist/funds-in-CInoUdmG.js +21 -0
  246. package/dist/getName-BIUEu4TI.js +41 -0
  247. package/dist/getProblemsForEntity-BFrbrf8n.js +24 -0
  248. package/dist/getProps-Cc3J2-z9.js +148 -0
  249. package/dist/getTrustedFields-C5-mXl-l.js +64 -0
  250. package/dist/gift-omNInZeB.js +14 -0
  251. package/dist/graph-DunG_uu1.js +21 -0
  252. package/dist/graph-up-BZze4i6m.js +20 -0
  253. package/dist/headquarter-BhpSibFO.js +21 -0
  254. package/dist/hotel-Cp7VgGCJ.js +22 -0
  255. package/dist/house-BhyBQdR3.js +21 -0
  256. package/dist/hr-HR-B6U5Rzzw.js +61 -0
  257. package/dist/hr-HR-BAI0N9bo.js +13 -0
  258. package/dist/hr-HR-BF74vdPD.js +13 -0
  259. package/dist/hr-HR-Bjx-KdVs.js +13 -0
  260. package/dist/hr-HR-BtowKWUi.js +13 -0
  261. package/dist/hr-HR-BynZTNSB.js +38 -0
  262. package/dist/hr-HR-C0NLgF1r.js +75 -0
  263. package/dist/hr-HR-CbdP2tk-.js +63 -0
  264. package/dist/hr-HR-lIHN6Yl2.js +65 -0
  265. package/dist/hu-HU-B-lUkFnQ.js +13 -0
  266. package/dist/hu-HU-BLLoj5CX.js +61 -0
  267. package/dist/hu-HU-BpNDP1I8.js +13 -0
  268. package/dist/hu-HU-BtRIDozk.js +38 -0
  269. package/dist/hu-HU-CWdwNCev.js +65 -0
  270. package/dist/hu-HU-DU-5ujQK.js +75 -0
  271. package/dist/hu-HU-DYhMVR_c.js +13 -0
  272. package/dist/hu-HU-MHIPehPS.js +13 -0
  273. package/dist/hu-HU-pFpTvMiD.js +63 -0
  274. package/dist/id-blurred-B5lHEP8M.js +59 -0
  275. package/dist/id-cut-off-Ba1FRzKO.js +55 -0
  276. package/dist/id-front-CpNWN6nG.js +52 -0
  277. package/dist/id-glare-DgCQON8k.js +49 -0
  278. package/dist/iframeWidget-7rZG5Ja-.js +234 -0
  279. package/dist/image-CmB0ioUM.js +17 -0
  280. package/dist/info-Bb_-xIEK.js +21 -0
  281. package/dist/info-filled-CK8LB339.js +17 -0
  282. package/dist/instant-verification-UrnuHTYn.js +40 -0
  283. package/dist/isEmpty-DhGVlmpA.js +23 -0
  284. package/dist/isNewEntity-7Vw_eQBr.js +13 -0
  285. package/dist/it-IT-5a7NHVFo.js +65 -0
  286. package/dist/it-IT-BAvmkEF8.js +13 -0
  287. package/dist/it-IT-BRO0Hf5X.js +13 -0
  288. package/dist/it-IT-Cr20JO4o.js +61 -0
  289. package/dist/it-IT-D63gRTDc.js +13 -0
  290. package/dist/it-IT-DOBp2-MP.js +13 -0
  291. package/dist/it-IT-DZjw9LNC.js +63 -0
  292. package/dist/it-IT-Dhwa9Ecj.js +75 -0
  293. package/dist/it-IT-masgjk9F.js +38 -0
  294. package/dist/ja-JP-B3Y0VVpN.js +152 -0
  295. package/dist/ja-JP-BZb5ndp9.js +75 -0
  296. package/dist/ja-JP-BeeuQ_LL.js +61 -0
  297. package/dist/ja-JP-BqluCflj.js +63 -0
  298. package/dist/ja-JP-CaUe8KW7.js +27 -0
  299. package/dist/ja-JP-DL0IjTzn.js +13 -0
  300. package/dist/ja-JP-DSvZhFNY.js +65 -0
  301. package/dist/ja-JP-GX3l4yqn.js +125 -0
  302. package/dist/ja-JP-g6VOUGXZ.js +136 -0
  303. package/dist/ja-JP-vv3-YsHU.js +38 -0
  304. package/dist/japanSupportUtils-vwyJ0OrD.js +16 -0
  305. package/dist/jpAddressSchema-DEOyz9Yo.js +26 -0
  306. package/dist/localizeDateString-BjYXf_CF.js +27 -0
  307. package/dist/location-itJfxrDQ.js +17 -0
  308. package/dist/lt-LT-0WbfHH_o.js +61 -0
  309. package/dist/lt-LT-2BMif2Bk.js +38 -0
  310. package/dist/lt-LT-BX8dOAzK.js +13 -0
  311. package/dist/lt-LT-C8n1GZoU.js +75 -0
  312. package/dist/lt-LT-CXw4ywLM.js +63 -0
  313. package/dist/lt-LT-CgalYpUh.js +65 -0
  314. package/dist/lt-LT-DDs3ngzd.js +13 -0
  315. package/dist/lt-LT-DpszrZ9m.js +13 -0
  316. package/dist/lt-LT-WRulV980.js +13 -0
  317. package/dist/lv-LV-B3IqVQos.js +13 -0
  318. package/dist/lv-LV-BZN4-Xat.js +75 -0
  319. package/dist/lv-LV-BuuUUumH.js +61 -0
  320. package/dist/lv-LV-C9Dhkruv.js +13 -0
  321. package/dist/lv-LV-CHdEDRVO.js +38 -0
  322. package/dist/lv-LV-CmB2-IO5.js +13 -0
  323. package/dist/lv-LV-DYqBaW2-.js +63 -0
  324. package/dist/lv-LV-aAd9SEqx.js +65 -0
  325. package/dist/lv-LV-dA8yYdKe.js +13 -0
  326. package/dist/mail-VHTlAusn.js +14 -0
  327. package/dist/manual-verification-BO8zgAYT.js +41 -0
  328. package/dist/mapExistingFile-1MUQJf2c.js +230 -0
  329. package/dist/mapJpAddressSchemaToAddressLocalizations-BCWDaJEu.js +162 -0
  330. package/dist/mapLegalEntityToIndividualSchema-D7Eku9KI.js +206 -0
  331. package/dist/mapTransferInstrumentToPayoutAccount-BYNYjRzc.js +34 -0
  332. package/dist/minus-circle-filled-ZhtJ0GD3.js +17 -0
  333. package/dist/nl-NL-B0fvINJj.js +75 -0
  334. package/dist/nl-NL-CmURERx_.js +65 -0
  335. package/dist/nl-NL-CnvvqAEg.js +13 -0
  336. package/dist/nl-NL-D1b5RUJ0.js +38 -0
  337. package/dist/nl-NL-DV4NqPVW.js +13 -0
  338. package/dist/nl-NL-KQ6bciOb.js +13 -0
  339. package/dist/nl-NL-KsfqCp2v.js +61 -0
  340. package/dist/nl-NL-SjOGmGk5.js +13 -0
  341. package/dist/nl-NL-lcNM54vV.js +63 -0
  342. package/dist/no-NO-B9618F4_.js +13 -0
  343. package/dist/no-NO-BAWVf0GX.js +13 -0
  344. package/dist/no-NO-BdG6WnpB.js +61 -0
  345. package/dist/no-NO-CIKbQbKT.js +13 -0
  346. package/dist/no-NO-CTrVITNu.js +63 -0
  347. package/dist/no-NO-Dkh4SWbB.js +38 -0
  348. package/dist/no-NO-Ds3VioxT.js +13 -0
  349. package/dist/no-NO-Jw7Gae-a.js +75 -0
  350. package/dist/no-NO-qyqWODMp.js +65 -0
  351. package/dist/onfido-logo-BSkKPH10.js +14 -0
  352. package/dist/options-horizontal-GuXvLvV3.js +18 -0
  353. package/dist/partner-QD27Vy4w.js +18 -0
  354. package/dist/passport-blurred-CVG493IJ.js +59 -0
  355. package/dist/passport-cut-off-COzA_TmB.js +56 -0
  356. package/dist/passport-front-WJleLixT.js +52 -0
  357. package/dist/passport-front-green-CZVkCa1n.js +232 -0
  358. package/dist/passport-glare-BP5WnJZj.js +50 -0
  359. package/dist/patternValidators-Ddoxs0Q5.js +83 -0
  360. package/dist/pay-by-link-plane-BpY8Q6-B.js +22 -0
  361. package/dist/payout-DtB68BcZ.js +20 -0
  362. package/dist/payout-verification-instant-BzpfOQLD.js +41 -0
  363. package/dist/payout-verification-manual-gNEoeZkV.js +90 -0
  364. package/dist/person-IVZG3t3_.js +17 -0
  365. package/dist/pl-PL-BgbxWHGE.js +13 -0
  366. package/dist/pl-PL-BkGihn5Q.js +38 -0
  367. package/dist/pl-PL-Bmaq3IC3.js +75 -0
  368. package/dist/pl-PL-CErRPlR2.js +63 -0
  369. package/dist/pl-PL-CTOkaDMG.js +13 -0
  370. package/dist/pl-PL-DEMxxz7h.js +13 -0
  371. package/dist/pl-PL-DW9eaUml.js +61 -0
  372. package/dist/pl-PL-DqzUSnFK.js +13 -0
  373. package/dist/pl-PL-q9azN24o.js +65 -0
  374. package/dist/plaid-logo-FsZ7kfL-.js +14 -0
  375. package/dist/plus-DiALAL8-.js +14 -0
  376. package/dist/plus-circle-filled-BzHtTqEN.js +17 -0
  377. package/dist/process-field-configurations-BgkGx8kj.js +324 -0
  378. package/dist/pt-BR-BRdIEO2O.js +38 -0
  379. package/dist/pt-BR-BaTE6BB_.js +75 -0
  380. package/dist/pt-BR-BdfWE-a1.js +61 -0
  381. package/dist/pt-BR-BfDe_8iW.js +13 -0
  382. package/dist/pt-BR-BxoOF8jB.js +65 -0
  383. package/dist/pt-BR-CLUsrQAl.js +13 -0
  384. package/dist/pt-BR-Ct4s4jXV.js +13 -0
  385. package/dist/pt-BR-DA44Wgbt.js +63 -0
  386. package/dist/pt-BR-zuqB_CBf.js +13 -0
  387. package/dist/pt-PT-BLRgiqFj.js +13 -0
  388. package/dist/pt-PT-BfL7qUzo.js +38 -0
  389. package/dist/pt-PT-CFY1O_K0.js +13 -0
  390. package/dist/pt-PT-DBEsmXQX.js +13 -0
  391. package/dist/pt-PT-F1qPZJ2c.js +13 -0
  392. package/dist/pt-PT-PIiikho9.js +63 -0
  393. package/dist/pt-PT-c0ap84_F.js +75 -0
  394. package/dist/pt-PT-ej54BPbB.js +61 -0
  395. package/dist/pt-PT-pIChDwiI.js +65 -0
  396. package/dist/recurring-DKNs9K3x.js +17 -0
  397. package/dist/reporting-D5ABpLO_.js +16 -0
  398. package/dist/resolveEnvironment-BOoObZUD.js +84 -0
  399. package/dist/revenue-accelerate-D7Sp0V4a.js +17 -0
  400. package/dist/review-D4TUjcWF.js +17 -0
  401. package/dist/ro-RO-0vx6ZLWV.js +13 -0
  402. package/dist/ro-RO-1ZFmLikG.js +61 -0
  403. package/dist/ro-RO-7CJ4F5iB.js +13 -0
  404. package/dist/ro-RO-BPOHV6Wp.js +75 -0
  405. package/dist/ro-RO-BeA_YyJ8.js +13 -0
  406. package/dist/ro-RO-Bv9hZxwD.js +63 -0
  407. package/dist/ro-RO-C00Ig8CL.js +13 -0
  408. package/dist/ro-RO-C2yBVFht.js +38 -0
  409. package/dist/ro-RO-DRsaNX9j.js +65 -0
  410. package/dist/roleMetadata-45H_XXPF.js +66 -0
  411. package/dist/save-BfqO2JBI.js +14 -0
  412. package/dist/search-Cmzbf5zI.js +17 -0
  413. package/dist/show-IdbU1C6P.js +17 -0
  414. package/dist/singpass-logo-wY4xsmTX.js +17 -0
  415. package/dist/singpass-verification-instant-JCqTr7Mv.js +40 -0
  416. package/dist/singpass-verification-manual-DQ7XW6R3.js +34 -0
  417. package/dist/sk-SK-3_SoEn6P.js +75 -0
  418. package/dist/sk-SK-7-enbO1N.js +65 -0
  419. package/dist/sk-SK-BbJWayDh.js +13 -0
  420. package/dist/sk-SK-C74EF23u.js +38 -0
  421. package/dist/sk-SK-ChVwlbp0.js +63 -0
  422. package/dist/sk-SK-Dm-pif_7.js +61 -0
  423. package/dist/sk-SK-DuLm2CVx.js +13 -0
  424. package/dist/sk-SK-DubwJifw.js +13 -0
  425. package/dist/sk-SK-Og9MJXpR.js +13 -0
  426. package/dist/sl-SI-59OQIZ3f.js +13 -0
  427. package/dist/sl-SI-BAIm-qBe.js +13 -0
  428. package/dist/sl-SI-CoI7iOco.js +13 -0
  429. package/dist/sl-SI-CvUzNn9Z.js +38 -0
  430. package/dist/sl-SI-DTvJT7fC.js +65 -0
  431. package/dist/sl-SI-DZHePXbK.js +63 -0
  432. package/dist/sl-SI-DbfswGh0.js +75 -0
  433. package/dist/sl-SI-HO7231cu.js +61 -0
  434. package/dist/sl-SI-hxwQIw_i.js +13 -0
  435. package/dist/solution-payments-DpyE_sdS.js +14 -0
  436. package/dist/store-Btc4GcmU.js +14 -0
  437. package/dist/style.css +2846 -2814
  438. package/dist/styles-CLV89_hH.js +2846 -2814
  439. package/dist/summaryItem-CAQCQSkt.js +18 -0
  440. package/dist/sv-SE-0PQ-U1u6.js +13 -0
  441. package/dist/sv-SE-BZNey_8S.js +13 -0
  442. package/dist/sv-SE-BcJ8p_Tx.js +61 -0
  443. package/dist/sv-SE-BsLkPEzn.js +38 -0
  444. package/dist/sv-SE-CQWBP7n1.js +13 -0
  445. package/dist/sv-SE-ChoPzG_G.js +13 -0
  446. package/dist/sv-SE-D_Efxy3s.js +75 -0
  447. package/dist/sv-SE-Dq56vGlB.js +63 -0
  448. package/dist/sv-SE-N-Hqwcjq.js +65 -0
  449. package/dist/tax-reporting-graph-hgoilCHZ.js +504 -0
  450. package/dist/terminal-1-D1pwXCoi.js +18 -0
  451. package/dist/tink-logo-DDyjz5eJ.js +17 -0
  452. package/dist/types/api/address/useAddressCleanse.d.ts +1 -1
  453. package/dist/types/api/address/useRetrieveAddress.d.ts +1 -1
  454. package/dist/types/api/address/useRetrieveFromPostcodeJp.d.ts +1 -1
  455. package/dist/types/api/address/useSearchAddress.d.ts +1 -2
  456. package/dist/types/api/businessLines/businessLines.types.d.ts +6 -1
  457. package/dist/types/api/businessLines/useBusinessLines.d.ts +3 -3
  458. package/dist/types/api/businessLines/useCreateBusinessLine.d.ts +2 -2
  459. package/dist/types/api/businessLines/useDeleteBusinessLine.d.ts +2 -2
  460. package/dist/types/api/businessLines/useUpdateBusinessLines.d.ts +2 -2
  461. package/dist/types/api/businessLines/useUpdateSourceOfFunds.d.ts +2 -2
  462. package/dist/types/api/check/useCheck.d.ts +1 -2
  463. package/dist/types/api/companyDataSet/companyDataset.types.d.ts +5 -0
  464. package/dist/types/api/companyDataSet/handleCompanyDataset.d.ts +6 -3
  465. package/dist/types/api/companyDataSet/useClearCompanyData.d.ts +2 -2
  466. package/dist/types/api/companySearch/companySearch.types.d.ts +8 -0
  467. package/dist/types/api/companySearch/useCompanySearch.d.ts +9 -4
  468. package/dist/types/api/companySelection/companySelection.types.d.ts +3 -3
  469. package/dist/types/api/companySelection/useCompanySelection.d.ts +2 -18
  470. package/dist/types/api/configurations/useScenarios.d.ts +3 -161
  471. package/dist/types/api/configurations/useSupportedCountries.d.ts +1 -1
  472. package/dist/types/api/configurations/useTaskTypes.d.ts +1 -1
  473. package/dist/types/api/configurations/useVersionConfiguration.d.ts +1 -1
  474. package/dist/types/api/createLegalEntity/useCreateLegalEntity.d.ts +2 -2
  475. package/dist/types/api/datasets/useLegalForms.d.ts +1 -1
  476. package/dist/types/api/datasets/useNaceCodes.d.ts +1 -1
  477. package/dist/types/api/datasets/useSourceOfFundsTypes.d.ts +1 -1
  478. package/dist/types/api/documentValidation/useDocumentValidate.d.ts +2 -4
  479. package/dist/types/api/documents/useCreateDocument.d.ts +2 -2
  480. package/dist/types/api/documents/useDeleteDocument.d.ts +2 -2
  481. package/dist/types/api/documents/useDocument.d.ts +2 -2
  482. package/dist/types/api/documents/useDocuments.d.ts +4 -0
  483. package/dist/types/api/documents/useUpdateDocument.d.ts +2 -2
  484. package/dist/types/api/entityVerifications/useVerifyIdNumber.d.ts +2 -2
  485. package/dist/types/api/idNowProvider/useIdNowProvider.d.ts +3 -4
  486. package/dist/types/api/idVerificationProviders/idVerificationStartCheck.d.ts +2 -2
  487. package/dist/types/api/idVerificationProviders/useExtractDocumentInformation.d.ts +2 -2
  488. package/dist/types/api/idVerificationProviders/useIdVerificationToken.d.ts +3 -3
  489. package/dist/types/api/industryCodes/useIndustryCodes.d.ts +1 -2
  490. package/dist/types/api/legalEntity/useConfirmReview.d.ts +2 -2
  491. package/dist/types/api/legalEntity/useLegalEntity.d.ts +8 -389
  492. package/dist/types/api/legalEntity/useUpdateLegalEntity.d.ts +5 -5
  493. package/dist/types/api/onboardingStatus/useGenerateOnboardingLink.d.ts +2 -2
  494. package/dist/types/api/onboardingStatus/useOnboardingStatus.d.ts +1 -1
  495. package/dist/types/api/openId/useOpenIdAuthorizationLink.d.ts +1 -2
  496. package/dist/types/api/pci/usePciQuestionnaireList.d.ts +1 -1
  497. package/dist/types/api/pci/usePciStatus.d.ts +1 -1
  498. package/dist/types/api/pci/usePciTemplate.d.ts +1 -1
  499. package/dist/types/api/pci/useSignPci.d.ts +2 -3
  500. package/dist/types/api/providersConfiguration/useProviderStatus.d.ts +1 -1
  501. package/dist/types/api/queryKeys.d.ts +4 -2
  502. package/dist/types/api/taskStatus/useTaskStatus.d.ts +2 -2
  503. package/dist/types/api/taxClassification/useTaxClassification.d.ts +1 -1
  504. package/dist/types/api/termsOfService/useAcceptTermsOfService.d.ts +2 -3
  505. package/dist/types/api/termsOfService/useAcceptedTermsOfService.d.ts +1 -7
  506. package/dist/types/api/termsOfService/useTermsOfService.d.ts +1 -1
  507. package/dist/types/api/termsOfService/useTermsOfServiceAcceptanceInfos.d.ts +1 -1
  508. package/dist/types/api/termsOfService/useTermsOfServiceStatus.d.ts +1 -1
  509. package/dist/types/api/tinVerification/useVerifyTin.d.ts +1 -1
  510. package/dist/types/api/transferInstruments/useBankVerificationProviders.d.ts +1 -1
  511. package/dist/types/api/transferInstruments/useCreateTrustedTransferInstrument.d.ts +1 -1
  512. package/dist/types/api/transferInstruments/useDeleteTransferInstrument.d.ts +1 -1
  513. package/dist/types/api/transferInstruments/useHandleBankVerificationError.d.ts +1 -1
  514. package/dist/types/api/transferInstruments/useTransferInstrument.d.ts +2 -2
  515. package/dist/types/api/transferInstruments/useTransferInstruments.d.ts +1 -1
  516. package/dist/types/api/transferInstruments/useUpdateTransferInstrument.d.ts +1 -1
  517. package/dist/types/api/transferInstruments/useUpdateTrustedTransferInstrument.d.ts +15 -0
  518. package/dist/types/api/types.d.ts +3 -2
  519. package/dist/types/api/uiAnalytics/useAnalyticsSession.d.ts +2 -2
  520. package/dist/types/api/uiAnalytics/usePushAnalyticEvent.d.ts +2 -2
  521. package/dist/types/api/validation/useValidateAccountIdentification.d.ts +2 -3
  522. package/dist/types/api/validation/useValidatePhoneNumber.d.ts +1 -1
  523. package/dist/types/components/Apps/tasks/TaskList/utils.d.ts +4 -0
  524. package/dist/types/components/BankAccount/forms/BankDocument/BankDocumentClassification.d.ts +1 -2
  525. package/dist/types/components/BankAccount/forms/BankDocument/types.d.ts +0 -1
  526. package/dist/types/components/BankAccount/forms/BankVerification/types.d.ts +1 -0
  527. package/dist/types/components/BankAccount/forms/BankVerification/verification/overlay/BankVerificationOverlay.d.ts +1 -1
  528. package/dist/types/components/BankAccount/forms/PayoutDetails/rules.d.ts +2 -2
  529. package/dist/types/components/BankAccount/forms/PayoutDetails/types.d.ts +0 -1
  530. package/dist/types/components/BankAccount/mapping/payoutKeyMappings.d.ts +439 -439
  531. package/dist/types/components/BankAccount/pages/PayoutDetailsPage.d.ts +3 -3
  532. package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/PayoutDetailsDropin.d.ts +1 -1
  533. package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/utils.d.ts +1 -1
  534. package/dist/types/components/BankAccount/utils/payoutAccountUtil.d.ts +1 -1
  535. package/dist/types/components/Business/forms/AdditionalInformation/AdditionalInformation.d.ts +1 -4
  536. package/dist/types/components/Business/forms/AdditionalInformation/VerifiedBusinessCard/VerifiedBusinessCard.d.ts +8 -0
  537. package/dist/types/components/Business/forms/AdditionalInformation/types.d.ts +4 -6
  538. package/dist/types/components/Business/forms/AdditionalInformation/utils.d.ts +2 -5
  539. package/dist/types/components/Business/forms/BasicInformation/BasicInformation.d.ts +1 -4
  540. package/dist/types/components/Business/forms/BasicInformation/types.d.ts +5 -18
  541. package/dist/types/components/Business/forms/BusinessDetails/form-ids.d.ts +2 -0
  542. package/dist/types/components/Business/forms/BusinessDetails/forms.d.ts +12 -46
  543. package/dist/types/components/Business/forms/BusinessDetails/types.d.ts +2 -22
  544. package/dist/types/components/Business/forms/BusinessSelection/BusinessInformationCard/BusinessInformationCard.d.ts +8 -9
  545. package/dist/types/components/Business/forms/BusinessSelection/BusinessSelection.d.ts +13 -3
  546. package/dist/types/components/Business/forms/BusinessSelection/types.d.ts +0 -11
  547. package/dist/types/components/Business/forms/CompanyStructure/CompanyStructure.d.ts +3 -4
  548. package/dist/types/components/Business/forms/CompanyStructure/types.d.ts +0 -6
  549. package/dist/types/components/Business/forms/FinancialInformation/formatFinancialInformationSummary.d.ts +4 -0
  550. package/dist/types/components/Business/forms/FinancialInformation/mapping/mapFinancialInformationToFinancialReport.d.ts +3 -0
  551. package/dist/types/components/Business/forms/FinancialInformation/mapping/mapFinancialReportsToFinancialInformation.d.ts +3 -0
  552. package/dist/types/components/Business/forms/ProofOfDirectorDocument/ProofOfDirectorDocument.d.ts +1 -1
  553. package/dist/types/components/Business/forms/ProofOfDirectorDocument/types.d.ts +0 -3
  554. package/dist/types/components/Business/forms/ProofOfOwnershipDocument/ProofOfOwnershipDocument.d.ts +1 -1
  555. package/dist/types/components/Business/forms/ProofOfOwnershipDocument/types.d.ts +0 -3
  556. package/dist/types/components/Business/forms/ProofOfSignatoryDocument/ProofOfSignatoryDocument.d.ts +1 -1
  557. package/dist/types/components/Business/forms/ProofOfSignatoryDocument/types.d.ts +0 -3
  558. package/dist/types/components/Business/forms/RegistrationDocument/RegistrationDocument.d.ts +1 -1
  559. package/dist/types/components/Business/forms/RegistrationDocument/types.d.ts +1 -3
  560. package/dist/types/components/Business/forms/TaxDocument/TaxDocument.d.ts +1 -1
  561. package/dist/types/components/Business/forms/TaxDocument/types.d.ts +1 -3
  562. package/dist/types/components/Business/forms/forms.types.d.ts +0 -3
  563. package/dist/types/components/Business/forms/rules.d.ts +10 -10
  564. package/dist/types/components/Business/mapping/businessDetails/businessBankAccountTaxIdUtils.d.ts +7 -0
  565. package/dist/types/components/Business/mapping/businessDetails/mapBusinessDetailsSchemaToLegalEntity.d.ts +4 -2
  566. package/dist/types/components/Business/mapping/businessDetails/mapLegalEntityToBusinessDetailsSchema.d.ts +8 -2
  567. package/dist/types/components/Business/pages/RootBusinessDetailsPage.d.ts +1 -2
  568. package/dist/types/components/Business/tasks/BusinessDetailsDropin/BusinessDetailsDropin.d.ts +3 -3
  569. package/dist/types/components/Business/tasks/BusinessDetailsDropin/businessDetailsStore.d.ts +0 -2
  570. package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +14 -6
  571. package/dist/types/components/Business/tasks/BusinessDetailsDropin/utils.d.ts +24 -9
  572. package/dist/types/components/Business/utils/applyVerifiedBusinessData.d.ts +1 -1
  573. package/dist/types/components/Business/utils/companyUtil.d.ts +0 -10
  574. package/dist/types/components/Business/utils/formatDataForSummary.d.ts +5 -0
  575. package/dist/types/components/Business/utils/submit.d.ts +2 -0
  576. package/dist/types/components/Business/utils/useBusinessDetailsData.d.ts +21 -0
  577. package/dist/types/components/BusinessLines/constants.d.ts +10 -0
  578. package/dist/types/components/BusinessLines/fields/Carousel/Carousel.d.ts +10 -10
  579. package/dist/types/components/BusinessLines/fields/SctaField/SctaField.d.ts +2 -0
  580. package/dist/types/components/BusinessLines/fields/SctaField/types.d.ts +6 -0
  581. package/dist/types/components/BusinessLines/fields/WebDataField/types.d.ts +1 -1
  582. package/dist/types/components/BusinessLines/forms/IndustryCodesForm/IndustryCodesForm.d.ts +1 -1
  583. package/dist/types/components/BusinessLines/forms/SctaForm/SctaForm.d.ts +2 -0
  584. package/dist/types/components/BusinessLines/forms/SctaForm/SctaInfoModal.d.ts +3 -0
  585. package/dist/types/components/BusinessLines/forms/SctaForm/types.d.ts +2 -0
  586. package/dist/types/components/BusinessLines/forms/rules.d.ts +2 -1
  587. package/dist/types/components/BusinessLines/pages/RootBusinessLinesPage.d.ts +1 -2
  588. package/dist/types/components/BusinessLines/tasks/BusinessLines/BusinessLineModal/BusinessLineModal.d.ts +2 -1
  589. package/dist/types/components/BusinessLines/tasks/BusinessLines/BusinessLinesDropin.d.ts +1 -1
  590. package/dist/types/components/BusinessLines/tasks/types.d.ts +4 -0
  591. package/dist/types/components/BusinessLines/tasks/utils.d.ts +26 -4
  592. package/dist/types/components/BusinessLines/tasks/validate.d.ts +2 -0
  593. package/dist/types/components/Contract/tasks/ServiceAgreementDropin/ServiceAgreementDropin.d.ts +1 -1
  594. package/dist/types/components/Contract/tasks/ServiceAgreementDropin/types.d.ts +3 -3
  595. package/dist/types/components/EFP/fields/LegalFormField/LegalFormField.d.ts +1 -1
  596. package/dist/types/components/EFP/fields/NaceCodeField/NaceCodeField.d.ts +1 -1
  597. package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +5812 -582
  598. package/dist/types/components/EFP/mapping/mapBusinessFinancingToLegalEntity.d.ts +3 -2
  599. package/dist/types/components/EFP/mapping/mapLegalEntityToBusinessFinancing.d.ts +1 -1
  600. package/dist/types/components/EFP/pages/BusinessFinancingPage.d.ts +1 -2
  601. package/dist/types/components/EFP/pages/SourceOfFundsPage.d.ts +1 -2
  602. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/AdditionalFieldsForBusinessFinancingSoleProprietor.d.ts +2 -0
  603. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingSoleProprietorPersonalInformation.d.ts +4 -0
  604. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/types.d.ts +28 -0
  605. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/utils.d.ts +15 -4
  606. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/validate.d.ts +10 -1
  607. package/dist/types/components/EFP/tasks/SourceOfFundsDropin/types.d.ts +20 -21
  608. package/dist/types/components/EFP/tasks/SourceOfFundsDropin/utils.d.ts +6 -4
  609. package/dist/types/components/EFP/tasks/TaxReportingDropin/utils.d.ts +1 -2
  610. package/dist/types/components/EmbeddedDropins/BusinessFinancingComponent/utils.d.ts +2 -1
  611. package/dist/types/components/EmbeddedDropins/CreateIndividualComponent/CreateIndividualComponent.d.ts +2 -2
  612. package/dist/types/components/EmbeddedDropins/InvitedDecisionMakerComponent/InvitedDecisionMakerComponent.d.ts +4 -0
  613. package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/DropinComposer.d.ts +1 -1
  614. package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/RouterDropinComposer.d.ts +4 -0
  615. package/dist/types/components/Individual/fields/DriversLicense/DriversLicense.types.d.ts +1 -1
  616. package/dist/types/components/Individual/fields/IdentityNumber/fieldConfig.d.ts +4 -3
  617. package/dist/types/components/Individual/forms/AdditionalPersonalDetails/AdditionalPersonalDetails.types.d.ts +29 -0
  618. package/dist/types/components/Individual/forms/AdditionalPersonalDetails/Identity/Identity.types.d.ts +13 -0
  619. package/dist/types/components/Individual/forms/AdditionalPersonalDetails/Identity/TypeOfIdentity/index.d.ts +11 -0
  620. package/dist/types/components/Individual/forms/AdditionalPersonalDetails/Identity/validate.d.ts +4 -0
  621. package/dist/types/components/Individual/forms/AdditionalPersonalDetails/validate.d.ts +22 -0
  622. package/dist/types/components/Individual/forms/BasicDetails/BasicDetails.types.d.ts +22 -0
  623. package/dist/types/components/Individual/forms/BasicDetails/validate.d.ts +8 -0
  624. package/dist/types/components/Individual/forms/DataConflictsModal/ConflictRow.d.ts +12 -0
  625. package/dist/types/components/Individual/forms/DataConflictsModal/DataConflictsModal.d.ts +24 -0
  626. package/dist/types/components/Individual/forms/IdDocumentUpload/types.d.ts +43 -0
  627. package/dist/types/components/Individual/forms/IdDocumentUpload/utils.d.ts +3 -0
  628. package/dist/types/components/Individual/forms/IdNowVerificationModal/isIdNowModalOpen.d.ts +18 -0
  629. package/dist/types/components/Individual/forms/IdVerificationMethod/IdVerificationMethod.types.d.ts +21 -0
  630. package/dist/types/components/Individual/forms/IdVerificationMethod/OnfidoVerificationModal/OnfidoVerificationModal.d.ts +7 -0
  631. package/dist/types/components/Individual/forms/IdVerificationMethod/UploadedDocument/UploadedDocument.d.ts +7 -0
  632. package/dist/types/components/Individual/forms/IdVerificationMethod/individualOnfidoConflictsSchema.d.ts +46 -0
  633. package/dist/types/components/Individual/forms/IdVerificationMethod/mapExtractionResultToSchema.d.ts +4 -0
  634. package/dist/types/components/Individual/forms/IdVerificationMethod/validateExtractionResult.d.ts +12 -0
  635. package/dist/types/components/Individual/forms/Individual.d.ts +56 -0
  636. package/dist/types/components/Individual/forms/Individual.rules.d.ts +45 -0
  637. package/dist/types/components/Individual/forms/Individual.types.d.ts +60 -0
  638. package/dist/types/components/Individual/forms/ProofOfRelationship/types.d.ts +14 -0
  639. package/dist/types/components/Individual/forms/ProofOfResidency/types.d.ts +39 -0
  640. package/dist/types/components/Individual/forms/SignatoryQuestionnaire/SignatoryQuestionnaire.types.d.ts +6 -0
  641. package/dist/types/components/Individual/forms/UboQuestionnaire/UboQuestionnaire.types.d.ts +13 -0
  642. package/dist/types/components/Individual/forms/UboQuestionnaire/UboQuestionnaireModalContent.d.ts +7 -0
  643. package/dist/types/components/Individual/forms/form-ids.d.ts +2 -0
  644. package/dist/types/components/Individual/helpers/bafinUtils.d.ts +3 -2
  645. package/dist/types/components/Individual/helpers/mandateIdVerificationForMotionCapture.d.ts +2 -3
  646. package/dist/types/components/Individual/helpers/roleUtils.d.ts +1 -1
  647. package/dist/types/components/Individual/mapping/adjustOnfidoIdentificationData.d.ts +1 -1
  648. package/dist/types/components/Individual/mapping/getOnfidoIdentityTypeToApiIdentityTypeMap.d.ts +1 -1
  649. package/dist/types/components/Individual/mapping/individualKeyMappings.d.ts +6 -12
  650. package/dist/types/components/Individual/mapping/mapApiDocumentToIndividualDocuments.d.ts +2 -2
  651. package/dist/types/components/Individual/mapping/mapIndividualDocumentToApiDocument.d.ts +2 -3
  652. package/dist/types/components/Individual/mapping/mapIndividualSchemaToLegalEntity.d.ts +5 -0
  653. package/dist/types/components/Individual/mapping/mapLegalEntityToIndividualSchema.d.ts +3 -0
  654. package/dist/types/components/Individual/pages/DecisionMakerDetailsPage.d.ts +6 -7
  655. package/dist/types/components/Individual/pages/LegalRepresentativeDetailsPage.d.ts +2 -2
  656. package/dist/types/components/Individual/pages/RootIndividualDetailsPage.d.ts +2 -2
  657. package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerDetails/utils.d.ts +2 -14
  658. package/dist/types/components/Individual/tasks/DecisionMakers/RemediationAlerts/remediation.config.d.ts +0 -2
  659. package/dist/types/components/Individual/tasks/DecisionMakers/types.d.ts +8 -0
  660. package/dist/types/components/Individual/tasks/DecisionMakers/utils.d.ts +1 -1
  661. package/dist/types/components/Individual/tasks/IndividualDropin/IndividualDropin.d.ts +2 -2
  662. package/dist/types/components/Individual/tasks/IndividualDropin/individualFormConfig.d.ts +3 -3
  663. package/dist/types/components/Shared/EntityAssociation/EntityAssociation.d.ts +0 -1
  664. package/dist/types/components/Shared/FormFlow/FormFlow.d.ts +1 -1
  665. package/dist/types/components/Shared/FormFlow/FormFlow.types.d.ts +2 -2
  666. package/dist/types/components/Shared/Introduction/copy.d.ts +3 -3
  667. package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/BusinessRegistrationNumberField.d.ts +1 -1
  668. package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/fieldConfig.d.ts +10 -0
  669. package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/types.d.ts +2 -1
  670. package/dist/types/components/Shared/fields/CountryField/types.d.ts +2 -1
  671. package/dist/types/components/Shared/fields/CountryOfGoverningLawField/CountryOfGoverningLawField.d.ts +1 -1
  672. package/dist/types/components/Shared/fields/CountryOfGoverningLawField/types.d.ts +1 -1
  673. package/dist/types/components/Shared/fields/Currency/Currency.d.ts +1 -1
  674. package/dist/types/components/Shared/fields/Currency/types.d.ts +1 -1
  675. package/dist/types/components/Shared/fields/DBANameField/DBANameField.d.ts +1 -1
  676. package/dist/types/components/Shared/fields/DBANameField/types.d.ts +1 -1
  677. package/dist/types/components/Shared/fields/DateOfIncorporationField/DateOfIncorporationField.d.ts +1 -1
  678. package/dist/types/components/Shared/fields/DateOfIncorporationField/types.d.ts +3 -1
  679. package/dist/types/components/Shared/fields/EInvoicingCodeField/EInvoicingCodeField.d.ts +1 -1
  680. package/dist/types/components/Shared/fields/EInvoicingCodeField/types.d.ts +1 -1
  681. package/dist/types/components/Shared/fields/IdFieldTypeSelector/countryIdNumberTypes.d.ts +117 -1
  682. package/dist/types/components/Shared/fields/IndustryCodeField/IndustryCodeField.d.ts +1 -1
  683. package/dist/types/components/Shared/fields/IndustryCodeField/types.d.ts +1 -1
  684. package/dist/types/components/Shared/fields/LegalCompanyNameField/fieldConfig.d.ts +12 -6
  685. package/dist/types/components/Shared/fields/LegalCompanyNameField/types.d.ts +3 -1
  686. package/dist/types/components/Shared/fields/LocalizedNameFields/types.d.ts +9 -0
  687. package/dist/types/components/Shared/fields/LocalizedNameFields/validate.d.ts +5 -0
  688. package/dist/types/components/Shared/fields/NumberOfEmployees/NumberOfEmployees.d.ts +1 -1
  689. package/dist/types/components/Shared/fields/NumberOfEmployees/types.d.ts +1 -1
  690. package/dist/types/components/Shared/fields/PhoneField/PhoneField.d.ts +1 -1
  691. package/dist/types/components/Shared/fields/PhoneField/fieldConfig.d.ts +5 -0
  692. package/dist/types/components/Shared/fields/PhoneField/types.d.ts +2 -1
  693. package/dist/types/components/Shared/fields/StateField/StateField.d.ts +1 -1
  694. package/dist/types/components/Shared/fields/StateField/fieldConfig.d.ts +8 -0
  695. package/dist/types/components/Shared/fields/StateField/types.d.ts +1 -1
  696. package/dist/types/components/Shared/fields/StockExchangeMICField/StockExchangeMICField.d.ts +1 -1
  697. package/dist/types/components/Shared/fields/StockExchangeMICField/types.d.ts +1 -1
  698. package/dist/types/components/Shared/fields/StockISINField/StockISINField.d.ts +1 -1
  699. package/dist/types/components/Shared/fields/StockISINField/types.d.ts +1 -1
  700. package/dist/types/components/Shared/fields/StockTickerSymbol/StockTickerSymbolField.d.ts +1 -1
  701. package/dist/types/components/Shared/fields/StockTickerSymbol/types.d.ts +1 -1
  702. package/dist/types/components/Shared/fields/TaxInformationField/TaxInformationField.d.ts +1 -1
  703. package/dist/types/components/Shared/fields/TaxInformationField/fieldConfig.d.ts +6 -0
  704. package/dist/types/components/Shared/fields/TaxInformationField/types.d.ts +2 -1
  705. package/dist/types/components/Shared/fields/VatNumberField/VatNumberField.d.ts +1 -1
  706. package/dist/types/components/Shared/fields/VatNumberField/types.d.ts +1 -1
  707. package/dist/types/components/Shared/forms/Address/Address.d.ts +1 -1
  708. package/dist/types/components/Shared/forms/Address/localized/jp/jpAddressSchema.d.ts +3 -1
  709. package/dist/types/components/Shared/forms/Address/types.d.ts +2 -2
  710. package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
  711. package/dist/types/components/Shared/forms/BusinessTypeSelection/utils.d.ts +1 -1
  712. package/dist/types/components/Trust/forms/Trust/rules.d.ts +5 -4
  713. package/dist/types/components/Trust/hooks/useTrustMemberNavigation.hook.d.ts +1 -1
  714. package/dist/types/components/Trust/pages/TrustDetailsPage.d.ts +1 -2
  715. package/dist/types/components/Trust/pages/TrustMemberCompanyPage.d.ts +3 -3
  716. package/dist/types/components/Trust/pages/TrustMemberIndividualPage.d.ts +5 -5
  717. package/dist/types/components/Trust/pages/TrustMemberRoleAndTypePage.d.ts +2 -2
  718. package/dist/types/components/Trust/tasks/RoleAndTypeDropin/formatRoleAndEntityTypeSummary.d.ts +1 -1
  719. package/dist/types/components/Trust/tasks/TrustDropin/TrustMultiform.d.ts +2 -1
  720. package/dist/types/components/Trust/tasks/TrustDropin/TrustMultiformDropin.d.ts +1 -1
  721. package/dist/types/components/Trust/tasks/TrustMembers/TrustMembersOverview.d.ts +1 -2
  722. package/dist/types/components/UnincorporatedPartnership/hooks/useUnincorporatedPartnershipNavigation.d.ts +1 -1
  723. package/dist/types/components/UnincorporatedPartnership/pages/UnincorporatedPartnershipIndividualPage.d.ts +5 -5
  724. package/dist/types/components/UnincorporatedPartnership/pages/UnincorporatedPartnershipMemberCompanyPage.d.ts +3 -3
  725. package/dist/types/components/UnincorporatedPartnership/pages/UnincorporatedPartnershipMemberRoleAndTypePage.d.ts +1 -1
  726. package/dist/types/components/ui/atoms/Card/Card.d.ts +19 -0
  727. package/dist/types/components/ui/atoms/Link/Link.types.d.ts +1 -1
  728. package/dist/types/components/ui/atoms/Loader/Loader.d.ts +11 -5
  729. package/dist/types/components/ui/atoms/Modal/MaybeModal.d.ts +1 -1
  730. package/dist/types/components/ui/atoms/MultiSelectList/MultiSelectList.d.ts +0 -1
  731. package/dist/types/components/ui/atoms/Svg/Svg.d.ts +0 -1
  732. package/dist/types/components/ui/atoms/Svg/svgs.d.ts +4 -0
  733. package/dist/types/components/ui/atoms/Tile/Tile.d.ts +2 -1
  734. package/dist/types/components/ui/molecules/EmbeddedStatus/statusToTag.d.ts +2 -2
  735. package/dist/types/components/ui/molecules/ErrorPanel/ErrorPanel.d.ts +0 -1
  736. package/dist/types/context/ExperimentContext/types.d.ts +28 -50
  737. package/dist/types/context/QueryContext/QueryClient.d.ts +1 -1
  738. package/dist/types/context/StateContext/types.d.ts +2 -3
  739. package/dist/types/core/models/api/individual.d.ts +3 -0
  740. package/dist/types/core/models/api/instant-id-verification.d.ts +1 -1
  741. package/dist/types/core/models/api/legal-arrangement.d.ts +3 -0
  742. package/dist/types/core/models/api/legal-entity-association.d.ts +1 -1
  743. package/dist/types/core/models/api/legal-entity.d.ts +1 -6
  744. package/dist/types/core/process-field-configurations.d.ts +0 -5
  745. package/dist/types/core/services/types.d.ts +1 -1
  746. package/dist/types/core/user-events.d.ts +4 -2
  747. package/dist/types/embeds/baseEmbedProps.d.ts +0 -21
  748. package/dist/types/embeds/business-financing/adyen-business-financing.d.ts +2 -1
  749. package/dist/types/embeds/business-financing/adyen-business-financing.types.d.ts +2 -0
  750. package/dist/types/embeds/individual-configuration/adyen-individual-configuration.d.ts +5 -1
  751. package/dist/types/embeds/individual-configuration/adyen-individual-configuration.types.d.ts +2 -2
  752. package/dist/types/embeds/invited-decision-maker/adyen-invited-decision-maker.d.ts +5 -0
  753. package/dist/types/embeds/invited-decision-maker/adyen-invited-decision-maker.types.d.ts +34 -0
  754. package/dist/types/embeds/onboarding/adyen-onboarding.d.ts +2 -1
  755. package/dist/types/embeds/terms-of-service-management/adyen-terms-of-service-management.d.ts +5 -1
  756. package/dist/types/embeds/transfer-instrument-configuration/adyen-transfer-instrument-configuration.d.ts +2 -1
  757. package/dist/types/embeds/verification-status/adyen-verification-status.d.ts +2 -1
  758. package/dist/types/hooks/useAssociatedLegalEntity.d.ts +1 -1
  759. package/dist/types/hooks/useForm/types.d.ts +0 -8
  760. package/dist/types/hooks/useLegalCompanyNameField/useLegalCompanyNameField.d.ts +4 -2
  761. package/dist/types/hooks/usePageLandedEvent.d.ts +7 -0
  762. package/dist/types/hooks/useUboQuestionnaire.d.ts +2 -2
  763. package/dist/types/language/types.d.ts +7 -2
  764. package/dist/types/language/utils.d.ts +1 -2
  765. package/dist/types/router/DefaultRouteRedirect.d.ts +8 -0
  766. package/dist/types/router/MemoryRouterContext.d.ts +9 -0
  767. package/dist/types/router/OnboardingRouter.d.ts +39 -0
  768. package/dist/types/router/SuspenseRoute.d.ts +7 -0
  769. package/dist/types/router/getDefaultTask.d.ts +16 -0
  770. package/dist/types/router/routeConfig.d.ts +68 -0
  771. package/dist/types/router/useCurrentTask.d.ts +5 -0
  772. package/dist/types/router/useNavigate.d.ts +7 -0
  773. package/dist/types/stores/formState.d.ts +2 -0
  774. package/dist/types/stores/globalStore/get-task-status.d.ts +6 -0
  775. package/dist/types/stores/globalStore/taskStatus.d.ts +5 -3
  776. package/dist/types/types/assert.d.ts +1 -0
  777. package/dist/types/types/datasets/currency.d.ts +0 -1
  778. package/dist/types/types/form.d.ts +0 -2
  779. package/dist/types/utils/addLinkedFields.d.ts +0 -2
  780. package/dist/types/utils/analytics/debouncedInputEvent.d.ts +1 -0
  781. package/dist/types/utils/analytics/getPrefilledDetails.d.ts +28 -0
  782. package/dist/types/utils/api/documentUtils.d.ts +6 -0
  783. package/dist/types/utils/api/processCapabilitites.d.ts +14 -2
  784. package/dist/types/utils/birthDateUtils.d.ts +0 -17
  785. package/dist/types/utils/customerSupportUtils.d.ts +3 -0
  786. package/dist/types/utils/entityAssociationUtil.d.ts +3 -4
  787. package/dist/types/utils/entityStatusUtil.d.ts +1 -1
  788. package/dist/types/utils/fieldConfigurations.d.ts +0 -2
  789. package/dist/types/utils/formUtils.d.ts +1 -6
  790. package/dist/types/utils/getDisplayErrorMessage.d.ts +1 -2
  791. package/dist/types/utils/getFieldsWithExistingData.d.ts +2 -3
  792. package/dist/types/utils/getName.d.ts +1 -1
  793. package/dist/types/utils/japanSupportUtils.d.ts +3 -0
  794. package/dist/types/utils/logger.d.ts +0 -1
  795. package/dist/types/utils/makeSelectItemForRole.d.ts +1 -1
  796. package/dist/types/utils/performance.d.ts +64 -0
  797. package/dist/types/utils/regex/patternValidators.d.ts +1 -1
  798. package/dist/types/utils/translation.d.ts +3 -2
  799. package/dist/types/utils/validatorUtils.d.ts +3 -1
  800. package/dist/types/utils/verification/helpers/verifyIdNumber.d.ts +3 -2
  801. package/dist/types-BW4HQI5X.js +142 -0
  802. package/dist/types-D7ibfssA.js +74 -0
  803. package/dist/types-DRjaiEYd.js +64 -0
  804. package/dist/types-DSsQZPmi.js +34 -0
  805. package/dist/unincorporated-partnership-MeN1dp53.js +97 -0
  806. package/dist/upload-BmUXjsaU.js +17 -0
  807. package/dist/us-check-C1rTBsCY.js +46 -0
  808. package/dist/us-check-account-number-9lI1dXNC.js +48 -0
  809. package/dist/us-check-routing-number-s_KaAGSM.js +49 -0
  810. package/dist/useAssociatedLegalEntity-jaSfQ9rQ.js +34 -0
  811. package/dist/useBusinessDetailsData-5O2km9MB.js +5310 -0
  812. package/dist/useBusinessLines-DuBQrvIQ.js +29 -0
  813. package/dist/useCanSeeIntroduction-Boj-VdF4.js +48 -0
  814. package/dist/useCreateLegalEntity-DQx1byaP.js +32 -0
  815. package/dist/useDataMissingRemediations-Drava4pQ.js +41 -0
  816. package/dist/useDataset-3t4wCptb.js +76 -0
  817. package/dist/useDeleteTransferInstrument-CUjrvIfw.js +32 -0
  818. package/dist/useForm-CsrT0zKF.js +582 -0
  819. package/dist/useFormContext-D1NuWw_2.js +201 -0
  820. package/dist/useGlobalData-vS5GxkpZ.js +68 -0
  821. package/dist/useId-BZ0PA7jP.js +24 -0
  822. package/dist/useMultiForm-82RYFvCF.js +873 -0
  823. package/dist/useNavigate-DLBqtyNN.js +265 -0
  824. package/dist/useOnboardingStatus-B3HSS36K.js +28 -0
  825. package/dist/usePciQuestionnaireList-B2425Wiw.js +29 -0
  826. package/dist/useSalesChannels-B9Z_g_9G.js +65 -0
  827. package/dist/useScenarios-DCRvLaxV.js +48 -0
  828. package/dist/useSetting-C108TWwa.js +19 -0
  829. package/dist/useTaskStatus-DjHWxlNL.js +51 -0
  830. package/dist/useTermsOfServiceStatus-BTLQKn3X.js +43 -0
  831. package/dist/useToastContext-CYdZ2BD2.js +49 -0
  832. package/dist/useTrustMembers-BvFhj1PW.js +163 -0
  833. package/dist/useUnincorporatedPartnershipMembers-wCGUg18Y.js +99 -0
  834. package/dist/useUpdateBusinessLines-DAHY8qXu.js +339 -0
  835. package/dist/useUpdateLegalEntity-B7VJAlhD.js +40 -0
  836. package/dist/utils-BCit-Kzj.js +58 -0
  837. package/dist/utils-BU2KHXr7.js +237 -0
  838. package/dist/utils-BiqRkf5f.js +159 -0
  839. package/dist/utils-C4cwFCf5.js +778 -0
  840. package/dist/utils-Cc8niKnm.js +29 -0
  841. package/dist/validate-BnkIeDb7.js +434 -0
  842. package/dist/validate-fYuz9-yq.js +108 -0
  843. package/dist/validationError-Bod1gd-k.js +86 -0
  844. package/dist/warning-circle-fill-DBvt921B.js +17 -0
  845. package/dist/warning-diamond-filled-Lb2od2ry.js +17 -0
  846. package/dist/webinar-m9nuFZBt.js +22 -0
  847. package/dist/yapily-logo-BduxhNRA.js +17 -0
  848. package/package.json +78 -57
  849. package/dist/4-people-BzyXLUF9.js +0 -24
  850. package/dist/AcceptTermsOfServiceComponent-CmHBNGjM.js +0 -659
  851. package/dist/Accordion-Cp_VkxR6.js +0 -88
  852. package/dist/AccountSetupRejected-CoxWTlar.js +0 -26
  853. package/dist/ActionBar-CxUKVmTE.js +0 -31
  854. package/dist/Address-Db6Q_KUo.js +0 -1348
  855. package/dist/Alert-DEiOX0nw.js +0 -159
  856. package/dist/Avatar-3K6S_tIS.js +0 -60
  857. package/dist/BG-DlvaKo4n.js +0 -27
  858. package/dist/BusinessDetailsMultiformDropin-CYoIN4Fa.js +0 -4220
  859. package/dist/BusinessFinancingComponent-DyvM-fsY.js +0 -54
  860. package/dist/BusinessFinancingDropin-BOvR4LwU.js +0 -1853
  861. package/dist/BusinessFinancingPage-8C0ztBfS.js +0 -43
  862. package/dist/BusinessTypeSelectionPage-DpZAsa8K.js +0 -427
  863. package/dist/Card-CdpPhK9y.js +0 -82
  864. package/dist/ConstitutionalDocument-NLs6ka9K.js +0 -143
  865. package/dist/ContractViewer-Byp71k2e.js +0 -935
  866. package/dist/CountryField-9w8wRZMW.js +0 -843
  867. package/dist/CreateIndividualComponent-zGcoEyq0.js +0 -71
  868. package/dist/CreateTransferInstrumentComponent-Ct_v-IyH.js +0 -63
  869. package/dist/Currency-53s7DEeh.js +0 -183
  870. package/dist/CustomerSupport-BRcUQ4fR.js +0 -153
  871. package/dist/DebugModal-CokbXGK9.js +0 -413
  872. package/dist/DecisionMakerDetailsPage-B5cLY8iP.js +0 -106
  873. package/dist/DecisionMakers-BQ24LfqB.js +0 -830
  874. package/dist/EmbeddedStatus-DB9B_u3L.js +0 -99
  875. package/dist/EndStateLayout-BWC5aqVS.js +0 -71
  876. package/dist/EntityAssociation-gzYdcHoL.js +0 -159
  877. package/dist/EntityGuidanceStatus-BKeZKnbP.js +0 -105
  878. package/dist/FormFlow-Cf3Ff2qw.js +0 -224
  879. package/dist/FormNavigation-CjgZbv9G.js +0 -144
  880. package/dist/FormWrapper-dbBZegkX.js +0 -135
  881. package/dist/IndividualOnfido-Cc7dydKq.js +0 -9594
  882. package/dist/IndividualOnfidoDropin-BpU2cL4E.js +0 -2497
  883. package/dist/InputText-Dsw9kiwL.js +0 -249
  884. package/dist/Introduction-C8mTk4l_.js +0 -300
  885. package/dist/JpAddress-R81eO-aY.js +0 -280
  886. package/dist/LegalRepresentativeDetailsPage-DIQX18v2.js +0 -60
  887. package/dist/ListItem-D3p6EgP_.js +0 -69
  888. package/dist/ManageIndividualComponent-CmM-vP9E.js +0 -46
  889. package/dist/ManageTermsOfServiceComponent-C3hXZJx5.js +0 -52
  890. package/dist/ManageTransferInstrumentComponent-co6LYrVY.js +0 -287
  891. package/dist/MaybeModal-BVQOzETz.js +0 -25
  892. package/dist/Modal-CloeVnNp.js +0 -149
  893. package/dist/OnboardingDropinComponent-CDAK4v1o.js +0 -7908
  894. package/dist/PayoutDetailsDropin-DCrlrNki.js +0 -4841
  895. package/dist/Review-Dqn49vJM.js +0 -83
  896. package/dist/RootBusinessDetailsPage-DSEq3TIn.js +0 -61
  897. package/dist/RootBusinessLinesPage-CbPhOber.js +0 -1118
  898. package/dist/RootIndividualDetailsPage-Bp_7gSIB.js +0 -71
  899. package/dist/SignPCIComponent-B6kYuqT_.js +0 -304
  900. package/dist/SingpassSelection-aDrNTYr3.js +0 -130
  901. package/dist/SoleProprietorshipPage-HnUsyjKp.js +0 -60
  902. package/dist/SourceOfFundsPage-BkMEIV_L.js +0 -2383
  903. package/dist/StepProgressIndicator-BgeMe93n.js +0 -78
  904. package/dist/StoreProvider-BFN15Go9.js +0 -7674
  905. package/dist/Summary-BkE_c8pU.js +0 -204
  906. package/dist/TaxReportingDropin-LG9zvOMN.js +0 -502
  907. package/dist/TrustDetailsPage-C8w8pEvB.js +0 -2149
  908. package/dist/TrustMemberCompanyPage-IDEwpLW3.js +0 -73
  909. package/dist/TrustMemberIndividualPage-rKB3iVFk.js +0 -66
  910. package/dist/TrustMemberRoleAndTypePage-CLtX8V0M.js +0 -985
  911. package/dist/TrustMembersOverview-Bs203hm0.js +0 -438
  912. package/dist/UnincorporatedPartnershipIndividualPage-CBTaUEld.js +0 -65
  913. package/dist/UnincorporatedPartnershipMemberCompanyPage-ZnLe9Uq3.js +0 -76
  914. package/dist/UnincorporatedPartnershipMemberRoleAndTypePage-BXImA2c_.js +0 -281
  915. package/dist/UnincorporatedPartnershipMembersOverview-c7k2JzcO.js +0 -172
  916. package/dist/VerificationErrorAlert-uubpHQGE.js +0 -79
  917. package/dist/ViewVerificationStatusComponent-DO9L2hEO.js +0 -180
  918. package/dist/arrow-right-KxA3SvQj.js +0 -14
  919. package/dist/bag-BPumznWh.js +0 -14
  920. package/dist/bank-D6FiNBhs.js +0 -14
  921. package/dist/bg-BG-B7Xs_t04.js +0 -13
  922. package/dist/bg-BG-CepHap8j.js +0 -68
  923. package/dist/bg-BG-D9J6LnkI.js +0 -57
  924. package/dist/bg-BG-DH45-0B-.js +0 -29
  925. package/dist/bg-BG-DRkMqyL8.js +0 -13
  926. package/dist/bg-BG-Dp4LxSP7.js +0 -37
  927. package/dist/bg-BG-DpIAKQve.js +0 -113
  928. package/dist/bg-BG-mLSjG76Q.js +0 -13
  929. package/dist/bg-BG-wVquMNtT.js +0 -55
  930. package/dist/bin-Bz6KOIeE.js +0 -18
  931. package/dist/business-lines-DboUCbXw.js +0 -135
  932. package/dist/capital-GVQ3svwN.js +0 -17
  933. package/dist/cash-stack-D9AoDDwt.js +0 -22
  934. package/dist/certificate-CdEWgHQf.js +0 -17
  935. package/dist/checkmark-Q7x6tGhy.js +0 -14
  936. package/dist/checkmark-circle-fill-CsvN5_PL.js +0 -17
  937. package/dist/checkmark-circle-x7dzbp3I.js +0 -20
  938. package/dist/checkmark-small-D35myntq.js +0 -14
  939. package/dist/chevron-down-C2iDorpW.js +0 -14
  940. package/dist/chevron-left-ztPO84q-.js +0 -14
  941. package/dist/chevron-right-C_JN0oDt.js +0 -14
  942. package/dist/chevron-up-CgG8n25g.js +0 -14
  943. package/dist/circle-Bt3Nlr3q.js +0 -17
  944. package/dist/circle-small-filled-YMzP6yQU.js +0 -14
  945. package/dist/clock-BZHremOA.js +0 -20
  946. package/dist/coins-fkAk6dCo.js +0 -17
  947. package/dist/contract-BTa4HltT.js +0 -14
  948. package/dist/cross-Cn09MtQ_.js +0 -14
  949. package/dist/cross-circle-fill-small-DCz52AuN.js +0 -14
  950. package/dist/cs-CZ--jOkoHVS.js +0 -55
  951. package/dist/cs-CZ-BDf9m4Rw.js +0 -113
  952. package/dist/cs-CZ-BP7niQM9.js +0 -68
  953. package/dist/cs-CZ-BSWXexr4.js +0 -13
  954. package/dist/cs-CZ-BsV9NiQ2.js +0 -13
  955. package/dist/cs-CZ-CyLqoG1j.js +0 -37
  956. package/dist/cs-CZ-DPVMeRye.js +0 -29
  957. package/dist/cs-CZ-DY_pQqAT.js +0 -57
  958. package/dist/cs-CZ-DalFZigH.js +0 -13
  959. package/dist/da-DK-CI-vfqPo.js +0 -113
  960. package/dist/da-DK-D4Ojw97o.js +0 -13
  961. package/dist/da-DK-DU4dCNEw.js +0 -29
  962. package/dist/da-DK-DYpfNZdP.js +0 -37
  963. package/dist/da-DK-Dc0QYG8m.js +0 -68
  964. package/dist/da-DK-JHZnsI59.js +0 -55
  965. package/dist/da-DK-P3YSaBqs.js +0 -13
  966. package/dist/da-DK-R_y7YwqQ.js +0 -13
  967. package/dist/da-DK-jK7c9UL0.js +0 -57
  968. package/dist/de-DE-BR6CLZw6.js +0 -13
  969. package/dist/de-DE-BXt1K0Tr.js +0 -37
  970. package/dist/de-DE-BcuLmcC8.js +0 -13
  971. package/dist/de-DE-Dz2OsS1F.js +0 -68
  972. package/dist/de-DE-Dz2l6jRl.js +0 -29
  973. package/dist/de-DE-VGGEkxUT.js +0 -55
  974. package/dist/de-DE-nG2MBigU.js +0 -113
  975. package/dist/de-DE-opyC1JO-.js +0 -13
  976. package/dist/de-DE-wmerDL2e.js +0 -57
  977. package/dist/debouncedInputEvent-Dlbc7VjU.js +0 -109
  978. package/dist/decision-makers-group-CgddXgrx.js +0 -1944
  979. package/dist/digital-wallet-D_IpxnkN.js +0 -46
  980. package/dist/document-1-C08ut-Dt.js +0 -14
  981. package/dist/document-blurred-2Zpodj3_.js +0 -37
  982. package/dist/document-cut-off-ClS7RiOp.js +0 -32
  983. package/dist/document-expired-CjksBq-N.js +0 -38
  984. package/dist/document-front-DiAairT3.js +0 -30
  985. package/dist/document-person-vxlA6C5f.js +0 -20
  986. package/dist/documentUtils-CUgKVLK4.js +0 -218
  987. package/dist/download-Drhk9k1f.js +0 -17
  988. package/dist/dropinUtils-D2lBlNWp.js +0 -202
  989. package/dist/edit-1-CFoDTMvQ.js +0 -14
  990. package/dist/el-GR-B3FHqTOX.js +0 -13
  991. package/dist/el-GR-B90M6tcZ.js +0 -37
  992. package/dist/el-GR-BHG69mXl.js +0 -68
  993. package/dist/el-GR-BX-MyQZY.js +0 -113
  994. package/dist/el-GR-Btrk_npt.js +0 -57
  995. package/dist/el-GR-CWd7XYDU.js +0 -13
  996. package/dist/el-GR-CofvCav-.js +0 -13
  997. package/dist/el-GR-MLFY-Gg7.js +0 -29
  998. package/dist/el-GR-gkaKwnln.js +0 -55
  999. package/dist/en-US-BPI4FZwa.js +0 -113
  1000. package/dist/en-US-CzEL6t1W.js +0 -55
  1001. package/dist/en-US-D-B35AoN.js +0 -68
  1002. package/dist/en-US-DYo4OF-P.js +0 -29
  1003. package/dist/en-US-Dg505Oh3.js +0 -37
  1004. package/dist/en-US-fyGPkcqX.js +0 -13
  1005. package/dist/en-US-gsp7CD_E.js +0 -57
  1006. package/dist/es-ES-0ROz-BJh.js +0 -29
  1007. package/dist/es-ES-BAg3NqQO.js +0 -13
  1008. package/dist/es-ES-BI_jdT67.js +0 -68
  1009. package/dist/es-ES-BhINIOee.js +0 -13
  1010. package/dist/es-ES-BhNhIf08.js +0 -37
  1011. package/dist/es-ES-Bn9_0wK0.js +0 -55
  1012. package/dist/es-ES-CEp-ttVJ.js +0 -13
  1013. package/dist/es-ES-Q16q2JJ6.js +0 -113
  1014. package/dist/es-ES-Qnc0Q6JH.js +0 -57
  1015. package/dist/et-EE-BMgFCxds.js +0 -37
  1016. package/dist/et-EE-BYSnV6Iq.js +0 -55
  1017. package/dist/et-EE-Bk2IHQWP.js +0 -13
  1018. package/dist/et-EE-C_PZO2aI.js +0 -68
  1019. package/dist/et-EE-Ci8RU2wg.js +0 -13
  1020. package/dist/et-EE-DmShD6oS.js +0 -113
  1021. package/dist/et-EE-TzXANcP2.js +0 -57
  1022. package/dist/et-EE-esci5847.js +0 -29
  1023. package/dist/et-EE-x29FUaYN.js +0 -118
  1024. package/dist/external-link-DCMYUMfW.js +0 -14
  1025. package/dist/fi-FI-B_P4BAda.js +0 -113
  1026. package/dist/fi-FI-CDISJifz.js +0 -13
  1027. package/dist/fi-FI-DjlB2a7k.js +0 -13
  1028. package/dist/fi-FI-Dn2MC8uW.js +0 -57
  1029. package/dist/fi-FI-MiyuQqH8.js +0 -13
  1030. package/dist/fi-FI-PVFqd5Ra.js +0 -55
  1031. package/dist/fi-FI-hwzizPnr.js +0 -68
  1032. package/dist/fi-FI-xXrvDLFe.js +0 -29
  1033. package/dist/fi-FI-ysUrBilO.js +0 -37
  1034. package/dist/fieldConfigurations-C38LzPl3.js +0 -1402
  1035. package/dist/fr-FR-BSvSKazD.js +0 -37
  1036. package/dist/fr-FR-BWX14yb7.js +0 -57
  1037. package/dist/fr-FR-Bw9O-QAU.js +0 -29
  1038. package/dist/fr-FR-CUdiBCVB.js +0 -113
  1039. package/dist/fr-FR-CYZXbwc9.js +0 -68
  1040. package/dist/fr-FR-DGMVrsJv.js +0 -13
  1041. package/dist/fr-FR-Dx-CiPdB.js +0 -13
  1042. package/dist/fr-FR-aJ3cg4x0.js +0 -13
  1043. package/dist/fr-FR-mJK4hjwD.js +0 -55
  1044. package/dist/funds-in-D8bj0aoE.js +0 -21
  1045. package/dist/getFieldsWithExistingData-B0l_1eCG.js +0 -22
  1046. package/dist/getName-CIw0MR9e.js +0 -48
  1047. package/dist/gift-CQ_DEma7.js +0 -14
  1048. package/dist/graph-BJmqglH2.js +0 -21
  1049. package/dist/graph-up-Bq6adtlX.js +0 -20
  1050. package/dist/hasDataChanged-B-_hLK5I.js +0 -19
  1051. package/dist/headquarter-DNYyuuFq.js +0 -21
  1052. package/dist/hotel-BuNql78Z.js +0 -22
  1053. package/dist/house-B6sNRj-B.js +0 -21
  1054. package/dist/hr-HR-BHt_jklG.js +0 -13
  1055. package/dist/hr-HR-BLpGb4f2.js +0 -37
  1056. package/dist/hr-HR-CXpCIMhI.js +0 -113
  1057. package/dist/hr-HR-CZLSQruE.js +0 -57
  1058. package/dist/hr-HR-D8_yhtIo.js +0 -29
  1059. package/dist/hr-HR-VivDwwdW.js +0 -13
  1060. package/dist/hr-HR-bE6cvRCQ.js +0 -68
  1061. package/dist/hr-HR-n7aMHIpM.js +0 -13
  1062. package/dist/hr-HR-qmYyO-nT.js +0 -55
  1063. package/dist/hu-HU-CS-7iNS4.js +0 -55
  1064. package/dist/hu-HU-Ca9Hex26.js +0 -37
  1065. package/dist/hu-HU-DDsdPI5V.js +0 -13
  1066. package/dist/hu-HU-DG-NUDx4.js +0 -68
  1067. package/dist/hu-HU-D_DvlCMw.js +0 -13
  1068. package/dist/hu-HU-DqEBeq-w.js +0 -113
  1069. package/dist/hu-HU-KliQetm5.js +0 -29
  1070. package/dist/hu-HU-WEtpzb41.js +0 -13
  1071. package/dist/hu-HU-kp8Go5hZ.js +0 -57
  1072. package/dist/id-blurred-9dzBOWCE.js +0 -59
  1073. package/dist/id-cut-off-CohJCI2h.js +0 -55
  1074. package/dist/id-front-CSZfvdRg.js +0 -52
  1075. package/dist/id-glare-Q2JWo5ts.js +0 -49
  1076. package/dist/id-verification-instant-BUVBO4R3.js +0 -58
  1077. package/dist/id-verification-manual-B3YZALYU.js +0 -55
  1078. package/dist/iframeWidget-yBLSAmf8.js +0 -234
  1079. package/dist/image-BSihO8lR.js +0 -17
  1080. package/dist/info-vHTZWoJ7.js +0 -21
  1081. package/dist/instant-verification-Dvvkyfmp.js +0 -40
  1082. package/dist/it-IT-B0YGvVgW.js +0 -57
  1083. package/dist/it-IT-BTWkWSJq.js +0 -55
  1084. package/dist/it-IT-C2MZo4KT.js +0 -13
  1085. package/dist/it-IT-DLm11dH5.js +0 -13
  1086. package/dist/it-IT-Erh1DIlj.js +0 -68
  1087. package/dist/it-IT-MwpjRAG6.js +0 -29
  1088. package/dist/it-IT-NCFAqV1F.js +0 -113
  1089. package/dist/it-IT-Qfzc8jnW.js +0 -37
  1090. package/dist/it-IT-yV7ewjWU.js +0 -13
  1091. package/dist/ja-JP-2u5fqLWF.js +0 -29
  1092. package/dist/ja-JP-Bktpl_2b.js +0 -118
  1093. package/dist/ja-JP-CHQ64lw1.js +0 -37
  1094. package/dist/ja-JP-CSz7fEkn.js +0 -55
  1095. package/dist/ja-JP-CWe8f7m4.js +0 -13
  1096. package/dist/ja-JP-C_-moDrA.js +0 -113
  1097. package/dist/ja-JP-Ctsk4z4q.js +0 -151
  1098. package/dist/ja-JP-Dz9IVH4p.js +0 -57
  1099. package/dist/ja-JP-ThzG9vIo.js +0 -68
  1100. package/dist/ja-JP-bz7ekGnF.js +0 -27
  1101. package/dist/localizeDateString-C-G2nUor.js +0 -27
  1102. package/dist/location-Q4oKvnkl.js +0 -17
  1103. package/dist/lt-LT-0RKZeraM.js +0 -37
  1104. package/dist/lt-LT-B6XmKUXx.js +0 -55
  1105. package/dist/lt-LT-BEsBoIQ9.js +0 -29
  1106. package/dist/lt-LT-CU5qHa7a.js +0 -113
  1107. package/dist/lt-LT-CYiW52tl.js +0 -13
  1108. package/dist/lt-LT-Cg9c0kae.js +0 -13
  1109. package/dist/lt-LT-Nd1uRoIj.js +0 -68
  1110. package/dist/lt-LT-W6fTjwB5.js +0 -13
  1111. package/dist/lt-LT-l9rzkFg9.js +0 -57
  1112. package/dist/lv-LV-Bh-WQp0K.js +0 -37
  1113. package/dist/lv-LV-CgMxfFK8.js +0 -13
  1114. package/dist/lv-LV-CpGkmcLz.js +0 -113
  1115. package/dist/lv-LV-CxUmQHF9.js +0 -13
  1116. package/dist/lv-LV-DKhV24CI.js +0 -68
  1117. package/dist/lv-LV-DYbb5pkt.js +0 -57
  1118. package/dist/lv-LV-DsSpy50n.js +0 -55
  1119. package/dist/lv-LV-DsxFGThp.js +0 -13
  1120. package/dist/lv-LV-Veji7-on.js +0 -29
  1121. package/dist/mail-BOdyoVqB.js +0 -14
  1122. package/dist/manual-verification-BvZWqA00.js +0 -41
  1123. package/dist/mapExistingFile-BhW5UmN9.js +0 -156
  1124. package/dist/mapFinancialReportsToFinancialInformation-Dl-cl9eQ.js +0 -67
  1125. package/dist/mapJpAddressSchemaToAddressLocalizations-KFAvfuC1.js +0 -63
  1126. package/dist/mapLegalEntityToIndividualOnfidoSchema-D51tRiYd.js +0 -143
  1127. package/dist/mapTransferInstrumentToPayoutAccount-CU5wx0wJ.js +0 -33
  1128. package/dist/minus-circle-filled-kC2IUvKz.js +0 -17
  1129. package/dist/nl-NL-BMUYBqlF.js +0 -57
  1130. package/dist/nl-NL-Bk-1-C0e.js +0 -13
  1131. package/dist/nl-NL-BuW3jWdI.js +0 -29
  1132. package/dist/nl-NL-CMw-FwQV.js +0 -13
  1133. package/dist/nl-NL-CTf7zH4M.js +0 -55
  1134. package/dist/nl-NL-D7gBNWEY.js +0 -37
  1135. package/dist/nl-NL-DKMs4pB2.js +0 -13
  1136. package/dist/nl-NL-DMpB18Te.js +0 -113
  1137. package/dist/nl-NL-O9GCHMDA.js +0 -68
  1138. package/dist/no-NO-B-oUwe9q.js +0 -13
  1139. package/dist/no-NO-C-gCYc9q.js +0 -37
  1140. package/dist/no-NO-CA0EizAy.js +0 -29
  1141. package/dist/no-NO-CA1aR6Wh.js +0 -68
  1142. package/dist/no-NO-Ca5qoVaU.js +0 -113
  1143. package/dist/no-NO-DKbWxgF-.js +0 -57
  1144. package/dist/no-NO-DN9qf-_I.js +0 -13
  1145. package/dist/no-NO-Dhj0Fh__.js +0 -13
  1146. package/dist/no-NO-RfTK9KAV.js +0 -55
  1147. package/dist/onfido-logo-BWSv__sQ.js +0 -14
  1148. package/dist/options-horizontal-CBmbNv7R.js +0 -18
  1149. package/dist/partner-CPjsrePY.js +0 -18
  1150. package/dist/passport-blurred-B4UDQfmc.js +0 -59
  1151. package/dist/passport-cut-off-C0N2mgLk.js +0 -56
  1152. package/dist/passport-front-BwA7wR91.js +0 -52
  1153. package/dist/passport-front-green-BL4HmtsB.js +0 -232
  1154. package/dist/passport-glare-Mg2ixsYA.js +0 -50
  1155. package/dist/pay-by-link-plane-BVZndh67.js +0 -22
  1156. package/dist/payout-ChUEoLjt.js +0 -20
  1157. package/dist/payout-verification-instant-5u-wvFKv.js +0 -41
  1158. package/dist/payout-verification-manual-BH2mu0UW.js +0 -90
  1159. package/dist/person-DGjUU4S4.js +0 -17
  1160. package/dist/pl-PL-B0zGy_b4.js +0 -57
  1161. package/dist/pl-PL-BKDK0_G8.js +0 -68
  1162. package/dist/pl-PL-BSI0zHO1.js +0 -113
  1163. package/dist/pl-PL-D7nhdbfR.js +0 -29
  1164. package/dist/pl-PL-DGSYzOx6.js +0 -13
  1165. package/dist/pl-PL-Duj3tncM.js +0 -13
  1166. package/dist/pl-PL-Dy8qWH39.js +0 -55
  1167. package/dist/pl-PL-LnVPufjb.js +0 -37
  1168. package/dist/pl-PL-p8YxqOFg.js +0 -13
  1169. package/dist/plaid-logo-CtActXTN.js +0 -14
  1170. package/dist/plus-CWXA5wdX.js +0 -14
  1171. package/dist/plus-circle-filled-CbC0u2Y1.js +0 -17
  1172. package/dist/process-field-configurations-DoOFQqtn.js +0 -324
  1173. package/dist/pt-BR--kaJvtE6.js +0 -57
  1174. package/dist/pt-BR-BbFJsIVX.js +0 -55
  1175. package/dist/pt-BR-Be5ZycMV.js +0 -13
  1176. package/dist/pt-BR-Cj8MlQyq.js +0 -113
  1177. package/dist/pt-BR-Cm4vZocb.js +0 -13
  1178. package/dist/pt-BR-D1nTSLod.js +0 -29
  1179. package/dist/pt-BR-DKrMpM6v.js +0 -13
  1180. package/dist/pt-BR-NtLaWlnZ.js +0 -68
  1181. package/dist/pt-BR-ur86nRrK.js +0 -37
  1182. package/dist/pt-PT-B4F_5NWi.js +0 -55
  1183. package/dist/pt-PT-B9L50746.js +0 -29
  1184. package/dist/pt-PT-BJjCTMYf.js +0 -13
  1185. package/dist/pt-PT-BJkVzfAJ.js +0 -113
  1186. package/dist/pt-PT-BR-BI5Jn.js +0 -13
  1187. package/dist/pt-PT-BZ5ZZm6G.js +0 -57
  1188. package/dist/pt-PT-Bh7v8xbp.js +0 -13
  1189. package/dist/pt-PT-CVNEcs32.js +0 -37
  1190. package/dist/pt-PT-DSxxVA0f.js +0 -68
  1191. package/dist/recurring-CkL4cCM2.js +0 -17
  1192. package/dist/reporting-DerosUNm.js +0 -16
  1193. package/dist/resolveEnvironment-Dyejukh7.js +0 -164
  1194. package/dist/revenue-accelerate-Dp4Ns_5c.js +0 -17
  1195. package/dist/review-CxIN9azU.js +0 -17
  1196. package/dist/ro-RO-5I4Q_FyK.js +0 -13
  1197. package/dist/ro-RO-B8leE4ZJ.js +0 -13
  1198. package/dist/ro-RO-Bybq8JFn.js +0 -68
  1199. package/dist/ro-RO-CICjAFys.js +0 -55
  1200. package/dist/ro-RO-CdSsgoUG.js +0 -57
  1201. package/dist/ro-RO-DjGku_3y.js +0 -13
  1202. package/dist/ro-RO-DvG65dTt.js +0 -29
  1203. package/dist/ro-RO-RgC5M6CE.js +0 -113
  1204. package/dist/ro-RO-i7lojG2G.js +0 -37
  1205. package/dist/rules-DP604XPJ.js +0 -314
  1206. package/dist/save-Fgy7EDid.js +0 -14
  1207. package/dist/search-C4GZ-Rc1.js +0 -17
  1208. package/dist/show-yPjPmEf8.js +0 -17
  1209. package/dist/singpass-logo-BkMSwiGY.js +0 -17
  1210. package/dist/singpass-verification-instant-hY4eGFwl.js +0 -40
  1211. package/dist/singpass-verification-manual-DwhRpy5Q.js +0 -34
  1212. package/dist/sk-SK-0BVxI7bf.js +0 -113
  1213. package/dist/sk-SK-B5brxU1N.js +0 -37
  1214. package/dist/sk-SK-BMJgOJoa.js +0 -29
  1215. package/dist/sk-SK-BRd5TN22.js +0 -55
  1216. package/dist/sk-SK-BVmoP_EU.js +0 -13
  1217. package/dist/sk-SK-BWwRIx2d.js +0 -13
  1218. package/dist/sk-SK-Bb18qPBw.js +0 -13
  1219. package/dist/sk-SK-BiBWPJUf.js +0 -57
  1220. package/dist/sk-SK-C6rMIxpz.js +0 -68
  1221. package/dist/sl-SI-6s8xycKg.js +0 -13
  1222. package/dist/sl-SI-BMF8YtOm.js +0 -29
  1223. package/dist/sl-SI-BxImW_RL.js +0 -113
  1224. package/dist/sl-SI-CUCrzJQv.js +0 -37
  1225. package/dist/sl-SI-CaJmYb6p.js +0 -13
  1226. package/dist/sl-SI-D8dDckrW.js +0 -55
  1227. package/dist/sl-SI-DtdGMD6i.js +0 -57
  1228. package/dist/sl-SI-ZxyvdgdS.js +0 -13
  1229. package/dist/sl-SI-tPwbFvOI.js +0 -68
  1230. package/dist/solution-payments-CNAat9h7.js +0 -14
  1231. package/dist/store-IuAkDRAp.js +0 -14
  1232. package/dist/sv-SE-B1sbgsnh.js +0 -13
  1233. package/dist/sv-SE-BUq1X9F0.js +0 -113
  1234. package/dist/sv-SE-BYC_f8r7.js +0 -29
  1235. package/dist/sv-SE-C6uPh9g5.js +0 -37
  1236. package/dist/sv-SE-CCFIf86P.js +0 -13
  1237. package/dist/sv-SE-DGpvVvWj.js +0 -55
  1238. package/dist/sv-SE-D_ZnGxiQ.js +0 -13
  1239. package/dist/sv-SE-K1QT1cOt.js +0 -68
  1240. package/dist/sv-SE-kR514dO1.js +0 -57
  1241. package/dist/tax-reporting-graph-DjzwRgE6.js +0 -504
  1242. package/dist/terminal-1-_me9J9h0.js +0 -18
  1243. package/dist/tink-logo-BcIv93ND.js +0 -17
  1244. package/dist/types/components/Business/forms/AdditionalInformation/AdditionalInformationMultiform.d.ts +0 -9
  1245. package/dist/types/components/Business/forms/AdditionalInformation/VerifiedBusinessCard.d.ts +0 -9
  1246. package/dist/types/components/Business/forms/BasicInformation/BasicInformationMultiform.d.ts +0 -11
  1247. package/dist/types/components/Business/forms/BusinessDetails/BusinessDetails.d.ts +0 -3
  1248. package/dist/types/components/Business/forms/BusinessSelection/BusinessSelectionMultiform.d.ts +0 -14
  1249. package/dist/types/components/Business/forms/CompanyStructure/CompanyStructureMultiform.d.ts +0 -4
  1250. package/dist/types/components/Business/tasks/BusinessDetailsDropin/mandatoryFields.d.ts +0 -3
  1251. package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/BusinessDetailsMultiformDropin.d.ts +0 -5
  1252. package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/types.d.ts +0 -2
  1253. package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/utils.d.ts +0 -19
  1254. package/dist/types/components/Individual/fields/DecisionMakerRole/DecisionMakerRole.d.ts +0 -3
  1255. package/dist/types/components/Individual/fields/DecisionMakerRole/NomineeDecisionMakerRole.d.ts +0 -10
  1256. package/dist/types/components/Individual/fields/DecisionMakerRole/types.d.ts +0 -23
  1257. package/dist/types/components/Individual/fields/LocalizedNameFields/types.d.ts +0 -9
  1258. package/dist/types/components/Individual/fields/NameFields/validate.d.ts +0 -4
  1259. package/dist/types/components/Individual/forms/Individual/IdDocumentUpload/IdDocumentAlreadyUpload.d.ts +0 -2
  1260. package/dist/types/components/Individual/forms/Individual/IdDocumentUpload/IdDocumentInstantVerification.d.ts +0 -3
  1261. package/dist/types/components/Individual/forms/Individual/IdDocumentUpload/IdDocumentUpload.d.ts +0 -3
  1262. package/dist/types/components/Individual/forms/Individual/IdDocumentUpload/types.d.ts +0 -53
  1263. package/dist/types/components/Individual/forms/Individual/IdDocumentUpload/utils.d.ts +0 -3
  1264. package/dist/types/components/Individual/forms/Individual/IdVerificationMethod/IdVerificationMethod.d.ts +0 -3
  1265. package/dist/types/components/Individual/forms/Individual/IdVerificationMethod/idVerificationMethodMetadata.d.ts +0 -15
  1266. package/dist/types/components/Individual/forms/Individual/IdVerificationMethod/types.d.ts +0 -14
  1267. package/dist/types/components/Individual/forms/Individual/Individual.d.ts +0 -9
  1268. package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/Identity.d.ts +0 -2
  1269. package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/IdentityAu/IdentityAu.d.ts +0 -2
  1270. package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/IdentityAu/validate.d.ts +0 -3
  1271. package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/IdentityHK/IdentityHK.d.ts +0 -2
  1272. package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/IdentityHK/validate.d.ts +0 -3
  1273. package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/IdentityNZ/IdentityNZ.d.ts +0 -2
  1274. package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/IdentityNZ/validate.d.ts +0 -3
  1275. package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/TypeOfIdentity/index.d.ts +0 -11
  1276. package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/identityUS/IdentityUS.d.ts +0 -4
  1277. package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/types.d.ts +0 -14
  1278. package/dist/types/components/Individual/forms/Individual/PersonalDetails/PersonalDetails.d.ts +0 -3
  1279. package/dist/types/components/Individual/forms/Individual/PersonalDetails/types.d.ts +0 -39
  1280. package/dist/types/components/Individual/forms/Individual/PersonalDetails/validate.d.ts +0 -21
  1281. package/dist/types/components/Individual/forms/Individual/ProofOfRelationship/types.d.ts +0 -14
  1282. package/dist/types/components/Individual/forms/Individual/ProofOfResidency/types.d.ts +0 -39
  1283. package/dist/types/components/Individual/forms/Individual/rules.d.ts +0 -40
  1284. package/dist/types/components/Individual/forms/Individual/types.d.ts +0 -51
  1285. package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/AdditionalPersonalDetails.types.d.ts +0 -29
  1286. package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/Identity/Identity.types.d.ts +0 -13
  1287. package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/Identity/TypeOfIdentity/index.d.ts +0 -11
  1288. package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/Identity/validate.d.ts +0 -4
  1289. package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/validate.d.ts +0 -22
  1290. package/dist/types/components/Individual/forms/IndividualOnfido/BasicDetails/BasicDetails.types.d.ts +0 -22
  1291. package/dist/types/components/Individual/forms/IndividualOnfido/BasicDetails/validate.d.ts +0 -6
  1292. package/dist/types/components/Individual/forms/IndividualOnfido/DataConflictsModal/ConflictRow.d.ts +0 -12
  1293. package/dist/types/components/Individual/forms/IndividualOnfido/DataConflictsModal/DataConflictsModal.d.ts +0 -24
  1294. package/dist/types/components/Individual/forms/IndividualOnfido/IdNowVerificationModal/isIdNowModalOpen.d.ts +0 -17
  1295. package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/IdVerificationMethod.types.d.ts +0 -20
  1296. package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/OnfidoVerificationModal/OnfidoVerificationModal.d.ts +0 -7
  1297. package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/UploadedDocument/UploadedDocument.d.ts +0 -7
  1298. package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/individualOnfidoConflictsSchema.d.ts +0 -46
  1299. package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/mapExtractionResultToSchema.d.ts +0 -4
  1300. package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/validateExtractionResult.d.ts +0 -12
  1301. package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.d.ts +0 -52
  1302. package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.rules.d.ts +0 -46
  1303. package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.types.d.ts +0 -59
  1304. package/dist/types/components/Individual/forms/IndividualOnfido/SignatoryQuestionnaire/SignatoryQuestionnaire.types.d.ts +0 -6
  1305. package/dist/types/components/Individual/forms/IndividualOnfido/UboQuestionnaire/UboQuestionnaire.types.d.ts +0 -13
  1306. package/dist/types/components/Individual/forms/IndividualOnfido/UboQuestionnaire/UboQuestionnaireModalContent.d.ts +0 -7
  1307. package/dist/types/components/Individual/helpers/isOnfidoAutofillFlowEnabled.d.ts +0 -4
  1308. package/dist/types/components/Individual/mapping/adjustIdentificationData.d.ts +0 -3
  1309. package/dist/types/components/Individual/mapping/getIdentityTypeToApiIdentityTypeMap.d.ts +0 -3
  1310. package/dist/types/components/Individual/mapping/individualOnfidoKeyMappings.d.ts +0 -8
  1311. package/dist/types/components/Individual/mapping/mapIndividualOnfidoSchemaToLegalEntity.d.ts +0 -5
  1312. package/dist/types/components/Individual/mapping/mapIndividualToLegalEntity.d.ts +0 -3
  1313. package/dist/types/components/Individual/mapping/mapLegalEntityToIndividual.d.ts +0 -3
  1314. package/dist/types/components/Individual/mapping/mapLegalEntityToIndividualOnfidoSchema.d.ts +0 -3
  1315. package/dist/types/components/Individual/tasks/IndividualOnfidoDropin/IndividualOnfidoDropin.d.ts +0 -2
  1316. package/dist/types/components/Individual/tasks/IndividualOnfidoDropin/individualOnfidoFormConfig.d.ts +0 -4
  1317. package/dist/types/components/Shared/forms/BusinessTypeSelection/EntityTypeRadioGroupCard.d.ts +0 -11
  1318. package/dist/types/components/Shared/forms/FinancialInformation/formatFinancialInformationSummary.d.ts +0 -4
  1319. package/dist/types/components/Shared/forms/FinancialInformation/mapping/mapFinancialInformationToFinancialReport.d.ts +0 -3
  1320. package/dist/types/components/Shared/forms/FinancialInformation/mapping/mapFinancialReportsToFinancialInformation.d.ts +0 -3
  1321. package/dist/types/components/Shared/tasks/TaskList/utils.d.ts +0 -8
  1322. package/dist/types/components/ui/molecules/Card/Card.d.ts +0 -3
  1323. package/dist/types/components/ui/molecules/Card/types.d.ts +0 -26
  1324. package/dist/types/embeds/EmbedBaseElement.d.ts +0 -41
  1325. package/dist/types/embeds/EmbedCore.d.ts +0 -22
  1326. package/dist/types/embeds/business-financing/AdyenBusinessFinancing.d.ts +0 -13
  1327. package/dist/types/embeds/individual-configuration/AdyenIndividual.d.ts +0 -12
  1328. package/dist/types/embeds/individual-status/AdyenManageIndividual.d.ts +0 -12
  1329. package/dist/types/embeds/onboarding/AdyenOnboarding.d.ts +0 -12
  1330. package/dist/types/embeds/terms-of-service-management/AdyenTermsOfService.d.ts +0 -12
  1331. package/dist/types/embeds/terms-of-service-status/AdyenManageTermsOfService.d.ts +0 -12
  1332. package/dist/types/embeds/transfer-instrument-configuration/AdyenTransferInstrument.d.ts +0 -16
  1333. package/dist/types/embeds/transfer-instrument-management/AdyenManageTransferInstrument.d.ts +0 -14
  1334. package/dist/types/embeds/verification-status/AdyenVerificationStatus.d.ts +0 -20
  1335. package/dist/types-C972Lk6s.js +0 -34
  1336. package/dist/types-CLz74bOT.js +0 -88
  1337. package/dist/types-Ctv8hbzY.js +0 -74
  1338. package/dist/types-f66rmUFy.js +0 -164
  1339. package/dist/upload-BF65P4KM.js +0 -17
  1340. package/dist/us-check-CYY6Crhr.js +0 -46
  1341. package/dist/us-check-account-number-C7KE5YzX.js +0 -48
  1342. package/dist/us-check-routing-number-DUbhsYAR.js +0 -49
  1343. package/dist/useAssociatedLegalEntity-DAB1oG6O.js +0 -33
  1344. package/dist/useCreateLegalEntity-BK5YcHA-.js +0 -31
  1345. package/dist/useDataset-BtfHQp4w.js +0 -220
  1346. package/dist/useForm-wQyeWa1b.js +0 -1623
  1347. package/dist/useGlobalData-B33uuhtd.js +0 -68
  1348. package/dist/useMultiForm-rZmCYsI4.js +0 -864
  1349. package/dist/useOnboardingStatus-BbIpiZR4.js +0 -27
  1350. package/dist/useScenarios-DPOodENA.js +0 -46
  1351. package/dist/useTermsOfServiceStatus-DKeMR4Xi.js +0 -42
  1352. package/dist/useToastContext-BK9oGWtb.js +0 -60
  1353. package/dist/useUnincorporatedPartnershipMembers-Cdts5Hbn.js +0 -99
  1354. package/dist/useUpdateBusinessLines-CWYtpMwr.js +0 -46
  1355. package/dist/useUpdateLegalEntity-oa8qEzc4.js +0 -39
  1356. package/dist/utils-AP5TpAhf.js +0 -774
  1357. package/dist/utils-COz1RbbA.js +0 -237
  1358. package/dist/validate-BYwVLb-X.js +0 -41
  1359. package/dist/validate-CBVdP51L.js +0 -100
  1360. package/dist/validationError-CvZLhw5H.js +0 -86
  1361. package/dist/warning-circle-fill-CEN1WL7A.js +0 -17
  1362. package/dist/warning-diamond-filled-BfXMlVrG.js +0 -17
  1363. package/dist/webinar-DqjqrNEv.js +0 -22
  1364. package/dist/yapily-logo-CZ4ywjwA.js +0 -17
  1365. /package/dist/types/components/{Shared → Apps}/tasks/TaskList/PayoutAccountTaskListItem.d.ts +0 -0
  1366. /package/dist/types/components/{Shared → Apps}/tasks/TaskList/TaskList.d.ts +0 -0
  1367. /package/dist/types/components/{Shared → Apps}/tasks/TaskList/TaskListGroup.d.ts +0 -0
  1368. /package/dist/types/components/{Shared → Apps}/tasks/TaskList/TaskListItem.d.ts +0 -0
  1369. /package/dist/types/components/{Shared → Apps}/tasks/TaskList/types.d.ts +0 -0
  1370. /package/dist/types/components/Business/{tasks/BusinessDetailsMultiformDropin → forms/BusinessDetails}/BusinessDetailsMultiform.d.ts +0 -0
  1371. /package/dist/types/components/{Shared → Business}/forms/FinancialInformation/FinancialInformation.d.ts +0 -0
  1372. /package/dist/types/components/{Shared → Business}/forms/FinancialInformation/ReportedValue.d.ts +0 -0
  1373. /package/dist/types/components/{Shared → Business}/forms/FinancialInformation/types.d.ts +0 -0
  1374. /package/dist/types/components/{Shared → Business}/forms/FinancialInformation/validate.d.ts +0 -0
  1375. /package/dist/types/components/Business/tasks/{BusinessDetailsMultiformDropin → BusinessDetailsDropin}/validate.d.ts +0 -0
  1376. /package/dist/types/components/Individual/forms/{IndividualOnfido/AdditionalPersonalDetails → AdditionalPersonalDetails}/AdditionalPersonalDetails.d.ts +0 -0
  1377. /package/dist/types/components/Individual/forms/{IndividualOnfido/AdditionalPersonalDetails → AdditionalPersonalDetails}/Identity/Identity.d.ts +0 -0
  1378. /package/dist/types/components/Individual/forms/{IndividualOnfido/BasicDetails → BasicDetails}/BasicDetails.d.ts +0 -0
  1379. /package/dist/types/components/Individual/forms/{IndividualOnfido/GuidanceQuestion → GuidanceQuestion}/GuidanceQuestion.d.ts +0 -0
  1380. /package/dist/types/components/Individual/forms/{Individual/IdDocumentUpload → IdDocumentUpload}/IdDocumentManualUpload.d.ts +0 -0
  1381. /package/dist/types/components/Individual/forms/{IndividualOnfido/IdNowVerificationModal → IdNowVerificationModal}/IdNowVerificationModal.d.ts +0 -0
  1382. /package/dist/types/components/Individual/forms/{Individual/IdVerification → IdVerification}/IdVerification.d.ts +0 -0
  1383. /package/dist/types/components/Individual/forms/{Individual/IdVerification → IdVerification}/idVerificationProviderId.d.ts +0 -0
  1384. /package/dist/types/components/Individual/forms/{Individual/IdVerification → IdVerification}/types.d.ts +0 -0
  1385. /package/dist/types/components/Individual/forms/{IndividualOnfido/IdVerificationMethod → IdVerificationMethod}/IdVerificationMethod.d.ts +0 -0
  1386. /package/dist/types/components/Individual/forms/{IndividualOnfido/ManualIdUpload → ManualIdUpload}/ManualIdUpload.d.ts +0 -0
  1387. /package/dist/types/components/Individual/forms/{Individual/ProofOfRelationship → ProofOfRelationship}/index.d.ts +0 -0
  1388. /package/dist/types/components/Individual/forms/{Individual/ProofOfResidency → ProofOfResidency}/ProofOfResidency.d.ts +0 -0
  1389. /package/dist/types/components/Individual/forms/{IndividualOnfido/SignatoryQuestionnaire → SignatoryQuestionnaire}/SignatoryQuestionnaire.d.ts +0 -0
  1390. /package/dist/types/components/Individual/forms/{IndividualOnfido/SignatoryQuestionnaire → SignatoryQuestionnaire}/SignatoryQuestionnaireModalContent.d.ts +0 -0
  1391. /package/dist/types/components/Individual/forms/{IndividualOnfido/UboQuestionnaire → UboQuestionnaire}/UboQuestionnaire.d.ts +0 -0
  1392. /package/dist/types/components/Individual/tasks/{IndividualOnfidoDropin/IndividualOnfidoStore.d.ts → IndividualDropin/IndividualStore.d.ts} +0 -0
  1393. /package/dist/types/components/{Individual → Shared}/fields/LocalizedNameFields/LocalizedNameFields.d.ts +0 -0
@@ -0,0 +1,3735 @@
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] = "21181199-7854-456d-acd4-87460a00d20e", e._sentryDebugIdIdentifier = "sentry-dbid-21181199-7854-456d-acd4-87460a00d20e");
6
+ } catch (e) {
7
+ }
8
+ }
9
+ ;
10
+ import { bb as getNestedPropertyKeys, a0 as CountryCodes, o as LegalEntityTypes, a6 as objectsDeepEqual, u as useTranslation, c as useLegalEntity, R as ROOT_LE, j as TaskTypes, aD as keysOf, v as useExperimentsContext, m as useAccountHolder } from "./StoreProvider-qjyWZhxu.js";
11
+ import { jsxs, jsx, Fragment } from "preact/jsx-runtime";
12
+ import { memo } from "preact/compat";
13
+ import { useState, useRef, useEffect, useCallback, useMemo } from "preact/hooks";
14
+ import { F as Field } from "./Field-CpaVW2RZ.js";
15
+ import { H as Header } from "./Header-hKHJmYRN.js";
16
+ import { S as Select } from "./Select-Cb77B0ji.js";
17
+ import { T as TextArea } from "./TextArea-B4QNgWAM.js";
18
+ import { S as StateContextSetter } from "./validate-BnkIeDb7.js";
19
+ import { u as useForm } from "./useForm-CsrT0zKF.js";
20
+ import { u as uppercase, D as DocumentGuidance } from "./mapExistingFile-1MUQJf2c.js";
21
+ import { D as Dropzone } from "./Dropzone-DMzbyRRZ.js";
22
+ import { E as ErrorPanel } from "./ErrorPanel-Doqj6bY8.js";
23
+ import { c as createFormUtils } from "./formUtils-BYIcPMjp.js";
24
+ import { C as Checkbox } from "./Checkbox-BSxszx-9.js";
25
+ import { C as CompanyTypesValues } from "./company-types-value-D_mKv5PT.js";
26
+ import { m as makeMask, n as numericInputs, a as nonInputs, d as alphanumericInputs, c as customInputs, b as alphaInputs, s as spacer, M as MaskedInput } from "./MaskedInput-DEaltj9a.js";
27
+ import { S as SettingNames } from "./TaskVerificationStatus-DOZKjK09.js";
28
+ import { C as COUNTRIES_WITH_STATES_DATASET } from "./utils-BiqRkf5f.js";
29
+ import { c as createFormRules } from "./form-rules-DhbF2mY4.js";
30
+ import { i as isJapanLocalizationEnabled } from "./japanSupportUtils-vwyJ0OrD.js";
31
+ import { i as isDateOlderThanAYear } from "./Address-CbJvGOYV.js";
32
+ import { v as validatePatternOnBlur, a as validateNotEmptyOnBlur } from "./patternValidators-Ddoxs0Q5.js";
33
+ import { R as RadioGroup } from "./RadioGroup-B7fMJqmd.js";
34
+ const getFieldsWithExistingData = (legalEntity, keyMapping, documentMapping, knownProblematicFields = []) => {
35
+ const apiFieldsWithExistingData = getNestedPropertyKeys(legalEntity);
36
+ const nonDocumentFields = apiFieldsWithExistingData.map((field) => keyMapping[field]).filter(Boolean).filter((field) => !knownProblematicFields.includes(field));
37
+ if (documentMapping && legalEntity.documentDetails?.length) {
38
+ const documentFields = legalEntity.documentDetails.map((document) => documentMapping[document.type]).filter(Boolean);
39
+ return [...nonDocumentFields, ...documentFields];
40
+ }
41
+ return nonDocumentFields;
42
+ };
43
+ const StateCodesUS = {
44
+ Alabama: "AL",
45
+ Alaska: "AK",
46
+ Arizona: "AZ",
47
+ Arkansas: "AR",
48
+ California: "CA",
49
+ Colorado: "CO",
50
+ Connecticut: "CT",
51
+ Delaware: "DE",
52
+ DistrictOfColumbia: "DC",
53
+ Florida: "FL",
54
+ Georgia: "GA",
55
+ Hawaii: "HI",
56
+ Idaho: "ID",
57
+ Illinois: "IL",
58
+ Indiana: "IN",
59
+ Iowa: "IA",
60
+ Kansas: "KS",
61
+ Kentucky: "KY",
62
+ Louisiana: "LA",
63
+ Maine: "ME",
64
+ Maryland: "MD",
65
+ Massachusetts: "MA",
66
+ Michigan: "MI",
67
+ Minnesota: "MN",
68
+ Mississippi: "MS",
69
+ Missouri: "MO",
70
+ Montana: "MT",
71
+ Nebraska: "NE",
72
+ Nevada: "NV",
73
+ NewHampshire: "NH",
74
+ NewJersey: "NJ",
75
+ NewMexico: "NM",
76
+ NewYork: "NY",
77
+ NorthCarolina: "NC",
78
+ NorthDakota: "ND",
79
+ Ohio: "OH",
80
+ Oklahoma: "OK",
81
+ Oregon: "OR",
82
+ Pennsylvania: "PA",
83
+ RhodeIsland: "RI",
84
+ SouthCarolina: "SC",
85
+ SouthDakota: "SD",
86
+ Tennessee: "TN",
87
+ Texas: "TX",
88
+ Utah: "UT",
89
+ Vermont: "VT",
90
+ Virginia: "VA",
91
+ Washington: "WA",
92
+ WestVirginia: "WV",
93
+ Wisconsin: "WI",
94
+ Wyoming: "WY"
95
+ };
96
+ const businessRegistrationNumberMasks = {
97
+ [CountryCodes.Austria]: {
98
+ firmenbuchnummer: {
99
+ mask: makeMask(
100
+ {
101
+ type: "input",
102
+ allow: /[TF]/
103
+ },
104
+ {
105
+ type: "input",
106
+ allow: /N/,
107
+ optional: true
108
+ },
109
+ ...numericInputs(3),
110
+ ...numericInputs(3, true),
111
+ { type: "input", allow: /[a-z]/ }
112
+ )
113
+ },
114
+ ZVR: {
115
+ mask: makeMask(
116
+ ...nonInputs("AT", { includeInValue: true }),
117
+ spacer,
118
+ ...nonInputs("-", { includeInValue: true }),
119
+ spacer,
120
+ ...nonInputs("ZVR", { includeInValue: true }),
121
+ spacer,
122
+ ...nonInputs("-", { includeInValue: true }),
123
+ spacer,
124
+ ...numericInputs(9),
125
+ ...numericInputs(1, true)
126
+ )
127
+ }
128
+ },
129
+ [CountryCodes.Australia]: {
130
+ default: {
131
+ mask: makeMask(...numericInputs(3), spacer, ...numericInputs(3), spacer, ...numericInputs(3))
132
+ },
133
+ associationIncorporated: {
134
+ mask: makeMask(...alphanumericInputs(3), ...alphanumericInputs(20, true)),
135
+ transformOnType: uppercase
136
+ }
137
+ },
138
+ [CountryCodes.Belgium]: { default: { mask: makeMask(...numericInputs(10)) } },
139
+ [CountryCodes.Brazil]: {
140
+ default: {
141
+ mask: makeMask(
142
+ ...numericInputs(2),
143
+ ...nonInputs(" . "),
144
+ ...numericInputs(3),
145
+ ...nonInputs(" . "),
146
+ ...numericInputs(3),
147
+ ...nonInputs(" / "),
148
+ ...numericInputs(4),
149
+ ...nonInputs(" - "),
150
+ ...numericInputs(2)
151
+ )
152
+ }
153
+ },
154
+ [CountryCodes.Bulgaria]: { default: { mask: makeMask(...numericInputs(9)) } },
155
+ [CountryCodes.Canada]: {
156
+ default: {
157
+ mask: makeMask(...alphanumericInputs(5), ...alphanumericInputs(5, true)),
158
+ transformOnType: uppercase
159
+ }
160
+ },
161
+ [CountryCodes.Croatia]: {
162
+ default: {
163
+ mask: makeMask(...numericInputs(9))
164
+ },
165
+ [CompanyTypesValues.SOLE_PROPRIETORSHIP]: {
166
+ mask: makeMask(...numericInputs(8))
167
+ }
168
+ },
169
+ [CountryCodes.Cyprus]: {
170
+ default: {
171
+ mask: makeMask(...customInputs(1, /^[COP]$/), ...numericInputs(1), ...numericInputs(7, true)),
172
+ transformOnType: uppercase
173
+ }
174
+ },
175
+ [CountryCodes.CzechRepublic]: {
176
+ default: { mask: makeMask(...numericInputs(8), ...numericInputs(2, true)) }
177
+ },
178
+ [CountryCodes.Denmark]: { default: { mask: makeMask(...numericInputs(8)) } },
179
+ [CountryCodes.Estonia]: { default: { mask: makeMask(...numericInputs(8)) } },
180
+ [CountryCodes.Finland]: {
181
+ default: {
182
+ mask: makeMask(
183
+ ...numericInputs(7),
184
+ spacer,
185
+ ...nonInputs("-", { includeInValue: true }),
186
+ spacer,
187
+ ...numericInputs(1)
188
+ )
189
+ }
190
+ },
191
+ [CountryCodes.France]: {
192
+ SIRET: { mask: makeMask(...numericInputs(9), ...nonInputs(" - "), ...numericInputs(5)) },
193
+ RNA: {
194
+ mask: makeMask(
195
+ ...nonInputs("W", { includeInValue: true }),
196
+ ...numericInputs(1),
197
+ ...alphanumericInputs(1),
198
+ ...numericInputs(7)
199
+ )
200
+ }
201
+ },
202
+ [CountryCodes.Germany]: {
203
+ default: {
204
+ mask: makeMask(...alphanumericInputs(3), ...customInputs(17, /[A-Z0-9-]/, true)),
205
+ transformOnType: uppercase
206
+ }
207
+ },
208
+ [CountryCodes.Gibraltar]: {
209
+ default: {
210
+ mask: makeMask(...alphanumericInputs(1), ...alphanumericInputs(7, true)),
211
+ transformOnType: uppercase
212
+ }
213
+ },
214
+ [CountryCodes.Greece]: { default: { mask: makeMask(...numericInputs(12)) } },
215
+ [CountryCodes.Guernsey]: {
216
+ default: { mask: makeMask(...numericInputs(1), ...numericInputs(8, true)) }
217
+ },
218
+ [CountryCodes.HongKong]: { default: { mask: makeMask(...numericInputs(7)) } },
219
+ [CountryCodes.Hungary]: {
220
+ default: {
221
+ mask: makeMask(
222
+ ...numericInputs(2),
223
+ ...nonInputs(" - "),
224
+ ...numericInputs(2),
225
+ ...nonInputs(" - "),
226
+ ...numericInputs(6)
227
+ )
228
+ },
229
+ nyilvantartasiSzam: {
230
+ mask: makeMask(...numericInputs(10))
231
+ }
232
+ },
233
+ [CountryCodes.Ireland]: {
234
+ default: { mask: makeMask(...numericInputs(1), ...numericInputs(7, true)) }
235
+ },
236
+ [CountryCodes.IsleOfMan]: {
237
+ default: { mask: makeMask(...numericInputs(6), ...alphaInputs(1)), transformOnType: uppercase }
238
+ },
239
+ [CountryCodes.Italy]: {
240
+ partitaIVA: { mask: makeMask(...numericInputs(11)) },
241
+ CCIAA: {
242
+ mask: makeMask(...alphaInputs(2), ...numericInputs(6), ...numericInputs(1, true)),
243
+ transformOnType: uppercase
244
+ }
245
+ },
246
+ [CountryCodes.Japan]: {
247
+ default: { mask: makeMask(...numericInputs(12)) }
248
+ },
249
+ [CountryCodes.Jersey]: {
250
+ default: {
251
+ mask: makeMask(...alphanumericInputs(1), ...alphanumericInputs(8, true)),
252
+ transformOnType: uppercase
253
+ }
254
+ },
255
+ [CountryCodes.Latvia]: { default: { mask: makeMask(...numericInputs(11)) } },
256
+ [CountryCodes.Liechtenstein]: {
257
+ default: {
258
+ mask: makeMask(
259
+ ...nonInputs("FL", { includeInValue: true }),
260
+ spacer,
261
+ ...nonInputs("-", { includeInValue: true }),
262
+ spacer,
263
+ ...numericInputs(4),
264
+ spacer,
265
+ ...nonInputs(".", { includeInValue: true }),
266
+ spacer,
267
+ ...numericInputs(3),
268
+ spacer,
269
+ ...nonInputs(".", { includeInValue: true }),
270
+ spacer,
271
+ ...numericInputs(3),
272
+ spacer,
273
+ ...nonInputs("-", { includeInValue: true }),
274
+ spacer,
275
+ ...numericInputs(1)
276
+ )
277
+ }
278
+ },
279
+ [CountryCodes.Lithuania]: {
280
+ default: { mask: makeMask(...numericInputs(6), ...numericInputs(3, true)) }
281
+ },
282
+ [CountryCodes.Luxembourg]: {
283
+ default: {
284
+ mask: makeMask(...alphaInputs(1), ...numericInputs(9, true)),
285
+ transformOnType: uppercase
286
+ }
287
+ },
288
+ [CountryCodes.Malaysia]: {
289
+ default: { mask: makeMask(...numericInputs(7), ...numericInputs(5, true)) }
290
+ },
291
+ [CountryCodes.Malta]: {
292
+ default: {
293
+ mask: makeMask(
294
+ ...customInputs(1, /[CP]/),
295
+ spacer,
296
+ ...numericInputs(4),
297
+ ...numericInputs(2, true)
298
+ ),
299
+ transformOnType: uppercase
300
+ }
301
+ },
302
+ [CountryCodes.Mexico]: { default: { mask: makeMask(...alphanumericInputs(12)) } },
303
+ [CountryCodes.Monaco]: {
304
+ default: {
305
+ mask: makeMask(...alphanumericInputs(8), ...alphanumericInputs(3, true)),
306
+ transformOnType: uppercase
307
+ },
308
+ [CompanyTypesValues.SOLE_PROPRIETORSHIP]: {
309
+ mask: makeMask(...alphanumericInputs(8), ...alphanumericInputs(3, true)),
310
+ transformOnType: uppercase
311
+ }
312
+ },
313
+ [CountryCodes.Netherlands]: { default: { mask: makeMask(...numericInputs(8)) } },
314
+ [CountryCodes.NewZealand]: {
315
+ NZBN: { mask: makeMask(...numericInputs(13)) },
316
+ companyNumberNZ: { mask: makeMask(...numericInputs(7)) }
317
+ },
318
+ [CountryCodes.Norway]: { default: { mask: makeMask(...numericInputs(9)) } },
319
+ [CountryCodes.Poland]: {
320
+ krsNumber: { mask: makeMask(...numericInputs(10)) },
321
+ regon: { mask: makeMask(...numericInputs(9)) }
322
+ },
323
+ [CountryCodes.Portugal]: { default: { mask: makeMask(...numericInputs(9)) } },
324
+ [CountryCodes.Romania]: {
325
+ roRegNumberOldFormat: {
326
+ mask: makeMask(
327
+ ...alphaInputs(1),
328
+ ...numericInputs(1),
329
+ ...numericInputs(1, true),
330
+ ...customInputs(1, /[/]/),
331
+ ...numericInputs(1),
332
+ ...numericInputs(8, true),
333
+ ...customInputs(1, /[/]/),
334
+ ...numericInputs(4)
335
+ ),
336
+ transformOnType: uppercase
337
+ },
338
+ roRegNumberNewFormat: {
339
+ mask: makeMask(
340
+ {
341
+ type: "input",
342
+ allow: /[JFC]/
343
+ },
344
+ ...numericInputs(13)
345
+ ),
346
+ transformOnType: uppercase
347
+ }
348
+ },
349
+ [CountryCodes.Singapore]: {
350
+ default: {
351
+ mask: makeMask(...alphanumericInputs(9), ...alphanumericInputs(1, true)),
352
+ transformOnType: uppercase
353
+ }
354
+ },
355
+ [CountryCodes.Slovakia]: { default: { mask: makeMask(...numericInputs(8)) } },
356
+ [CountryCodes.Slovenia]: { default: { mask: makeMask(...numericInputs(10)) } },
357
+ [CountryCodes.Spain]: {
358
+ default: {
359
+ mask: makeMask(...alphaInputs(1), ...alphanumericInputs(8)),
360
+ transformOnType: uppercase
361
+ }
362
+ },
363
+ [CountryCodes.Sweden]: {
364
+ default: { mask: makeMask(...numericInputs(6), ...nonInputs(" - "), ...numericInputs(4)) }
365
+ },
366
+ [CountryCodes.Switzerland]: {
367
+ default: {
368
+ mask: makeMask(
369
+ ...nonInputs("CHE", { includeInValue: true }),
370
+ ...nonInputs(" - "),
371
+ ...numericInputs(3),
372
+ ...nonInputs(" . "),
373
+ ...numericInputs(3),
374
+ ...nonInputs(" . "),
375
+ ...numericInputs(3)
376
+ )
377
+ }
378
+ },
379
+ [CountryCodes.UnitedKingdom]: {
380
+ default: { mask: makeMask(...alphanumericInputs(8)), transformOnType: uppercase },
381
+ nonProfit: {
382
+ mask: makeMask(
383
+ ...alphanumericInputs(6),
384
+ ...customInputs(1, /[a-zA-Z0-9-]/, true),
385
+ ...alphanumericInputs(1, true)
386
+ ),
387
+ transformOnType: uppercase
388
+ }
389
+ },
390
+ [CountryCodes.UnitedStates]: {
391
+ [StateCodesUS.Alabama]: {
392
+ mask: makeMask(...numericInputs(9), ...nonInputs(" "), ...nonInputs(StateCodesUS.Alabama)),
393
+ transformOnType: uppercase
394
+ },
395
+ [StateCodesUS.Alaska]: {
396
+ mask: makeMask(...numericInputs(8), ...nonInputs(" "), ...nonInputs(StateCodesUS.Alaska)),
397
+ transformOnType: uppercase
398
+ },
399
+ [StateCodesUS.Arizona]: {
400
+ mask: makeMask(...numericInputs(8), ...nonInputs(" "), ...nonInputs(StateCodesUS.Arizona)),
401
+ transformOnType: uppercase
402
+ },
403
+ [StateCodesUS.Arkansas]: {
404
+ mask: makeMask(
405
+ {
406
+ type: "input",
407
+ allow: /[8]/
408
+ },
409
+ ...numericInputs(8),
410
+ ...nonInputs(" "),
411
+ ...nonInputs(StateCodesUS.Arkansas)
412
+ ),
413
+ transformOnType: uppercase
414
+ },
415
+ [StateCodesUS.California]: {
416
+ mask: makeMask(
417
+ ...numericInputs(7),
418
+ ...numericInputs(5, true),
419
+ ...nonInputs(" "),
420
+ ...nonInputs(StateCodesUS.California)
421
+ ),
422
+ transformOnType: uppercase
423
+ },
424
+ [StateCodesUS.Colorado]: {
425
+ mask: makeMask(...numericInputs(11), ...nonInputs(" "), ...nonInputs(StateCodesUS.Colorado)),
426
+ transformOnType: uppercase
427
+ },
428
+ [StateCodesUS.Connecticut]: {
429
+ mask: makeMask(
430
+ ...numericInputs(7),
431
+ ...nonInputs(" "),
432
+ ...nonInputs(StateCodesUS.Connecticut)
433
+ ),
434
+ transformOnType: uppercase
435
+ },
436
+ [StateCodesUS.Delaware]: {
437
+ mask: makeMask(...numericInputs(7), ...nonInputs(" "), ...nonInputs(StateCodesUS.Delaware)),
438
+ transformOnType: uppercase
439
+ },
440
+ [StateCodesUS.Florida]: {
441
+ mask: makeMask(
442
+ ...numericInputs(6),
443
+ ...numericInputs(6, true),
444
+ ...nonInputs(" "),
445
+ ...nonInputs(StateCodesUS.Florida)
446
+ ),
447
+ transformOnType: uppercase
448
+ },
449
+ [StateCodesUS.Georgia]: {
450
+ mask: makeMask(...numericInputs(8), ...nonInputs(" "), ...nonInputs(StateCodesUS.Georgia)),
451
+ transformOnType: uppercase
452
+ },
453
+ [StateCodesUS.Hawaii]: {
454
+ mask: makeMask(
455
+ ...numericInputs(5),
456
+ ...numericInputs(3, true),
457
+ {
458
+ type: "input",
459
+ allow: /[CDFLNPTZ]/
460
+ },
461
+ {
462
+ type: "input",
463
+ allow: /[1-8Z]/
464
+ },
465
+ ...nonInputs(" "),
466
+ ...nonInputs(StateCodesUS.Hawaii)
467
+ ),
468
+ transformOnType: uppercase
469
+ },
470
+ [StateCodesUS.Idaho]: {
471
+ mask: makeMask(...numericInputs(6), ...nonInputs(" "), ...nonInputs(StateCodesUS.Idaho)),
472
+ transformOnType: uppercase
473
+ },
474
+ [StateCodesUS.Illinois]: {
475
+ mask: makeMask(...numericInputs(8), ...nonInputs(" "), ...nonInputs(StateCodesUS.Illinois)),
476
+ transformOnType: uppercase
477
+ },
478
+ [StateCodesUS.Indiana]: {
479
+ mask: makeMask(...numericInputs(10), ...nonInputs(" "), ...nonInputs(StateCodesUS.Indiana)),
480
+ transformOnType: uppercase
481
+ },
482
+ [StateCodesUS.Iowa]: {
483
+ mask: makeMask(
484
+ ...numericInputs(6),
485
+ ...numericInputs(2, true),
486
+ ...nonInputs(" "),
487
+ ...nonInputs(StateCodesUS.Iowa)
488
+ ),
489
+ transformOnType: uppercase
490
+ },
491
+ [StateCodesUS.Kansas]: {
492
+ mask: makeMask(
493
+ ...numericInputs(7),
494
+ ...numericInputs(2, true),
495
+ ...nonInputs(" "),
496
+ ...nonInputs(StateCodesUS.Kansas)
497
+ ),
498
+ transformOnType: uppercase
499
+ },
500
+ [StateCodesUS.Kentucky]: {
501
+ mask: makeMask(
502
+ ...numericInputs(9),
503
+ ...numericInputs(1, true),
504
+ ...nonInputs(" "),
505
+ ...nonInputs(StateCodesUS.Kentucky)
506
+ ),
507
+ transformOnType: uppercase
508
+ },
509
+ [StateCodesUS.Louisiana]: {
510
+ mask: makeMask(
511
+ ...numericInputs(9),
512
+ ...numericInputs(1, true),
513
+ ...nonInputs(" "),
514
+ ...nonInputs(StateCodesUS.Louisiana)
515
+ ),
516
+ transformOnType: uppercase
517
+ },
518
+ [StateCodesUS.Maine]: {
519
+ mask: makeMask(...numericInputs(8), ...nonInputs(" "), ...nonInputs(StateCodesUS.Maine)),
520
+ transformOnType: uppercase
521
+ },
522
+ [StateCodesUS.Maryland]: {
523
+ mask: makeMask(...numericInputs(8), ...nonInputs(" "), ...nonInputs(StateCodesUS.Maryland)),
524
+ transformOnType: uppercase
525
+ },
526
+ [StateCodesUS.Massachusetts]: {
527
+ mask: makeMask(
528
+ ...numericInputs(10),
529
+ ...nonInputs(" "),
530
+ ...nonInputs(StateCodesUS.Massachusetts)
531
+ ),
532
+ transformOnType: uppercase
533
+ },
534
+ [StateCodesUS.Michigan]: {
535
+ mask: makeMask(
536
+ ...numericInputs(6),
537
+ ...numericInputs(3, true),
538
+ ...nonInputs(" "),
539
+ ...nonInputs(StateCodesUS.Michigan)
540
+ ),
541
+ transformOnType: uppercase
542
+ },
543
+ [StateCodesUS.Minnesota]: {
544
+ mask: makeMask(...numericInputs(7), ...nonInputs(" "), ...nonInputs(StateCodesUS.Minnesota)),
545
+ transformOnType: uppercase
546
+ },
547
+ [StateCodesUS.Mississippi]: {
548
+ mask: makeMask(
549
+ ...numericInputs(7),
550
+ ...numericInputs(3, true),
551
+ ...nonInputs(" "),
552
+ ...nonInputs(StateCodesUS.Mississippi)
553
+ ),
554
+ transformOnType: uppercase
555
+ },
556
+ [StateCodesUS.Missouri]: {
557
+ mask: makeMask(...numericInputs(10), ...nonInputs(" "), ...nonInputs(StateCodesUS.Missouri)),
558
+ transformOnType: uppercase
559
+ },
560
+ [StateCodesUS.Montana]: {
561
+ mask: makeMask(...numericInputs(7), ...nonInputs(" "), ...nonInputs(StateCodesUS.Montana)),
562
+ transformOnType: uppercase
563
+ },
564
+ [StateCodesUS.Nebraska]: {
565
+ mask: makeMask(
566
+ ...numericInputs(9),
567
+ ...numericInputs(2, true),
568
+ ...nonInputs(" "),
569
+ ...nonInputs(StateCodesUS.Nebraska)
570
+ ),
571
+ transformOnType: uppercase
572
+ },
573
+ [StateCodesUS.Nevada]: {
574
+ mask: makeMask(
575
+ ...numericInputs(9),
576
+ ...numericInputs(2, true),
577
+ ...nonInputs(" "),
578
+ ...nonInputs(StateCodesUS.Nevada)
579
+ ),
580
+ transformOnType: uppercase
581
+ },
582
+ [StateCodesUS.NewHampshire]: {
583
+ mask: makeMask(
584
+ ...numericInputs(9),
585
+ ...nonInputs(" "),
586
+ ...nonInputs(StateCodesUS.NewHampshire)
587
+ ),
588
+ transformOnType: uppercase
589
+ },
590
+ [StateCodesUS.NewJersey]: {
591
+ mask: makeMask(...numericInputs(10), ...nonInputs(" "), ...nonInputs(StateCodesUS.NewJersey)),
592
+ transformOnType: uppercase
593
+ },
594
+ [StateCodesUS.NewMexico]: {
595
+ mask: makeMask(...numericInputs(6), ...nonInputs(" "), ...nonInputs(StateCodesUS.NewMexico)),
596
+ transformOnType: uppercase
597
+ },
598
+ [StateCodesUS.NewYork]: {
599
+ mask: makeMask(...numericInputs(7), ...nonInputs(" "), ...nonInputs(StateCodesUS.NewYork)),
600
+ transformOnType: uppercase
601
+ },
602
+ [StateCodesUS.NorthCarolina]: {
603
+ mask: makeMask(
604
+ ...numericInputs(7),
605
+ ...nonInputs(" "),
606
+ ...nonInputs(StateCodesUS.NorthCarolina)
607
+ ),
608
+ transformOnType: uppercase
609
+ },
610
+ [StateCodesUS.NorthDakota]: {
611
+ mask: makeMask(
612
+ ...numericInputs(7),
613
+ ...numericInputs(3, true),
614
+ ...nonInputs(" "),
615
+ ...nonInputs(StateCodesUS.NorthDakota)
616
+ ),
617
+ transformOnType: uppercase
618
+ },
619
+ [StateCodesUS.Ohio]: {
620
+ mask: makeMask(...numericInputs(10), ...nonInputs(" "), ...nonInputs(StateCodesUS.Ohio)),
621
+ transformOnType: uppercase
622
+ },
623
+ [StateCodesUS.Oklahoma]: {
624
+ mask: makeMask(...numericInputs(10), ...nonInputs(" "), ...nonInputs(StateCodesUS.Oklahoma)),
625
+ transformOnType: uppercase
626
+ },
627
+ [StateCodesUS.Oregon]: {
628
+ mask: makeMask(...numericInputs(9), ...nonInputs(" "), ...nonInputs(StateCodesUS.Oregon)),
629
+ transformOnType: uppercase
630
+ },
631
+ [StateCodesUS.Pennsylvania]: {
632
+ mask: makeMask(
633
+ ...numericInputs(7),
634
+ ...nonInputs(" "),
635
+ ...nonInputs(StateCodesUS.Pennsylvania)
636
+ ),
637
+ transformOnType: uppercase
638
+ },
639
+ [StateCodesUS.RhodeIsland]: {
640
+ mask: makeMask(
641
+ ...numericInputs(7),
642
+ ...nonInputs(" "),
643
+ ...nonInputs(StateCodesUS.RhodeIsland)
644
+ ),
645
+ transformOnType: uppercase
646
+ },
647
+ [StateCodesUS.SouthCarolina]: {
648
+ mask: makeMask(
649
+ ...numericInputs(7),
650
+ ...nonInputs(" "),
651
+ ...nonInputs(StateCodesUS.SouthCarolina)
652
+ ),
653
+ transformOnType: uppercase
654
+ },
655
+ [StateCodesUS.SouthDakota]: {
656
+ mask: makeMask(
657
+ ...numericInputs(7),
658
+ ...nonInputs(" "),
659
+ ...nonInputs(StateCodesUS.SouthDakota)
660
+ ),
661
+ transformOnType: uppercase
662
+ },
663
+ [StateCodesUS.Tennessee]: {
664
+ mask: makeMask(...numericInputs(6), ...nonInputs(" "), ...nonInputs(StateCodesUS.Tennessee)),
665
+ transformOnType: uppercase
666
+ },
667
+ [StateCodesUS.Texas]: {
668
+ mask: makeMask(...numericInputs(10), ...nonInputs(" "), ...nonInputs(StateCodesUS.Texas)),
669
+ transformOnType: uppercase
670
+ },
671
+ [StateCodesUS.Utah]: {
672
+ mask: makeMask(...numericInputs(7), ...nonInputs(" "), ...nonInputs(StateCodesUS.Utah)),
673
+ transformOnType: uppercase
674
+ },
675
+ [StateCodesUS.Vermont]: {
676
+ mask: makeMask(...numericInputs(6), ...nonInputs(" "), ...nonInputs(StateCodesUS.Vermont)),
677
+ transformOnType: uppercase
678
+ },
679
+ [StateCodesUS.Virginia]: {
680
+ mask: makeMask(...numericInputs(7), ...nonInputs(" "), ...nonInputs(StateCodesUS.Virginia)),
681
+ transformOnType: uppercase
682
+ },
683
+ [StateCodesUS.Washington]: {
684
+ mask: makeMask(...numericInputs(9), ...nonInputs(" "), ...nonInputs(StateCodesUS.Washington)),
685
+ transformOnType: uppercase
686
+ },
687
+ [StateCodesUS.WestVirginia]: {
688
+ mask: makeMask(
689
+ ...numericInputs(6),
690
+ ...nonInputs(" "),
691
+ ...nonInputs(StateCodesUS.WestVirginia)
692
+ ),
693
+ transformOnType: uppercase
694
+ },
695
+ [StateCodesUS.Wisconsin]: {
696
+ mask: makeMask(...numericInputs(6), ...nonInputs(" "), ...nonInputs(StateCodesUS.Wisconsin)),
697
+ transformOnType: uppercase
698
+ },
699
+ [StateCodesUS.Wyoming]: {
700
+ mask: makeMask(...numericInputs(6), ...nonInputs(" "), ...nonInputs(StateCodesUS.Wyoming)),
701
+ transformOnType: uppercase
702
+ },
703
+ [StateCodesUS.DistrictOfColumbia]: {
704
+ mask: makeMask(...numericInputs(9)),
705
+ transformOnType: uppercase
706
+ },
707
+ default: {
708
+ mask: makeMask(...numericInputs(9)),
709
+ transformOnType: uppercase
710
+ }
711
+ }
712
+ };
713
+ const stateFormatGuidanceText = {
714
+ [StateCodesUS.Alabama]: {
715
+ key: "enterNDigitsForExample",
716
+ values: {
717
+ numDigits: "9",
718
+ example: "123456789 AL"
719
+ }
720
+ },
721
+ [StateCodesUS.Alaska]: {
722
+ key: "enterNDigitsForExample",
723
+ values: {
724
+ numDigits: "8",
725
+ example: "12345678 AK"
726
+ }
727
+ },
728
+ [StateCodesUS.Arizona]: {
729
+ key: "enterNDigitsForExample",
730
+ values: {
731
+ numDigits: "8",
732
+ example: "12345678 AZ"
733
+ }
734
+ },
735
+ [StateCodesUS.Arkansas]: {
736
+ key: "enterTheRemainingNDigitsForExample",
737
+ values: {
738
+ numDigits: "8",
739
+ example: "800000001 AR"
740
+ }
741
+ },
742
+ [StateCodesUS.California]: {
743
+ key: "enterXOrYDigitsForExample",
744
+ values: {
745
+ xDigits: "8",
746
+ yDigits: "12",
747
+ example: "12345678 CA"
748
+ }
749
+ },
750
+ [StateCodesUS.Colorado]: {
751
+ key: "enterNDigitsForExample",
752
+ values: {
753
+ numDigits: "11",
754
+ example: "12345678901 CO"
755
+ }
756
+ },
757
+ [StateCodesUS.Connecticut]: {
758
+ key: "enterNDigitsForExample",
759
+ values: {
760
+ numDigits: "7",
761
+ example: "1234567 CT"
762
+ }
763
+ },
764
+ [StateCodesUS.Delaware]: {
765
+ key: "enterNDigitsForExample",
766
+ values: {
767
+ numDigits: "7",
768
+ example: "1234567 DE"
769
+ }
770
+ },
771
+ [StateCodesUS.Florida]: {
772
+ key: "enterXOrYDigitsForExample",
773
+ values: {
774
+ xDigits: "6",
775
+ yDigits: "12",
776
+ example: "123456789012 FL"
777
+ }
778
+ },
779
+ [StateCodesUS.Georgia]: {
780
+ key: "enterNDigitsForExample",
781
+ values: {
782
+ numDigits: "8",
783
+ example: "12345678 GA"
784
+ }
785
+ },
786
+ [StateCodesUS.Hawaii]: {
787
+ key: "validationPleaseEnterAValidBusinessRegistrationNumberWithFormat",
788
+ values: {
789
+ example: "12345678ZZ HI"
790
+ }
791
+ },
792
+ [StateCodesUS.Idaho]: {
793
+ key: "enterNDigitsForExample",
794
+ values: {
795
+ numDigits: "6",
796
+ example: "123456 ID"
797
+ }
798
+ },
799
+ [StateCodesUS.Illinois]: {
800
+ key: "enterNDigitsForExample",
801
+ values: {
802
+ numDigits: "8",
803
+ example: "12345678 IL"
804
+ }
805
+ },
806
+ [StateCodesUS.Indiana]: {
807
+ key: "enterNDigitsForExample",
808
+ values: {
809
+ numDigits: "10",
810
+ example: "1234567890 IN"
811
+ }
812
+ },
813
+ [StateCodesUS.Iowa]: {
814
+ key: "enterXToYDigitsForExample",
815
+ values: {
816
+ minDigits: "6",
817
+ maxDigits: "8",
818
+ example: "12345678 IA"
819
+ }
820
+ },
821
+ [StateCodesUS.Kansas]: {
822
+ key: "enterXToYDigitsForExample",
823
+ values: {
824
+ minDigits: "7",
825
+ maxDigits: "9",
826
+ example: "1234567890 KS"
827
+ }
828
+ },
829
+ [StateCodesUS.Kentucky]: {
830
+ key: "enterXToYDigitsForExample",
831
+ values: {
832
+ minDigits: "9",
833
+ maxDigits: "10",
834
+ example: "1234567890 KY"
835
+ }
836
+ },
837
+ [StateCodesUS.Louisiana]: {
838
+ key: "enterXToYDigitsForExample",
839
+ values: {
840
+ minDigits: "9",
841
+ maxDigits: "10",
842
+ example: "1234567890 LA"
843
+ }
844
+ },
845
+ [StateCodesUS.Maine]: {
846
+ key: "enterNDigitsForExample",
847
+ values: {
848
+ numDigits: "8",
849
+ example: "12345678 ME"
850
+ }
851
+ },
852
+ [StateCodesUS.Maryland]: {
853
+ key: "enterNDigitsForExample",
854
+ values: {
855
+ numDigits: "8",
856
+ example: "12345678 MD"
857
+ }
858
+ },
859
+ [StateCodesUS.Massachusetts]: {
860
+ key: "enterNDigitsForExample",
861
+ values: {
862
+ numDigits: "10",
863
+ example: "1234567890 MA"
864
+ }
865
+ },
866
+ [StateCodesUS.Michigan]: {
867
+ key: "enterXOrYDigitsForExample",
868
+ values: {
869
+ xDigits: "6",
870
+ yDigits: "9",
871
+ example: "123456 MI"
872
+ }
873
+ },
874
+ [StateCodesUS.Minnesota]: {
875
+ key: "enterNDigitsForExample",
876
+ values: {
877
+ numDigits: "7",
878
+ example: "1234567 MN"
879
+ }
880
+ },
881
+ [StateCodesUS.Mississippi]: {
882
+ key: "enterXToYDigitsForExample",
883
+ values: {
884
+ minDigits: "7",
885
+ maxDigits: "10",
886
+ example: "1234567 MS"
887
+ }
888
+ },
889
+ [StateCodesUS.Missouri]: {
890
+ key: "enterNDigitsForExample",
891
+ values: {
892
+ numDigits: "10",
893
+ example: "1234567890 MO"
894
+ }
895
+ },
896
+ [StateCodesUS.Montana]: {
897
+ key: "enterNDigitsForExample",
898
+ values: {
899
+ numDigits: "7",
900
+ example: "1234567 MT"
901
+ }
902
+ },
903
+ [StateCodesUS.Nebraska]: {
904
+ key: "enterXToYDigitsForExample",
905
+ values: {
906
+ minDigits: "9",
907
+ maxDigits: "11",
908
+ example: "123456789 NE"
909
+ }
910
+ },
911
+ [StateCodesUS.Nevada]: {
912
+ key: "enterXToYDigitsForExample",
913
+ values: {
914
+ minDigits: "9",
915
+ maxDigits: "11",
916
+ example: "123456789 NV"
917
+ }
918
+ },
919
+ [StateCodesUS.NewHampshire]: {
920
+ key: "enterNDigitsForExample",
921
+ values: {
922
+ numDigits: "9",
923
+ example: "123456789 NH"
924
+ }
925
+ },
926
+ [StateCodesUS.NewJersey]: {
927
+ key: "enterNDigitsForExample",
928
+ values: {
929
+ numDigits: "10",
930
+ example: "1234567890 NJ"
931
+ }
932
+ },
933
+ [StateCodesUS.NewMexico]: {
934
+ key: "enterNDigitsForExample",
935
+ values: {
936
+ numDigits: "6",
937
+ example: "123456 NM"
938
+ }
939
+ },
940
+ [StateCodesUS.NewYork]: {
941
+ key: "enterNDigitsForExample",
942
+ values: {
943
+ numDigits: "7",
944
+ example: "1234567 NY"
945
+ }
946
+ },
947
+ [StateCodesUS.NorthCarolina]: {
948
+ key: "enterNDigitsForExample",
949
+ values: {
950
+ numDigits: "7",
951
+ example: "1234567 NC"
952
+ }
953
+ },
954
+ [StateCodesUS.NorthDakota]: {
955
+ key: "enterXToYDigitsForExample",
956
+ values: {
957
+ minDigits: "7",
958
+ maxDigits: "10",
959
+ example: "1234567 ND"
960
+ }
961
+ },
962
+ [StateCodesUS.Ohio]: {
963
+ key: "enterNDigitsForExample",
964
+ values: {
965
+ numDigits: "10",
966
+ example: "1234567890 OH"
967
+ }
968
+ },
969
+ [StateCodesUS.Oklahoma]: {
970
+ key: "enterNDigitsForExample",
971
+ values: {
972
+ numDigits: "10",
973
+ example: "1234567890 OK"
974
+ }
975
+ },
976
+ [StateCodesUS.Oregon]: {
977
+ key: "enterNDigitsForExample",
978
+ values: {
979
+ numDigits: "9",
980
+ example: "123456789 OR"
981
+ }
982
+ },
983
+ [StateCodesUS.Pennsylvania]: {
984
+ key: "enterNDigitsForExample",
985
+ values: {
986
+ numDigits: "7",
987
+ example: "1234567 PA"
988
+ }
989
+ },
990
+ [StateCodesUS.RhodeIsland]: {
991
+ key: "enterNDigitsForExample",
992
+ values: {
993
+ numDigits: "7",
994
+ example: "1234567 RI"
995
+ }
996
+ },
997
+ [StateCodesUS.SouthCarolina]: {
998
+ key: "enterNDigitsForExample",
999
+ values: {
1000
+ numDigits: "7",
1001
+ example: "1234567 SC"
1002
+ }
1003
+ },
1004
+ [StateCodesUS.SouthDakota]: {
1005
+ key: "enterNDigitsForExample",
1006
+ values: {
1007
+ numDigits: "7",
1008
+ example: "1234567 SD"
1009
+ }
1010
+ },
1011
+ [StateCodesUS.Tennessee]: {
1012
+ key: "enterNDigitsForExample",
1013
+ values: {
1014
+ numDigits: "6",
1015
+ example: "123456 TN"
1016
+ }
1017
+ },
1018
+ [StateCodesUS.Texas]: {
1019
+ key: "enterNDigitsForExample",
1020
+ values: {
1021
+ numDigits: "10",
1022
+ example: "1234567890 TX"
1023
+ }
1024
+ },
1025
+ [StateCodesUS.Utah]: {
1026
+ key: "enterNDigitsForExample",
1027
+ values: {
1028
+ numDigits: "7",
1029
+ example: "1234567 UT"
1030
+ }
1031
+ },
1032
+ [StateCodesUS.Vermont]: {
1033
+ key: "enterNDigitsForExample",
1034
+ values: {
1035
+ numDigits: "6",
1036
+ example: "123456 VT"
1037
+ }
1038
+ },
1039
+ [StateCodesUS.Virginia]: {
1040
+ key: "enterNDigitsForExample",
1041
+ values: {
1042
+ numDigits: "7",
1043
+ example: "1234567 VA"
1044
+ }
1045
+ },
1046
+ [StateCodesUS.Washington]: {
1047
+ key: "enterNDigitsForExample",
1048
+ values: {
1049
+ numDigits: "9",
1050
+ example: "123456789 WA"
1051
+ }
1052
+ },
1053
+ [StateCodesUS.WestVirginia]: {
1054
+ key: "enterNDigitsForExample",
1055
+ values: {
1056
+ numDigits: "6",
1057
+ example: "123456 WV"
1058
+ }
1059
+ },
1060
+ [StateCodesUS.Wisconsin]: {
1061
+ key: "enterNDigitsForExample",
1062
+ values: {
1063
+ numDigits: "6",
1064
+ example: "123456 WI"
1065
+ }
1066
+ },
1067
+ [StateCodesUS.Wyoming]: {
1068
+ key: "enterNDigitsForExample",
1069
+ values: {
1070
+ numDigits: "6",
1071
+ example: "123456 WY"
1072
+ }
1073
+ },
1074
+ [StateCodesUS.DistrictOfColumbia]: {
1075
+ key: "enterNDigitsForExample",
1076
+ values: {
1077
+ numDigits: "9",
1078
+ example: "123456789"
1079
+ }
1080
+ },
1081
+ default: {
1082
+ key: "enterNDigitsForExample",
1083
+ values: {
1084
+ numDigits: "9",
1085
+ example: "123456789"
1086
+ }
1087
+ }
1088
+ };
1089
+ const businessRegistrationNumberPatterns = {
1090
+ [CountryCodes.Australia]: { default: /^\d{9}$/, associationIncorporated: /^[a-zA-Z0-9]{3,20}$/ },
1091
+ [CountryCodes.Austria]: {
1092
+ firmenbuchnummer: /^(FN|T)\d{3,6}[a-z]$/,
1093
+ ZVR: /^(AT-ZVR-)\d{9,10}$/
1094
+ },
1095
+ [CountryCodes.Belgium]: { default: /^\d{10}$/ },
1096
+ [CountryCodes.Brazil]: { default: /^\d{14}$/ },
1097
+ [CountryCodes.Bulgaria]: { default: /^\d{9}$/ },
1098
+ [CountryCodes.Canada]: { default: /^[a-zA-Z0-9]{5,10}$/ },
1099
+ [CountryCodes.Croatia]: { default: /^\d{9}$/, soleProprietorship: /^\d{8}$/ },
1100
+ [CountryCodes.Cyprus]: { default: /^[COP]{1}\d{1,8}$/ },
1101
+ [CountryCodes.CzechRepublic]: { default: /^\d{8,10}$/ },
1102
+ [CountryCodes.Denmark]: { default: /^\d{8}$/ },
1103
+ [CountryCodes.Estonia]: { default: /^\d{8}$/ },
1104
+ [CountryCodes.Finland]: { default: /^\d{7}-?\d$/ },
1105
+ [CountryCodes.France]: {
1106
+ SIRET: /^\d{9}-?\d{5}$/,
1107
+ RNA: /^W(\d{9}|\d[A-Za-z]\d{7})$/
1108
+ },
1109
+ [CountryCodes.Gibraltar]: { default: /^[a-zA-Z0-9]{1,8}$/ },
1110
+ [CountryCodes.Germany]: { default: /^[A-Z]{2,3}\d{1,6}[A-Z]{0,5}(?:-[A-Z]\d{4})?$/ },
1111
+ [CountryCodes.Greece]: { default: /^\d{12}$/ },
1112
+ [CountryCodes.Guernsey]: { default: /^\d{1,9}$/ },
1113
+ [CountryCodes.HongKong]: { default: /^\d{7}$/ },
1114
+ [CountryCodes.Hungary]: { default: /^\d{10}$/, nyilvantartasiSzam: /^\d{7,10}$/ },
1115
+ [CountryCodes.Iceland]: { default: /^\d{10}$/ },
1116
+ [CountryCodes.India]: { default: /^\d{21}$/ },
1117
+ [CountryCodes.Indonesia]: { default: /^\d{12}$/ },
1118
+ [CountryCodes.Ireland]: { default: /^[1-9]\d{1,7}$/ },
1119
+ [CountryCodes.IsleOfMan]: { default: /^\d{6}[A-Z]$/ },
1120
+ [CountryCodes.Italy]: { partitaIVA: /^\d{11}$/, CCIAA: /^[a-zA-Z]{2}\d{6,7}$/ },
1121
+ [CountryCodes.Japan]: { default: /^\d{12}$/ },
1122
+ [CountryCodes.Jersey]: { default: /^[a-zA-Z0-9]{1,9}$/ },
1123
+ [CountryCodes.Korea]: { default: /^\d{10}$/ },
1124
+ [CountryCodes.Latvia]: { default: /^\d{11}$/ },
1125
+ [CountryCodes.Liechtenstein]: { default: /FL-[0-9]{4}[.][0-9]{3}[.][0-9]{3}-[0-9]$/ },
1126
+ [CountryCodes.Lithuania]: { default: /^\d{6,9}$/ },
1127
+ [CountryCodes.Luxembourg]: { default: /^[a-zA-Z]\d{1,9}$/ },
1128
+ [CountryCodes.Malaysia]: { default: /^\d{7}$|^\d{12}$/ },
1129
+ [CountryCodes.Malta]: { default: /^[CP]\s?\d{4,6}$/ },
1130
+ [CountryCodes.Mexico]: { default: /^\D{3}\d{6}\w{3}$/ },
1131
+ [CountryCodes.Monaco]: {
1132
+ default: /^[0-9]{2}[A-Z]{1,3}[0-9]{5}$/,
1133
+ soleProprietorship: /^\d{2,4}[A-Z]\d{5}$/
1134
+ },
1135
+ [CountryCodes.Netherlands]: { default: /^\d{8}$/ },
1136
+ [CountryCodes.NewZealand]: { NZBN: /^\d{13}$/, companyNumberNZ: /^\d{7}$/ },
1137
+ [CountryCodes.Norway]: { default: /^\d{9}$/ },
1138
+ [CountryCodes.Poland]: { krsNumber: /^\d{10}$/, regon: /^\d{9}$/ },
1139
+ [CountryCodes.Portugal]: { default: /^\d{9}$/ },
1140
+ [CountryCodes.Romania]: {
1141
+ roRegNumberOldFormat: /^[A-Z]\d{1,2}\/\d{1,9}\/\d{4}$/,
1142
+ roRegNumberNewFormat: /^[JFC]\d{13}$/
1143
+ },
1144
+ [CountryCodes.Singapore]: { default: /^[a-zA-Z0-9]{9,10}$/ },
1145
+ [CountryCodes.Slovakia]: { default: /^\d{8}$/ },
1146
+ [CountryCodes.Slovenia]: { default: /^\d{10}$/ },
1147
+ [CountryCodes.Spain]: { default: /^[a-zA-Z][a-zA-Z0-9]{8}$/ },
1148
+ [CountryCodes.Sweden]: { default: /^\d{10}$/ },
1149
+ [CountryCodes.Switzerland]: { default: /^CHE\d{9}$|^CH\d{11}$/ },
1150
+ [CountryCodes.UnitedKingdom]: {
1151
+ default: /^[a-zA-Z0-9]{8}$/,
1152
+ nonProfit: /^(?:(?:[A-Z]{2})?\d{6}|\d{6,8}|\d{6}-\d)$/
1153
+ },
1154
+ [CountryCodes.UnitedStates]: {
1155
+ [StateCodesUS.Alabama]: /^\d{9}$/,
1156
+ [StateCodesUS.Alaska]: /^\d{8}$/,
1157
+ [StateCodesUS.Arizona]: /^\d{8}$/,
1158
+ [StateCodesUS.Arkansas]: /^8\d{8}$/,
1159
+ [StateCodesUS.California]: /^\d{7}$|^\d{12}$/,
1160
+ [StateCodesUS.Colorado]: /^\d{11}$/,
1161
+ [StateCodesUS.Connecticut]: /^\d{7}$/,
1162
+ [StateCodesUS.Delaware]: /^\d{7}$/,
1163
+ [StateCodesUS.Florida]: /^\d{6}$|^\d{12}$/,
1164
+ [StateCodesUS.Georgia]: /^\d{8}$/,
1165
+ [StateCodesUS.Hawaii]: /^\d{5,8}(C1|C2|C3|C4|C5|D1|D2|D3|D4|F1|F2|L1|L2|N1|N2|P1|P2|T1|T2|T3|T4|T5|T6|T7|T8|ZZ)$/,
1166
+ [StateCodesUS.Idaho]: /^\d{6}$/,
1167
+ [StateCodesUS.Illinois]: /^\d{8}$/,
1168
+ [StateCodesUS.Indiana]: /^\d{10}$/,
1169
+ [StateCodesUS.Iowa]: /^\d{6,8}$/,
1170
+ [StateCodesUS.Kansas]: /^\d{7,9}$/,
1171
+ [StateCodesUS.Kentucky]: /^\d{9,10}$/,
1172
+ [StateCodesUS.Louisiana]: /^\d{9,10}$/,
1173
+ [StateCodesUS.Maine]: /^\d{8}$/,
1174
+ [StateCodesUS.Maryland]: /^\d{8}$/,
1175
+ [StateCodesUS.Massachusetts]: /^\d{10}$/,
1176
+ [StateCodesUS.Michigan]: /^\d{6}$|^\d{9}$/,
1177
+ [StateCodesUS.Minnesota]: /^\d{7}$/,
1178
+ [StateCodesUS.Mississippi]: /^\d{7,10}$/,
1179
+ [StateCodesUS.Missouri]: /^\d{10}$/,
1180
+ [StateCodesUS.Montana]: /^\d{7}$/,
1181
+ [StateCodesUS.Nebraska]: /^\d{9,11}$/,
1182
+ [StateCodesUS.Nevada]: /^\d{9,11}$/,
1183
+ [StateCodesUS.NewHampshire]: /^\d{9}$/,
1184
+ [StateCodesUS.NewJersey]: /^\d{10}$/,
1185
+ [StateCodesUS.NewMexico]: /^\d{6}$/,
1186
+ [StateCodesUS.NewYork]: /^\d{7}$/,
1187
+ [StateCodesUS.NorthCarolina]: /^\d{7}$/,
1188
+ [StateCodesUS.NorthDakota]: /^\d{7,10}$/,
1189
+ [StateCodesUS.Ohio]: /^\d{10}$/,
1190
+ [StateCodesUS.Oklahoma]: /^\d{10}$/,
1191
+ [StateCodesUS.Oregon]: /^\d{9}$/,
1192
+ [StateCodesUS.Pennsylvania]: /^\d{7}$/,
1193
+ [StateCodesUS.RhodeIsland]: /^\d{7}$/,
1194
+ [StateCodesUS.SouthCarolina]: /^\d{7}$/,
1195
+ [StateCodesUS.SouthDakota]: /^\d{7}$/,
1196
+ [StateCodesUS.Tennessee]: /^\d{6}$/,
1197
+ [StateCodesUS.Texas]: /^\d{10}$/,
1198
+ [StateCodesUS.Utah]: /^\d{7}$/,
1199
+ [StateCodesUS.Vermont]: /^\d{6}$/,
1200
+ [StateCodesUS.Virginia]: /^\d{7}$/,
1201
+ [StateCodesUS.Washington]: /^\d{9}$/,
1202
+ [StateCodesUS.WestVirginia]: /^\d{6}$/,
1203
+ [StateCodesUS.Wisconsin]: /^\d{6}$/,
1204
+ [StateCodesUS.Wyoming]: /^\d{6}$/,
1205
+ [StateCodesUS.DistrictOfColumbia]: /^\d{9}$/,
1206
+ default: /^\d{9}$/
1207
+ }
1208
+ };
1209
+ const taxInformationDefaultFieldMetadata = {
1210
+ label: "taxId"
1211
+ };
1212
+ const exemptedFromTaxDefaultFieldMetadata = {
1213
+ label: "iDontHaveATaxId"
1214
+ };
1215
+ const mapValidators = (validators, country) => {
1216
+ return validators.map(
1217
+ (validator) => ({
1218
+ ...validator,
1219
+ validate: (taxInformation) => {
1220
+ const taxInfo = taxInformation?.find((taxId) => country === taxId.country);
1221
+ if (taxInfo?.numberAbsent) return true;
1222
+ return taxInfo?.number ? validator.validate(taxInfo.number) : false;
1223
+ }
1224
+ })
1225
+ );
1226
+ };
1227
+ const taxInformationDefaultFieldConfig = {
1228
+ [CountryCodes.Australia]: {
1229
+ label: "australianBusinessNumberAbn",
1230
+ validators: mapValidators([validatePatternOnBlur(/^\d{11}$/)], CountryCodes.Australia),
1231
+ mask: {
1232
+ mask: makeMask(
1233
+ ...numericInputs(2),
1234
+ spacer,
1235
+ ...numericInputs(3),
1236
+ spacer,
1237
+ ...numericInputs(3),
1238
+ spacer,
1239
+ ...numericInputs(3)
1240
+ )
1241
+ },
1242
+ guidanceText: {
1243
+ key: "enterNDigitsForExample",
1244
+ values: {
1245
+ numDigits: "11",
1246
+ example: "51 824 753 556"
1247
+ }
1248
+ }
1249
+ },
1250
+ [CountryCodes.Austria]: {
1251
+ label: "taxInformationNumber__AT",
1252
+ validators: mapValidators(
1253
+ [validatePatternOnBlur(/^(?=(?:[^0-9]*\d){9}[^0-9]*$)[\d\-/]+$/)],
1254
+ CountryCodes.Austria
1255
+ ),
1256
+ mask: {
1257
+ mask: makeMask(
1258
+ ...numericInputs(2),
1259
+ { type: "input", allow: /[-/]/, optional: true },
1260
+ ...numericInputs(3),
1261
+ { type: "input", allow: /[-/]/, optional: true },
1262
+ ...numericInputs(4)
1263
+ )
1264
+ },
1265
+ guidanceText: {
1266
+ key: "enterNDigitsForExample",
1267
+ values: {
1268
+ numDigits: "9",
1269
+ example: "931736581"
1270
+ }
1271
+ }
1272
+ },
1273
+ [CountryCodes.Belgium]: ({ companyType }) => {
1274
+ switch (companyType) {
1275
+ case LegalEntityTypes.INDIVIDUAL:
1276
+ return {
1277
+ label: "taxInformationNumber__BE_Individual",
1278
+ validators: mapValidators([validatePatternOnBlur(/^\d{11}$/)], CountryCodes.Belgium),
1279
+ mask: { mask: makeMask(...numericInputs(11)) },
1280
+ guidanceText: {
1281
+ key: "validationPleaseEnterAValidIdNumberWithExample",
1282
+ values: {
1283
+ example: "99999999999",
1284
+ idType: "Numeró National"
1285
+ }
1286
+ }
1287
+ };
1288
+ default:
1289
+ return {
1290
+ label: "taxInformationNumber__BE",
1291
+ validators: mapValidators([validatePatternOnBlur(/^\d{10}$/)], CountryCodes.Belgium),
1292
+ mask: { mask: makeMask(...numericInputs(10)) },
1293
+ guidanceText: {
1294
+ key: "validationPleaseEnterAValidIdNumberWithExample",
1295
+ values: {
1296
+ example: "0123321123",
1297
+ idType: "Business nummer"
1298
+ }
1299
+ }
1300
+ };
1301
+ }
1302
+ },
1303
+ [CountryCodes.Canada]: {
1304
+ label: "businessNumber",
1305
+ validators: mapValidators([validatePatternOnBlur(/^\d{9}$/)], CountryCodes.Canada),
1306
+ mask: { mask: makeMask(...numericInputs(9)) },
1307
+ guidanceText: {
1308
+ key: "enterNDigitsForExample",
1309
+ values: {
1310
+ numDigits: "9",
1311
+ example: "123456789"
1312
+ }
1313
+ }
1314
+ },
1315
+ [CountryCodes.Croatia]: {
1316
+ label: "taxInformationNumber__HR",
1317
+ validators: mapValidators([validatePatternOnBlur(/^\d{11}$/)], CountryCodes.Croatia),
1318
+ mask: { mask: makeMask(...numericInputs(11)) },
1319
+ guidanceText: {
1320
+ key: "validationPleaseEnterAValidIdNumberWithExample",
1321
+ values: {
1322
+ example: "94577403194",
1323
+ idType: "OIB"
1324
+ }
1325
+ }
1326
+ },
1327
+ [CountryCodes.Cyprus]: {
1328
+ label: "taxInformationNumber__CY",
1329
+ validators: mapValidators([validatePatternOnBlur(/^\d{8,9}[A-Z]$/)], CountryCodes.Cyprus),
1330
+ mask: {
1331
+ mask: makeMask(...numericInputs(8), ...numericInputs(1, true), ...alphaInputs(1)),
1332
+ transformOnType: uppercase
1333
+ },
1334
+ guidanceText: {
1335
+ key: "validationPleaseEnterAValidIdNumberWithExample",
1336
+ values: {
1337
+ example: "00123123T",
1338
+ idType: "TIC"
1339
+ }
1340
+ }
1341
+ },
1342
+ [CountryCodes.Estonia]: {
1343
+ label: "taxInformationNumber__ET_Individual",
1344
+ validators: mapValidators([validatePatternOnBlur(/^\d{11}$/)], CountryCodes.Estonia),
1345
+ mask: { mask: makeMask(...numericInputs(11)) },
1346
+ guidanceText: {
1347
+ key: "validationPleaseEnterAValidIdNumberWithExample",
1348
+ values: {
1349
+ example: "32708101201",
1350
+ idType: "Isikukood"
1351
+ }
1352
+ }
1353
+ },
1354
+ [CountryCodes.Finland]: {
1355
+ label: "taxInformationNumber__FI",
1356
+ validators: mapValidators(
1357
+ [validatePatternOnBlur(/^\d{6}[+\-A]\d{3}[0-9A-Y]$/)],
1358
+ CountryCodes.Finland
1359
+ ),
1360
+ mask: {
1361
+ mask: makeMask(...numericInputs(6), { type: "input", allow: /[+\-A]/ }, ...numericInputs(3), {
1362
+ type: "input",
1363
+ allow: /[0-9A-Y]/
1364
+ }),
1365
+ transformOnType: uppercase
1366
+ },
1367
+ guidanceText: {
1368
+ key: "validationPleaseEnterAValidIdNumberWithExample",
1369
+ values: {
1370
+ example: "131052-308T",
1371
+ idType: "Henkilötunnus"
1372
+ }
1373
+ }
1374
+ },
1375
+ [CountryCodes.France]: {
1376
+ label: "taxInformationNumber__FR",
1377
+ validators: mapValidators([validatePatternOnBlur(/^\s*(\d\s*){13}$/)], CountryCodes.France),
1378
+ mask: {
1379
+ mask: makeMask(
1380
+ ...numericInputs(2),
1381
+ spacer,
1382
+ ...numericInputs(2),
1383
+ spacer,
1384
+ ...numericInputs(3),
1385
+ spacer,
1386
+ ...numericInputs(3),
1387
+ spacer,
1388
+ ...numericInputs(3)
1389
+ )
1390
+ },
1391
+ guidanceText: {
1392
+ key: "validationPleaseEnterAValidIdNumberWithExample",
1393
+ values: {
1394
+ example: "30 23 217 600 053",
1395
+ idType: "Numéro SPI"
1396
+ }
1397
+ }
1398
+ },
1399
+ [CountryCodes.Germany]: ({ companyType }) => {
1400
+ switch (companyType) {
1401
+ case LegalEntityTypes.INDIVIDUAL:
1402
+ return {
1403
+ label: "taxInformationNumber__DE_Individual",
1404
+ validators: mapValidators([validatePatternOnBlur(/^\d{11}$/)], CountryCodes.Germany),
1405
+ mask: { mask: makeMask(...numericInputs(11)) },
1406
+ guidanceText: {
1407
+ key: "validationPleaseEnterAValidIdNumberWithExample",
1408
+ values: {
1409
+ example: "26954371827",
1410
+ idType: "IdNr"
1411
+ }
1412
+ }
1413
+ };
1414
+ default:
1415
+ return {
1416
+ label: "taxInformationNumber__DE",
1417
+ validators: mapValidators(
1418
+ [validatePatternOnBlur(/^\d{10}$|^\d{11}$|^\d{13}$/)],
1419
+ CountryCodes.Germany
1420
+ ),
1421
+ mask: { mask: makeMask(...numericInputs(10), ...numericInputs(3, true)) },
1422
+ guidanceText: {
1423
+ key: "validationPleaseEnterAValidIdNumberWithExample",
1424
+ values: {
1425
+ example: "14310260208",
1426
+ idType: "Steuernummer"
1427
+ }
1428
+ }
1429
+ };
1430
+ }
1431
+ },
1432
+ [CountryCodes.Gibraltar]: {
1433
+ label: "taxpayerReferenceNumber",
1434
+ validators: mapValidators([validatePatternOnBlur(/^\d{1,7}$/)], CountryCodes.Gibraltar),
1435
+ mask: {
1436
+ mask: makeMask(...numericInputs(1), ...numericInputs(6, true))
1437
+ },
1438
+ guidanceText: {
1439
+ key: "enterAMaximumOfNDigitsForExample",
1440
+ values: {
1441
+ maxDigits: "7",
1442
+ example: "123456"
1443
+ }
1444
+ }
1445
+ },
1446
+ [CountryCodes.Greece]: {
1447
+ label: "taxInformationNumber__GR",
1448
+ validators: mapValidators([validatePatternOnBlur(/^\d{9}$/)], CountryCodes.Greece),
1449
+ mask: { mask: makeMask(...numericInputs(9)) },
1450
+ guidanceText: {
1451
+ key: "validationPleaseEnterAValidIdNumberWithExample",
1452
+ values: {
1453
+ example: "244709851",
1454
+ idType: "AFM"
1455
+ }
1456
+ }
1457
+ },
1458
+ [CountryCodes.Guernsey]: ({ companyType }) => {
1459
+ switch (companyType) {
1460
+ case CompanyTypesValues.SOLE_PROPRIETORSHIP:
1461
+ return {
1462
+ label: "nationalInsuranceNumber",
1463
+ validators: mapValidators(
1464
+ [validatePatternOnBlur(/^GY\d{6}[A-D]$/)],
1465
+ CountryCodes.Guernsey
1466
+ ),
1467
+ mask: {
1468
+ mask: makeMask(
1469
+ ...nonInputs("GY", { includeInValue: true }),
1470
+ spacer,
1471
+ ...numericInputs(2),
1472
+ spacer,
1473
+ ...numericInputs(2),
1474
+ spacer,
1475
+ ...numericInputs(2),
1476
+ spacer,
1477
+ {
1478
+ type: "input",
1479
+ allow: /[A-D]/
1480
+ }
1481
+ ),
1482
+ transformOnType: uppercase
1483
+ },
1484
+ guidanceText: {
1485
+ key: "enterTheRemainingNCharactersForExample",
1486
+ values: {
1487
+ numChars: "7",
1488
+ example: "GY 12 34 56 A"
1489
+ }
1490
+ }
1491
+ };
1492
+ default:
1493
+ return {
1494
+ label: "taxInformationNumber",
1495
+ mask: businessRegistrationNumberMasks[CountryCodes.Guernsey].default,
1496
+ validators: mapValidators(
1497
+ [
1498
+ validatePatternOnBlur(
1499
+ businessRegistrationNumberPatterns[CountryCodes.Guernsey].default
1500
+ )
1501
+ ],
1502
+ CountryCodes.Guernsey
1503
+ ),
1504
+ guidanceText: {
1505
+ key: "enterAMaximumOfNDigitsForExample",
1506
+ values: {
1507
+ maxDigits: "9",
1508
+ example: "123456"
1509
+ }
1510
+ }
1511
+ };
1512
+ }
1513
+ },
1514
+ [CountryCodes.HongKong]: {
1515
+ label: "taxInformationNumber__HK",
1516
+ validators: mapValidators([validatePatternOnBlur(/^\d{8}$/)], CountryCodes.HongKong),
1517
+ mask: { mask: makeMask(...numericInputs(8)) },
1518
+ guidanceText: {
1519
+ key: "enterNDigitsForExample",
1520
+ values: {
1521
+ numDigits: "8",
1522
+ example: "70569713"
1523
+ }
1524
+ }
1525
+ },
1526
+ [CountryCodes.Ireland]: ({ companyType }) => {
1527
+ switch (companyType) {
1528
+ case LegalEntityTypes.INDIVIDUAL:
1529
+ return {
1530
+ label: "taxInformationNumber__IE_Individual",
1531
+ validators: mapValidators(
1532
+ [validatePatternOnBlur(/^\d{7}[A-Z]$|^\d{7}[A-Z]{2}$/)],
1533
+ CountryCodes.Ireland
1534
+ ),
1535
+ mask: {
1536
+ mask: makeMask(...numericInputs(7), ...alphaInputs(1), ...alphaInputs(1, true)),
1537
+ transformOnType: uppercase
1538
+ },
1539
+ guidanceText: {
1540
+ key: "validationPleaseEnterAValidIdNumberWithExample",
1541
+ values: {
1542
+ example: "1234567T",
1543
+ idType: "Personal Public Service Number"
1544
+ }
1545
+ }
1546
+ };
1547
+ default:
1548
+ return {
1549
+ label: "trnNumber",
1550
+ validators: mapValidators(
1551
+ [validatePatternOnBlur(/^\d{7}[A-Z]$|^\d{7}[A-Z]{2}$/)],
1552
+ CountryCodes.Ireland
1553
+ ),
1554
+ mask: {
1555
+ mask: makeMask(...numericInputs(7), ...alphaInputs(1), ...alphaInputs(1, true)),
1556
+ transformOnType: uppercase
1557
+ },
1558
+ guidanceText: {
1559
+ key: "enterXDigitsThenXToYLettersForExample",
1560
+ values: {
1561
+ numDigits: "7",
1562
+ minLetters: "1",
1563
+ maxLetters: "2",
1564
+ example: "1497955KA"
1565
+ }
1566
+ }
1567
+ };
1568
+ }
1569
+ },
1570
+ [CountryCodes.Italy]: {
1571
+ label: "codiceFiscale",
1572
+ mask: {
1573
+ mask: makeMask(...numericInputs(11))
1574
+ },
1575
+ validators: mapValidators([validatePatternOnBlur(/^\d{11}$/)], CountryCodes.Italy),
1576
+ guidanceText: {
1577
+ key: "enterNDigitsForExample",
1578
+ values: {
1579
+ numDigits: "11",
1580
+ example: "12345678901"
1581
+ }
1582
+ }
1583
+ },
1584
+ [CountryCodes.IsleOfMan]: {
1585
+ label: "taxReferenceNumber",
1586
+ validators: mapValidators([validatePatternOnBlur(/^[HCX]\d{8}$/)], CountryCodes.IsleOfMan),
1587
+ mask: {
1588
+ mask: makeMask(
1589
+ {
1590
+ type: "input",
1591
+ allow: /[HCX]/
1592
+ },
1593
+ ...numericInputs(6),
1594
+ ...nonInputs(" - "),
1595
+ ...numericInputs(2)
1596
+ ),
1597
+ transformOnType: uppercase
1598
+ },
1599
+ guidanceText: {
1600
+ key: "enterNCharactersForExample",
1601
+ values: {
1602
+ numChars: "9",
1603
+ example: "C155673-79"
1604
+ }
1605
+ }
1606
+ },
1607
+ [CountryCodes.Jersey]: ({ taxIdNumberType, companyType }) => {
1608
+ switch (taxIdNumberType) {
1609
+ case "SSN":
1610
+ return {
1611
+ label: "socialSecurityNumber",
1612
+ validators: mapValidators(
1613
+ [validatePatternOnBlur(/^[A-Z]{2}\d{6}[A-Z]$/)],
1614
+ CountryCodes.Jersey
1615
+ ),
1616
+ mask: {
1617
+ mask: makeMask(...alphaInputs(2), ...numericInputs(6), ...alphaInputs(1)),
1618
+ transformOnType: uppercase
1619
+ },
1620
+ guidanceText: {
1621
+ key: "enterNCharactersForExample",
1622
+ values: {
1623
+ numChars: "9",
1624
+ example: "JY000000A"
1625
+ }
1626
+ }
1627
+ };
1628
+ case "TIN_JE":
1629
+ default:
1630
+ switch (companyType) {
1631
+ case CompanyTypesValues.SOLE_PROPRIETORSHIP:
1632
+ return {
1633
+ label: "taxIdentificationNumber",
1634
+ validators: mapValidators([validatePatternOnBlur(/^\d{10}$/)], CountryCodes.Jersey),
1635
+ mask: {
1636
+ mask: makeMask(
1637
+ ...numericInputs(3),
1638
+ ...nonInputs(" - "),
1639
+ ...numericInputs(3),
1640
+ ...nonInputs(" - "),
1641
+ ...numericInputs(4)
1642
+ )
1643
+ },
1644
+ guidanceText: {
1645
+ key: "enterNDigitsForExample",
1646
+ values: {
1647
+ numDigits: "10",
1648
+ example: "100-100-1000"
1649
+ }
1650
+ }
1651
+ };
1652
+ default:
1653
+ return {
1654
+ label: "taxIdentificationNumber",
1655
+ validators: mapValidators(
1656
+ [validatePatternOnBlur(/^[A-Z]{2}\d{5}$/)],
1657
+ CountryCodes.Jersey
1658
+ ),
1659
+ mask: {
1660
+ mask: makeMask(...alphaInputs(2), ...numericInputs(5)),
1661
+ transformOnType: uppercase
1662
+ },
1663
+ guidanceText: {
1664
+ key: "enterNCharactersForExample",
1665
+ values: {
1666
+ numChars: "7",
1667
+ example: "CC17261"
1668
+ }
1669
+ }
1670
+ };
1671
+ }
1672
+ }
1673
+ },
1674
+ [CountryCodes.Latvia]: {
1675
+ label: "taxInformationNumber__LV",
1676
+ validators: mapValidators([validatePatternOnBlur(/^\d{11}$/)], CountryCodes.Latvia),
1677
+ mask: { mask: makeMask(...numericInputs(11)) },
1678
+ guidanceText: {
1679
+ key: "validationPleaseEnterAValidIdNumberWithExample",
1680
+ values: {
1681
+ example: "32532963606",
1682
+ idType: "Personas kods"
1683
+ }
1684
+ }
1685
+ },
1686
+ [CountryCodes.Lithuania]: {
1687
+ label: "taxInformationNumber__LT",
1688
+ validators: mapValidators([validatePatternOnBlur(/^\d{11}$/)], CountryCodes.Lithuania),
1689
+ mask: { mask: makeMask(...numericInputs(11)) },
1690
+ guidanceText: {
1691
+ key: "validationPleaseEnterAValidIdNumberWithExample",
1692
+ values: {
1693
+ example: "33309240064",
1694
+ idType: "Asmens kodas"
1695
+ }
1696
+ }
1697
+ },
1698
+ [CountryCodes.Luxembourg]: ({ companyType }) => {
1699
+ switch (companyType) {
1700
+ case LegalEntityTypes.INDIVIDUAL:
1701
+ return {
1702
+ label: "taxInformationNumber__LU_Individual",
1703
+ validators: mapValidators([validatePatternOnBlur(/^\d{13}$/)], CountryCodes.Luxembourg),
1704
+ mask: { mask: makeMask(...numericInputs(13)) },
1705
+ guidanceText: {
1706
+ key: "enterNCharactersForExample",
1707
+ values: {
1708
+ numChars: "13",
1709
+ example: "1893120105732"
1710
+ }
1711
+ }
1712
+ };
1713
+ default:
1714
+ return {
1715
+ label: "taxInformationNumber__LU_Org",
1716
+ validators: mapValidators([validatePatternOnBlur(/^\d{11}$/)], CountryCodes.Luxembourg),
1717
+ mask: {
1718
+ mask: makeMask(...numericInputs(11))
1719
+ },
1720
+ guidanceText: {
1721
+ key: "enterNCharactersForExample",
1722
+ values: {
1723
+ numChars: "11",
1724
+ example: "19991201001"
1725
+ }
1726
+ }
1727
+ };
1728
+ }
1729
+ },
1730
+ [CountryCodes.Malta]: ({ taxIdNumberType, companyType }) => {
1731
+ switch (companyType) {
1732
+ case LegalEntityTypes.INDIVIDUAL:
1733
+ switch (taxIdNumberType) {
1734
+ case "IDENTITY_CARD_NUMBER":
1735
+ return {
1736
+ label: "taxInformationNumber__MT_Individual",
1737
+ validators: mapValidators(
1738
+ [validatePatternOnBlur(/^\d{7}[A-Z]$|^\d{9}$/)],
1739
+ CountryCodes.Malta
1740
+ ),
1741
+ mask: {
1742
+ mask: makeMask(...numericInputs(7), ...alphanumericInputs(2)),
1743
+ transformOnType: uppercase
1744
+ },
1745
+ guidanceText: {
1746
+ key: "validationPleaseEnterAValidIdNumberWithExample",
1747
+ values: {
1748
+ example: "1234567A",
1749
+ idType: "Identity card number or unique taxpayer reference number (Maltese nationals)"
1750
+ }
1751
+ }
1752
+ };
1753
+ case "NRU":
1754
+ default:
1755
+ return {
1756
+ label: "taxInformationNumber__MT_NRU_Individual",
1757
+ validators: mapValidators([validatePatternOnBlur(/^\d{9}$/)], CountryCodes.Malta),
1758
+ mask: { mask: makeMask(...numericInputs(9)) },
1759
+ guidanceText: {
1760
+ key: "validationPleaseEnterAValidIdNumberWithExample",
1761
+ values: {
1762
+ example: "999999999",
1763
+ idType: "NRU (Non-Maltese nationals)"
1764
+ }
1765
+ }
1766
+ };
1767
+ }
1768
+ default:
1769
+ return {
1770
+ label: "taxInformationNumber__MT_Org",
1771
+ validators: mapValidators([validatePatternOnBlur(/^\d{9}$/)], CountryCodes.Malta),
1772
+ mask: {
1773
+ mask: makeMask(...numericInputs(9))
1774
+ },
1775
+ guidanceText: {
1776
+ key: "validationPleaseEnterAValidIdNumberWithExample",
1777
+ values: {
1778
+ example: "123456789",
1779
+ idType: "Income Tax Registration Number"
1780
+ }
1781
+ }
1782
+ };
1783
+ }
1784
+ },
1785
+ [CountryCodes.Netherlands]: ({ companyType }) => {
1786
+ switch (companyType) {
1787
+ case LegalEntityTypes.INDIVIDUAL:
1788
+ return {
1789
+ label: "bsnNumber",
1790
+ validators: mapValidators([validatePatternOnBlur(/^\d{9}$/)], CountryCodes.Netherlands),
1791
+ mask: { mask: makeMask(...numericInputs(9)) },
1792
+ guidanceText: {
1793
+ key: "validationPleaseEnterAValidIdNumberWithExample",
1794
+ values: {
1795
+ example: "999999999",
1796
+ idType: "BSN"
1797
+ }
1798
+ }
1799
+ };
1800
+ default:
1801
+ return {
1802
+ label: "rsinNumber",
1803
+ validators: mapValidators([validatePatternOnBlur(/^\d{9}$/)], CountryCodes.Netherlands),
1804
+ mask: { mask: makeMask(...numericInputs(9)) },
1805
+ guidanceText: {
1806
+ key: "validationPleaseEnterAValidIdNumberWithExample",
1807
+ values: {
1808
+ example: "811786523",
1809
+ idType: "RSIN"
1810
+ }
1811
+ }
1812
+ };
1813
+ }
1814
+ },
1815
+ [CountryCodes.NewZealand]: {
1816
+ label: "irdNumber",
1817
+ validators: mapValidators([validatePatternOnBlur(/^\d{8,9}$/)], CountryCodes.NewZealand),
1818
+ mask: {
1819
+ mask: makeMask(...numericInputs(8), ...numericInputs(1, true))
1820
+ },
1821
+ guidanceText: {
1822
+ key: "enterXToYDigitsForExample",
1823
+ values: {
1824
+ minDigits: "8",
1825
+ maxDigits: "9",
1826
+ example: "12345678"
1827
+ }
1828
+ }
1829
+ },
1830
+ [CountryCodes.Portugal]: {
1831
+ label: "taxInformationNumber__PT",
1832
+ validators: mapValidators([validatePatternOnBlur(/^\d{9}$/)], CountryCodes.Portugal),
1833
+ mask: { mask: makeMask(...numericInputs(9)) },
1834
+ guidanceText: {
1835
+ key: "validationPleaseEnterAValidIdNumberWithExample",
1836
+ values: {
1837
+ example: "299999998",
1838
+ idType: "Numéro ID Civil"
1839
+ }
1840
+ }
1841
+ },
1842
+ [CountryCodes.PuertoRico]: {
1843
+ // should exactly match CountryCodes.UnitedStates
1844
+ label: "taxInformationNumber__US",
1845
+ validators: mapValidators([validatePatternOnBlur(/^\d{9}$/)], CountryCodes.PuertoRico),
1846
+ mask: {
1847
+ mask: makeMask(...numericInputs(2), ...nonInputs(" - "), ...numericInputs(7))
1848
+ },
1849
+ guidanceText: {
1850
+ key: "validationPleaseEnterAValidEINWithFormat",
1851
+ values: {
1852
+ format: "XX-XXXXXXX",
1853
+ example: "98-7654321"
1854
+ }
1855
+ }
1856
+ },
1857
+ // Special case for SG in which we also save the registration number as the TaxID if that selection has been made
1858
+ [CountryCodes.Singapore]: {
1859
+ label: "gst",
1860
+ validators: mapValidators([validatePatternOnBlur(/^[A-Z0-9]{9,10}$/)], CountryCodes.Singapore),
1861
+ mask: {
1862
+ mask: makeMask(
1863
+ ...alphanumericInputs(2),
1864
+ ...nonInputs(" - "),
1865
+ ...alphanumericInputs(7),
1866
+ ...nonInputs(" - "),
1867
+ ...alphanumericInputs(1)
1868
+ ),
1869
+ transformOnType: uppercase
1870
+ },
1871
+ guidanceText: {
1872
+ key: "enterNCharactersForExample",
1873
+ values: {
1874
+ numChars: "10",
1875
+ example: "M212345678"
1876
+ }
1877
+ }
1878
+ },
1879
+ [CountryCodes.Slovakia]: ({ companyType }) => {
1880
+ switch (companyType) {
1881
+ case LegalEntityTypes.INDIVIDUAL:
1882
+ return {
1883
+ label: "taxInformationNumber__SK_Individual",
1884
+ validators: mapValidators(
1885
+ [validatePatternOnBlur(/^\d{9}$|^\d{10}$|^\d{11}$|^\d{6}\/\d{3}$|^\d{6}\/\d{4}$/)],
1886
+ CountryCodes.Slovakia
1887
+ ),
1888
+ mask: {
1889
+ mask: makeMask(
1890
+ ...numericInputs(6),
1891
+ { type: "input", allow: /\//, optional: true },
1892
+ ...numericInputs(4),
1893
+ ...numericInputs(1, true)
1894
+ )
1895
+ },
1896
+ guidanceText: {
1897
+ key: "validationPleaseEnterAValidIdNumberWithExample",
1898
+ values: {
1899
+ example: "7711167420",
1900
+ idType: "Rodne Cislo"
1901
+ }
1902
+ }
1903
+ };
1904
+ default:
1905
+ return {
1906
+ label: "taxInformationNumber__SK_Org",
1907
+ validators: mapValidators([validatePatternOnBlur(/^\d{10}$/)], CountryCodes.Slovakia),
1908
+ mask: {
1909
+ mask: makeMask(...numericInputs(10))
1910
+ },
1911
+ guidanceText: {
1912
+ key: "validationPleaseEnterAValidIdNumberWithExample",
1913
+ values: {
1914
+ example: "2020123456",
1915
+ idType: "Daňové identifikačné číslo (DIČ)"
1916
+ }
1917
+ }
1918
+ };
1919
+ }
1920
+ },
1921
+ [CountryCodes.Slovenia]: ({ companyType }) => {
1922
+ switch (companyType) {
1923
+ case LegalEntityTypes.INDIVIDUAL:
1924
+ return {
1925
+ label: "taxInformationNumber__SI_Individual",
1926
+ validators: mapValidators([validatePatternOnBlur(/^\d{8}$/)], CountryCodes.Slovenia),
1927
+ mask: { mask: makeMask(...numericInputs(8)) },
1928
+ guidanceText: {
1929
+ key: "validationPleaseEnterAValidIdNumberWithExample",
1930
+ values: {
1931
+ example: "15012557",
1932
+ idType: "SI tax number"
1933
+ }
1934
+ }
1935
+ };
1936
+ default:
1937
+ return {
1938
+ label: "taxInformationNumber__SI_Org",
1939
+ validators: mapValidators([validatePatternOnBlur(/^\d{8}$/)], CountryCodes.Slovenia),
1940
+ mask: { mask: makeMask(...numericInputs(8)) },
1941
+ guidanceText: {
1942
+ key: "validationPleaseEnterAValidIdNumberWithExample",
1943
+ values: {
1944
+ example: "12345678",
1945
+ idType: "Davčna številka"
1946
+ }
1947
+ }
1948
+ };
1949
+ }
1950
+ },
1951
+ [CountryCodes.UnitedKingdom]: ({ taxIdNumberType, companyType }) => {
1952
+ switch (companyType) {
1953
+ case LegalEntityTypes.INDIVIDUAL:
1954
+ switch (taxIdNumberType) {
1955
+ case "NINO":
1956
+ return {
1957
+ label: "nationalInsuranceNumber",
1958
+ validators: mapValidators(
1959
+ [validatePatternOnBlur(/^[A-Z]{2}\d{6}[A-D]$/)],
1960
+ CountryCodes.UnitedKingdom
1961
+ ),
1962
+ guidanceText: {
1963
+ key: "validationPleaseEnterAValidIdNumberWithExample",
1964
+ values: {
1965
+ example: "AA123456C",
1966
+ idType: "NINO"
1967
+ }
1968
+ }
1969
+ };
1970
+ default:
1971
+ return {
1972
+ label: "utr",
1973
+ validators: mapValidators(
1974
+ [validatePatternOnBlur(/^\d{10}$/)],
1975
+ CountryCodes.UnitedKingdom
1976
+ ),
1977
+ mask: { mask: makeMask(...numericInputs(10)) },
1978
+ guidanceText: {
1979
+ key: "validationPleaseEnterAValidIdNumberWithExample",
1980
+ values: {
1981
+ example: "6669863459",
1982
+ idType: "UTR"
1983
+ }
1984
+ }
1985
+ };
1986
+ }
1987
+ default:
1988
+ return {
1989
+ label: "utr",
1990
+ validators: mapValidators(
1991
+ [validatePatternOnBlur(/^\d{10}$/)],
1992
+ CountryCodes.UnitedKingdom
1993
+ ),
1994
+ mask: { mask: makeMask(...numericInputs(10)) },
1995
+ guidanceText: {
1996
+ key: "validationPleaseEnterAValidIdNumberWithExample",
1997
+ values: {
1998
+ example: "6669863459",
1999
+ idType: "UTR"
2000
+ }
2001
+ }
2002
+ };
2003
+ }
2004
+ },
2005
+ [CountryCodes.UnitedStates]: {
2006
+ label: "taxInformationNumber__US",
2007
+ validators: mapValidators(
2008
+ [validateNotEmptyOnBlur, validatePatternOnBlur(/^\d{9}$/)],
2009
+ CountryCodes.UnitedStates
2010
+ ),
2011
+ mask: {
2012
+ mask: makeMask(...numericInputs(2), ...nonInputs(" - "), ...numericInputs(7))
2013
+ },
2014
+ guidanceText: {
2015
+ key: "validationPleaseEnterAValidEINWithFormat",
2016
+ values: {
2017
+ format: "XX-XXXXXXX",
2018
+ example: "98-7654321"
2019
+ }
2020
+ }
2021
+ },
2022
+ /**
2023
+ * NOT YET SUPPORTED
2024
+ * These are brought over from the old pattern files. We have no idea if they are accurate or not.
2025
+ * See https://en.wikipedia.org/wiki/VAT_identification_number
2026
+ */
2027
+ [CountryCodes.India]: {
2028
+ validators: mapValidators([validatePatternOnBlur(/^[A-Z0-9]{15}$/)], CountryCodes.India)
2029
+ },
2030
+ [CountryCodes.Japan]: {
2031
+ label: "taxInformationNumber__JP",
2032
+ validators: mapValidators([validatePatternOnBlur(/^\d{13}$/)], CountryCodes.Japan)
2033
+ },
2034
+ [CountryCodes.Philippines]: {
2035
+ validators: mapValidators([validatePatternOnBlur(/^\d{12}$/)], CountryCodes.Philippines)
2036
+ }
2037
+ };
2038
+ const exemptedFromTaxDefaultFieldConfig = {
2039
+ [CountryCodes.Australia]: {
2040
+ label: "doNotHaveAbn"
2041
+ }
2042
+ };
2043
+ const getTaxInformationPlaceholderText = ({
2044
+ country,
2045
+ companyType,
2046
+ taxIdNumberType
2047
+ }) => {
2048
+ switch (country) {
2049
+ case CountryCodes.Austria:
2050
+ return "931736581";
2051
+ case CountryCodes.Belgium:
2052
+ switch (companyType) {
2053
+ case LegalEntityTypes.INDIVIDUAL:
2054
+ return "99999999999";
2055
+ default:
2056
+ return "0123321123";
2057
+ }
2058
+ case CountryCodes.Croatia:
2059
+ return "94577403194";
2060
+ case CountryCodes.Cyprus:
2061
+ return "00123123T";
2062
+ case CountryCodes.Estonia:
2063
+ return "32708101201";
2064
+ case CountryCodes.Ethiopia:
2065
+ return "32708101201";
2066
+ case CountryCodes.Finland:
2067
+ return "131052-308T";
2068
+ case CountryCodes.France:
2069
+ return "30 23 217 600 053";
2070
+ case CountryCodes.Germany:
2071
+ switch (companyType) {
2072
+ case LegalEntityTypes.INDIVIDUAL:
2073
+ return "26954371827";
2074
+ default:
2075
+ return "14310260208";
2076
+ }
2077
+ case CountryCodes.Gibraltar:
2078
+ return "123456";
2079
+ case CountryCodes.Greece:
2080
+ return "244709851";
2081
+ case CountryCodes.Ireland:
2082
+ switch (companyType) {
2083
+ case LegalEntityTypes.INDIVIDUAL:
2084
+ return "1234567T";
2085
+ default:
2086
+ return "1497955KA";
2087
+ }
2088
+ case CountryCodes.Italy:
2089
+ return "12345678901";
2090
+ case CountryCodes.IsleOfMan:
2091
+ return "C155673-79";
2092
+ case CountryCodes.Latvia:
2093
+ return "32532963606";
2094
+ case CountryCodes.Lithuania:
2095
+ return "33309240064";
2096
+ case CountryCodes.Luxembourg:
2097
+ switch (companyType) {
2098
+ case LegalEntityTypes.INDIVIDUAL:
2099
+ return "1893120105732";
2100
+ default:
2101
+ return "19991201001";
2102
+ }
2103
+ case CountryCodes.Malta:
2104
+ switch (companyType) {
2105
+ case LegalEntityTypes.INDIVIDUAL:
2106
+ switch (taxIdNumberType) {
2107
+ case "NRU":
2108
+ return "999999999";
2109
+ default:
2110
+ return "1234567A";
2111
+ }
2112
+ default:
2113
+ return "999999999";
2114
+ }
2115
+ case CountryCodes.Netherlands:
2116
+ switch (companyType) {
2117
+ case LegalEntityTypes.INDIVIDUAL:
2118
+ return "999999999";
2119
+ default:
2120
+ return "811786523";
2121
+ }
2122
+ case CountryCodes.Portugal:
2123
+ return "299999998";
2124
+ case CountryCodes.Slovakia:
2125
+ switch (companyType) {
2126
+ case LegalEntityTypes.INDIVIDUAL:
2127
+ return "7711167420";
2128
+ default:
2129
+ return "2020123456";
2130
+ }
2131
+ case CountryCodes.Slovenia:
2132
+ switch (companyType) {
2133
+ case LegalEntityTypes.INDIVIDUAL:
2134
+ return "15012557";
2135
+ default:
2136
+ return "12345678";
2137
+ }
2138
+ case CountryCodes.UnitedKingdom:
2139
+ return "1234567890";
2140
+ case CountryCodes.Spain:
2141
+ return "99999999L";
2142
+ case CountryCodes.PuertoRico:
2143
+ case CountryCodes.UnitedStates:
2144
+ return "11-0000000";
2145
+ }
2146
+ };
2147
+ const descriptionField = "adyen-kyc-description-field";
2148
+ const styles = {
2149
+ descriptionField
2150
+ };
2151
+ const DESCRIPTION_CHARACTERS_LIMIT = 200;
2152
+ function DocumentUpload({
2153
+ documentType,
2154
+ documentField,
2155
+ guidanceHeader,
2156
+ documentTypeSelect,
2157
+ guidanceContent,
2158
+ handleFieldChange,
2159
+ requiredFields,
2160
+ data: dataProp,
2161
+ valid: validProp,
2162
+ errors: errorProp,
2163
+ fieldValidationErrors: propFieldValidationErrors,
2164
+ supportsMultipleUploads,
2165
+ maxNumberOfFiles = 1,
2166
+ label,
2167
+ extraDropzoneDescription,
2168
+ hidePageCount,
2169
+ ...props
2170
+ }) {
2171
+ const { t } = useTranslation("common");
2172
+ const [document, setDocument] = useState();
2173
+ const form = useForm({
2174
+ ...props,
2175
+ schema: ["description"],
2176
+ defaultData: dataProp,
2177
+ rules: props.validators,
2178
+ fieldProblems: propFieldValidationErrors
2179
+ });
2180
+ const { handleChangeFor, triggerValidation, setData } = form;
2181
+ let { data, errors, valid, fieldProblems } = form;
2182
+ const formUtils = createFormUtils(props, t);
2183
+ const stateRef = useRef({ setState: null });
2184
+ const isOptional = !(props?.formVerificationErrors && Object.keys(props?.formVerificationErrors)?.length === 0);
2185
+ useEffect(() => {
2186
+ if (isOptional) {
2187
+ triggerValidation();
2188
+ }
2189
+ }, [dataProp]);
2190
+ useEffect(() => {
2191
+ stateRef.current.setState?.({
2192
+ type: "addToState",
2193
+ value: {
2194
+ data,
2195
+ valid,
2196
+ errors,
2197
+ fieldProblems,
2198
+ dataStoreId: props.id,
2199
+ schema: requiredFields
2200
+ }
2201
+ });
2202
+ }, [data, valid, errors, fieldProblems]);
2203
+ useEffect(() => {
2204
+ setDocument({
2205
+ [documentField]: dataProp?.[documentField]
2206
+ });
2207
+ setData("description", dataProp?.description);
2208
+ triggerValidation();
2209
+ }, [dataProp]);
2210
+ if (handleFieldChange && requiredFields && propFieldValidationErrors) {
2211
+ data = dataProp ?? {};
2212
+ errors = errorProp;
2213
+ valid = validProp;
2214
+ fieldProblems = propFieldValidationErrors;
2215
+ }
2216
+ const handleInput = (e) => {
2217
+ handleChangeFor("description")(e);
2218
+ if (handleFieldChange) {
2219
+ handleFieldChange?.("description")(e);
2220
+ }
2221
+ };
2222
+ return /* @__PURE__ */ jsxs(
2223
+ "div",
2224
+ {
2225
+ className: `adyen-kyc-company-document-upload adyen-kyc-company-document-upload--${documentField}`,
2226
+ children: [
2227
+ /* @__PURE__ */ jsx(StateContextSetter, { owner: props.id, stateRef }),
2228
+ props.heading && /* @__PURE__ */ jsx(Header, { title: props.heading, description: props.description }),
2229
+ /* @__PURE__ */ jsx(
2230
+ ErrorPanel,
2231
+ {
2232
+ verificationErrors: props?.formVerificationErrors,
2233
+ validationErrors: propFieldValidationErrors,
2234
+ formUtils,
2235
+ id: "ariaErrorField"
2236
+ }
2237
+ ),
2238
+ formUtils.isRequiredField(documentField) && /* @__PURE__ */ jsxs(Fragment, { children: [
2239
+ guidanceHeader,
2240
+ documentTypeSelect && /* @__PURE__ */ jsx(Field, { name: "documentType", label: t(($) => $["selectDocumentType"]), children: (childProps) => /* @__PURE__ */ jsx(
2241
+ Select,
2242
+ {
2243
+ ...childProps,
2244
+ onChange: (e) => documentTypeSelect.setSelectedType(e.target.value),
2245
+ name: "documentType",
2246
+ placeholder: t(($) => $["selectDocument"]),
2247
+ selected: documentTypeSelect.selectedType,
2248
+ items: documentTypeSelect.options.map(({ id, name }) => ({
2249
+ id,
2250
+ name: t(($) => $[name])
2251
+ }))
2252
+ }
2253
+ ) }),
2254
+ /* @__PURE__ */ jsx("div", { children: guidanceContent }),
2255
+ /* @__PURE__ */ jsx(DocumentGuidance, { type: documentType, className: "adyen-kyc-u-margin-bottom-24" }),
2256
+ /* @__PURE__ */ jsx(
2257
+ Dropzone,
2258
+ {
2259
+ defaultData: document ?? data,
2260
+ id: props.id,
2261
+ isOptional: isOptional || formUtils.isOptionalField(documentField),
2262
+ maxSize: documentType === "constitutionalDocument" ? 31457280 : void 0,
2263
+ name: documentField,
2264
+ shouldValidate: props.shouldValidate,
2265
+ handleFieldChange,
2266
+ errors,
2267
+ fieldValidationErrors: fieldProblems,
2268
+ valid,
2269
+ multiple: supportsMultipleUploads,
2270
+ maxNumberOfFiles: maxNumberOfFiles ?? 1,
2271
+ label,
2272
+ extraDropzoneDescription,
2273
+ hidePageCount
2274
+ }
2275
+ )
2276
+ ] }),
2277
+ formUtils.isRequiredField("description") && /* @__PURE__ */ jsx("div", { className: styles.descriptionField, children: /* @__PURE__ */ jsx(
2278
+ Field,
2279
+ {
2280
+ name: "description",
2281
+ label: formUtils.getLabel("descriptionOptional"),
2282
+ errorMessage: formUtils.getErrorMessage("description", errors, fieldProblems),
2283
+ isValid: valid.description,
2284
+ children: (childProps) => /* @__PURE__ */ jsx(
2285
+ TextArea,
2286
+ {
2287
+ ...childProps,
2288
+ name: "description",
2289
+ value: data.description,
2290
+ maxLength: DESCRIPTION_CHARACTERS_LIMIT,
2291
+ onInput: handleInput,
2292
+ "aria-invalid": !valid.description,
2293
+ handleFieldChange: handleInput,
2294
+ errors,
2295
+ fieldValidationErrors: fieldProblems,
2296
+ valid
2297
+ }
2298
+ )
2299
+ }
2300
+ ) })
2301
+ ]
2302
+ }
2303
+ );
2304
+ }
2305
+ const MemoizedDocumentUpload = memo(
2306
+ DocumentUpload,
2307
+ (prevProps, nextProps) => prevProps.shouldValidate === nextProps.shouldValidate && objectsDeepEqual(prevProps.requiredFields, nextProps.requiredFields) && objectsDeepEqual(prevProps.errors, nextProps.errors) && objectsDeepEqual(prevProps.optionalFields, nextProps.optionalFields) && objectsDeepEqual(prevProps.data, nextProps.data) && objectsDeepEqual(prevProps.formVerificationErrors, nextProps.formVerificationErrors) && objectsDeepEqual(prevProps.fieldValidationErrors, nextProps.fieldValidationErrors) && objectsDeepEqual(prevProps.documentTypeSelect, nextProps.documentTypeSelect) && prevProps.documentField === nextProps.documentField && prevProps.name === nextProps.name && prevProps.country === nextProps.country && prevProps.companyType === nextProps.companyType
2308
+ );
2309
+ const useCapabilities = () => {
2310
+ const { data: rootLegalEntity } = useLegalEntity(ROOT_LE);
2311
+ return rootLegalEntity?.capabilities;
2312
+ };
2313
+ const companyRegistrationNumberOptions = {
2314
+ [CountryCodes.Australia]: [
2315
+ {
2316
+ id: "incorporatedAssociationRegistrationNumber",
2317
+ name: "incorporatedAssociationRegistrationNumber",
2318
+ applicableOnlyFor: [CompanyTypesValues.INCORPORATED_ASSOCIATION]
2319
+ },
2320
+ {
2321
+ id: "australianBusinessNumberAcn",
2322
+ name: "australianBusinessNumberAcn",
2323
+ applicableOnlyFor: [
2324
+ CompanyTypesValues.PRIVATE_COMPANY,
2325
+ CompanyTypesValues.PUBLIC_COMPANY,
2326
+ CompanyTypesValues.UNLISTED_PUBLIC_COMPANY,
2327
+ CompanyTypesValues.UNINCORPORATED_PARTNERSHIP,
2328
+ CompanyTypesValues.INCORPORATED_PARTNERSHIP,
2329
+ CompanyTypesValues.GOVERNMENTAL_ORGANIZATION,
2330
+ CompanyTypesValues.NON_PROFIT_OR_CHARITABLE,
2331
+ CompanyTypesValues.SOLE_PROPRIETORSHIP
2332
+ ]
2333
+ }
2334
+ ],
2335
+ [CountryCodes.Austria]: [
2336
+ {
2337
+ id: "firmenbuchnummer",
2338
+ name: "firmenbuchnummer"
2339
+ },
2340
+ {
2341
+ id: "ZVR",
2342
+ name: "zentralesVereinsregisterId",
2343
+ applicableOnlyFor: [
2344
+ CompanyTypesValues.NON_PROFIT_OR_CHARITABLE,
2345
+ CompanyTypesValues.INCORPORATED_ASSOCIATION
2346
+ ]
2347
+ }
2348
+ ],
2349
+ [CountryCodes.Croatia]: [
2350
+ { id: "MBO", name: "MBO", applicableOnlyFor: [CompanyTypesValues.SOLE_PROPRIETORSHIP] },
2351
+ {
2352
+ id: "MBS",
2353
+ name: "MBS",
2354
+ applicableOnlyFor: [
2355
+ CompanyTypesValues.PRIVATE_COMPANY,
2356
+ CompanyTypesValues.PUBLIC_COMPANY,
2357
+ CompanyTypesValues.UNLISTED_PUBLIC_COMPANY,
2358
+ CompanyTypesValues.UNINCORPORATED_PARTNERSHIP,
2359
+ CompanyTypesValues.INCORPORATED_PARTNERSHIP,
2360
+ CompanyTypesValues.GOVERNMENTAL_ORGANIZATION,
2361
+ CompanyTypesValues.NON_PROFIT_OR_CHARITABLE
2362
+ ]
2363
+ }
2364
+ ],
2365
+ [CountryCodes.France]: [
2366
+ {
2367
+ id: "SIRET",
2368
+ name: "siret"
2369
+ },
2370
+ {
2371
+ id: "RNA",
2372
+ name: "rnaNumber",
2373
+ applicableOnlyFor: [CompanyTypesValues.NON_PROFIT_OR_CHARITABLE]
2374
+ }
2375
+ ],
2376
+ [CountryCodes.Hungary]: [
2377
+ {
2378
+ id: "nyilvantartasiSzam",
2379
+ name: "huRegistrationNumberForSoleProp",
2380
+ applicableOnlyFor: [CompanyTypesValues.SOLE_PROPRIETORSHIP]
2381
+ }
2382
+ ],
2383
+ [CountryCodes.Italy]: [
2384
+ {
2385
+ id: "partitaIVA",
2386
+ name: "codiceFiscalePartitaIVA"
2387
+ },
2388
+ {
2389
+ id: "CCIAA",
2390
+ name: "CCIAA"
2391
+ }
2392
+ ],
2393
+ [CountryCodes.Monaco]: [
2394
+ {
2395
+ id: "mcRegistrationNumberSoleProp",
2396
+ name: "mcRegistrationNumberSoleProp",
2397
+ applicableOnlyFor: [CompanyTypesValues.SOLE_PROPRIETORSHIP]
2398
+ },
2399
+ {
2400
+ id: "mcRegistrationNumber",
2401
+ name: "mcRegistrationNumber",
2402
+ applicableOnlyFor: [
2403
+ CompanyTypesValues.PRIVATE_COMPANY,
2404
+ CompanyTypesValues.GOVERNMENTAL_ORGANIZATION,
2405
+ CompanyTypesValues.INCORPORATED_ASSOCIATION,
2406
+ CompanyTypesValues.INCORPORATED_PARTNERSHIP,
2407
+ CompanyTypesValues.NON_PROFIT_OR_CHARITABLE,
2408
+ CompanyTypesValues.UNINCORPORATED_PARTNERSHIP,
2409
+ CompanyTypesValues.UNLISTED_PUBLIC_COMPANY
2410
+ ]
2411
+ }
2412
+ ],
2413
+ [CountryCodes.NewZealand]: [
2414
+ {
2415
+ id: "NZBN",
2416
+ name: "NZBN"
2417
+ },
2418
+ {
2419
+ id: "companyNumberNZ",
2420
+ name: "companyNumberNZ",
2421
+ applicableOnlyFor: [
2422
+ CompanyTypesValues.PRIVATE_COMPANY,
2423
+ CompanyTypesValues.PUBLIC_COMPANY,
2424
+ CompanyTypesValues.UNLISTED_PUBLIC_COMPANY
2425
+ ]
2426
+ }
2427
+ ],
2428
+ [CountryCodes.Romania]: [
2429
+ {
2430
+ id: "roRegNumberNewFormat",
2431
+ name: "roRegNumberNewFormat_label"
2432
+ },
2433
+ {
2434
+ id: "roRegNumberOldFormat",
2435
+ name: "roRegNumberOldFormat_label"
2436
+ }
2437
+ ],
2438
+ [CountryCodes.Poland]: [
2439
+ {
2440
+ id: "regon",
2441
+ name: "regon"
2442
+ },
2443
+ {
2444
+ id: "krsNumber",
2445
+ name: "krsNumber"
2446
+ }
2447
+ ],
2448
+ [CountryCodes.UnitedKingdom]: [
2449
+ {
2450
+ id: "charity",
2451
+ name: "charityNumber",
2452
+ applicableOnlyFor: [CompanyTypesValues.NON_PROFIT_OR_CHARITABLE]
2453
+ },
2454
+ {
2455
+ id: "companyNumber",
2456
+ name: "companyNumber",
2457
+ applicableOnlyFor: [
2458
+ CompanyTypesValues.PRIVATE_COMPANY,
2459
+ CompanyTypesValues.GOVERNMENTAL_ORGANIZATION,
2460
+ CompanyTypesValues.INCORPORATED_ASSOCIATION,
2461
+ CompanyTypesValues.INCORPORATED_PARTNERSHIP,
2462
+ CompanyTypesValues.NON_PROFIT_OR_CHARITABLE,
2463
+ CompanyTypesValues.UNINCORPORATED_PARTNERSHIP,
2464
+ CompanyTypesValues.UNLISTED_PUBLIC_COMPANY,
2465
+ CompanyTypesValues.PUBLIC_COMPANY
2466
+ ]
2467
+ }
2468
+ ]
2469
+ };
2470
+ const getCompanyRegistrationNumberOptions = (country, companyType) => {
2471
+ const optionsForCountry = companyRegistrationNumberOptions[country];
2472
+ if (!companyType || !optionsForCountry) return optionsForCountry;
2473
+ return optionsForCountry.filter(
2474
+ (option) => option.applicableOnlyFor?.includes(companyType) ?? true
2475
+ );
2476
+ };
2477
+ const individualIdNumberOptions = {
2478
+ [CountryCodes.Spain]: [
2479
+ {
2480
+ id: "dni",
2481
+ name: "dni"
2482
+ },
2483
+ {
2484
+ id: "nie",
2485
+ name: "nie"
2486
+ }
2487
+ ]
2488
+ };
2489
+ const additionallIdNumberOptions = {
2490
+ [CountryCodes.NewZealand]: [
2491
+ {
2492
+ id: "driversLicense",
2493
+ name: "driversLicense"
2494
+ },
2495
+ {
2496
+ id: "passport",
2497
+ name: "passportNumber"
2498
+ }
2499
+ ],
2500
+ [CountryCodes.HongKong]: [
2501
+ {
2502
+ id: "proofOfIdentityCard",
2503
+ name: "stateIssuedProofOfIdentityCard"
2504
+ },
2505
+ {
2506
+ id: "driversLicense",
2507
+ name: "driversLicense"
2508
+ },
2509
+ {
2510
+ id: "passport",
2511
+ name: "passportNumber"
2512
+ }
2513
+ ],
2514
+ [CountryCodes.Australia]: [
2515
+ {
2516
+ id: "driversLicense",
2517
+ name: "driversLicense"
2518
+ },
2519
+ {
2520
+ id: "passport",
2521
+ name: "passportNumber"
2522
+ }
2523
+ ]
2524
+ };
2525
+ const taxIdNumberOptions = {
2526
+ [CountryCodes.Australia]: [
2527
+ {
2528
+ id: "ABN",
2529
+ name: "australianBusinessNumberAbn"
2530
+ }
2531
+ ],
2532
+ [CountryCodes.Austria]: [
2533
+ {
2534
+ id: "STEUERNUMMER",
2535
+ name: "taxInformationNumber__AT"
2536
+ }
2537
+ ],
2538
+ [CountryCodes.Belgium]: [
2539
+ {
2540
+ id: "BUSINESS_NUMMER",
2541
+ name: "businessNumber",
2542
+ applicableOnlyFor: [
2543
+ CompanyTypesValues.SOLE_PROPRIETORSHIP,
2544
+ CompanyTypesValues.PRIVATE_COMPANY,
2545
+ CompanyTypesValues.GOVERNMENTAL_ORGANIZATION,
2546
+ CompanyTypesValues.INCORPORATED_ASSOCIATION,
2547
+ CompanyTypesValues.INCORPORATED_PARTNERSHIP,
2548
+ CompanyTypesValues.NON_PROFIT_OR_CHARITABLE,
2549
+ CompanyTypesValues.UNINCORPORATED_PARTNERSHIP,
2550
+ CompanyTypesValues.UNLISTED_PUBLIC_COMPANY
2551
+ ]
2552
+ },
2553
+ {
2554
+ id: "NUMERO_NATIONAL",
2555
+ name: "taxInformationNumber__BE_Individual",
2556
+ applicableOnlyFor: [LegalEntityTypes.INDIVIDUAL]
2557
+ }
2558
+ ],
2559
+ [CountryCodes.Brazil]: [{ id: "CNPJ", name: "CNPJ" }],
2560
+ [CountryCodes.Canada]: [{ id: "BUSINESS_NUMBER", name: "businessNumber" }],
2561
+ [CountryCodes.Croatia]: [
2562
+ {
2563
+ id: "OIB",
2564
+ name: "taxInformationNumber__HR"
2565
+ }
2566
+ ],
2567
+ [CountryCodes.Cyprus]: [
2568
+ {
2569
+ id: "TIC",
2570
+ name: "taxInformationNumber__CY"
2571
+ }
2572
+ ],
2573
+ [CountryCodes.Estonia]: [
2574
+ {
2575
+ id: "ISIKUKOOD",
2576
+ name: "taxInformationNumber__ET_Individual",
2577
+ applicableOnlyFor: [LegalEntityTypes.INDIVIDUAL]
2578
+ },
2579
+ {
2580
+ id: "registrikood",
2581
+ name: "registrikood",
2582
+ applicableOnlyFor: [CompanyTypesValues.PRIVATE_COMPANY]
2583
+ }
2584
+ ],
2585
+ [CountryCodes.Finland]: [
2586
+ {
2587
+ id: "HENKILOTUNNUS",
2588
+ name: "taxInformationNumber__FI",
2589
+ applicableOnlyFor: [LegalEntityTypes.INDIVIDUAL]
2590
+ },
2591
+ {
2592
+ id: "YTUNNUS",
2593
+ name: "YTunnus",
2594
+ applicableOnlyFor: [CompanyTypesValues.PRIVATE_COMPANY]
2595
+ }
2596
+ ],
2597
+ [CountryCodes.France]: [
2598
+ {
2599
+ id: "SIRET",
2600
+ name: "siret",
2601
+ applicableOnlyFor: [CompanyTypesValues.PRIVATE_COMPANY]
2602
+ }
2603
+ ],
2604
+ [CountryCodes.Germany]: [
2605
+ {
2606
+ id: "STEUERNUMMER",
2607
+ name: "taxInformationNumber__DE",
2608
+ applicableOnlyFor: [
2609
+ CompanyTypesValues.SOLE_PROPRIETORSHIP,
2610
+ CompanyTypesValues.PRIVATE_COMPANY,
2611
+ CompanyTypesValues.GOVERNMENTAL_ORGANIZATION,
2612
+ CompanyTypesValues.INCORPORATED_ASSOCIATION,
2613
+ CompanyTypesValues.INCORPORATED_PARTNERSHIP,
2614
+ CompanyTypesValues.NON_PROFIT_OR_CHARITABLE,
2615
+ CompanyTypesValues.UNINCORPORATED_PARTNERSHIP,
2616
+ CompanyTypesValues.UNLISTED_PUBLIC_COMPANY
2617
+ ]
2618
+ },
2619
+ {
2620
+ id: "IDNR",
2621
+ name: "taxInformationNumber__DE_Individual",
2622
+ applicableOnlyFor: [LegalEntityTypes.INDIVIDUAL]
2623
+ }
2624
+ ],
2625
+ [CountryCodes.Gibraltar]: [
2626
+ { id: "GI_TAXPAYER_REFERENCE_NUMBER", name: "taxpayerReferenceNumber" }
2627
+ ],
2628
+ [CountryCodes.Greece]: [
2629
+ {
2630
+ id: "AFM",
2631
+ name: "taxInformationNumber__GR"
2632
+ }
2633
+ ],
2634
+ [CountryCodes.Guernsey]: [
2635
+ { id: "GG_REGISTRATION_NUMBER", name: "taxInformationNumber" },
2636
+ {
2637
+ id: "TIN_GG",
2638
+ name: "nationalInsuranceNumber",
2639
+ applicableOnlyFor: [CompanyTypesValues.SOLE_PROPRIETORSHIP]
2640
+ }
2641
+ ],
2642
+ [CountryCodes.HongKong]: [
2643
+ {
2644
+ id: "BRN",
2645
+ name: "taxInformationNumber__HK"
2646
+ }
2647
+ ],
2648
+ [CountryCodes.Ireland]: [
2649
+ {
2650
+ id: "TRN",
2651
+ name: "trnNumber",
2652
+ applicableOnlyFor: [
2653
+ CompanyTypesValues.PRIVATE_COMPANY,
2654
+ CompanyTypesValues.UNINCORPORATED_PARTNERSHIP
2655
+ ]
2656
+ },
2657
+ {
2658
+ id: "PERSONAL_PUBLIC_SERVICE_NUMBER",
2659
+ name: "taxInformationNumber__IE_Individual",
2660
+ applicableOnlyFor: [LegalEntityTypes.INDIVIDUAL]
2661
+ }
2662
+ ],
2663
+ [CountryCodes.IsleOfMan]: [{ id: "IM_TAX_REFERENCE_NUMBER", name: "taxReferenceNumber" }],
2664
+ [CountryCodes.Italy]: [
2665
+ {
2666
+ id: "CODICE_FISCALE",
2667
+ name: "taxInformationNumber__IT"
2668
+ }
2669
+ ],
2670
+ [CountryCodes.Japan]: [{ id: "CORPORATE_NUMBER", name: "taxInformationNumber" }],
2671
+ [CountryCodes.Jersey]: [
2672
+ {
2673
+ id: "TIN_JE",
2674
+ name: "taxIdentificationNumber"
2675
+ },
2676
+ {
2677
+ id: "SSN",
2678
+ name: "socialSecurityNumber",
2679
+ applicableOnlyFor: [CompanyTypesValues.SOLE_PROPRIETORSHIP]
2680
+ }
2681
+ ],
2682
+ [CountryCodes.Latvia]: [
2683
+ {
2684
+ id: "PERSONAS_KODS",
2685
+ name: "taxInformationNumber__LV",
2686
+ applicableOnlyFor: [LegalEntityTypes.INDIVIDUAL]
2687
+ },
2688
+ {
2689
+ id: "REGISTRACIJAS_NUMURS",
2690
+ name: "lvRegistrationNumber",
2691
+ applicableOnlyFor: [CompanyTypesValues.PRIVATE_COMPANY]
2692
+ }
2693
+ ],
2694
+ [CountryCodes.Lithuania]: [
2695
+ {
2696
+ id: "ASMENS_KODAS",
2697
+ name: "taxInformationNumber__LT"
2698
+ }
2699
+ ],
2700
+ [CountryCodes.Luxembourg]: [
2701
+ {
2702
+ id: "NATIONAL_IDENTIFICATION_NUMBER",
2703
+ name: "taxInformationNumber__LU_Individual",
2704
+ applicableOnlyFor: [LegalEntityTypes.INDIVIDUAL]
2705
+ },
2706
+ {
2707
+ id: "NATIONAL_IDENTIFICATION_NUMBER",
2708
+ name: "taxInformationNumber__LU_Org",
2709
+ applicableOnlyFor: [CompanyTypesValues.PRIVATE_COMPANY]
2710
+ }
2711
+ ],
2712
+ [CountryCodes.Malta]: [
2713
+ {
2714
+ id: "NRU",
2715
+ name: "taxInformationNumber__MT_NRU_Individual",
2716
+ applicableOnlyFor: [LegalEntityTypes.INDIVIDUAL]
2717
+ },
2718
+ {
2719
+ id: "IDENTITY_CARD_NUMBER",
2720
+ name: "taxInformationNumber__MT_Individual",
2721
+ applicableOnlyFor: [LegalEntityTypes.INDIVIDUAL]
2722
+ },
2723
+ {
2724
+ id: "INCOME_TAX_REGISTRATION_NUMBER",
2725
+ name: "taxInformationNumber__MT_Org",
2726
+ applicableOnlyFor: [CompanyTypesValues.PRIVATE_COMPANY]
2727
+ }
2728
+ ],
2729
+ [CountryCodes.Netherlands]: [
2730
+ {
2731
+ id: "RSIN",
2732
+ name: "rsinNumber",
2733
+ applicableOnlyFor: [
2734
+ CompanyTypesValues.PRIVATE_COMPANY,
2735
+ CompanyTypesValues.GOVERNMENTAL_ORGANIZATION,
2736
+ CompanyTypesValues.INCORPORATED_ASSOCIATION,
2737
+ CompanyTypesValues.INCORPORATED_PARTNERSHIP,
2738
+ CompanyTypesValues.NON_PROFIT_OR_CHARITABLE,
2739
+ CompanyTypesValues.UNINCORPORATED_PARTNERSHIP,
2740
+ CompanyTypesValues.UNLISTED_PUBLIC_COMPANY
2741
+ ]
2742
+ },
2743
+ {
2744
+ id: "BSN",
2745
+ name: "bsnNumber",
2746
+ applicableOnlyFor: [LegalEntityTypes.INDIVIDUAL]
2747
+ }
2748
+ ],
2749
+ [CountryCodes.NewZealand]: [
2750
+ {
2751
+ id: "IRD",
2752
+ name: "irdNumber"
2753
+ }
2754
+ ],
2755
+ [CountryCodes.Portugal]: [
2756
+ {
2757
+ id: "NUMERO_ID_CIVIL",
2758
+ name: "taxInformationNumber__PT",
2759
+ applicableOnlyFor: [LegalEntityTypes.INDIVIDUAL]
2760
+ },
2761
+ {
2762
+ id: "NIPC",
2763
+ name: "NIPC",
2764
+ applicableOnlyFor: [CompanyTypesValues.PRIVATE_COMPANY]
2765
+ }
2766
+ ],
2767
+ [CountryCodes.PuertoRico]: [
2768
+ {
2769
+ id: "EIN",
2770
+ name: "ein"
2771
+ }
2772
+ ],
2773
+ [CountryCodes.Singapore]: [
2774
+ {
2775
+ id: "GST",
2776
+ name: "gst"
2777
+ },
2778
+ {
2779
+ id: "UEN",
2780
+ name: "uen"
2781
+ }
2782
+ ],
2783
+ [CountryCodes.Slovakia]: [
2784
+ {
2785
+ id: "RODNE_CISLO",
2786
+ name: "taxInformationNumber__SK_Individual",
2787
+ applicableOnlyFor: [LegalEntityTypes.INDIVIDUAL]
2788
+ },
2789
+ {
2790
+ id: "NATIONAL_IDENTIFICATION_NUMBER",
2791
+ name: "taxInformationNumber__SK_Org",
2792
+ applicableOnlyFor: [CompanyTypesValues.PRIVATE_COMPANY]
2793
+ }
2794
+ ],
2795
+ [CountryCodes.Slovenia]: [
2796
+ {
2797
+ id: "SI_TAX_NUMBER",
2798
+ name: "taxInformationNumber__SI_Individual",
2799
+ applicableOnlyFor: [LegalEntityTypes.INDIVIDUAL]
2800
+ },
2801
+ {
2802
+ id: "NATIONAL_IDENTIFICATION_NUMBER",
2803
+ name: "taxInformationNumber__SI_Org",
2804
+ applicableOnlyFor: [CompanyTypesValues.PRIVATE_COMPANY]
2805
+ }
2806
+ ],
2807
+ [CountryCodes.Spain]: [
2808
+ {
2809
+ id: "dni",
2810
+ name: "dni",
2811
+ applicableOnlyFor: [LegalEntityTypes.INDIVIDUAL]
2812
+ },
2813
+ {
2814
+ id: "nie",
2815
+ name: "nie",
2816
+ applicableOnlyFor: [LegalEntityTypes.INDIVIDUAL]
2817
+ },
2818
+ {
2819
+ id: "NIF",
2820
+ name: "NIF",
2821
+ applicableOnlyFor: [CompanyTypesValues.PRIVATE_COMPANY]
2822
+ }
2823
+ ],
2824
+ [CountryCodes.UnitedKingdom]: [
2825
+ {
2826
+ id: "UTR",
2827
+ name: "utr"
2828
+ },
2829
+ {
2830
+ id: "NINO",
2831
+ name: "nationalInsuranceNumber",
2832
+ applicableOnlyFor: [LegalEntityTypes.INDIVIDUAL]
2833
+ }
2834
+ ],
2835
+ [CountryCodes.UnitedStates]: [
2836
+ {
2837
+ id: "EIN",
2838
+ name: "ein"
2839
+ }
2840
+ ]
2841
+ };
2842
+ const vatNumberOptions = {
2843
+ [CountryCodes.Austria]: [{ id: "UST-ID", name: "UST-ID" }],
2844
+ [CountryCodes.Belgium]: [{ id: "euVatNumber", name: "euVatNumber" }],
2845
+ [CountryCodes.Bulgaria]: [{ id: "identifikacionenNomerDDS", name: "identifikacionenNomerDDS" }],
2846
+ [CountryCodes.Croatia]: [{ id: "PDVIdBrojOIB", name: "PDVIdBrojOIB" }],
2847
+ [CountryCodes.Cyprus]: [{ id: "arithmosEngraphes", name: "arithmosEngraphes" }],
2848
+ [CountryCodes.CzechRepublic]: [{ id: "DIC", name: "DIC" }],
2849
+ [CountryCodes.Denmark]: [
2850
+ {
2851
+ id: "momsregistreringsnummerCVR",
2852
+ name: "momsregistreringsnummerCVR"
2853
+ },
2854
+ {
2855
+ id: "stamregister",
2856
+ name: "stamregister"
2857
+ }
2858
+ ],
2859
+ [CountryCodes.Estonia]: [
2860
+ { id: "kaibemaksukohustuslaseNumber", name: "kaibemaksukohustuslaseNumber" }
2861
+ ],
2862
+ [CountryCodes.Finland]: [
2863
+ {
2864
+ id: "arvonlisaveronumeroMervardesskattenummer",
2865
+ name: "arvonlisaveronumeroMervardesskattenummer"
2866
+ }
2867
+ ],
2868
+ [CountryCodes.France]: [
2869
+ {
2870
+ id: "numeroDIdentificationALATaxe",
2871
+ name: "numeroDIdentificationALATaxe"
2872
+ },
2873
+ {
2874
+ id: "NumeroDeTVA",
2875
+ name: "NumeroDeTVA"
2876
+ }
2877
+ ],
2878
+ [CountryCodes.Germany]: [{ id: "USt-IdNr", name: "USt-IdNr" }],
2879
+ [CountryCodes.Greece]: [{ id: "grTaxId", name: "grTaxId" }],
2880
+ [CountryCodes.Hungary]: [{ id: "huTaxId", name: "huTaxId" }],
2881
+ [CountryCodes.Ireland]: [{ id: "vatNumber", name: "vatNumber" }],
2882
+ [CountryCodes.Italy]: [{ id: "partitaIVA", name: "partitaIVA" }],
2883
+ [CountryCodes.Latvia]: [{ id: "lvTaxId", name: "lvTaxId" }],
2884
+ [CountryCodes.Liechtenstein]: [{ id: "vatRegistrationNumber", name: "vatRegistrationNumber" }],
2885
+ [CountryCodes.Lithuania]: [{ id: "PVMmoketojoKodas", name: "PVMmoketojoKodas" }],
2886
+ [CountryCodes.Luxembourg]: [
2887
+ { id: "numeroDIdentificationALATaxe", name: "numeroDIdentificationALATaxe" }
2888
+ ],
2889
+ [CountryCodes.Malaysia]: [{ id: "SST", name: "SST" }],
2890
+ [CountryCodes.Malta]: [{ id: "vatNumber", name: "vatNumber" }],
2891
+ [CountryCodes.Monaco]: [
2892
+ { id: "numeroDIdentificationALATaxe", name: "numeroDIdentificationALATaxe" }
2893
+ ],
2894
+ [CountryCodes.Netherlands]: [{ id: "btwNummer", name: "btwNummer" }],
2895
+ [CountryCodes.Norway]: [{ id: "mvanummer", name: "mvanummer" }],
2896
+ [CountryCodes.Poland]: [{ id: "NIP", name: "NIP" }],
2897
+ [CountryCodes.Portugal]: [{ id: "numerodeIVA", name: "numerodeIVA" }],
2898
+ [CountryCodes.Romania]: [
2899
+ { id: "codulDeIdentificareFiscala", name: "codulDeIdentificareFiscala" }
2900
+ ],
2901
+ [CountryCodes.Slovakia]: [{ id: "skTaxId", name: "skTaxId" }],
2902
+ [CountryCodes.Slovenia]: [{ id: "siTaxId", name: "siTaxId" }],
2903
+ [CountryCodes.Spain]: [{ id: "NIFdeIVA", name: "NIFdeIVA" }],
2904
+ [CountryCodes.Sweden]: [
2905
+ {
2906
+ id: "vatNummerMomsregistreringsnummerOrMomsnummer",
2907
+ name: "vatNummerMomsregistreringsnummerOrMomsnummer"
2908
+ }
2909
+ ],
2910
+ [CountryCodes.Switzerland]: [{ id: "Mehrwertsteuernummer", name: "Mehrwertsteuernummer" }],
2911
+ [CountryCodes.UnitedArabEmirates]: [
2912
+ { id: "vatRegistrationNumber", name: "vatRegistrationNumber" }
2913
+ ],
2914
+ [CountryCodes.UnitedKingdom]: [{ id: "vatRegistrationNumber", name: "vatRegistrationNumber" }]
2915
+ };
2916
+ const getTaxIdNumberOptions = (country, companyType) => {
2917
+ const optionsForCountry = taxIdNumberOptions[country];
2918
+ if (!companyType || !optionsForCountry) return optionsForCountry;
2919
+ return optionsForCountry.filter(
2920
+ (option) => option.applicableOnlyFor?.includes(companyType) ?? true
2921
+ );
2922
+ };
2923
+ const getVatNumberOptions = (country, companyType) => {
2924
+ const optionsForCountry = vatNumberOptions[country];
2925
+ if (!companyType || !optionsForCountry) return optionsForCountry;
2926
+ return optionsForCountry.filter(
2927
+ (option) => option.applicableOnlyFor?.includes(companyType) ?? true
2928
+ );
2929
+ };
2930
+ const countryToTaxInfoTypeMap = {
2931
+ US: "EIN",
2932
+ AU: "ABN",
2933
+ NZ: "IRD",
2934
+ HK: "BRN",
2935
+ SG: "GST"
2936
+ };
2937
+ const isFinancialInformationRequired = (isFinancialInformationExperimentEnabled, taskType, country, capabilities, legalEntityType) => {
2938
+ const isOrganization = legalEntityType === LegalEntityTypes.ORGANIZATION;
2939
+ if (!isFinancialInformationExperimentEnabled || !COUNTRIES_REQUIRING_FINANCIAL_INFORMATION.includes(country)) {
2940
+ return void 0;
2941
+ }
2942
+ if (country === CountryCodes.UnitedKingdom && (taskType === TaskTypes.SOLE_PROPRIETOR_COMPANY || taskType === TaskTypes.BUSINESS_DETAILS)) {
2943
+ return "REQUIRED";
2944
+ }
2945
+ if (taskType === TaskTypes.BUSINESS_DETAILS && isOrganization) {
2946
+ if (keysOf(capabilities ?? {}).some((capability) => capability === "issueBankAccount")) {
2947
+ return "REQUIRED";
2948
+ }
2949
+ }
2950
+ return void 0;
2951
+ };
2952
+ function requestingIssuing(rootLegalEntity) {
2953
+ const capabilities = rootLegalEntity?.capabilities ?? {};
2954
+ return "issueCard" in capabilities && capabilities.issueCard?.requested === true || "issueCardConsumer" in capabilities && capabilities.issueCardConsumer?.requested === true || "issueCardCommercial" in capabilities && capabilities.issueCardCommercial?.requested === true || "useCard" in capabilities && capabilities.useCard?.requested === true || "useCardConsumer" in capabilities && capabilities.useCardConsumer?.requested === true || "useCardCommercial" in capabilities && capabilities.useCardCommercial?.requested === true;
2955
+ }
2956
+ function requestingBanking(rootLegalEntity) {
2957
+ const capabilities = rootLegalEntity?.capabilities ?? {};
2958
+ return "issueBankAccount" in capabilities && capabilities.issueBankAccount?.requested === true || "sendToThirdParty" in capabilities && capabilities.sendToThirdParty?.requested === true || "receiveFromThirdParty" in capabilities && capabilities.receiveFromThirdParty?.requested === true;
2959
+ }
2960
+ const COUNTRIES_THAT_DONT_REQUIRE_SOLE_PROP_REGISTRATION = [
2961
+ CountryCodes.Australia,
2962
+ CountryCodes.Gibraltar,
2963
+ CountryCodes.Guernsey,
2964
+ CountryCodes.HongKong,
2965
+ CountryCodes.Ireland,
2966
+ CountryCodes.IsleOfMan,
2967
+ CountryCodes.Jersey,
2968
+ CountryCodes.Malta,
2969
+ CountryCodes.PuertoRico,
2970
+ CountryCodes.Spain,
2971
+ CountryCodes.UnitedKingdom,
2972
+ CountryCodes.UnitedStates
2973
+ ];
2974
+ const COUNTRIES_THAT_DONT_REQUIRE_COMPANY_REGISTRATION = [
2975
+ CountryCodes.HongKong,
2976
+ CountryCodes.PuertoRico,
2977
+ CountryCodes.UnitedStates
2978
+ ];
2979
+ const COUNTRIES_WITH_POSSIBLE_REGISTRATION_EXEMPTIONS_FOR_ORGANIZATIONS = [];
2980
+ const COUNTRIES_WITH_POSSIBLE_REGISTRATION_EXEMPTIONS_FOR_SOLE_PROPS = [
2981
+ CountryCodes.Austria,
2982
+ CountryCodes.Canada,
2983
+ CountryCodes.Finland,
2984
+ CountryCodes.Germany,
2985
+ CountryCodes.Lithuania,
2986
+ CountryCodes.Luxembourg,
2987
+ CountryCodes.NewZealand,
2988
+ CountryCodes.Poland,
2989
+ CountryCodes.Sweden,
2990
+ CountryCodes.Switzerland
2991
+ ];
2992
+ const COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER = [
2993
+ CountryCodes.Canada,
2994
+ CountryCodes.UnitedStates
2995
+ ];
2996
+ const COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER_SOLE_PROPS = [
2997
+ CountryCodes.Germany
2998
+ ];
2999
+ const COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT = [
3000
+ CountryCodes.Australia,
3001
+ CountryCodes.Canada,
3002
+ CountryCodes.Gibraltar,
3003
+ CountryCodes.HongKong,
3004
+ CountryCodes.NewZealand,
3005
+ CountryCodes.PuertoRico,
3006
+ CountryCodes.Singapore,
3007
+ CountryCodes.UnitedStates,
3008
+ CountryCodes.Guernsey,
3009
+ CountryCodes.Jersey,
3010
+ CountryCodes.IsleOfMan,
3011
+ CountryCodes.Mexico,
3012
+ CountryCodes.Brazil,
3013
+ CountryCodes.Japan
3014
+ ];
3015
+ const COUNTRIES_THAT_DO_NOT_USE_TAX_ID_FOR_SOLE_PROP = [
3016
+ CountryCodes.Singapore
3017
+ ];
3018
+ const COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_COMPANIES = [
3019
+ // strictly a subset of countries which use tax ID
3020
+ // right now in all countries companies must provide a tax ID - but maybe there will be exemptions in future?
3021
+ ];
3022
+ const COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_SOLE_PROPS = [
3023
+ // strictly a subset of countries which use tax ID
3024
+ CountryCodes.Canada,
3025
+ CountryCodes.PuertoRico,
3026
+ CountryCodes.UnitedStates
3027
+ ];
3028
+ const COUNTRIES_THAT_REQUIRE_DATE_OF_INCORPORATION = [
3029
+ CountryCodes.HongKong,
3030
+ CountryCodes.Singapore
3031
+ ];
3032
+ const COUNTRIES_THAT_USES_UEN_OR_GST = [CountryCodes.Singapore];
3033
+ const COUNTRIES_USING_COMPANY_SEARCH = [
3034
+ CountryCodes.UnitedStates
3035
+ ];
3036
+ const COUNTRY_OF_GOVERNING_LAW_POSSIBLE = [
3037
+ CountryCodes.UnitedKingdom
3038
+ ];
3039
+ const COUNTRIES_REQUIRING_FINANCIAL_INFORMATION = [
3040
+ CountryCodes.UnitedKingdom,
3041
+ CountryCodes.Netherlands,
3042
+ CountryCodes.France,
3043
+ CountryCodes.Germany,
3044
+ CountryCodes.Spain,
3045
+ CountryCodes.Belgium
3046
+ ];
3047
+ const COUNTRIES_REQUIRING_E_INVOICING_CODE = [
3048
+ /**
3049
+ * @description These are the countries for which E-Invoicing code is a compliance requirement. There will be more in the future.
3050
+ */
3051
+ CountryCodes.Italy
3052
+ ];
3053
+ const COUNTRIES_WITH_POSSIBLE_TRUSTEE_TAXID_ABSENT_V4 = [
3054
+ CountryCodes.Australia
3055
+ ];
3056
+ const TAX_ID_REQUIRED_COUNTRIES_ORGANIZATION = [
3057
+ // The following countries are commented out just to make it more clear that these
3058
+ // use tax id but since it's the same field as business registration we don't want
3059
+ // to remove those here and have a bad ux. So instead in the map schema part
3060
+ // we copy over the values to the taxinformation object
3061
+ // CountryCodes.Estonia,
3062
+ // CountryCodes.Finland,
3063
+ // CountryCodes.France,
3064
+ // CountryCodes.Latvia,
3065
+ // CountryCodes.Lithuania,
3066
+ // CountryCodes.Portugal,
3067
+ // CountryCodes.Spain,
3068
+ CountryCodes.Austria,
3069
+ CountryCodes.Belgium,
3070
+ CountryCodes.Croatia,
3071
+ CountryCodes.Cyprus,
3072
+ CountryCodes.Germany,
3073
+ CountryCodes.Greece,
3074
+ CountryCodes.Ireland,
3075
+ CountryCodes.Italy,
3076
+ CountryCodes.Luxembourg,
3077
+ CountryCodes.Malta,
3078
+ CountryCodes.Netherlands,
3079
+ CountryCodes.Slovakia,
3080
+ CountryCodes.Slovenia,
3081
+ CountryCodes.UnitedKingdom
3082
+ ];
3083
+ function isUsingCompanySearch(country, taskType) {
3084
+ return taskType === TaskTypes.BUSINESS_DETAILS && COUNTRIES_USING_COMPANY_SEARCH.includes(country);
3085
+ }
3086
+ const isRegistrationNumberAbsentStateV4Scenario = (country, entityType) => {
3087
+ return country === CountryCodes.Australia && (entityType === CompanyTypesValues.GOVERNMENTAL_ORGANIZATION || entityType === CompanyTypesValues.INCORPORATED_PARTNERSHIP) || country === CountryCodes.NewZealand;
3088
+ };
3089
+ const rules = ({
3090
+ data,
3091
+ country,
3092
+ taskType,
3093
+ isExperimentEnabled = () => false,
3094
+ isSettingEnabled = () => false,
3095
+ accountHolder,
3096
+ rootLegalEntity,
3097
+ tinMatched
3098
+ }) => {
3099
+ const countryRequiresDateOfIncorporationForCompanies = () => {
3100
+ if (COUNTRIES_THAT_REQUIRE_DATE_OF_INCORPORATION.includes(country)) {
3101
+ return "REQUIRED";
3102
+ }
3103
+ };
3104
+ const countryRequiresFinancialInformation = () => {
3105
+ if (isExperimentEnabled("EnableFinancialInformationComponentV4") && COUNTRIES_REQUIRING_FINANCIAL_INFORMATION.includes(country)) {
3106
+ const isFinancialInformationExperimentEnabled = isExperimentEnabled(
3107
+ "EnableFinancialInformationComponentV4"
3108
+ );
3109
+ const leType = rootLegalEntity?.type;
3110
+ return isFinancialInformationRequired(
3111
+ isFinancialInformationExperimentEnabled,
3112
+ taskType,
3113
+ country,
3114
+ rootLegalEntity?.capabilities,
3115
+ leType
3116
+ );
3117
+ }
3118
+ };
3119
+ return createFormRules({
3120
+ requireDoingBusinessAsName: () => {
3121
+ return data.additionalInformation?.hasDoingBusinessAs ? "REQUIRED" : void 0;
3122
+ },
3123
+ countryRequiresStateOrProvince: () => {
3124
+ if (COUNTRIES_WITH_STATES_DATASET.includes(country)) {
3125
+ return "REQUIRED";
3126
+ }
3127
+ },
3128
+ ifPubliclyTradedCompany: () => {
3129
+ if (data.companyStructure?.entityType === CompanyTypesValues.PUBLIC_COMPANY) {
3130
+ return "REQUIRED";
3131
+ }
3132
+ },
3133
+ countryUsesVat: () => {
3134
+ if (!COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT.includes(country)) {
3135
+ return data.additionalInformation?.exemptedFromVat ? "OPTIONAL" : "REQUIRED";
3136
+ }
3137
+ },
3138
+ vatNumberType: () => {
3139
+ if (!COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT.includes(country)) {
3140
+ return "OPTIONAL";
3141
+ }
3142
+ },
3143
+ isVatExempt: () => {
3144
+ if (!COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT.includes(country)) {
3145
+ return data.additionalInformation?.exemptedFromVat ? "REQUIRED" : "OPTIONAL";
3146
+ }
3147
+ },
3148
+ countryUsesTaxId: () => {
3149
+ const isExemptFromTax = Boolean(
3150
+ data.basicInformation?.exemptedFromTax ?? data.additionalInformation?.exemptedFromTax
3151
+ );
3152
+ if (TAX_ID_REQUIRED_COUNTRIES_ORGANIZATION.includes(country) && rootLegalEntity?.type === "organization" && // SOE-5931 - TODO: investigate L scenario returned to show this on the backend
3153
+ keysOf(rootLegalEntity.capabilities ?? {}).includes("issueBankAccount")) {
3154
+ return isExemptFromTax ? "OPTIONAL" : "REQUIRED";
3155
+ }
3156
+ if (COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT.includes(country) && !(taskType === TaskTypes.SOLE_PROPRIETOR_COMPANY && COUNTRIES_THAT_DO_NOT_USE_TAX_ID_FOR_SOLE_PROP.includes(country))) {
3157
+ return isExemptFromTax ? "OPTIONAL" : "REQUIRED";
3158
+ }
3159
+ },
3160
+ companyRegistrationNumberExemptionAllowed: () => {
3161
+ const isExemptFromRegistrationNumber = Boolean(
3162
+ data.basicInformation?.exemptedFromRegistrationNumber ?? data.additionalInformation?.exemptedFromRegistrationNumber
3163
+ );
3164
+ if (isExperimentEnabled("EnableRegistrationAndTaxAbsentStatesV4") && isRegistrationNumberAbsentStateV4Scenario(country, data.companyStructure?.entityType)) {
3165
+ return isExemptFromRegistrationNumber ? "REQUIRED" : "OPTIONAL";
3166
+ }
3167
+ switch (taskType) {
3168
+ case TaskTypes.SOLE_PROPRIETOR_COMPANY: {
3169
+ if (!COUNTRIES_WITH_POSSIBLE_REGISTRATION_EXEMPTIONS_FOR_SOLE_PROPS.includes(country))
3170
+ return;
3171
+ return isExemptFromRegistrationNumber ? "REQUIRED" : "OPTIONAL";
3172
+ }
3173
+ default: {
3174
+ switch (country) {
3175
+ case CountryCodes.Germany: {
3176
+ if (data.companyStructure?.entityType === CompanyTypesValues.GOVERNMENTAL_ORGANIZATION || data.companyStructure?.entityType === CompanyTypesValues.NON_PROFIT_OR_CHARITABLE) {
3177
+ return isExemptFromRegistrationNumber ? "REQUIRED" : "OPTIONAL";
3178
+ }
3179
+ return;
3180
+ }
3181
+ case CountryCodes.Denmark: {
3182
+ if (data.companyStructure?.entityType === CompanyTypesValues.NON_PROFIT_OR_CHARITABLE) {
3183
+ return isExemptFromRegistrationNumber ? "REQUIRED" : "OPTIONAL";
3184
+ }
3185
+ return;
3186
+ }
3187
+ default: {
3188
+ if (!COUNTRIES_WITH_POSSIBLE_REGISTRATION_EXEMPTIONS_FOR_ORGANIZATIONS.includes(country))
3189
+ return;
3190
+ return isExemptFromRegistrationNumber ? "REQUIRED" : "OPTIONAL";
3191
+ }
3192
+ }
3193
+ }
3194
+ }
3195
+ },
3196
+ countryOfGoverningLawRequired: () => {
3197
+ if (isExperimentEnabled("EnableCountryOfGoverningLawForUKCompanies") && COUNTRY_OF_GOVERNING_LAW_POSSIBLE.includes(data.basicInformation?.country)) {
3198
+ return "REQUIRED";
3199
+ }
3200
+ },
3201
+ countryRequiresRegistrationNumber: () => {
3202
+ const isExemptFromRegistrationNumber = Boolean(
3203
+ data.basicInformation?.exemptedFromRegistrationNumber ?? data.additionalInformation?.exemptedFromRegistrationNumber
3204
+ );
3205
+ switch (taskType) {
3206
+ case TaskTypes.SOLE_PROPRIETOR_COMPANY: {
3207
+ if (COUNTRIES_THAT_DONT_REQUIRE_SOLE_PROP_REGISTRATION.includes(country)) return;
3208
+ if (COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER_SOLE_PROPS.includes(country)) {
3209
+ return "OPTIONAL";
3210
+ }
3211
+ return isExemptFromRegistrationNumber ? "OPTIONAL" : "REQUIRED";
3212
+ }
3213
+ default: {
3214
+ if (COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER.includes(country)) {
3215
+ return "OPTIONAL";
3216
+ }
3217
+ if (!COUNTRIES_THAT_DONT_REQUIRE_COMPANY_REGISTRATION.includes(country)) {
3218
+ return isExemptFromRegistrationNumber ? "OPTIONAL" : "REQUIRED";
3219
+ }
3220
+ }
3221
+ }
3222
+ },
3223
+ registrationNumberType: () => {
3224
+ switch (taskType) {
3225
+ case TaskTypes.SOLE_PROPRIETOR_COMPANY: {
3226
+ if (COUNTRIES_THAT_DONT_REQUIRE_SOLE_PROP_REGISTRATION.includes(country)) return;
3227
+ return "OPTIONAL";
3228
+ }
3229
+ default: {
3230
+ if (COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER.includes(country)) {
3231
+ return "OPTIONAL";
3232
+ }
3233
+ if (COUNTRIES_THAT_DONT_REQUIRE_COMPANY_REGISTRATION.includes(country)) return;
3234
+ return "OPTIONAL";
3235
+ }
3236
+ }
3237
+ },
3238
+ countryUsesUenOrGst: () => {
3239
+ if (taskType === TaskTypes.SOLE_PROPRIETOR_COMPANY) {
3240
+ return;
3241
+ }
3242
+ if (COUNTRIES_THAT_USES_UEN_OR_GST.includes(country)) {
3243
+ return "REQUIRED";
3244
+ }
3245
+ },
3246
+ countryHasTaxExemptions: () => {
3247
+ const isExemptFromTax = Boolean(
3248
+ data.basicInformation?.exemptedFromTax ?? data.additionalInformation?.exemptedFromTax
3249
+ );
3250
+ switch (taskType) {
3251
+ case TaskTypes.SOLE_PROPRIETOR_COMPANY: {
3252
+ if (!COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_SOLE_PROPS.includes(country)) return;
3253
+ return isExemptFromTax ? "REQUIRED" : "OPTIONAL";
3254
+ }
3255
+ default: {
3256
+ if (isExperimentEnabled("EnableRegistrationAndTaxAbsentStatesV4") && COUNTRIES_WITH_POSSIBLE_TRUSTEE_TAXID_ABSENT_V4.includes(country) && accountHolder === "aTrust") {
3257
+ return isExemptFromTax ? "REQUIRED" : "OPTIONAL";
3258
+ }
3259
+ if (COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_COMPANIES.includes(country)) {
3260
+ return isExemptFromTax ? "REQUIRED" : "OPTIONAL";
3261
+ }
3262
+ }
3263
+ }
3264
+ },
3265
+ usingCompanySearch: () => {
3266
+ if (isUsingCompanySearch(country, taskType)) {
3267
+ return "REQUIRED";
3268
+ }
3269
+ },
3270
+ countryRequiresFinancialInformation,
3271
+ isDateOfIncorporationRequired: () => {
3272
+ if (isExperimentEnabled("EnableIncorporationDateBasedFinancialValidationForHO")) {
3273
+ return countryRequiresDateOfIncorporationForCompanies() || countryRequiresFinancialInformation();
3274
+ }
3275
+ return countryRequiresDateOfIncorporationForCompanies();
3276
+ },
3277
+ isFinancialReportingFieldsRequired: () => {
3278
+ if (isExperimentEnabled("EnableIncorporationDateBasedFinancialValidationForHO")) {
3279
+ return countryRequiresFinancialInformation() === "REQUIRED" && isDateOlderThanAYear(data.additionalInformation?.dateOfIncorporation) ? "REQUIRED" : void 0;
3280
+ }
3281
+ return countryRequiresFinancialInformation();
3282
+ },
3283
+ isIndustryCodeRequired: () => {
3284
+ const needsBusinessLine = requestingIssuing(rootLegalEntity) || requestingBanking(rootLegalEntity);
3285
+ if (isSettingEnabled(SettingNames.AllowBusinessLines) && needsBusinessLine) {
3286
+ return "REQUIRED";
3287
+ }
3288
+ },
3289
+ annualTurnoverRequired: () => {
3290
+ if (data.companyFinancialInformation?.reportedValueOption === "annualTurnover") {
3291
+ return "REQUIRED";
3292
+ }
3293
+ },
3294
+ netAssetsRequired: () => {
3295
+ if (data.companyFinancialInformation?.reportedValueOption === "netAssets") {
3296
+ return "REQUIRED";
3297
+ }
3298
+ },
3299
+ balanceSheetTotalRequired: () => {
3300
+ if (data.companyFinancialInformation?.reportedValueOption === "balanceSheetTotal") {
3301
+ return "REQUIRED";
3302
+ }
3303
+ },
3304
+ isEInvoicingCodeEnabled: () => {
3305
+ if (isExperimentEnabled("EnableEInvoicingCodeField") && COUNTRIES_REQUIRING_E_INVOICING_CODE.includes(country)) {
3306
+ return "REQUIRED";
3307
+ }
3308
+ },
3309
+ ifCountryUsAndTinFailed: () => {
3310
+ if (taskType === TaskTypes.SOLE_PROPRIETOR_COMPANY) {
3311
+ return;
3312
+ }
3313
+ if (tinMatched === false && country === CountryCodes.UnitedStates) {
3314
+ return "REQUIRED";
3315
+ }
3316
+ },
3317
+ businessRequiresCompanyType: () => {
3318
+ if (taskType !== TaskTypes.SOLE_PROPRIETOR_COMPANY) {
3319
+ return "REQUIRED";
3320
+ }
3321
+ },
3322
+ japaneseLegalCompanyName: () => {
3323
+ if (isJapanLocalizationEnabled(isExperimentEnabled, country)) {
3324
+ return "REQUIRED";
3325
+ }
3326
+ }
3327
+ });
3328
+ };
3329
+ const inferTaxIdNumberType = (taxInformation, country, companyType) => {
3330
+ if (!taxInformation) return void 0;
3331
+ const optionsForCountry = getTaxIdNumberOptions(country, companyType);
3332
+ const metadataFn = taxInformationDefaultFieldConfig[country];
3333
+ if (!optionsForCountry || !metadataFn) return void 0;
3334
+ if (optionsForCountry.length === 1) return optionsForCountry[0].id;
3335
+ const allMetaData = optionsForCountry.reduce(
3336
+ (acc, option) => {
3337
+ const meta = typeof metadataFn === "function" ? metadataFn({
3338
+ taxIdNumberType: option.id,
3339
+ companyType
3340
+ }) : metadataFn;
3341
+ if (meta.label && !acc[meta.label]) {
3342
+ acc[meta.label] = meta;
3343
+ }
3344
+ return acc;
3345
+ },
3346
+ {}
3347
+ );
3348
+ for (const option of optionsForCountry) {
3349
+ const fieldMetadata = allMetaData[option.name];
3350
+ if (!fieldMetadata?.validators) continue;
3351
+ const validators = Array.isArray(fieldMetadata.validators) ? fieldMetadata.validators : [fieldMetadata.validators];
3352
+ if (validators.every((validator) => validator.validate(taxInformation))) {
3353
+ return option.id;
3354
+ }
3355
+ }
3356
+ };
3357
+ function findExistingTaxInformation(taxInformation, country) {
3358
+ return taxInformation?.find((taxId) => taxId.country === country);
3359
+ }
3360
+ function getDefaultTaxIdNumberType(taxInformation, country, entityType) {
3361
+ const existingTaxInformation = findExistingTaxInformation(taxInformation, country);
3362
+ return (
3363
+ // First check if we already have a type set
3364
+ existingTaxInformation?.type ?? (existingTaxInformation?.number ? (
3365
+ // If we have a number but no type, try to infer it
3366
+ inferTaxIdNumberType(taxInformation, country, entityType)
3367
+ ) : (
3368
+ // Otherwise use the first available tax ID option for this country and entity type
3369
+ getTaxIdNumberOptions(country, entityType)?.[0]?.id
3370
+ ))
3371
+ );
3372
+ }
3373
+ function TaxIdNumberTypeSelector({
3374
+ country,
3375
+ companyType,
3376
+ selected,
3377
+ setSelected,
3378
+ exemptedOption,
3379
+ isUsSoleProp,
3380
+ errorMessage
3381
+ }) {
3382
+ const { t } = useTranslation("common");
3383
+ const handleSelect = useCallback(
3384
+ (selectedStr) => {
3385
+ const newSelected = selectedStr;
3386
+ if (newSelected === "exempted") {
3387
+ if (exemptedOption) {
3388
+ setSelected(newSelected);
3389
+ }
3390
+ return;
3391
+ }
3392
+ setSelected(newSelected);
3393
+ },
3394
+ [exemptedOption, setSelected]
3395
+ );
3396
+ const options = useMemo(() => {
3397
+ const availableOptions = getTaxIdNumberOptions(country, companyType) ?? [];
3398
+ if (availableOptions.length === 0 || !exemptedOption) return availableOptions;
3399
+ return [
3400
+ ...availableOptions,
3401
+ {
3402
+ id: "exempted",
3403
+ name: exemptedOption
3404
+ }
3405
+ ];
3406
+ }, [country, companyType, exemptedOption]);
3407
+ useEffect(() => {
3408
+ if (!isUsSoleProp && !selected && options.length > 0) {
3409
+ handleSelect(options[0].id);
3410
+ }
3411
+ }, [options, selected, handleSelect, isUsSoleProp]);
3412
+ if (options.length <= 1) return null;
3413
+ return /* @__PURE__ */ jsx(
3414
+ Field,
3415
+ {
3416
+ el: "fieldset",
3417
+ name: "taxIdNumberType",
3418
+ label: t(($) => $["whichTaxpayerIdentificationNumberDoYouUse"]),
3419
+ errorMessage: !!errorMessage,
3420
+ children: (childProps) => /* @__PURE__ */ jsx(
3421
+ RadioGroup,
3422
+ {
3423
+ ...childProps,
3424
+ name: "taxIdNumberType",
3425
+ items: options,
3426
+ value: selected,
3427
+ onChange: handleSelect
3428
+ }
3429
+ )
3430
+ }
3431
+ );
3432
+ }
3433
+ const TAX_INFORMATION_FIELD = [
3434
+ "taxInformation",
3435
+ "exemptedFromTax",
3436
+ "isUen"
3437
+ ];
3438
+ function TaxInformationField({
3439
+ data,
3440
+ valid,
3441
+ errors,
3442
+ labels,
3443
+ mask,
3444
+ guidanceText,
3445
+ placeholder,
3446
+ readonly,
3447
+ optional,
3448
+ shouldValidate,
3449
+ handleChangeFor,
3450
+ country,
3451
+ canExempt,
3452
+ registrationNumber,
3453
+ entityType,
3454
+ defaultData
3455
+ }) {
3456
+ const { isExperimentEnabled } = useExperimentsContext();
3457
+ const { t } = useTranslation("common");
3458
+ const { accountHolder } = useAccountHolder();
3459
+ const currentCountryTaxInformation = useMemo(
3460
+ () => data?.taxInformation?.find((taxInfo) => taxInfo.country === country) ?? (!data.exemptedFromTax ? defaultData?.find((taxInfo) => taxInfo.country === country) : void 0),
3461
+ [data?.taxInformation, data.exemptedFromTax, defaultData, country]
3462
+ );
3463
+ const isUsSoleProp = country === "US" && entityType === CompanyTypesValues.SOLE_PROPRIETORSHIP;
3464
+ const exemptionLabel = isUsSoleProp ? t(($) => $["socialSecurityNumber"]) : labels.exemptedFromTax;
3465
+ const shouldRenderInput = isUsSoleProp ? currentCountryTaxInformation?.type === "EIN" : !data.isUen;
3466
+ const options = getTaxIdNumberOptions(country, entityType);
3467
+ const showTaxIdExemptedOptions = canExempt && (options?.length ?? 0) > 1 || isUsSoleProp;
3468
+ const canSaveAbsentState = isExperimentEnabled("EnableRegistrationAndTaxAbsentStatesV4") && COUNTRIES_WITH_POSSIBLE_TRUSTEE_TAXID_ABSENT_V4.includes(country) && accountHolder === "aTrust";
3469
+ const taxIdNumberType = useMemo(() => {
3470
+ if (isUsSoleProp) {
3471
+ return data.exemptedFromTax ? "exempted" : currentCountryTaxInformation?.type ? currentCountryTaxInformation?.type : void 0;
3472
+ }
3473
+ return data.exemptedFromTax ? "exempted" : currentCountryTaxInformation?.type ? currentCountryTaxInformation?.type : getDefaultTaxIdNumberType(data.taxInformation, country, entityType);
3474
+ }, [
3475
+ country,
3476
+ currentCountryTaxInformation?.type,
3477
+ data.exemptedFromTax,
3478
+ data.taxInformation,
3479
+ entityType,
3480
+ isUsSoleProp
3481
+ ]);
3482
+ const handleTaxInformationChange = (e, key, mode, resetToDefault) => {
3483
+ const value = e ? typeof e === "string" ? e : e.currentTarget.value : void 0;
3484
+ if (resetToDefault) {
3485
+ if (defaultData !== void 0) {
3486
+ return handleChangeFor("taxInformation", mode)(defaultData);
3487
+ }
3488
+ return;
3489
+ }
3490
+ switch (key) {
3491
+ case "number": {
3492
+ const newTaxInformation = canSaveAbsentState ? {
3493
+ country,
3494
+ number: value,
3495
+ type: currentCountryTaxInformation?.type ?? taxIdNumberType,
3496
+ numberAbsent: false
3497
+ } : {
3498
+ country,
3499
+ number: value,
3500
+ type: currentCountryTaxInformation?.type ?? taxIdNumberType
3501
+ };
3502
+ if (!data.taxInformation) {
3503
+ return handleChangeFor("taxInformation", mode)([newTaxInformation]);
3504
+ }
3505
+ const taxInformation = currentCountryTaxInformation ? data.taxInformation : [...data.taxInformation, newTaxInformation];
3506
+ const updatedTaxInformation = taxInformation.map((taxInfo) => {
3507
+ if (taxInfo.country !== country) return taxInfo;
3508
+ return newTaxInformation;
3509
+ });
3510
+ return handleChangeFor("taxInformation", mode)(updatedTaxInformation);
3511
+ }
3512
+ case "type": {
3513
+ const newTaxInformation = canSaveAbsentState ? {
3514
+ country,
3515
+ number: currentCountryTaxInformation?.number,
3516
+ type: value,
3517
+ numberAbsent: false
3518
+ } : {
3519
+ country,
3520
+ number: currentCountryTaxInformation?.number,
3521
+ type: value
3522
+ };
3523
+ if (!data.taxInformation) {
3524
+ return handleChangeFor("taxInformation", mode)([newTaxInformation]);
3525
+ }
3526
+ const taxInformation = currentCountryTaxInformation ? data.taxInformation : [...data.taxInformation, newTaxInformation];
3527
+ const updatedTaxInformation = taxInformation.map((taxInfo) => {
3528
+ if (taxInfo.country !== country) return taxInfo;
3529
+ return newTaxInformation;
3530
+ });
3531
+ return handleChangeFor("taxInformation", mode)(updatedTaxInformation);
3532
+ }
3533
+ }
3534
+ };
3535
+ useEffect(() => {
3536
+ if (!country) return;
3537
+ const hasSavedTaxId = defaultData?.find((taxId) => taxId.country === country);
3538
+ if (currentCountryTaxInformation?.country === country) return;
3539
+ if (currentCountryTaxInformation && !hasSavedTaxId) return;
3540
+ if (entityType === CompanyTypesValues.SOLE_PROPRIETORSHIP) return;
3541
+ if (defaultData !== void 0) {
3542
+ handleChangeFor("taxInformation", "input")(defaultData);
3543
+ }
3544
+ const newCountryOptions = getTaxIdNumberOptions(country, entityType);
3545
+ if (newCountryOptions && newCountryOptions.length > 0) {
3546
+ handleTaxInformationChange(newCountryOptions[0].id, "type", "input", true);
3547
+ } else {
3548
+ handleTaxInformationChange(void 0, "type", "input", true);
3549
+ }
3550
+ }, [country]);
3551
+ const removeCurrentCountryTaxInformation = () => {
3552
+ const filterdTaxInformation = data.taxInformation?.filter((taxId) => taxId.country !== country);
3553
+ handleChangeFor("taxInformation", "input")(filterdTaxInformation);
3554
+ };
3555
+ const setUenAsTaxId = (uen) => {
3556
+ if (!data.taxInformation) {
3557
+ return handleChangeFor(
3558
+ "taxInformation",
3559
+ "blur"
3560
+ )([
3561
+ {
3562
+ country,
3563
+ number: uen ?? "",
3564
+ type: "UEN"
3565
+ }
3566
+ ]);
3567
+ }
3568
+ const taxInformation = currentCountryTaxInformation ? data.taxInformation : [
3569
+ ...data.taxInformation,
3570
+ {
3571
+ country,
3572
+ number: uen ?? "",
3573
+ type: "UEN"
3574
+ }
3575
+ ];
3576
+ const updatedTaxInformation = taxInformation.map((taxInfo) => {
3577
+ if (taxInfo.country !== country) return taxInfo;
3578
+ return {
3579
+ country,
3580
+ number: uen ?? "",
3581
+ type: "UEN"
3582
+ };
3583
+ });
3584
+ return handleChangeFor("taxInformation", "blur")(updatedTaxInformation);
3585
+ };
3586
+ useEffect(() => {
3587
+ if (country === "SG" && data.isUen && registrationNumber && registrationNumber !== currentCountryTaxInformation?.number) {
3588
+ setUenAsTaxId(registrationNumber);
3589
+ }
3590
+ }, [
3591
+ registrationNumber,
3592
+ currentCountryTaxInformation?.number,
3593
+ data.isUen,
3594
+ country,
3595
+ setUenAsTaxId
3596
+ ]);
3597
+ const addTaxAbsentStatus = (exempted) => {
3598
+ if (!data.taxInformation) {
3599
+ const updatedTaxInformation2 = [
3600
+ {
3601
+ country,
3602
+ numberAbsent: exempted
3603
+ }
3604
+ ];
3605
+ return handleChangeFor("taxInformation", "input")(updatedTaxInformation2);
3606
+ }
3607
+ const taxInformation = currentCountryTaxInformation ? data.taxInformation : [
3608
+ ...data.taxInformation,
3609
+ {
3610
+ country,
3611
+ numberAbsent: exempted
3612
+ }
3613
+ ];
3614
+ const updatedTaxInformation = taxInformation.map((taxInfo) => {
3615
+ if (taxInfo.country !== country) return taxInfo;
3616
+ return {
3617
+ country,
3618
+ numberAbsent: exempted
3619
+ };
3620
+ });
3621
+ return handleChangeFor("taxInformation", "input")(updatedTaxInformation);
3622
+ };
3623
+ const handleTaxIdNumberTypeChange = (taxIdType) => {
3624
+ if (!canExempt && taxIdType === "exempted") {
3625
+ throw Error(`${country} does not allow tax exemptions`);
3626
+ }
3627
+ switch (taxIdType) {
3628
+ case "exempted":
3629
+ handleChangeFor("exemptedFromTax")(true);
3630
+ handleTaxInformationChange(void 0, "type", "input");
3631
+ return canSaveAbsentState ? addTaxAbsentStatus(true) : removeCurrentCountryTaxInformation();
3632
+ default:
3633
+ handleChangeFor("exemptedFromTax")(false);
3634
+ }
3635
+ if (country === "SG") {
3636
+ if (taxIdType === "UEN") {
3637
+ handleChangeFor("isUen")(true);
3638
+ setUenAsTaxId(registrationNumber);
3639
+ } else {
3640
+ handleChangeFor("isUen")(false);
3641
+ removeCurrentCountryTaxInformation();
3642
+ }
3643
+ }
3644
+ handleTaxInformationChange(taxIdType, "type", "input");
3645
+ };
3646
+ const handleExemptedFromTaxChange = (exempted) => {
3647
+ if (canSaveAbsentState) {
3648
+ addTaxAbsentStatus(exempted);
3649
+ handleChangeFor("exemptedFromTax")(exempted);
3650
+ } else {
3651
+ handleChangeFor("exemptedFromTax")(exempted);
3652
+ removeCurrentCountryTaxInformation();
3653
+ }
3654
+ };
3655
+ return /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-field__tax-information", children: [
3656
+ /* @__PURE__ */ jsx(
3657
+ TaxIdNumberTypeSelector,
3658
+ {
3659
+ country,
3660
+ companyType: entityType,
3661
+ setSelected: handleTaxIdNumberTypeChange,
3662
+ selected: taxIdNumberType,
3663
+ exemptedOption: showTaxIdExemptedOptions ? exemptionLabel : false,
3664
+ isUsSoleProp,
3665
+ errorMessage: isUsSoleProp ? errors.taxInformation : false
3666
+ }
3667
+ ),
3668
+ shouldRenderInput && /* @__PURE__ */ jsx(
3669
+ MaskedInput,
3670
+ {
3671
+ type: "text",
3672
+ "aria-required": true,
3673
+ "aria-invalid": !valid.taxInformation,
3674
+ name: "taxInformation",
3675
+ label: labels.taxInformation ?? "",
3676
+ formatGuidance: guidanceText?.taxInformation ?? "",
3677
+ value: currentCountryTaxInformation?.number ?? "",
3678
+ errorMessage: errors.taxInformation,
3679
+ placeholder,
3680
+ isValid: Boolean(valid.taxInformation) && !!currentCountryTaxInformation,
3681
+ onInput: (e) => handleTaxInformationChange(e, "number", "input"),
3682
+ onBlur: (e) => handleTaxInformationChange(e, "number", "blur"),
3683
+ disabled: data.exemptedFromTax || data.isUen,
3684
+ readonly,
3685
+ optional,
3686
+ shouldValidate,
3687
+ ...mask
3688
+ }
3689
+ ),
3690
+ canExempt && !showTaxIdExemptedOptions && /* @__PURE__ */ jsx(Field, { name: "exemptedFromTax", children: (childProps) => /* @__PURE__ */ jsx(
3691
+ Checkbox,
3692
+ {
3693
+ ...childProps,
3694
+ "aria-required": false,
3695
+ "aria-invalid": false,
3696
+ name: "exemptedFromTax",
3697
+ label: labels.exemptedFromTax,
3698
+ value: "exemptedFromTax",
3699
+ checked: Boolean(data.exemptedFromTax),
3700
+ onChange: handleExemptedFromTaxChange
3701
+ }
3702
+ ) })
3703
+ ] });
3704
+ }
3705
+ export {
3706
+ COUNTRY_OF_GOVERNING_LAW_POSSIBLE as C,
3707
+ MemoizedDocumentUpload as M,
3708
+ StateCodesUS as S,
3709
+ TaxInformationField as T,
3710
+ taxInformationDefaultFieldConfig as a,
3711
+ additionallIdNumberOptions as b,
3712
+ taxIdNumberOptions as c,
3713
+ TAX_INFORMATION_FIELD as d,
3714
+ requestingIssuing as e,
3715
+ getTaxInformationPlaceholderText as f,
3716
+ getFieldsWithExistingData as g,
3717
+ isUsingCompanySearch as h,
3718
+ individualIdNumberOptions as i,
3719
+ getCompanyRegistrationNumberOptions as j,
3720
+ countryToTaxInfoTypeMap as k,
3721
+ isRegistrationNumberAbsentStateV4Scenario as l,
3722
+ getTaxIdNumberOptions as m,
3723
+ COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT as n,
3724
+ rules as o,
3725
+ businessRegistrationNumberMasks as p,
3726
+ businessRegistrationNumberPatterns as q,
3727
+ requestingBanking as r,
3728
+ stateFormatGuidanceText as s,
3729
+ taxInformationDefaultFieldMetadata as t,
3730
+ useCapabilities as u,
3731
+ vatNumberOptions as v,
3732
+ getVatNumberOptions as w,
3733
+ exemptedFromTaxDefaultFieldMetadata as x,
3734
+ exemptedFromTaxDefaultFieldConfig as y
3735
+ };