@adyen/kyc-components 4.0.0-compact.1 → 4.0.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 (1100) hide show
  1. package/README.md +30 -43
  2. package/dist/4-people-BzyXLUF9.js +24 -0
  3. package/dist/AD-BQAadLyG.js +23 -0
  4. package/dist/AT-BI8ju2NH.js +23 -0
  5. package/dist/AcceptTermsOfServiceComponent-CmHBNGjM.js +659 -0
  6. package/dist/Accordion-Cp_VkxR6.js +88 -0
  7. package/dist/AccountSetupRejected-CoxWTlar.js +26 -0
  8. package/dist/ActionBar-CxUKVmTE.js +31 -0
  9. package/dist/Address-Db6Q_KUo.js +1348 -0
  10. package/dist/Alert-DEiOX0nw.js +159 -0
  11. package/dist/Avatar-3K6S_tIS.js +60 -0
  12. package/dist/BE-nWHKW0xQ.js +23 -0
  13. package/dist/BG-DlvaKo4n.js +27 -0
  14. package/dist/BusinessDetailsMultiformDropin-CYoIN4Fa.js +4220 -0
  15. package/dist/BusinessFinancingComponent-DyvM-fsY.js +54 -0
  16. package/dist/BusinessFinancingDropin-BOvR4LwU.js +1853 -0
  17. package/dist/BusinessFinancingPage-8C0ztBfS.js +43 -0
  18. package/dist/BusinessTypeSelectionPage-DpZAsa8K.js +427 -0
  19. package/dist/CH-TX4BTE2y.js +23 -0
  20. package/dist/CY-D59Nypl7.js +23 -0
  21. package/dist/CZ-B6iI1GbE.js +33 -0
  22. package/dist/Card-CdpPhK9y.js +82 -0
  23. package/dist/ConstitutionalDocument-NLs6ka9K.js +143 -0
  24. package/dist/CountryField-9w8wRZMW.js +843 -0
  25. package/dist/CreateIndividualComponent-zGcoEyq0.js +71 -0
  26. package/dist/CreateTransferInstrumentComponent-Ct_v-IyH.js +63 -0
  27. package/dist/Currency-53s7DEeh.js +183 -0
  28. package/dist/CustomerSupport-BRcUQ4fR.js +153 -0
  29. package/dist/DE-CsuX_tSL.js +23 -0
  30. package/dist/DK-oQEFrF6o.js +33 -0
  31. package/dist/DebugModal-CokbXGK9.js +413 -0
  32. package/dist/DecisionMakerDetailsPage-B5cLY8iP.js +106 -0
  33. package/dist/DecisionMakers-BQ24LfqB.js +830 -0
  34. package/dist/DropinLayout-CBP_cHLC.js +17 -0
  35. package/dist/EE-3WZV5Ejt.js +23 -0
  36. package/dist/ES-NfxpqbC2.js +23 -0
  37. package/dist/EmbeddedStatus-DB9B_u3L.js +99 -0
  38. package/dist/EndStateLayout-BWC5aqVS.js +71 -0
  39. package/dist/EntityAssociation-gzYdcHoL.js +159 -0
  40. package/dist/EntityGuidanceStatus-BKeZKnbP.js +105 -0
  41. package/dist/FI-CHQIvHa-.js +23 -0
  42. package/dist/FR-MWZyWX3x.js +23 -0
  43. package/dist/FormFlow-Cf3Ff2qw.js +224 -0
  44. package/dist/FormNavigation-CjgZbv9G.js +144 -0
  45. package/dist/FormWrapper-dbBZegkX.js +135 -0
  46. package/dist/GG-CPoMVQPc.js +33 -0
  47. package/dist/GI-DxmBwVD_.js +41 -0
  48. package/dist/GR-Rk0pXlNw.js +23 -0
  49. package/dist/HR-WapHW2fw.js +23 -0
  50. package/dist/HU-DCOMuOhe.js +32 -0
  51. package/dist/IE-BkgtVgDi.js +23 -0
  52. package/dist/IM-Wr4iDT94.js +33 -0
  53. package/dist/IS-C-Cgc6zp.js +27 -0
  54. package/dist/IT-CXekiddL.js +23 -0
  55. package/dist/IndividualOnfido-Cc7dydKq.js +9594 -0
  56. package/dist/IndividualOnfidoDropin-BpU2cL4E.js +2497 -0
  57. package/dist/InputText-Dsw9kiwL.js +249 -0
  58. package/dist/Introduction-C8mTk4l_.js +300 -0
  59. package/dist/JE-B4gj54Hg.js +33 -0
  60. package/dist/JpAddress-R81eO-aY.js +280 -0
  61. package/dist/LI-L0ZAALRT.js +23 -0
  62. package/dist/LT-Ao2uagV9.js +23 -0
  63. package/dist/LU-B7LRUuc6.js +23 -0
  64. package/dist/LV-DZeGjA2G.js +23 -0
  65. package/dist/LegalRepresentativeDetailsPage-DIQX18v2.js +60 -0
  66. package/dist/ListItem-D3p6EgP_.js +69 -0
  67. package/dist/MC-EDVNGWhy.js +23 -0
  68. package/dist/MT-B9my7RlP.js +23 -0
  69. package/dist/ManageIndividualComponent-CmM-vP9E.js +46 -0
  70. package/dist/ManageTermsOfServiceComponent-C3hXZJx5.js +52 -0
  71. package/dist/ManageTransferInstrumentComponent-co6LYrVY.js +287 -0
  72. package/dist/MaybeModal-BVQOzETz.js +25 -0
  73. package/dist/Modal-CloeVnNp.js +149 -0
  74. package/dist/NL-VXAFOhV5.js +23 -0
  75. package/dist/NO-Cx1VSh2W.js +32 -0
  76. package/dist/OnboardingDropinComponent-CDAK4v1o.js +7908 -0
  77. package/dist/PL-BZW1hGvD.js +32 -0
  78. package/dist/PT-OpU4MU3L.js +23 -0
  79. package/dist/PayoutDetailsDropin-DCrlrNki.js +4841 -0
  80. package/dist/RO-Cz6Sh0ls.js +23 -0
  81. package/dist/Review-Dqn49vJM.js +83 -0
  82. package/dist/RootBusinessDetailsPage-DSEq3TIn.js +61 -0
  83. package/dist/RootBusinessLinesPage-CbPhOber.js +1118 -0
  84. package/dist/RootIndividualDetailsPage-Bp_7gSIB.js +71 -0
  85. package/dist/SE-B5K-FkQd.js +33 -0
  86. package/dist/SI-BOGTNLPa.js +23 -0
  87. package/dist/SK-BOVrp_Av.js +23 -0
  88. package/dist/SM-meowwILA.js +23 -0
  89. package/dist/SignPCIComponent-B6kYuqT_.js +304 -0
  90. package/dist/SingpassSelection-aDrNTYr3.js +130 -0
  91. package/dist/SoleProprietorshipPage-HnUsyjKp.js +60 -0
  92. package/dist/SourceOfFundsPage-BkMEIV_L.js +2383 -0
  93. package/dist/StepProgressIndicator-BgeMe93n.js +78 -0
  94. package/dist/StoreProvider-BFN15Go9.js +7674 -0
  95. package/dist/Summary-BkE_c8pU.js +204 -0
  96. package/dist/TaxReportingDropin-LG9zvOMN.js +502 -0
  97. package/dist/TrustDetailsPage-C8w8pEvB.js +2149 -0
  98. package/dist/TrustMemberCompanyPage-IDEwpLW3.js +73 -0
  99. package/dist/TrustMemberIndividualPage-rKB3iVFk.js +66 -0
  100. package/dist/TrustMemberRoleAndTypePage-CLtX8V0M.js +985 -0
  101. package/dist/TrustMembersOverview-Bs203hm0.js +438 -0
  102. package/dist/UnincorporatedPartnershipIndividualPage-CBTaUEld.js +65 -0
  103. package/dist/UnincorporatedPartnershipMemberCompanyPage-ZnLe9Uq3.js +76 -0
  104. package/dist/UnincorporatedPartnershipMemberRoleAndTypePage-BXImA2c_.js +281 -0
  105. package/dist/UnincorporatedPartnershipMembersOverview-c7k2JzcO.js +172 -0
  106. package/dist/VA-DXsYTCoh.js +23 -0
  107. package/dist/VerificationErrorAlert-uubpHQGE.js +79 -0
  108. package/dist/ViewVerificationStatusComponent-DO9L2hEO.js +180 -0
  109. package/dist/adyen-business-financing.js +5 -6
  110. package/dist/adyen-individual-configuration.js +5 -6
  111. package/dist/adyen-individual-status.js +5 -6
  112. package/dist/adyen-kyc-components.js +38 -33
  113. package/dist/adyen-onboarding.js +4 -5
  114. package/dist/adyen-terms-of-service-management.js +5 -6
  115. package/dist/adyen-terms-of-service-status.js +5 -6
  116. package/dist/adyen-transfer-instrument-configuration.js +5 -6
  117. package/dist/adyen-transfer-instrument-management.js +5 -6
  118. package/dist/adyen-verification-status.js +5 -6
  119. package/dist/arrow-right-KxA3SvQj.js +14 -0
  120. package/dist/bag-BPumznWh.js +14 -0
  121. package/dist/bank-D6FiNBhs.js +14 -0
  122. package/dist/bg-BG-B7Xs_t04.js +13 -0
  123. package/dist/bg-BG-BY3Wa361.js +54 -0
  124. package/dist/bg-BG-BvLl6gaB.js +13 -0
  125. package/dist/bg-BG-CepHap8j.js +68 -0
  126. package/dist/bg-BG-Coja327N.js +24 -0
  127. package/dist/bg-BG-D9J6LnkI.js +57 -0
  128. package/dist/bg-BG-DH45-0B-.js +29 -0
  129. package/dist/bg-BG-DRkMqyL8.js +13 -0
  130. package/dist/bg-BG-DcxZ1tmt.js +32 -0
  131. package/dist/bg-BG-Dp4LxSP7.js +37 -0
  132. package/dist/bg-BG-DpIAKQve.js +113 -0
  133. package/dist/bg-BG-er0t4jTs.js +27 -0
  134. package/dist/bg-BG-mLSjG76Q.js +13 -0
  135. package/dist/bg-BG-wVquMNtT.js +55 -0
  136. package/dist/bin-Bz6KOIeE.js +18 -0
  137. package/dist/capital-GVQ3svwN.js +17 -0
  138. package/dist/cash-stack-D9AoDDwt.js +22 -0
  139. package/dist/certificate-CdEWgHQf.js +17 -0
  140. package/dist/checkmark-Q7x6tGhy.js +14 -0
  141. package/dist/checkmark-circle-fill-CsvN5_PL.js +17 -0
  142. package/dist/checkmark-circle-x7dzbp3I.js +20 -0
  143. package/dist/checkmark-small-D35myntq.js +14 -0
  144. package/dist/chevron-down-C2iDorpW.js +14 -0
  145. package/dist/chevron-left-ztPO84q-.js +14 -0
  146. package/dist/chevron-right-C_JN0oDt.js +14 -0
  147. package/dist/chevron-up-CgG8n25g.js +14 -0
  148. package/dist/circle-Bt3Nlr3q.js +17 -0
  149. package/dist/circle-small-filled-YMzP6yQU.js +14 -0
  150. package/dist/clock-BZHremOA.js +20 -0
  151. package/dist/coins-fkAk6dCo.js +17 -0
  152. package/dist/contract-BTa4HltT.js +14 -0
  153. package/dist/cross-Cn09MtQ_.js +14 -0
  154. package/dist/cross-circle-fill-small-DCz52AuN.js +14 -0
  155. package/dist/cs-CZ--jOkoHVS.js +55 -0
  156. package/dist/cs-CZ-BDf9m4Rw.js +113 -0
  157. package/dist/cs-CZ-BEFeaKsV.js +54 -0
  158. package/dist/cs-CZ-BP7niQM9.js +68 -0
  159. package/dist/cs-CZ-BSWXexr4.js +13 -0
  160. package/dist/cs-CZ-BsV9NiQ2.js +13 -0
  161. package/dist/cs-CZ-CQNBae2b.js +27 -0
  162. package/dist/cs-CZ-CyLqoG1j.js +37 -0
  163. package/dist/cs-CZ-D4Hg-t16.js +32 -0
  164. package/dist/cs-CZ-DPVMeRye.js +29 -0
  165. package/dist/cs-CZ-DXtJsBPz.js +24 -0
  166. package/dist/cs-CZ-DY_pQqAT.js +57 -0
  167. package/dist/cs-CZ-DalFZigH.js +13 -0
  168. package/dist/cs-CZ-hT5w5It6.js +13 -0
  169. package/dist/da-DK-CI-vfqPo.js +113 -0
  170. package/dist/da-DK-D4Ojw97o.js +13 -0
  171. package/dist/da-DK-DCJhV2qS.js +32 -0
  172. package/dist/da-DK-DU4dCNEw.js +29 -0
  173. package/dist/da-DK-DWA8uOd8.js +24 -0
  174. package/dist/da-DK-DYpfNZdP.js +37 -0
  175. package/dist/da-DK-DZwlENGe.js +13 -0
  176. package/dist/da-DK-Dc0QYG8m.js +68 -0
  177. package/dist/da-DK-JHZnsI59.js +55 -0
  178. package/dist/da-DK-P3YSaBqs.js +13 -0
  179. package/dist/da-DK-R_y7YwqQ.js +13 -0
  180. package/dist/da-DK-gnPgzwrG.js +27 -0
  181. package/dist/da-DK-jK7c9UL0.js +57 -0
  182. package/dist/de-DE-BR6CLZw6.js +13 -0
  183. package/dist/de-DE-BXt1K0Tr.js +37 -0
  184. package/dist/de-DE-BcuLmcC8.js +13 -0
  185. package/dist/de-DE-D3lLuF8z.js +27 -0
  186. package/dist/de-DE-D50lGOJE.js +24 -0
  187. package/dist/de-DE-DXR3EpEc.js +13 -0
  188. package/dist/de-DE-DwOQKCuU.js +32 -0
  189. package/dist/de-DE-Dz2OsS1F.js +68 -0
  190. package/dist/de-DE-Dz2l6jRl.js +29 -0
  191. package/dist/de-DE-VGGEkxUT.js +55 -0
  192. package/dist/de-DE-nG2MBigU.js +113 -0
  193. package/dist/de-DE-opyC1JO-.js +13 -0
  194. package/dist/de-DE-wmerDL2e.js +57 -0
  195. package/dist/debouncedInputEvent-Dlbc7VjU.js +109 -0
  196. package/dist/debugStore-BvbyN1Oi.js +14 -0
  197. package/dist/document-1-C08ut-Dt.js +14 -0
  198. package/dist/document-person-vxlA6C5f.js +20 -0
  199. package/dist/documentUtils-CUgKVLK4.js +218 -0
  200. package/dist/download-Drhk9k1f.js +17 -0
  201. package/dist/dropinUtils-D2lBlNWp.js +202 -0
  202. package/dist/edit-1-CFoDTMvQ.js +14 -0
  203. package/dist/el-GR-B3FHqTOX.js +13 -0
  204. package/dist/el-GR-B5j7VZ3E.js +54 -0
  205. package/dist/el-GR-B90M6tcZ.js +37 -0
  206. package/dist/el-GR-BHG69mXl.js +68 -0
  207. package/dist/el-GR-BX-MyQZY.js +113 -0
  208. package/dist/el-GR-Btrk_npt.js +57 -0
  209. package/dist/el-GR-CKHMsdx2.js +24 -0
  210. package/dist/el-GR-CWd7XYDU.js +13 -0
  211. package/dist/el-GR-CofvCav-.js +13 -0
  212. package/dist/el-GR-DtFE64KX.js +13 -0
  213. package/dist/el-GR-Hk4NbZSY.js +32 -0
  214. package/dist/el-GR-MLFY-Gg7.js +29 -0
  215. package/dist/el-GR-XRux2Wpv.js +27 -0
  216. package/dist/el-GR-gkaKwnln.js +55 -0
  217. package/dist/en-US-B96dpVon.js +27 -0
  218. package/dist/en-US-BPI4FZwa.js +113 -0
  219. package/dist/en-US-BQZhzROc.js +32 -0
  220. package/dist/en-US-CozY33On.js +13 -0
  221. package/dist/en-US-CzEL6t1W.js +55 -0
  222. package/dist/en-US-D-B35AoN.js +68 -0
  223. package/dist/en-US-D2yrwtzT.js +24 -0
  224. package/dist/en-US-DYo4OF-P.js +29 -0
  225. package/dist/en-US-Dg505Oh3.js +37 -0
  226. package/dist/en-US-fyGPkcqX.js +13 -0
  227. package/dist/en-US-gsp7CD_E.js +57 -0
  228. package/dist/en-US-h0JneJJl.js +13 -0
  229. package/dist/es-ES-0ROz-BJh.js +29 -0
  230. package/dist/es-ES-BAg3NqQO.js +13 -0
  231. package/dist/es-ES-BI_jdT67.js +68 -0
  232. package/dist/es-ES-BOoPqnPI.js +32 -0
  233. package/dist/es-ES-BhINIOee.js +13 -0
  234. package/dist/es-ES-BhNhIf08.js +37 -0
  235. package/dist/es-ES-Bn9_0wK0.js +55 -0
  236. package/dist/es-ES-CEp-ttVJ.js +13 -0
  237. package/dist/es-ES-CXDJLKAI.js +27 -0
  238. package/dist/es-ES-DF_L5EDd.js +24 -0
  239. package/dist/es-ES-Q16q2JJ6.js +113 -0
  240. package/dist/es-ES-Qnc0Q6JH.js +57 -0
  241. package/dist/es-ES-yMXcOjDL.js +13 -0
  242. package/dist/et-EE--cL_YqWe.js +27 -0
  243. package/dist/et-EE-BMgFCxds.js +37 -0
  244. package/dist/et-EE-BYSnV6Iq.js +55 -0
  245. package/dist/et-EE-Be__VK7Y.js +32 -0
  246. package/dist/et-EE-Bk2IHQWP.js +13 -0
  247. package/dist/et-EE-BuBiNLCi.js +24 -0
  248. package/dist/et-EE-C8RrUpLm.js +13 -0
  249. package/dist/et-EE-C_PZO2aI.js +68 -0
  250. package/dist/et-EE-Ci8RU2wg.js +13 -0
  251. package/dist/et-EE-DUWZ2Vqm.js +54 -0
  252. package/dist/et-EE-DmShD6oS.js +113 -0
  253. package/dist/et-EE-TzXANcP2.js +57 -0
  254. package/dist/et-EE-esci5847.js +29 -0
  255. package/dist/et-EE-x29FUaYN.js +118 -0
  256. package/dist/external-link-DCMYUMfW.js +14 -0
  257. package/dist/fi-FI-B_P4BAda.js +113 -0
  258. package/dist/fi-FI-CDISJifz.js +13 -0
  259. package/dist/fi-FI-DH6jpo9K.js +24 -0
  260. package/dist/fi-FI-DjlB2a7k.js +13 -0
  261. package/dist/fi-FI-Dn2MC8uW.js +57 -0
  262. package/dist/fi-FI-MiyuQqH8.js +13 -0
  263. package/dist/fi-FI-PVFqd5Ra.js +55 -0
  264. package/dist/fi-FI-bZzNB1WB.js +32 -0
  265. package/dist/fi-FI-fArobrt5.js +27 -0
  266. package/dist/fi-FI-hwzizPnr.js +68 -0
  267. package/dist/fi-FI-xXrvDLFe.js +29 -0
  268. package/dist/fi-FI-xqnQ38yC.js +13 -0
  269. package/dist/fi-FI-ysUrBilO.js +37 -0
  270. package/dist/fieldConfigurations-C38LzPl3.js +1402 -0
  271. package/dist/fr-FR-BSvSKazD.js +37 -0
  272. package/dist/fr-FR-BSynpexF.js +13 -0
  273. package/dist/fr-FR-BWX14yb7.js +57 -0
  274. package/dist/fr-FR-BnblnBsx.js +24 -0
  275. package/dist/fr-FR-Bw9O-QAU.js +29 -0
  276. package/dist/fr-FR-CUdiBCVB.js +113 -0
  277. package/dist/fr-FR-CYZXbwc9.js +68 -0
  278. package/dist/fr-FR-CiwkAb3E.js +27 -0
  279. package/dist/fr-FR-DGMVrsJv.js +13 -0
  280. package/dist/fr-FR-Dx-CiPdB.js +13 -0
  281. package/dist/fr-FR-aJ3cg4x0.js +13 -0
  282. package/dist/fr-FR-cTKcuHqX.js +32 -0
  283. package/dist/fr-FR-mJK4hjwD.js +55 -0
  284. package/dist/getFieldsWithExistingData-B0l_1eCG.js +22 -0
  285. package/dist/getName-CIw0MR9e.js +48 -0
  286. package/dist/gift-CQ_DEma7.js +14 -0
  287. package/dist/graph-BJmqglH2.js +21 -0
  288. package/dist/graph-up-Bq6adtlX.js +20 -0
  289. package/dist/hasDataChanged-B-_hLK5I.js +19 -0
  290. package/dist/headquarter-DNYyuuFq.js +21 -0
  291. package/dist/hotel-BuNql78Z.js +22 -0
  292. package/dist/hr-HR-BHt_jklG.js +13 -0
  293. package/dist/hr-HR-BLpGb4f2.js +37 -0
  294. package/dist/hr-HR-CXpCIMhI.js +113 -0
  295. package/dist/hr-HR-CZLSQruE.js +57 -0
  296. package/dist/hr-HR-CnP5sqih.js +54 -0
  297. package/dist/hr-HR-ComCqan_.js +32 -0
  298. package/dist/hr-HR-D5V7g9H2.js +13 -0
  299. package/dist/hr-HR-D8_yhtIo.js +29 -0
  300. package/dist/hr-HR-De5kHU8U.js +24 -0
  301. package/dist/hr-HR-DtfHQVe0.js +27 -0
  302. package/dist/hr-HR-VivDwwdW.js +13 -0
  303. package/dist/hr-HR-bE6cvRCQ.js +68 -0
  304. package/dist/hr-HR-n7aMHIpM.js +13 -0
  305. package/dist/hr-HR-qmYyO-nT.js +55 -0
  306. package/dist/hu-HU-BTlpbCpc.js +54 -0
  307. package/dist/hu-HU-BcogZby3.js +24 -0
  308. package/dist/hu-HU-CS-7iNS4.js +55 -0
  309. package/dist/hu-HU-Ca9Hex26.js +37 -0
  310. package/dist/hu-HU-DDsdPI5V.js +13 -0
  311. package/dist/hu-HU-DG-NUDx4.js +68 -0
  312. package/dist/hu-HU-DUGz5q5D.js +32 -0
  313. package/dist/hu-HU-D_DvlCMw.js +13 -0
  314. package/dist/hu-HU-DqEBeq-w.js +113 -0
  315. package/dist/hu-HU-I4-KFzvz.js +27 -0
  316. package/dist/hu-HU-KliQetm5.js +29 -0
  317. package/dist/hu-HU-WEtpzb41.js +13 -0
  318. package/dist/hu-HU-hbVM6tMS.js +13 -0
  319. package/dist/hu-HU-kp8Go5hZ.js +57 -0
  320. package/dist/iframeWidget-yBLSAmf8.js +234 -0
  321. package/dist/image-BSihO8lR.js +17 -0
  322. package/dist/info-vHTZWoJ7.js +21 -0
  323. package/dist/it-IT-B0YGvVgW.js +57 -0
  324. package/dist/it-IT-BTWkWSJq.js +55 -0
  325. package/dist/it-IT-C2MZo4KT.js +13 -0
  326. package/dist/it-IT-C_651bEP.js +13 -0
  327. package/dist/it-IT-Ckv8Ce4e.js +24 -0
  328. package/dist/it-IT-DERflsUd.js +32 -0
  329. package/dist/it-IT-DIbH-udG.js +27 -0
  330. package/dist/it-IT-DLm11dH5.js +13 -0
  331. package/dist/it-IT-Erh1DIlj.js +68 -0
  332. package/dist/it-IT-MwpjRAG6.js +29 -0
  333. package/dist/it-IT-NCFAqV1F.js +113 -0
  334. package/dist/it-IT-Qfzc8jnW.js +37 -0
  335. package/dist/it-IT-yV7ewjWU.js +13 -0
  336. package/dist/ja-JP-2u5fqLWF.js +29 -0
  337. package/dist/ja-JP-Bktpl_2b.js +118 -0
  338. package/dist/ja-JP-BoxeBgOv.js +32 -0
  339. package/dist/ja-JP-CHQ64lw1.js +37 -0
  340. package/dist/ja-JP-CSz7fEkn.js +55 -0
  341. package/dist/ja-JP-CWe8f7m4.js +13 -0
  342. package/dist/ja-JP-C_-moDrA.js +113 -0
  343. package/dist/ja-JP-CbgaW99b.js +54 -0
  344. package/dist/ja-JP-Ctsk4z4q.js +151 -0
  345. package/dist/ja-JP-CvNJvxkQ.js +218 -0
  346. package/dist/ja-JP-Dz9IVH4p.js +57 -0
  347. package/dist/ja-JP-FWHXsXlW.js +24 -0
  348. package/dist/ja-JP-ThzG9vIo.js +68 -0
  349. package/dist/ja-JP-bz7ekGnF.js +27 -0
  350. package/dist/localizeDateString-C-G2nUor.js +27 -0
  351. package/dist/location-Q4oKvnkl.js +17 -0
  352. package/dist/lt-LT-0RKZeraM.js +37 -0
  353. package/dist/lt-LT-B6XmKUXx.js +55 -0
  354. package/dist/lt-LT-BEsBoIQ9.js +29 -0
  355. package/dist/lt-LT-BLsIcCtE.js +27 -0
  356. package/dist/lt-LT-CU5qHa7a.js +113 -0
  357. package/dist/lt-LT-CYiW52tl.js +13 -0
  358. package/dist/lt-LT-Cg9c0kae.js +13 -0
  359. package/dist/lt-LT-Ci357QYQ.js +13 -0
  360. package/dist/lt-LT-D5Rhxm1h.js +32 -0
  361. package/dist/lt-LT-DDdq07sX.js +24 -0
  362. package/dist/lt-LT-DTQGR9M0.js +54 -0
  363. package/dist/lt-LT-Nd1uRoIj.js +68 -0
  364. package/dist/lt-LT-W6fTjwB5.js +13 -0
  365. package/dist/lt-LT-l9rzkFg9.js +57 -0
  366. package/dist/lv-LV-BQ4F1GrV.js +54 -0
  367. package/dist/lv-LV-Bh-WQp0K.js +37 -0
  368. package/dist/lv-LV-C7hMdPcY.js +27 -0
  369. package/dist/lv-LV-CG1zToz7.js +32 -0
  370. package/dist/lv-LV-CgMxfFK8.js +13 -0
  371. package/dist/lv-LV-CkyuY2ji.js +24 -0
  372. package/dist/lv-LV-CpGkmcLz.js +113 -0
  373. package/dist/lv-LV-CxUmQHF9.js +13 -0
  374. package/dist/lv-LV-DKhV24CI.js +68 -0
  375. package/dist/lv-LV-DYbb5pkt.js +57 -0
  376. package/dist/lv-LV-DsSpy50n.js +55 -0
  377. package/dist/lv-LV-DsxFGThp.js +13 -0
  378. package/dist/lv-LV-Dxe-A5vo.js +13 -0
  379. package/dist/lv-LV-Veji7-on.js +29 -0
  380. package/dist/mail-BOdyoVqB.js +14 -0
  381. package/dist/mapAddressLocalizationToJpAddressSchema-vJWbpAyq.js +56 -0
  382. package/dist/mapExistingFile-BhW5UmN9.js +156 -0
  383. package/dist/mapFinancialReportsToFinancialInformation-Dl-cl9eQ.js +67 -0
  384. package/dist/mapJpAddressSchemaToAddressLocalizations-KFAvfuC1.js +63 -0
  385. package/dist/mapLegalEntityToIndividualOnfidoSchema-D51tRiYd.js +143 -0
  386. package/dist/mapTransferInstrumentToPayoutAccount-CU5wx0wJ.js +33 -0
  387. package/dist/minus-circle-filled-kC2IUvKz.js +17 -0
  388. package/dist/nl-NL-BMUYBqlF.js +57 -0
  389. package/dist/nl-NL-Bk-1-C0e.js +13 -0
  390. package/dist/nl-NL-BuW3jWdI.js +29 -0
  391. package/dist/nl-NL-Bx5p0nXL.js +24 -0
  392. package/dist/nl-NL-CMw-FwQV.js +13 -0
  393. package/dist/nl-NL-CTf7zH4M.js +55 -0
  394. package/dist/nl-NL-Cjlmc0Ii.js +32 -0
  395. package/dist/nl-NL-D7gBNWEY.js +37 -0
  396. package/dist/nl-NL-DKMs4pB2.js +13 -0
  397. package/dist/nl-NL-DMpB18Te.js +113 -0
  398. package/dist/nl-NL-JChnFdCY.js +13 -0
  399. package/dist/nl-NL-NlkjOSYi.js +27 -0
  400. package/dist/nl-NL-O9GCHMDA.js +68 -0
  401. package/dist/no-NO--OoWld_l.js +13 -0
  402. package/dist/no-NO-B-oUwe9q.js +13 -0
  403. package/dist/no-NO-Bs3-6MDM.js +24 -0
  404. package/dist/no-NO-C-gCYc9q.js +37 -0
  405. package/dist/no-NO-CA0EizAy.js +29 -0
  406. package/dist/no-NO-CA1aR6Wh.js +68 -0
  407. package/dist/no-NO-CY_XHrYd.js +32 -0
  408. package/dist/no-NO-Ca5qoVaU.js +113 -0
  409. package/dist/no-NO-Crlsj6HG.js +27 -0
  410. package/dist/no-NO-DKbWxgF-.js +57 -0
  411. package/dist/no-NO-DN9qf-_I.js +13 -0
  412. package/dist/no-NO-Dhj0Fh__.js +13 -0
  413. package/dist/no-NO-RfTK9KAV.js +55 -0
  414. package/dist/options-horizontal-CBmbNv7R.js +18 -0
  415. package/dist/partner-CPjsrePY.js +18 -0
  416. package/dist/pay-by-link-plane-BVZndh67.js +22 -0
  417. package/dist/payout-ChUEoLjt.js +20 -0
  418. package/dist/payout-verification-instant-5u-wvFKv.js +41 -0
  419. package/dist/payout-verification-manual-BH2mu0UW.js +90 -0
  420. package/dist/person-DGjUU4S4.js +17 -0
  421. package/dist/pl-PL-B0zGy_b4.js +57 -0
  422. package/dist/pl-PL-BKDK0_G8.js +68 -0
  423. package/dist/pl-PL-BSI0zHO1.js +113 -0
  424. package/dist/pl-PL-BzhEoDb5.js +24 -0
  425. package/dist/pl-PL-C_MvVzPy.js +32 -0
  426. package/dist/pl-PL-D7nhdbfR.js +29 -0
  427. package/dist/pl-PL-DGSYzOx6.js +13 -0
  428. package/dist/pl-PL-DYxD6VJ_.js +27 -0
  429. package/dist/pl-PL-DtJ3sgVO.js +13 -0
  430. package/dist/pl-PL-Duj3tncM.js +13 -0
  431. package/dist/pl-PL-Dy8qWH39.js +55 -0
  432. package/dist/pl-PL-LnVPufjb.js +37 -0
  433. package/dist/pl-PL-kGaeUP-w.js +54 -0
  434. package/dist/pl-PL-p8YxqOFg.js +13 -0
  435. package/dist/plus-CWXA5wdX.js +14 -0
  436. package/dist/plus-circle-filled-CbC0u2Y1.js +17 -0
  437. package/dist/process-field-configurations-DoOFQqtn.js +324 -0
  438. package/dist/pt-BR--kaJvtE6.js +57 -0
  439. package/dist/pt-BR-BbFJsIVX.js +55 -0
  440. package/dist/pt-BR-Be5ZycMV.js +13 -0
  441. package/dist/pt-BR-BfxgHKY4.js +27 -0
  442. package/dist/pt-BR-C0I_kTQ6.js +13 -0
  443. package/dist/pt-BR-CBAe0SnK.js +32 -0
  444. package/dist/pt-BR-Cj8MlQyq.js +113 -0
  445. package/dist/pt-BR-Cm4vZocb.js +13 -0
  446. package/dist/pt-BR-D1nTSLod.js +29 -0
  447. package/dist/pt-BR-DKrMpM6v.js +13 -0
  448. package/dist/pt-BR-DSENwwGu.js +24 -0
  449. package/dist/pt-BR-NtLaWlnZ.js +68 -0
  450. package/dist/pt-BR-nU_2Wbo5.js +54 -0
  451. package/dist/pt-BR-ur86nRrK.js +37 -0
  452. package/dist/pt-PT-B4F_5NWi.js +55 -0
  453. package/dist/pt-PT-B9L50746.js +29 -0
  454. package/dist/pt-PT-BJjCTMYf.js +13 -0
  455. package/dist/pt-PT-BJkVzfAJ.js +113 -0
  456. package/dist/pt-PT-BR-BI5Jn.js +13 -0
  457. package/dist/pt-PT-BZ5ZZm6G.js +57 -0
  458. package/dist/pt-PT-Bf4IV7wp.js +13 -0
  459. package/dist/pt-PT-Bh7v8xbp.js +13 -0
  460. package/dist/pt-PT-CIo3mlXL.js +24 -0
  461. package/dist/pt-PT-CVNEcs32.js +37 -0
  462. package/dist/pt-PT-DSxxVA0f.js +68 -0
  463. package/dist/pt-PT-Dm5DRDrd.js +32 -0
  464. package/dist/pt-PT-TKg5FLat.js +27 -0
  465. package/dist/recurring-CkL4cCM2.js +17 -0
  466. package/dist/reporting-DerosUNm.js +16 -0
  467. package/dist/resolveEnvironment-Dyejukh7.js +164 -0
  468. package/dist/revenue-accelerate-Dp4Ns_5c.js +17 -0
  469. package/dist/ro-RO-3rOfS17N.js +27 -0
  470. package/dist/ro-RO-4j2I7YM7.js +13 -0
  471. package/dist/ro-RO-5I4Q_FyK.js +13 -0
  472. package/dist/ro-RO-B5YT9vP-.js +32 -0
  473. package/dist/ro-RO-B8leE4ZJ.js +13 -0
  474. package/dist/ro-RO-Bybq8JFn.js +68 -0
  475. package/dist/ro-RO-C83h2zHZ.js +54 -0
  476. package/dist/ro-RO-CICjAFys.js +55 -0
  477. package/dist/ro-RO-CdSsgoUG.js +57 -0
  478. package/dist/ro-RO-DjGku_3y.js +13 -0
  479. package/dist/ro-RO-DvG65dTt.js +29 -0
  480. package/dist/ro-RO-ILTvlS9i.js +24 -0
  481. package/dist/ro-RO-RgC5M6CE.js +113 -0
  482. package/dist/ro-RO-i7lojG2G.js +37 -0
  483. package/dist/rules-DP604XPJ.js +314 -0
  484. package/dist/save-Fgy7EDid.js +14 -0
  485. package/dist/search-C4GZ-Rc1.js +17 -0
  486. package/dist/show-yPjPmEf8.js +17 -0
  487. package/dist/sk-SK-0BVxI7bf.js +113 -0
  488. package/dist/sk-SK-B5brxU1N.js +37 -0
  489. package/dist/sk-SK-BMJgOJoa.js +29 -0
  490. package/dist/sk-SK-BRd5TN22.js +55 -0
  491. package/dist/sk-SK-BVmoP_EU.js +13 -0
  492. package/dist/sk-SK-BWwRIx2d.js +13 -0
  493. package/dist/sk-SK-Bb18qPBw.js +13 -0
  494. package/dist/sk-SK-BiBWPJUf.js +57 -0
  495. package/dist/sk-SK-C5Qmv4E6.js +13 -0
  496. package/dist/sk-SK-C6rMIxpz.js +68 -0
  497. package/dist/sk-SK-CgLJIuJw.js +54 -0
  498. package/dist/sk-SK-CjrLvDMx.js +27 -0
  499. package/dist/sk-SK-Cv23cDQO.js +24 -0
  500. package/dist/sk-SK-S6iF1WDH.js +32 -0
  501. package/dist/sl-SI-6s8xycKg.js +13 -0
  502. package/dist/sl-SI-BMF8YtOm.js +29 -0
  503. package/dist/sl-SI-BZpXMHiG.js +13 -0
  504. package/dist/sl-SI-BxImW_RL.js +113 -0
  505. package/dist/sl-SI-C-C-KJCX.js +27 -0
  506. package/dist/sl-SI-CUCrzJQv.js +37 -0
  507. package/dist/sl-SI-CaJmYb6p.js +13 -0
  508. package/dist/sl-SI-D8dDckrW.js +55 -0
  509. package/dist/sl-SI-DEaeEVKB.js +24 -0
  510. package/dist/sl-SI-DqUEy_Cm.js +32 -0
  511. package/dist/sl-SI-DtdGMD6i.js +57 -0
  512. package/dist/sl-SI-ZxyvdgdS.js +13 -0
  513. package/dist/sl-SI-tPwbFvOI.js +68 -0
  514. package/dist/solution-payments-CNAat9h7.js +14 -0
  515. package/dist/store-IuAkDRAp.js +14 -0
  516. package/dist/style.css +2143 -1744
  517. package/dist/styles-CLV89_hH.js +2143 -1744
  518. package/dist/sv-SE-B1sbgsnh.js +13 -0
  519. package/dist/sv-SE-BHfydid5.js +27 -0
  520. package/dist/sv-SE-BUq1X9F0.js +113 -0
  521. package/dist/sv-SE-BYC_f8r7.js +29 -0
  522. package/dist/sv-SE-C6uPh9g5.js +37 -0
  523. package/dist/sv-SE-CCFIf86P.js +13 -0
  524. package/dist/sv-SE-CRBRuE8Z.js +32 -0
  525. package/dist/sv-SE-CXaMlJCI.js +24 -0
  526. package/dist/sv-SE-DGpvVvWj.js +55 -0
  527. package/dist/sv-SE-D_ZnGxiQ.js +13 -0
  528. package/dist/sv-SE-DsPdegWB.js +13 -0
  529. package/dist/sv-SE-K1QT1cOt.js +68 -0
  530. package/dist/sv-SE-kR514dO1.js +57 -0
  531. package/dist/terminal-1-_me9J9h0.js +18 -0
  532. package/dist/trackNavigation-db_h46BT.js +28 -0
  533. package/dist/types/api/address/useAddressCleanse.d.ts +6 -2
  534. package/dist/types/api/address/useRetrieveAddress.d.ts +3 -1
  535. package/dist/types/api/address/useRetrieveFromPostcodeJp.d.ts +18 -0
  536. package/dist/types/api/businessLines/businessLines.types.d.ts +16 -0
  537. package/dist/types/api/businessLines/useBusinessLines.d.ts +4 -2
  538. package/dist/types/api/businessLines/useCreateBusinessLine.d.ts +7 -0
  539. package/dist/types/api/businessLines/useDeleteBusinessLine.d.ts +5 -0
  540. package/dist/types/api/businessLines/useUpdateBusinessLines.d.ts +7 -0
  541. package/dist/types/api/businessLines/useUpdateSourceOfFunds.d.ts +1 -0
  542. package/dist/types/api/companySearch/useCompanySearch.d.ts +1 -0
  543. package/dist/types/api/configurations/useScenarios.d.ts +12 -12
  544. package/dist/types/api/documentValidation/useDocumentValidate.d.ts +15 -0
  545. package/dist/types/api/industryCodes/industryCodes.types.d.ts +2 -1
  546. package/dist/types/api/industryCodes/useIndustryCodes.d.ts +3 -3
  547. package/dist/types/api/legalEntity/useLegalEntity.d.ts +16 -16
  548. package/dist/types/api/pci/pci.types.d.ts +17 -0
  549. package/dist/types/api/pci/usePciQuestionnaire.d.ts +6 -0
  550. package/dist/types/api/pci/usePciQuestionnaireList.d.ts +12 -0
  551. package/dist/types/api/pci/usePciStatus.d.ts +6 -0
  552. package/dist/types/api/pci/usePciTemplate.d.ts +8 -0
  553. package/dist/types/api/queryKeys.d.ts +5 -4
  554. package/dist/types/components/BankAccount/fields/BankAccountFormat/types.d.ts +2 -1
  555. package/dist/types/components/BankAccount/fields/PreferredCurrency/PreferredCurrency.d.ts +10 -0
  556. package/dist/types/components/BankAccount/forms/BankDocument/BankDocumentClassification.d.ts +5 -0
  557. package/dist/types/components/BankAccount/forms/BankDocument/BankDocumentRequirementsModal.d.ts +6 -0
  558. package/dist/types/components/BankAccount/forms/BankDocument/types.d.ts +2 -2
  559. package/dist/types/components/BankAccount/forms/BankDocument/validate.d.ts +3 -0
  560. package/dist/types/components/BankAccount/forms/BankVerification/BankVerification.d.ts +1 -1
  561. package/dist/types/components/BankAccount/forms/BankVerification/types.d.ts +7 -0
  562. package/dist/types/components/BankAccount/forms/BankVerification/verification/overlay/BankVerificationOverlay.d.ts +3 -0
  563. package/dist/types/components/BankAccount/forms/PayoutAccount/payoutAccountFormat.d.ts +1 -1
  564. package/dist/types/components/BankAccount/forms/PayoutAccount/types.d.ts +2 -0
  565. package/dist/types/components/BankAccount/forms/PayoutCountryDetails/PayoutCountryDetails.d.ts +3 -0
  566. package/dist/types/components/BankAccount/forms/PayoutCountryDetails/PayoutRequirementsModal.d.ts +8 -0
  567. package/dist/types/components/BankAccount/forms/PayoutCountryDetails/types.d.ts +13 -0
  568. package/dist/types/components/BankAccount/forms/PayoutDetails/PayoutDetails.d.ts +6 -1
  569. package/dist/types/components/BankAccount/forms/PayoutDetails/types.d.ts +2 -0
  570. package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/PayoutVerificationMethod.d.ts +1 -2
  571. package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/payoutVerificationMethodMetadata.d.ts +5 -5
  572. package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/utils.d.ts +2 -0
  573. package/dist/types/components/BankAccount/mapping/mapPayoutAccountSchemaToApiBankAccount.d.ts +3 -2
  574. package/dist/types/components/BankAccount/mapping/mapPayoutDetailsToTransferInstrument.d.ts +2 -1
  575. package/dist/types/components/BankAccount/mapping/mapTransferInstrumentToPayoutAccount.d.ts +1 -1
  576. package/dist/types/components/BankAccount/mapping/payoutKeyMappings.d.ts +1052 -642
  577. package/dist/types/components/BankAccount/pages/PayoutDetailsPage.d.ts +1 -1
  578. package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/PayoutDetailsDropin.d.ts +1 -0
  579. package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/payoutDetailsFormConfig.d.ts +1 -1
  580. package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/utils.d.ts +3 -3
  581. package/dist/types/components/BankAccount/utils/payoutAccountUtil.d.ts +5 -4
  582. package/dist/types/components/Business/forms/AdditionalInformation/types.d.ts +2 -1
  583. package/dist/types/components/Business/forms/BasicInformation/BasicInformationMultiform.d.ts +5 -3
  584. package/dist/types/components/Business/forms/RegistrationDocument/types.d.ts +3 -3
  585. package/dist/types/components/Business/forms/TaxDocument/types.d.ts +3 -3
  586. package/dist/types/components/Business/forms/rules.d.ts +3 -1
  587. package/dist/types/components/Business/pages/RootBusinessDetailsPage.d.ts +1 -1
  588. package/dist/types/components/Business/tasks/BusinessDetailsDropin/businessDetailsStore.d.ts +5 -4
  589. package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +9 -6
  590. package/dist/types/components/Business/tasks/BusinessDetailsDropin/utils.d.ts +3 -3
  591. package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/BusinessDetailsMultiform.d.ts +2 -1
  592. package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/utils.d.ts +0 -2
  593. package/dist/types/components/Business/utils/applyVerifiedBusinessData.d.ts +5 -0
  594. package/dist/types/components/Business/utils/companyTypeMetadata.d.ts +3 -3
  595. package/dist/types/components/Business/utils/requestingCapabilities.d.ts +3 -0
  596. package/dist/types/components/BusinessLines/constants.d.ts +23 -0
  597. package/dist/types/components/BusinessLines/fields/Carousel/Carousel.d.ts +30 -0
  598. package/dist/types/components/BusinessLines/fields/SalesChannels/SalesChannels.d.ts +2 -0
  599. package/dist/types/components/BusinessLines/fields/SalesChannels/types.d.ts +6 -0
  600. package/dist/types/components/BusinessLines/fields/WebDataField/WebDataField.d.ts +2 -0
  601. package/dist/types/components/BusinessLines/fields/WebDataField/types.d.ts +6 -0
  602. package/dist/types/components/BusinessLines/forms/IndustryCodesForm/IndustryCodesForm.d.ts +2 -0
  603. package/dist/types/components/BusinessLines/forms/IndustryCodesForm/types.d.ts +2 -0
  604. package/dist/types/components/BusinessLines/forms/SalesChannelsForm/SalesChannelsForm.d.ts +2 -0
  605. package/dist/types/components/BusinessLines/forms/SalesChannelsForm/types.d.ts +3 -0
  606. package/dist/types/components/BusinessLines/forms/rules.d.ts +5 -0
  607. package/dist/types/components/BusinessLines/tasks/BusinessLines/BusinessLineModal/BusinessLineModal.d.ts +6 -0
  608. package/dist/types/components/BusinessLines/tasks/BusinessLines/BusinessLines.d.ts +9 -0
  609. package/dist/types/components/BusinessLines/tasks/BusinessLines/BusinessLinesDropin.d.ts +2 -0
  610. package/dist/types/components/BusinessLines/tasks/BusinessLines/BusinessLinesStore.d.ts +3 -0
  611. package/dist/types/components/BusinessLines/tasks/BusinessLines/ExistingBusinessLines/ExistingBusinessLines.d.ts +8 -0
  612. package/dist/types/components/BusinessLines/tasks/types.d.ts +17 -0
  613. package/dist/types/components/BusinessLines/tasks/utils.d.ts +21 -0
  614. package/dist/types/components/BusinessLines/tasks/validate.d.ts +9 -0
  615. package/dist/types/components/Contract/hooks/useSalesChannels.d.ts +2 -0
  616. package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +1328 -758
  617. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingBasicCompanyInformation.d.ts +0 -1
  618. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingBusinessInformation.d.ts +0 -1
  619. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingFinancialInformation.d.ts +0 -1
  620. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingOwnershipStructure.d.ts +0 -1
  621. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingRegisteredAddress.d.ts +0 -1
  622. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/types.d.ts +7 -5
  623. package/dist/types/components/EFP/tasks/SourceOfFundsDropin/SourceOfFundsType.d.ts +3 -0
  624. package/dist/types/components/EFP/tasks/SourceOfFundsDropin/sofStore.d.ts +1 -1
  625. package/dist/types/components/EFP/tasks/SourceOfFundsDropin/utils.d.ts +14 -13
  626. package/dist/types/components/EFP/tasks/TaxReportingDropin/taxClassificationStore.d.ts +1 -1
  627. package/dist/types/components/EFP/tasks/TaxReportingDropin/utils.d.ts +6 -6
  628. package/dist/types/components/EmbeddedDropins/BusinessFinancingComponent/BusinessFinancingComponent.d.ts +1 -1
  629. package/dist/types/components/EmbeddedDropins/BusinessFinancingComponent/utils.d.ts +3 -3
  630. package/dist/types/components/EmbeddedDropins/SignPCIComponent/SignPCIComponent.d.ts +3 -1
  631. package/dist/types/components/EmbeddedDropins/ViewVerificationStatus/content.d.ts +3 -3
  632. package/dist/types/components/Individual/fields/NameFields/NameFields.d.ts +3 -0
  633. package/dist/types/components/Individual/forms/Individual/IdVerification/idVerificationProviderId.d.ts +1 -1
  634. package/dist/types/components/Individual/forms/Individual/IdVerificationMethod/idVerificationMethodMetadata.d.ts +3 -3
  635. package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/AdditionalPersonalDetails.types.d.ts +2 -1
  636. package/dist/types/components/Individual/forms/IndividualOnfido/IdNowVerificationModal/isIdNowModalOpen.d.ts +3 -3
  637. package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.rules.d.ts +1 -1
  638. package/dist/types/components/Individual/forms/IndividualOnfido/UboQuestionnaire/UboQuestionnaire.types.d.ts +4 -1
  639. package/dist/types/components/Individual/forms/IndividualOnfido/UboQuestionnaire/UboQuestionnaireModalContent.d.ts +3 -1
  640. package/dist/types/components/Individual/helpers/shouldShowMotionCapture.d.ts +2 -2
  641. package/dist/types/components/Individual/pages/DecisionMakerDetailsPage.d.ts +2 -8
  642. package/dist/types/components/Individual/pages/RootIndividualDetailsPage.d.ts +2 -6
  643. package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerDetails/DecisionMakerDetails.d.ts +1 -1
  644. package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerDetails/DecisionMakerDetails.types.d.ts +2 -0
  645. package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerDetails/utils.d.ts +57 -0
  646. package/dist/types/components/Individual/tasks/DecisionMakers/RemediationAlerts/RemediationAlerts.d.ts +7 -0
  647. package/dist/types/components/Individual/tasks/DecisionMakers/RemediationAlerts/remediation.config.d.ts +19 -0
  648. package/dist/types/components/Individual/tasks/DecisionMakers/types.d.ts +0 -2
  649. package/dist/types/components/Individual/tasks/DecisionMakers/utils.d.ts +3 -0
  650. package/dist/types/components/Individual/tasks/IndividualOnfidoDropin/IndividualOnfidoStore.d.ts +1 -1
  651. package/dist/types/components/Shared/EntityAssociation/EntityAssociation.d.ts +1 -1
  652. package/dist/types/components/Shared/EntityAssociation/types.d.ts +2 -4
  653. package/dist/types/components/Shared/FormNavigation/FormNavigation.d.ts +1 -1
  654. package/dist/types/components/Shared/FormNavigation/types.d.ts +0 -2
  655. package/dist/types/components/Shared/FormWrapper/FormWrapper.d.ts +1 -3
  656. package/dist/types/components/Shared/Introduction/copy.d.ts +2 -2
  657. package/dist/types/components/Shared/Summary/Summary.d.ts +1 -1
  658. package/dist/types/components/Shared/Summary/types.d.ts +1 -2
  659. package/dist/types/components/Shared/TaskVerificationStatus/TaskVerificationStatus.d.ts +18 -0
  660. package/dist/types/components/Shared/devex/DebugListener/DebugFormData.d.ts +1 -0
  661. package/dist/types/components/Shared/devex/DebugListener/debugStore.d.ts +5 -0
  662. package/dist/types/components/Shared/fields/IdFieldTypeSelector/VatNumberTypeSelector.d.ts +1 -1
  663. package/dist/types/components/Shared/fields/IndustryCodeField/IndustryCodeField.d.ts +4 -0
  664. package/dist/types/components/Shared/fields/IndustryCodeField/fieldConfig.d.ts +3 -0
  665. package/dist/types/components/Shared/fields/IndustryCodeField/types.d.ts +22 -0
  666. package/dist/types/components/Shared/fields/IndustryCodeField/validate.d.ts +3 -0
  667. package/dist/types/components/Shared/fields/LocalizedLegalCompanyNameField/fieldConfig.d.ts +4 -4
  668. package/dist/types/components/Shared/forms/Address/localized/jp/JpAddress.d.ts +7 -0
  669. package/dist/types/components/Shared/forms/Address/localized/jp/ReadonlyTextField.d.ts +7 -0
  670. package/dist/types/components/Shared/forms/Address/localized/jp/jpAddressSchema.d.ts +5 -0
  671. package/dist/types/components/Shared/forms/Address/localized/jp/mapAddressLocalizationToJpAddressSchema.d.ts +3 -0
  672. package/dist/types/components/Shared/forms/Address/localized/jp/mapJpAddressSchemaToAddressLocalizations.d.ts +3 -0
  673. package/dist/types/components/Shared/forms/Address/localized/jp/mapJpAddressSummary.d.ts +4 -0
  674. package/dist/types/components/Shared/forms/Address/utils.d.ts +3 -2
  675. package/dist/types/components/Shared/forms/FinancialInformation/formatFinancialInformationSummary.d.ts +1 -2
  676. package/dist/types/components/Shared/forms/RegistrationAddress/RegistrationAddressMultiform.d.ts +3 -0
  677. package/dist/types/components/Shared/forms/RegistrationAddress/types.d.ts +3 -2
  678. package/dist/types/components/Shared/tasks/CustomerSupport/mapping/customerSupportKeyMapping.d.ts +4 -0
  679. package/dist/types/components/Shared/tasks/TaskList/TaskList.d.ts +3 -1
  680. package/dist/types/components/Shared/tasks/TaskList/TaskListItem.d.ts +1 -1
  681. package/dist/types/components/Shared/tasks/TaskList/types.d.ts +4 -12
  682. package/dist/types/components/Shared/tasks/TaskList/utils.d.ts +1 -1
  683. package/dist/types/components/SoleProprietorship/pages/SoleProprietorshipPage.d.ts +1 -2
  684. package/dist/types/components/Trust/forms/TrustRegistrationDetails/TrustRegistrationDetailsMultiform.d.ts +2 -0
  685. package/dist/types/components/Trust/hooks/useTrustMemberNavigation.hook.d.ts +1 -16
  686. package/dist/types/components/Trust/pages/TrustMemberCompanyPage.d.ts +1 -2
  687. package/dist/types/components/Trust/tasks/RoleAndTypeDropin/formatRoleAndEntityTypeSummary.d.ts +2 -2
  688. package/dist/types/components/Trust/tasks/TrustDropin/TrustMultiform.d.ts +21 -0
  689. package/dist/types/components/Trust/tasks/TrustDropin/TrustMultiformDropin.d.ts +2 -0
  690. package/dist/types/components/Trust/tasks/TrustDropin/validate.d.ts +5 -0
  691. package/dist/types/components/UnincorporatedPartnership/pages/UnincorporatedPartnershipMemberCompanyPage.d.ts +1 -2
  692. package/dist/types/components/ui/atoms/Header/Header.d.ts +12 -0
  693. package/dist/types/components/ui/atoms/ListItem/ListItem.d.ts +1 -2
  694. package/dist/types/components/ui/atoms/RadioCard/RadioCard.d.ts +1 -0
  695. package/dist/types/components/ui/atoms/RadioGroup/RadioGroup.d.ts +1 -1
  696. package/dist/types/components/ui/atoms/RadioGroupCard/RadioGroupCard.d.ts +4 -4
  697. package/dist/types/components/ui/atoms/RadioGroupCard/RadioGroupCard.types.d.ts +8 -9
  698. package/dist/types/components/ui/atoms/Status/Status.d.ts +9 -3
  699. package/dist/types/components/ui/atoms/Svg/svgs.d.ts +6 -0
  700. package/dist/types/components/ui/atoms/TileGroup/TileGroup.d.ts +3 -1
  701. package/dist/types/components/ui/atoms/Typography/Typography.types.d.ts +1 -1
  702. package/dist/types/components/ui/layout/StackLayout/StackLayout.d.ts +29 -7
  703. package/dist/types/components/ui/molecules/Card/Card.d.ts +1 -1
  704. package/dist/types/components/ui/molecules/Card/types.d.ts +1 -0
  705. package/dist/types/components/ui/molecules/DocumentGuidance/DocumentGuidance.types.d.ts +1 -2
  706. package/dist/types/components/ui/molecules/Dropzone/FilePicker.d.ts +2 -1
  707. package/dist/types/components/ui/molecules/Dropzone/types.d.ts +1 -0
  708. package/dist/types/components/ui/molecules/EmbeddedStatus/EmbeddedStatus.d.ts +2 -23
  709. package/dist/types/components/ui/molecules/EmbeddedStatus/statusToTag.d.ts +3 -3
  710. package/dist/types/components/ui/molecules/EmbeddedStatus/types.d.ts +23 -0
  711. package/dist/types/context/ExperimentContext/types.d.ts +24 -20
  712. package/dist/types/context/I18nProvider/I18nContext.d.ts +3 -0
  713. package/dist/types/context/SettingsContext/SettingsProvider.d.ts +1 -1
  714. package/dist/types/context/SettingsContext/types.d.ts +3 -0
  715. package/dist/types/context/StateContext/types.d.ts +2 -1
  716. package/dist/types/core/errorMapping.d.ts +4 -1
  717. package/dist/types/core/models/api/address.d.ts +5 -0
  718. package/dist/types/core/models/api/capability.d.ts +20 -0
  719. package/dist/types/core/models/api/legal-entity-association.d.ts +1 -1
  720. package/dist/types/core/models/api/source-of-funds.d.ts +5 -0
  721. package/dist/types/core/models/api/transfer-instrument.d.ts +2 -0
  722. package/dist/types/core/process-field-configurations.d.ts +4 -1
  723. package/dist/types/core/user-events.d.ts +22 -11
  724. package/dist/types/datasets/generators/getAccountFormatForCountry.d.ts +1 -0
  725. package/dist/types/hooks/singpass/useSingpassMyInfoLogin.d.ts +2 -6
  726. package/dist/types/hooks/useAnalytics/useAnalytics.d.ts +16 -0
  727. package/dist/types/hooks/useLegalCompanyNameField/useLegalCompanyNameField.d.ts +6 -8
  728. package/dist/types/hooks/useUboQuestionnaire.d.ts +25 -0
  729. package/dist/types/language/Language.d.ts +10 -0
  730. package/dist/types/language/types.d.ts +21 -7
  731. package/dist/types/language/utils.d.ts +2 -2
  732. package/dist/types/stores/globalStore/taskTypes.d.ts +1 -1
  733. package/dist/types/types/form-rules.d.ts +2 -0
  734. package/dist/types/utils/addLinkedFields.d.ts +26 -2
  735. package/dist/types/utils/analytics/convertToEmbeddedEvent.d.ts +9 -0
  736. package/dist/types/utils/analytics/debouncedInputEvent.d.ts +30 -0
  737. package/dist/types/utils/analytics/getAnalyticsAssociatedEntityDetails.d.ts +13 -0
  738. package/dist/types/utils/analytics/trackNavigation.d.ts +10 -0
  739. package/dist/types/utils/api/documentUtils.d.ts +1 -0
  740. package/dist/types/utils/entityStatusUtil.d.ts +1 -1
  741. package/dist/types/utils/filterProblemsByTaskForms.d.ts +12 -0
  742. package/dist/types/utils/getName.d.ts +1 -1
  743. package/dist/types/utils/getSSNType.d.ts +1 -0
  744. package/dist/types/utils/getTrustedFields.d.ts +9 -0
  745. package/dist/types/utils/textTransformation/toFullWidth.d.ts +6 -0
  746. package/dist/types/utils/translation.d.ts +3 -2
  747. package/dist/types/utils/validatorUtils.d.ts +1 -0
  748. package/dist/types-C972Lk6s.js +34 -0
  749. package/dist/types-CLz74bOT.js +88 -0
  750. package/dist/types-Ctv8hbzY.js +74 -0
  751. package/dist/types-f66rmUFy.js +164 -0
  752. package/dist/upload-BF65P4KM.js +17 -0
  753. package/dist/useAssociatedLegalEntity-DAB1oG6O.js +33 -0
  754. package/dist/useCreateLegalEntity-BK5YcHA-.js +31 -0
  755. package/dist/useDataset-BtfHQp4w.js +220 -0
  756. package/dist/useForm-wQyeWa1b.js +1623 -0
  757. package/dist/useGlobalData-B33uuhtd.js +68 -0
  758. package/dist/useMultiForm-rZmCYsI4.js +864 -0
  759. package/dist/useOnboardingStatus-BbIpiZR4.js +27 -0
  760. package/dist/useScenarios-DPOodENA.js +46 -0
  761. package/dist/useTermsOfServiceStatus-DKeMR4Xi.js +42 -0
  762. package/dist/useToastContext-BK9oGWtb.js +60 -0
  763. package/dist/useUnincorporatedPartnershipMembers-Cdts5Hbn.js +99 -0
  764. package/dist/useUpdateBusinessLines-CWYtpMwr.js +46 -0
  765. package/dist/useUpdateLegalEntity-oa8qEzc4.js +39 -0
  766. package/dist/utils-AP5TpAhf.js +774 -0
  767. package/dist/utils-COz1RbbA.js +237 -0
  768. package/dist/validate-BYwVLb-X.js +41 -0
  769. package/dist/validate-CBVdP51L.js +100 -0
  770. package/dist/validationError-CvZLhw5H.js +86 -0
  771. package/dist/warning-circle-fill-CEN1WL7A.js +17 -0
  772. package/dist/warning-diamond-filled-BfXMlVrG.js +17 -0
  773. package/dist/webinar-DqjqrNEv.js +22 -0
  774. package/package.json +78 -79
  775. package/dist/4-people-CCqdlDEw.js +0 -24
  776. package/dist/AD-CyP5INSp.js +0 -23
  777. package/dist/AT-DJLlevck.js +0 -23
  778. package/dist/AcceptTermsOfServiceComponent-Ddtg_ZHH.js +0 -657
  779. package/dist/AccountSetupRejected-CvdEsdWe.js +0 -26
  780. package/dist/Address-YjoUtTTT.js +0 -1076
  781. package/dist/Alert-C_-UwoDE.js +0 -231
  782. package/dist/Avatar-CeHhAxxR.js +0 -60
  783. package/dist/BE-B-m_4F41.js +0 -23
  784. package/dist/BG-BVR5ytc-.js +0 -27
  785. package/dist/BusinessDetailsDropin-Be1nkzWx.js +0 -5088
  786. package/dist/BusinessFinancingComponent-BiFxtiME.js +0 -45
  787. package/dist/BusinessFinancingDropin-B6Vpswcj.js +0 -1811
  788. package/dist/BusinessFinancingPage-C_3W8tC9.js +0 -40
  789. package/dist/BusinessTypeSelectionPage-CQxhI1B6.js +0 -426
  790. package/dist/CH-CesIKOYy.js +0 -23
  791. package/dist/CY-BnJ7k_mN.js +0 -23
  792. package/dist/CZ-BiPeoA9G.js +0 -33
  793. package/dist/Card-D0gduObT.js +0 -145
  794. package/dist/Confirm-DyWhqxmU.js +0 -64
  795. package/dist/CountryField-50Iboayh.js +0 -864
  796. package/dist/CreateIndividualComponent-9-TP2x1D.js +0 -72
  797. package/dist/CreateTransferInstrumentComponent-U_HRSoZx.js +0 -67
  798. package/dist/Currency-D-0ToVpS.js +0 -238
  799. package/dist/CustomerSupport-DTw357Bq.js +0 -141
  800. package/dist/DE-DdcbG-CC.js +0 -23
  801. package/dist/DK-DA8qRrzq.js +0 -33
  802. package/dist/DebugModal-Dc6JIQeF.js +0 -328
  803. package/dist/DecisionMakerDetailsPage-vWtfPycT.js +0 -100
  804. package/dist/DecisionMakers-2aN_F-vt.js +0 -591
  805. package/dist/Dropzone-Cp2PTdED.js +0 -218
  806. package/dist/EE-CaXoPgZz.js +0 -23
  807. package/dist/ES-Bt_oaIaf.js +0 -23
  808. package/dist/EmbeddedStatus-DQXq53qv.js +0 -100
  809. package/dist/EndStateLayout-BPsmcrN3.js +0 -71
  810. package/dist/FI-C5V3lLuN.js +0 -23
  811. package/dist/FR-Bc1tLIC4.js +0 -23
  812. package/dist/FormFlow-C95V54gu.js +0 -216
  813. package/dist/FormNavigation-29vpexO6.js +0 -162
  814. package/dist/GG-BGuqxplU.js +0 -33
  815. package/dist/GI-CROkpYrU.js +0 -41
  816. package/dist/GR-B9c2boG8.js +0 -23
  817. package/dist/HR-p4luVYpu.js +0 -23
  818. package/dist/HU-D8vJYkDH.js +0 -32
  819. package/dist/IE-Cli_j7Al.js +0 -23
  820. package/dist/IM-mpIyBn16.js +0 -33
  821. package/dist/IS-02zCAdvq.js +0 -27
  822. package/dist/IT-CzURFhrK.js +0 -23
  823. package/dist/IndividualOnfidoDropin-XYcD-6sb.js +0 -7874
  824. package/dist/InputDate-DX90XEmr.js +0 -43
  825. package/dist/InputGroup-WBfGDV5F.js +0 -32
  826. package/dist/InputText-CnEQJihB.js +0 -161
  827. package/dist/Introduction-BkGNoXvo.js +0 -304
  828. package/dist/JE-MFwIYti7.js +0 -33
  829. package/dist/LI-DA06W10W.js +0 -23
  830. package/dist/LT-DuU6E2Ct.js +0 -23
  831. package/dist/LU-BQHhNpDy.js +0 -23
  832. package/dist/LV-DN7wckbP.js +0 -23
  833. package/dist/LegalRepresentativeDetailsPage-D3Ld1xg7.js +0 -61
  834. package/dist/Link-Bn9pt52z.js +0 -35
  835. package/dist/MC-DtSWC4jS.js +0 -23
  836. package/dist/MT-DeDMQ1f_.js +0 -23
  837. package/dist/ManageIndividualComponent-C5Epqe2I.js +0 -47
  838. package/dist/ManageTermsOfServiceComponent-zcuZm98f.js +0 -47
  839. package/dist/ManageTransferInstrumentComponent-D8e5YRiK.js +0 -294
  840. package/dist/MaskedInput-Cr4BEARC.js +0 -799
  841. package/dist/MaybeModal-D6lc_yUc.js +0 -25
  842. package/dist/Modal-ltKHtBfL.js +0 -136
  843. package/dist/NL-aVL0NAp-.js +0 -23
  844. package/dist/NO-D7EOiQA1.js +0 -32
  845. package/dist/OnboardingDropinComponent-BgFPF-FG.js +0 -4301
  846. package/dist/PL-Bg7axKQA.js +0 -32
  847. package/dist/PT-hB1HnBM2.js +0 -23
  848. package/dist/PayoutDetailsDropin-Ba4z1H8Y.js +0 -3694
  849. package/dist/RO-BLlC4CKq.js +0 -23
  850. package/dist/RadioGroup-htJh3Lz5.js +0 -143
  851. package/dist/RegistrationAddress-DiVxWv-x.js +0 -2334
  852. package/dist/Review-QGTwsuVG.js +0 -82
  853. package/dist/RootBusinessDetailsPage-DNGDa-xd.js +0 -1870
  854. package/dist/RootIndividualDetailsPage-DyWuruIM.js +0 -77
  855. package/dist/SE-q25Qt85B.js +0 -33
  856. package/dist/SI-BzA-ozn6.js +0 -23
  857. package/dist/SK-DOTdLJPw.js +0 -23
  858. package/dist/SM-B4BIgmhk.js +0 -23
  859. package/dist/SignPCIComponent-BvOwbwCX.js +0 -294
  860. package/dist/SingpassSelection-CfMjudRn.js +0 -130
  861. package/dist/SoleProprietorshipPage-CYz0fHew.js +0 -50
  862. package/dist/SourceOfFundsPage-BOFtbQbF.js +0 -3101
  863. package/dist/Spacer-BK3jDget.js +0 -18
  864. package/dist/StepProgressIndicator-D8I0VtoT.js +0 -78
  865. package/dist/StoreProvider-D4cRWOo4.js +0 -7072
  866. package/dist/StructuredList-DaepaiVE.js +0 -38
  867. package/dist/TaskItemStatus-lQuiqU1e.js +0 -125
  868. package/dist/TaskStatusIndicator-8ug09mhu.js +0 -69
  869. package/dist/TaxInformationField-BfyN5nzh.js +0 -3062
  870. package/dist/TaxReportingDropin-CDqErRkl.js +0 -499
  871. package/dist/TileGroup-CTesI0Vt.js +0 -174
  872. package/dist/TrustDetailsPage-CjG99ca_.js +0 -1205
  873. package/dist/TrustMemberCompanyPage-CiA3B0Ro.js +0 -60
  874. package/dist/TrustMemberIndividualPage-J1-6IFlZ.js +0 -66
  875. package/dist/UnincorporatedPartnershipIndividualPage-Dx1qdgZL.js +0 -66
  876. package/dist/UnincorporatedPartnershipMemberCompanyPage-B89QmXFf.js +0 -64
  877. package/dist/VA-bPXdCnwD.js +0 -23
  878. package/dist/ViewVerificationStatusComponent-2jYPePEI.js +0 -177
  879. package/dist/analytics-Cg99WKif.js +0 -61
  880. package/dist/arrow-right-D_mdkZmE.js +0 -14
  881. package/dist/bafinUtils-Sy6B6Lec.js +0 -457
  882. package/dist/bag-DpxmyXfR.js +0 -14
  883. package/dist/bank-gyBvaSp4.js +0 -14
  884. package/dist/bin-Bgdj6KzC.js +0 -18
  885. package/dist/capital-CF9_Ev99.js +0 -17
  886. package/dist/cash-stack-Ds76Du8m.js +0 -22
  887. package/dist/certificate-D6xjhThs.js +0 -17
  888. package/dist/checkmark-circle-fill-BhvuqTl9.js +0 -17
  889. package/dist/checkmark-circle-nACBJ24q.js +0 -20
  890. package/dist/checkmark-small-63w5fAxg.js +0 -14
  891. package/dist/checkmark-tfEAu7lj.js +0 -14
  892. package/dist/chevron-down-CkQS-knD.js +0 -14
  893. package/dist/chevron-left-CBCMdMx6.js +0 -14
  894. package/dist/chevron-right-dIVWvPJu.js +0 -14
  895. package/dist/chevron-up-D93IGU9z.js +0 -14
  896. package/dist/circle-Dgfa7GUy.js +0 -17
  897. package/dist/coins-CFu331p2.js +0 -17
  898. package/dist/commonValidators-cnXbus2a.js +0 -24
  899. package/dist/contract-DI03_xrF.js +0 -14
  900. package/dist/cross-circle-fill-small-CHMDaA3q.js +0 -14
  901. package/dist/cross-o4n5KXxG.js +0 -14
  902. package/dist/currency-BGwQyxBo.js +0 -36
  903. package/dist/da-DK-B45X2VaJ.js +0 -35
  904. package/dist/da-DK-BJ7aTPir.js +0 -13
  905. package/dist/da-DK-BTpZzEgA.js +0 -15
  906. package/dist/da-DK-BoQic3Gy.js +0 -33
  907. package/dist/da-DK-CeNMXUfE.js +0 -23
  908. package/dist/da-DK-D0N1TVVU.js +0 -58
  909. package/dist/da-DK-D4H69PX3.js +0 -30
  910. package/dist/da-DK-DStNe471.js +0 -22
  911. package/dist/da-DK-q2b_1elr.js +0 -35
  912. package/dist/de-DE-C78RLE2G.js +0 -13
  913. package/dist/de-DE-CGoBPCPv.js +0 -22
  914. package/dist/de-DE-CWvgMDqU.js +0 -35
  915. package/dist/de-DE-D2ByeIZs.js +0 -35
  916. package/dist/de-DE-DjOUNvp6.js +0 -15
  917. package/dist/de-DE-Dtuu-nE7.js +0 -58
  918. package/dist/de-DE-Dwagawx1.js +0 -33
  919. package/dist/de-DE-JI-7mvxy.js +0 -23
  920. package/dist/de-DE-wp5-H-ov.js +0 -30
  921. package/dist/document-1-DsCi9vmX.js +0 -14
  922. package/dist/document-person-DBlLin9u.js +0 -20
  923. package/dist/download-B8_c4ARV.js +0 -17
  924. package/dist/dropinUtils-CXnvPFZN.js +0 -192
  925. package/dist/edit-1-D6f6zk9p.js +0 -14
  926. package/dist/en-US-546hB2Wn.js +0 -60
  927. package/dist/en-US-BQpgt41j.js +0 -37
  928. package/dist/en-US-BTYdAWXp.js +0 -15
  929. package/dist/en-US-BbAzROHT.js +0 -36
  930. package/dist/en-US-CAm3meB1.js +0 -30
  931. package/dist/en-US-CQ3angjM.js +0 -22
  932. package/dist/en-US-DHq7VYFs.js +0 -23
  933. package/dist/en-US-DIdQJky-.js +0 -35
  934. package/dist/es-ES-BsQpwaPN.js +0 -58
  935. package/dist/es-ES-Bsoco8Fj.js +0 -33
  936. package/dist/es-ES-BtUSEzkE.js +0 -13
  937. package/dist/es-ES-CKMfS8Yy.js +0 -22
  938. package/dist/es-ES-Cj7q7fWO.js +0 -15
  939. package/dist/es-ES-DKCCgVF8.js +0 -35
  940. package/dist/es-ES-DOVPTeyf.js +0 -23
  941. package/dist/es-ES-Ds3-DtqZ.js +0 -30
  942. package/dist/es-ES-WWftn3JX.js +0 -35
  943. package/dist/external-link-BjladU3E.js +0 -14
  944. package/dist/fi-FI-BJ9RzrL3.js +0 -58
  945. package/dist/fi-FI-BNcnKrJ9.js +0 -15
  946. package/dist/fi-FI-ClnsYt3L.js +0 -33
  947. package/dist/fi-FI-Cvar63RH.js +0 -13
  948. package/dist/fi-FI-D522KHGk.js +0 -23
  949. package/dist/fi-FI-D9E_KaJi.js +0 -35
  950. package/dist/fi-FI-DPNeTsJS.js +0 -30
  951. package/dist/fi-FI-Hhku9Lmc.js +0 -35
  952. package/dist/fi-FI-REYOX46I.js +0 -22
  953. package/dist/fieldConfigurations-kDKvJ6je.js +0 -458
  954. package/dist/form-rules-DhbF2mY4.js +0 -13
  955. package/dist/formatCurrency-CMOSdJMB.js +0 -29
  956. package/dist/fr-FR-B5543Fe-.js +0 -13
  957. package/dist/fr-FR-BYuKsZIb.js +0 -35
  958. package/dist/fr-FR-Bn3D6mmY.js +0 -15
  959. package/dist/fr-FR-CJI0bIig.js +0 -33
  960. package/dist/fr-FR-CNR5-s9g.js +0 -58
  961. package/dist/fr-FR-ChmNQciP.js +0 -30
  962. package/dist/fr-FR-Cv0k-3Xc.js +0 -35
  963. package/dist/fr-FR-D9qaP6nx.js +0 -22
  964. package/dist/fr-FR-DInQKkTd.js +0 -23
  965. package/dist/getName-BsaU8Hqr.js +0 -41
  966. package/dist/gift-SdNY6AqI.js +0 -14
  967. package/dist/graph-DwYwlplw.js +0 -21
  968. package/dist/graph-up-DpbCSPbc.js +0 -20
  969. package/dist/hasDataChanged-CA7cMLCV.js +0 -19
  970. package/dist/headquarter-C6AsewcP.js +0 -21
  971. package/dist/hotel-JX0bjsSA.js +0 -22
  972. package/dist/iframeWidget-BPBJSJJt.js +0 -234
  973. package/dist/image-eUqBiRX_.js +0 -17
  974. package/dist/info-Wao3PEQK.js +0 -21
  975. package/dist/isEmpty-C9y5I8Tl.js +0 -23
  976. package/dist/it-IT-BV9K87FK.js +0 -58
  977. package/dist/it-IT-BeC2Y1F8.js +0 -33
  978. package/dist/it-IT-Biduphjt.js +0 -22
  979. package/dist/it-IT-C_fNHhjE.js +0 -35
  980. package/dist/it-IT-CjEYONJg.js +0 -23
  981. package/dist/it-IT-Dd6xGSe-.js +0 -13
  982. package/dist/it-IT-DvM-9LpM.js +0 -15
  983. package/dist/it-IT-Nl57jui-.js +0 -35
  984. package/dist/it-IT-eCrTB65E.js +0 -30
  985. package/dist/keys-BpNgnAsD.js +0 -23
  986. package/dist/localizeDateString-cCOzCBvl.js +0 -27
  987. package/dist/location-YXhcBMDy.js +0 -17
  988. package/dist/mail-Z_IE_hkw.js +0 -14
  989. package/dist/mapExistingFile-B1UL2lZR.js +0 -231
  990. package/dist/mapScriptLocalization-B4Be11Tx.js +0 -72
  991. package/dist/mapTransferInstrumentToPayoutAccount-BdPUh-FT.js +0 -30
  992. package/dist/minus-circle-filled-BGKeHaxJ.js +0 -17
  993. package/dist/nl-NL-BHkRnVrj.js +0 -35
  994. package/dist/nl-NL-BHqiO21q.js +0 -15
  995. package/dist/nl-NL-Cysslsh2.js +0 -33
  996. package/dist/nl-NL-D2QKudfh.js +0 -30
  997. package/dist/nl-NL-DLedC3mO.js +0 -35
  998. package/dist/nl-NL-DVENFpd5.js +0 -13
  999. package/dist/nl-NL-DywVQ9km.js +0 -58
  1000. package/dist/nl-NL-G1wVnmzT.js +0 -22
  1001. package/dist/nl-NL-Zcq0bXd-.js +0 -23
  1002. package/dist/no-NO-B8oxqfNI.js +0 -58
  1003. package/dist/no-NO-BTtAuqCb.js +0 -22
  1004. package/dist/no-NO-BxReX6oF.js +0 -23
  1005. package/dist/no-NO-CKT9kLAH.js +0 -15
  1006. package/dist/no-NO-C_snYWBc.js +0 -30
  1007. package/dist/no-NO-CpVal4cV.js +0 -35
  1008. package/dist/no-NO-Dn2UkdoI.js +0 -13
  1009. package/dist/no-NO-kaAdT9B8.js +0 -35
  1010. package/dist/no-NO-zSnPtrDi.js +0 -33
  1011. package/dist/options-horizontal-nJ9-ButA.js +0 -18
  1012. package/dist/partner-COG2_Erh.js +0 -21
  1013. package/dist/pay-by-link-plane-Pv7Babgn.js +0 -22
  1014. package/dist/payout-iEmHhgQ4.js +0 -20
  1015. package/dist/person-CdGfItMU.js +0 -17
  1016. package/dist/plus-CwLva7fq.js +0 -14
  1017. package/dist/plus-circle-filled-Cnf1oJTm.js +0 -17
  1018. package/dist/pt-PT-BkvMsoK4.js +0 -35
  1019. package/dist/pt-PT-BvK00TeI.js +0 -58
  1020. package/dist/pt-PT-C-hbNnsB.js +0 -30
  1021. package/dist/pt-PT-CjsyP_OK.js +0 -33
  1022. package/dist/pt-PT-D2elvnDU.js +0 -15
  1023. package/dist/pt-PT-Dk48OVtf.js +0 -22
  1024. package/dist/pt-PT-N0njcfLO.js +0 -23
  1025. package/dist/pt-PT-Xm-pm3mb.js +0 -35
  1026. package/dist/pt-PT-_o5xgnxS.js +0 -13
  1027. package/dist/reporting-DlRoibD7.js +0 -17
  1028. package/dist/resolveEnvironment-Il1uuuaq.js +0 -84
  1029. package/dist/revenue-accelerate-rtXA-8EE.js +0 -17
  1030. package/dist/rules-CkD4bHtQ.js +0 -311
  1031. package/dist/save-BofgDbDX.js +0 -14
  1032. package/dist/search-BjMkvQh0.js +0 -17
  1033. package/dist/show-uL6I-rMo.js +0 -17
  1034. package/dist/sl-SI-BB7iVcFI.js +0 -22
  1035. package/dist/sl-SI-BhVTSmhQ.js +0 -30
  1036. package/dist/sl-SI-Br0UEUPL.js +0 -33
  1037. package/dist/sl-SI-BylvpF-X.js +0 -15
  1038. package/dist/sl-SI-Cth2Qa5T.js +0 -35
  1039. package/dist/sl-SI-D_rqR0D7.js +0 -35
  1040. package/dist/sl-SI-MZoDApq9.js +0 -23
  1041. package/dist/sl-SI-NI2OJAvm.js +0 -58
  1042. package/dist/solution-payments-DTAuLSWF.js +0 -14
  1043. package/dist/store-CkhgQMl0.js +0 -14
  1044. package/dist/sv-SE-66rqYTxi.js +0 -30
  1045. package/dist/sv-SE-B3zoXMuH.js +0 -35
  1046. package/dist/sv-SE-BUfESAQK.js +0 -13
  1047. package/dist/sv-SE-BtXmvxx4.js +0 -33
  1048. package/dist/sv-SE-CAZpDX9G.js +0 -58
  1049. package/dist/sv-SE-DCFSf4Oj.js +0 -23
  1050. package/dist/sv-SE-DbI-1JqN.js +0 -22
  1051. package/dist/sv-SE-Dwz1yTrB.js +0 -15
  1052. package/dist/sv-SE-OPOHtqtP.js +0 -35
  1053. package/dist/terminal-1-ewywjFJI.js +0 -18
  1054. package/dist/toCapitalized-Bq7laD0b.js +0 -13
  1055. package/dist/translation-RPPT5Bll.js +0 -472
  1056. package/dist/types/api/pciTemplate/pciTemplate.types.d.ts +0 -9
  1057. package/dist/types/api/pciTemplate/usePciQuestionnaire.d.ts +0 -6
  1058. package/dist/types/api/pciTemplate/usePciQuestionnaireList.d.ts +0 -12
  1059. package/dist/types/api/pciTemplate/usePciStatus.d.ts +0 -6
  1060. package/dist/types/api/pciTemplate/usePciTemplate.d.ts +0 -14
  1061. package/dist/types/components/BusinessLines/tasks/BusinessLinesDropin.d.ts +0 -5
  1062. package/dist/types/components/Contract/hooks/useSalesChannelsSettings.d.ts +0 -3
  1063. package/dist/types/components/Shared/tasks/TaskList/TaskItemStatus.d.ts +0 -2
  1064. package/dist/types/components/ui/atoms/FormHeader/FormHeader.d.ts +0 -8
  1065. package/dist/types/components/ui/atoms/Remove/Remove.d.ts +0 -2
  1066. package/dist/types/components/ui/atoms/Remove/Remove.types.d.ts +0 -9
  1067. package/dist/types/components/ui/atoms/Status/Status.types.d.ts +0 -8
  1068. package/dist/types/components/ui/atoms/TaskStatusIndicator/TaskStatusIndicator.d.ts +0 -11
  1069. package/dist/types/components/ui/molecules/Card/CardGroup.d.ts +0 -3
  1070. package/dist/types/core/analytics.d.ts +0 -31
  1071. package/dist/types/hooks/useAnalytics.d.ts +0 -22
  1072. package/dist/types/utils/bankVerification/animation.d.ts +0 -2
  1073. package/dist/types/utils/trackNavigation.d.ts +0 -10
  1074. package/dist/types-BZdZSp82.js +0 -64
  1075. package/dist/types-CAznNNSI.js +0 -160
  1076. package/dist/types-CX7rD7X4.js +0 -74
  1077. package/dist/upload-XDhHhAHV.js +0 -17
  1078. package/dist/useAssociatedLegalEntity-DD2ldSE1.js +0 -33
  1079. package/dist/useDataset-B8uRm9G9.js +0 -120
  1080. package/dist/useForm-Bikkn7wR.js +0 -1694
  1081. package/dist/useFormContext-beqGS11A.js +0 -23
  1082. package/dist/useGlobalData-TJeJM5fq.js +0 -205
  1083. package/dist/useMultiForm-BvLkXMC6.js +0 -864
  1084. package/dist/useOnboardingStatus-CHvOF6oX.js +0 -27
  1085. package/dist/useScenarios-uUD1GHMT.js +0 -46
  1086. package/dist/useTermsOfServiceStatus-_0VSQK9K.js +0 -42
  1087. package/dist/useToastContext-kLS15CCB.js +0 -51
  1088. package/dist/useUnincorporatedPartnershipMembers-pxytkrwW.js +0 -99
  1089. package/dist/utils-B7kcMyYW.js +0 -159
  1090. package/dist/utils-BI6oHlaw.js +0 -277
  1091. package/dist/utils-DvAaNu7U.js +0 -29
  1092. package/dist/validate-DGgXfXyg.js +0 -100
  1093. package/dist/validate-DxfuzxT4.js +0 -382
  1094. package/dist/validate-Dz7xvgxq.js +0 -605
  1095. package/dist/validationError-CpKFQv28.js +0 -86
  1096. package/dist/warning-circle-fill-DADaWT65.js +0 -17
  1097. package/dist/warning-filled-BfAQN-BF.js +0 -14
  1098. package/dist/webinar-BJWDRK2H.js +0 -22
  1099. /package/dist/types/api/{pciTemplate → pci}/useSignPci.d.ts +0 -0
  1100. /package/dist/types/components/BusinessLines/tasks/{BusinessLinesGettingStarted → BusinessLines}/BusinessLinesGettingStarted.d.ts +0 -0
