@adyen/kyc-components 3.83.0 → 3.85.0-beta.1

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 (744) hide show
  1. package/dist/{AcceptTermsOfServiceComponent-DuGvxDCD.js → AcceptTermsOfServiceComponent-BW8S5c-F.js} +23 -20
  2. package/dist/Accordion-CxXXx4Ly.js +88 -0
  3. package/dist/{AccountSetupRejected-WRvC8Lhx.js → AccountSetupRejected-B0RVdTUw.js} +6 -6
  4. package/dist/{Address-DzNHaLQd.js → Address-BBHj9Aas.js} +10 -10
  5. package/dist/{Alert-Ce3pDSUY.js → Alert-Dz_jjJ1E.js} +3 -75
  6. package/dist/{Avatar-ERL8LlcN.js → Avatar-CCed5bJE.js} +2 -2
  7. package/dist/{BusinessDetailsDropin-CdWljVO6.js → BusinessDetailsMultiformDropin-B7HHvJeq.js} +2288 -272
  8. package/dist/BusinessFinancingComponent-D9cn6vVF.js +54 -0
  9. package/dist/{BusinessFinancingDropin-R940kp66.js → BusinessFinancingDropin-CCci5zHD.js} +185 -125
  10. package/dist/BusinessFinancingPage-DuRkxp4x.js +46 -0
  11. package/dist/{BusinessTypeSelectionPage-Dn1P9vc8.js → BusinessTypeSelectionPage-CQvrZNZZ.js} +12 -12
  12. package/dist/{Card-Cma0bwYR.js → Card-dFm_Z3TI.js} +6 -4
  13. package/dist/{CountryField-DrB-OFMR.js → CountryField-DunKeW_n.js} +220 -235
  14. package/dist/CreateIndividualComponent-wFiOsvgz.js +71 -0
  15. package/dist/CreateTransferInstrumentComponent-B_fQXq70.js +66 -0
  16. package/dist/{Currency-DD63TDvu.js → Currency-2wpP-9m3.js} +6 -6
  17. package/dist/{CustomerSupport-Cs9YbnBI.js → CustomerSupport-DyfNEq22.js} +11 -10
  18. package/dist/{DebugModal-AFNn6VI2.js → DebugModal-BMw5O5pH.js} +128 -42
  19. package/dist/{DecisionMakerDetailsPage-CUAalT7g.js → DecisionMakerDetailsPage-D-8hNnWf.js} +16 -10
  20. package/dist/DecisionMakers-DUjAziKs.js +831 -0
  21. package/dist/Divider-Ckm8Nfyb.js +239 -0
  22. package/dist/{Dropzone-DXfuqm2D.js → Dropzone-BtTUNjsc.js} +4 -4
  23. package/dist/{EmbeddedStatus-BjGURjyl.js → EmbeddedStatus-kQRIlMAC.js} +15 -16
  24. package/dist/{EndStateLayout-BuVgF0ER.js → EndStateLayout-CePzY6oB.js} +2 -2
  25. package/dist/{FormNavigation-DXaxaf1-.js → FormNavigation-a9y0a0iw.js} +3 -3
  26. package/dist/Image-TkXLA-UY.js +22 -0
  27. package/dist/{IndividualOnfidoDropin-fERsTakw.js → IndividualOnfidoDropin-CljBpKM8.js} +256 -401
  28. package/dist/{InputDate-By5i2Hlf.js → InputDate-DggMbeJG.js} +2 -2
  29. package/dist/{InputText-CqLs_M75.js → InputText-zem7Kt4i.js} +4 -7
  30. package/dist/{Introduction-3UWByITz.js → Introduction-DH4Tivyl.js} +4 -5
  31. package/dist/{JpAddress-C0iTeXx7.js → JpAddress-BEKjE0bR.js} +27 -10
  32. package/dist/LandingLayout-BLjTVlVb.js +60 -0
  33. package/dist/{LegalRepresentativeDetailsPage-DSppGGc6.js → LegalRepresentativeDetailsPage-Dny2mD-G.js} +5 -6
  34. package/dist/{Link-CaxhkJ24.js → Link-BZJgg2rS.js} +2 -2
  35. package/dist/ListItem-BqBZ36Qn.js +69 -0
  36. package/dist/ManageIndividualComponent-CHbI_tji.js +46 -0
  37. package/dist/ManageTermsOfServiceComponent-Dwsmig7o.js +58 -0
  38. package/dist/{ManageTransferInstrumentComponent-muOE0ZjV.js → ManageTransferInstrumentComponent-Btz3RWc6.js} +17 -17
  39. package/dist/{MaskedInput-OYLtVOZ6.js → MaskedInput-CSKFmTC0.js} +6 -6
  40. package/dist/MaybeModal-DraEs2gj.js +25 -0
  41. package/dist/{Modal-BaaNj5F-.js → Modal-DvB1odWq.js} +2 -2
  42. package/dist/OnboardingDropinComponent-KKy3000L.js +4274 -0
  43. package/dist/{PayoutDetailsDropin-DIJbRfg_.js → PayoutDetailsDropin-BFUH8RvF.js} +324 -97
  44. package/dist/RadioGroup-Br5v8w0a.js +144 -0
  45. package/dist/{RegistrationAddress-CbElOOZ6.js → RegistrationAddress-CP_kZ9NI.js} +39 -42
  46. package/dist/{Review-1Y__iPB0.js → Review-4b9BWdsh.js} +9 -8
  47. package/dist/RootBusinessDetailsPage-DO5202Yd.js +61 -0
  48. package/dist/{OnboardingDropinComponent-DIf93Tzb.js → RootBusinessLinesPage-D0tGN2u3.js} +866 -5062
  49. package/dist/{RootIndividualDetailsPage-BVr2fbYb.js → RootIndividualDetailsPage-2c_nvpAv.js} +5 -6
  50. package/dist/{SignPCIComponent-BcR2vNVB.js → SignPCIComponent-4UrP4tNd.js} +12 -11
  51. package/dist/{SingpassSelection-DDG-DpRN.js → SingpassSelection-DTOk81Y1.js} +11 -10
  52. package/dist/SoleProprietorshipPage-BL3u4nCi.js +60 -0
  53. package/dist/{SourceOfFundsPage-DF3muJcW.js → SourceOfFundsPage-HgGh-VDQ.js} +43 -65
  54. package/dist/{StepProgressIndicator-BUDjmmPK.js → StepProgressIndicator-sfM13J_b.js} +2 -2
  55. package/dist/{StoreProvider-DGxWcgrS.js → StoreProvider-DadhkEyO.js} +660 -195
  56. package/dist/{TaskItemStatus-Clfh9v2q.js → TaskItemStatus-DuJ01Ng6.js} +3 -14
  57. package/dist/{TaxInformationField-Bu8s2JZA.js → TaxInformationField-C4OeLAhU.js} +34 -31
  58. package/dist/{TaxReportingDropin-C1aPbXfp.js → TaxReportingDropin-2VcdfJvr.js} +64 -56
  59. package/dist/{TileGroup-AskMVW9b.js → TileGroup-B_9rid7_.js} +4 -4
  60. package/dist/{TrustDetailsPage-S0YwnBAx.js → TrustDetailsPage-COIeKAk2.js} +53 -44
  61. package/dist/TrustMemberCompanyPage-CwNG1bni.js +73 -0
  62. package/dist/TrustMemberIndividualPage-D57poDUv.js +66 -0
  63. package/dist/{UnincorporatedPartnershipIndividualPage-B_fmnaes.js → UnincorporatedPartnershipIndividualPage-oiEGWL8D.js} +5 -6
  64. package/dist/UnincorporatedPartnershipMemberCompanyPage-av-gOgOa.js +76 -0
  65. package/dist/{ViewVerificationStatusComponent-CivzRszd.js → ViewVerificationStatusComponent-Zk6t-F6h.js} +19 -13
  66. package/dist/adyen-business-financing.js +4 -5
  67. package/dist/adyen-individual-configuration.js +4 -5
  68. package/dist/adyen-individual-status.js +4 -5
  69. package/dist/adyen-kyc-components.js +39 -29
  70. package/dist/adyen-onboarding.js +4 -5
  71. package/dist/adyen-terms-of-service-management.js +4 -5
  72. package/dist/adyen-terms-of-service-status.js +4 -5
  73. package/dist/adyen-transfer-instrument-configuration.js +4 -5
  74. package/dist/adyen-transfer-instrument-management.js +4 -5
  75. package/dist/adyen-verification-status.js +4 -5
  76. package/dist/analytics-awjVudvY.js +123 -0
  77. package/dist/{bafinUtils-BJao1Xb_.js → bafinUtils-CAVAvSFg.js} +8 -99
  78. package/dist/bg-BG-BIOMFPaW.js +27 -0
  79. package/dist/bg-BG-BLe6BCNz.js +13 -0
  80. package/dist/bg-BG-BPsOhDfg.js +13 -0
  81. package/dist/bg-BG-BvLl6gaB.js +13 -0
  82. package/dist/bg-BG-CepHap8j.js +68 -0
  83. package/dist/bg-BG-Coja327N.js +24 -0
  84. package/dist/{bg-BG-GVhnrvRn.js → bg-BG-Cs_1PU3v.js} +5 -1
  85. package/dist/bg-BG-D5C7Gq2o.js +35 -0
  86. package/dist/bg-BG-DcxZ1tmt.js +32 -0
  87. package/dist/{bg-BG-Bot37sd7.js → bg-BG-Dp4LxSP7.js} +2 -1
  88. package/dist/bg-BG-er0t4jTs.js +27 -0
  89. package/dist/bg-BG-fr-xfUBV.js +110 -0
  90. package/dist/{bg-BG-fgdGvtqa.js → bg-BG-z3gZQvGq.js} +6 -1
  91. package/dist/commonValidators-DM04eNpa.js +24 -0
  92. package/dist/{cs-CZ-CVpbQMSY.js → cs-CZ-B2WAqmaW.js} +9 -1
  93. package/dist/cs-CZ-BP7niQM9.js +68 -0
  94. package/dist/cs-CZ-C0sNB1Fm.js +110 -0
  95. package/dist/{cs-CZ-DwiXbzIv.js → cs-CZ-C5lyVYlZ.js} +6 -1
  96. package/dist/cs-CZ-C9FuJCsg.js +35 -0
  97. package/dist/cs-CZ-CHzJM-ii.js +13 -0
  98. package/dist/cs-CZ-CQNBae2b.js +27 -0
  99. package/dist/{cs-CZ-BEynVkgn.js → cs-CZ-CyLqoG1j.js} +2 -1
  100. package/dist/cs-CZ-D4Hg-t16.js +32 -0
  101. package/dist/cs-CZ-DNWTRefA.js +27 -0
  102. package/dist/cs-CZ-DXtJsBPz.js +24 -0
  103. package/dist/cs-CZ-hT5w5It6.js +13 -0
  104. package/dist/cs-CZ-xoLsda7i.js +13 -0
  105. package/dist/da-DK-8dk9Q_Wk.js +110 -0
  106. package/dist/da-DK-BeSNTO9k.js +35 -0
  107. package/dist/{da-DK-Y6PJ69rt.js → da-DK-CYl2jko-.js} +6 -1
  108. package/dist/da-DK-D-PlwKvZ.js +27 -0
  109. package/dist/da-DK-D-TJghBi.js +13 -0
  110. package/dist/{da-DK-DLcvdXDS.js → da-DK-D-eeokQn.js} +9 -1
  111. package/dist/da-DK-DCJhV2qS.js +32 -0
  112. package/dist/da-DK-DWA8uOd8.js +24 -0
  113. package/dist/{da-DK-DmL_Ja3L.js → da-DK-DYpfNZdP.js} +2 -1
  114. package/dist/da-DK-DZwlENGe.js +13 -0
  115. package/dist/da-DK-Dc0QYG8m.js +68 -0
  116. package/dist/da-DK-XNMYSp7w.js +13 -0
  117. package/dist/da-DK-gnPgzwrG.js +27 -0
  118. package/dist/de-DE-4GAd_srm.js +27 -0
  119. package/dist/de-DE-BI7AAdOv.js +13 -0
  120. package/dist/{de-DE-BahIk-1-.js → de-DE-BXt1K0Tr.js} +2 -1
  121. package/dist/de-DE-CCmlaL2F.js +13 -0
  122. package/dist/de-DE-CCyKie8B.js +110 -0
  123. package/dist/de-DE-D3lLuF8z.js +27 -0
  124. package/dist/de-DE-D50lGOJE.js +24 -0
  125. package/dist/de-DE-DXR3EpEc.js +13 -0
  126. package/dist/{de-DE-CKZrABo7.js → de-DE-Dcs3W1fT.js} +9 -1
  127. package/dist/{de-DE-xdQMmrrt.js → de-DE-DlUEkik0.js} +6 -1
  128. package/dist/de-DE-Dp-2BAWQ.js +35 -0
  129. package/dist/de-DE-DwOQKCuU.js +32 -0
  130. package/dist/de-DE-Dz2OsS1F.js +68 -0
  131. package/dist/{hr-HR-CNzbyo9r.js → debugStore-BvbyN1Oi.js} +4 -5
  132. package/dist/dropinUtils-wWEQXoqU.js +196 -0
  133. package/dist/el-GR-5WvkRyW5.js +35 -0
  134. package/dist/{el-GR-TZUpX1j3.js → el-GR-B90M6tcZ.js} +2 -1
  135. package/dist/el-GR-BHG69mXl.js +68 -0
  136. package/dist/el-GR-CKHMsdx2.js +24 -0
  137. package/dist/el-GR-D7zMcBtK.js +110 -0
  138. package/dist/{el-GR-C_y2406P.js → el-GR-DBum-QDu.js} +9 -1
  139. package/dist/{el-GR-DR_5DKI1.js → el-GR-DZ8GheJK.js} +6 -1
  140. package/dist/el-GR-Ddnh0NhQ.js +27 -0
  141. package/dist/el-GR-DoCIcce-.js +13 -0
  142. package/dist/el-GR-DtFE64KX.js +13 -0
  143. package/dist/el-GR-Hk4NbZSY.js +32 -0
  144. package/dist/el-GR-XRux2Wpv.js +27 -0
  145. package/dist/el-GR-kYiInIQ9.js +13 -0
  146. package/dist/en-US-B96dpVon.js +27 -0
  147. package/dist/{en-US-DI1dH0ZB.js → en-US-BCFNoF5y.js} +5 -1
  148. package/dist/en-US-BQZhzROc.js +32 -0
  149. package/dist/en-US-BwDZ0WHW.js +110 -0
  150. package/dist/{en-US-DIdQJky-.js → en-US-CzEL6t1W.js} +24 -4
  151. package/dist/en-US-D-B35AoN.js +68 -0
  152. package/dist/en-US-D2yrwtzT.js +24 -0
  153. package/dist/en-US-DYpvuCLO.js +13 -0
  154. package/dist/{en-US-nL0-_PSp.js → en-US-DdeSoN_2.js} +2 -1
  155. package/dist/{en-US-BbAzROHT.js → en-US-Dg505Oh3.js} +2 -1
  156. package/dist/{en-US-BQpgt41j.js → en-US-DjF6iC7G.js} +17 -1
  157. package/dist/es-ES-BI_jdT67.js +68 -0
  158. package/dist/es-ES-BOoPqnPI.js +32 -0
  159. package/dist/{es-ES-BPDeEYGv.js → es-ES-BhNhIf08.js} +2 -1
  160. package/dist/es-ES-C4lENXHH.js +27 -0
  161. package/dist/{es-ES-DdT2wJTP.js → es-ES-C7XjLOHi.js} +9 -1
  162. package/dist/es-ES-C9oDOVSQ.js +35 -0
  163. package/dist/es-ES-CJMsyMAc.js +13 -0
  164. package/dist/es-ES-CXDJLKAI.js +27 -0
  165. package/dist/es-ES-CnNU6AJv.js +13 -0
  166. package/dist/{es-ES-keMO-LlU.js → es-ES-D0c0MoqK.js} +6 -1
  167. package/dist/es-ES-DF_L5EDd.js +24 -0
  168. package/dist/es-ES-JvAvmB2A.js +110 -0
  169. package/dist/es-ES-yMXcOjDL.js +13 -0
  170. package/dist/et-EE--cL_YqWe.js +27 -0
  171. package/dist/et-EE-3EQr-1cj.js +27 -0
  172. package/dist/et-EE-B1KmQWmI.js +35 -0
  173. package/dist/{et-EE-DftDBzjA.js → et-EE-BMgFCxds.js} +2 -1
  174. package/dist/et-EE-BR4OXRfV.js +13 -0
  175. package/dist/{et-EE-Y890kc89.js → et-EE-BUG05EDz.js} +9 -1
  176. package/dist/et-EE-Be__VK7Y.js +32 -0
  177. package/dist/et-EE-BuBiNLCi.js +24 -0
  178. package/dist/{et-EE-CLuAFAri.js → et-EE-C4Fwyr7-.js} +6 -1
  179. package/dist/et-EE-C8RrUpLm.js +13 -0
  180. package/dist/et-EE-C_PZO2aI.js +68 -0
  181. package/dist/et-EE-SJf3_Ega.js +110 -0
  182. package/dist/et-EE-sB7wkSA3.js +13 -0
  183. package/dist/fi-FI-BbqwYcLI.js +13 -0
  184. package/dist/fi-FI-Byvvcxxq.js +27 -0
  185. package/dist/{fi-FI-DKxJM0k6.js → fi-FI-CEzjKgiz.js} +9 -1
  186. package/dist/fi-FI-Cy2hAl0B.js +110 -0
  187. package/dist/fi-FI-DH6jpo9K.js +24 -0
  188. package/dist/fi-FI-DV1etLPT.js +35 -0
  189. package/dist/{fi-FI-CBHr-_To.js → fi-FI-bRXb-Q_i.js} +6 -1
  190. package/dist/fi-FI-bZzNB1WB.js +32 -0
  191. package/dist/fi-FI-fArobrt5.js +27 -0
  192. package/dist/fi-FI-hwzizPnr.js +68 -0
  193. package/dist/fi-FI-u5GxMZsq.js +13 -0
  194. package/dist/fi-FI-xqnQ38yC.js +13 -0
  195. package/dist/{fi-FI-LpkpSl5X.js → fi-FI-ysUrBilO.js} +2 -1
  196. package/dist/{fieldConfigurations-BzmPcPW1.js → fieldConfigurations-BZuo2e0d.js} +16 -313
  197. package/dist/{pl-PL-D6heiKsH.js → form-rules-DhbF2mY4.js} +3 -5
  198. package/dist/{fr-FR-CuSchzjE.js → fr-FR-BSvSKazD.js} +2 -1
  199. package/dist/fr-FR-BSynpexF.js +13 -0
  200. package/dist/fr-FR-BmW46mYd.js +110 -0
  201. package/dist/fr-FR-BnblnBsx.js +24 -0
  202. package/dist/fr-FR-CMjrAkKl.js +13 -0
  203. package/dist/fr-FR-CYZXbwc9.js +68 -0
  204. package/dist/fr-FR-CiwkAb3E.js +27 -0
  205. package/dist/fr-FR-Cr-Y1vIy.js +13 -0
  206. package/dist/{fr-FR-BxO1IR9C.js → fr-FR-DNJiLv9b.js} +9 -1
  207. package/dist/fr-FR-DZICoAHV.js +35 -0
  208. package/dist/fr-FR-E_UubsZ-.js +27 -0
  209. package/dist/{fr-FR-B3qQW3oG.js → fr-FR-JLPKgufm.js} +6 -1
  210. package/dist/fr-FR-cTKcuHqX.js +32 -0
  211. package/dist/{getName-DN1hhEuf.js → getName-DwJ2SEhe.js} +2 -2
  212. package/dist/{hasDataChanged-Di3pJ9RD.js → hasDataChanged-qmdT2J_a.js} +2 -2
  213. package/dist/{hr-HR-DST-QbRI.js → hr-HR-BLpGb4f2.js} +2 -1
  214. package/dist/hr-HR-Bhsop3CT.js +13 -0
  215. package/dist/hr-HR-ComCqan_.js +32 -0
  216. package/dist/{hr-HR-DMV2OsPs.js → hr-HR-D26Gz-HL.js} +6 -1
  217. package/dist/hr-HR-D5V7g9H2.js +13 -0
  218. package/dist/hr-HR-D8cBxUFa.js +13 -0
  219. package/dist/hr-HR-D9bzCN_d.js +35 -0
  220. package/dist/hr-HR-De5kHU8U.js +24 -0
  221. package/dist/hr-HR-DtfHQVe0.js +27 -0
  222. package/dist/hr-HR-TVOgDkBf.js +27 -0
  223. package/dist/{hr-HR-DghVS0jH.js → hr-HR-WMnlxMEY.js} +9 -1
  224. package/dist/hr-HR-bE6cvRCQ.js +68 -0
  225. package/dist/hr-HR-c1Si_0s4.js +110 -0
  226. package/dist/{hu-HU-CJh8OY-w.js → hu-HU-B2nrl0pw.js} +9 -1
  227. package/dist/hu-HU-BVfkOdJe.js +13 -0
  228. package/dist/{hu-HU-CPWGnq22.js → hu-HU-BZCFneWx.js} +6 -1
  229. package/dist/hu-HU-BcogZby3.js +24 -0
  230. package/dist/hu-HU-C5p7RWWD.js +35 -0
  231. package/dist/{hu-HU-BgHugMwG.js → hu-HU-Ca9Hex26.js} +2 -1
  232. package/dist/hu-HU-CibGC8KY.js +110 -0
  233. package/dist/hu-HU-D2j1ISVk.js +13 -0
  234. package/dist/hu-HU-DG-NUDx4.js +68 -0
  235. package/dist/hu-HU-DRONW_47.js +27 -0
  236. package/dist/hu-HU-DUGz5q5D.js +32 -0
  237. package/dist/hu-HU-I4-KFzvz.js +27 -0
  238. package/dist/hu-HU-hbVM6tMS.js +13 -0
  239. package/dist/{iframeWidget-CdgdGJSA.js → iframeWidget-Bdf5GkVq.js} +4 -4
  240. package/dist/{isEmpty-Cg1sEY56.js → isEmpty-DWL1114W.js} +2 -2
  241. package/dist/it-IT-BMjuva_2.js +110 -0
  242. package/dist/{it-IT-vJt2CGXz.js → it-IT-BRmX2jEi.js} +9 -1
  243. package/dist/it-IT-C7Sg1k4p.js +13 -0
  244. package/dist/it-IT-C_651bEP.js +13 -0
  245. package/dist/it-IT-Ckv8Ce4e.js +24 -0
  246. package/dist/it-IT-CwA8megO.js +13 -0
  247. package/dist/it-IT-DERflsUd.js +32 -0
  248. package/dist/it-IT-DIbH-udG.js +27 -0
  249. package/dist/it-IT-DuBLJIdz.js +27 -0
  250. package/dist/it-IT-Erh1DIlj.js +68 -0
  251. package/dist/{it-IT-p_DER3dq.js → it-IT-Qfzc8jnW.js} +2 -1
  252. package/dist/{it-IT-CRmaykgQ.js → it-IT-mScKLwBR.js} +6 -1
  253. package/dist/it-IT-mYyg3XGz.js +35 -0
  254. package/dist/ja-JP-BSYrPZsE.js +35 -0
  255. package/dist/ja-JP-BoxeBgOv.js +32 -0
  256. package/dist/{ja-JP-DT0qGp0i.js → ja-JP-CCnzjx-u.js} +32 -2
  257. package/dist/{ja-JP-C870wgmw.js → ja-JP-CHQ64lw1.js} +2 -1
  258. package/dist/ja-JP-CJ_j_HAA.js +27 -0
  259. package/dist/ja-JP-Cr_qjpZ2.js +110 -0
  260. package/dist/{ja-JP-a6UbRzaS.js → ja-JP-CvNJvxkQ.js} +22 -3
  261. package/dist/{ja-JP-DCOsVkrk.js → ja-JP-DyELKS9Q.js} +6 -1
  262. package/dist/ja-JP-FWHXsXlW.js +24 -0
  263. package/dist/ja-JP-GSbqID7o.js +13 -0
  264. package/dist/ja-JP-ThzG9vIo.js +68 -0
  265. package/dist/ja-JP-bz7ekGnF.js +27 -0
  266. package/dist/{ja-JP-Cm2wakN6.js → ja-JP-gRRH8Eph.js} +21 -13
  267. package/dist/jpAddressSchema-ULGNNt5U.js +27 -0
  268. package/dist/{localizeDateString-CjJb5ip4.js → localizeDateString--iXm1oBl.js} +1 -1
  269. package/dist/{lt-LT-Dxde15Cc.js → lt-LT-0RKZeraM.js} +2 -1
  270. package/dist/{lt-LT-CrCYV_jv.js → lt-LT-BJQDUanx.js} +9 -1
  271. package/dist/lt-LT-BLsIcCtE.js +27 -0
  272. package/dist/lt-LT-C5nNCk4_.js +13 -0
  273. package/dist/lt-LT-CBBDNCnp.js +27 -0
  274. package/dist/{lt-LT-0CK0Iin7.js → lt-LT-CLPQVRpJ.js} +6 -1
  275. package/dist/lt-LT-Ci357QYQ.js +13 -0
  276. package/dist/lt-LT-D5Rhxm1h.js +32 -0
  277. package/dist/lt-LT-DDdq07sX.js +24 -0
  278. package/dist/lt-LT-DSiutpRl.js +13 -0
  279. package/dist/lt-LT-DjNjg3Pl.js +110 -0
  280. package/dist/lt-LT-Nd1uRoIj.js +68 -0
  281. package/dist/lt-LT-i-T_HQ42.js +35 -0
  282. package/dist/{lv-LV-DDvnyHlO.js → lv-LV-Bh-WQp0K.js} +2 -1
  283. package/dist/lv-LV-BpRfRfMz.js +110 -0
  284. package/dist/lv-LV-BtX12dHJ.js +35 -0
  285. package/dist/lv-LV-C62XiDE5.js +13 -0
  286. package/dist/lv-LV-C7hMdPcY.js +27 -0
  287. package/dist/lv-LV-CEK8Re4d.js +13 -0
  288. package/dist/lv-LV-CG1zToz7.js +32 -0
  289. package/dist/lv-LV-CkyuY2ji.js +24 -0
  290. package/dist/lv-LV-CtIe38WU.js +27 -0
  291. package/dist/{lv-LV-CSxppAD_.js → lv-LV-Cu-MJMVO.js} +6 -1
  292. package/dist/lv-LV-DKhV24CI.js +68 -0
  293. package/dist/lv-LV-Dxe-A5vo.js +13 -0
  294. package/dist/{lv-LV-CaFrxG3S.js → lv-LV-h3nTokkM.js} +9 -1
  295. package/dist/mapAddressLocalizationToJpAddressSchema-vJWbpAyq.js +56 -0
  296. package/dist/{mapExistingFile-Dww-3m9M.js → mapExistingFile-Ct5Drm_t.js} +4 -4
  297. package/dist/mapJpAddressSchemaToAddressLocalizations-Btg-uZPu.js +147 -0
  298. package/dist/mapLegalEntityToIndividualOnfidoSchema-DQsaMiqB.js +203 -0
  299. package/dist/{mapTransferInstrumentToPayoutAccount-NoTqg5NI.js → mapTransferInstrumentToPayoutAccount-CRhSOuJd.js} +6 -3
  300. package/dist/nl-NL-BOJ6zuBr.js +13 -0
  301. package/dist/nl-NL-Bx5p0nXL.js +24 -0
  302. package/dist/nl-NL-CE4l8R5l.js +27 -0
  303. package/dist/nl-NL-Cjlmc0Ii.js +32 -0
  304. package/dist/{nl-NL-Uf_myU_8.js → nl-NL-D7gBNWEY.js} +2 -1
  305. package/dist/nl-NL-DOQPxTX-.js +13 -0
  306. package/dist/nl-NL-JChnFdCY.js +13 -0
  307. package/dist/nl-NL-NlkjOSYi.js +27 -0
  308. package/dist/nl-NL-O9GCHMDA.js +68 -0
  309. package/dist/nl-NL-PUQGh3Rp.js +35 -0
  310. package/dist/{nl-NL-BQJjhn7U.js → nl-NL-YzDSCWLL.js} +9 -1
  311. package/dist/nl-NL-oaBDOlm6.js +110 -0
  312. package/dist/{nl-NL-RfK34nkp.js → nl-NL-pVdpCCOx.js} +6 -1
  313. package/dist/no-NO--OoWld_l.js +13 -0
  314. package/dist/no-NO-B1_YJlMP.js +27 -0
  315. package/dist/no-NO-BTrfxWS7.js +110 -0
  316. package/dist/{no-NO-CSia2Bd5.js → no-NO-Big2B13b.js} +9 -1
  317. package/dist/no-NO-Bs3-6MDM.js +24 -0
  318. package/dist/{no-NO-DZ1y_9mq.js → no-NO-C-gCYc9q.js} +2 -1
  319. package/dist/no-NO-CA1aR6Wh.js +68 -0
  320. package/dist/{no-NO-BWzGost-.js → no-NO-CRULNwNn.js} +6 -1
  321. package/dist/no-NO-CY_XHrYd.js +32 -0
  322. package/dist/no-NO-Cp3-tDMw.js +13 -0
  323. package/dist/no-NO-Crlsj6HG.js +27 -0
  324. package/dist/no-NO-CuwTDFSf.js +13 -0
  325. package/dist/no-NO-kPnbGnBM.js +35 -0
  326. package/dist/pl-PL-1-MrLPXu.js +13 -0
  327. package/dist/pl-PL-BKDK0_G8.js +68 -0
  328. package/dist/pl-PL-BzhEoDb5.js +24 -0
  329. package/dist/pl-PL-C-MmQaeR.js +35 -0
  330. package/dist/pl-PL-C72GTDxW.js +110 -0
  331. package/dist/{pl-PL-6WyUmy0K.js → pl-PL-CL483jMb.js} +9 -1
  332. package/dist/pl-PL-C_MvVzPy.js +32 -0
  333. package/dist/pl-PL-CtDHmbhp.js +13 -0
  334. package/dist/{pl-PL-DFrOIiCG.js → pl-PL-CxCiWdAF.js} +6 -1
  335. package/dist/pl-PL-DGYFY42P.js +27 -0
  336. package/dist/pl-PL-DYxD6VJ_.js +27 -0
  337. package/dist/pl-PL-DtJ3sgVO.js +13 -0
  338. package/dist/{pl-PL-B1tVRX3A.js → pl-PL-LnVPufjb.js} +2 -1
  339. package/dist/process-field-configurations-B1Iwtpx2.js +304 -0
  340. package/dist/pt-BR-BfxgHKY4.js +27 -0
  341. package/dist/pt-BR-Br_cHzGx.js +13 -0
  342. package/dist/pt-BR-C0I_kTQ6.js +13 -0
  343. package/dist/pt-BR-CBAe0SnK.js +32 -0
  344. package/dist/pt-BR-Co8OqKh-.js +27 -0
  345. package/dist/pt-BR-CtFCi7U4.js +110 -0
  346. package/dist/pt-BR-DJOzf0y2.js +53 -0
  347. package/dist/pt-BR-DSENwwGu.js +24 -0
  348. package/dist/pt-BR-DnKEuslh.js +13 -0
  349. package/dist/pt-BR-Dw0UZ-Od.js +35 -0
  350. package/dist/pt-BR-NtLaWlnZ.js +68 -0
  351. package/dist/{pt-BR-CxjlToN4.js → pt-BR-apPtB2cK.js} +6 -1
  352. package/dist/{pt-BR-BD3-Ecm8.js → pt-BR-ur86nRrK.js} +2 -1
  353. package/dist/{pt-PT-CWYxqUbN.js → pt-PT-B3qoJ3Fr.js} +9 -1
  354. package/dist/pt-PT-Bf4IV7wp.js +13 -0
  355. package/dist/pt-PT-CIo3mlXL.js +24 -0
  356. package/dist/pt-PT-CLwCij2I.js +13 -0
  357. package/dist/{pt-PT-DpBfkgVw.js → pt-PT-CVNEcs32.js} +2 -1
  358. package/dist/{pt-PT-CU13UUwT.js → pt-PT-Coa6J7SM.js} +6 -1
  359. package/dist/pt-PT-DSxxVA0f.js +68 -0
  360. package/dist/pt-PT-DfVjLaAU.js +35 -0
  361. package/dist/pt-PT-Dm5DRDrd.js +32 -0
  362. package/dist/pt-PT-TKg5FLat.js +27 -0
  363. package/dist/pt-PT-XAn7WGle.js +110 -0
  364. package/dist/pt-PT-cjbtYBUX.js +13 -0
  365. package/dist/pt-PT-pKLoM66X.js +27 -0
  366. package/dist/resolveEnvironment-DC9P7X3D.js +164 -0
  367. package/dist/ro-RO-3rOfS17N.js +27 -0
  368. package/dist/ro-RO-4j2I7YM7.js +13 -0
  369. package/dist/ro-RO-B5YT9vP-.js +32 -0
  370. package/dist/{ro-RO-B2u2q1Ez.js → ro-RO-BTqq5BPM.js} +6 -1
  371. package/dist/ro-RO-Bybq8JFn.js +68 -0
  372. package/dist/ro-RO-CGhIjlpU.js +13 -0
  373. package/dist/ro-RO-Cmk-sVDr.js +13 -0
  374. package/dist/{ro-RO-BWQeseQ_.js → ro-RO-Ct_BJvsc.js} +9 -1
  375. package/dist/ro-RO-D3rQ93wa.js +27 -0
  376. package/dist/ro-RO-ECJHARCT.js +35 -0
  377. package/dist/ro-RO-ILTvlS9i.js +24 -0
  378. package/dist/{ro-RO-BF1Q86nQ.js → ro-RO-i7lojG2G.js} +2 -1
  379. package/dist/ro-RO-qX8X1Q1m.js +110 -0
  380. package/dist/{rules-4TEUMKya.js → rules-CzXw9tws.js} +10 -6
  381. package/dist/{sk-SK-Rd06VJ5k.js → sk-SK-B5brxU1N.js} +2 -1
  382. package/dist/sk-SK-Bo5nvxWQ.js +13 -0
  383. package/dist/sk-SK-C5Qmv4E6.js +13 -0
  384. package/dist/sk-SK-C6rMIxpz.js +68 -0
  385. package/dist/sk-SK-CjdK4BKW.js +110 -0
  386. package/dist/sk-SK-CjrLvDMx.js +27 -0
  387. package/dist/sk-SK-CmH1I1tp.js +27 -0
  388. package/dist/sk-SK-Cv23cDQO.js +24 -0
  389. package/dist/sk-SK-Do6CKNU4.js +13 -0
  390. package/dist/{sk-SK-DnNuh37c.js → sk-SK-FGK1FMMO.js} +9 -1
  391. package/dist/sk-SK-S6iF1WDH.js +32 -0
  392. package/dist/sk-SK-rSmwmSCa.js +35 -0
  393. package/dist/{sk-SK-BWA3fAcI.js → sk-SK-welR06By.js} +6 -1
  394. package/dist/{sl-SI-B7zbwoZn.js → sl-SI-B9N6vA08.js} +6 -1
  395. package/dist/sl-SI-BZpXMHiG.js +13 -0
  396. package/dist/sl-SI-C-C-KJCX.js +27 -0
  397. package/dist/{sl-SI-BuIFB5zU.js → sl-SI-CUCrzJQv.js} +2 -1
  398. package/dist/sl-SI-CedEO3kf.js +35 -0
  399. package/dist/sl-SI-CrTRlNnN.js +13 -0
  400. package/dist/{sl-SI-D212isFw.js → sl-SI-Cz28AFTz.js} +9 -1
  401. package/dist/sl-SI-DEaeEVKB.js +24 -0
  402. package/dist/sl-SI-DqUEy_Cm.js +32 -0
  403. package/dist/sl-SI-cY-L2ma-.js +13 -0
  404. package/dist/sl-SI-hnlbW1OT.js +27 -0
  405. package/dist/sl-SI-lPxRRPsh.js +110 -0
  406. package/dist/sl-SI-tPwbFvOI.js +68 -0
  407. package/dist/style.css +696 -597
  408. package/dist/styles-CLV89_hH.js +696 -597
  409. package/dist/sv-SE-7Cbo1oic.js +27 -0
  410. package/dist/sv-SE-BHfydid5.js +27 -0
  411. package/dist/sv-SE-BPpQ-05i.js +110 -0
  412. package/dist/sv-SE-BYUoi-08.js +35 -0
  413. package/dist/sv-SE-BtwPrLEA.js +13 -0
  414. package/dist/{sv-SE-BwJgkIDf.js → sv-SE-C6uPh9g5.js} +2 -1
  415. package/dist/sv-SE-CRBRuE8Z.js +32 -0
  416. package/dist/sv-SE-CXaMlJCI.js +24 -0
  417. package/dist/{sv-SE-Hi07uLM9.js → sv-SE-D6al0j6W.js} +6 -1
  418. package/dist/{sv-SE-Ca1bxZf3.js → sv-SE-DLl7OGxl.js} +9 -1
  419. package/dist/sv-SE-DsPdegWB.js +13 -0
  420. package/dist/sv-SE-K1QT1cOt.js +68 -0
  421. package/dist/sv-SE-WPziDPQa.js +13 -0
  422. package/dist/types/api/businessLines/businessLines.types.d.ts +10 -0
  423. package/dist/types/api/businessLines/useBusinessLines.d.ts +4 -2
  424. package/dist/types/api/businessLines/useCreateBusinessLine.d.ts +7 -0
  425. package/dist/types/api/companySearch/useCompanySearch.d.ts +1 -0
  426. package/dist/types/api/configurations/useScenarios.d.ts +12 -12
  427. package/dist/types/api/legalEntity/useLegalEntity.d.ts +16 -16
  428. package/dist/types/components/BankAccount/fields/BankAccountFormat/types.d.ts +2 -1
  429. package/dist/types/components/BankAccount/fields/PreferredCurrency/PreferredCurrency.d.ts +10 -0
  430. package/dist/types/components/BankAccount/forms/PayoutAccount/payoutAccountFormat.d.ts +1 -1
  431. package/dist/types/components/BankAccount/forms/PayoutAccount/types.d.ts +2 -0
  432. package/dist/types/components/BankAccount/forms/PayoutCountryDetails/PayoutCountryDetails.d.ts +3 -0
  433. package/dist/types/components/BankAccount/forms/PayoutCountryDetails/types.d.ts +11 -0
  434. package/dist/types/components/BankAccount/forms/PayoutDetails/PayoutDetails.d.ts +6 -0
  435. package/dist/types/components/BankAccount/forms/PayoutDetails/types.d.ts +2 -0
  436. package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/payoutVerificationMethodMetadata.d.ts +4 -4
  437. package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/utils.d.ts +2 -0
  438. package/dist/types/components/BankAccount/mapping/mapPayoutAccountSchemaToApiBankAccount.d.ts +3 -2
  439. package/dist/types/components/BankAccount/mapping/mapPayoutDetailsToTransferInstrument.d.ts +2 -1
  440. package/dist/types/components/BankAccount/mapping/mapTransferInstrumentToPayoutAccount.d.ts +1 -1
  441. package/dist/types/components/BankAccount/mapping/payoutKeyMappings.d.ts +53 -51
  442. package/dist/types/components/BankAccount/pages/PayoutDetailsPage.d.ts +1 -1
  443. package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/payoutDetailsFormConfig.d.ts +1 -1
  444. package/dist/types/components/BankAccount/utils/payoutAccountUtil.d.ts +3 -2
  445. package/dist/types/components/Business/forms/BasicInformation/BasicInformationMultiform.d.ts +5 -3
  446. package/dist/types/components/Business/forms/RegistrationDocument/types.d.ts +3 -3
  447. package/dist/types/components/Business/forms/TaxDocument/types.d.ts +3 -3
  448. package/dist/types/components/Business/pages/RootBusinessDetailsPage.d.ts +1 -1
  449. package/dist/types/components/Business/tasks/BusinessDetailsDropin/businessDetailsStore.d.ts +5 -4
  450. package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +2 -3
  451. package/dist/types/components/Business/tasks/BusinessDetailsDropin/utils.d.ts +3 -3
  452. package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/BusinessDetailsMultiform.d.ts +2 -1
  453. package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/utils.d.ts +0 -2
  454. package/dist/types/components/Business/utils/companyTypeMetadata.d.ts +3 -3
  455. package/dist/types/components/BusinessLines/fields/WebDataField/types.d.ts +2 -4
  456. package/dist/types/components/BusinessLines/tasks/BusinessLines/ExistingBusinessLines/BusinessLineModal.d.ts +5 -0
  457. package/dist/types/components/BusinessLines/tasks/BusinessLines/ExistingBusinessLines/ExistingBusinessLines.d.ts +8 -0
  458. package/dist/types/components/BusinessLines/tasks/utils.d.ts +13 -4
  459. package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +151 -151
  460. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingBasicCompanyInformation.d.ts +0 -1
  461. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingBusinessInformation.d.ts +0 -1
  462. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingFinancialInformation.d.ts +0 -1
  463. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingOwnershipStructure.d.ts +0 -1
  464. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingRegisteredAddress.d.ts +0 -1
  465. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/types.d.ts +7 -5
  466. package/dist/types/components/EFP/tasks/SourceOfFundsDropin/sofStore.d.ts +1 -1
  467. package/dist/types/components/EFP/tasks/TaxReportingDropin/taxClassificationStore.d.ts +1 -1
  468. package/dist/types/components/EFP/tasks/TaxReportingDropin/utils.d.ts +6 -6
  469. package/dist/types/components/EmbeddedDropins/BusinessFinancingComponent/BusinessFinancingComponent.d.ts +1 -1
  470. package/dist/types/components/EmbeddedDropins/BusinessFinancingComponent/utils.d.ts +3 -3
  471. package/dist/types/components/EmbeddedDropins/ViewVerificationStatus/content.d.ts +3 -3
  472. package/dist/types/components/Individual/fields/NameFields/NameFields.d.ts +3 -0
  473. package/dist/types/components/Individual/forms/Individual/IdVerification/idVerificationProviderId.d.ts +1 -1
  474. package/dist/types/components/Individual/forms/Individual/IdVerificationMethod/idVerificationMethodMetadata.d.ts +3 -3
  475. package/dist/types/components/Individual/forms/IndividualOnfido/IdNowVerificationModal/isIdNowModalOpen.d.ts +3 -3
  476. package/dist/types/components/Individual/forms/IndividualOnfido/UboQuestionnaire/UboQuestionnaire.types.d.ts +4 -1
  477. package/dist/types/components/Individual/forms/IndividualOnfido/UboQuestionnaire/UboQuestionnaireModalContent.d.ts +3 -1
  478. package/dist/types/components/Individual/helpers/shouldShowMotionCapture.d.ts +2 -2
  479. package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerDetails/DecisionMakerDetails.d.ts +1 -1
  480. package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerDetails/DecisionMakerDetails.types.d.ts +2 -0
  481. package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerDetails/utils.d.ts +56 -0
  482. package/dist/types/components/Individual/tasks/DecisionMakers/RemediationAlerts/RemediationAlerts.d.ts +7 -0
  483. package/dist/types/components/Individual/tasks/DecisionMakers/RemediationAlerts/remediation.config.d.ts +19 -0
  484. package/dist/types/components/Individual/tasks/DecisionMakers/utils.d.ts +3 -0
  485. package/dist/types/components/Individual/tasks/IndividualOnfidoDropin/IndividualOnfidoStore.d.ts +1 -1
  486. package/dist/types/components/Shared/EntityAssociation/EntityAssociation.d.ts +1 -1
  487. package/dist/types/components/Shared/EntityAssociation/types.d.ts +2 -4
  488. package/dist/types/components/Shared/devex/DebugListener/DebugFormData.d.ts +1 -0
  489. package/dist/types/components/Shared/devex/DebugListener/debugStore.d.ts +5 -0
  490. package/dist/types/components/Shared/fields/LocalizedLegalCompanyNameField/fieldConfig.d.ts +4 -4
  491. package/dist/types/components/Shared/forms/Address/localized/jp/JpAddress.d.ts +1 -1
  492. package/dist/types/components/Shared/forms/Address/localized/jp/mapAddressLocalizationToJpAddressSchema.d.ts +3 -0
  493. package/dist/types/components/Shared/forms/Address/localized/jp/mapJpAddressSchemaToAddressLocalizations.d.ts +3 -0
  494. package/dist/types/components/Shared/forms/Address/localized/jp/mapJpAddressSummary.d.ts +4 -0
  495. package/dist/types/components/Shared/forms/Address/utils.d.ts +3 -2
  496. package/dist/types/components/Shared/forms/FinancialInformation/formatFinancialInformationSummary.d.ts +1 -2
  497. package/dist/types/components/Shared/forms/RegistrationAddress/types.d.ts +3 -2
  498. package/dist/types/components/Shared/tasks/TaskList/TaskList.d.ts +3 -1
  499. package/dist/types/components/Shared/tasks/TaskList/TaskListItem.d.ts +1 -1
  500. package/dist/types/components/Shared/tasks/TaskList/types.d.ts +1 -4
  501. package/dist/types/components/Shared/tasks/TaskList/utils.d.ts +1 -1
  502. package/dist/types/components/SoleProprietorship/pages/SoleProprietorshipPage.d.ts +1 -2
  503. package/dist/types/components/Trust/pages/TrustMemberCompanyPage.d.ts +1 -2
  504. package/dist/types/components/Trust/tasks/RoleAndTypeDropin/formatRoleAndEntityTypeSummary.d.ts +2 -2
  505. package/dist/types/components/UnincorporatedPartnership/pages/UnincorporatedPartnershipMemberCompanyPage.d.ts +1 -2
  506. package/dist/types/components/ui/atoms/Header/Header.d.ts +12 -0
  507. package/dist/types/components/ui/atoms/ListItem/ListItem.d.ts +1 -2
  508. package/dist/types/components/ui/atoms/RadioGroupCard/RadioGroupCard.d.ts +3 -4
  509. package/dist/types/components/ui/atoms/RadioGroupCard/RadioGroupCard.types.d.ts +8 -9
  510. package/dist/types/components/ui/layout/StackLayout/StackLayout.d.ts +29 -7
  511. package/dist/types/components/ui/molecules/Card/Card.d.ts +1 -1
  512. package/dist/types/components/ui/molecules/Card/types.d.ts +1 -0
  513. package/dist/types/components/ui/molecules/EmbeddedStatus/EmbeddedStatus.d.ts +2 -23
  514. package/dist/types/components/ui/molecules/EmbeddedStatus/statusToTag.d.ts +3 -3
  515. package/dist/types/components/ui/molecules/EmbeddedStatus/types.d.ts +23 -0
  516. package/dist/types/context/ExperimentContext/types.d.ts +4 -12
  517. package/dist/types/context/I18nProvider/I18nContext.d.ts +3 -0
  518. package/dist/types/context/SettingsContext/types.d.ts +2 -2
  519. package/dist/types/core/models/api/legal-entity-association.d.ts +1 -1
  520. package/dist/types/core/models/api/source-of-funds.d.ts +5 -0
  521. package/dist/types/core/models/api/transfer-instrument.d.ts +2 -0
  522. package/dist/types/core/process-field-configurations.d.ts +2 -2
  523. package/dist/types/datasets/generators/getAccountFormatForCountry.d.ts +1 -0
  524. package/dist/types/hooks/useLegalCompanyNameField/useLegalCompanyNameField.d.ts +6 -8
  525. package/dist/types/hooks/useUboQuestionnaire.d.ts +25 -0
  526. package/dist/types/language/Language.d.ts +10 -0
  527. package/dist/types/language/types.d.ts +15 -1
  528. package/dist/types/stores/globalStore/taskTypes.d.ts +1 -1
  529. package/dist/types/{core → utils}/analytics.d.ts +5 -5
  530. package/dist/types/utils/entityStatusUtil.d.ts +1 -1
  531. package/dist/types/utils/getSSNType.d.ts +1 -0
  532. package/dist/types/utils/textTransformation/toFullWidth.d.ts +6 -0
  533. package/dist/types/utils/translation.d.ts +1 -0
  534. package/dist/{types-IWh9Nm-W.js → types-28yvE9dj.js} +2 -2
  535. package/dist/{types-Dsz7b4S_.js → types-BzOpGekG.js} +2 -2
  536. package/dist/{types-CAznNNSI.js → types-DHmyPbAn.js} +5 -13
  537. package/dist/{useAssociatedLegalEntity-CPl7E0oh.js → useAssociatedLegalEntity-Cd77TYXt.js} +1 -1
  538. package/dist/{useDataset-CYBhIC5y.js → useDataset-B-72Ufk7.js} +3 -3
  539. package/dist/{useForm-NtB5fMq5.js → useForm-Aw38WiTE.js} +8 -79
  540. package/dist/useFormContext-Bx1n-f4V.js +222 -0
  541. package/dist/{useGlobalData-COgPG9qd.js → useGlobalData-BYJWYYpf.js} +10 -11
  542. package/dist/{RadioGroup-QZCH1TCn.js → useMultiForm-D-wGVJq1.js} +6 -342
  543. package/dist/{useOnboardingStatus-B8yCxKXz.js → useOnboardingStatus-AbPudgMj.js} +1 -1
  544. package/dist/{useScenarios-DesE_Dem.js → useScenarios-CEHvpucH.js} +2 -2
  545. package/dist/{useTermsOfServiceStatus-qtseJuA8.js → useTermsOfServiceStatus-BugRyfkQ.js} +1 -1
  546. package/dist/{useToastContext-D4w2gBxd.js → useToastContext-D58NfzLh.js} +2 -5
  547. package/dist/{useUnincorporatedPartnershipMembers-FOg1r690.js → useUnincorporatedPartnershipMembers-BOfx-rWR.js} +5 -5
  548. package/dist/{utils-BnQGsYPp.js → utils-D-PqLpBS.js} +2 -2
  549. package/dist/{utils-B1i9qK_1.js → utils-JAm-rEQS.js} +10 -10
  550. package/dist/{utils-BMvr9mIu.js → utils-qNiMqbmo.js} +16 -10
  551. package/dist/{validate-C6-L7Vfa.js → validate-6QHmaW1O.js} +3 -6
  552. package/dist/{validate-anwsdbQz.js → validate-9J9pJpyR.js} +8 -8
  553. package/dist/{validate-BiuAh7Ub.js → validate-BY5vrcXH.js} +2 -2
  554. package/dist/{validationError-zbgp4iB7.js → validationError-kAn6qx2R.js} +2 -2
  555. package/package.json +70 -70
  556. package/dist/BusinessFinancingComponent-BdV2XNEs.js +0 -45
  557. package/dist/BusinessFinancingPage-CutMOZIo.js +0 -40
  558. package/dist/CreateIndividualComponent-DcwNaN_i.js +0 -72
  559. package/dist/CreateTransferInstrumentComponent-BFYc-5Zc.js +0 -67
  560. package/dist/DecisionMakers-c18dspZ1.js +0 -593
  561. package/dist/ManageIndividualComponent-DBe5ValD.js +0 -47
  562. package/dist/ManageTermsOfServiceComponent-5GHjPbHb.js +0 -47
  563. package/dist/RootBusinessDetailsPage-Cy5mUuKv.js +0 -1915
  564. package/dist/SoleProprietorshipPage-XnNdoc8n.js +0 -50
  565. package/dist/TaskStatusIndicator-CEZcV_gi.js +0 -69
  566. package/dist/TrustMemberCompanyPage-DVm9LzCY.js +0 -60
  567. package/dist/TrustMemberIndividualPage-BqncnJnj.js +0 -66
  568. package/dist/UnincorporatedPartnershipMemberCompanyPage-DMBIT2KR.js +0 -64
  569. package/dist/analytics-B9jlnux-.js +0 -61
  570. package/dist/bg-BG-9uVrFuHv.js +0 -23
  571. package/dist/bg-BG-B0-ZcjR0.js +0 -22
  572. package/dist/bg-BG-Cp58y2fj.js +0 -13
  573. package/dist/bg-BG-Cr0ewJCW.js +0 -13
  574. package/dist/bg-BG-D5192UVe.js +0 -35
  575. package/dist/bg-BG-ZJvmfx01.js +0 -13
  576. package/dist/bg-BG-hFblesn-.js +0 -15
  577. package/dist/cs-CZ-7xfNBIeH.js +0 -13
  578. package/dist/cs-CZ-B8IPRc47.js +0 -15
  579. package/dist/cs-CZ-DMwpeH56.js +0 -13
  580. package/dist/cs-CZ-DOqH0WeT.js +0 -35
  581. package/dist/cs-CZ-De4wbl1W.js +0 -13
  582. package/dist/cs-CZ-Dk1ePReM.js +0 -22
  583. package/dist/cs-CZ-Wzc382q6.js +0 -23
  584. package/dist/da-DK-B45X2VaJ.js +0 -35
  585. package/dist/da-DK-BK6TE3SH.js +0 -13
  586. package/dist/da-DK-BTpZzEgA.js +0 -15
  587. package/dist/da-DK-CeNMXUfE.js +0 -23
  588. package/dist/da-DK-DC8dAHWf.js +0 -13
  589. package/dist/da-DK-DStNe471.js +0 -22
  590. package/dist/da-DK-R0sNbjuQ.js +0 -13
  591. package/dist/de-DE-CGoBPCPv.js +0 -22
  592. package/dist/de-DE-CWvgMDqU.js +0 -35
  593. package/dist/de-DE-CY7fT1B5.js +0 -13
  594. package/dist/de-DE-D9r_yUSr.js +0 -13
  595. package/dist/de-DE-DjOUNvp6.js +0 -15
  596. package/dist/de-DE-JI-7mvxy.js +0 -23
  597. package/dist/de-DE-ZQioXTGO.js +0 -13
  598. package/dist/el-GR-B06F8VNw.js +0 -13
  599. package/dist/el-GR-B69zcWyB.js +0 -22
  600. package/dist/el-GR-C3rkK_oc.js +0 -35
  601. package/dist/el-GR-C7ThPKtr.js +0 -13
  602. package/dist/el-GR-Cu9HwD-f.js +0 -15
  603. package/dist/el-GR-DfNOPkLq.js +0 -23
  604. package/dist/el-GR-kj1-bNjH.js +0 -13
  605. package/dist/en-US-BTYdAWXp.js +0 -15
  606. package/dist/en-US-BaWkkHh3.js +0 -13
  607. package/dist/en-US-DHq7VYFs.js +0 -23
  608. package/dist/es-ES-CKMfS8Yy.js +0 -22
  609. package/dist/es-ES-Cj7q7fWO.js +0 -15
  610. package/dist/es-ES-D6Uauj9W.js +0 -13
  611. package/dist/es-ES-DKCCgVF8.js +0 -35
  612. package/dist/es-ES-DOVPTeyf.js +0 -23
  613. package/dist/es-ES-Dm8otLm9.js +0 -13
  614. package/dist/es-ES-XCII5d8J.js +0 -13
  615. package/dist/et-EE-BJIsPOnh.js +0 -23
  616. package/dist/et-EE-Bc6ioJRG.js +0 -35
  617. package/dist/et-EE-DHwaH1by.js +0 -13
  618. package/dist/et-EE-DNcqO4R9.js +0 -13
  619. package/dist/et-EE-Dor3enPS.js +0 -15
  620. package/dist/et-EE-Dw-aPF7J.js +0 -22
  621. package/dist/et-EE-XPQ-Sf9x.js +0 -13
  622. package/dist/fi-FI-67pS4_t6.js +0 -13
  623. package/dist/fi-FI-BNcnKrJ9.js +0 -15
  624. package/dist/fi-FI-CLg2__EV.js +0 -13
  625. package/dist/fi-FI-D522KHGk.js +0 -23
  626. package/dist/fi-FI-DTgF3AuK.js +0 -13
  627. package/dist/fi-FI-Hhku9Lmc.js +0 -35
  628. package/dist/fi-FI-REYOX46I.js +0 -22
  629. package/dist/fr-FR-BYuKsZIb.js +0 -35
  630. package/dist/fr-FR-BZbWBKOT.js +0 -13
  631. package/dist/fr-FR-Bn3D6mmY.js +0 -15
  632. package/dist/fr-FR-CsogZlc6.js +0 -13
  633. package/dist/fr-FR-D7U2da1i.js +0 -13
  634. package/dist/fr-FR-D9qaP6nx.js +0 -22
  635. package/dist/fr-FR-DInQKkTd.js +0 -23
  636. package/dist/hr-HR-B3boX_dq.js +0 -13
  637. package/dist/hr-HR-BVzZeaDc.js +0 -13
  638. package/dist/hr-HR-CJ5rmUrZ.js +0 -13
  639. package/dist/hr-HR-CPO5Yw2B.js +0 -35
  640. package/dist/hr-HR-CbxEvbrE.js +0 -22
  641. package/dist/hr-HR-DzS44Gpv.js +0 -23
  642. package/dist/hu-HU-BJpO-WrQ.js +0 -13
  643. package/dist/hu-HU-BSOiZA7a.js +0 -15
  644. package/dist/hu-HU-CX5vJbE8.js +0 -13
  645. package/dist/hu-HU-CYfNXKwk.js +0 -13
  646. package/dist/hu-HU-D0C6UfXB.js +0 -22
  647. package/dist/hu-HU-mo_0ULJG.js +0 -35
  648. package/dist/hu-HU-xCvNM5TU.js +0 -23
  649. package/dist/it-IT-5QHf-hkt.js +0 -13
  650. package/dist/it-IT-Biduphjt.js +0 -22
  651. package/dist/it-IT-Cepap1v0.js +0 -13
  652. package/dist/it-IT-CjEYONJg.js +0 -23
  653. package/dist/it-IT-Dn9AGEIq.js +0 -13
  654. package/dist/it-IT-DvM-9LpM.js +0 -15
  655. package/dist/it-IT-Nl57jui-.js +0 -35
  656. package/dist/ja-JP-Ajo-tIow.js +0 -23
  657. package/dist/ja-JP-B2txEVPx.js +0 -22
  658. package/dist/ja-JP-D3oQAH7z.js +0 -35
  659. package/dist/ja-JP-DRJ0RpUn.js +0 -13
  660. package/dist/ja-JP-GXkLvnQ4.js +0 -15
  661. package/dist/lt-LT-3rmXgF6K.js +0 -13
  662. package/dist/lt-LT-B6CJ4ULI.js +0 -23
  663. package/dist/lt-LT-CVasDmF3.js +0 -35
  664. package/dist/lt-LT-C_YMgjp9.js +0 -22
  665. package/dist/lt-LT-DNjXmQPv.js +0 -15
  666. package/dist/lt-LT-Dsy0UVdI.js +0 -13
  667. package/dist/lt-LT-lJLUJnzd.js +0 -13
  668. package/dist/lv-LV-B3sT3_cw.js +0 -22
  669. package/dist/lv-LV-BiilWzcg.js +0 -13
  670. package/dist/lv-LV-CBex8RS9.js +0 -13
  671. package/dist/lv-LV-ChOoZuhc.js +0 -15
  672. package/dist/lv-LV-DPZgF65i.js +0 -13
  673. package/dist/lv-LV-DTtuyfHS.js +0 -23
  674. package/dist/lv-LV-Sbsv8-nD.js +0 -35
  675. package/dist/mapScriptLocalization-BXWQCCfg.js +0 -72
  676. package/dist/nl-NL-BHkRnVrj.js +0 -35
  677. package/dist/nl-NL-BHqiO21q.js +0 -15
  678. package/dist/nl-NL-BIcLB7e6.js +0 -13
  679. package/dist/nl-NL-CU6c8oyY.js +0 -13
  680. package/dist/nl-NL-DKYvsnqM.js +0 -13
  681. package/dist/nl-NL-G1wVnmzT.js +0 -22
  682. package/dist/nl-NL-Zcq0bXd-.js +0 -23
  683. package/dist/no-NO-BTtAuqCb.js +0 -22
  684. package/dist/no-NO-BWpBc9_J.js +0 -13
  685. package/dist/no-NO-Bj0_2wjm.js +0 -13
  686. package/dist/no-NO-BxReX6oF.js +0 -23
  687. package/dist/no-NO-CKT9kLAH.js +0 -15
  688. package/dist/no-NO-YuIAbtuI.js +0 -13
  689. package/dist/no-NO-kaAdT9B8.js +0 -35
  690. package/dist/pl-PL--qPaNyJD.js +0 -22
  691. package/dist/pl-PL-B87v7Wzw.js +0 -13
  692. package/dist/pl-PL-B8pWxq6T.js +0 -13
  693. package/dist/pl-PL-B9eq4QTe.js +0 -13
  694. package/dist/pl-PL-DD8JN4Qf.js +0 -35
  695. package/dist/pl-PL-T6uD5--R.js +0 -23
  696. package/dist/pt-BR-BljlblJ5.js +0 -23
  697. package/dist/pt-BR-CI2ZzGeN.js +0 -15
  698. package/dist/pt-BR-Cmr5LoAm.js +0 -22
  699. package/dist/pt-BR-CrKxuloz.js +0 -13
  700. package/dist/pt-BR-DMCle1o_.js +0 -30
  701. package/dist/pt-BR-DeDXIlM_.js +0 -35
  702. package/dist/pt-BR-DtLKiYpp.js +0 -60
  703. package/dist/pt-PT-BNJcehJa.js +0 -13
  704. package/dist/pt-PT-Cu735tNP.js +0 -13
  705. package/dist/pt-PT-D2elvnDU.js +0 -15
  706. package/dist/pt-PT-Dk48OVtf.js +0 -22
  707. package/dist/pt-PT-Gsd7I9Ff.js +0 -13
  708. package/dist/pt-PT-N0njcfLO.js +0 -23
  709. package/dist/pt-PT-Xm-pm3mb.js +0 -35
  710. package/dist/resolveEnvironment-DTf0YGQw.js +0 -84
  711. package/dist/ro-RO-B4ASHhK6.js +0 -13
  712. package/dist/ro-RO-B75duQ_N.js +0 -13
  713. package/dist/ro-RO-BLuOjrS0.js +0 -22
  714. package/dist/ro-RO-C3m6aJVP.js +0 -35
  715. package/dist/ro-RO-DL9V1CMj.js +0 -15
  716. package/dist/ro-RO-DkHxxgVT.js +0 -13
  717. package/dist/ro-RO-Ic1SzBgx.js +0 -23
  718. package/dist/sk-SK-BSioQTMW.js +0 -15
  719. package/dist/sk-SK-BVc-vNQm.js +0 -35
  720. package/dist/sk-SK-C1Ky2nl_.js +0 -22
  721. package/dist/sk-SK-CiD0FeLN.js +0 -23
  722. package/dist/sk-SK-Cv76Qa3V.js +0 -13
  723. package/dist/sk-SK-DUZblaeq.js +0 -13
  724. package/dist/sk-SK-DibZzOqt.js +0 -13
  725. package/dist/sl-SI-BB7iVcFI.js +0 -22
  726. package/dist/sl-SI-BylvpF-X.js +0 -15
  727. package/dist/sl-SI-CyNtynTN.js +0 -13
  728. package/dist/sl-SI-D9rl7bIN.js +0 -13
  729. package/dist/sl-SI-D_rqR0D7.js +0 -35
  730. package/dist/sl-SI-MZoDApq9.js +0 -23
  731. package/dist/sl-SI-vyebIKls.js +0 -13
  732. package/dist/sv-SE-1eeTTIj7.js +0 -13
  733. package/dist/sv-SE-B3zoXMuH.js +0 -35
  734. package/dist/sv-SE-BcTCn-cn.js +0 -13
  735. package/dist/sv-SE-DCFSf4Oj.js +0 -23
  736. package/dist/sv-SE-DbI-1JqN.js +0 -22
  737. package/dist/sv-SE-Dwz1yTrB.js +0 -15
  738. package/dist/sv-SE-Ez33Bdgp.js +0 -13
  739. package/dist/translation-C21WMjvq.js +0 -472
  740. package/dist/types/components/BusinessLines/forms/rules.d.ts +0 -5
  741. package/dist/types/components/ui/atoms/FormHeader/FormHeader.d.ts +0 -8
  742. package/dist/types/components/ui/atoms/Remove/Remove.d.ts +0 -2
  743. package/dist/types/components/ui/atoms/Remove/Remove.types.d.ts +0 -9
  744. package/dist/types/components/ui/molecules/Card/CardGroup.d.ts +0 -3