@@ -1,1870 +0,0 @@
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] = "92e56c85-0d43-46f0-a47a-ec79ff6a3123", e._sentryDebugIdIdentifier = "sentry-dbid-92e56c85-0d43-46f0-a47a-ec79ff6a3123");
6
- } catch (e) {
7
- }
8
- }
9
- ;
10
- import { a as addResourceBundles, _ as __variableDynamicImportRuntimeHelper } from "./translation-RPPT5Bll.js";
11
- import { jsxs, jsx } from "preact/jsx-runtime";
12
- import { a as useTranslation, X as useExperimentsContext, x as Typography, m as useSettingsContext, u as useI18nContext, M as TaskTypes, y as LegalEntityTypes, b as useApiContext, U as useAnalyticsContext, aC as useQueryClient, bD as businessDetailsDocumentMapping, bu as businessDetailsApiKeyMapping, c as useLegalEntity, R as ROOT_LE, L as Loader, z as isPartOfTrustFromLegalEntity, J as EntityTypes, g as getLegalEntityCountry } from "./StoreProvider-D4cRWOo4.js";
13
- import { r as resolveFieldMetadata, a as useAccountHolder, b as useCapabilityProblems, g as getProblemsForEntity } from "./fieldConfigurations-kDKvJ6je.js";
14
- import { v as verifiedBusiness, u as useDebouncedState, l as legalFormFieldMetadata, s as stockTickerSymbolFieldMetadata, a as stockISINFieldMetadata, b as stockExchangeMICFieldMetadata, d as dateOfIncorporationFieldMetadata, e as eInvoicingCodeFieldMetadata, V as VerifiedBusinessCard, L as LEGAL_FORM_FIELDS, E as EInvoicingCodeField, c as EINVOICING_CODE_FIELD, D as DATE_OF_INCORPORATION_FIELD, f as DateOfIncorporationField, S as STOCK_EXCHANGE_MIC_FIELD, g as StockExchangeMICField, h as STOCK_ISIN_FIELD, i as StockISINField, j as STOCK_TICKER_SYMBOL_FIELD, k as StockTickerSymbolField, A as ADDITIONAL_INFORMATION_FORM_ID, m as localizedLegalCompanyNameFieldConfig, n as defaultFieldMetadata$1, o as defaultFieldConfig$1, p as useLegalCompanyNameField, C as COUNTRY_OF_GOVERNING_LAW_FIELD, q as CountryOfGoverningLawField, r as isBankAccountRequestedForOrganization, t as companyTypeOptions, w as useCompanyTypeExamples, x as companyTypeMetadata, F as FinancialInformation, P as ProofOfOwnershipDocument, y as ProofOfSignatoryDocument, z as ProofOfDirectorDocument, R as RegistrationDocument, T as TaxDocument, B as BusinessSelectionMultiform, G as CountryOfGoverningLawFieldValidation, H as CountryFieldValidation, I as getForms, J as mapApiDocumentToBusinessDetailsDocuments, K as mapLegalEntityToBusinessDetailsSchema, M as financialInfoValidationWithEmployeesRules, N as CompanyStructureValidation, O as tinMatched, Q as businessMismatchModalOpen, U as formatDataForSummary, W as submit, X as useCompanySearch, Y as useVerifyTin, Z as businessDetailsFieldsPerScenario, _ as BusinessDetailsDropin } from "./BusinessDetailsDropin-Be1nkzWx.js";
15
- import { useEffect, useMemo, useCallback, useState } from "preact/hooks";
16
- import { u as useCreateLegalEntity, a as useUpdateLegalEntity } from "./RadioGroup-htJh3Lz5.js";
17
- import { F as FormContextProvider, a as FormFlow } from "./FormFlow-C95V54gu.js";
18
- import { u as useToastContext } from "./useToastContext-kLS15CCB.js";
19
- import { g as getAssociatedLeAnalyticsPayload } from "./analytics-Cg99WKif.js";
20
- import { d as documentApiUtils, e as composePerScenarioFormConfigurations, b as getPropsFromConfigurations } from "./validate-Dz7xvgxq.js";
21
- import { a as addValidityToForms, t as trackNavigation, u as useFormComposer } from "./dropinUtils-CXnvPFZN.js";
22
- import { u as useMultiForm } from "./useMultiForm-BvLkXMC6.js";
23
- import { b as useScenarioConfiguration } from "./mapExistingFile-B1UL2lZR.js";
24
- import { C as Confirm } from "./Confirm-DyWhqxmU.js";
25
- import { t as taxInformationDefaultFieldMetadata, b as taxInformationDefaultFieldConfig, c as TAX_INFORMATION_FIELD, T as TaxInformationField, M as MemoizedDocumentUpload, C as COUNTRIES_USING_COMPANY_SEARCH, r as rules, g as getFieldsWithExistingData } from "./TaxInformationField-BfyN5nzh.js";
26
- import { u as useFormContext } from "./useFormContext-beqGS11A.js";
27
- import { C as CompanyTypesValues } from "./bafinUtils-Sy6B6Lec.js";
28
- import { v as vatAbsenceReasonMetadata, d as defaultFieldMetadata, a as defaultFieldConfig, r as registrationNumberDefaultFieldMetadata, b as registrationNumberDefaultFieldConfig, c as doingBusinessAsFieldMetadata, e as doingBusinessAsAbsentFieldMetadata, D as DBA_NAME_FIELD, f as DBANameField, B as BUSINESS_REGISTRATION_NUMBER_FIELD, g as BusinessRegistrationNumberField, V as VAT_NUMBER_FIELD, h as VatNumberField, M as MemoizedConstitutionalDocument, i as exemptFromRegistrationNumberDefaultFieldMetadata } from "./RegistrationAddress-DiVxWv-x.js";
29
- import { c as useAddressCleanse, f as formatAddressForCleanse, m as mapAddressData, o as operationalAddressIsSameIds, A as Address, g as getNestedTrustedFields, S as STATE_FIELD, d as StateField } from "./Address-YjoUtTTT.js";
30
- import { F as Field, C as Checkbox } from "./useForm-Bikkn7wR.js";
31
- import { m as mergeFieldMetadataIntoProps, c as createFormUtils, F as FormHeader, E as ErrorPanel, C as CountryField, a as COUNTRY_FIELD, d as summaryStep } from "./CountryField-50Iboayh.js";
32
- import { g as getAddressSchemaForCountry, C as COUNTRIES_WITH_STATES_DATASET, a as getAddressSchemaLabelsByCountry } from "./utils-B7kcMyYW.js";
33
- import { a as datasetUtilities } from "./useDataset-B8uRm9G9.js";
34
- import { L as LegalFormField } from "./Currency-D-0ToVpS.js";
35
- import { L as Link } from "./Link-Bn9pt52z.js";
36
- import { S as SettingNames, I as InputText } from "./InputText-CnEQJihB.js";
37
- import { u as useAllowedCountries } from "./mapScriptLocalization-B4Be11Tx.js";
38
- import { g as defaultFieldMetadataV4, h as defaultFieldMetadata$2, j as defaultFieldConfigV4, k as defaultFieldConfig$2, L as LEGAL_COMPANY_NAME_FIELD } from "./OnboardingDropinComponent-BgFPF-FG.js";
39
- import { E as EntityTypeRadioGroupCard } from "./utils-BI6oHlaw.js";
40
- function AdditionalInformationMultiform({
41
- id,
42
- country,
43
- companyType,
44
- shouldValidate,
45
- heading = "additionalInformationFormHeading",
46
- description,
47
- validationErrors = {},
48
- verificationErrors = {}
49
- }) {
50
- const { t, i18n } = useTranslation("business");
51
- const { t: commonT } = useTranslation("common");
52
- const { form } = useFormContext();
53
- const { isExperimentEnabled } = useExperimentsContext();
54
- const verifiedBusiness$1 = verifiedBusiness.value;
55
- const showVerified = !!verifiedBusiness$1;
56
- const showStockData = companyType === CompanyTypesValues.PUBLIC_COMPANY;
57
- const addressSchema = getAddressSchemaForCountry(country).filter(
58
- (field) => !COUNTRIES_WITH_STATES_DATASET.includes(country) ? field !== "stateOrProvince" : true
59
- );
60
- const currentCountryTaxInformation = form.data?.additionalInformation?.taxInformation?.find(
61
- (taxId) => taxId.country === country
62
- );
63
- const [addressToCheck, setAddressToCheck] = useDebouncedState(500);
64
- const { data: cleansedRegistrationAddress } = useAddressCleanse(
65
- {
66
- text: addressToCheck,
67
- country
68
- },
69
- { enabled: Boolean(addressToCheck) }
70
- );
71
- const mustProvideOperationalAddress = cleansedRegistrationAddress?.poBox ?? false;
72
- useEffect(
73
- () => setAddressToCheck(
74
- formatAddressForCleanse(form.data?.additionalInformation?.registrationAddress ?? {})
75
- ),
76
- [form.data?.additionalInformation?.registrationAddress, setAddressToCheck]
77
- );
78
- const verifiedAddress = useMemo(() => {
79
- if (!verifiedBusiness$1) return void 0;
80
- return verifiedBusiness$1.isPrincipalAddress || verifiedBusiness$1.state && form.data?.basicInformation?.stateOrProvince !== verifiedBusiness$1.state ? { operationalAddress: { ...mapAddressData(verifiedBusiness$1), country } } : {
81
- registrationAddress: {
82
- ...mapAddressData(verifiedBusiness$1),
83
- country,
84
- stateOrProvince: form.data?.basicInformation?.stateOrProvince
85
- }
86
- };
87
- }, [verifiedBusiness$1, form.data?.basicInformation?.stateOrProvince, country]);
88
- const handleChangeFor = useCallback(
89
- (fieldName, mode) => form.handleChangeFor(fieldName, "additionalInformation", mode),
90
- [form]
91
- );
92
- const handleRegistrationAddressChange = (state) => {
93
- handleChangeFor("registrationAddress")(state.data);
94
- form.setValid("registrationAddress", Boolean(state.isValid), "additionalInformation");
95
- };
96
- const handleOperationalAddressChange = (state) => {
97
- handleChangeFor("operationalAddress")(state.data);
98
- form.setValid("operationalAddress", Boolean(state.isValid), "additionalInformation");
99
- };
100
- const handleOperationalAddressIsSameChange = useCallback(
101
- (isChecked) => {
102
- if (isChecked) {
103
- handleChangeFor("operationalAddressIsSame")(
104
- operationalAddressIsSameIds.OPERATIONAL_ADDRESS_IS_SAME
105
- );
106
- form.setValid("operationalAddress", true, "additionalInformation");
107
- } else {
108
- handleChangeFor("operationalAddressIsSame")(
109
- operationalAddressIsSameIds.OPERATIONAL_ADDRESS_IS_NOT_SAME
110
- );
111
- }
112
- },
113
- [form, handleChangeFor]
114
- );
115
- useEffect(() => {
116
- if (mustProvideOperationalAddress && form.data?.additionalInformation?.operationalAddressIsSame !== operationalAddressIsSameIds.OPERATIONAL_ADDRESS_IS_NOT_SAME) {
117
- handleOperationalAddressIsSameChange(false);
118
- }
119
- }, [
120
- handleOperationalAddressIsSameChange,
121
- mustProvideOperationalAddress,
122
- form.data?.additionalInformation?.operationalAddressIsSame
123
- ]);
124
- const formUtils = useMemo(() => {
125
- const initialProps = {
126
- data: form.data?.additionalInformation ?? {},
127
- fieldValidationErrors: validationErrors,
128
- formVerificationErrors: verificationErrors,
129
- allFields: form.allFields?.additionalInformation ?? [],
130
- requiredFields: form.requiredFields?.additionalInformation ?? [],
131
- optionalFields: form.optionalFields?.additionalInformation ?? [],
132
- trustedFields: form.trustedFields?.additionalInformation ?? [],
133
- obscuredFields: form.obscuredFields?.additionalInformation ?? [],
134
- errors: form.errors?.additionalInformation ?? {},
135
- valid: form.valid?.additionalInformation ?? {},
136
- handleFieldChange: handleChangeFor
137
- };
138
- const formUtilProps = initialProps.allFields?.reduce((acc, field) => {
139
- switch (field) {
140
- case "hasDoingBusinessAs":
141
- return mergeFieldMetadataIntoProps(
142
- "hasDoingBusinessAs",
143
- doingBusinessAsAbsentFieldMetadata,
144
- acc
145
- );
146
- case "doingBusinessAs":
147
- return mergeFieldMetadataIntoProps("doingBusinessAs", doingBusinessAsFieldMetadata, acc);
148
- case "registrationNumber":
149
- return mergeFieldMetadataIntoProps(
150
- field,
151
- resolveFieldMetadata(
152
- registrationNumberDefaultFieldConfig[country],
153
- {
154
- companyType,
155
- registrationNumberType: form.data?.additionalInformation?.registrationNumberType,
156
- isExperimentEnabled
157
- },
158
- registrationNumberDefaultFieldMetadata
159
- ),
160
- acc
161
- );
162
- case "taxInformation":
163
- return mergeFieldMetadataIntoProps(
164
- field,
165
- resolveFieldMetadata(
166
- taxInformationDefaultFieldConfig[country],
167
- {
168
- taxIdNumberType: currentCountryTaxInformation?.type,
169
- companyType
170
- },
171
- taxInformationDefaultFieldMetadata
172
- ),
173
- acc
174
- );
175
- case "vatNumber":
176
- return mergeFieldMetadataIntoProps(
177
- field,
178
- resolveFieldMetadata(
179
- defaultFieldConfig[country],
180
- { vatNumberType: form.data?.additionalInformation?.vatNumberType },
181
- defaultFieldMetadata
182
- ),
183
- acc
184
- );
185
- case "vatAbsenceReason":
186
- return mergeFieldMetadataIntoProps("vatAbsenceReason", vatAbsenceReasonMetadata, acc);
187
- case "eInvoicingCode":
188
- return mergeFieldMetadataIntoProps("eInvoicingCode", eInvoicingCodeFieldMetadata, acc);
189
- case "dateOfIncorporation":
190
- return mergeFieldMetadataIntoProps(
191
- "dateOfIncorporation",
192
- dateOfIncorporationFieldMetadata,
193
- acc
194
- );
195
- case "stockExchangeMIC":
196
- return mergeFieldMetadataIntoProps(
197
- "stockExchangeMIC",
198
- stockExchangeMICFieldMetadata,
199
- acc
200
- );
201
- case "stockISIN":
202
- return mergeFieldMetadataIntoProps("stockISIN", stockISINFieldMetadata, acc);
203
- case "stockTickerSymbol":
204
- return mergeFieldMetadataIntoProps(
205
- "stockTickerSymbol",
206
- stockTickerSymbolFieldMetadata,
207
- acc
208
- );
209
- case "legalForm":
210
- return mergeFieldMetadataIntoProps("legalForm", legalFormFieldMetadata, acc);
211
- default:
212
- return acc;
213
- }
214
- }, initialProps);
215
- return createFormUtils(formUtilProps ?? initialProps, commonT);
216
- }, [
217
- companyType,
218
- country,
219
- currentCountryTaxInformation?.type,
220
- form.allFields?.additionalInformation,
221
- form.data?.additionalInformation,
222
- form.errors?.additionalInformation,
223
- form.obscuredFields?.additionalInformation,
224
- form.optionalFields?.additionalInformation,
225
- form.requiredFields?.additionalInformation,
226
- form.trustedFields?.additionalInformation,
227
- form.valid?.additionalInformation,
228
- handleChangeFor,
229
- commonT,
230
- isExperimentEnabled,
231
- validationErrors,
232
- verificationErrors
233
- ]);
234
- const showField = (fieldKeys) => fieldKeys.some((field) => formUtils.isRequiredField(field) || formUtils.isOptionalField(field));
235
- const datasetUtils = datasetUtilities(i18n.language);
236
- const registrationAddressDescription = useMemo(() => {
237
- if (country) {
238
- return ["US", "NL", "CZ"].includes(country) ? t(($) => $["youBusinessOfficalAddressInTheCounty"], {
239
- country: datasetUtils.getCountryName(country)
240
- }) : t(($) => $["youBusinessOfficalAddressInCounty"], {
241
- country: datasetUtils.getCountryName(country)
242
- });
243
- }
244
- return t(($) => $["youBusinessOfficalAddress"]);
245
- }, [country, datasetUtils, t]);
246
- return /* @__PURE__ */ jsxs("form", { id, className: "adyen-kyc-additional-information", children: [
247
- /* @__PURE__ */ jsx(
248
- FormHeader,
249
- {
250
- heading: commonT(($) => $[heading]),
251
- description: description ? commonT(($) => $[description]) : void 0
252
- }
253
- ),
254
- /* @__PURE__ */ jsx(
255
- ErrorPanel,
256
- {
257
- id: "ariaErrorField",
258
- verificationErrors,
259
- validationErrors,
260
- formUtils
261
- }
262
- ),
263
- /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-additional-information__content", children: [
264
- showVerified && /* @__PURE__ */ jsxs("section", { children: [
265
- /* @__PURE__ */ jsx("div", { className: "adyen-kyc-additional-information__section-heading", children: /* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", children: t(($) => $["verifiedInformation"]) }) }),
266
- /* @__PURE__ */ jsx(
267
- VerifiedBusinessCard,
268
- {
269
- verifiedBusiness: verifiedBusiness$1,
270
- verifiedAddress: verifiedAddress?.registrationAddress ?? verifiedAddress?.operationalAddress
271
- }
272
- )
273
- ] }),
274
- /* @__PURE__ */ jsxs("section", { children: [
275
- showVerified && /* @__PURE__ */ jsx("div", { className: "adyen-kyc-additional-information__section-heading", children: /* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", children: t(($) => $["otherBusinessInformation"]) }) }),
276
- /* @__PURE__ */ jsxs("fieldset", { children: [
277
- showField(LEGAL_FORM_FIELDS) && /* @__PURE__ */ jsx("div", { className: "adyen-kyc-field-wrapper", children: /* @__PURE__ */ jsx(
278
- LegalFormField,
279
- {
280
- name: "legalForm",
281
- countryCode: country,
282
- data: {
283
- legalForm: formUtils.getFieldData(
284
- form.data?.additionalInformation ?? {},
285
- LEGAL_FORM_FIELDS
286
- )?.legalForm
287
- },
288
- valid: formUtils.getFieldValid(
289
- form.valid?.additionalInformation ?? {},
290
- LEGAL_FORM_FIELDS
291
- ),
292
- errorMessage: form.errors.additionalInformation?.legalForm?.errorMessage,
293
- handleChangeFor,
294
- readonly: false,
295
- label: formUtils.getLabel("legalForm", "businessStructure")
296
- }
297
- ) }),
298
- showField(DBA_NAME_FIELD) && /* @__PURE__ */ jsx("div", { className: "adyen-kyc-field-wrapper", children: /* @__PURE__ */ jsx(
299
- DBANameField,
300
- {
301
- data: formUtils.getFieldData(
302
- form.data?.additionalInformation ?? {},
303
- DBA_NAME_FIELD
304
- ),
305
- valid: formUtils.getFieldValid(
306
- form.valid?.additionalInformation ?? {},
307
- DBA_NAME_FIELD
308
- ),
309
- errors: formUtils.getFieldErrors(
310
- form.errors?.additionalInformation ?? {},
311
- validationErrors,
312
- DBA_NAME_FIELD
313
- ),
314
- labels: formUtils.getFieldLabels(DBA_NAME_FIELD, {
315
- hasDoingBusinessAs: "hasDba"
316
- }),
317
- readonly: formUtils.isReadOnly("doingBusinessAs"),
318
- handleChangeFor
319
- }
320
- ) }),
321
- showField(BUSINESS_REGISTRATION_NUMBER_FIELD) && /* @__PURE__ */ jsx("div", { className: "adyen-kyc-field-wrapper", children: /* @__PURE__ */ jsx(
322
- BusinessRegistrationNumberField,
323
- {
324
- data: formUtils.getFieldData(
325
- form.data?.additionalInformation ?? {},
326
- BUSINESS_REGISTRATION_NUMBER_FIELD
327
- ),
328
- valid: formUtils.getFieldValid(
329
- form.valid?.additionalInformation ?? {},
330
- BUSINESS_REGISTRATION_NUMBER_FIELD
331
- ),
332
- errors: formUtils.getFieldErrors(
333
- form.errors?.additionalInformation ?? {},
334
- validationErrors,
335
- BUSINESS_REGISTRATION_NUMBER_FIELD
336
- ),
337
- labels: formUtils.getFieldLabels(BUSINESS_REGISTRATION_NUMBER_FIELD, {
338
- exemptedFromRegistrationNumber: "iDontHaveARegistrationNumber"
339
- }),
340
- mask: formUtils.getMask("registrationNumber"),
341
- guidanceText: formUtils.getFieldGuidanceText(BUSINESS_REGISTRATION_NUMBER_FIELD),
342
- placeholders: formUtils.getFieldPlaceholders(BUSINESS_REGISTRATION_NUMBER_FIELD),
343
- helperText: formUtils.getFieldHelperText(BUSINESS_REGISTRATION_NUMBER_FIELD),
344
- readonly: formUtils.isReadOnly("registrationNumber"),
345
- optional: formUtils.isOptionalField("registrationNumber"),
346
- shouldValidate,
347
- handleChangeFor,
348
- country,
349
- canExempt: showField(["exemptedFromRegistrationNumber"]),
350
- companyType
351
- }
352
- ) }),
353
- showField(TAX_INFORMATION_FIELD) && /* @__PURE__ */ jsx("div", { className: "adyen-kyc-field-wrapper", children: /* @__PURE__ */ jsx(
354
- TaxInformationField,
355
- {
356
- data: formUtils.getFieldData(
357
- form.data?.additionalInformation ?? {},
358
- TAX_INFORMATION_FIELD
359
- ),
360
- valid: formUtils.getFieldValid(
361
- form.valid?.additionalInformation ?? {},
362
- TAX_INFORMATION_FIELD
363
- ),
364
- errors: formUtils.getFieldErrors(
365
- form.errors?.additionalInformation ?? {},
366
- validationErrors,
367
- TAX_INFORMATION_FIELD
368
- ),
369
- labels: formUtils.getFieldLabels(TAX_INFORMATION_FIELD, {
370
- exemptedFromTax: "iDontHaveATaxId"
371
- }),
372
- mask: formUtils.getMask("taxInformation"),
373
- guidanceText: formUtils.getFieldGuidanceText(TAX_INFORMATION_FIELD),
374
- readonly: formUtils.isReadOnly("taxInformation"),
375
- shouldValidate,
376
- handleChangeFor,
377
- canExempt: showField(["exemptedFromTax"]),
378
- country,
379
- entityType: companyType,
380
- defaultData: form.defaultData?.additionalInformation?.taxInformation,
381
- registrationNumber: form.data?.additionalInformation?.registrationNumber
382
- }
383
- ) }),
384
- showField(VAT_NUMBER_FIELD) && /* @__PURE__ */ jsx("div", { className: "adyen-kyc-field-wrapper", children: /* @__PURE__ */ jsx(
385
- VatNumberField,
386
- {
387
- data: formUtils.getFieldData(
388
- form.data?.additionalInformation ?? {},
389
- VAT_NUMBER_FIELD
390
- ),
391
- valid: formUtils.getFieldValid(
392
- form.valid?.additionalInformation ?? {},
393
- VAT_NUMBER_FIELD
394
- ),
395
- errors: formUtils.getFieldErrors(
396
- form.errors?.additionalInformation ?? {},
397
- validationErrors,
398
- VAT_NUMBER_FIELD
399
- ),
400
- labels: formUtils.getFieldLabels(VAT_NUMBER_FIELD, {
401
- exemptedFromVat: "iDontHaveAVatNumber"
402
- }),
403
- mask: formUtils.getMask("vatNumber"),
404
- guidanceText: formUtils.getFieldGuidanceText(VAT_NUMBER_FIELD),
405
- placeholders: formUtils.getFieldPlaceholders(VAT_NUMBER_FIELD),
406
- readonly: formUtils.isReadOnly("vatNumber"),
407
- handleChangeFor,
408
- country,
409
- canExempt: showField(["exemptedFromVat"]),
410
- shouldValidate
411
- }
412
- ) }),
413
- formUtils.isRequiredField("eInvoicingCode", false) && /* @__PURE__ */ jsx("div", { className: "adyen-kyc-field-wrapper", children: /* @__PURE__ */ jsx(
414
- EInvoicingCodeField,
415
- {
416
- data: formUtils.getFieldData(
417
- form.data?.additionalInformation ?? {},
418
- EINVOICING_CODE_FIELD
419
- ),
420
- valid: formUtils.getFieldValid(
421
- form.valid?.additionalInformation ?? {},
422
- EINVOICING_CODE_FIELD
423
- ),
424
- errors: formUtils.getFieldErrors(
425
- form.errors?.additionalInformation ?? {},
426
- validationErrors,
427
- EINVOICING_CODE_FIELD
428
- ),
429
- labels: formUtils.getFieldLabels(EINVOICING_CODE_FIELD),
430
- placeholders: formUtils.getFieldPlaceholders(EINVOICING_CODE_FIELD),
431
- mask: formUtils.getMask("eInvoicingCode"),
432
- guidanceText: formUtils.getFieldGuidanceText(EINVOICING_CODE_FIELD),
433
- readonly: formUtils.isReadOnly("eInvoicingCode"),
434
- handleChangeFor
435
- }
436
- ) }),
437
- showField(DATE_OF_INCORPORATION_FIELD) && /* @__PURE__ */ jsx("div", { className: "adyen-kyc-field-wrapper", children: /* @__PURE__ */ jsx(
438
- DateOfIncorporationField,
439
- {
440
- data: formUtils.getFieldData(
441
- form.data?.additionalInformation ?? {},
442
- DATE_OF_INCORPORATION_FIELD
443
- ),
444
- valid: formUtils.getFieldValid(
445
- form.valid?.additionalInformation ?? {},
446
- DATE_OF_INCORPORATION_FIELD
447
- ),
448
- errors: formUtils.getFieldErrors(
449
- form.errors?.additionalInformation ?? {},
450
- validationErrors,
451
- DATE_OF_INCORPORATION_FIELD
452
- ),
453
- labels: formUtils.getFieldLabels(DATE_OF_INCORPORATION_FIELD),
454
- placeholders: formUtils.getFieldPlaceholders(DATE_OF_INCORPORATION_FIELD, {
455
- dateOfIncorporation: "datePlaceholder"
456
- }),
457
- readonly: formUtils.isReadOnly("dateOfIncorporation"),
458
- handleChangeFor
459
- }
460
- ) })
461
- ] })
462
- ] }),
463
- showStockData && /* @__PURE__ */ jsxs("section", { children: [
464
- /* @__PURE__ */ jsx("div", { className: "adyen-kyc-additional-information__section-heading", children: /* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", children: t(($) => $["stockExchangeInformation"]) }) }),
465
- /* @__PURE__ */ jsxs("fieldset", { children: [
466
- showField(STOCK_EXCHANGE_MIC_FIELD) && /* @__PURE__ */ jsx("div", { className: "adyen-kyc-field-wrapper", children: /* @__PURE__ */ jsx(
467
- StockExchangeMICField,
468
- {
469
- data: formUtils.getFieldData(
470
- form.data?.additionalInformation ?? {},
471
- STOCK_EXCHANGE_MIC_FIELD
472
- ),
473
- valid: formUtils.getFieldValid(
474
- form.valid?.additionalInformation ?? {},
475
- STOCK_EXCHANGE_MIC_FIELD
476
- ),
477
- errors: formUtils.getFieldErrors(
478
- form.errors?.additionalInformation ?? {},
479
- validationErrors,
480
- STOCK_EXCHANGE_MIC_FIELD
481
- ),
482
- labels: formUtils.getFieldLabels(STOCK_EXCHANGE_MIC_FIELD),
483
- placeholders: formUtils.getFieldPlaceholders(STOCK_EXCHANGE_MIC_FIELD),
484
- mask: formUtils.getMask("stockExchangeMIC"),
485
- guidanceText: formUtils.getFieldGuidanceText(STOCK_EXCHANGE_MIC_FIELD),
486
- readonly: formUtils.isReadOnly("stockExchangeMIC"),
487
- shouldValidate,
488
- handleChangeFor
489
- }
490
- ) }),
491
- showField(STOCK_ISIN_FIELD) && /* @__PURE__ */ jsx("div", { className: "adyen-kyc-field-wrapper", children: /* @__PURE__ */ jsx(
492
- StockISINField,
493
- {
494
- data: formUtils.getFieldData(
495
- form.data?.additionalInformation ?? {},
496
- STOCK_ISIN_FIELD
497
- ),
498
- valid: formUtils.getFieldValid(
499
- form.valid?.additionalInformation ?? {},
500
- STOCK_ISIN_FIELD
501
- ),
502
- errors: formUtils.getFieldErrors(
503
- form.errors?.additionalInformation ?? {},
504
- validationErrors,
505
- STOCK_ISIN_FIELD
506
- ),
507
- labels: formUtils.getFieldLabels(STOCK_ISIN_FIELD),
508
- placeholders: formUtils.getFieldPlaceholders(STOCK_ISIN_FIELD),
509
- mask: formUtils.getMask("stockISIN"),
510
- guidanceText: formUtils.getFieldGuidanceText(STOCK_ISIN_FIELD),
511
- readonly: formUtils.isReadOnly("stockISIN"),
512
- shouldValidate,
513
- handleChangeFor
514
- }
515
- ) }),
516
- showField(STOCK_TICKER_SYMBOL_FIELD) && /* @__PURE__ */ jsx("div", { className: "adyen-kyc-field-wrapper", children: /* @__PURE__ */ jsx(
517
- StockTickerSymbolField,
518
- {
519
- data: formUtils.getFieldData(
520
- form.data?.additionalInformation ?? {},
521
- STOCK_TICKER_SYMBOL_FIELD
522
- ),
523
- valid: formUtils.getFieldValid(
524
- form.valid?.additionalInformation ?? {},
525
- STOCK_TICKER_SYMBOL_FIELD
526
- ),
527
- errors: formUtils.getFieldErrors(
528
- form.errors?.additionalInformation ?? {},
529
- validationErrors,
530
- STOCK_TICKER_SYMBOL_FIELD
531
- ),
532
- labels: formUtils.getFieldLabels(STOCK_TICKER_SYMBOL_FIELD),
533
- placeholders: formUtils.getFieldPlaceholders(STOCK_TICKER_SYMBOL_FIELD),
534
- mask: formUtils.getMask("stockTickerSymbol"),
535
- guidanceText: formUtils.getFieldGuidanceText(STOCK_TICKER_SYMBOL_FIELD),
536
- readonly: formUtils.isReadOnly("stockTickerSymbol"),
537
- shouldValidate,
538
- handleChangeFor
539
- }
540
- ) })
541
- ] })
542
- ] }),
543
- /* @__PURE__ */ jsxs("section", { "data-testid": "registeredBusinessAddress", children: [
544
- /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-additional-information__section-heading", children: [
545
- /* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", children: t(($) => $["registeredBusinessAddress"]) }),
546
- /* @__PURE__ */ jsx(Typography, { el: "p", variant: "body", children: registrationAddressDescription })
547
- ] }),
548
- /* @__PURE__ */ jsx(
549
- Address,
550
- {
551
- id: ADDITIONAL_INFORMATION_FORM_ID,
552
- addressType: "registrationAddress",
553
- data: {
554
- ...form.data?.additionalInformation?.registrationAddress,
555
- country
556
- },
557
- labels: getAddressSchemaLabelsByCountry(country),
558
- requiredFields: addressSchema,
559
- shouldValidate,
560
- hideCountry: true,
561
- optionalFields: ["otherAddressInformation"],
562
- readOnlyFields: verifiedBusiness$1?.state && verifiedBusiness$1?.state === form.data?.basicInformation?.stateOrProvince ? ["stateOrProvince"] : [],
563
- trustedFields: getNestedTrustedFields(
564
- "registrationAddress",
565
- form.data.additionalInformation,
566
- form.trustedFields?.additionalInformation
567
- ),
568
- onChange: handleRegistrationAddressChange,
569
- verifiedBusiness: verifiedBusiness$1,
570
- verifiedAddress: verifiedAddress?.registrationAddress,
571
- condensed: true
572
- }
573
- )
574
- ] }),
575
- /* @__PURE__ */ jsxs("section", { "data-testid": "principalPlaceOfBusiness", children: [
576
- /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-additional-information__section-heading", children: [
577
- /* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", children: t(($) => $["principalPlaceOfBusiness"]) }),
578
- /* @__PURE__ */ jsx(Typography, { el: "p", variant: "body", children: t(($) => $["thePhysicalLocationWhereABusiness"]) })
579
- ] }),
580
- !mustProvideOperationalAddress && /* @__PURE__ */ jsx(
581
- Field,
582
- {
583
- el: "fieldset",
584
- name: "operationalAddressIsSame",
585
- errorMessage: form.errors?.additionalInformation?.operationalAddressIsSame?.errorMessage,
586
- isValid: form.valid?.additionalInformation?.operationalAddressIsSame,
587
- children: (childProps) => /* @__PURE__ */ jsx(
588
- Checkbox,
589
- {
590
- ...childProps,
591
- "aria-required": formUtils.isRequiredField("operationalAddressIsSame"),
592
- "aria-invalid": !form.valid?.additionalInformation?.operationalAddressIsSame,
593
- name: "operationalAddressIsSame",
594
- label: formUtils.getLabel("sameAsRegisteredAddress"),
595
- checked: form.data?.additionalInformation?.operationalAddressIsSame ? form.data?.additionalInformation?.operationalAddressIsSame === operationalAddressIsSameIds.OPERATIONAL_ADDRESS_IS_SAME : true,
596
- onChange: handleOperationalAddressIsSameChange
597
- }
598
- )
599
- }
600
- ),
601
- form.data?.additionalInformation?.operationalAddressIsSame === operationalAddressIsSameIds.OPERATIONAL_ADDRESS_IS_NOT_SAME && /* @__PURE__ */ jsx(
602
- Address,
603
- {
604
- id: ADDITIONAL_INFORMATION_FORM_ID,
605
- addressType: "operationalAddress",
606
- data: {
607
- ...form.defaultData?.additionalInformation?.operationalAddress,
608
- country
609
- },
610
- labels: getAddressSchemaLabelsByCountry(country),
611
- requiredFields: addressSchema,
612
- shouldValidate,
613
- hideCountry: true,
614
- optionalFields: ["otherAddressInformation"],
615
- trustedFields: getNestedTrustedFields(
616
- "operationalAddress",
617
- form.data?.additionalInformation,
618
- form.trustedFields?.additionalInformation
619
- ),
620
- onChange: handleOperationalAddressChange,
621
- verifiedBusiness: verifiedBusiness$1,
622
- verifiedAddress: verifiedAddress?.operationalAddress,
623
- condensed: true
624
- }
625
- )
626
- ] })
627
- ] })
628
- ] });
629
- }
630
- [
631
- ...COUNTRY_FIELD,
632
- ...LEGAL_COMPANY_NAME_FIELD,
633
- "jaHaniLegalCompanyName",
634
- "jaKanaLegalCompanyName",
635
- ...TAX_INFORMATION_FIELD,
636
- ...STATE_FIELD,
637
- ...BUSINESS_REGISTRATION_NUMBER_FIELD,
638
- ...COUNTRY_OF_GOVERNING_LAW_FIELD
639
- ];
640
- const FormDescription = ({ description }) => {
641
- const { t } = useTranslation("common");
642
- return /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-form-header__description", children: [
643
- t(($) => $[description]),
644
- " ",
645
- /* @__PURE__ */ jsx(Link, { href: "https://www.adyen.com/privacy-policy", external: true, children: t(($) => $["privacyStatement"]) })
646
- ] });
647
- };
648
- function BasicInformationMultiform({
649
- id,
650
- country,
651
- shouldValidate,
652
- heading = "basicInformationFormHeading",
653
- description = "basicInformationFormDescription",
654
- validationErrors = {},
655
- verificationErrors = {},
656
- disableCountry = false,
657
- isTopLevelEntity = true
658
- }) {
659
- const { t } = useTranslation("common");
660
- const { isSettingEnabled } = useSettingsContext();
661
- const { isExperimentEnabled } = useExperimentsContext();
662
- const { form } = useFormContext();
663
- const allowedCountries = useAllowedCountries();
664
- const isAllowedEditPrefilledCountry = isSettingEnabled(SettingNames.AllowPrefilledCountryEdit);
665
- const state = form.data?.basicInformation?.stateOrProvince;
666
- const companyType = form.data?.companyStructure?.entityType;
667
- const currentCountryTaxInformation = form.data?.basicInformation?.taxInformation?.find(
668
- (tax) => tax.country === country
669
- );
670
- const handleChangeFor = useCallback(
671
- (fieldName, mode) => form.handleChangeFor(fieldName, "basicInformation", mode),
672
- [form]
673
- );
674
- const formUtils = useMemo(() => {
675
- const initialProps = {
676
- data: form.data?.basicInformation ?? {},
677
- fieldValidationErrors: validationErrors,
678
- formVerificationErrors: verificationErrors,
679
- allFields: form.allFields?.basicInformation ?? [],
680
- requiredFields: form.requiredFields?.basicInformation ?? [],
681
- optionalFields: form.optionalFields?.basicInformation ?? [],
682
- trustedFields: form.trustedFields?.basicInformation ?? [],
683
- obscuredFields: form.obscuredFields?.basicInformation ?? [],
684
- errors: form.errors?.basicInformation ?? {},
685
- valid: form.valid?.basicInformation ?? {},
686
- handleFieldChange: handleChangeFor
687
- };
688
- const formUtilProps = initialProps.allFields?.reduce((acc, field) => {
689
- switch (field) {
690
- case "country":
691
- return acc;
692
- case "legalCompanyName":
693
- return mergeFieldMetadataIntoProps(
694
- field,
695
- resolveFieldMetadata(
696
- isExperimentEnabled("StrictNameAndAddressValidationV4") ? defaultFieldConfigV4[country] : defaultFieldConfig$2[country],
697
- { isBusiness: true },
698
- isExperimentEnabled("StrictNameAndAddressValidationV4") ? defaultFieldMetadataV4 : defaultFieldMetadata$2
699
- ),
700
- acc
701
- );
702
- case "countryOfGoverningLaw":
703
- return acc;
704
- case "stateOrProvince":
705
- return mergeFieldMetadataIntoProps(
706
- field,
707
- resolveFieldMetadata(
708
- defaultFieldConfig$1[country],
709
- { isBusiness: true },
710
- defaultFieldMetadata$1
711
- ),
712
- acc
713
- );
714
- case "taxInformation":
715
- return mergeFieldMetadataIntoProps(
716
- field,
717
- resolveFieldMetadata(
718
- taxInformationDefaultFieldConfig[country],
719
- {
720
- taxIdNumberType: currentCountryTaxInformation?.type,
721
- companyType
722
- },
723
- taxInformationDefaultFieldMetadata
724
- ),
725
- acc
726
- );
727
- case "registrationNumber":
728
- return mergeFieldMetadataIntoProps(
729
- field,
730
- resolveFieldMetadata(
731
- registrationNumberDefaultFieldConfig[country],
732
- {
733
- companyType,
734
- registrationNumberType: form.data?.additionalInformation?.registrationNumberType,
735
- state,
736
- isExperimentEnabled
737
- },
738
- registrationNumberDefaultFieldMetadata
739
- ),
740
- acc
741
- );
742
- case "jaHaniLegalCompanyName":
743
- return mergeFieldMetadataIntoProps(
744
- field,
745
- resolveFieldMetadata(
746
- localizedLegalCompanyNameFieldConfig.jaHaniLegalCompanyName.config,
747
- {},
748
- localizedLegalCompanyNameFieldConfig.jaHaniLegalCompanyName.metadata
749
- ),
750
- acc
751
- );
752
- case "jaKanaLegalCompanyName":
753
- return mergeFieldMetadataIntoProps(
754
- field,
755
- resolveFieldMetadata(
756
- localizedLegalCompanyNameFieldConfig.jaKanaLegalCompanyName.config,
757
- {},
758
- localizedLegalCompanyNameFieldConfig.jaKanaLegalCompanyName.metadata
759
- ),
760
- acc
761
- );
762
- default:
763
- return acc;
764
- }
765
- }, initialProps);
766
- return createFormUtils(formUtilProps ?? initialProps, t);
767
- }, [
768
- companyType,
769
- country,
770
- currentCountryTaxInformation?.type,
771
- form.allFields?.basicInformation,
772
- form.data?.additionalInformation?.registrationNumberType,
773
- form.data?.basicInformation,
774
- form.errors?.basicInformation,
775
- form.obscuredFields?.basicInformation,
776
- form.optionalFields?.basicInformation,
777
- form.requiredFields?.basicInformation,
778
- form.trustedFields?.basicInformation,
779
- form.valid?.basicInformation,
780
- handleChangeFor,
781
- isExperimentEnabled,
782
- state,
783
- t,
784
- validationErrors,
785
- verificationErrors
786
- ]);
787
- const showField = (fieldKeys) => fieldKeys.some((field) => {
788
- switch (field) {
789
- case "registrationNumberType":
790
- case "registrationNumber": {
791
- return (formUtils.isRequiredField(field) || formUtils.isOptionalField(field)) && form.data.basicInformation?.stateOrProvince;
792
- }
793
- default:
794
- return formUtils.isRequiredField(field) || formUtils.isOptionalField(field);
795
- }
796
- });
797
- const legalCompanyNameFields = useLegalCompanyNameField({
798
- data: form.data.basicInformation ?? {},
799
- valid: form.valid.basicInformation ?? {},
800
- errors: form.errors.basicInformation ?? {},
801
- fieldProblems: form.fieldProblems.basicInformation ?? {},
802
- country,
803
- formUtils,
804
- fieldOptions: {
805
- jaHaniLegalCompanyName: {
806
- onInput: handleChangeFor("jaHaniLegalCompanyName", "input"),
807
- onBlur: handleChangeFor("jaHaniLegalCompanyName", "blur")
808
- },
809
- jaKanaLegalCompanyName: {
810
- onInput: handleChangeFor("jaKanaLegalCompanyName", "input"),
811
- onBlur: handleChangeFor("jaKanaLegalCompanyName", "blur")
812
- },
813
- legalCompanyName: {
814
- onInput: handleChangeFor("legalCompanyName", "input"),
815
- onBlur: handleChangeFor("legalCompanyName", "blur")
816
- }
817
- }
818
- });
819
- return /* @__PURE__ */ jsxs("form", { id, className: "adyen-kyc-basic-information", children: [
820
- /* @__PURE__ */ jsx(FormHeader, { heading: t(($) => $[heading]), children: /* @__PURE__ */ jsx(FormDescription, { slot: "description", description }) }),
821
- /* @__PURE__ */ jsx(
822
- ErrorPanel,
823
- {
824
- id: "ariaErrorField",
825
- verificationErrors,
826
- validationErrors,
827
- formUtils
828
- }
829
- ),
830
- /* @__PURE__ */ jsx("fieldset", { children: /* @__PURE__ */ jsx("div", { className: "adyen-kyc-field-wrapper", children: /* @__PURE__ */ jsx(
831
- CountryField,
832
- {
833
- data: formUtils.getFieldData(form.data?.basicInformation ?? {}, COUNTRY_FIELD),
834
- valid: formUtils.getFieldValid(form.valid?.basicInformation ?? {}, COUNTRY_FIELD),
835
- errors: formUtils.getFieldErrors(
836
- form.errors?.basicInformation ?? {},
837
- validationErrors,
838
- COUNTRY_FIELD
839
- ),
840
- labels: formUtils.getFieldLabels(COUNTRY_FIELD, {
841
- country: "countryRegionOfEstablishment"
842
- }),
843
- readonly: formUtils.isReadOnly("country") || !isAllowedEditPrefilledCountry || Boolean(disableCountry),
844
- handleChangeFor,
845
- allowedCountries: isTopLevelEntity ? allowedCountries : void 0
846
- }
847
- ) }) }),
848
- /* @__PURE__ */ jsxs("fieldset", { children: [
849
- showField(COUNTRY_OF_GOVERNING_LAW_FIELD) && /* @__PURE__ */ jsx("div", { className: "adyen-kyc-field-wrapper", children: /* @__PURE__ */ jsx(
850
- CountryOfGoverningLawField,
851
- {
852
- data: formUtils.getFieldData(
853
- form.data?.basicInformation ?? {},
854
- COUNTRY_OF_GOVERNING_LAW_FIELD
855
- ),
856
- country,
857
- valid: formUtils.getFieldValid(
858
- form.valid?.basicInformation ?? {},
859
- COUNTRY_OF_GOVERNING_LAW_FIELD
860
- ),
861
- errors: formUtils.getFieldErrors(
862
- form.errors?.basicInformation ?? {},
863
- validationErrors,
864
- COUNTRY_OF_GOVERNING_LAW_FIELD
865
- ),
866
- labels: formUtils.getFieldLabels(COUNTRY_OF_GOVERNING_LAW_FIELD),
867
- readonly: false,
868
- allowedCountries: isTopLevelEntity ? allowedCountries : void 0,
869
- handleChangeFor
870
- }
871
- ) }),
872
- // fields shown here are abstracted by useLegalCompanyNameField
873
- legalCompanyNameFields.map((field) => /* @__PURE__ */ jsx("div", { className: "adyen-kyc-field-wrapper", children: /* @__PURE__ */ jsx(
874
- Field,
875
- {
876
- name: field?.name ?? "",
877
- label: field?.label,
878
- helper: field?.helper,
879
- errorMessage: field?.errorMessage,
880
- isValid: Boolean(field?.isValid),
881
- children: (childProps) => /* @__PURE__ */ jsx(
882
- InputText,
883
- {
884
- ...childProps,
885
- "aria-required": true,
886
- "aria-invalid": !field?.isValid,
887
- name: field?.name,
888
- value: field?.value,
889
- readonly: field?.readonly,
890
- onInput: field ? field.onInput : () => {
891
- },
892
- onBlur: field?.onBlur,
893
- onKeyDown: field?.onKeyDown
894
- }
895
- )
896
- },
897
- field?.name
898
- ) }, field?.name)),
899
- showField(TAX_INFORMATION_FIELD) && /* @__PURE__ */ jsx("div", { className: "adyen-kyc-field-wrapper", children: /* @__PURE__ */ jsx(
900
- TaxInformationField,
901
- {
902
- data: formUtils.getFieldData(
903
- form.data?.basicInformation ?? {},
904
- TAX_INFORMATION_FIELD
905
- ),
906
- valid: formUtils.getFieldValid(
907
- form.valid?.basicInformation ?? {},
908
- TAX_INFORMATION_FIELD
909
- ),
910
- errors: formUtils.getFieldErrors(
911
- form.errors?.basicInformation ?? {},
912
- validationErrors,
913
- TAX_INFORMATION_FIELD
914
- ),
915
- labels: formUtils.getFieldLabels(TAX_INFORMATION_FIELD, {
916
- exemptedFromTax: "iDontHaveATaxId"
917
- }),
918
- mask: formUtils.getMask("taxInformation"),
919
- placeholders: formUtils.getFieldPlaceholders(TAX_INFORMATION_FIELD),
920
- guidanceText: formUtils.getFieldGuidanceText(TAX_INFORMATION_FIELD),
921
- readonly: formUtils.isReadOnly("taxInformation"),
922
- shouldValidate,
923
- handleChangeFor,
924
- canExempt: showField(["exemptedFromTax"]),
925
- registrationNumber: form.data.additionalInformation?.registrationNumber,
926
- country,
927
- entityType: companyType,
928
- defaultData: form.defaultData?.basicInformation?.taxInformation
929
- }
930
- ) }),
931
- showField(STATE_FIELD) && /* @__PURE__ */ jsx("div", { className: "adyen-kyc-field-wrapper", children: /* @__PURE__ */ jsx(
932
- StateField,
933
- {
934
- data: formUtils.getFieldData(form.data?.basicInformation ?? {}, STATE_FIELD),
935
- valid: formUtils.getFieldValid(form.valid?.basicInformation ?? {}, STATE_FIELD),
936
- errors: formUtils.getFieldErrors(
937
- form.errors?.basicInformation ?? {},
938
- validationErrors,
939
- STATE_FIELD
940
- ),
941
- labels: formUtils.getFieldLabels(STATE_FIELD),
942
- placeholders: formUtils.getFieldPlaceholders(STATE_FIELD),
943
- readonly: formUtils.isReadOnly("stateOrProvince"),
944
- handleChangeFor,
945
- selectedCountry: country
946
- }
947
- ) }),
948
- showField(BUSINESS_REGISTRATION_NUMBER_FIELD) && /* @__PURE__ */ jsx("div", { className: "adyen-kyc-field-wrapper", children: /* @__PURE__ */ jsx(
949
- BusinessRegistrationNumberField,
950
- {
951
- data: formUtils.getFieldData(
952
- form.data?.basicInformation ?? {},
953
- BUSINESS_REGISTRATION_NUMBER_FIELD
954
- ),
955
- valid: formUtils.getFieldValid(
956
- form.valid?.basicInformation ?? {},
957
- BUSINESS_REGISTRATION_NUMBER_FIELD
958
- ),
959
- errors: formUtils.getFieldErrors(
960
- form.errors?.basicInformation ?? {},
961
- validationErrors,
962
- BUSINESS_REGISTRATION_NUMBER_FIELD
963
- ),
964
- labels: formUtils.getFieldLabels(BUSINESS_REGISTRATION_NUMBER_FIELD, {
965
- exemptedFromRegistrationNumber: "iDontHaveARegistrationNumber"
966
- }),
967
- mask: formUtils.getMask("registrationNumber"),
968
- guidanceText: formUtils.getFieldGuidanceText(BUSINESS_REGISTRATION_NUMBER_FIELD),
969
- placeholders: formUtils.getFieldPlaceholders(BUSINESS_REGISTRATION_NUMBER_FIELD),
970
- helperText: formUtils.getFieldHelperText(BUSINESS_REGISTRATION_NUMBER_FIELD),
971
- readonly: formUtils.isReadOnly("registrationNumber"),
972
- optional: formUtils.isOptionalField("registrationNumber"),
973
- shouldValidate,
974
- handleChangeFor,
975
- country,
976
- canExempt: showField(["exemptedFromRegistrationNumber"]),
977
- companyType
978
- }
979
- ) })
980
- ] })
981
- ] });
982
- }
983
- function CompanyStructureMultiform({
984
- id,
985
- country,
986
- heading = "companyStructureFormName",
987
- description = "companyStructureFormDescription",
988
- validationErrors = {},
989
- verificationErrors = {}
990
- }) {
991
- const { t } = useTranslation("common");
992
- const { form } = useFormContext();
993
- const { accountHolder } = useAccountHolder();
994
- const { isSettingEnabled } = useSettingsContext();
995
- const canChangeEntityType = isSettingEnabled(SettingNames.AllowLegalEntityTypeChange);
996
- const formUtils = createFormUtils(
997
- { requiredFields: form.requiredFields?.companyStructure ?? [] },
998
- t
999
- );
1000
- const excludedTypes = [
1001
- CompanyTypesValues.INCORPORATED_PARTNERSHIP,
1002
- CompanyTypesValues.INCORPORATED_ASSOCIATION
1003
- ];
1004
- if (isBankAccountRequestedForOrganization.value) {
1005
- excludedTypes.push(CompanyTypesValues.GOVERNMENTAL_ORGANIZATION);
1006
- }
1007
- const companyTypeRadioOptions = canChangeEntityType && accountHolder !== "aTrust" && accountHolder !== "anUnincorporatedPartnership" ? companyTypeOptions.filter((companyType) => !excludedTypes.includes(companyType)) : companyTypeOptions;
1008
- const companyTypeExamples = useCompanyTypeExamples(country);
1009
- return /* @__PURE__ */ jsxs("form", { id, className: "adyen-kyc-company-structure", children: [
1010
- /* @__PURE__ */ jsx(FormHeader, { heading: t(($) => $[heading]), description: t(($) => $[description]) }),
1011
- /* @__PURE__ */ jsx(
1012
- ErrorPanel,
1013
- {
1014
- id: "ariaErrorField",
1015
- verificationErrors,
1016
- validationErrors,
1017
- formUtils
1018
- }
1019
- ),
1020
- /* @__PURE__ */ jsx(
1021
- Field,
1022
- {
1023
- el: "fieldset",
1024
- name: "entityType",
1025
- errorMessage: formUtils.getErrorMessage(
1026
- "entityType",
1027
- form.errors?.companyStructure,
1028
- validationErrors
1029
- ),
1030
- isValid: form.valid?.companyStructure?.entityType,
1031
- children: (childProps) => /* @__PURE__ */ jsx(
1032
- EntityTypeRadioGroupCard,
1033
- {
1034
- ...childProps,
1035
- name: "entityType",
1036
- options: companyTypeRadioOptions,
1037
- optionId: (option) => companyTypeMetadata[option].id,
1038
- optionName: (option) => companyTypeMetadata[option].name,
1039
- optionDescription: (option) => companyTypeMetadata[option].description,
1040
- selected: form.data?.companyStructure?.entityType,
1041
- onSelect: form.handleChangeFor("entityType", "companyStructure"),
1042
- examples: companyTypeExamples,
1043
- "aria-required": true,
1044
- "aria-invalid": !form.valid?.companyStructure?.entityType
1045
- }
1046
- )
1047
- }
1048
- )
1049
- ] });
1050
- }
1051
- function BusinessDetailsMultiform({
1052
- taskType,
1053
- country,
1054
- activeForm,
1055
- shouldValidate,
1056
- problems = {},
1057
- handleNextClick,
1058
- handleBackClick,
1059
- setLoadingStatus
1060
- }) {
1061
- const { i18n } = useI18nContext();
1062
- const { form } = useFormContext();
1063
- const companyType = taskType === TaskTypes.SOLE_PROPRIETOR_COMPANY ? CompanyTypesValues.SOLE_PROPRIETORSHIP : form.data.companyStructure?.entityType;
1064
- function handleChange(formName, fieldName, mode) {
1065
- return form.handleChangeFor(fieldName, formName, mode);
1066
- }
1067
- const renderActiveForm = (activeForm2) => {
1068
- switch (activeForm2.formId) {
1069
- case "basicInformation":
1070
- return /* @__PURE__ */ jsx(
1071
- BasicInformationMultiform,
1072
- {
1073
- id: activeForm2.formId,
1074
- country,
1075
- shouldValidate,
1076
- heading: activeForm2.formHeading,
1077
- description: activeForm2.formDescription,
1078
- validationErrors: problems.validationErrors?.[activeForm2.formId],
1079
- verificationErrors: problems.verificationErrors?.[activeForm2.formId]
1080
- }
1081
- );
1082
- case "businessSelection":
1083
- return /* @__PURE__ */ jsx(
1084
- BusinessSelectionMultiform,
1085
- {
1086
- id: activeForm2.formId,
1087
- country,
1088
- shouldValidate,
1089
- heading: activeForm2.formHeading,
1090
- description: activeForm2.formDescription,
1091
- validationErrors: problems.validationErrors?.[activeForm2.formId],
1092
- verificationErrors: problems.verificationErrors?.[activeForm2.formId],
1093
- handleNextClick,
1094
- handleBackClick,
1095
- setLoadingStatus
1096
- }
1097
- );
1098
- case "companyStructure":
1099
- return /* @__PURE__ */ jsx(
1100
- CompanyStructureMultiform,
1101
- {
1102
- id: activeForm2.formId,
1103
- country,
1104
- shouldValidate,
1105
- heading: activeForm2.formHeading,
1106
- description: activeForm2.formDescription,
1107
- validationErrors: problems.validationErrors?.[activeForm2.formId],
1108
- verificationErrors: problems.verificationErrors?.[activeForm2.formId]
1109
- }
1110
- );
1111
- case "additionalInformation":
1112
- return /* @__PURE__ */ jsx(
1113
- AdditionalInformationMultiform,
1114
- {
1115
- id: activeForm2.formId,
1116
- country,
1117
- companyType,
1118
- shouldValidate,
1119
- heading: activeForm2.formHeading,
1120
- description: activeForm2.formDescription,
1121
- validationErrors: problems.validationErrors?.[activeForm2.formId],
1122
- verificationErrors: problems.verificationErrors?.[activeForm2.formId]
1123
- }
1124
- );
1125
- case "companyTaxDocument":
1126
- return country === "US" ? /* @__PURE__ */ jsx(
1127
- TaxDocument,
1128
- {
1129
- id: activeForm2.formId,
1130
- country,
1131
- companyType,
1132
- shouldValidate,
1133
- heading: activeForm2.formHeading,
1134
- description: activeForm2.formDescription,
1135
- fieldValidationErrors: problems.validationErrors?.[activeForm2.formId] ?? {},
1136
- formVerificationErrors: problems.verificationErrors?.[activeForm2.formId] ?? {},
1137
- data: form.data.companyTaxDocument,
1138
- errors: form.errors.companyTaxDocument,
1139
- valid: form.valid.companyTaxDocument,
1140
- allFields: form.allFields?.companyTaxDocument,
1141
- requiredFields: form.requiredFields?.companyTaxDocument,
1142
- optionalFields: form.optionalFields?.companyTaxDocument,
1143
- trustedFields: form.trustedFields?.companyTaxDocument,
1144
- handleFieldChange: () => handleChange("companyTaxDocument", "taxDocument")
1145
- }
1146
- ) : /* @__PURE__ */ jsx(
1147
- MemoizedDocumentUpload,
1148
- {
1149
- id: activeForm2.formId,
1150
- country,
1151
- companyType,
1152
- shouldValidate,
1153
- heading: activeForm2.formHeading,
1154
- description: activeForm2.formDescription,
1155
- fieldValidationErrors: problems.validationErrors?.[activeForm2.formId] ?? {},
1156
- formVerificationErrors: problems.verificationErrors?.[activeForm2.formId] ?? {},
1157
- data: form.data.companyTaxDocument,
1158
- errors: form.errors.companyTaxDocument,
1159
- valid: form.valid.companyTaxDocument,
1160
- allFields: form.allFields?.companyTaxDocument,
1161
- requiredFields: form.requiredFields?.companyTaxDocument,
1162
- optionalFields: form.optionalFields?.companyTaxDocument,
1163
- trustedFields: form.trustedFields?.companyTaxDocument,
1164
- handleFieldChange: () => handleChange("companyTaxDocument", "taxDocument"),
1165
- documentField: "taxDocument",
1166
- documentType: "vatDocument",
1167
- hidePageCount: true,
1168
- guidanceContent: /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-u-margin-bottom-24", children: [
1169
- /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-upload-field__subtitle", children: [
1170
- " ",
1171
- i18n.get("requirements")
1172
- ] }),
1173
- /* @__PURE__ */ jsxs("ul", { children: [
1174
- /* @__PURE__ */ jsx("li", { children: i18n.get("containsNameOfCompany") }),
1175
- /* @__PURE__ */ jsx("li", { children: i18n.get("documentShowsTaxIdOfCompany") }),
1176
- /* @__PURE__ */ jsx("li", { children: i18n.get("issuedByTheTaxAuthority") })
1177
- ] })
1178
- ] })
1179
- }
1180
- );
1181
- case "companyRegistrationDocument":
1182
- return /* @__PURE__ */ jsx(
1183
- RegistrationDocument,
1184
- {
1185
- id: activeForm2.formId,
1186
- heading: activeForm2.formHeading,
1187
- description: activeForm2.formDescription,
1188
- country,
1189
- companyType,
1190
- data: form.data.companyRegistrationDocument,
1191
- errors: form.errors.companyRegistrationDocument,
1192
- valid: form.valid.companyRegistrationDocument,
1193
- allFields: form.allFields?.companyRegistrationDocument,
1194
- requiredFields: form.requiredFields?.companyRegistrationDocument,
1195
- optionalFields: form.optionalFields?.companyRegistrationDocument,
1196
- trustedFields: form.trustedFields?.companyRegistrationDocument,
1197
- handleFieldChange: () => handleChange("companyRegistrationDocument", "registrationDocument"),
1198
- shouldValidate,
1199
- fieldValidationErrors: problems.validationErrors?.[activeForm2.formId] ?? {},
1200
- formVerificationErrors: problems.verificationErrors?.[activeForm2.formId] ?? {}
1201
- }
1202
- );
1203
- case "companyProofOfDirectorDocument":
1204
- return /* @__PURE__ */ jsx(
1205
- ProofOfDirectorDocument,
1206
- {
1207
- id: activeForm2.formId,
1208
- heading: activeForm2.formHeading,
1209
- description: activeForm2.formDescription,
1210
- country,
1211
- data: form.data?.companyProofOfDirectorDocument,
1212
- errors: form.errors.companyProofOfDirectorDocument,
1213
- valid: form.valid.companyProofOfDirectorDocument,
1214
- allFields: form.allFields?.companyProofOfDirectorDocument,
1215
- requiredFields: form.requiredFields?.companyProofOfDirectorDocument,
1216
- optionalFields: form.optionalFields?.companyProofOfDirectorDocument,
1217
- trustedFields: form.trustedFields?.companyProofOfDirectorDocument,
1218
- handleFieldChange: () => handleChange("companyProofOfDirectorDocument", "proofOfDirector"),
1219
- shouldValidate,
1220
- fieldValidationErrors: problems.validationErrors?.[activeForm2.formId] ?? {},
1221
- formVerificationErrors: problems.verificationErrors?.[activeForm2.formId] ?? {}
1222
- }
1223
- );
1224
- case "companyProofOfSignatoryDocument":
1225
- return /* @__PURE__ */ jsx(
1226
- ProofOfSignatoryDocument,
1227
- {
1228
- id: activeForm2.formId,
1229
- heading: activeForm2.formHeading,
1230
- description: activeForm2.formDescription,
1231
- country,
1232
- data: form.data?.companyProofOfSignatoryDocument,
1233
- errors: form.errors.companyProofOfSignatoryDocument,
1234
- valid: form.valid.companyProofOfSignatoryDocument,
1235
- allFields: form.allFields?.companyProofOfSignatoryDocument,
1236
- requiredFields: form.requiredFields?.companyProofOfSignatoryDocument,
1237
- optionalFields: form.optionalFields?.companyProofOfSignatoryDocument,
1238
- trustedFields: form.trustedFields?.companyProofOfSignatoryDocument,
1239
- handleFieldChange: () => handleChange("companyProofOfSignatoryDocument", "proofOfSignatory"),
1240
- shouldValidate,
1241
- fieldValidationErrors: problems.validationErrors?.[activeForm2.formId] ?? {},
1242
- formVerificationErrors: problems.verificationErrors?.[activeForm2.formId] ?? {}
1243
- }
1244
- );
1245
- case "companyProofOfOwnershipDocument":
1246
- return /* @__PURE__ */ jsx(
1247
- ProofOfOwnershipDocument,
1248
- {
1249
- id: activeForm2.formId,
1250
- heading: activeForm2.formHeading,
1251
- description: activeForm2.formDescription,
1252
- country,
1253
- data: form.data?.companyProofOfOwnershipDocument,
1254
- errors: form.errors.companyProofOfOwnershipDocument,
1255
- valid: form.valid.companyProofOfOwnershipDocument,
1256
- allFields: form.allFields?.companyProofOfOwnershipDocument,
1257
- requiredFields: form.requiredFields?.companyProofOfOwnershipDocument,
1258
- optionalFields: form.optionalFields?.companyProofOfOwnershipDocument,
1259
- trustedFields: form.trustedFields?.companyProofOfOwnershipDocument,
1260
- handleFieldChange: () => handleChange("companyProofOfOwnershipDocument", "proofOfOwnership"),
1261
- shouldValidate,
1262
- fieldValidationErrors: problems.validationErrors?.[activeForm2.formId] ?? {},
1263
- formVerificationErrors: problems.verificationErrors?.[activeForm2.formId] ?? {}
1264
- }
1265
- );
1266
- case "companyConstitutionalDocument":
1267
- return /* @__PURE__ */ jsx(
1268
- MemoizedConstitutionalDocument,
1269
- {
1270
- id: activeForm2.formId,
1271
- legalEntityType: LegalEntityTypes.SOLE_PROPRIETORSHIP,
1272
- country,
1273
- data: form.data?.companyConstitutionalDocument,
1274
- errors: form.errors.companyConstitutionalDocument,
1275
- valid: form.valid.companyConstitutionalDocument,
1276
- allFields: form.allFields?.companyConstitutionalDocument,
1277
- requiredFields: form.requiredFields?.companyConstitutionalDocument,
1278
- optionalFields: form.optionalFields?.companyConstitutionalDocument,
1279
- trustedFields: form.trustedFields?.companyConstitutionalDocument,
1280
- handleFieldChange: () => handleChange("companyConstitutionalDocument", "constitutionalDocument"),
1281
- shouldValidate,
1282
- fieldValidationErrors: problems.validationErrors?.[activeForm2.formId] ?? {},
1283
- formVerificationErrors: problems.verificationErrors?.[activeForm2.formId] ?? {}
1284
- }
1285
- );
1286
- case "companyFinancialInformation":
1287
- return /* @__PURE__ */ jsx(
1288
- FinancialInformation,
1289
- {
1290
- multiForm: form,
1291
- id: activeForm2.formId,
1292
- country,
1293
- heading: i18n.get(activeForm2.formHeading),
1294
- description: activeForm2.formDescription,
1295
- data: form.data?.companyFinancialInformation,
1296
- allFields: form.allFields?.companyFinancialInformation,
1297
- requiredFields: form.requiredFields?.companyFinancialInformation,
1298
- optionalFields: form.optionalFields?.companyFinancialInformation,
1299
- trustedFields: form.trustedFields?.companyFinancialInformation,
1300
- shouldValidate
1301
- }
1302
- );
1303
- default:
1304
- return null;
1305
- }
1306
- };
1307
- return /* @__PURE__ */ jsx("div", { className: "adyen-kyc-business-details", children: /* @__PURE__ */ jsx("div", { className: "adyen-kyc-form-wrapper", children: renderActiveForm(activeForm) }) });
1308
- }
1309
- function buildRequiredForms({
1310
- config: { country, forms, requiredFields, optionalFields, isValid, problems },
1311
- options
1312
- }) {
1313
- const usesBusinessSelection = COUNTRIES_USING_COMPANY_SEARCH.includes(country);
1314
- const filteredForms = Object.values(forms).filter(({ formId }) => {
1315
- if (usesBusinessSelection) {
1316
- if (formId === "businessSelection" && options?.hasNoSearchResults) return false;
1317
- if (formId === "companyStructure" && options?.verifiedBusiness && options.verifiedBusiness.legalForm)
1318
- return false;
1319
- }
1320
- if (requiredFields || optionalFields) {
1321
- return Boolean(requiredFields?.[formId]) || Boolean(optionalFields?.[formId]);
1322
- }
1323
- return true;
1324
- });
1325
- const requiredForms = options?.skipSummary ? filteredForms : [...filteredForms, summaryStep];
1326
- return addValidityToForms(requiredForms, isValid, problems);
1327
- }
1328
- function basicInformationValidators({
1329
- country,
1330
- taxIdNumberType,
1331
- companyType,
1332
- registrationNumberType,
1333
- state,
1334
- isExperimentEnabled
1335
- }) {
1336
- return {
1337
- country: CountryFieldValidation().country,
1338
- countryOfGoverningLaw: CountryOfGoverningLawFieldValidation().countryOfGoverningLaw,
1339
- legalCompanyName: resolveFieldMetadata(
1340
- isExperimentEnabled("StrictNameAndAddressValidationV4") ? defaultFieldConfigV4[country] : defaultFieldConfig$2[country],
1341
- { isBusiness: true },
1342
- isExperimentEnabled("StrictNameAndAddressValidationV4") ? defaultFieldMetadataV4 : defaultFieldMetadata$2
1343
- )?.validators,
1344
- taxInformation: resolveFieldMetadata(
1345
- taxInformationDefaultFieldConfig[country],
1346
- {
1347
- taxIdNumberType,
1348
- companyType
1349
- },
1350
- taxInformationDefaultFieldMetadata
1351
- )?.validators,
1352
- stateOrProvince: resolveFieldMetadata(
1353
- defaultFieldConfig$1[country],
1354
- { isBusiness: true },
1355
- defaultFieldMetadata$1
1356
- )?.validators,
1357
- registrationNumber: resolveFieldMetadata(
1358
- registrationNumberDefaultFieldConfig[country],
1359
- {
1360
- companyType,
1361
- registrationNumberType,
1362
- state,
1363
- isExperimentEnabled
1364
- },
1365
- registrationNumberDefaultFieldMetadata
1366
- )?.validators
1367
- };
1368
- }
1369
- function businessSelectionValidators() {
1370
- return {
1371
- hasSelectedBusiness: {
1372
- modes: ["blur", "input"],
1373
- validate: (value) => typeof value === "boolean",
1374
- // indicates a selection was made
1375
- errorMessage: "fieldIsRequired"
1376
- }
1377
- };
1378
- }
1379
- function additionalInformationValidators({
1380
- country,
1381
- taxIdNumberType,
1382
- companyType,
1383
- registrationNumberType,
1384
- vatNumberType,
1385
- isExperimentEnabled
1386
- }) {
1387
- return {
1388
- hasDoingBusinessAs: doingBusinessAsAbsentFieldMetadata.validators,
1389
- doingBusinessAs: doingBusinessAsFieldMetadata.validators,
1390
- registrationNumber: resolveFieldMetadata(
1391
- registrationNumberDefaultFieldConfig[country],
1392
- {
1393
- companyType,
1394
- registrationNumberType,
1395
- isExperimentEnabled
1396
- },
1397
- registrationNumberDefaultFieldMetadata
1398
- )?.validators,
1399
- exemptedFromRegistrationNumber: exemptFromRegistrationNumberDefaultFieldMetadata.validators,
1400
- taxInformation: resolveFieldMetadata(
1401
- taxInformationDefaultFieldConfig[country],
1402
- {
1403
- taxIdNumberType,
1404
- companyType
1405
- },
1406
- taxInformationDefaultFieldMetadata
1407
- ).validators,
1408
- vatNumber: resolveFieldMetadata(
1409
- defaultFieldConfig[country],
1410
- { vatNumberType },
1411
- defaultFieldMetadata
1412
- ).validators,
1413
- vatAbsenceReason: vatAbsenceReasonMetadata.validators,
1414
- eInvoicingCode: eInvoicingCodeFieldMetadata.validators,
1415
- dateOfIncorporation: dateOfIncorporationFieldMetadata.validators,
1416
- stockExchangeMIC: stockExchangeMICFieldMetadata.validators,
1417
- stockISIN: stockISINFieldMetadata.validators,
1418
- stockTickerSymbol: stockTickerSymbolFieldMetadata.validators
1419
- };
1420
- }
1421
- function BusinessDetailsMultiformDropin({
1422
- taskType = TaskTypes.BUSINESS_DETAILS,
1423
- country: propCountry,
1424
- problems: propProblems,
1425
- legalEntityResponse,
1426
- associatedLegalArrangement,
1427
- // initially undefined when creating entity
1428
- nestedLegalEntity,
1429
- // initially undefined when creating entity
1430
- nestedLegalEntityDetails,
1431
- // has entity roles for association logic
1432
- onSubmit: onExternalSubmit,
1433
- handleHomeClick,
1434
- asModal = false
1435
- }) {
1436
- useTranslation(["business", "common"]);
1437
- const { baseUrl, rootLegalEntityId } = useApiContext();
1438
- const { i18n } = useI18nContext();
1439
- const userEvents = useAnalyticsContext();
1440
- const { showToast } = useToastContext();
1441
- const queryClient = useQueryClient();
1442
- const { isExperimentEnabled } = useExperimentsContext();
1443
- const { accountHolder, setAccountHolder } = useAccountHolder();
1444
- const { mutateAsync: createLegalEntity } = useCreateLegalEntity();
1445
- const { mutateAsync: updateLegalEntity } = useUpdateLegalEntity();
1446
- const [country, setCountry] = useState(propCountry);
1447
- const [documents, setDocuments] = useState();
1448
- const [problems, setProblems] = useState(propProblems ?? {});
1449
- const [loadingStatus, setLoadingStatus] = useState("success");
1450
- const [derivedProps, setDerivedProps] = useState();
1451
- const [trustedFields, setTrustedFields] = useState(
1452
- legalEntityResponse?.trustedFields ?? void 0
1453
- );
1454
- const defaultForms = useMemo(() => getForms(country), [country]);
1455
- const documentUtils = documentApiUtils({
1456
- baseUrl: baseUrl.value,
1457
- rootLegalEntityId: rootLegalEntityId.value
1458
- });
1459
- useEffect(() => {
1460
- if (!legalEntityResponse?.documentDetails?.length) return;
1461
- documentUtils.fetchDocuments(legalEntityResponse.documentDetails, legalEntityResponse?.id).then(() => {
1462
- setDocuments(mapApiDocumentToBusinessDetailsDocuments(legalEntityResponse?.id));
1463
- }).catch(() => {
1464
- showToast({ label: i18n.get("failedToFetchRelevantDocuments"), variant: "error" });
1465
- });
1466
- }, [legalEntityResponse.documentDetails, legalEntityResponse?.id]);
1467
- const parseConfiguration = useCallback(
1468
- ({ scenarios }) => composePerScenarioFormConfigurations(scenarios, businessDetailsFieldsPerScenario),
1469
- []
1470
- );
1471
- const { fieldConfigurations } = useScenarioConfiguration({
1472
- legalEntityType: LegalEntityTypes.ORGANIZATION,
1473
- parseConfiguration,
1474
- setLoadingStatus,
1475
- country
1476
- });
1477
- const defaultData = useMemo(
1478
- () => ({
1479
- ...mapLegalEntityToBusinessDetailsSchema(legalEntityResponse, {}, isExperimentEnabled),
1480
- ...documents
1481
- }),
1482
- [legalEntityResponse, documents, isExperimentEnabled]
1483
- );
1484
- const buildFieldValidations = useCallback(
1485
- (data) => {
1486
- const taxInfo = data?.basicInformation?.taxInformation ?? data?.additionalInformation?.taxInformation;
1487
- const taxIdType = taxInfo?.length ? taxInfo.find((taxId) => taxId.country === country)?.type : void 0;
1488
- const regNumberType = data?.basicInformation?.registrationNumberType ?? data?.additionalInformation?.registrationNumberType;
1489
- return {
1490
- basicInformation: basicInformationValidators({
1491
- country,
1492
- state: data?.basicInformation?.stateOrProvince,
1493
- companyType: data?.companyStructure?.entityType,
1494
- taxIdNumberType: taxIdType,
1495
- registrationNumberType: regNumberType,
1496
- isExperimentEnabled
1497
- }),
1498
- businessSelection: businessSelectionValidators(),
1499
- companyStructure: CompanyStructureValidation,
1500
- additionalInformation: additionalInformationValidators({
1501
- country,
1502
- taxIdNumberType: taxIdType,
1503
- companyType: data?.companyStructure?.entityType,
1504
- registrationNumberType: regNumberType,
1505
- vatNumberType: data?.additionalInformation?.vatNumberType,
1506
- isExperimentEnabled
1507
- }),
1508
- financialInformation: financialInfoValidationWithEmployeesRules
1509
- };
1510
- },
1511
- [country, isExperimentEnabled]
1512
- );
1513
- const multiForm = useMultiForm({
1514
- defaultData,
1515
- allFields: derivedProps?.allFields,
1516
- requiredFields: derivedProps?.requiredFields,
1517
- optionalFields: derivedProps?.optionalFields,
1518
- obscuredFields: derivedProps?.obscuredFields,
1519
- trustedFields: derivedProps?.trustedFields,
1520
- rules: buildFieldValidations
1521
- });
1522
- const isTinMatched = tinMatched.value;
1523
- const customRules = useMemo(
1524
- () => rules({
1525
- data: multiForm.data,
1526
- country,
1527
- taskType,
1528
- isExperimentEnabled,
1529
- accountHolder,
1530
- tinMatched: isTinMatched,
1531
- rootLegalEntity: legalEntityResponse
1532
- }),
1533
- [
1534
- multiForm.data,
1535
- country,
1536
- taskType,
1537
- isExperimentEnabled,
1538
- accountHolder,
1539
- isTinMatched,
1540
- legalEntityResponse
1541
- ]
1542
- );
1543
- useEffect(() => {
1544
- const props = getPropsFromConfigurations({
1545
- scenarioConfiguration: fieldConfigurations,
1546
- forms: defaultForms,
1547
- remediationActions: problems?.remediationActions ? Object.values(problems?.remediationActions) : [],
1548
- dataMissingErrors: problems?.missingData ?? [],
1549
- fieldsWithExistingData: getFieldsWithExistingData(
1550
- legalEntityResponse,
1551
- businessDetailsApiKeyMapping,
1552
- businessDetailsDocumentMapping
1553
- ),
1554
- customRules,
1555
- legalEntityType: legalEntityResponse?.type,
1556
- legalEntityTrustedFields: trustedFields
1557
- });
1558
- setDerivedProps(props);
1559
- }, [
1560
- customRules,
1561
- defaultForms,
1562
- fieldConfigurations,
1563
- legalEntityResponse,
1564
- problems?.missingData,
1565
- problems?.remediationActions,
1566
- trustedFields
1567
- ]);
1568
- const [prevCountry, setPrevCountry] = useState(multiForm.data.basicInformation?.country);
1569
- if (multiForm.data.basicInformation?.country && prevCountry !== multiForm.data.basicInformation?.country) {
1570
- setCountry(multiForm.data?.basicInformation?.country);
1571
- setPrevCountry(multiForm.data.basicInformation?.country);
1572
- setTrustedFields(void 0);
1573
- verifiedBusiness.value = void 0;
1574
- tinMatched.value = void 0;
1575
- businessMismatchModalOpen.value = false;
1576
- }
1577
- const [forms, setForms] = useState(
1578
- buildRequiredForms({
1579
- config: {
1580
- country,
1581
- forms: defaultForms,
1582
- requiredFields: derivedProps?.requiredFields,
1583
- optionalFields: derivedProps?.optionalFields,
1584
- isValid: multiForm.isValid ?? {},
1585
- problems
1586
- },
1587
- options: {
1588
- hasNoSearchResults: false,
1589
- verifiedBusiness: verifiedBusiness.value
1590
- }
1591
- })
1592
- );
1593
- const updateForms = useCallback(
1594
- ({ searchResults }) => {
1595
- const updatedForms = buildRequiredForms({
1596
- config: {
1597
- country,
1598
- forms: defaultForms,
1599
- requiredFields: derivedProps?.requiredFields,
1600
- optionalFields: derivedProps?.optionalFields,
1601
- isValid: multiForm.isValid ?? {},
1602
- problems
1603
- },
1604
- options: {
1605
- hasNoSearchResults: searchResults && !searchResults.length,
1606
- verifiedBusiness: verifiedBusiness.value
1607
- }
1608
- });
1609
- setForms(updatedForms);
1610
- return updatedForms;
1611
- },
1612
- [
1613
- country,
1614
- defaultForms,
1615
- derivedProps?.optionalFields,
1616
- derivedProps?.requiredFields,
1617
- multiForm.isValid,
1618
- problems
1619
- ]
1620
- );
1621
- const summaryData = useMemo(
1622
- () => formatDataForSummary(multiForm.data, forms, i18n, isExperimentEnabled),
1623
- [multiForm.data, forms, i18n, isExperimentEnabled]
1624
- );
1625
- const associatedLeTrackingParams = useMemo(
1626
- () => getAssociatedLeAnalyticsPayload({
1627
- associatedLegalEntity: associatedLegalArrangement
1628
- }),
1629
- [associatedLegalArrangement]
1630
- );
1631
- const handleTrackNavigation = useCallback(
1632
- (props) => {
1633
- trackNavigation({
1634
- ...props,
1635
- additionalTrackingParams: associatedLeTrackingParams
1636
- });
1637
- },
1638
- [associatedLeTrackingParams]
1639
- );
1640
- const submitTask = useCallback(() => {
1641
- setAccountHolder(accountHolder);
1642
- return submit({
1643
- additionalTrackingParams: associatedLeTrackingParams,
1644
- data: multiForm.data,
1645
- legalEntityResponse,
1646
- associatedLegalArrangement,
1647
- nestedLegalEntity,
1648
- nestedLegalEntityDetails,
1649
- problems,
1650
- taskType: taskType ?? TaskTypes.BUSINESS_DETAILS,
1651
- accountHolder: accountHolder ?? "theCompanyIWorkFor",
1652
- forms,
1653
- documentUtils,
1654
- i18n,
1655
- showToast,
1656
- setLoadingStatus,
1657
- setProblems,
1658
- handleUpdateLegalEntity: updateLegalEntity,
1659
- createLegalEntity,
1660
- onExternalSubmit,
1661
- isExperimentEnabled,
1662
- userEvents
1663
- });
1664
- }, [
1665
- setAccountHolder,
1666
- accountHolder,
1667
- associatedLeTrackingParams,
1668
- multiForm.data,
1669
- legalEntityResponse,
1670
- associatedLegalArrangement,
1671
- nestedLegalEntity,
1672
- nestedLegalEntityDetails,
1673
- problems,
1674
- taskType,
1675
- forms,
1676
- documentUtils,
1677
- i18n,
1678
- showToast,
1679
- updateLegalEntity,
1680
- createLegalEntity,
1681
- onExternalSubmit,
1682
- isExperimentEnabled,
1683
- userEvents
1684
- ]);
1685
- const {
1686
- handleNextClick,
1687
- handleBackClick,
1688
- activeForm,
1689
- shouldValidate,
1690
- gotoFormByFormIndex,
1691
- steps
1692
- } = useFormComposer({
1693
- problems,
1694
- navigationTrackingParams: associatedLeTrackingParams,
1695
- forms,
1696
- onSubmit: submitTask,
1697
- triggerValidation: multiForm.triggerValidation
1698
- });
1699
- const handleBusinessMismatchContinue = () => {
1700
- setTrustedFields([]);
1701
- businessMismatchModalOpen.value = false;
1702
- handleNextClick();
1703
- };
1704
- const handleBusinessMismatchCancel = () => {
1705
- handleBackClick?.();
1706
- businessMismatchModalOpen.value = false;
1707
- tinMatched.value = false;
1708
- };
1709
- const companySearchQueryInput = {
1710
- name: multiForm.data?.basicInformation?.legalCompanyName ?? "",
1711
- country: multiForm.data?.basicInformation?.country,
1712
- state: multiForm.data?.basicInformation?.stateOrProvince,
1713
- registrationNumber: multiForm.data?.basicInformation?.registrationNumber
1714
- };
1715
- const verifyTinQueryInput = {
1716
- name: multiForm.data.basicInformation?.legalCompanyName ?? "",
1717
- tin: multiForm.data?.basicInformation?.taxInformation?.find((taxId) => taxId.country === country)?.number ?? ""
1718
- };
1719
- const { data: companySearchResponse } = useCompanySearch(companySearchQueryInput, {
1720
- enabled: false
1721
- });
1722
- useVerifyTin(verifyTinQueryInput, { enabled: false });
1723
- const attemptBusinessSearch = async () => {
1724
- try {
1725
- setLoadingStatus("loading");
1726
- const searchResponse = await queryClient.fetchQuery({
1727
- queryKey: ["companySearch", companySearchQueryInput]
1728
- });
1729
- const currentForms = updateForms({ searchResults: searchResponse.results });
1730
- if (!searchResponse.results.length) {
1731
- const tinVerificationResponse = await queryClient.fetchQuery({
1732
- queryKey: ["verifyTin", verifyTinQueryInput]
1733
- });
1734
- if (!tinVerificationResponse?.matched) {
1735
- businessMismatchModalOpen.value = true;
1736
- tinMatched.value = false;
1737
- return setLoadingStatus("success");
1738
- } else {
1739
- tinMatched.value = true;
1740
- }
1741
- }
1742
- setLoadingStatus("success");
1743
- return handleNextClick(currentForms);
1744
- } catch {
1745
- setLoadingStatus("error");
1746
- }
1747
- };
1748
- const overrideNextClick = async () => {
1749
- if (!activeForm.isValid) return handleNextClick();
1750
- if (!COUNTRIES_USING_COMPANY_SEARCH.includes(country)) {
1751
- return handleNextClick();
1752
- }
1753
- switch (activeForm.formId) {
1754
- case "basicInformation": {
1755
- return await attemptBusinessSearch();
1756
- }
1757
- case "businessSelection": {
1758
- const currentForms = updateForms({
1759
- searchResults: companySearchResponse?.results
1760
- });
1761
- return handleNextClick(currentForms);
1762
- }
1763
- default:
1764
- return handleNextClick();
1765
- }
1766
- };
1767
- useEffect(() => {
1768
- updateForms({
1769
- searchResults: companySearchResponse?.results
1770
- });
1771
- }, [updateForms, companySearchResponse?.results]);
1772
- return /* @__PURE__ */ jsx(FormContextProvider, { form: multiForm, children: /* @__PURE__ */ jsxs(
1773
- FormFlow,
1774
- {
1775
- summary: {
1776
- data: summaryData,
1777
- omitted: {
1778
- keys: ["operationalAddressIsSame"],
1779
- forms: ["businessSelection"]
1780
- },
1781
- problems,
1782
- trackNavigation: handleTrackNavigation,
1783
- showLegalCaption: true
1784
- },
1785
- asModal,
1786
- currentStep: steps.current,
1787
- totalSteps: steps.total,
1788
- forms,
1789
- disableNextButton: activeForm.formId === "businessSelection",
1790
- gotoFormByFormIndex,
1791
- handleNextClick: overrideNextClick,
1792
- handleBackClick,
1793
- handleCancelClick: handleHomeClick,
1794
- loadingStatus,
1795
- children: [
1796
- /* @__PURE__ */ jsx(
1797
- BusinessDetailsMultiform,
1798
- {
1799
- taskType,
1800
- activeForm,
1801
- country,
1802
- shouldValidate,
1803
- problems,
1804
- handleNextClick: overrideNextClick,
1805
- handleBackClick,
1806
- setLoadingStatus
1807
- }
1808
- ),
1809
- businessMismatchModalOpen.value && /* @__PURE__ */ jsx(
1810
- Confirm,
1811
- {
1812
- title: i18n.get("businessSelection__tinVerificationFailureModalHeader"),
1813
- description: i18n.get("businessSelection__tinVerificationFailureModalContent"),
1814
- cancelText: i18n.get("businessSelection__tinVerificationFailureModalSecondaryButton"),
1815
- confirmText: i18n.get("businessSelection__tinVerificationFailureModalPrimaryButton"),
1816
- onCancel: handleBusinessMismatchCancel,
1817
- onConfirm: handleBusinessMismatchContinue
1818
- }
1819
- )
1820
- ]
1821
- }
1822
- ) });
1823
- }
1824
- const RootBusinessDetailsPage = ({
1825
- isTargetLegalEntityType = false,
1826
- onSubmit,
1827
- handleHomeClick
1828
- }) => {
1829
- const { i18n } = useTranslation();
1830
- const { accountHolder } = useAccountHolder();
1831
- const { data: rootLe } = useLegalEntity(ROOT_LE);
1832
- const capabilityProblems = useCapabilityProblems();
1833
- const { isExperimentEnabled } = useExperimentsContext();
1834
- addResourceBundles(i18n, i18n.language, [
1835
- { ns: "business", importFn: () => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../language/da-DK.json": () => import("./da-DK-CeNMXUfE.js"), "../language/de-DE.json": () => import("./de-DE-JI-7mvxy.js"), "../language/en-US.json": () => import("./en-US-DHq7VYFs.js"), "../language/es-ES.json": () => import("./es-ES-DOVPTeyf.js"), "../language/fi-FI.json": () => import("./fi-FI-D522KHGk.js"), "../language/fr-FR.json": () => import("./fr-FR-DInQKkTd.js"), "../language/it-IT.json": () => import("./it-IT-CjEYONJg.js"), "../language/nl-NL.json": () => import("./nl-NL-Zcq0bXd-.js"), "../language/no-NO.json": () => import("./no-NO-BxReX6oF.js"), "../language/pt-PT.json": () => import("./pt-PT-N0njcfLO.js"), "../language/sl-SI.json": () => import("./sl-SI-MZoDApq9.js"), "../language/sv-SE.json": () => import("./sv-SE-DCFSf4Oj.js") }), `../language/${i18n.language}.json`, 3) }
1836
- ]);
1837
- if (!rootLe) {
1838
- return /* @__PURE__ */ jsx(Loader, {});
1839
- }
1840
- const hasTrust = accountHolder === "aTrust" || isPartOfTrustFromLegalEntity(rootLe);
1841
- const problems = capabilityProblems ? getProblemsForEntity(capabilityProblems, EntityTypes.LEGAL_ENTITY, rootLe.id) : void 0;
1842
- return isExperimentEnabled("EnableBusinessDetailsMultiForm") ? /* @__PURE__ */ jsx(
1843
- BusinessDetailsMultiformDropin,
1844
- {
1845
- taskType: TaskTypes.BUSINESS_DETAILS,
1846
- taskName: hasTrust ? "businessTrusteeDetails" : "businessDetails",
1847
- legalEntityResponse: rootLe,
1848
- problems,
1849
- country: getLegalEntityCountry(rootLe),
1850
- isTargetLegalEntityType,
1851
- onSubmit,
1852
- handleHomeClick
1853
- }
1854
- ) : /* @__PURE__ */ jsx(
1855
- BusinessDetailsDropin,
1856
- {
1857
- taskType: TaskTypes.BUSINESS_DETAILS,
1858
- taskName: hasTrust ? "businessTrusteeDetails" : "businessDetails",
1859
- legalEntityResponse: rootLe,
1860
- problems,
1861
- country: getLegalEntityCountry(rootLe),
1862
- isTargetLegalEntityType,
1863
- onSubmit,
1864
- handleHomeClick
1865
- }
1866
- );
1867
- };
1868
- export {
1869
- RootBusinessDetailsPage
1870
- };