@@ -1,1915 +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] = "df0848d8-6524-486e-a198-8c3d42a4dda2", e._sentryDebugIdIdentifier = "sentry-dbid-df0848d8-6524-486e-a198-8c3d42a4dda2");
6
- } catch (e) {
7
- }
8
- }
9
- ;
10
- import { a as addResourceBundles, _ as __variableDynamicImportRuntimeHelper } from "./translation-C21WMjvq.js";
11
- import { jsxs, jsx } from "preact/jsx-runtime";
12
- import { a as useTranslation, X as useExperimentsContext, c as useLegalEntity, R as ROOT_LE, x as Typography, m as useSettingsContext, u as useI18nContext, M as TaskTypes, y as LegalEntityTypes, b as useApiContext, U as useAnalyticsContext, aH as useQueryClient, bD as businessDetailsDocumentMapping, ao as businessDetailsApiKeyMapping, L as Loader, z as isPartOfTrustFromLegalEntity, J as EntityTypes, g as getLegalEntityCountry } from "./StoreProvider-DGxWcgrS.js";
13
- import { r as resolveFieldMetadata, a as useAccountHolder, j as composePerScenarioFormConfigurations, d as getPropsFromConfigurations, b as useCapabilityProblems, g as getProblemsForEntity } from "./fieldConfigurations-BzmPcPW1.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-CdWljVO6.js";
15
- import { useEffect, useMemo, useCallback, useState } from "preact/hooks";
16
- import { u as useFormContext, c as useCreateLegalEntity, d as useUpdateLegalEntity, a as useMultiForm, F as FormContextProvider, b as FormFlow } from "./RadioGroup-QZCH1TCn.js";
17
- import { u as useToastContext } from "./useToastContext-D4w2gBxd.js";
18
- import { g as getAssociatedLeAnalyticsPayload } from "./analytics-B9jlnux-.js";
19
- import { m as mergeFieldMetadataIntoProps, c as createFormUtils, F as FormHeader, E as ErrorPanel, C as CountryField, d as COUNTRY_FIELD, f as summaryStep, a as addValidityToForms, t as trackNavigation, u as useFormComposer } from "./CountryField-DrB-OFMR.js";
20
- import { b as useScenarioConfiguration } from "./mapExistingFile-Dww-3m9M.js";
21
- import { a as datasetUtilities, C as Confirm } from "./useDataset-CYBhIC5y.js";
22
- import { d as documentApiUtils } from "./validate-C6-L7Vfa.js";
23
- import { r as requestingBanking, c as requestingIssuing, t as taxInformationDefaultFieldMetadata, b as taxInformationDefaultFieldConfig, d as TAX_INFORMATION_FIELD, T as TaxInformationField, M as MemoizedDocumentUpload, C as COUNTRIES_USING_COMPANY_SEARCH, e as rules, g as getFieldsWithExistingData } from "./TaxInformationField-Bu8s2JZA.js";
24
- import { C as CompanyTypesValues } from "./bafinUtils-BJao1Xb_.js";
25
- 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-CbElOOZ6.js";
26
- 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-DzNHaLQd.js";
27
- import { F as Field, C as Checkbox } from "./useForm-NtB5fMq5.js";
28
- import { g as industryCodeFieldMetadata, I as INDUSTRY_CODE_FIELD, h as IndustryCodeField, j as defaultFieldMetadataV4, k as defaultFieldMetadata$2, l as defaultFieldConfigV4, m as defaultFieldConfig$2, L as LEGAL_COMPANY_NAME_FIELD } from "./OnboardingDropinComponent-DIf93Tzb.js";
29
- import { g as getAddressSchemaForCountry, C as COUNTRIES_WITH_STATES_DATASET, a as getAddressSchemaLabelsByCountry } from "./utils-BMvr9mIu.js";
30
- import { L as LegalFormField } from "./Currency-DD63TDvu.js";
31
- import { L as Link } from "./Link-CaxhkJ24.js";
32
- import { S as SettingNames, I as InputText } from "./InputText-CqLs_M75.js";
33
- import { u as useAllowedCountries } from "./mapScriptLocalization-BXWQCCfg.js";
34
- import { E as EntityTypeRadioGroupCard } from "./utils-B1i9qK_1.js";
35
- function AdditionalInformationMultiform({
36
- id,
37
- country,
38
- companyType,
39
- shouldValidate,
40
- heading = "additionalInformationFormHeading",
41
- description,
42
- validationErrors = {},
43
- verificationErrors = {}
44
- }) {
45
- const { t, i18n } = useTranslation(["business", "businessLines"]);
46
- const { t: commonT } = useTranslation("common");
47
- const { form } = useFormContext();
48
- const { isExperimentEnabled } = useExperimentsContext();
49
- const { data: rootLegalEntity } = useLegalEntity(ROOT_LE);
50
- const verifiedBusiness$1 = verifiedBusiness.value;
51
- const showVerified = !!verifiedBusiness$1;
52
- const showStockData = companyType === CompanyTypesValues.PUBLIC_COMPANY;
53
- const addressSchema = getAddressSchemaForCountry(country).filter(
54
- (field) => !COUNTRIES_WITH_STATES_DATASET.includes(country) ? field !== "stateOrProvince" : true
55
- );
56
- const currentCountryTaxInformation = form.data?.additionalInformation?.taxInformation?.find(
57
- (taxId) => taxId.country === country
58
- );
59
- const businessLineTypes = [];
60
- if (requestingBanking(rootLegalEntity)) {
61
- businessLineTypes.push("banking");
62
- }
63
- if (requestingIssuing(rootLegalEntity)) {
64
- businessLineTypes.push("issuing");
65
- }
66
- const [addressToCheck, setAddressToCheck] = useDebouncedState(500);
67
- const { data: cleansedRegistrationAddress } = useAddressCleanse(
68
- {
69
- text: addressToCheck,
70
- country
71
- },
72
- { enabled: Boolean(addressToCheck) }
73
- );
74
- const mustProvideOperationalAddress = cleansedRegistrationAddress?.poBox ?? false;
75
- useEffect(
76
- () => setAddressToCheck(
77
- formatAddressForCleanse(form.data?.additionalInformation?.registrationAddress ?? {})
78
- ),
79
- [form.data?.additionalInformation?.registrationAddress, setAddressToCheck]
80
- );
81
- const verifiedAddress = useMemo(() => {
82
- if (!verifiedBusiness$1) return void 0;
83
- return verifiedBusiness$1.isPrincipalAddress || verifiedBusiness$1.state && form.data?.basicInformation?.stateOrProvince !== verifiedBusiness$1.state ? { operationalAddress: { ...mapAddressData(verifiedBusiness$1), country } } : {
84
- registrationAddress: {
85
- ...mapAddressData(verifiedBusiness$1),
86
- country,
87
- stateOrProvince: form.data?.basicInformation?.stateOrProvince
88
- }
89
- };
90
- }, [verifiedBusiness$1, form.data?.basicInformation?.stateOrProvince, country]);
91
- const handleChangeFor = useCallback(
92
- (fieldName, mode) => form.handleChangeFor(fieldName, "additionalInformation", mode),
93
- [form]
94
- );
95
- const handleRegistrationAddressChange = (state) => {
96
- handleChangeFor("registrationAddress")(state.data);
97
- form.setValid("registrationAddress", Boolean(state.isValid), "additionalInformation");
98
- };
99
- const handleOperationalAddressChange = (state) => {
100
- handleChangeFor("operationalAddress")(state.data);
101
- form.setValid("operationalAddress", Boolean(state.isValid), "additionalInformation");
102
- };
103
- const handleOperationalAddressIsSameChange = useCallback(
104
- (isChecked) => {
105
- if (isChecked) {
106
- handleChangeFor("operationalAddressIsSame")(
107
- operationalAddressIsSameIds.OPERATIONAL_ADDRESS_IS_SAME
108
- );
109
- form.setValid("operationalAddress", true, "additionalInformation");
110
- } else {
111
- handleChangeFor("operationalAddressIsSame")(
112
- operationalAddressIsSameIds.OPERATIONAL_ADDRESS_IS_NOT_SAME
113
- );
114
- }
115
- },
116
- [form, handleChangeFor]
117
- );
118
- useEffect(() => {
119
- if (mustProvideOperationalAddress && form.data?.additionalInformation?.operationalAddressIsSame !== operationalAddressIsSameIds.OPERATIONAL_ADDRESS_IS_NOT_SAME) {
120
- handleOperationalAddressIsSameChange(false);
121
- }
122
- }, [
123
- handleOperationalAddressIsSameChange,
124
- mustProvideOperationalAddress,
125
- form.data?.additionalInformation?.operationalAddressIsSame
126
- ]);
127
- const formUtils = useMemo(() => {
128
- const initialProps = {
129
- data: form.data?.additionalInformation ?? {},
130
- fieldValidationErrors: validationErrors,
131
- formVerificationErrors: verificationErrors,
132
- allFields: form.allFields?.additionalInformation ?? [],
133
- requiredFields: form.requiredFields?.additionalInformation ?? [],
134
- optionalFields: form.optionalFields?.additionalInformation ?? [],
135
- trustedFields: form.trustedFields?.additionalInformation ?? [],
136
- obscuredFields: form.obscuredFields?.additionalInformation ?? [],
137
- errors: form.errors?.additionalInformation ?? {},
138
- valid: form.valid?.additionalInformation ?? {},
139
- handleFieldChange: handleChangeFor
140
- };
141
- const formUtilProps = initialProps.allFields?.reduce((acc, field) => {
142
- switch (field) {
143
- case "hasDoingBusinessAs":
144
- return mergeFieldMetadataIntoProps(
145
- "hasDoingBusinessAs",
146
- doingBusinessAsAbsentFieldMetadata,
147
- acc
148
- );
149
- case "doingBusinessAs":
150
- return mergeFieldMetadataIntoProps("doingBusinessAs", doingBusinessAsFieldMetadata, acc);
151
- case "registrationNumber":
152
- return mergeFieldMetadataIntoProps(
153
- field,
154
- resolveFieldMetadata(
155
- registrationNumberDefaultFieldConfig[country],
156
- {
157
- companyType,
158
- registrationNumberType: form.data?.additionalInformation?.registrationNumberType,
159
- isExperimentEnabled
160
- },
161
- registrationNumberDefaultFieldMetadata
162
- ),
163
- acc
164
- );
165
- case "taxInformation":
166
- return mergeFieldMetadataIntoProps(
167
- field,
168
- resolveFieldMetadata(
169
- taxInformationDefaultFieldConfig[country],
170
- {
171
- taxIdNumberType: currentCountryTaxInformation?.type,
172
- companyType
173
- },
174
- taxInformationDefaultFieldMetadata
175
- ),
176
- acc
177
- );
178
- case "vatNumber":
179
- return mergeFieldMetadataIntoProps(
180
- field,
181
- resolveFieldMetadata(
182
- defaultFieldConfig[country],
183
- { vatNumberType: form.data?.additionalInformation?.vatNumberType },
184
- defaultFieldMetadata
185
- ),
186
- acc
187
- );
188
- case "vatAbsenceReason":
189
- return mergeFieldMetadataIntoProps("vatAbsenceReason", vatAbsenceReasonMetadata, acc);
190
- case "eInvoicingCode":
191
- return mergeFieldMetadataIntoProps("eInvoicingCode", eInvoicingCodeFieldMetadata, acc);
192
- case "industryCodes":
193
- return mergeFieldMetadataIntoProps("industryCodes", industryCodeFieldMetadata, acc);
194
- case "dateOfIncorporation":
195
- return mergeFieldMetadataIntoProps(
196
- "dateOfIncorporation",
197
- dateOfIncorporationFieldMetadata,
198
- acc
199
- );
200
- case "stockExchangeMIC":
201
- return mergeFieldMetadataIntoProps(
202
- "stockExchangeMIC",
203
- stockExchangeMICFieldMetadata,
204
- acc
205
- );
206
- case "stockISIN":
207
- return mergeFieldMetadataIntoProps("stockISIN", stockISINFieldMetadata, acc);
208
- case "stockTickerSymbol":
209
- return mergeFieldMetadataIntoProps(
210
- "stockTickerSymbol",
211
- stockTickerSymbolFieldMetadata,
212
- acc
213
- );
214
- case "legalForm":
215
- return mergeFieldMetadataIntoProps("legalForm", legalFormFieldMetadata, acc);
216
- default:
217
- return acc;
218
- }
219
- }, initialProps);
220
- return createFormUtils(formUtilProps ?? initialProps, commonT);
221
- }, [
222
- companyType,
223
- country,
224
- currentCountryTaxInformation?.type,
225
- form.allFields?.additionalInformation,
226
- form.data?.additionalInformation,
227
- form.errors?.additionalInformation,
228
- form.obscuredFields?.additionalInformation,
229
- form.optionalFields?.additionalInformation,
230
- form.requiredFields?.additionalInformation,
231
- form.trustedFields?.additionalInformation,
232
- form.valid?.additionalInformation,
233
- handleChangeFor,
234
- commonT,
235
- isExperimentEnabled,
236
- validationErrors,
237
- verificationErrors
238
- ]);
239
- const showField = (fieldKeys) => fieldKeys.some((field) => formUtils.isRequiredField(field) || formUtils.isOptionalField(field));
240
- const datasetUtils = datasetUtilities(i18n.language);
241
- const registrationAddressDescription = useMemo(() => {
242
- if (country) {
243
- return ["US", "NL", "CZ"].includes(country) ? t(($) => $["youBusinessOfficalAddressInTheCounty"], {
244
- country: datasetUtils.getCountryName(country)
245
- }) : t(($) => $["youBusinessOfficalAddressInCounty"], {
246
- country: datasetUtils.getCountryName(country)
247
- });
248
- }
249
- return t(($) => $["youBusinessOfficalAddress"]);
250
- }, [country, datasetUtils, t]);
251
- return /* @__PURE__ */ jsxs("form", { id, className: "adyen-kyc-additional-information", children: [
252
- /* @__PURE__ */ jsx(
253
- FormHeader,
254
- {
255
- heading: commonT(($) => $[heading]),
256
- description: description ? commonT(($) => $[description]) : void 0
257
- }
258
- ),
259
- /* @__PURE__ */ jsx(
260
- ErrorPanel,
261
- {
262
- id: "ariaErrorField",
263
- verificationErrors,
264
- validationErrors,
265
- formUtils
266
- }
267
- ),
268
- /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-additional-information__content", children: [
269
- showVerified && /* @__PURE__ */ jsxs("section", { children: [
270
- /* @__PURE__ */ jsx("div", { className: "adyen-kyc-additional-information__section-heading", children: /* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", children: t(($) => $["verifiedInformation"]) }) }),
271
- /* @__PURE__ */ jsx(
272
- VerifiedBusinessCard,
273
- {
274
- verifiedBusiness: verifiedBusiness$1,
275
- verifiedAddress: verifiedAddress?.registrationAddress ?? verifiedAddress?.operationalAddress
276
- }
277
- )
278
- ] }),
279
- /* @__PURE__ */ jsxs("section", { children: [
280
- showVerified && /* @__PURE__ */ jsx("div", { className: "adyen-kyc-additional-information__section-heading", children: /* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", children: t(($) => $["otherBusinessInformation"]) }) }),
281
- /* @__PURE__ */ jsxs("fieldset", { children: [
282
- showField(LEGAL_FORM_FIELDS) && /* @__PURE__ */ jsx("div", { className: "adyen-kyc-field-wrapper", children: /* @__PURE__ */ jsx(
283
- LegalFormField,
284
- {
285
- name: "legalForm",
286
- countryCode: country,
287
- data: {
288
- legalForm: formUtils.getFieldData(
289
- form.data?.additionalInformation ?? {},
290
- LEGAL_FORM_FIELDS
291
- )?.legalForm
292
- },
293
- valid: formUtils.getFieldValid(
294
- form.valid?.additionalInformation ?? {},
295
- LEGAL_FORM_FIELDS
296
- ),
297
- errorMessage: form.errors.additionalInformation?.legalForm?.errorMessage,
298
- handleChangeFor,
299
- readonly: false,
300
- label: formUtils.getLabel("legalForm", "businessStructure")
301
- }
302
- ) }),
303
- showField(DBA_NAME_FIELD) && /* @__PURE__ */ jsx("div", { className: "adyen-kyc-field-wrapper", children: /* @__PURE__ */ jsx(
304
- DBANameField,
305
- {
306
- data: formUtils.getFieldData(
307
- form.data?.additionalInformation ?? {},
308
- DBA_NAME_FIELD
309
- ),
310
- valid: formUtils.getFieldValid(
311
- form.valid?.additionalInformation ?? {},
312
- DBA_NAME_FIELD
313
- ),
314
- errors: formUtils.getFieldErrors(
315
- form.errors?.additionalInformation ?? {},
316
- validationErrors,
317
- DBA_NAME_FIELD
318
- ),
319
- labels: formUtils.getFieldLabels(DBA_NAME_FIELD, {
320
- hasDoingBusinessAs: "hasDba"
321
- }),
322
- readonly: formUtils.isReadOnly("doingBusinessAs"),
323
- handleChangeFor
324
- }
325
- ) }),
326
- showField(BUSINESS_REGISTRATION_NUMBER_FIELD) && /* @__PURE__ */ jsx("div", { className: "adyen-kyc-field-wrapper", children: /* @__PURE__ */ jsx(
327
- BusinessRegistrationNumberField,
328
- {
329
- data: formUtils.getFieldData(
330
- form.data?.additionalInformation ?? {},
331
- BUSINESS_REGISTRATION_NUMBER_FIELD
332
- ),
333
- valid: formUtils.getFieldValid(
334
- form.valid?.additionalInformation ?? {},
335
- BUSINESS_REGISTRATION_NUMBER_FIELD
336
- ),
337
- errors: formUtils.getFieldErrors(
338
- form.errors?.additionalInformation ?? {},
339
- validationErrors,
340
- BUSINESS_REGISTRATION_NUMBER_FIELD
341
- ),
342
- labels: formUtils.getFieldLabels(BUSINESS_REGISTRATION_NUMBER_FIELD, {
343
- exemptedFromRegistrationNumber: "iDontHaveARegistrationNumber"
344
- }),
345
- mask: formUtils.getMask("registrationNumber"),
346
- guidanceText: formUtils.getFieldGuidanceText(BUSINESS_REGISTRATION_NUMBER_FIELD),
347
- placeholders: formUtils.getFieldPlaceholders(BUSINESS_REGISTRATION_NUMBER_FIELD),
348
- helperText: formUtils.getFieldHelperText(BUSINESS_REGISTRATION_NUMBER_FIELD),
349
- readonly: formUtils.isReadOnly("registrationNumber"),
350
- optional: formUtils.isOptionalField("registrationNumber"),
351
- shouldValidate,
352
- handleChangeFor,
353
- country,
354
- canExempt: showField(["exemptedFromRegistrationNumber"]),
355
- companyType
356
- }
357
- ) }),
358
- showField(TAX_INFORMATION_FIELD) && /* @__PURE__ */ jsx("div", { className: "adyen-kyc-field-wrapper", children: /* @__PURE__ */ jsx(
359
- TaxInformationField,
360
- {
361
- data: formUtils.getFieldData(
362
- form.data?.additionalInformation ?? {},
363
- TAX_INFORMATION_FIELD
364
- ),
365
- valid: formUtils.getFieldValid(
366
- form.valid?.additionalInformation ?? {},
367
- TAX_INFORMATION_FIELD
368
- ),
369
- errors: formUtils.getFieldErrors(
370
- form.errors?.additionalInformation ?? {},
371
- validationErrors,
372
- TAX_INFORMATION_FIELD
373
- ),
374
- labels: formUtils.getFieldLabels(TAX_INFORMATION_FIELD, {
375
- exemptedFromTax: "iDontHaveATaxId"
376
- }),
377
- mask: formUtils.getMask("taxInformation"),
378
- guidanceText: formUtils.getFieldGuidanceText(TAX_INFORMATION_FIELD),
379
- readonly: formUtils.isReadOnly("taxInformation"),
380
- shouldValidate,
381
- handleChangeFor,
382
- canExempt: showField(["exemptedFromTax"]),
383
- country,
384
- entityType: companyType,
385
- defaultData: form.defaultData?.additionalInformation?.taxInformation,
386
- registrationNumber: form.data?.additionalInformation?.registrationNumber
387
- }
388
- ) }),
389
- showField(VAT_NUMBER_FIELD) && /* @__PURE__ */ jsx("div", { className: "adyen-kyc-field-wrapper", children: /* @__PURE__ */ jsx(
390
- VatNumberField,
391
- {
392
- data: formUtils.getFieldData(
393
- form.data?.additionalInformation ?? {},
394
- VAT_NUMBER_FIELD
395
- ),
396
- valid: formUtils.getFieldValid(
397
- form.valid?.additionalInformation ?? {},
398
- VAT_NUMBER_FIELD
399
- ),
400
- errors: formUtils.getFieldErrors(
401
- form.errors?.additionalInformation ?? {},
402
- validationErrors,
403
- VAT_NUMBER_FIELD
404
- ),
405
- labels: formUtils.getFieldLabels(VAT_NUMBER_FIELD, {
406
- exemptedFromVat: "iDontHaveAVatNumber"
407
- }),
408
- mask: formUtils.getMask("vatNumber"),
409
- guidanceText: formUtils.getFieldGuidanceText(VAT_NUMBER_FIELD),
410
- placeholders: formUtils.getFieldPlaceholders(VAT_NUMBER_FIELD),
411
- readonly: formUtils.isReadOnly("vatNumber"),
412
- handleChangeFor,
413
- country,
414
- canExempt: showField(["exemptedFromVat"]),
415
- shouldValidate
416
- }
417
- ) }),
418
- formUtils.isRequiredField("eInvoicingCode", false) && /* @__PURE__ */ jsx("div", { className: "adyen-kyc-field-wrapper", children: /* @__PURE__ */ jsx(
419
- EInvoicingCodeField,
420
- {
421
- data: formUtils.getFieldData(
422
- form.data?.additionalInformation ?? {},
423
- EINVOICING_CODE_FIELD
424
- ),
425
- valid: formUtils.getFieldValid(
426
- form.valid?.additionalInformation ?? {},
427
- EINVOICING_CODE_FIELD
428
- ),
429
- errors: formUtils.getFieldErrors(
430
- form.errors?.additionalInformation ?? {},
431
- validationErrors,
432
- EINVOICING_CODE_FIELD
433
- ),
434
- labels: formUtils.getFieldLabels(EINVOICING_CODE_FIELD),
435
- placeholders: formUtils.getFieldPlaceholders(EINVOICING_CODE_FIELD),
436
- mask: formUtils.getMask("eInvoicingCode"),
437
- guidanceText: formUtils.getFieldGuidanceText(EINVOICING_CODE_FIELD),
438
- readonly: formUtils.isReadOnly("eInvoicingCode"),
439
- handleChangeFor
440
- }
441
- ) }),
442
- showField(INDUSTRY_CODE_FIELD) && /* @__PURE__ */ jsx("div", { className: "adyen-kyc-field-wrapper", children: /* @__PURE__ */ jsx(
443
- IndustryCodeField,
444
- {
445
- data: formUtils.getFieldData(
446
- form.data?.additionalInformation ?? {},
447
- INDUSTRY_CODE_FIELD
448
- ),
449
- valid: formUtils.getFieldValid(
450
- form.valid?.additionalInformation ?? {},
451
- INDUSTRY_CODE_FIELD
452
- ),
453
- errors: formUtils.getFieldErrors(
454
- form.errors?.additionalInformation ?? {},
455
- validationErrors,
456
- INDUSTRY_CODE_FIELD
457
- ),
458
- labels: {
459
- industryCodes: t(($) => $["industry"], {
460
- ns: "businessLines"
461
- })
462
- },
463
- guidanceText: {
464
- industryCodes: t(($) => $["primaryIndustryCodeGuidance"], {
465
- ns: "businessLines"
466
- })
467
- },
468
- readonly: formUtils.isReadOnly("industryCodes"),
469
- handleChangeFor,
470
- businessLineTypes,
471
- single: true
472
- }
473
- ) }),
474
- showField(DATE_OF_INCORPORATION_FIELD) && /* @__PURE__ */ jsx("div", { className: "adyen-kyc-field-wrapper", children: /* @__PURE__ */ jsx(
475
- DateOfIncorporationField,
476
- {
477
- data: formUtils.getFieldData(
478
- form.data?.additionalInformation ?? {},
479
- DATE_OF_INCORPORATION_FIELD
480
- ),
481
- valid: formUtils.getFieldValid(
482
- form.valid?.additionalInformation ?? {},
483
- DATE_OF_INCORPORATION_FIELD
484
- ),
485
- errors: formUtils.getFieldErrors(
486
- form.errors?.additionalInformation ?? {},
487
- validationErrors,
488
- DATE_OF_INCORPORATION_FIELD
489
- ),
490
- labels: formUtils.getFieldLabels(DATE_OF_INCORPORATION_FIELD),
491
- placeholders: formUtils.getFieldPlaceholders(DATE_OF_INCORPORATION_FIELD, {
492
- dateOfIncorporation: "datePlaceholder"
493
- }),
494
- readonly: formUtils.isReadOnly("dateOfIncorporation"),
495
- handleChangeFor
496
- }
497
- ) })
498
- ] })
499
- ] }),
500
- showStockData && /* @__PURE__ */ jsxs("section", { children: [
501
- /* @__PURE__ */ jsx("div", { className: "adyen-kyc-additional-information__section-heading", children: /* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", children: t(($) => $["stockExchangeInformation"]) }) }),
502
- /* @__PURE__ */ jsxs("fieldset", { children: [
503
- showField(STOCK_EXCHANGE_MIC_FIELD) && /* @__PURE__ */ jsx("div", { className: "adyen-kyc-field-wrapper", children: /* @__PURE__ */ jsx(
504
- StockExchangeMICField,
505
- {
506
- data: formUtils.getFieldData(
507
- form.data?.additionalInformation ?? {},
508
- STOCK_EXCHANGE_MIC_FIELD
509
- ),
510
- valid: formUtils.getFieldValid(
511
- form.valid?.additionalInformation ?? {},
512
- STOCK_EXCHANGE_MIC_FIELD
513
- ),
514
- errors: formUtils.getFieldErrors(
515
- form.errors?.additionalInformation ?? {},
516
- validationErrors,
517
- STOCK_EXCHANGE_MIC_FIELD
518
- ),
519
- labels: formUtils.getFieldLabels(STOCK_EXCHANGE_MIC_FIELD),
520
- placeholders: formUtils.getFieldPlaceholders(STOCK_EXCHANGE_MIC_FIELD),
521
- mask: formUtils.getMask("stockExchangeMIC"),
522
- guidanceText: formUtils.getFieldGuidanceText(STOCK_EXCHANGE_MIC_FIELD),
523
- readonly: formUtils.isReadOnly("stockExchangeMIC"),
524
- shouldValidate,
525
- handleChangeFor
526
- }
527
- ) }),
528
- showField(STOCK_ISIN_FIELD) && /* @__PURE__ */ jsx("div", { className: "adyen-kyc-field-wrapper", children: /* @__PURE__ */ jsx(
529
- StockISINField,
530
- {
531
- data: formUtils.getFieldData(
532
- form.data?.additionalInformation ?? {},
533
- STOCK_ISIN_FIELD
534
- ),
535
- valid: formUtils.getFieldValid(
536
- form.valid?.additionalInformation ?? {},
537
- STOCK_ISIN_FIELD
538
- ),
539
- errors: formUtils.getFieldErrors(
540
- form.errors?.additionalInformation ?? {},
541
- validationErrors,
542
- STOCK_ISIN_FIELD
543
- ),
544
- labels: formUtils.getFieldLabels(STOCK_ISIN_FIELD),
545
- placeholders: formUtils.getFieldPlaceholders(STOCK_ISIN_FIELD),
546
- mask: formUtils.getMask("stockISIN"),
547
- guidanceText: formUtils.getFieldGuidanceText(STOCK_ISIN_FIELD),
548
- readonly: formUtils.isReadOnly("stockISIN"),
549
- shouldValidate,
550
- handleChangeFor
551
- }
552
- ) }),
553
- showField(STOCK_TICKER_SYMBOL_FIELD) && /* @__PURE__ */ jsx("div", { className: "adyen-kyc-field-wrapper", children: /* @__PURE__ */ jsx(
554
- StockTickerSymbolField,
555
- {
556
- data: formUtils.getFieldData(
557
- form.data?.additionalInformation ?? {},
558
- STOCK_TICKER_SYMBOL_FIELD
559
- ),
560
- valid: formUtils.getFieldValid(
561
- form.valid?.additionalInformation ?? {},
562
- STOCK_TICKER_SYMBOL_FIELD
563
- ),
564
- errors: formUtils.getFieldErrors(
565
- form.errors?.additionalInformation ?? {},
566
- validationErrors,
567
- STOCK_TICKER_SYMBOL_FIELD
568
- ),
569
- labels: formUtils.getFieldLabels(STOCK_TICKER_SYMBOL_FIELD),
570
- placeholders: formUtils.getFieldPlaceholders(STOCK_TICKER_SYMBOL_FIELD),
571
- mask: formUtils.getMask("stockTickerSymbol"),
572
- guidanceText: formUtils.getFieldGuidanceText(STOCK_TICKER_SYMBOL_FIELD),
573
- readonly: formUtils.isReadOnly("stockTickerSymbol"),
574
- shouldValidate,
575
- handleChangeFor
576
- }
577
- ) })
578
- ] })
579
- ] }),
580
- /* @__PURE__ */ jsxs("section", { "data-testid": "registeredBusinessAddress", children: [
581
- /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-additional-information__section-heading", children: [
582
- /* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", children: t(($) => $["registeredBusinessAddress"]) }),
583
- /* @__PURE__ */ jsx(Typography, { el: "p", variant: "body", children: registrationAddressDescription })
584
- ] }),
585
- /* @__PURE__ */ jsx(
586
- Address,
587
- {
588
- id: ADDITIONAL_INFORMATION_FORM_ID,
589
- addressType: "registrationAddress",
590
- data: {
591
- ...form.data?.additionalInformation?.registrationAddress,
592
- country
593
- },
594
- labels: getAddressSchemaLabelsByCountry(country),
595
- requiredFields: addressSchema,
596
- shouldValidate,
597
- hideCountry: true,
598
- optionalFields: ["otherAddressInformation"],
599
- readOnlyFields: verifiedBusiness$1?.state && verifiedBusiness$1?.state === form.data?.basicInformation?.stateOrProvince ? ["stateOrProvince"] : [],
600
- trustedFields: getNestedTrustedFields(
601
- "registrationAddress",
602
- form.data.additionalInformation,
603
- form.trustedFields?.additionalInformation
604
- ),
605
- onChange: handleRegistrationAddressChange,
606
- verifiedBusiness: verifiedBusiness$1,
607
- verifiedAddress: verifiedAddress?.registrationAddress,
608
- condensed: true
609
- }
610
- )
611
- ] }),
612
- /* @__PURE__ */ jsxs("section", { "data-testid": "principalPlaceOfBusiness", children: [
613
- /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-additional-information__section-heading", children: [
614
- /* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", children: t(($) => $["principalPlaceOfBusiness"]) }),
615
- /* @__PURE__ */ jsx(Typography, { el: "p", variant: "body", children: t(($) => $["thePhysicalLocationWhereABusiness"]) })
616
- ] }),
617
- !mustProvideOperationalAddress && /* @__PURE__ */ jsx(
618
- Field,
619
- {
620
- el: "fieldset",
621
- name: "operationalAddressIsSame",
622
- errorMessage: form.errors?.additionalInformation?.operationalAddressIsSame?.errorMessage,
623
- isValid: form.valid?.additionalInformation?.operationalAddressIsSame,
624
- children: (childProps) => /* @__PURE__ */ jsx(
625
- Checkbox,
626
- {
627
- ...childProps,
628
- "aria-required": formUtils.isRequiredField("operationalAddressIsSame"),
629
- "aria-invalid": !form.valid?.additionalInformation?.operationalAddressIsSame,
630
- name: "operationalAddressIsSame",
631
- label: formUtils.getLabel("sameAsRegisteredAddress"),
632
- checked: form.data?.additionalInformation?.operationalAddressIsSame ? form.data?.additionalInformation?.operationalAddressIsSame === operationalAddressIsSameIds.OPERATIONAL_ADDRESS_IS_SAME : true,
633
- onChange: handleOperationalAddressIsSameChange
634
- }
635
- )
636
- }
637
- ),
638
- form.data?.additionalInformation?.operationalAddressIsSame === operationalAddressIsSameIds.OPERATIONAL_ADDRESS_IS_NOT_SAME && /* @__PURE__ */ jsx(
639
- Address,
640
- {
641
- id: ADDITIONAL_INFORMATION_FORM_ID,
642
- addressType: "operationalAddress",
643
- data: {
644
- ...form.defaultData?.additionalInformation?.operationalAddress,
645
- country
646
- },
647
- labels: getAddressSchemaLabelsByCountry(country),
648
- requiredFields: addressSchema,
649
- shouldValidate,
650
- hideCountry: true,
651
- optionalFields: ["otherAddressInformation"],
652
- trustedFields: getNestedTrustedFields(
653
- "operationalAddress",
654
- form.data?.additionalInformation,
655
- form.trustedFields?.additionalInformation
656
- ),
657
- onChange: handleOperationalAddressChange,
658
- verifiedBusiness: verifiedBusiness$1,
659
- verifiedAddress: verifiedAddress?.operationalAddress,
660
- condensed: true
661
- }
662
- )
663
- ] })
664
- ] })
665
- ] });
666
- }
667
- [
668
- ...COUNTRY_FIELD,
669
- ...LEGAL_COMPANY_NAME_FIELD,
670
- "jaHaniLegalCompanyName",
671
- "jaKanaLegalCompanyName",
672
- ...TAX_INFORMATION_FIELD,
673
- ...STATE_FIELD,
674
- ...BUSINESS_REGISTRATION_NUMBER_FIELD,
675
- ...COUNTRY_OF_GOVERNING_LAW_FIELD
676
- ];
677
- const FormDescription = ({ description }) => {
678
- const { t } = useTranslation("common");
679
- return /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-form-header__description", children: [
680
- t(($) => $[description]),
681
- " ",
682
- /* @__PURE__ */ jsx(Link, { href: "https://www.adyen.com/privacy-policy", external: true, children: t(($) => $["privacyStatement"]) })
683
- ] });
684
- };
685
- function BasicInformationMultiform({
686
- id,
687
- country,
688
- shouldValidate,
689
- heading = "basicInformationFormHeading",
690
- description = "basicInformationFormDescription",
691
- validationErrors = {},
692
- verificationErrors = {},
693
- disableCountry = false,
694
- isTopLevelEntity = true
695
- }) {
696
- const { t } = useTranslation("common");
697
- const { isSettingEnabled } = useSettingsContext();
698
- const { isExperimentEnabled } = useExperimentsContext();
699
- const { form } = useFormContext();
700
- const allowedCountries = useAllowedCountries();
701
- const isAllowedEditPrefilledCountry = isSettingEnabled(SettingNames.AllowPrefilledCountryEdit);
702
- const state = form.data?.basicInformation?.stateOrProvince;
703
- const companyType = form.data?.companyStructure?.entityType;
704
- const currentCountryTaxInformation = form.data?.basicInformation?.taxInformation?.find(
705
- (tax) => tax.country === country
706
- );
707
- const handleChangeFor = useCallback(
708
- (fieldName, mode) => form.handleChangeFor(fieldName, "basicInformation", mode),
709
- [form]
710
- );
711
- const formUtils = useMemo(() => {
712
- const initialProps = {
713
- data: form.data?.basicInformation ?? {},
714
- fieldValidationErrors: validationErrors,
715
- formVerificationErrors: verificationErrors,
716
- allFields: form.allFields?.basicInformation ?? [],
717
- requiredFields: form.requiredFields?.basicInformation ?? [],
718
- optionalFields: form.optionalFields?.basicInformation ?? [],
719
- trustedFields: form.trustedFields?.basicInformation ?? [],
720
- obscuredFields: form.obscuredFields?.basicInformation ?? [],
721
- errors: form.errors?.basicInformation ?? {},
722
- valid: form.valid?.basicInformation ?? {},
723
- handleFieldChange: handleChangeFor
724
- };
725
- const formUtilProps = initialProps.allFields?.reduce((acc, field) => {
726
- switch (field) {
727
- case "country":
728
- return acc;
729
- case "legalCompanyName":
730
- return mergeFieldMetadataIntoProps(
731
- field,
732
- resolveFieldMetadata(
733
- isExperimentEnabled("StrictNameAndAddressValidationV4") ? defaultFieldConfigV4[country] : defaultFieldConfig$2[country],
734
- { isBusiness: true },
735
- isExperimentEnabled("StrictNameAndAddressValidationV4") ? defaultFieldMetadataV4 : defaultFieldMetadata$2
736
- ),
737
- acc
738
- );
739
- case "countryOfGoverningLaw":
740
- return acc;
741
- case "stateOrProvince":
742
- return mergeFieldMetadataIntoProps(
743
- field,
744
- resolveFieldMetadata(
745
- defaultFieldConfig$1[country],
746
- { isBusiness: true },
747
- defaultFieldMetadata$1
748
- ),
749
- acc
750
- );
751
- case "taxInformation":
752
- return mergeFieldMetadataIntoProps(
753
- field,
754
- resolveFieldMetadata(
755
- taxInformationDefaultFieldConfig[country],
756
- {
757
- taxIdNumberType: currentCountryTaxInformation?.type,
758
- companyType
759
- },
760
- taxInformationDefaultFieldMetadata
761
- ),
762
- acc
763
- );
764
- case "registrationNumber":
765
- return mergeFieldMetadataIntoProps(
766
- field,
767
- resolveFieldMetadata(
768
- registrationNumberDefaultFieldConfig[country],
769
- {
770
- companyType,
771
- registrationNumberType: form.data?.additionalInformation?.registrationNumberType,
772
- state,
773
- isExperimentEnabled
774
- },
775
- registrationNumberDefaultFieldMetadata
776
- ),
777
- acc
778
- );
779
- case "jaHaniLegalCompanyName":
780
- return mergeFieldMetadataIntoProps(
781
- field,
782
- resolveFieldMetadata(
783
- localizedLegalCompanyNameFieldConfig.jaHaniLegalCompanyName.config,
784
- {},
785
- localizedLegalCompanyNameFieldConfig.jaHaniLegalCompanyName.metadata
786
- ),
787
- acc
788
- );
789
- case "jaKanaLegalCompanyName":
790
- return mergeFieldMetadataIntoProps(
791
- field,
792
- resolveFieldMetadata(
793
- localizedLegalCompanyNameFieldConfig.jaKanaLegalCompanyName.config,
794
- {},
795
- localizedLegalCompanyNameFieldConfig.jaKanaLegalCompanyName.metadata
796
- ),
797
- acc
798
- );
799
- default:
800
- return acc;
801
- }
802
- }, initialProps);
803
- return createFormUtils(formUtilProps ?? initialProps, t);
804
- }, [
805
- companyType,
806
- country,
807
- currentCountryTaxInformation?.type,
808
- form.allFields?.basicInformation,
809
- form.data?.additionalInformation?.registrationNumberType,
810
- form.data?.basicInformation,
811
- form.errors?.basicInformation,
812
- form.obscuredFields?.basicInformation,
813
- form.optionalFields?.basicInformation,
814
- form.requiredFields?.basicInformation,
815
- form.trustedFields?.basicInformation,
816
- form.valid?.basicInformation,
817
- handleChangeFor,
818
- isExperimentEnabled,
819
- state,
820
- t,
821
- validationErrors,
822
- verificationErrors
823
- ]);
824
- const showField = (fieldKeys) => fieldKeys.some((field) => {
825
- switch (field) {
826
- case "registrationNumberType":
827
- case "registrationNumber": {
828
- return (formUtils.isRequiredField(field) || formUtils.isOptionalField(field)) && form.data.basicInformation?.stateOrProvince;
829
- }
830
- default:
831
- return formUtils.isRequiredField(field) || formUtils.isOptionalField(field);
832
- }
833
- });
834
- const legalCompanyNameFields = useLegalCompanyNameField({
835
- data: form.data.basicInformation ?? {},
836
- valid: form.valid.basicInformation ?? {},
837
- errors: form.errors.basicInformation ?? {},
838
- fieldProblems: form.fieldProblems.basicInformation ?? {},
839
- country,
840
- formUtils,
841
- fieldOptions: {
842
- jaHaniLegalCompanyName: {
843
- onInput: handleChangeFor("jaHaniLegalCompanyName", "input"),
844
- onBlur: handleChangeFor("jaHaniLegalCompanyName", "blur")
845
- },
846
- jaKanaLegalCompanyName: {
847
- onInput: handleChangeFor("jaKanaLegalCompanyName", "input"),
848
- onBlur: handleChangeFor("jaKanaLegalCompanyName", "blur")
849
- },
850
- legalCompanyName: {
851
- onInput: handleChangeFor("legalCompanyName", "input"),
852
- onBlur: handleChangeFor("legalCompanyName", "blur")
853
- }
854
- }
855
- });
856
- return /* @__PURE__ */ jsxs("form", { id, className: "adyen-kyc-basic-information", children: [
857
- /* @__PURE__ */ jsx(FormHeader, { heading: t(($) => $[heading]), children: /* @__PURE__ */ jsx(FormDescription, { slot: "description", description }) }),
858
- /* @__PURE__ */ jsx(
859
- ErrorPanel,
860
- {
861
- id: "ariaErrorField",
862
- verificationErrors,
863
- validationErrors,
864
- formUtils
865
- }
866
- ),
867
- /* @__PURE__ */ jsx("fieldset", { children: /* @__PURE__ */ jsx("div", { className: "adyen-kyc-field-wrapper", children: /* @__PURE__ */ jsx(
868
- CountryField,
869
- {
870
- data: formUtils.getFieldData(form.data?.basicInformation ?? {}, COUNTRY_FIELD),
871
- valid: formUtils.getFieldValid(form.valid?.basicInformation ?? {}, COUNTRY_FIELD),
872
- errors: formUtils.getFieldErrors(
873
- form.errors?.basicInformation ?? {},
874
- validationErrors,
875
- COUNTRY_FIELD
876
- ),
877
- labels: formUtils.getFieldLabels(COUNTRY_FIELD, {
878
- country: "countryRegionOfEstablishment"
879
- }),
880
- readonly: formUtils.isReadOnly("country") || !isAllowedEditPrefilledCountry || Boolean(disableCountry),
881
- handleChangeFor,
882
- allowedCountries: isTopLevelEntity ? allowedCountries : void 0
883
- }
884
- ) }) }),
885
- /* @__PURE__ */ jsxs("fieldset", { children: [
886
- showField(COUNTRY_OF_GOVERNING_LAW_FIELD) && /* @__PURE__ */ jsx("div", { className: "adyen-kyc-field-wrapper", children: /* @__PURE__ */ jsx(
887
- CountryOfGoverningLawField,
888
- {
889
- data: formUtils.getFieldData(
890
- form.data?.basicInformation ?? {},
891
- COUNTRY_OF_GOVERNING_LAW_FIELD
892
- ),
893
- country,
894
- valid: formUtils.getFieldValid(
895
- form.valid?.basicInformation ?? {},
896
- COUNTRY_OF_GOVERNING_LAW_FIELD
897
- ),
898
- errors: formUtils.getFieldErrors(
899
- form.errors?.basicInformation ?? {},
900
- validationErrors,
901
- COUNTRY_OF_GOVERNING_LAW_FIELD
902
- ),
903
- labels: formUtils.getFieldLabels(COUNTRY_OF_GOVERNING_LAW_FIELD),
904
- readonly: false,
905
- allowedCountries: isTopLevelEntity ? allowedCountries : void 0,
906
- handleChangeFor
907
- }
908
- ) }),
909
- // fields shown here are abstracted by useLegalCompanyNameField
910
- legalCompanyNameFields.map((field) => /* @__PURE__ */ jsx("div", { className: "adyen-kyc-field-wrapper", children: /* @__PURE__ */ jsx(
911
- Field,
912
- {
913
- name: field?.name ?? "",
914
- label: field?.label,
915
- helper: field?.helper,
916
- errorMessage: field?.errorMessage,
917
- isValid: Boolean(field?.isValid),
918
- children: (childProps) => /* @__PURE__ */ jsx(
919
- InputText,
920
- {
921
- ...childProps,
922
- "aria-required": true,
923
- "aria-invalid": !field?.isValid,
924
- name: field?.name,
925
- value: field?.value,
926
- readonly: field?.readonly,
927
- onInput: field ? field.onInput : () => {
928
- },
929
- onBlur: field?.onBlur,
930
- onKeyDown: field?.onKeyDown
931
- }
932
- )
933
- },
934
- field?.name
935
- ) }, field?.name)),
936
- showField(TAX_INFORMATION_FIELD) && /* @__PURE__ */ jsx("div", { className: "adyen-kyc-field-wrapper", children: /* @__PURE__ */ jsx(
937
- TaxInformationField,
938
- {
939
- data: formUtils.getFieldData(
940
- form.data?.basicInformation ?? {},
941
- TAX_INFORMATION_FIELD
942
- ),
943
- valid: formUtils.getFieldValid(
944
- form.valid?.basicInformation ?? {},
945
- TAX_INFORMATION_FIELD
946
- ),
947
- errors: formUtils.getFieldErrors(
948
- form.errors?.basicInformation ?? {},
949
- validationErrors,
950
- TAX_INFORMATION_FIELD
951
- ),
952
- labels: formUtils.getFieldLabels(TAX_INFORMATION_FIELD, {
953
- exemptedFromTax: "iDontHaveATaxId"
954
- }),
955
- mask: formUtils.getMask("taxInformation"),
956
- placeholders: formUtils.getFieldPlaceholders(TAX_INFORMATION_FIELD),
957
- guidanceText: formUtils.getFieldGuidanceText(TAX_INFORMATION_FIELD),
958
- readonly: formUtils.isReadOnly("taxInformation"),
959
- shouldValidate,
960
- handleChangeFor,
961
- canExempt: showField(["exemptedFromTax"]),
962
- registrationNumber: form.data.additionalInformation?.registrationNumber,
963
- country,
964
- entityType: companyType,
965
- defaultData: form.defaultData?.basicInformation?.taxInformation
966
- }
967
- ) }),
968
- showField(STATE_FIELD) && /* @__PURE__ */ jsx("div", { className: "adyen-kyc-field-wrapper", children: /* @__PURE__ */ jsx(
969
- StateField,
970
- {
971
- data: formUtils.getFieldData(form.data?.basicInformation ?? {}, STATE_FIELD),
972
- valid: formUtils.getFieldValid(form.valid?.basicInformation ?? {}, STATE_FIELD),
973
- errors: formUtils.getFieldErrors(
974
- form.errors?.basicInformation ?? {},
975
- validationErrors,
976
- STATE_FIELD
977
- ),
978
- labels: formUtils.getFieldLabels(STATE_FIELD),
979
- placeholders: formUtils.getFieldPlaceholders(STATE_FIELD),
980
- readonly: formUtils.isReadOnly("stateOrProvince"),
981
- handleChangeFor,
982
- selectedCountry: country
983
- }
984
- ) }),
985
- showField(BUSINESS_REGISTRATION_NUMBER_FIELD) && /* @__PURE__ */ jsx("div", { className: "adyen-kyc-field-wrapper", children: /* @__PURE__ */ jsx(
986
- BusinessRegistrationNumberField,
987
- {
988
- data: formUtils.getFieldData(
989
- form.data?.basicInformation ?? {},
990
- BUSINESS_REGISTRATION_NUMBER_FIELD
991
- ),
992
- valid: formUtils.getFieldValid(
993
- form.valid?.basicInformation ?? {},
994
- BUSINESS_REGISTRATION_NUMBER_FIELD
995
- ),
996
- errors: formUtils.getFieldErrors(
997
- form.errors?.basicInformation ?? {},
998
- validationErrors,
999
- BUSINESS_REGISTRATION_NUMBER_FIELD
1000
- ),
1001
- labels: formUtils.getFieldLabels(BUSINESS_REGISTRATION_NUMBER_FIELD, {
1002
- exemptedFromRegistrationNumber: "iDontHaveARegistrationNumber"
1003
- }),
1004
- mask: formUtils.getMask("registrationNumber"),
1005
- guidanceText: formUtils.getFieldGuidanceText(BUSINESS_REGISTRATION_NUMBER_FIELD),
1006
- placeholders: formUtils.getFieldPlaceholders(BUSINESS_REGISTRATION_NUMBER_FIELD),
1007
- helperText: formUtils.getFieldHelperText(BUSINESS_REGISTRATION_NUMBER_FIELD),
1008
- readonly: formUtils.isReadOnly("registrationNumber"),
1009
- optional: formUtils.isOptionalField("registrationNumber"),
1010
- shouldValidate,
1011
- handleChangeFor,
1012
- country,
1013
- canExempt: showField(["exemptedFromRegistrationNumber"]),
1014
- companyType
1015
- }
1016
- ) })
1017
- ] })
1018
- ] });
1019
- }
1020
- function CompanyStructureMultiform({
1021
- id,
1022
- country,
1023
- heading = "companyStructureFormName",
1024
- description = "companyStructureFormDescription",
1025
- validationErrors = {},
1026
- verificationErrors = {}
1027
- }) {
1028
- const { t } = useTranslation("common");
1029
- const { form } = useFormContext();
1030
- const { accountHolder } = useAccountHolder();
1031
- const { isSettingEnabled } = useSettingsContext();
1032
- const canChangeEntityType = isSettingEnabled(SettingNames.AllowLegalEntityTypeChange);
1033
- const formUtils = createFormUtils(
1034
- { requiredFields: form.requiredFields?.companyStructure ?? [] },
1035
- t
1036
- );
1037
- const excludedTypes = [
1038
- CompanyTypesValues.INCORPORATED_PARTNERSHIP,
1039
- CompanyTypesValues.INCORPORATED_ASSOCIATION
1040
- ];
1041
- if (isBankAccountRequestedForOrganization.value) {
1042
- excludedTypes.push(CompanyTypesValues.GOVERNMENTAL_ORGANIZATION);
1043
- }
1044
- const companyTypeRadioOptions = canChangeEntityType && accountHolder !== "aTrust" && accountHolder !== "anUnincorporatedPartnership" ? companyTypeOptions.filter((companyType) => !excludedTypes.includes(companyType)) : companyTypeOptions;
1045
- const companyTypeExamples = useCompanyTypeExamples(country);
1046
- return /* @__PURE__ */ jsxs("form", { id, className: "adyen-kyc-company-structure", children: [
1047
- /* @__PURE__ */ jsx(FormHeader, { heading: t(($) => $[heading]), description: t(($) => $[description]) }),
1048
- /* @__PURE__ */ jsx(
1049
- ErrorPanel,
1050
- {
1051
- id: "ariaErrorField",
1052
- verificationErrors,
1053
- validationErrors,
1054
- formUtils
1055
- }
1056
- ),
1057
- /* @__PURE__ */ jsx(
1058
- Field,
1059
- {
1060
- el: "fieldset",
1061
- name: "entityType",
1062
- errorMessage: formUtils.getErrorMessage(
1063
- "entityType",
1064
- form.errors?.companyStructure,
1065
- validationErrors
1066
- ),
1067
- isValid: form.valid?.companyStructure?.entityType,
1068
- children: (childProps) => /* @__PURE__ */ jsx(
1069
- EntityTypeRadioGroupCard,
1070
- {
1071
- ...childProps,
1072
- name: "entityType",
1073
- options: companyTypeRadioOptions,
1074
- optionId: (option) => companyTypeMetadata[option].id,
1075
- optionName: (option) => companyTypeMetadata[option].name,
1076
- optionDescription: (option) => companyTypeMetadata[option].description,
1077
- selected: form.data?.companyStructure?.entityType,
1078
- onSelect: form.handleChangeFor("entityType", "companyStructure"),
1079
- examples: companyTypeExamples,
1080
- "aria-required": true,
1081
- "aria-invalid": !form.valid?.companyStructure?.entityType
1082
- }
1083
- )
1084
- }
1085
- )
1086
- ] });
1087
- }
1088
- function BusinessDetailsMultiform({
1089
- taskType,
1090
- country,
1091
- activeForm,
1092
- shouldValidate,
1093
- problems = {},
1094
- handleNextClick,
1095
- handleBackClick,
1096
- setLoadingStatus
1097
- }) {
1098
- const { i18n } = useI18nContext();
1099
- const { form } = useFormContext();
1100
- const companyType = taskType === TaskTypes.SOLE_PROPRIETOR_COMPANY ? CompanyTypesValues.SOLE_PROPRIETORSHIP : form.data.companyStructure?.entityType;
1101
- function handleChange(formName, fieldName, mode) {
1102
- return form.handleChangeFor(fieldName, formName, mode);
1103
- }
1104
- const renderActiveForm = (activeForm2) => {
1105
- switch (activeForm2.formId) {
1106
- case "basicInformation":
1107
- return /* @__PURE__ */ jsx(
1108
- BasicInformationMultiform,
1109
- {
1110
- id: activeForm2.formId,
1111
- country,
1112
- shouldValidate,
1113
- heading: activeForm2.formHeading,
1114
- description: activeForm2.formDescription,
1115
- validationErrors: problems.validationErrors?.[activeForm2.formId],
1116
- verificationErrors: problems.verificationErrors?.[activeForm2.formId]
1117
- }
1118
- );
1119
- case "businessSelection":
1120
- return /* @__PURE__ */ jsx(
1121
- BusinessSelectionMultiform,
1122
- {
1123
- id: activeForm2.formId,
1124
- country,
1125
- shouldValidate,
1126
- heading: activeForm2.formHeading,
1127
- description: activeForm2.formDescription,
1128
- validationErrors: problems.validationErrors?.[activeForm2.formId],
1129
- verificationErrors: problems.verificationErrors?.[activeForm2.formId],
1130
- handleNextClick,
1131
- handleBackClick,
1132
- setLoadingStatus
1133
- }
1134
- );
1135
- case "companyStructure":
1136
- return /* @__PURE__ */ jsx(
1137
- CompanyStructureMultiform,
1138
- {
1139
- id: activeForm2.formId,
1140
- country,
1141
- shouldValidate,
1142
- heading: activeForm2.formHeading,
1143
- description: activeForm2.formDescription,
1144
- validationErrors: problems.validationErrors?.[activeForm2.formId],
1145
- verificationErrors: problems.verificationErrors?.[activeForm2.formId]
1146
- }
1147
- );
1148
- case "additionalInformation":
1149
- return /* @__PURE__ */ jsx(
1150
- AdditionalInformationMultiform,
1151
- {
1152
- id: activeForm2.formId,
1153
- country,
1154
- companyType,
1155
- shouldValidate,
1156
- heading: activeForm2.formHeading,
1157
- description: activeForm2.formDescription,
1158
- validationErrors: problems.validationErrors?.[activeForm2.formId],
1159
- verificationErrors: problems.verificationErrors?.[activeForm2.formId]
1160
- }
1161
- );
1162
- case "companyTaxDocument":
1163
- return country === "US" ? /* @__PURE__ */ jsx(
1164
- TaxDocument,
1165
- {
1166
- id: activeForm2.formId,
1167
- country,
1168
- companyType,
1169
- shouldValidate,
1170
- heading: activeForm2.formHeading,
1171
- description: activeForm2.formDescription,
1172
- fieldValidationErrors: problems.validationErrors?.[activeForm2.formId] ?? {},
1173
- formVerificationErrors: problems.verificationErrors?.[activeForm2.formId] ?? {},
1174
- data: form.data.companyTaxDocument,
1175
- errors: form.errors.companyTaxDocument,
1176
- valid: form.valid.companyTaxDocument,
1177
- allFields: form.allFields?.companyTaxDocument,
1178
- requiredFields: form.requiredFields?.companyTaxDocument,
1179
- optionalFields: form.optionalFields?.companyTaxDocument,
1180
- trustedFields: form.trustedFields?.companyTaxDocument,
1181
- handleFieldChange: () => handleChange("companyTaxDocument", "taxDocument")
1182
- }
1183
- ) : /* @__PURE__ */ jsx(
1184
- MemoizedDocumentUpload,
1185
- {
1186
- id: activeForm2.formId,
1187
- country,
1188
- companyType,
1189
- shouldValidate,
1190
- heading: activeForm2.formHeading,
1191
- description: activeForm2.formDescription,
1192
- fieldValidationErrors: problems.validationErrors?.[activeForm2.formId] ?? {},
1193
- formVerificationErrors: problems.verificationErrors?.[activeForm2.formId] ?? {},
1194
- data: form.data.companyTaxDocument,
1195
- errors: form.errors.companyTaxDocument,
1196
- valid: form.valid.companyTaxDocument,
1197
- allFields: form.allFields?.companyTaxDocument,
1198
- requiredFields: form.requiredFields?.companyTaxDocument,
1199
- optionalFields: form.optionalFields?.companyTaxDocument,
1200
- trustedFields: form.trustedFields?.companyTaxDocument,
1201
- handleFieldChange: () => handleChange("companyTaxDocument", "taxDocument"),
1202
- documentField: "taxDocument",
1203
- documentType: "vatDocument",
1204
- hidePageCount: true,
1205
- guidanceContent: /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-u-margin-bottom-24", children: [
1206
- /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-upload-field__subtitle", children: [
1207
- " ",
1208
- i18n.get("requirements")
1209
- ] }),
1210
- /* @__PURE__ */ jsxs("ul", { children: [
1211
- /* @__PURE__ */ jsx("li", { children: i18n.get("containsNameOfCompany") }),
1212
- /* @__PURE__ */ jsx("li", { children: i18n.get("documentShowsTaxIdOfCompany") }),
1213
- /* @__PURE__ */ jsx("li", { children: i18n.get("issuedByTheTaxAuthority") })
1214
- ] })
1215
- ] })
1216
- }
1217
- );
1218
- case "companyRegistrationDocument":
1219
- return /* @__PURE__ */ jsx(
1220
- RegistrationDocument,
1221
- {
1222
- id: activeForm2.formId,
1223
- heading: activeForm2.formHeading,
1224
- description: activeForm2.formDescription,
1225
- country,
1226
- companyType,
1227
- data: form.data.companyRegistrationDocument,
1228
- errors: form.errors.companyRegistrationDocument,
1229
- valid: form.valid.companyRegistrationDocument,
1230
- allFields: form.allFields?.companyRegistrationDocument,
1231
- requiredFields: form.requiredFields?.companyRegistrationDocument,
1232
- optionalFields: form.optionalFields?.companyRegistrationDocument,
1233
- trustedFields: form.trustedFields?.companyRegistrationDocument,
1234
- handleFieldChange: () => handleChange("companyRegistrationDocument", "registrationDocument"),
1235
- shouldValidate,
1236
- fieldValidationErrors: problems.validationErrors?.[activeForm2.formId] ?? {},
1237
- formVerificationErrors: problems.verificationErrors?.[activeForm2.formId] ?? {}
1238
- }
1239
- );
1240
- case "companyProofOfDirectorDocument":
1241
- return /* @__PURE__ */ jsx(
1242
- ProofOfDirectorDocument,
1243
- {
1244
- id: activeForm2.formId,
1245
- heading: activeForm2.formHeading,
1246
- description: activeForm2.formDescription,
1247
- country,
1248
- data: form.data?.companyProofOfDirectorDocument,
1249
- errors: form.errors.companyProofOfDirectorDocument,
1250
- valid: form.valid.companyProofOfDirectorDocument,
1251
- allFields: form.allFields?.companyProofOfDirectorDocument,
1252
- requiredFields: form.requiredFields?.companyProofOfDirectorDocument,
1253
- optionalFields: form.optionalFields?.companyProofOfDirectorDocument,
1254
- trustedFields: form.trustedFields?.companyProofOfDirectorDocument,
1255
- handleFieldChange: () => handleChange("companyProofOfDirectorDocument", "proofOfDirector"),
1256
- shouldValidate,
1257
- fieldValidationErrors: problems.validationErrors?.[activeForm2.formId] ?? {},
1258
- formVerificationErrors: problems.verificationErrors?.[activeForm2.formId] ?? {}
1259
- }
1260
- );
1261
- case "companyProofOfSignatoryDocument":
1262
- return /* @__PURE__ */ jsx(
1263
- ProofOfSignatoryDocument,
1264
- {
1265
- id: activeForm2.formId,
1266
- heading: activeForm2.formHeading,
1267
- description: activeForm2.formDescription,
1268
- country,
1269
- data: form.data?.companyProofOfSignatoryDocument,
1270
- errors: form.errors.companyProofOfSignatoryDocument,
1271
- valid: form.valid.companyProofOfSignatoryDocument,
1272
- allFields: form.allFields?.companyProofOfSignatoryDocument,
1273
- requiredFields: form.requiredFields?.companyProofOfSignatoryDocument,
1274
- optionalFields: form.optionalFields?.companyProofOfSignatoryDocument,
1275
- trustedFields: form.trustedFields?.companyProofOfSignatoryDocument,
1276
- handleFieldChange: () => handleChange("companyProofOfSignatoryDocument", "proofOfSignatory"),
1277
- shouldValidate,
1278
- fieldValidationErrors: problems.validationErrors?.[activeForm2.formId] ?? {},
1279
- formVerificationErrors: problems.verificationErrors?.[activeForm2.formId] ?? {}
1280
- }
1281
- );
1282
- case "companyProofOfOwnershipDocument":
1283
- return /* @__PURE__ */ jsx(
1284
- ProofOfOwnershipDocument,
1285
- {
1286
- id: activeForm2.formId,
1287
- heading: activeForm2.formHeading,
1288
- description: activeForm2.formDescription,
1289
- country,
1290
- data: form.data?.companyProofOfOwnershipDocument,
1291
- errors: form.errors.companyProofOfOwnershipDocument,
1292
- valid: form.valid.companyProofOfOwnershipDocument,
1293
- allFields: form.allFields?.companyProofOfOwnershipDocument,
1294
- requiredFields: form.requiredFields?.companyProofOfOwnershipDocument,
1295
- optionalFields: form.optionalFields?.companyProofOfOwnershipDocument,
1296
- trustedFields: form.trustedFields?.companyProofOfOwnershipDocument,
1297
- handleFieldChange: () => handleChange("companyProofOfOwnershipDocument", "proofOfOwnership"),
1298
- shouldValidate,
1299
- fieldValidationErrors: problems.validationErrors?.[activeForm2.formId] ?? {},
1300
- formVerificationErrors: problems.verificationErrors?.[activeForm2.formId] ?? {}
1301
- }
1302
- );
1303
- case "companyConstitutionalDocument":
1304
- return /* @__PURE__ */ jsx(
1305
- MemoizedConstitutionalDocument,
1306
- {
1307
- id: activeForm2.formId,
1308
- legalEntityType: LegalEntityTypes.SOLE_PROPRIETORSHIP,
1309
- country,
1310
- data: form.data?.companyConstitutionalDocument,
1311
- errors: form.errors.companyConstitutionalDocument,
1312
- valid: form.valid.companyConstitutionalDocument,
1313
- allFields: form.allFields?.companyConstitutionalDocument,
1314
- requiredFields: form.requiredFields?.companyConstitutionalDocument,
1315
- optionalFields: form.optionalFields?.companyConstitutionalDocument,
1316
- trustedFields: form.trustedFields?.companyConstitutionalDocument,
1317
- handleFieldChange: () => handleChange("companyConstitutionalDocument", "constitutionalDocument"),
1318
- shouldValidate,
1319
- fieldValidationErrors: problems.validationErrors?.[activeForm2.formId] ?? {},
1320
- formVerificationErrors: problems.verificationErrors?.[activeForm2.formId] ?? {}
1321
- }
1322
- );
1323
- case "companyFinancialInformation":
1324
- return /* @__PURE__ */ jsx(
1325
- FinancialInformation,
1326
- {
1327
- multiForm: form,
1328
- id: activeForm2.formId,
1329
- country,
1330
- heading: i18n.get(activeForm2.formHeading),
1331
- description: activeForm2.formDescription,
1332
- data: form.data?.companyFinancialInformation,
1333
- allFields: form.allFields?.companyFinancialInformation,
1334
- requiredFields: form.requiredFields?.companyFinancialInformation,
1335
- optionalFields: form.optionalFields?.companyFinancialInformation,
1336
- trustedFields: form.trustedFields?.companyFinancialInformation,
1337
- shouldValidate
1338
- }
1339
- );
1340
- default:
1341
- return null;
1342
- }
1343
- };
1344
- return /* @__PURE__ */ jsx("div", { className: "adyen-kyc-business-details", children: /* @__PURE__ */ jsx("div", { className: "adyen-kyc-form-wrapper", children: renderActiveForm(activeForm) }) });
1345
- }
1346
- function buildRequiredForms({
1347
- config: { country, forms, requiredFields, optionalFields, isValid, problems },
1348
- options
1349
- }) {
1350
- const usesBusinessSelection = COUNTRIES_USING_COMPANY_SEARCH.includes(country);
1351
- const filteredForms = Object.values(forms).filter(({ formId }) => {
1352
- if (usesBusinessSelection) {
1353
- if (formId === "businessSelection" && options?.hasNoSearchResults) return false;
1354
- if (formId === "companyStructure" && options?.verifiedBusiness && options.verifiedBusiness.legalForm)
1355
- return false;
1356
- }
1357
- if (requiredFields || optionalFields) {
1358
- return Boolean(requiredFields?.[formId]) || Boolean(optionalFields?.[formId]);
1359
- }
1360
- return true;
1361
- });
1362
- const requiredForms = options?.skipSummary ? filteredForms : [...filteredForms, summaryStep];
1363
- return addValidityToForms(requiredForms, isValid, problems);
1364
- }
1365
- function basicInformationValidators({
1366
- country,
1367
- taxIdNumberType,
1368
- companyType,
1369
- registrationNumberType,
1370
- state,
1371
- isExperimentEnabled
1372
- }) {
1373
- return {
1374
- country: CountryFieldValidation().country,
1375
- countryOfGoverningLaw: CountryOfGoverningLawFieldValidation().countryOfGoverningLaw,
1376
- legalCompanyName: resolveFieldMetadata(
1377
- isExperimentEnabled("StrictNameAndAddressValidationV4") ? defaultFieldConfigV4[country] : defaultFieldConfig$2[country],
1378
- { isBusiness: true },
1379
- isExperimentEnabled("StrictNameAndAddressValidationV4") ? defaultFieldMetadataV4 : defaultFieldMetadata$2
1380
- )?.validators,
1381
- taxInformation: resolveFieldMetadata(
1382
- taxInformationDefaultFieldConfig[country],
1383
- {
1384
- taxIdNumberType,
1385
- companyType
1386
- },
1387
- taxInformationDefaultFieldMetadata
1388
- )?.validators,
1389
- stateOrProvince: resolveFieldMetadata(
1390
- defaultFieldConfig$1[country],
1391
- { isBusiness: true },
1392
- defaultFieldMetadata$1
1393
- )?.validators,
1394
- registrationNumber: resolveFieldMetadata(
1395
- registrationNumberDefaultFieldConfig[country],
1396
- {
1397
- companyType,
1398
- registrationNumberType,
1399
- state,
1400
- isExperimentEnabled
1401
- },
1402
- registrationNumberDefaultFieldMetadata
1403
- )?.validators
1404
- };
1405
- }
1406
- function businessSelectionValidators() {
1407
- return {
1408
- hasSelectedBusiness: {
1409
- modes: ["blur", "input"],
1410
- validate: (value) => typeof value === "boolean",
1411
- // indicates a selection was made
1412
- errorMessage: "fieldIsRequired"
1413
- }
1414
- };
1415
- }
1416
- function additionalInformationValidators({
1417
- country,
1418
- taxIdNumberType,
1419
- companyType,
1420
- registrationNumberType,
1421
- vatNumberType,
1422
- isExperimentEnabled
1423
- }) {
1424
- return {
1425
- hasDoingBusinessAs: doingBusinessAsAbsentFieldMetadata.validators,
1426
- doingBusinessAs: doingBusinessAsFieldMetadata.validators,
1427
- registrationNumber: resolveFieldMetadata(
1428
- registrationNumberDefaultFieldConfig[country],
1429
- {
1430
- companyType,
1431
- registrationNumberType,
1432
- isExperimentEnabled
1433
- },
1434
- registrationNumberDefaultFieldMetadata
1435
- )?.validators,
1436
- exemptedFromRegistrationNumber: exemptFromRegistrationNumberDefaultFieldMetadata.validators,
1437
- taxInformation: resolveFieldMetadata(
1438
- taxInformationDefaultFieldConfig[country],
1439
- {
1440
- taxIdNumberType,
1441
- companyType
1442
- },
1443
- taxInformationDefaultFieldMetadata
1444
- ).validators,
1445
- vatNumber: resolveFieldMetadata(
1446
- defaultFieldConfig[country],
1447
- { vatNumberType },
1448
- defaultFieldMetadata
1449
- ).validators,
1450
- vatAbsenceReason: vatAbsenceReasonMetadata.validators,
1451
- eInvoicingCode: eInvoicingCodeFieldMetadata.validators,
1452
- industryCodes: industryCodeFieldMetadata.validators,
1453
- dateOfIncorporation: dateOfIncorporationFieldMetadata.validators,
1454
- stockExchangeMIC: stockExchangeMICFieldMetadata.validators,
1455
- stockISIN: stockISINFieldMetadata.validators,
1456
- stockTickerSymbol: stockTickerSymbolFieldMetadata.validators
1457
- };
1458
- }
1459
- function BusinessDetailsMultiformDropin({
1460
- taskType = TaskTypes.BUSINESS_DETAILS,
1461
- country: propCountry,
1462
- problems: propProblems,
1463
- legalEntityResponse,
1464
- associatedLegalArrangement,
1465
- // initially undefined when creating entity
1466
- nestedLegalEntity,
1467
- // initially undefined when creating entity
1468
- nestedLegalEntityDetails,
1469
- // has entity roles for association logic
1470
- onSubmit: onExternalSubmit,
1471
- handleHomeClick,
1472
- asModal = false
1473
- }) {
1474
- useTranslation(["business", "common"]);
1475
- const { baseUrl, rootLegalEntityId } = useApiContext();
1476
- const { i18n } = useI18nContext();
1477
- const userEvents = useAnalyticsContext();
1478
- const { showToast } = useToastContext();
1479
- const queryClient = useQueryClient();
1480
- const { isExperimentEnabled } = useExperimentsContext();
1481
- const { isSettingEnabled } = useSettingsContext();
1482
- const { accountHolder, setAccountHolder } = useAccountHolder();
1483
- const { mutateAsync: createLegalEntity } = useCreateLegalEntity();
1484
- const { mutateAsync: updateLegalEntity } = useUpdateLegalEntity();
1485
- const [country, setCountry] = useState(propCountry);
1486
- const [documents, setDocuments] = useState();
1487
- const [problems, setProblems] = useState(propProblems ?? {});
1488
- const [loadingStatus, setLoadingStatus] = useState("success");
1489
- const [derivedProps, setDerivedProps] = useState();
1490
- const [trustedFields, setTrustedFields] = useState(
1491
- legalEntityResponse?.trustedFields ?? void 0
1492
- );
1493
- const defaultForms = useMemo(() => getForms(country), [country]);
1494
- const documentUtils = documentApiUtils({
1495
- baseUrl: baseUrl.value,
1496
- rootLegalEntityId: rootLegalEntityId.value
1497
- });
1498
- useEffect(() => {
1499
- if (!legalEntityResponse?.documentDetails?.length) return;
1500
- documentUtils.fetchDocuments(legalEntityResponse.documentDetails, legalEntityResponse?.id).then(() => {
1501
- setDocuments(mapApiDocumentToBusinessDetailsDocuments(legalEntityResponse?.id));
1502
- }).catch(() => {
1503
- showToast({ label: i18n.get("failedToFetchRelevantDocuments"), variant: "error" });
1504
- });
1505
- }, [legalEntityResponse.documentDetails, legalEntityResponse?.id]);
1506
- const parseConfiguration = useCallback(
1507
- ({ scenarios }) => composePerScenarioFormConfigurations(scenarios, businessDetailsFieldsPerScenario),
1508
- []
1509
- );
1510
- const { fieldConfigurations } = useScenarioConfiguration({
1511
- legalEntityType: LegalEntityTypes.ORGANIZATION,
1512
- parseConfiguration,
1513
- setLoadingStatus,
1514
- country
1515
- });
1516
- const defaultData = useMemo(
1517
- () => ({
1518
- ...mapLegalEntityToBusinessDetailsSchema(legalEntityResponse, {}, isExperimentEnabled),
1519
- ...documents
1520
- }),
1521
- [legalEntityResponse, documents, isExperimentEnabled]
1522
- );
1523
- const buildFieldValidations = useCallback(
1524
- (data) => {
1525
- const taxInfo = data?.basicInformation?.taxInformation ?? data?.additionalInformation?.taxInformation;
1526
- const taxIdType = taxInfo?.length ? taxInfo.find((taxId) => taxId.country === country)?.type : void 0;
1527
- const regNumberType = data?.basicInformation?.registrationNumberType ?? data?.additionalInformation?.registrationNumberType;
1528
- return {
1529
- basicInformation: basicInformationValidators({
1530
- country,
1531
- state: data?.basicInformation?.stateOrProvince,
1532
- companyType: data?.companyStructure?.entityType,
1533
- taxIdNumberType: taxIdType,
1534
- registrationNumberType: regNumberType,
1535
- isExperimentEnabled
1536
- }),
1537
- businessSelection: businessSelectionValidators(),
1538
- companyStructure: CompanyStructureValidation,
1539
- additionalInformation: additionalInformationValidators({
1540
- country,
1541
- taxIdNumberType: taxIdType,
1542
- companyType: data?.companyStructure?.entityType,
1543
- registrationNumberType: regNumberType,
1544
- vatNumberType: data?.additionalInformation?.vatNumberType,
1545
- isExperimentEnabled
1546
- }),
1547
- financialInformation: financialInfoValidationWithEmployeesRules
1548
- };
1549
- },
1550
- [country, isExperimentEnabled]
1551
- );
1552
- const multiForm = useMultiForm({
1553
- defaultData,
1554
- allFields: derivedProps?.allFields,
1555
- requiredFields: derivedProps?.requiredFields,
1556
- optionalFields: derivedProps?.optionalFields,
1557
- obscuredFields: derivedProps?.obscuredFields,
1558
- trustedFields: derivedProps?.trustedFields,
1559
- rules: buildFieldValidations
1560
- });
1561
- const isTinMatched = tinMatched.value;
1562
- const customRules = useMemo(
1563
- () => rules({
1564
- data: multiForm.data,
1565
- country,
1566
- taskType,
1567
- isExperimentEnabled,
1568
- isSettingEnabled,
1569
- accountHolder,
1570
- tinMatched: isTinMatched,
1571
- rootLegalEntity: legalEntityResponse
1572
- }),
1573
- [
1574
- multiForm.data,
1575
- country,
1576
- taskType,
1577
- isExperimentEnabled,
1578
- isSettingEnabled,
1579
- accountHolder,
1580
- isTinMatched,
1581
- legalEntityResponse
1582
- ]
1583
- );
1584
- useEffect(() => {
1585
- const props = getPropsFromConfigurations({
1586
- scenarioConfiguration: fieldConfigurations,
1587
- forms: defaultForms,
1588
- remediationActions: problems?.remediationActions ? Object.values(problems?.remediationActions) : [],
1589
- dataMissingErrors: problems?.missingData ?? [],
1590
- fieldsWithExistingData: getFieldsWithExistingData(
1591
- legalEntityResponse,
1592
- businessDetailsApiKeyMapping,
1593
- businessDetailsDocumentMapping
1594
- ),
1595
- customRules,
1596
- legalEntityType: legalEntityResponse?.type,
1597
- legalEntityTrustedFields: trustedFields
1598
- });
1599
- setDerivedProps(props);
1600
- }, [
1601
- customRules,
1602
- defaultForms,
1603
- fieldConfigurations,
1604
- legalEntityResponse,
1605
- problems?.missingData,
1606
- problems?.remediationActions,
1607
- trustedFields
1608
- ]);
1609
- const [prevCountry, setPrevCountry] = useState(multiForm.data.basicInformation?.country);
1610
- if (multiForm.data.basicInformation?.country && prevCountry !== multiForm.data.basicInformation?.country) {
1611
- setCountry(multiForm.data?.basicInformation?.country);
1612
- setPrevCountry(multiForm.data.basicInformation?.country);
1613
- setTrustedFields(void 0);
1614
- verifiedBusiness.value = void 0;
1615
- tinMatched.value = void 0;
1616
- businessMismatchModalOpen.value = false;
1617
- }
1618
- const [forms, setForms] = useState(
1619
- buildRequiredForms({
1620
- config: {
1621
- country,
1622
- forms: defaultForms,
1623
- requiredFields: derivedProps?.requiredFields,
1624
- optionalFields: derivedProps?.optionalFields,
1625
- isValid: multiForm.isValid ?? {},
1626
- problems
1627
- },
1628
- options: {
1629
- hasNoSearchResults: false,
1630
- verifiedBusiness: verifiedBusiness.value
1631
- }
1632
- })
1633
- );
1634
- const updateForms = useCallback(
1635
- ({ searchResults }) => {
1636
- const updatedForms = buildRequiredForms({
1637
- config: {
1638
- country,
1639
- forms: defaultForms,
1640
- requiredFields: derivedProps?.requiredFields,
1641
- optionalFields: derivedProps?.optionalFields,
1642
- isValid: multiForm.isValid ?? {},
1643
- problems
1644
- },
1645
- options: {
1646
- hasNoSearchResults: searchResults && !searchResults.length,
1647
- verifiedBusiness: verifiedBusiness.value
1648
- }
1649
- });
1650
- setForms(updatedForms);
1651
- return updatedForms;
1652
- },
1653
- [
1654
- country,
1655
- defaultForms,
1656
- derivedProps?.optionalFields,
1657
- derivedProps?.requiredFields,
1658
- multiForm.isValid,
1659
- problems
1660
- ]
1661
- );
1662
- const summaryData = useMemo(
1663
- () => formatDataForSummary(multiForm.data, forms, i18n, isExperimentEnabled),
1664
- [multiForm.data, forms, i18n, isExperimentEnabled]
1665
- );
1666
- const associatedLeTrackingParams = useMemo(
1667
- () => getAssociatedLeAnalyticsPayload({
1668
- associatedLegalEntity: associatedLegalArrangement
1669
- }),
1670
- [associatedLegalArrangement]
1671
- );
1672
- const handleTrackNavigation = useCallback(
1673
- (props) => {
1674
- trackNavigation({
1675
- ...props,
1676
- additionalTrackingParams: associatedLeTrackingParams
1677
- });
1678
- },
1679
- [associatedLeTrackingParams]
1680
- );
1681
- const submitTask = useCallback(() => {
1682
- setAccountHolder(accountHolder);
1683
- return submit({
1684
- additionalTrackingParams: associatedLeTrackingParams,
1685
- data: multiForm.data,
1686
- legalEntityResponse,
1687
- associatedLegalArrangement,
1688
- nestedLegalEntity,
1689
- nestedLegalEntityDetails,
1690
- problems,
1691
- taskType: taskType ?? TaskTypes.BUSINESS_DETAILS,
1692
- accountHolder: accountHolder ?? "theCompanyIWorkFor",
1693
- forms,
1694
- documentUtils,
1695
- i18n,
1696
- showToast,
1697
- setLoadingStatus,
1698
- setProblems,
1699
- handleUpdateLegalEntity: updateLegalEntity,
1700
- createLegalEntity,
1701
- onExternalSubmit,
1702
- isExperimentEnabled,
1703
- userEvents
1704
- });
1705
- }, [
1706
- setAccountHolder,
1707
- accountHolder,
1708
- associatedLeTrackingParams,
1709
- multiForm.data,
1710
- legalEntityResponse,
1711
- associatedLegalArrangement,
1712
- nestedLegalEntity,
1713
- nestedLegalEntityDetails,
1714
- problems,
1715
- taskType,
1716
- forms,
1717
- documentUtils,
1718
- i18n,
1719
- showToast,
1720
- updateLegalEntity,
1721
- createLegalEntity,
1722
- onExternalSubmit,
1723
- isExperimentEnabled,
1724
- userEvents
1725
- ]);
1726
- const {
1727
- handleNextClick,
1728
- handleBackClick,
1729
- activeForm,
1730
- shouldValidate,
1731
- gotoFormByFormIndex,
1732
- steps
1733
- } = useFormComposer({
1734
- problems,
1735
- navigationTrackingParams: associatedLeTrackingParams,
1736
- forms,
1737
- onSubmit: submitTask,
1738
- triggerValidation: multiForm.triggerValidation
1739
- });
1740
- const handleBusinessMismatchContinue = () => {
1741
- setTrustedFields([]);
1742
- businessMismatchModalOpen.value = false;
1743
- handleNextClick();
1744
- };
1745
- const handleBusinessMismatchCancel = () => {
1746
- handleBackClick?.();
1747
- businessMismatchModalOpen.value = false;
1748
- tinMatched.value = false;
1749
- };
1750
- const companySearchQueryInput = {
1751
- name: multiForm.data?.basicInformation?.legalCompanyName ?? "",
1752
- country: multiForm.data?.basicInformation?.country,
1753
- state: multiForm.data?.basicInformation?.stateOrProvince,
1754
- registrationNumber: multiForm.data?.basicInformation?.registrationNumber
1755
- };
1756
- const verifyTinQueryInput = {
1757
- name: multiForm.data.basicInformation?.legalCompanyName ?? "",
1758
- tin: multiForm.data?.basicInformation?.taxInformation?.find((taxId) => taxId.country === country)?.number ?? ""
1759
- };
1760
- const { data: companySearchResponse } = useCompanySearch(companySearchQueryInput, {
1761
- enabled: false
1762
- });
1763
- useVerifyTin(verifyTinQueryInput, { enabled: false });
1764
- const attemptBusinessSearch = async () => {
1765
- try {
1766
- setLoadingStatus("loading");
1767
- const searchResponse = await queryClient.fetchQuery({
1768
- queryKey: ["companySearch", companySearchQueryInput]
1769
- });
1770
- const currentForms = updateForms({ searchResults: searchResponse.results });
1771
- if (!searchResponse.results.length) {
1772
- const tinVerificationResponse = await queryClient.fetchQuery({
1773
- queryKey: ["verifyTin", verifyTinQueryInput]
1774
- });
1775
- if (!tinVerificationResponse?.matched) {
1776
- businessMismatchModalOpen.value = true;
1777
- tinMatched.value = false;
1778
- return setLoadingStatus("success");
1779
- } else {
1780
- tinMatched.value = true;
1781
- }
1782
- }
1783
- setLoadingStatus("success");
1784
- return handleNextClick(currentForms);
1785
- } catch {
1786
- setLoadingStatus("error");
1787
- }
1788
- };
1789
- const overrideNextClick = async () => {
1790
- if (!activeForm.isValid) return handleNextClick();
1791
- if (!COUNTRIES_USING_COMPANY_SEARCH.includes(country)) {
1792
- return handleNextClick();
1793
- }
1794
- switch (activeForm.formId) {
1795
- case "basicInformation": {
1796
- return await attemptBusinessSearch();
1797
- }
1798
- case "businessSelection": {
1799
- const currentForms = updateForms({
1800
- searchResults: companySearchResponse?.results
1801
- });
1802
- return handleNextClick(currentForms);
1803
- }
1804
- default:
1805
- return handleNextClick();
1806
- }
1807
- };
1808
- useEffect(() => {
1809
- updateForms({
1810
- searchResults: companySearchResponse?.results
1811
- });
1812
- }, [updateForms, companySearchResponse?.results]);
1813
- return /* @__PURE__ */ jsx(FormContextProvider, { form: multiForm, children: /* @__PURE__ */ jsxs(
1814
- FormFlow,
1815
- {
1816
- summary: {
1817
- data: summaryData,
1818
- omitted: {
1819
- keys: ["operationalAddressIsSame"],
1820
- forms: ["businessSelection"]
1821
- },
1822
- problems,
1823
- trackNavigation: handleTrackNavigation,
1824
- showLegalCaption: true
1825
- },
1826
- asModal,
1827
- currentStep: steps.current,
1828
- totalSteps: steps.total,
1829
- forms,
1830
- disableNextButton: activeForm.formId === "businessSelection",
1831
- gotoFormByFormIndex,
1832
- handleNextClick: overrideNextClick,
1833
- handleBackClick,
1834
- handleCancelClick: handleHomeClick,
1835
- loadingStatus,
1836
- children: [
1837
- /* @__PURE__ */ jsx(
1838
- BusinessDetailsMultiform,
1839
- {
1840
- taskType,
1841
- activeForm,
1842
- country,
1843
- shouldValidate,
1844
- problems,
1845
- handleNextClick: overrideNextClick,
1846
- handleBackClick,
1847
- setLoadingStatus
1848
- }
1849
- ),
1850
- businessMismatchModalOpen.value && /* @__PURE__ */ jsx(
1851
- Confirm,
1852
- {
1853
- title: i18n.get("businessSelection__tinVerificationFailureModalHeader"),
1854
- description: i18n.get("businessSelection__tinVerificationFailureModalContent"),
1855
- cancelText: i18n.get("businessSelection__tinVerificationFailureModalSecondaryButton"),
1856
- confirmText: i18n.get("businessSelection__tinVerificationFailureModalPrimaryButton"),
1857
- onCancel: handleBusinessMismatchCancel,
1858
- onConfirm: handleBusinessMismatchContinue
1859
- }
1860
- )
1861
- ]
1862
- }
1863
- ) });
1864
- }
1865
- const RootBusinessDetailsPage = ({
1866
- isTargetLegalEntityType = false,
1867
- onSubmit,
1868
- handleHomeClick
1869
- }) => {
1870
- const { i18n } = useTranslation();
1871
- const { accountHolder } = useAccountHolder();
1872
- const { data: rootLe } = useLegalEntity(ROOT_LE);
1873
- const capabilityProblems = useCapabilityProblems();
1874
- const { isExperimentEnabled } = useExperimentsContext();
1875
- addResourceBundles(i18n, i18n.language, [
1876
- { ns: "business", importFn: () => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../language/bg-BG.json": () => import("./bg-BG-9uVrFuHv.js"), "../language/cs-CZ.json": () => import("./cs-CZ-Wzc382q6.js"), "../language/da-DK.json": () => import("./da-DK-CeNMXUfE.js"), "../language/de-DE.json": () => import("./de-DE-JI-7mvxy.js"), "../language/el-GR.json": () => import("./el-GR-DfNOPkLq.js"), "../language/en-US.json": () => import("./en-US-DHq7VYFs.js"), "../language/es-ES.json": () => import("./es-ES-DOVPTeyf.js"), "../language/et-EE.json": () => import("./et-EE-BJIsPOnh.js"), "../language/fi-FI.json": () => import("./fi-FI-D522KHGk.js"), "../language/fr-FR.json": () => import("./fr-FR-DInQKkTd.js"), "../language/hr-HR.json": () => import("./hr-HR-DzS44Gpv.js"), "../language/hu-HU.json": () => import("./hu-HU-xCvNM5TU.js"), "../language/it-IT.json": () => import("./it-IT-CjEYONJg.js"), "../language/ja-JP.json": () => import("./ja-JP-Ajo-tIow.js"), "../language/lt-LT.json": () => import("./lt-LT-B6CJ4ULI.js"), "../language/lv-LV.json": () => import("./lv-LV-DTtuyfHS.js"), "../language/nl-NL.json": () => import("./nl-NL-Zcq0bXd-.js"), "../language/no-NO.json": () => import("./no-NO-BxReX6oF.js"), "../language/pl-PL.json": () => import("./pl-PL-T6uD5--R.js"), "../language/pt-BR.json": () => import("./pt-BR-BljlblJ5.js"), "../language/pt-PT.json": () => import("./pt-PT-N0njcfLO.js"), "../language/ro-RO.json": () => import("./ro-RO-Ic1SzBgx.js"), "../language/sk-SK.json": () => import("./sk-SK-CiD0FeLN.js"), "../language/sl-SI.json": () => import("./sl-SI-MZoDApq9.js"), "../language/sv-SE.json": () => import("./sv-SE-DCFSf4Oj.js") }), `../language/${i18n.language}.json`, 3) },
1877
- {
1878
- ns: "businessLines",
1879
- importFn: () => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../../BusinessLines/language/bg-BG.json": () => import("./bg-BG-B0-ZcjR0.js"), "../../BusinessLines/language/cs-CZ.json": () => import("./cs-CZ-Dk1ePReM.js"), "../../BusinessLines/language/da-DK.json": () => import("./da-DK-DStNe471.js"), "../../BusinessLines/language/de-DE.json": () => import("./de-DE-CGoBPCPv.js"), "../../BusinessLines/language/el-GR.json": () => import("./el-GR-B69zcWyB.js"), "../../BusinessLines/language/en-US.json": () => import("./en-US-DI1dH0ZB.js"), "../../BusinessLines/language/es-ES.json": () => import("./es-ES-CKMfS8Yy.js"), "../../BusinessLines/language/et-EE.json": () => import("./et-EE-Dw-aPF7J.js"), "../../BusinessLines/language/fi-FI.json": () => import("./fi-FI-REYOX46I.js"), "../../BusinessLines/language/fr-FR.json": () => import("./fr-FR-D9qaP6nx.js"), "../../BusinessLines/language/hr-HR.json": () => import("./hr-HR-CbxEvbrE.js"), "../../BusinessLines/language/hu-HU.json": () => import("./hu-HU-D0C6UfXB.js"), "../../BusinessLines/language/it-IT.json": () => import("./it-IT-Biduphjt.js"), "../../BusinessLines/language/ja-JP.json": () => import("./ja-JP-B2txEVPx.js"), "../../BusinessLines/language/lt-LT.json": () => import("./lt-LT-C_YMgjp9.js"), "../../BusinessLines/language/lv-LV.json": () => import("./lv-LV-B3sT3_cw.js"), "../../BusinessLines/language/nl-NL.json": () => import("./nl-NL-G1wVnmzT.js"), "../../BusinessLines/language/no-NO.json": () => import("./no-NO-BTtAuqCb.js"), "../../BusinessLines/language/pl-PL.json": () => import("./pl-PL--qPaNyJD.js"), "../../BusinessLines/language/pt-BR.json": () => import("./pt-BR-Cmr5LoAm.js"), "../../BusinessLines/language/pt-PT.json": () => import("./pt-PT-Dk48OVtf.js"), "../../BusinessLines/language/ro-RO.json": () => import("./ro-RO-BLuOjrS0.js"), "../../BusinessLines/language/sk-SK.json": () => import("./sk-SK-C1Ky2nl_.js"), "../../BusinessLines/language/sl-SI.json": () => import("./sl-SI-BB7iVcFI.js"), "../../BusinessLines/language/sv-SE.json": () => import("./sv-SE-DbI-1JqN.js") }), `../../BusinessLines/language/${i18n.language}.json`, 5)
1880
- }
1881
- ]);
1882
- if (!rootLe) {
1883
- return /* @__PURE__ */ jsx(Loader, {});
1884
- }
1885
- const hasTrust = accountHolder === "aTrust" || isPartOfTrustFromLegalEntity(rootLe);
1886
- const problems = capabilityProblems ? getProblemsForEntity(capabilityProblems, EntityTypes.LEGAL_ENTITY, rootLe.id) : void 0;
1887
- return isExperimentEnabled("EnableBusinessDetailsMultiForm") ? /* @__PURE__ */ jsx(
1888
- BusinessDetailsMultiformDropin,
1889
- {
1890
- taskType: TaskTypes.BUSINESS_DETAILS,
1891
- taskName: hasTrust ? "businessTrusteeDetails" : "businessDetails",
1892
- legalEntityResponse: rootLe,
1893
- problems,
1894
- country: getLegalEntityCountry(rootLe),
1895
- isTargetLegalEntityType,
1896
- onSubmit,
1897
- handleHomeClick
1898
- }
1899
- ) : /* @__PURE__ */ jsx(
1900
- BusinessDetailsDropin,
1901
- {
1902
- taskType: TaskTypes.BUSINESS_DETAILS,
1903
- taskName: hasTrust ? "businessTrusteeDetails" : "businessDetails",
1904
- legalEntityResponse: rootLe,
1905
- problems,
1906
- country: getLegalEntityCountry(rootLe),
1907
- isTargetLegalEntityType,
1908
- onSubmit,
1909
- handleHomeClick
1910
- }
1911
- );
1912
- };
1913
- export {
1914
- RootBusinessDetailsPage
1915
- };