@adyen/kyc-components 2.29.5 → 2.30.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 (379) hide show
  1. package/dist/es/AD-670c62c0.mjs +16 -0
  2. package/dist/es/AE-24bbc749.mjs +18 -0
  3. package/dist/es/AI-2f8eb3e4.mjs +20 -0
  4. package/dist/es/AL-dee818f3.mjs +20 -0
  5. package/dist/es/AR-ddb2f621.mjs +20 -0
  6. package/dist/es/AS-d857591e.mjs +18 -0
  7. package/dist/es/AT-0d286d50.mjs +16 -0
  8. package/dist/es/AU-e3d4ecff.mjs +17 -0
  9. package/dist/es/AX-acf0cb07.mjs +16 -0
  10. package/dist/es/AZ-febcbba9.mjs +20 -0
  11. package/dist/es/BA-36553325.mjs +20 -0
  12. package/dist/es/BE-01b309e9.mjs +16 -0
  13. package/dist/es/BG-b141efc4.mjs +20 -0
  14. package/dist/es/BH-4252606c.mjs +20 -0
  15. package/dist/es/BM-9d017537.mjs +20 -0
  16. package/dist/es/BR-afb9b585.mjs +19 -0
  17. package/dist/es/BS-71942f8a.mjs +20 -0
  18. package/dist/es/BV-7c089d21.mjs +20 -0
  19. package/dist/es/BY-b3362481.mjs +20 -0
  20. package/dist/es/CA-75a34c71.mjs +18 -0
  21. package/dist/es/CH-b8cf24c1.mjs +16 -0
  22. package/dist/es/CN-ebbef145.mjs +20 -0
  23. package/dist/es/CR-8bf65073.mjs +20 -0
  24. package/dist/es/CY-3e2ed850.mjs +16 -0
  25. package/dist/es/CZ-7ac97b54.mjs +16 -0
  26. package/dist/es/DE-2322162a.mjs +16 -0
  27. package/dist/es/DK-7cebcff6.mjs +28 -0
  28. package/dist/es/DO-bfe9604e.mjs +20 -0
  29. package/dist/es/EC-3ab33540.mjs +21 -0
  30. package/dist/es/EE-cbb695a1.mjs +16 -0
  31. package/dist/es/ES-094cb641.mjs +16 -0
  32. package/dist/es/FI-a1653669.mjs +16 -0
  33. package/dist/es/FJ-3b91f5c9.mjs +20 -0
  34. package/dist/es/FO-f647fb1e.mjs +20 -0
  35. package/dist/es/FR-ea366f1a.mjs +16 -0
  36. package/dist/es/GB-a45c6caa.mjs +28 -0
  37. package/dist/es/GE-ac5fdc42.mjs +20 -0
  38. package/dist/es/GF-6273f16b.mjs +16 -0
  39. package/dist/es/GG-bad391fd.mjs +28 -0
  40. package/dist/es/GI-757caa3a.mjs +36 -0
  41. package/dist/es/GL-226ffa9f.mjs +20 -0
  42. package/dist/es/GP-473e593a.mjs +16 -0
  43. package/dist/es/GR-3bcff231.mjs +16 -0
  44. package/dist/es/GT-db5da0a4.mjs +20 -0
  45. package/dist/es/GU-ca4f557c.mjs +18 -0
  46. package/dist/es/HK-40526878.mjs +18 -0
  47. package/dist/es/HR-29a95014.mjs +16 -0
  48. package/dist/es/HU-80af7974.mjs +16 -0
  49. package/dist/es/ID-506578fe.mjs +20 -0
  50. package/dist/es/IE-32cbd0f3.mjs +16 -0
  51. package/dist/es/IL-373dafad.mjs +16 -0
  52. package/dist/es/IM-891b32c5.mjs +28 -0
  53. package/dist/es/IN-bec55b74.mjs +21 -0
  54. package/dist/es/IS-3a5d33d3.mjs +20 -0
  55. package/dist/es/IT-4ff08cfe.mjs +16 -0
  56. package/dist/es/JE-307987ba.mjs +28 -0
  57. package/dist/es/JM-3ce8fbab.mjs +20 -0
  58. package/dist/es/JO-42a19672.mjs +20 -0
  59. package/dist/es/JP-0077f7b5.mjs +21 -0
  60. package/dist/es/KR-95fa1426.mjs +20 -0
  61. package/dist/es/KW-a98f9b4c.mjs +20 -0
  62. package/dist/es/KY-1aaca646.mjs +20 -0
  63. package/dist/es/KZ-7daadd7e.mjs +20 -0
  64. package/dist/es/LB-1c59787b.mjs +20 -0
  65. package/dist/es/LI-77d06f2d.mjs +16 -0
  66. package/dist/es/LT-f3ad2e3e.mjs +16 -0
  67. package/dist/es/LU-e8eedd03.mjs +16 -0
  68. package/dist/es/LV-6971017f.mjs +16 -0
  69. package/dist/es/MC-ee5965bb.mjs +16 -0
  70. package/dist/es/MD-8041437f.mjs +20 -0
  71. package/dist/es/ME-d9f4c3da.mjs +20 -0
  72. package/dist/es/MK-8c45a314.mjs +20 -0
  73. package/dist/es/MP-093ac455.mjs +18 -0
  74. package/dist/es/MQ-f9c253cc.mjs +16 -0
  75. package/dist/es/MR-2f01df5c.mjs +20 -0
  76. package/dist/es/MT-32167278.mjs +16 -0
  77. package/dist/es/MU-e04facaa.mjs +20 -0
  78. package/dist/es/MX-1d1a9644.mjs +18 -0
  79. package/dist/es/MY-392e074a.mjs +17 -0
  80. package/dist/es/NC-3b4b0260.mjs +20 -0
  81. package/dist/es/NL-b9bcb702.mjs +16 -0
  82. package/dist/es/NO-6809e6fd.mjs +28 -0
  83. package/dist/es/NZ-ccf0ea48.mjs +16 -0
  84. package/dist/es/PE-0c1072d7.mjs +20 -0
  85. package/dist/es/PF-fb6bd5d0.mjs +20 -0
  86. package/dist/es/PH-8ef2049d.mjs +20 -0
  87. package/dist/es/PK-a445458d.mjs +20 -0
  88. package/dist/es/PL-620a9ca4.mjs +27 -0
  89. package/dist/es/PM-d4c0464a.mjs +16 -0
  90. package/dist/es/PR-ad22b592.mjs +18 -0
  91. package/dist/es/PS-cabe03e5.mjs +20 -0
  92. package/dist/es/PT-33451f8d.mjs +16 -0
  93. package/dist/es/QA-3d255e2d.mjs +20 -0
  94. package/dist/es/RE-8b1c7cc1.mjs +16 -0
  95. package/dist/es/RO-2bfa665c.mjs +16 -0
  96. package/dist/es/RS-3347a703.mjs +20 -0
  97. package/dist/es/RU-e3e01124.mjs +20 -0
  98. package/dist/es/SA-91a0ead5.mjs +20 -0
  99. package/dist/es/SE-cb13f129.mjs +28 -0
  100. package/dist/es/SG-6086848e.mjs +17 -0
  101. package/dist/es/SI-2865f1da.mjs +16 -0
  102. package/dist/es/SJ-598eb05e.mjs +20 -0
  103. package/dist/es/SK-95af17ba.mjs +16 -0
  104. package/dist/es/SM-4dd69f38.mjs +16 -0
  105. package/dist/es/TF-ea5a687e.mjs +20 -0
  106. package/dist/es/TH-567ec66c.mjs +21 -0
  107. package/dist/es/TL-9c45dea1.mjs +20 -0
  108. package/dist/es/TN-40f39700.mjs +20 -0
  109. package/dist/es/TR-17aaedbd.mjs +20 -0
  110. package/dist/es/TT-80575a0d.mjs +21 -0
  111. package/dist/es/TW-8104c581.mjs +22 -0
  112. package/dist/es/UA-9a09a2fe.mjs +20 -0
  113. package/dist/es/US-48190122.mjs +18 -0
  114. package/dist/es/UY-ede97218.mjs +20 -0
  115. package/dist/es/VA-193042b9.mjs +16 -0
  116. package/dist/es/VG-71c752e9.mjs +20 -0
  117. package/dist/es/VI-caa740af.mjs +18 -0
  118. package/dist/es/VN-5a6450ab.mjs +20 -0
  119. package/dist/es/WF-6ee9803f.mjs +20 -0
  120. package/dist/es/YT-e12497c8.mjs +16 -0
  121. package/dist/es/ZA-77011c5b.mjs +21 -0
  122. package/dist/es/adyen-kyc-components.es.js +581 -414
  123. package/dist/style.css +1884 -0
  124. package/dist/types/components/BusinessTypeSelection/BusinessTypeSelection.d.ts +1 -1
  125. package/dist/types/components/BusinessTypeSelection/types.d.ts +2 -2
  126. package/dist/types/components/Dropins/types.d.ts +3 -0
  127. package/dist/types/components/EmbeddedDropins/OnboardingRedirect/OnboardingRedirectComponent.d.ts +14 -0
  128. package/dist/types/components/EmbeddedDropins/OnboardingRedirect/content.d.ts +2 -0
  129. package/dist/types/components/EmbeddedDropins/OnboardingRedirect/index.d.ts +2 -0
  130. package/dist/types/components/EmbeddedDropins/OnboardingRedirect/types.d.ts +12 -0
  131. package/dist/types/components/TaskList/component/TaskListComponent.d.ts +1 -1
  132. package/dist/types/components/TaskList/types.d.ts +3 -0
  133. package/dist/types/components/index.d.ts +2 -0
  134. package/dist/types/components/internal/Address/utils.d.ts +1 -1
  135. package/dist/types/core/Context/ConfigurationApiContext/ConfigurationApiContext.d.ts +0 -3
  136. package/dist/types/core/SDKValidation/index.d.ts +1 -1
  137. package/dist/types/core/Services/componentApi/generate-onboarding-link.d.ts +3 -0
  138. package/dist/types/core/Services/componentApi/get-onboarding-status.d.ts +3 -0
  139. package/dist/types/core/core.d.ts +1 -1
  140. package/dist/types/core/hooks/useComponentApi.d.ts +2 -0
  141. package/dist/types/core/hooks/useScenarioConfiguration.d.ts +5 -5
  142. package/dist/types/core/models/api/get-configuration.d.ts +0 -20
  143. package/dist/types/core/models/api/onboarding-redirect.d.ts +22 -0
  144. package/dist/types/core/models/currency.d.ts +2 -1
  145. package/dist/types/core/models/form-rules.d.ts +2 -2
  146. package/dist/types/core/models/identity.d.ts +0 -2
  147. package/dist/types/core/models/payout-account.d.ts +0 -4
  148. package/dist/types/core/process-field-configurations.d.ts +5 -5
  149. package/dist/types/datasets/accountFormats/getAccountFormatForCountry.d.ts +12 -2
  150. package/dist/types/language/config.d.ts +18 -0
  151. package/dist/types/utils/api/processCapabilitites.d.ts +2 -1
  152. package/dist/types/utils/entity-status-util.d.ts +1 -1
  153. package/dist/types/utils/mapping/componentApiMapping.d.ts +2 -0
  154. package/package.json +1 -1
  155. package/dist/es/AD-43128b9f.mjs +0 -29
  156. package/dist/es/AE-81598d61.mjs +0 -40
  157. package/dist/es/AG-ed98ae0e.mjs +0 -55
  158. package/dist/es/AI-3e78c886.mjs +0 -50
  159. package/dist/es/AL-3ad2778a.mjs +0 -50
  160. package/dist/es/AM-6a5175fb.mjs +0 -55
  161. package/dist/es/AN-311f7139.mjs +0 -55
  162. package/dist/es/AO-99b5ef59.mjs +0 -55
  163. package/dist/es/AQ-effe27c7.mjs +0 -55
  164. package/dist/es/AR-4013d95c.mjs +0 -50
  165. package/dist/es/AS-f15d56b2.mjs +0 -55
  166. package/dist/es/AT-d4d62b74.mjs +0 -29
  167. package/dist/es/AU-b9cba969.mjs +0 -35
  168. package/dist/es/AW-581f73fb.mjs +0 -55
  169. package/dist/es/AX-07af957a.mjs +0 -29
  170. package/dist/es/AZ-be214142.mjs +0 -50
  171. package/dist/es/BA-af4be83f.mjs +0 -50
  172. package/dist/es/BB-df28f015.mjs +0 -55
  173. package/dist/es/BD-7aef0af6.mjs +0 -55
  174. package/dist/es/BE-fc7cf8d5.mjs +0 -29
  175. package/dist/es/BF-090b06e2.mjs +0 -55
  176. package/dist/es/BG-1f54cf4f.mjs +0 -50
  177. package/dist/es/BH-1e9cc2b9.mjs +0 -50
  178. package/dist/es/BJ-d5dd5c6f.mjs +0 -55
  179. package/dist/es/BM-a808b13f.mjs +0 -50
  180. package/dist/es/BN-b13f6f6a.mjs +0 -55
  181. package/dist/es/BR-55d93100.mjs +0 -71
  182. package/dist/es/BS-db6a5bce.mjs +0 -50
  183. package/dist/es/BT-dfed2604.mjs +0 -55
  184. package/dist/es/BV-e123b0a8.mjs +0 -50
  185. package/dist/es/BW-08473bd7.mjs +0 -55
  186. package/dist/es/BY-2762d989.mjs +0 -50
  187. package/dist/es/BZ-7f28b1ff.mjs +0 -55
  188. package/dist/es/CA-aa1f78ab.mjs +0 -41
  189. package/dist/es/CC-2cc6ac39.mjs +0 -55
  190. package/dist/es/CF-78ae0244.mjs +0 -55
  191. package/dist/es/CH-47f538c0.mjs +0 -29
  192. package/dist/es/CI-10feb889.mjs +0 -55
  193. package/dist/es/CK-e308c734.mjs +0 -55
  194. package/dist/es/CL-4a6c3e0b.mjs +0 -55
  195. package/dist/es/CM-fddc630d.mjs +0 -55
  196. package/dist/es/CN-46bb9203.mjs +0 -50
  197. package/dist/es/CO-1b150cda.mjs +0 -55
  198. package/dist/es/CR-2bf50f66.mjs +0 -50
  199. package/dist/es/CU-904aea8f.mjs +0 -55
  200. package/dist/es/CX-750ccd92.mjs +0 -55
  201. package/dist/es/CY-1508b23e.mjs +0 -29
  202. package/dist/es/CZ-b6eaa1d5.mjs +0 -29
  203. package/dist/es/DE-e02051d4.mjs +0 -29
  204. package/dist/es/DJ-0032728a.mjs +0 -55
  205. package/dist/es/DK-6116657e.mjs +0 -59
  206. package/dist/es/DM-a2c158c9.mjs +0 -55
  207. package/dist/es/DO-cedffa27.mjs +0 -50
  208. package/dist/es/DZ-d44be6f8.mjs +0 -55
  209. package/dist/es/EC-c2e5813b.mjs +0 -56
  210. package/dist/es/EE-1a10f52d.mjs +0 -29
  211. package/dist/es/EG-8f29aebd.mjs +0 -55
  212. package/dist/es/EH-2dafda3e.mjs +0 -55
  213. package/dist/es/ES-42b3562e.mjs +0 -29
  214. package/dist/es/ET-ffa87ef0.mjs +0 -55
  215. package/dist/es/FI-8e3bb2bb.mjs +0 -29
  216. package/dist/es/FJ-088ea689.mjs +0 -50
  217. package/dist/es/FK-16d84ff5.mjs +0 -55
  218. package/dist/es/FM-32616e6f.mjs +0 -55
  219. package/dist/es/FO-62c08e45.mjs +0 -50
  220. package/dist/es/FR-3db03e20.mjs +0 -29
  221. package/dist/es/GA-4de2f994.mjs +0 -55
  222. package/dist/es/GB-28ea0b5a.mjs +0 -59
  223. package/dist/es/GD-0ad67069.mjs +0 -55
  224. package/dist/es/GE-0f594b35.mjs +0 -50
  225. package/dist/es/GF-a062cea7.mjs +0 -29
  226. package/dist/es/GG-e00581ea.mjs +0 -59
  227. package/dist/es/GH-80209e7e.mjs +0 -55
  228. package/dist/es/GI-b0f7c8b3.mjs +0 -101
  229. package/dist/es/GL-8f5e8ba9.mjs +0 -50
  230. package/dist/es/GM-ff3ca013.mjs +0 -55
  231. package/dist/es/GN-fc7c0f8c.mjs +0 -55
  232. package/dist/es/GP-68f23382.mjs +0 -29
  233. package/dist/es/GQ-f9867fbd.mjs +0 -55
  234. package/dist/es/GR-64a2d25c.mjs +0 -29
  235. package/dist/es/GS-49ce0f4c.mjs +0 -55
  236. package/dist/es/GT-fa779b14.mjs +0 -50
  237. package/dist/es/GU-f0dceb37.mjs +0 -55
  238. package/dist/es/GW-471336ea.mjs +0 -55
  239. package/dist/es/GY-2889ae39.mjs +0 -55
  240. package/dist/es/HK-675b8651.mjs +0 -56
  241. package/dist/es/HM-924a724f.mjs +0 -55
  242. package/dist/es/HN-6dae206e.mjs +0 -55
  243. package/dist/es/HR-85763090.mjs +0 -29
  244. package/dist/es/HT-a659da85.mjs +0 -55
  245. package/dist/es/HU-f9ea5037.mjs +0 -29
  246. package/dist/es/ID-cb5cfce1.mjs +0 -50
  247. package/dist/es/IE-b341cbd2.mjs +0 -29
  248. package/dist/es/IL-657901df.mjs +0 -29
  249. package/dist/es/IM-5bd6279a.mjs +0 -59
  250. package/dist/es/IN-3c11df0e.mjs +0 -56
  251. package/dist/es/IO-24f6d2e7.mjs +0 -55
  252. package/dist/es/IQ-241c0148.mjs +0 -55
  253. package/dist/es/IS-4a7e436f.mjs +0 -50
  254. package/dist/es/IT-f9755e76.mjs +0 -29
  255. package/dist/es/JE-46968fa2.mjs +0 -59
  256. package/dist/es/JM-a6657a34.mjs +0 -50
  257. package/dist/es/JO-bd1eabea.mjs +0 -50
  258. package/dist/es/JP-9b5a30fa.mjs +0 -88
  259. package/dist/es/KE-2a866579.mjs +0 -55
  260. package/dist/es/KG-7713761d.mjs +0 -55
  261. package/dist/es/KH-a5f0f831.mjs +0 -55
  262. package/dist/es/KI-8376e298.mjs +0 -55
  263. package/dist/es/KM-48c8c9c0.mjs +0 -55
  264. package/dist/es/KN-b34777c7.mjs +0 -55
  265. package/dist/es/KR-8bcf8499.mjs +0 -50
  266. package/dist/es/KW-4dd6ab01.mjs +0 -50
  267. package/dist/es/KY-4f921c93.mjs +0 -50
  268. package/dist/es/KZ-68b655f3.mjs +0 -50
  269. package/dist/es/LA-582a34e2.mjs +0 -55
  270. package/dist/es/LB-7e5023a3.mjs +0 -50
  271. package/dist/es/LC-4e610f91.mjs +0 -55
  272. package/dist/es/LI-3979434e.mjs +0 -29
  273. package/dist/es/LK-23f5002d.mjs +0 -55
  274. package/dist/es/LT-2076ca77.mjs +0 -29
  275. package/dist/es/LU-b0538582.mjs +0 -29
  276. package/dist/es/LV-440617df.mjs +0 -29
  277. package/dist/es/MA-f2af9aa6.mjs +0 -55
  278. package/dist/es/MC-f619d821.mjs +0 -29
  279. package/dist/es/MD-ffe4e2f4.mjs +0 -50
  280. package/dist/es/ME-46686aa8.mjs +0 -50
  281. package/dist/es/MH-c535387d.mjs +0 -55
  282. package/dist/es/MK-11442cf1.mjs +0 -50
  283. package/dist/es/ML-b2c3720e.mjs +0 -55
  284. package/dist/es/MM-0ae1a124.mjs +0 -55
  285. package/dist/es/MN-baba0d9d.mjs +0 -55
  286. package/dist/es/MO-2c51f9f7.mjs +0 -55
  287. package/dist/es/MP-55044c4b.mjs +0 -55
  288. package/dist/es/MQ-aaefd2b2.mjs +0 -29
  289. package/dist/es/MR-f122a6f0.mjs +0 -50
  290. package/dist/es/MS-7623ec5f.mjs +0 -55
  291. package/dist/es/MT-315c76bb.mjs +0 -29
  292. package/dist/es/MU-126673fe.mjs +0 -50
  293. package/dist/es/MV-d8748aca.mjs +0 -55
  294. package/dist/es/MW-26492427.mjs +0 -55
  295. package/dist/es/MX-ca79b44b.mjs +0 -60
  296. package/dist/es/MY-443e729e.mjs +0 -55
  297. package/dist/es/MZ-192a5094.mjs +0 -55
  298. package/dist/es/NC-3849aac0.mjs +0 -50
  299. package/dist/es/NE-bf76bc84.mjs +0 -55
  300. package/dist/es/NF-46f5dffa.mjs +0 -55
  301. package/dist/es/NG-458396e5.mjs +0 -55
  302. package/dist/es/NI-efe8c864.mjs +0 -55
  303. package/dist/es/NL-3e38d0eb.mjs +0 -29
  304. package/dist/es/NO-088fac56.mjs +0 -59
  305. package/dist/es/NP-26b20587.mjs +0 -55
  306. package/dist/es/NR-ba1f7da1.mjs +0 -55
  307. package/dist/es/NU-6dc3ed45.mjs +0 -55
  308. package/dist/es/NZ-12ed2cb9.mjs +0 -47
  309. package/dist/es/OM-4976855b.mjs +0 -55
  310. package/dist/es/PA-3b45122a.mjs +0 -55
  311. package/dist/es/PE-ad6e8281.mjs +0 -50
  312. package/dist/es/PF-2b1b6f30.mjs +0 -50
  313. package/dist/es/PG-b94ea47f.mjs +0 -55
  314. package/dist/es/PH-1b96a1eb.mjs +0 -50
  315. package/dist/es/PK-35cadd30.mjs +0 -50
  316. package/dist/es/PL-6a490cd1.mjs +0 -53
  317. package/dist/es/PM-d508f3c5.mjs +0 -29
  318. package/dist/es/PN-1f6ccf43.mjs +0 -55
  319. package/dist/es/PR-730f2830.mjs +0 -55
  320. package/dist/es/PS-f3ef78cd.mjs +0 -50
  321. package/dist/es/PT-66954cea.mjs +0 -29
  322. package/dist/es/PW-0d1c7797.mjs +0 -55
  323. package/dist/es/PY-c8e58794.mjs +0 -55
  324. package/dist/es/QA-35be8b1e.mjs +0 -50
  325. package/dist/es/RE-9f92ed9b.mjs +0 -29
  326. package/dist/es/RO-5c62edb1.mjs +0 -29
  327. package/dist/es/RS-bc256d90.mjs +0 -50
  328. package/dist/es/RU-bbee5e73.mjs +0 -55
  329. package/dist/es/RW-95b5d859.mjs +0 -55
  330. package/dist/es/SA-69b2f72a.mjs +0 -50
  331. package/dist/es/SB-567c239a.mjs +0 -55
  332. package/dist/es/SC-9e5a0d31.mjs +0 -55
  333. package/dist/es/SE-4ed53265.mjs +0 -59
  334. package/dist/es/SG-970463e3.mjs +0 -35
  335. package/dist/es/SH-d8ab21b7.mjs +0 -55
  336. package/dist/es/SI-3b6d3545.mjs +0 -29
  337. package/dist/es/SJ-e3430cfd.mjs +0 -50
  338. package/dist/es/SK-2385e057.mjs +0 -29
  339. package/dist/es/SL-92bf45d9.mjs +0 -55
  340. package/dist/es/SM-bafbc267.mjs +0 -29
  341. package/dist/es/SN-5733e740.mjs +0 -55
  342. package/dist/es/SO-d5b69054.mjs +0 -55
  343. package/dist/es/SR-0a8c71c0.mjs +0 -55
  344. package/dist/es/ST-d40d86c1.mjs +0 -55
  345. package/dist/es/TC-ccbc7116.mjs +0 -55
  346. package/dist/es/TD-679d137c.mjs +0 -55
  347. package/dist/es/TF-6bfcf75d.mjs +0 -50
  348. package/dist/es/TG-a20ef9ed.mjs +0 -55
  349. package/dist/es/TH-e39a447c.mjs +0 -56
  350. package/dist/es/TK-89a81d38.mjs +0 -55
  351. package/dist/es/TL-8d6ca9b7.mjs +0 -50
  352. package/dist/es/TN-6e746476.mjs +0 -50
  353. package/dist/es/TO-a8c55d73.mjs +0 -55
  354. package/dist/es/TR-b1175ddc.mjs +0 -50
  355. package/dist/es/TT-5c4a3940.mjs +0 -56
  356. package/dist/es/TV-e1a267b9.mjs +0 -55
  357. package/dist/es/TW-9e0e34fa.mjs +0 -62
  358. package/dist/es/TZ-c8a8159b.mjs +0 -55
  359. package/dist/es/UA-7014199a.mjs +0 -50
  360. package/dist/es/UG-1fe39fa7.mjs +0 -55
  361. package/dist/es/UM-3fcbf872.mjs +0 -55
  362. package/dist/es/US-6fbdfc0c.mjs +0 -60
  363. package/dist/es/UY-e6d05d75.mjs +0 -50
  364. package/dist/es/UZ-433656c8.mjs +0 -55
  365. package/dist/es/VA-e8e13d32.mjs +0 -29
  366. package/dist/es/VC-331669c0.mjs +0 -55
  367. package/dist/es/VE-5e7b0d3b.mjs +0 -55
  368. package/dist/es/VG-43e85e33.mjs +0 -50
  369. package/dist/es/VI-3d9d6d8b.mjs +0 -55
  370. package/dist/es/VN-9442a8c1.mjs +0 -50
  371. package/dist/es/VU-96fae02f.mjs +0 -55
  372. package/dist/es/WF-90a27056.mjs +0 -50
  373. package/dist/es/WS-ddcb2b71.mjs +0 -55
  374. package/dist/es/YE-02c4c81e.mjs +0 -55
  375. package/dist/es/YT-33751cc9.mjs +0 -29
  376. package/dist/es/ZA-0084b083.mjs +0 -56
  377. package/dist/es/ZM-c6a4d6cc.mjs +0 -55
  378. package/dist/types/core/Services/agnostic/get-payout-account-formats.d.ts +0 -3
  379. package/dist/types/core/models/api/get-account-format.d.ts +0 -5
@@ -1023,6 +1023,7 @@ const errorMessage_1_5050 = "The affiliation document was not official.";
1023
1023
  const errorMessage_1_5051 = "Signing person on the affiliation document could not be verified";
1024
1024
  const errorMessage_1_5052 = "The affiliation document verifies the payout entity is not 100% affiliated with the company. Setup can't be continued.";
1025
1025
  const errorMessage_1_5053 = "The affiliation document was not issued within the last 6 months";
1026
+ const errorMessage_1_5067 = "The legal name didn't match the one on the VAT registry.";
1026
1027
  const errorMessage_1_6000 = "The legal name couldn't be verified.";
1027
1028
  const errorMessage_1_6001 = "The legal name didn't match the registration number.";
1028
1029
  const errorMessage_1_6002 = "The registration number couldn't be verified.";
@@ -1127,6 +1128,8 @@ const remediationMessage_1_508 = "Upload a proof of ownership";
1127
1128
  const remediationMessage_1_509 = "Upload a different affiliation document";
1128
1129
  const remediationMessage_1_510 = "Ensure signing person has the rights to represent the organization or is a listed professional member (lawyer, accountant) in your country of business and upload the right document";
1129
1130
  const remediationMessage_1_511 = "Upload a document that proves the payout entity is 100% affiliated with the legal entity";
1131
+ const remediationMessage_1_512 = "Upload a VAT document";
1132
+ const remediationMessage_1_513 = "Upload a different VAT document";
1130
1133
  const remediationMessage_1_600 = "Update legal entity details";
1131
1134
  const remediationMessage_1_601 = "Upload a constitutional document";
1132
1135
  const remediationMessage_1_602 = "Upload a different constitutional document";
@@ -1211,6 +1214,21 @@ const introductionScreenEpilogueTitle = "Why do we need this information?";
1211
1214
  const introductionScreenEpilogueDescriptionP1 = "We check all this information against official records to verify your identity and comply with financial regulations.";
1212
1215
  const introductionScreenEpilogueDescriptionP2 = "Your information will be used only for these purposes.";
1213
1216
  const oib = "OIB";
1217
+ const onboardingRedirectInitialHeader = "Reach more customers and accept orders online";
1218
+ const onboardingRedirectInitialDescriptionP1 = "Register today and get access to all the features like receiving payments or issuing cards.";
1219
+ const onboardingRedirectInitialCtaButton = "Get started";
1220
+ const onboardingRedirectInProgressHeader = "We are currently reviewing your information";
1221
+ const onboardingRedirectInProgressDescriptionP1 = "We will notify you when your details are verified correctly so you can start doing payments.";
1222
+ const onboardingRedirectInProgressCtaButton = "View information";
1223
+ const onboardingRedirectErrorsHeader = "Some of your information needs to be corrected";
1224
+ const onboardingRedirectErrorsDescriptionP1 = "We reviewed the information you submitted, but we were not able to verify everything.";
1225
+ const onboardingRedirectErrorsDescriptionP2 = "You need to correct some information before we can activate your account.";
1226
+ const onboardingRedirectErrorsCtaButton = "Correct information";
1227
+ const onboardingRedirectFinishedHeader = "You’re all set";
1228
+ const onboardingRedirectFinishedDescriptionP1 = "We reviewed the information you submitted and successfully verified your account.";
1229
+ const onboardingRedirectFinishedCtaButton = "View data";
1230
+ const onboardingRedirectLinkError = "Onboarding link not available at the moment, please try again later.";
1231
+ const onboardingRedirectOpenError = "Pop-up blocker prevented redirecting, please allow pop-ups for this site.";
1214
1232
  const defaultTrans = {
1215
1233
  close,
1216
1234
  individual,
@@ -2227,6 +2245,7 @@ const defaultTrans = {
2227
2245
  errorMessage_1_5051,
2228
2246
  errorMessage_1_5052,
2229
2247
  errorMessage_1_5053,
2248
+ errorMessage_1_5067,
2230
2249
  errorMessage_1_6000,
2231
2250
  errorMessage_1_6001,
2232
2251
  errorMessage_1_6002,
@@ -2331,6 +2350,8 @@ const defaultTrans = {
2331
2350
  remediationMessage_1_509,
2332
2351
  remediationMessage_1_510,
2333
2352
  remediationMessage_1_511,
2353
+ remediationMessage_1_512,
2354
+ remediationMessage_1_513,
2334
2355
  remediationMessage_1_600,
2335
2356
  remediationMessage_1_601,
2336
2357
  remediationMessage_1_602,
@@ -2414,7 +2435,22 @@ const defaultTrans = {
2414
2435
  introductionScreenEpilogueTitle,
2415
2436
  introductionScreenEpilogueDescriptionP1,
2416
2437
  introductionScreenEpilogueDescriptionP2,
2417
- oib
2438
+ oib,
2439
+ onboardingRedirectInitialHeader,
2440
+ onboardingRedirectInitialDescriptionP1,
2441
+ onboardingRedirectInitialCtaButton,
2442
+ onboardingRedirectInProgressHeader,
2443
+ onboardingRedirectInProgressDescriptionP1,
2444
+ onboardingRedirectInProgressCtaButton,
2445
+ onboardingRedirectErrorsHeader,
2446
+ onboardingRedirectErrorsDescriptionP1,
2447
+ onboardingRedirectErrorsDescriptionP2,
2448
+ onboardingRedirectErrorsCtaButton,
2449
+ onboardingRedirectFinishedHeader,
2450
+ onboardingRedirectFinishedDescriptionP1,
2451
+ onboardingRedirectFinishedCtaButton,
2452
+ onboardingRedirectLinkError,
2453
+ onboardingRedirectOpenError
2418
2454
  };
2419
2455
  const FALLBACK_LOCALE = "en-US";
2420
2456
  const defaultTranslation = defaultTrans;
@@ -2844,7 +2880,6 @@ const exactLength = (input, length) => {
2844
2880
  }
2845
2881
  return input.length === length;
2846
2882
  };
2847
- const lengthIsBetween = (input, minLength, maxLength) => Boolean(input && input.length >= minLength && input.length <= maxLength);
2848
2883
  const trimValWithOneSpace = (val) => val.trimStart().replace(/\s+/g, " ");
2849
2884
  const _button_component = "";
2850
2885
  const _link_component = "";
@@ -2906,7 +2941,7 @@ const icons = {
2906
2941
  warning: lazy(() => import("./warning-bb000c6b.mjs")),
2907
2942
  wrong: lazy(() => import("./wrong-652db543.mjs"))
2908
2943
  };
2909
- const logger$t = createLogger("Icon");
2944
+ const logger$u = createLogger("Icon");
2910
2945
  const Icon = ({
2911
2946
  className,
2912
2947
  name,
@@ -2914,7 +2949,7 @@ const Icon = ({
2914
2949
  }) => {
2915
2950
  const LazyLoadedIcon = icons[name];
2916
2951
  if (!LazyLoadedIcon) {
2917
- logger$t.error(`No such icon: "${name}"`);
2952
+ logger$u.error(`No such icon: "${name}"`);
2918
2953
  return null;
2919
2954
  }
2920
2955
  return jsx("span", {
@@ -3121,7 +3156,7 @@ function useFormRouterContext() {
3121
3156
  }
3122
3157
  return context;
3123
3158
  }
3124
- const logger$s = createLogger("Link");
3159
+ const logger$t = createLogger("Link");
3125
3160
  const getIconClass = (icon, external) => {
3126
3161
  if (external) {
3127
3162
  return "adl-link__icon adyen-kyc-icon-external-link";
@@ -3133,7 +3168,7 @@ const getIconClass = (icon, external) => {
3133
3168
  };
3134
3169
  const isValidLink = (href) => {
3135
3170
  if (href === "#") {
3136
- logger$s.error('Links must include a valid href. If your href is "#", consider using a Button instead');
3171
+ logger$t.error('Links must include a valid href. If your href is "#", consider using a Button instead');
3137
3172
  return false;
3138
3173
  }
3139
3174
  return true;
@@ -3412,14 +3447,14 @@ function useResetGlobalData(caller) {
3412
3447
  }
3413
3448
  }), [dispatch, caller]);
3414
3449
  }
3415
- const logger$r = createLogger("useAllowedCountries");
3450
+ const logger$s = createLogger("useAllowedCountries");
3416
3451
  const useAllowedCountries = () => {
3417
3452
  const {
3418
3453
  getAllowedCountries: getAllowedCountries2
3419
3454
  } = useConfigurationApi();
3420
3455
  const [allowedCountries, setAllowedCountries] = useState();
3421
3456
  useEffect(() => {
3422
- getAllowedCountries2().then((response) => setAllowedCountries(response.countries)).catch(logger$r.error);
3457
+ getAllowedCountries2().then((response) => setAllowedCountries(response.countries)).catch(logger$s.error);
3423
3458
  }, []);
3424
3459
  return allowedCountries;
3425
3460
  };
@@ -3758,7 +3793,7 @@ class ValidationResult {
3758
3793
  return this.validationResults.filter((result) => result.hasError);
3759
3794
  }
3760
3795
  }
3761
- const logger$q = createLogger("useAsyncValidator");
3796
+ const logger$r = createLogger("useAsyncValidator");
3762
3797
  const useAsyncValidator = (asyncRules) => {
3763
3798
  const [asyncValidationResults, setAsyncValidationResults] = useState({});
3764
3799
  const clearAsyncValidationResults = useCallback(() => setAsyncValidationResults({}), []);
@@ -3781,7 +3816,7 @@ const useAsyncValidator = (asyncRules) => {
3781
3816
  hasError: !isValid
3782
3817
  }])
3783
3818
  });
3784
- }).catch(logger$q.error);
3819
+ }).catch(logger$r.error);
3785
3820
  }, [asyncRules, clearAsyncValidationResults]);
3786
3821
  return {
3787
3822
  asyncValidationResults,
@@ -5218,7 +5253,7 @@ function useIsElementVisible(ref, fallback = true) {
5218
5253
  }, [ref]);
5219
5254
  return isOnScreen;
5220
5255
  }
5221
- const logger$p = createLogger("Flag");
5256
+ const logger$q = createLogger("Flag");
5222
5257
  const flagImports = /* @__PURE__ */ Object.assign({
5223
5258
  "../../../../assets/flags/ad.svg": () => import("./ad-e09b987a.mjs"),
5224
5259
  "../../../../assets/flags/ae.svg": () => import("./ae-8ca1be27.mjs"),
@@ -5475,7 +5510,7 @@ const flagImports = /* @__PURE__ */ Object.assign({
5475
5510
  const getLazyLoadedSvgComponent = (country2) => {
5476
5511
  const importForCountry = flagImports[`../../../../assets/flags/${country2.toLowerCase()}.svg`];
5477
5512
  if (!importForCountry) {
5478
- logger$p.error(`No flag available for ${country2}`);
5513
+ logger$q.error(`No flag available for ${country2}`);
5479
5514
  return void 0;
5480
5515
  }
5481
5516
  return lazy(importForCountry);
@@ -6277,7 +6312,7 @@ const deriveInputState = (isValid, isFocused, hasBlurred, isDisabled, errorMessa
6277
6312
  };
6278
6313
  };
6279
6314
  const MISMATCH_ANIMATION_NAME = "mismatchShake";
6280
- const logger$o = createLogger("MaskedInputText");
6315
+ const logger$p = createLogger("MaskedInputText");
6281
6316
  const MaskedInputText = ({
6282
6317
  value,
6283
6318
  onInput,
@@ -6319,7 +6354,7 @@ const MaskedInputText = ({
6319
6354
  };
6320
6355
  useEffect(() => {
6321
6356
  if (!mask) {
6322
- logger$o.warn("`mask` is undefined. No masking of input will take place.");
6357
+ logger$p.warn("`mask` is undefined. No masking of input will take place.");
6323
6358
  }
6324
6359
  }, [mask]);
6325
6360
  const getMaskResult = useCallback((pureValue) => {
@@ -6346,7 +6381,7 @@ const MaskedInputText = ({
6346
6381
  return;
6347
6382
  }
6348
6383
  const fallback = displayValueToPure(maskResult.partialDisplayValue);
6349
- logger$o.warn(`Value received "${value}" does not match mask`, maskResult, `
6384
+ logger$p.warn(`Value received "${value}" does not match mask`, maskResult, `
6350
6385
  Falling back to partially valid value "${fallback}"`);
6351
6386
  onInput(fallback);
6352
6387
  }
@@ -6567,7 +6602,9 @@ const businessRegistrationNumberMasks = {
6567
6602
  },
6568
6603
  [CountryCodes.Finland]: {
6569
6604
  default: {
6570
- mask: makeMask(...numericInputs(7), ...nonInputs(" - "), ...numericInputs(1))
6605
+ mask: makeMask(...numericInputs(7), spacer, ...nonInputs("-", {
6606
+ includeInValue: true
6607
+ }), spacer, ...numericInputs(1))
6571
6608
  }
6572
6609
  },
6573
6610
  [CountryCodes.France]: {
@@ -6815,7 +6852,7 @@ const businessRegistrationNumberPatterns = {
6815
6852
  default: /^\d{8}$/
6816
6853
  },
6817
6854
  [CountryCodes.Finland]: {
6818
- default: /^\d{8}$/
6855
+ default: /^\d{7}-?\d$/
6819
6856
  },
6820
6857
  [CountryCodes.France]: {
6821
6858
  SIRET: /^\d{9}-?\d{5}$/,
@@ -8376,12 +8413,12 @@ const defaultFieldConfig$7 = {
8376
8413
  label: "employerIdentificationNumber",
8377
8414
  validators: validatePatternOnBlur(/^\d{9}$/),
8378
8415
  mask: {
8379
- mask: makeMask(...numericInputs(9))
8416
+ mask: makeMask(...numericInputs(2), ...nonInputs(" - "), ...numericInputs(7))
8380
8417
  },
8381
8418
  guidanceText: {
8382
8419
  key: "validationPleaseEnterAValidTaxIdNumberWithFormat",
8383
8420
  values: {
8384
- format: "XXXXXXXXX"
8421
+ format: "XX-XXXXXXX"
8385
8422
  }
8386
8423
  }
8387
8424
  };
@@ -9845,7 +9882,7 @@ const companySearchFieldsPerScenario = {
9845
9882
  }
9846
9883
  }
9847
9884
  };
9848
- const countryConfig$4 = {
9885
+ const countryConfig$3 = {
9849
9886
  [CountryCodes.Australia]: {
9850
9887
  legalCompanyName: {
9851
9888
  helperText: "legalCompanyName__helperText__AU"
@@ -10215,7 +10252,7 @@ const fieldsPerScenario$2 = {
10215
10252
  ...trustBase
10216
10253
  }
10217
10254
  };
10218
- const countryConfig$3 = {
10255
+ const countryConfig$2 = {
10219
10256
  AU: {
10220
10257
  taxId: {
10221
10258
  label: "australianBusinessNumberAbn"
@@ -10433,7 +10470,7 @@ const accountHolderValidationRules = {
10433
10470
  }
10434
10471
  };
10435
10472
  const accountHolderFields = ["accountHolder"];
10436
- const logger$n = createLogger("AccountHolder");
10473
+ const logger$o = createLogger("AccountHolder");
10437
10474
  function getAvailableAccountHolderOptions(legalEntityType, isChangeOfLegalEntityTypeAllowed, isTrustFlowEnabled, isSoleProprietorshipAllowed, isChangeToMyNameAllowed) {
10438
10475
  switch (legalEntityType) {
10439
10476
  case LegalEntityType.ORGANIZATION: {
@@ -10443,7 +10480,7 @@ function getAvailableAccountHolderOptions(legalEntityType, isChangeOfLegalEntity
10443
10480
  return [...isChangeToMyNameAllowed ? ["myName"] : [], ...isChangeOfLegalEntityTypeAllowed ? ["theCompanyIWorkFor"] : [], ...isTrustFlowEnabled ? ["aTrust"] : [], ...isSoleProprietorshipAllowed ? ["mySoleProprietorName"] : []];
10444
10481
  }
10445
10482
  default:
10446
- logger$n.error(`No available account holder options for legal entity type '${legalEntityType}'`);
10483
+ logger$o.error(`No available account holder options for legal entity type '${legalEntityType}'`);
10447
10484
  return [];
10448
10485
  }
10449
10486
  }
@@ -11191,7 +11228,7 @@ function Dropzone(props) {
11191
11228
  })]
11192
11229
  });
11193
11230
  }
11194
- const logger$m = createLogger("TextArea");
11231
+ const logger$n = createLogger("TextArea");
11195
11232
  function TextArea(props) {
11196
11233
  const {
11197
11234
  classNameModifiers,
@@ -11212,7 +11249,7 @@ function TextArea(props) {
11212
11249
  } = useI18nContext();
11213
11250
  const [value, setValue] = useState("");
11214
11251
  if (Object.prototype.hasOwnProperty.call(props, "onChange")) {
11215
- logger$m.error("Error: Form fields that rely on InputBase may not have an onChange property");
11252
+ logger$n.error("Error: Form fields that rely on InputBase may not have an onChange property");
11216
11253
  }
11217
11254
  const handleInput = (e) => {
11218
11255
  var _a;
@@ -11626,7 +11663,7 @@ function FieldContainer(props) {
11626
11663
  }
11627
11664
  return renderField(fieldName);
11628
11665
  }
11629
- const logger$l = createLogger("SearchAddress");
11666
+ const logger$m = createLogger("SearchAddress");
11630
11667
  const SearchAddress = ({
11631
11668
  data,
11632
11669
  legalEntityId,
@@ -11669,7 +11706,7 @@ const SearchAddress = ({
11669
11706
  const response = await handleFindAddress(selectedAddressId);
11670
11707
  autocompleteAddressForm(response);
11671
11708
  } catch (e) {
11672
- logger$l.error(e);
11709
+ logger$m.error(e);
11673
11710
  }
11674
11711
  };
11675
11712
  const onDrilldown = async (selectedAddress) => {
@@ -11681,7 +11718,7 @@ const SearchAddress = ({
11681
11718
  }, legalEntityId);
11682
11719
  setItems((response == null ? void 0 : response.results) || []);
11683
11720
  } catch (e) {
11684
- logger$l.error(e);
11721
+ logger$m.error(e);
11685
11722
  }
11686
11723
  };
11687
11724
  const onChange = (e) => {
@@ -11736,7 +11773,7 @@ const SearchAddress = ({
11736
11773
  setItems([]);
11737
11774
  }
11738
11775
  } catch (e) {
11739
- logger$l.error(e);
11776
+ logger$m.error(e);
11740
11777
  }
11741
11778
  setLoading(false);
11742
11779
  }
@@ -12688,7 +12725,7 @@ function CompanyComponent(props) {
12688
12725
  children: jsx(DocumentUpload, {
12689
12726
  ...companyTaxDocumentFormProps,
12690
12727
  documentField: "taxDocument",
12691
- documentType: DocumentType.VAT_DOCUMENT,
12728
+ documentType: props.country === "US" ? DocumentType.PROOF_OF_ORGANIZATION_TAX_INFO : DocumentType.VAT_DOCUMENT,
12692
12729
  heading: i18n.get("taxDocument"),
12693
12730
  guidanceContent: jsxs(Fragment, {
12694
12731
  children: [jsx("div", {
@@ -13336,13 +13373,15 @@ const remediationCompanyApiKeyMapping = {
13336
13373
  ...companyApiKeyMapping,
13337
13374
  "organization.registeredAddress": "companyRegistrationAddress.registrationAddress",
13338
13375
  [DocumentType.REGISTRATION_DOCUMENT]: "companyRegistrationDocument.registrationDocument",
13339
- [DocumentType.VAT_DOCUMENT]: "companyTaxDocument.taxDocument"
13376
+ [DocumentType.VAT_DOCUMENT]: "companyTaxDocument.taxDocument",
13377
+ [DocumentType.PROOF_OF_ORGANIZATION_TAX_INFO]: "companyTaxDocument.taxDocument"
13340
13378
  };
13341
13379
  const remediationCompanySearchApiKeyMapping = {
13342
13380
  ...companySearchApiKeyMapping,
13343
13381
  "organization.registeredAddress": "companyRegistrationAddress.registrationAddress",
13344
13382
  [DocumentType.REGISTRATION_DOCUMENT]: "companyRegistrationDocument.registrationDocument",
13345
- [DocumentType.VAT_DOCUMENT]: "companyTaxDocument.taxDocument"
13383
+ [DocumentType.VAT_DOCUMENT]: "companyTaxDocument.taxDocument",
13384
+ [DocumentType.PROOF_OF_ORGANIZATION_TAX_INFO]: "companyTaxDocument.taxDocument"
13346
13385
  };
13347
13386
  const remediationIndividualApiKeyMapping = {
13348
13387
  ...individualApiKeyMapping,
@@ -14679,7 +14718,7 @@ const initOnfido = async ({
14679
14718
  language: getOnfidoLocaleConfig(i18n)
14680
14719
  });
14681
14720
  };
14682
- const logger$k = createLogger("IdVerificationComponent");
14721
+ const logger$l = createLogger("IdVerificationComponent");
14683
14722
  function IdVerificationComponent({
14684
14723
  userDetails,
14685
14724
  legalEntityId,
@@ -14712,7 +14751,7 @@ function IdVerificationComponent({
14712
14751
  onIdVerificationError,
14713
14752
  onIdVerificationComplete
14714
14753
  });
14715
- })().catch(logger$k.error);
14754
+ })().catch(logger$l.error);
14716
14755
  return () => {
14717
14756
  if (onfidoSdk.current)
14718
14757
  onfidoSdk.current.tearDown();
@@ -14764,7 +14803,7 @@ function IdDocumentAlreadyUpload(props) {
14764
14803
  })]
14765
14804
  });
14766
14805
  }
14767
- const logger$j = createLogger("IdDocumentInstantVerificationComponent");
14806
+ const logger$k = createLogger("IdDocumentInstantVerificationComponent");
14768
14807
  const idVerificationSchema = ["instantIdVerificationData", "idDocumentType"];
14769
14808
  const documentTypeValidationRules = {
14770
14809
  instantIdVerificationData: {
@@ -14846,7 +14885,7 @@ function IdDocumentInstantVerificationComponent(props) {
14846
14885
  userDetails: props.userDetails,
14847
14886
  legalEntityId: props.legalEntityId,
14848
14887
  onIdVerificationComplete: handleIdVerificationComplete,
14849
- onIdVerificationError: logger$j.error
14888
+ onIdVerificationError: logger$k.error
14850
14889
  }), jsxs("div", {
14851
14890
  className: "adyen-kyc-document-upload__manual-upload",
14852
14891
  children: [i18n.get("canNotCompleteInstantVerification"), " ", jsx("button", {
@@ -15694,7 +15733,7 @@ const defaultFieldConfig$5 = {
15694
15733
  case "driversLicense":
15695
15734
  default:
15696
15735
  return {
15697
- label: "driversLicense",
15736
+ label: "licenseNumber",
15698
15737
  mask: {
15699
15738
  mask: makeMask(...alphaInputs(2), ...numericInputs(6)),
15700
15739
  transformOnType: uppercase
@@ -15753,7 +15792,7 @@ const defaultFieldConfig$5 = {
15753
15792
  case "driversLicense":
15754
15793
  default:
15755
15794
  return {
15756
- label: "driversLicense",
15795
+ label: "licenseNumber",
15757
15796
  mask: {
15758
15797
  mask: makeMask(...alphanumericInputs(7), spacer, ...alphanumericInputs(1)),
15759
15798
  transformOnType: uppercase
@@ -15793,7 +15832,7 @@ const defaultFieldConfig$5 = {
15793
15832
  case "driversLicense":
15794
15833
  default:
15795
15834
  return {
15796
- label: "driversLicense",
15835
+ label: "licenseNumber",
15797
15836
  mask: {
15798
15837
  mask: makeMask(...alphanumericInputs(6), ...alphanumericInputs(5, true)),
15799
15838
  transformOnType: uppercase
@@ -17650,79 +17689,79 @@ const ActionBar = ({
17650
17689
  })
17651
17690
  })]
17652
17691
  });
17653
- var Currency = /* @__PURE__ */ ((Currency2) => {
17654
- Currency2["AED"] = "AED";
17655
- Currency2["AUD"] = "AUD";
17656
- Currency2["BGN"] = "BGN";
17657
- Currency2["BRL"] = "BRL";
17658
- Currency2["CAD"] = "CAD";
17659
- Currency2["CHF"] = "CHF";
17660
- Currency2["CZK"] = "CZK";
17661
- Currency2["DKK"] = "DKK";
17662
- Currency2["EUR"] = "EUR";
17663
- Currency2["GBP"] = "GBP";
17664
- Currency2["HKD"] = "HKD";
17665
- Currency2["HRK"] = "HRK";
17666
- Currency2["HUF"] = "HUF";
17667
- Currency2["MXN"] = "MXN";
17668
- Currency2["MYR"] = "MYR";
17669
- Currency2["NOK"] = "NOK";
17670
- Currency2["NZD"] = "NZD";
17671
- Currency2["PLN"] = "PLN";
17672
- Currency2["RON"] = "RON";
17673
- Currency2["SEK"] = "SEK";
17674
- Currency2["SGD"] = "SGD";
17675
- Currency2["USD"] = "USD";
17676
- return Currency2;
17677
- })(Currency || {});
17692
+ var Currencies = /* @__PURE__ */ ((Currencies2) => {
17693
+ Currencies2["AED"] = "AED";
17694
+ Currencies2["AUD"] = "AUD";
17695
+ Currencies2["BGN"] = "BGN";
17696
+ Currencies2["BRL"] = "BRL";
17697
+ Currencies2["CAD"] = "CAD";
17698
+ Currencies2["CHF"] = "CHF";
17699
+ Currencies2["CZK"] = "CZK";
17700
+ Currencies2["DKK"] = "DKK";
17701
+ Currencies2["EUR"] = "EUR";
17702
+ Currencies2["GBP"] = "GBP";
17703
+ Currencies2["HKD"] = "HKD";
17704
+ Currencies2["HRK"] = "HRK";
17705
+ Currencies2["HUF"] = "HUF";
17706
+ Currencies2["MXN"] = "MXN";
17707
+ Currencies2["MYR"] = "MYR";
17708
+ Currencies2["NOK"] = "NOK";
17709
+ Currencies2["NZD"] = "NZD";
17710
+ Currencies2["PLN"] = "PLN";
17711
+ Currencies2["RON"] = "RON";
17712
+ Currencies2["SEK"] = "SEK";
17713
+ Currencies2["SGD"] = "SGD";
17714
+ Currencies2["USD"] = "USD";
17715
+ return Currencies2;
17716
+ })(Currencies || {});
17678
17717
  const currencyByCountry = {
17679
- [CountryCodes.Australia]: [Currency.AUD],
17680
- [CountryCodes.Austria]: [Currency.EUR],
17681
- [CountryCodes.Belgium]: [Currency.EUR],
17682
- [CountryCodes.Brazil]: [Currency.BRL],
17683
- [CountryCodes.Bulgaria]: [Currency.BGN, Currency.EUR],
17684
- [CountryCodes.Canada]: [Currency.CAD, Currency.USD],
17685
- [CountryCodes.Croatia]: [Currency.HRK, Currency.EUR],
17686
- [CountryCodes.Cyprus]: [Currency.EUR],
17687
- [CountryCodes.CzechRepublic]: [Currency.CZK, Currency.EUR],
17688
- [CountryCodes.Denmark]: [Currency.DKK, Currency.EUR],
17689
- [CountryCodes.Estonia]: [Currency.EUR],
17690
- [CountryCodes.Finland]: [Currency.EUR],
17691
- [CountryCodes.France]: [Currency.EUR],
17692
- [CountryCodes.Germany]: [Currency.EUR],
17693
- [CountryCodes.Gibraltar]: [Currency.GBP],
17694
- [CountryCodes.Greece]: [Currency.EUR],
17695
- [CountryCodes.Guernsey]: [Currency.GBP],
17696
- [CountryCodes.HongKong]: [Currency.HKD],
17697
- [CountryCodes.Hungary]: [Currency.HUF, Currency.EUR],
17698
- [CountryCodes.Ireland]: [Currency.EUR],
17699
- [CountryCodes.IsleOfMan]: [Currency.GBP],
17700
- [CountryCodes.Italy]: [Currency.EUR],
17701
- [CountryCodes.Jersey]: [Currency.GBP],
17702
- [CountryCodes.Latvia]: [Currency.EUR],
17703
- [CountryCodes.Liechtenstein]: [Currency.CHF, Currency.EUR],
17704
- [CountryCodes.Lithuania]: [Currency.EUR],
17705
- [CountryCodes.Luxembourg]: [Currency.EUR],
17706
- [CountryCodes.Malaysia]: [Currency.MYR],
17707
- [CountryCodes.Malta]: [Currency.EUR],
17708
- [CountryCodes.Mexico]: [Currency.MXN],
17709
- [CountryCodes.Monaco]: [Currency.EUR],
17710
- [CountryCodes.Netherlands]: [Currency.EUR],
17711
- [CountryCodes.NewZealand]: [Currency.NZD],
17712
- [CountryCodes.Norway]: [Currency.NOK, Currency.EUR],
17713
- [CountryCodes.Poland]: [Currency.PLN, Currency.EUR],
17714
- [CountryCodes.Portugal]: [Currency.EUR],
17715
- [CountryCodes.PuertoRico]: [Currency.USD],
17716
- [CountryCodes.Romania]: [Currency.RON, Currency.EUR],
17717
- [CountryCodes.Singapore]: [Currency.SGD],
17718
- [CountryCodes.Slovakia]: [Currency.EUR],
17719
- [CountryCodes.Slovenia]: [Currency.EUR],
17720
- [CountryCodes.Spain]: [Currency.EUR],
17721
- [CountryCodes.Sweden]: [Currency.SEK, Currency.EUR],
17722
- [CountryCodes.Switzerland]: [Currency.CHF, Currency.EUR],
17723
- [CountryCodes.UnitedArabEmirates]: [Currency.AED],
17724
- [CountryCodes.UnitedKingdom]: [Currency.GBP, Currency.EUR],
17725
- [CountryCodes.UnitedStates]: [Currency.USD]
17718
+ [CountryCodes.Australia]: [Currencies.AUD],
17719
+ [CountryCodes.Austria]: [Currencies.EUR],
17720
+ [CountryCodes.Belgium]: [Currencies.EUR],
17721
+ [CountryCodes.Brazil]: [Currencies.BRL],
17722
+ [CountryCodes.Bulgaria]: [Currencies.BGN, Currencies.EUR],
17723
+ [CountryCodes.Canada]: [Currencies.CAD, Currencies.USD],
17724
+ [CountryCodes.Croatia]: [Currencies.HRK, Currencies.EUR],
17725
+ [CountryCodes.Cyprus]: [Currencies.EUR],
17726
+ [CountryCodes.CzechRepublic]: [Currencies.CZK, Currencies.EUR],
17727
+ [CountryCodes.Denmark]: [Currencies.DKK, Currencies.EUR],
17728
+ [CountryCodes.Estonia]: [Currencies.EUR],
17729
+ [CountryCodes.Finland]: [Currencies.EUR],
17730
+ [CountryCodes.France]: [Currencies.EUR],
17731
+ [CountryCodes.Germany]: [Currencies.EUR],
17732
+ [CountryCodes.Gibraltar]: [Currencies.GBP],
17733
+ [CountryCodes.Greece]: [Currencies.EUR],
17734
+ [CountryCodes.Guernsey]: [Currencies.GBP],
17735
+ [CountryCodes.HongKong]: [Currencies.HKD],
17736
+ [CountryCodes.Hungary]: [Currencies.HUF, Currencies.EUR],
17737
+ [CountryCodes.Ireland]: [Currencies.EUR],
17738
+ [CountryCodes.IsleOfMan]: [Currencies.GBP],
17739
+ [CountryCodes.Italy]: [Currencies.EUR],
17740
+ [CountryCodes.Jersey]: [Currencies.GBP],
17741
+ [CountryCodes.Latvia]: [Currencies.EUR],
17742
+ [CountryCodes.Liechtenstein]: [Currencies.CHF, Currencies.EUR],
17743
+ [CountryCodes.Lithuania]: [Currencies.EUR],
17744
+ [CountryCodes.Luxembourg]: [Currencies.EUR],
17745
+ [CountryCodes.Malaysia]: [Currencies.MYR],
17746
+ [CountryCodes.Malta]: [Currencies.EUR],
17747
+ [CountryCodes.Mexico]: [Currencies.MXN],
17748
+ [CountryCodes.Monaco]: [Currencies.EUR],
17749
+ [CountryCodes.Netherlands]: [Currencies.EUR],
17750
+ [CountryCodes.NewZealand]: [Currencies.NZD],
17751
+ [CountryCodes.Norway]: [Currencies.NOK, Currencies.EUR],
17752
+ [CountryCodes.Poland]: [Currencies.PLN, Currencies.EUR],
17753
+ [CountryCodes.Portugal]: [Currencies.EUR],
17754
+ [CountryCodes.PuertoRico]: [Currencies.USD],
17755
+ [CountryCodes.Romania]: [Currencies.RON, Currencies.EUR],
17756
+ [CountryCodes.Singapore]: [Currencies.SGD],
17757
+ [CountryCodes.Slovakia]: [Currencies.EUR],
17758
+ [CountryCodes.Slovenia]: [Currencies.EUR],
17759
+ [CountryCodes.Spain]: [Currencies.EUR],
17760
+ [CountryCodes.Sweden]: [Currencies.SEK, Currencies.EUR],
17761
+ [CountryCodes.Switzerland]: [Currencies.CHF, Currencies.EUR],
17762
+ [CountryCodes.UnitedArabEmirates]: [Currencies.AED],
17763
+ [CountryCodes.UnitedKingdom]: [Currencies.GBP, Currencies.EUR],
17764
+ [CountryCodes.UnitedStates]: [Currencies.USD]
17726
17765
  };
17727
17766
  const bankVerificationValidationRules = {
17728
17767
  verifiedAccountHolder: {
@@ -17771,7 +17810,7 @@ class AdyenKycSdkError extends Error {
17771
17810
  }
17772
17811
  let sdkToken;
17773
17812
  let fetchSdkToken;
17774
- const logger$i = createLogger("Session");
17813
+ const logger$j = createLogger("Session");
17775
17814
  const setSdkToken = (token) => {
17776
17815
  sdkToken = token;
17777
17816
  };
@@ -17789,7 +17828,7 @@ const refreshSession = async () => {
17789
17828
  } = await fetchSdkToken();
17790
17829
  setSdkToken(token);
17791
17830
  } catch (e) {
17792
- logger$i.error("Failed to fetch sdk token", e);
17831
+ logger$j.error("Failed to fetch sdk token", e);
17793
17832
  }
17794
17833
  };
17795
17834
  const addAnimationStartListener = (element, listener) => {
@@ -17798,7 +17837,7 @@ const addAnimationStartListener = (element, listener) => {
17798
17837
  const removeAnimationStartListener = (element, listener) => {
17799
17838
  element.removeEventListener("animationstart", listener, false);
17800
17839
  };
17801
- const logger$h = createLogger("Fetch");
17840
+ const logger$i = createLogger("Fetch");
17802
17841
  const getRequestObject = (options, data) => {
17803
17842
  const {
17804
17843
  headers = [],
@@ -17845,10 +17884,10 @@ const logFetchError = (message, level) => {
17845
17884
  case "info":
17846
17885
  case "warn":
17847
17886
  case "error":
17848
- logger$h[level](message);
17887
+ logger$i[level](message);
17849
17888
  break;
17850
17889
  default:
17851
- logger$h.error(message);
17890
+ logger$i.error(message);
17852
17891
  }
17853
17892
  };
17854
17893
  const handleFetchResponse = async (response, responseType) => {
@@ -17939,7 +17978,7 @@ const RELEVANT_MESSAGE_TYPES = ["account_verification_report_id", "error"];
17939
17978
  const TERMINAL_DATA_PROPS = ["accounts", "error", "reference"];
17940
17979
  const MOUNT_TIMEOUT = 10 * 1e3;
17941
17980
  const TINK_VENDOR = "Tink";
17942
- const logger$g = createLogger("iframeWidget");
17981
+ const logger$h = createLogger("iframeWidget");
17943
17982
  const isObjectData = (data) => typeof data === "object" && !Array.isArray(data) && data !== null;
17944
17983
  const isTerminalMessageData = (data) => isObjectData(data) && Object.entries(data).some(([prop]) => TERMINAL_DATA_PROPS.includes(prop));
17945
17984
  const parseMessageJson = (message) => {
@@ -17958,7 +17997,7 @@ const callbackErrorHandler = async (response) => {
17958
17997
  try {
17959
17998
  await response;
17960
17999
  } catch (ex) {
17961
- logger$g.error(ex);
18000
+ logger$h.error(ex);
17962
18001
  }
17963
18002
  return {
17964
18003
  error: "UNKNOWN_ERROR",
@@ -18067,7 +18106,7 @@ class IFrameWidget {
18067
18106
  message = responseData.errorMessage;
18068
18107
  }
18069
18108
  } catch (ex) {
18070
- logger$g.error(ex);
18109
+ logger$h.error(ex);
18071
18110
  }
18072
18111
  throw new AdyenKycSdkError(reason, jsonData.error);
18073
18112
  }
@@ -18255,7 +18294,7 @@ function BankVerificationWidget({
18255
18294
  ref: widgetContainerRef
18256
18295
  });
18257
18296
  }
18258
- const logger$f = createLogger("BankVerification");
18297
+ const logger$g = createLogger("BankVerification");
18259
18298
  const accountVerificationFields = ["verifiedAccountHolder", "verifiedBankCountry", "verifiedBankName", "verifiedCurrencyCode", "verifiedBankAccountNumber"];
18260
18299
  const InstantVerificationErrorContext = createContext(null);
18261
18300
  const useInstantVerificationErrorNotification = (notificationVisibilityDuration) => {
@@ -18289,7 +18328,7 @@ const usePreferredVendorForCountry = (country2, getBankVerificationVendors) => {
18289
18328
  const vendor = vendors[0];
18290
18329
  setPreferredVendor(vendor.name ? vendor : void 0);
18291
18330
  };
18292
- getPreferredVendor().catch(logger$f.error);
18331
+ getPreferredVendor().catch(logger$g.error);
18293
18332
  }, [country2, getBankVerificationVendors]);
18294
18333
  return preferredVendor;
18295
18334
  };
@@ -18495,12 +18534,12 @@ const countriesWithMultipleCurrencies = /* @__PURE__ */ new Set([CountryCodes.Bu
18495
18534
  const countriesWithLocalFormat = /* @__PURE__ */ new Set([CountryCodes.Denmark, CountryCodes.Norway, CountryCodes.Poland, CountryCodes.Sweden, CountryCodes.UnitedKingdom]);
18496
18535
  const payoutCurrencySupport = {
18497
18536
  [CountryCodes.Sweden]: {
18498
- local: [Currency.SEK],
18499
- iban: [Currency.EUR]
18537
+ local: [Currencies.SEK],
18538
+ iban: [Currencies.EUR]
18500
18539
  },
18501
18540
  [CountryCodes.Canada]: {
18502
- local: [Currency.CAD, Currency.USD],
18503
- iban: [Currency.CAD, Currency.USD]
18541
+ local: [Currencies.CAD, Currencies.USD],
18542
+ iban: [Currencies.CAD, Currencies.USD]
18504
18543
  }
18505
18544
  };
18506
18545
  const shouldShowPayoutAccountFormatSelector = (country2) => countriesWithLocalFormat.has(country2);
@@ -18533,7 +18572,7 @@ const getSupportedCurrenciesPerFormat = (country2, format) => {
18533
18572
  if (!defaultCurrency) {
18534
18573
  return;
18535
18574
  }
18536
- return format === "iban" ? [Currency.EUR, defaultCurrency] : [defaultCurrency];
18575
+ return format === "iban" ? [Currencies.EUR, defaultCurrency] : [defaultCurrency];
18537
18576
  }
18538
18577
  return supportedCurrencies[format];
18539
18578
  };
@@ -20023,7 +20062,7 @@ const makePayoutVerificationMethodsMetadata = (svgPath, instantVerificationProvi
20023
20062
  }
20024
20063
  });
20025
20064
  const payoutVerificationMethods = ["instantVerification", "manualVerification"];
20026
- const logger$e = createLogger("useLocalStorage");
20065
+ const logger$f = createLogger("useLocalStorage");
20027
20066
  const useLocalStorage = (key, defaultValue, options) => {
20028
20067
  const {
20029
20068
  serializer,
@@ -20044,7 +20083,7 @@ const useLocalStorage = (key, defaultValue, options) => {
20044
20083
  const res = rawValueRef.current ? parser(rawValueRef.current) : defaultValue;
20045
20084
  return res;
20046
20085
  } catch (err) {
20047
- logger$e.error(err);
20086
+ logger$f.error(err);
20048
20087
  return defaultValue;
20049
20088
  }
20050
20089
  });
@@ -20076,7 +20115,7 @@ const useLocalStorage = (key, defaultValue, options) => {
20076
20115
  try {
20077
20116
  updateLocalStorage();
20078
20117
  } catch (err) {
20079
- logger$e.error(err);
20118
+ logger$f.error(err);
20080
20119
  }
20081
20120
  }, [value]);
20082
20121
  useEffect(() => {
@@ -20091,7 +20130,7 @@ const useLocalStorage = (key, defaultValue, options) => {
20091
20130
  setValue(event.newValue ? parser(event.newValue) : void 0);
20092
20131
  }
20093
20132
  } catch (err) {
20094
- logger$e.error(err);
20133
+ logger$f.error(err);
20095
20134
  }
20096
20135
  };
20097
20136
  if (typeof window === "undefined")
@@ -21463,6 +21502,8 @@ const invalidInputRemediationActionMappings = {
21463
21502
  "1_502": [{
21464
21503
  key: DocumentType.REGISTRATION_DOCUMENT
21465
21504
  }],
21505
+ // '1_503': [{ key: DocumentType.PROOF_OF_ORGANIZATION_TAX_INFO }], // TODO: These are the correct mappings according to the API. We've done various bandaid fixes on both sides for this
21506
+ // '1_504': [{ key: DocumentType.PROOF_OF_ORGANIZATION_TAX_INFO }], // These will be corrected in a later ticket. see https://docs.adyen.com/platforms/kyc-verification-codes/remediating-actions/#1_503
21466
21507
  "1_503": [{
21467
21508
  key: DocumentType.VAT_DOCUMENT
21468
21509
  }],
@@ -21521,6 +21562,8 @@ const invalidInputRemediationActionMappings = {
21521
21562
  };
21522
21563
  const dataMissingRemediationsToFieldsMap = {
21523
21564
  "1_501": [DocumentType.REGISTRATION_DOCUMENT],
21565
+ "1_503": [DocumentType.PROOF_OF_ORGANIZATION_TAX_INFO],
21566
+ "1_512": [DocumentType.VAT_DOCUMENT],
21524
21567
  "2_158": ["vatNumber", "exemptedFromVat", "vatAbsenceReason"]
21525
21568
  };
21526
21569
  const DATA_MISSING_DECISION_MAKER_ERROR_CODE_MAPPING = {
@@ -21555,7 +21598,7 @@ const entityProblemInitialState = {
21555
21598
  };
21556
21599
  const UNRELATED_DATA_MISSING_ERROR_CODES = ["2_8036", "2_8064", "2_8067", "2_8189"];
21557
21600
  const UNRELATED_INVALID_INPUT_ERROR_CODES = ["1_14", "2_901", "2_902"];
21558
- function getCapabilityProblems(response, isExperimentEnabled) {
21601
+ function getCapabilityProblems(response, country2, isExperimentEnabled) {
21559
21602
  const capabilities = (response == null ? void 0 : response.capabilities) || {};
21560
21603
  const capabilityProblems = {};
21561
21604
  Object.values(capabilities).forEach(({
@@ -21570,26 +21613,26 @@ function getCapabilityProblems(response, isExperimentEnabled) {
21570
21613
  } = problem.entity;
21571
21614
  capabilityProblems[entityType2] = capabilityProblems[entityType2] || {};
21572
21615
  capabilityProblems[entityType2][entityId] = capabilityProblems[entityType2][entityId] ?? getInitialProblemState(entityType2, entityId, response);
21573
- setProblem(problem, capabilityProblems[entityType2][entityId], isExperimentEnabled);
21616
+ setProblem(problem, capabilityProblems[entityType2][entityId], country2, isExperimentEnabled);
21574
21617
  }
21575
21618
  });
21576
21619
  }
21577
21620
  });
21578
21621
  return capabilityProblems;
21579
21622
  }
21580
- function setProblem(problem, entityProblems, isExperimentEnabled) {
21623
+ function setProblem(problem, entityProblems, country2, isExperimentEnabled) {
21581
21624
  var _a;
21582
21625
  if ((_a = problem.verificationErrors) == null ? void 0 : _a.length) {
21583
21626
  problem.verificationErrors.forEach((error) => {
21584
- setVerificationError(error, entityProblems, isExperimentEnabled);
21627
+ setVerificationError(error, entityProblems, country2, isExperimentEnabled);
21585
21628
  });
21586
21629
  }
21587
21630
  }
21588
- function setVerificationError(error, entityProblems, isExperimentEnabled) {
21631
+ function setVerificationError(error, entityProblems, country2, isExperimentEnabled) {
21589
21632
  switch (error.type) {
21590
21633
  case VerificationErrorType.INVALID_INPUT: {
21591
21634
  if (!isUnRelatedErrorCode(error)) {
21592
- setInvalidInputError(error, entityProblems, isExperimentEnabled);
21635
+ setInvalidInputError(error, entityProblems, country2, isExperimentEnabled);
21593
21636
  }
21594
21637
  break;
21595
21638
  }
@@ -21620,14 +21663,22 @@ const setReviewRequiredError = (verificationError, entityProblems) => {
21620
21663
  };
21621
21664
  setPriorityStatus(entityProblems, TaskStatus.SUBMIT);
21622
21665
  };
21623
- function setInvalidInputError(parentVerificationError, entityProblems, isExperimentEnabled) {
21666
+ const overrideInvalidInputRemediations = (code2, country2) => {
21667
+ if ((code2 === "1_501" || code2 === "1_502") && country2 === "US") {
21668
+ return [{
21669
+ key: DocumentType.PROOF_OF_ORGANIZATION_TAX_INFO
21670
+ }];
21671
+ }
21672
+ return invalidInputRemediationActionMappings[code2];
21673
+ };
21674
+ function setInvalidInputError(parentVerificationError, entityProblems, country2, isExperimentEnabled) {
21624
21675
  var _a, _b;
21625
21676
  const processedSubErrors = (_a = parentVerificationError == null ? void 0 : parentVerificationError.subErrors) == null ? void 0 : _a.reduce((acc, {
21626
21677
  code: code2,
21627
21678
  remediatingActions
21628
21679
  }) => {
21629
21680
  const mappedRemActions = remediatingActions == null ? void 0 : remediatingActions.reduce((acc2, remediatingAction) => {
21630
- const remMapping = invalidInputRemediationActionMappings[remediatingAction.code];
21681
+ const remMapping = overrideInvalidInputRemediations(remediatingAction.code, country2);
21631
21682
  if (remMapping) {
21632
21683
  const {
21633
21684
  entityType: entityType2
@@ -22164,21 +22215,8 @@ const useFormComposer = ({
22164
22215
  setShouldValidate
22165
22216
  };
22166
22217
  };
22167
- const payoutFieldsMapping = {
22168
- BANK_CODE: "bankCode",
22169
- BRANCH_CODE: "branchCode",
22170
- COUNTRY: "country",
22171
- NUMBER: "bankAccountNumber",
22172
- BANK_CITY: "bankCity",
22173
- SWIFT_CODE: "swiftCode",
22174
- IBAN: "iban",
22175
- OWNER_NAME: "accountHolder",
22176
- BANK_NAME: "bankName",
22177
- // not sure about this field
22178
- OWNER_CITY: "accountHolderCity"
22179
- };
22180
- const obscuredPayoutFields = [payoutFieldsMapping.NUMBER, payoutFieldsMapping.IBAN];
22181
- const countryConfig$2 = {
22218
+ const obscuredPayoutFields = ["bankAccountNumber", "iban"];
22219
+ const countryConfig$1 = {
22182
22220
  [CountryCodes.Australia]: {},
22183
22221
  [CountryCodes.Brazil]: {
22184
22222
  bankCode: {
@@ -22222,88 +22260,6 @@ const countryConfig$2 = {
22222
22260
  },
22223
22261
  [CountryCodes.UnitedStates]: {}
22224
22262
  };
22225
- const parseValidationRule = (validationRule) => {
22226
- const [name, start, end] = validationRule.split(":");
22227
- switch (name) {
22228
- case "bic_either8or11":
22229
- return {
22230
- name: "bic_either8or11"
22231
- };
22232
- case "iban": {
22233
- const length = parseInt(start);
22234
- if (Number.isNaN(length))
22235
- return "invalid";
22236
- return {
22237
- name: "iban",
22238
- length
22239
- };
22240
- }
22241
- case "digits": {
22242
- const minLength = parseInt(start);
22243
- const maxLength = parseInt(end);
22244
- if (Number.isNaN(minLength) || end && Number.isNaN(maxLength))
22245
- return "invalid";
22246
- return {
22247
- name: "digits",
22248
- minLength,
22249
- maxLength
22250
- };
22251
- }
22252
- default:
22253
- return "invalid";
22254
- }
22255
- };
22256
- const getValidatorRules = (validationRule) => {
22257
- const rule = parseValidationRule(validationRule);
22258
- if (rule === "invalid")
22259
- throw Error(`Invalid validation rule '${validationRule}'`);
22260
- switch (rule.name) {
22261
- case "bic_either8or11":
22262
- return {
22263
- modes: ["blur", "input"],
22264
- validate: (value) => /^([a-zA-Z0-9]{8}|[a-zA-Z0-9]{11})$/.test(value ?? ""),
22265
- errorMessage: "validation8Or11Characters"
22266
- };
22267
- case "iban":
22268
- return {
22269
- modes: ["blur", "input"],
22270
- validate: (value) => exactLength(value, rule.length),
22271
- errorMessage: {
22272
- key: "validationCharacters",
22273
- values: {
22274
- length: `${rule.length}`
22275
- }
22276
- }
22277
- };
22278
- case "digits":
22279
- if (rule.maxLength) {
22280
- return {
22281
- modes: ["blur", "input"],
22282
- // TODO: https://mattermost.adyen.com/adyen/pl/cr37pz9tzpr7zfy8cj4tn5caio
22283
- validate: (value) => lengthIsBetween(value, rule.minLength, rule.maxLength),
22284
- errorMessage: {
22285
- key: "validationDigitsBetween",
22286
- values: {
22287
- start: `${rule.minLength}`,
22288
- end: `${rule.maxLength}`
22289
- }
22290
- }
22291
- };
22292
- }
22293
- return {
22294
- modes: ["blur", "input"],
22295
- validate: (value) => exactLength(value, rule.minLength),
22296
- errorMessage: {
22297
- key: "validationDigits",
22298
- values: {
22299
- length: `${rule.minLength}`
22300
- }
22301
- }
22302
- };
22303
- default:
22304
- return void 0;
22305
- }
22306
- };
22307
22263
  const defaultPayoutAccountFormat = {
22308
22264
  [CountryCodes.CzechRepublic]: "iban",
22309
22265
  [CountryCodes.Denmark]: "local",
@@ -22313,7 +22269,7 @@ const defaultPayoutAccountFormat = {
22313
22269
  [CountryCodes.Sweden]: "local",
22314
22270
  [CountryCodes.UnitedKingdom]: "local"
22315
22271
  };
22316
- const logger$d = createLogger("useScenarioConfiguration");
22272
+ const logger$e = createLogger("useScenarioConfiguration");
22317
22273
  const useScenarioConfiguration = ({
22318
22274
  getConfigurationData,
22319
22275
  getPayoutAccountFormatData,
@@ -22336,12 +22292,12 @@ const useScenarioConfiguration = ({
22336
22292
  const response = await getConfigurationData();
22337
22293
  setConfigurationResponse(response);
22338
22294
  } catch (err) {
22339
- logger$d.warn("WARNING: Configuration request failed - error:", err);
22295
+ logger$e.warn("WARNING: Configuration request failed - error:", err);
22340
22296
  } finally {
22341
22297
  setLoadingStatus("success");
22342
22298
  }
22343
22299
  };
22344
- makeConfigCallAndSave().catch(logger$d.error);
22300
+ makeConfigCallAndSave().catch(logger$e.error);
22345
22301
  }, [getConfigurationData, setLoadingStatus]);
22346
22302
  useEffect(() => {
22347
22303
  setLoadingStatus("loading");
@@ -22360,12 +22316,12 @@ const useScenarioConfiguration = ({
22360
22316
  const defaultAccountFormat = defaultPayoutAccountFormat[country2] ?? allowedBankAccountFormats[0];
22361
22317
  setAccountFormat(existingBankAccountFormat ?? defaultAccountFormat);
22362
22318
  } catch (err) {
22363
- logger$d.warn("WARNING: Payout format request failed - error:", err);
22319
+ logger$e.warn("WARNING: Payout format request failed - error:", err);
22364
22320
  } finally {
22365
22321
  setLoadingStatus("success");
22366
22322
  }
22367
22323
  };
22368
- makePayoutFormatCallAndSave().catch(logger$d.error);
22324
+ makePayoutFormatCallAndSave().catch(logger$e.error);
22369
22325
  }, [country2, setAccountFormat, getPayoutAccountFormatData, setLoadingStatus, existingBankAccountFormat]);
22370
22326
  const {
22371
22327
  fieldConfigurations,
@@ -22527,69 +22483,6 @@ const fieldsPerScenario$1 = {
22527
22483
  },
22528
22484
  L1_IDDOC: idDocument
22529
22485
  };
22530
- const countryConfig$1 = {
22531
- US: {
22532
- idNumber: {
22533
- label: "last4DigitsOfSocialSecurityNumber",
22534
- placeholder: "SSNFormatUS"
22535
- },
22536
- idNumberExempt: {
22537
- label: "identityNumberExempt__US"
22538
- }
22539
- },
22540
- CA: {
22541
- idNumber: {
22542
- label: "socialInsuranceNumber",
22543
- placeholder: "SINFormatCA"
22544
- },
22545
- idNumberExempt: {
22546
- label: "identityNumberExempt__CA"
22547
- }
22548
- },
22549
- IT: {
22550
- idNumber: {
22551
- label: "codiceFiscale"
22552
- }
22553
- },
22554
- BR: {
22555
- idNumber: {
22556
- label: "cadastroDePessoasFisicas"
22557
- }
22558
- },
22559
- SE: {
22560
- idNumber: {
22561
- label: "personnummer"
22562
- }
22563
- },
22564
- ES: {
22565
- idNumber: {
22566
- label: "dni"
22567
- }
22568
- },
22569
- PL: {
22570
- idNumber: {
22571
- label: "peselNumber"
22572
- }
22573
- },
22574
- DK: {
22575
- idNumber: {
22576
- label: "detCentralePersonregister"
22577
- }
22578
- },
22579
- RO: {
22580
- idNumber: {
22581
- label: "codNumericPersonal"
22582
- }
22583
- },
22584
- SG: {
22585
- idNumber: {
22586
- label: "nric"
22587
- },
22588
- idNumberExempt: {
22589
- label: "uploadDocumentForNric"
22590
- }
22591
- }
22592
- };
22593
22486
  const solePropBase = {
22594
22487
  companyCountry: {
22595
22488
  rule: "REQUIRED"
@@ -22663,36 +22556,31 @@ const fieldsPerScenario = {
22663
22556
  }
22664
22557
  };
22665
22558
  const countryConfig = {
22666
- ...countryConfig$4,
22559
+ ...countryConfig$3,
22667
22560
  [CountryCodes.NewZealand]: {
22668
- ...countryConfig$4[CountryCodes.NewZealand],
22561
+ ...countryConfig$3[CountryCodes.NewZealand],
22669
22562
  registrationNumber: {
22670
22563
  label: "NZBN"
22671
22564
  }
22672
22565
  },
22673
22566
  [CountryCodes.Croatia]: {
22674
- ...countryConfig$4[CountryCodes.Croatia],
22567
+ ...countryConfig$3[CountryCodes.Croatia],
22675
22568
  registrationNumber: {
22676
22569
  label: "MBO"
22677
22570
  }
22678
22571
  }
22679
22572
  };
22680
- function parseIndividualScenarios(scenario, country2) {
22681
- let fieldConfigurations = scenario == null ? void 0 : scenario.reduce((scenarios, scenarioName) => ({
22682
- ...scenarios,
22683
- ...fieldsPerScenario$1[scenarioName]
22684
- }), {});
22685
- const countryConfigs = countryConfig$1[country2];
22686
- fieldConfigurations = augmentWithCountryConfigs(countryConfigs, fieldConfigurations);
22687
- return fieldConfigurations;
22688
- }
22573
+ const parseIndividualScenarios = (scenario) => scenario == null ? void 0 : scenario.reduce((scenarios, scenarioName) => ({
22574
+ ...scenarios,
22575
+ ...fieldsPerScenario$1[scenarioName]
22576
+ }), {});
22689
22577
  function parseCompanyScenarios(scenario, country2) {
22690
22578
  if (scenario) {
22691
22579
  let fieldConfigurations = scenario.reduce((scenarios, scenarioName) => ({
22692
22580
  ...scenarios,
22693
22581
  ...fieldsPerScenario$3[scenarioName]
22694
22582
  }), {});
22695
- const countryConfigs = countryConfig$4[country2];
22583
+ const countryConfigs = countryConfig$3[country2];
22696
22584
  fieldConfigurations = augmentWithCountryConfigs(countryConfigs, fieldConfigurations);
22697
22585
  return fieldConfigurations;
22698
22586
  }
@@ -22703,7 +22591,7 @@ function parseCompanySearchScenarios(scenario, country2) {
22703
22591
  ...scenarios,
22704
22592
  ...companySearchFieldsPerScenario[scenarioName]
22705
22593
  }), {});
22706
- const countryConfigs = countryConfig$4[country2];
22594
+ const countryConfigs = countryConfig$3[country2];
22707
22595
  fieldConfigurations = augmentWithCountryConfigs(countryConfigs, fieldConfigurations);
22708
22596
  return fieldConfigurations;
22709
22597
  }
@@ -22714,7 +22602,7 @@ function parseTrustScenarios(scenario, country2) {
22714
22602
  ...scenarios,
22715
22603
  ...fieldsPerScenario$2[scenarioName]
22716
22604
  }), {});
22717
- const countryConfigs = countryConfig$3[country2];
22605
+ const countryConfigs = countryConfig$2[country2];
22718
22606
  fieldConfigurations = augmentWithCountryConfigs(countryConfigs, fieldConfigurations);
22719
22607
  return fieldConfigurations;
22720
22608
  }
@@ -22737,11 +22625,6 @@ function parsePayoutScenarios({
22737
22625
  }) {
22738
22626
  if (!requiredFields)
22739
22627
  return;
22740
- const requiredValidatorRule = {
22741
- modes: ["blur"],
22742
- validate: (value) => !!value,
22743
- errorMessage: "fieldIsRequired"
22744
- };
22745
22628
  const fieldConfigurations = {};
22746
22629
  fieldConfigurations.payoutVerificationMethod = {
22747
22630
  rule: "REQUIRED"
@@ -22749,22 +22632,16 @@ function parsePayoutScenarios({
22749
22632
  fieldConfigurations.bankCountry = {
22750
22633
  rule: "REQUIRED"
22751
22634
  };
22752
- requiredFields.forEach((field) => {
22753
- const {
22754
- fieldName: apiFieldName,
22755
- validationRule
22756
- } = field.Field ?? field;
22757
- const fieldName = payoutFieldsMapping[apiFieldName];
22758
- if (fieldName) {
22759
- fieldConfigurations[fieldName] = validationRule ? {
22760
- rule: bankVerificationAvailable ? "whenUsingManualVerification" : "REQUIRED",
22761
- validators: [getValidatorRules(validationRule), requiredValidatorRule]
22762
- } : {
22763
- rule: bankVerificationAvailable ? "whenUsingManualVerification" : "REQUIRED",
22764
- validators: [requiredValidatorRule]
22765
- };
22766
- fieldConfigurations[fieldName].obscured = obscuredPayoutFields.includes(fieldName);
22767
- }
22635
+ requiredFields.forEach((fieldName) => {
22636
+ fieldConfigurations[fieldName] = {
22637
+ rule: bankVerificationAvailable ? "whenUsingManualVerification" : "REQUIRED",
22638
+ validators: [{
22639
+ modes: ["blur"],
22640
+ validate: (value) => !!value,
22641
+ errorMessage: "fieldIsRequired"
22642
+ }]
22643
+ };
22644
+ fieldConfigurations[fieldName].obscured = obscuredPayoutFields.includes(fieldName);
22768
22645
  });
22769
22646
  if (bankVerificationAvailable) {
22770
22647
  fieldConfigurations.verifiedAccountHolder = {
@@ -22789,7 +22666,7 @@ function parsePayoutScenarios({
22789
22666
  fieldConfigurations.description = {
22790
22667
  rule: "bankStatementDescription"
22791
22668
  };
22792
- return augmentWithCountryConfigs(countryConfig$2[country2], fieldConfigurations);
22669
+ return augmentWithCountryConfigs(countryConfig$1[country2], fieldConfigurations);
22793
22670
  }
22794
22671
  const augmentWithCountryConfigs = (countryConfigs, fieldConfigurations) => {
22795
22672
  if (countryConfigs) {
@@ -22811,7 +22688,7 @@ const isFieldRequired = (fieldConfigurations, customRules) => {
22811
22688
  }
22812
22689
  return fieldConfigurations && ((fieldConfigurations == null ? void 0 : fieldConfigurations.rule) === "REQUIRED" || (customRules == null ? void 0 : customRules[fieldConfigurations.rule]) && customRules[fieldConfigurations.rule]() === "REQUIRED");
22813
22690
  };
22814
- function getPropsFromConfigurations(scenarioConfiguration, forms2, remediationActions, dataMissingErrors, fieldsWithExistingData, customRules = {}, customLabels = {}) {
22691
+ function getPropsFromConfigurations(scenarioConfiguration, forms2, remediationActions, dataMissingErrors, fieldsWithExistingData, country2, customRules = {}, customLabels = {}) {
22815
22692
  var _a;
22816
22693
  const requiredFields = {};
22817
22694
  const optionalFields = {};
@@ -22834,7 +22711,7 @@ function getPropsFromConfigurations(scenarioConfiguration, forms2, remediationAc
22834
22711
  const fieldConfigurations = scenarioConfiguration[field];
22835
22712
  const isRequiredFromFieldConfig = isFieldRequired(fieldConfigurations, customRules);
22836
22713
  const isFieldRequiredByRemediationAction = showRemediationField(field, remediationActions);
22837
- const isFieldNeededToRemediateDataMissingError = isFieldRequiredToRemediateDataMissingError(formId, field, dataMissingErrors);
22714
+ const isFieldNeededToRemediateDataMissingError = isFieldRequiredToRemediateDataMissingError(formId, field, dataMissingErrors, country2);
22838
22715
  const fieldHasExistingData = formFieldsWithExistingData.includes(field);
22839
22716
  const isRequired = isFieldRequiredByRemediationAction || isRequiredFromFieldConfig || isFieldNeededToRemediateDataMissingError || fieldHasExistingData;
22840
22717
  if (isRequired) {
@@ -22912,10 +22789,21 @@ const showRemediationField = (field, remediationActions) => remediationActions.s
22912
22789
  var _a;
22913
22790
  return ((_a = rem.fields) == null ? void 0 : _a.includes(field)) && remediationHasFileUploadField(rem);
22914
22791
  });
22915
- const makeTLDSFieldName = (formId, fieldName) => `${formId}.${fieldName}`;
22916
- const isFieldRequiredToRemediateDataMissingError = (formId, field, dataMissingErrors) => {
22792
+ const makeTLDSFieldName = (formId, fieldName) => {
22793
+ if (fieldName === DocumentType.PROOF_OF_ORGANIZATION_TAX_INFO) {
22794
+ return `${formId}.taxDocument`;
22795
+ }
22796
+ return `${formId}.${fieldName}`;
22797
+ };
22798
+ const overrideDataMissingRemediations = (code2, country2) => {
22799
+ if (code2 === "1_501" && country2 === "US") {
22800
+ return dataMissingRemediationsToFieldsMap["1_503"];
22801
+ }
22802
+ return dataMissingRemediationsToFieldsMap[code2];
22803
+ };
22804
+ const isFieldRequiredToRemediateDataMissingError = (formId, field, dataMissingErrors, country2) => {
22917
22805
  const dataMissingRemediations = dataMissingErrors.flatMap((error) => error.remediatingActions).filter((remediatingAction) => remediatingAction.code in dataMissingRemediationsToFieldsMap);
22918
- const missingFields = dataMissingRemediations.flatMap((remediatingAction) => dataMissingRemediationsToFieldsMap[remediatingAction.code]).map((missingField) => makeTLDSFieldName(formId, missingField));
22806
+ const missingFields = dataMissingRemediations.flatMap((remediatingAction) => overrideDataMissingRemediations(remediatingAction.code, country2)).map((missingField) => makeTLDSFieldName(formId, missingField));
22919
22807
  const missingAndLinkedFields = addLinkedFields(missingFields);
22920
22808
  return missingAndLinkedFields.includes(makeTLDSFieldName(formId, field));
22921
22809
  };
@@ -23286,7 +23174,8 @@ const BusinessTypeSelection = ({
23286
23174
  handleUpdateLegalEntity,
23287
23175
  taskHistory,
23288
23176
  setTaskHistory,
23289
- onNavigateTo
23177
+ onNavigateTo,
23178
+ baseTrackingPayload
23290
23179
  }) => {
23291
23180
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
23292
23181
  const {
@@ -23339,6 +23228,26 @@ const BusinessTypeSelection = ({
23339
23228
  var _a2, _b2;
23340
23229
  setFormSchema(getFormSchema(((_a2 = data.businessType) == null ? void 0 : _a2.id) === "legalArrangement" && !!data.legalArrangement || currentStep === 1, ((_b2 = data.legalArrangement) == null ? void 0 : _b2.id) === "aTrust"));
23341
23230
  }, [data.businessType, data.legalArrangement, currentStep]);
23231
+ useEffect(() => {
23232
+ userEvents.addPageView("Entity Selection");
23233
+ const startDropOffTrackingEvent = () => {
23234
+ userEvents.addEvent("Started legal entity selection", {
23235
+ segmentation: baseTrackingPayload
23236
+ });
23237
+ };
23238
+ const stopDropOffTrackingEvent = () => {
23239
+ userEvents.addEvent("Drop off at legal entity selection", {
23240
+ segmentation: baseTrackingPayload
23241
+ });
23242
+ };
23243
+ startDropOffTrackingEvent();
23244
+ window.addEventListener("focus", startDropOffTrackingEvent);
23245
+ window.addEventListener("blur", stopDropOffTrackingEvent);
23246
+ return () => {
23247
+ window.removeEventListener("focus", startDropOffTrackingEvent);
23248
+ window.removeEventListener("blur", stopDropOffTrackingEvent);
23249
+ };
23250
+ }, []);
23342
23251
  const handleNextClick = async () => {
23343
23252
  var _a2;
23344
23253
  if (loadingStatus === "loading")
@@ -23370,11 +23279,17 @@ const BusinessTypeSelection = ({
23370
23279
  return;
23371
23280
  }
23372
23281
  await updateLegalEntityAndSelectAccountHolder();
23282
+ userEvents.addEvent("Saved legal entity selection", {
23283
+ segmentation: baseTrackingPayload
23284
+ });
23373
23285
  } else {
23374
23286
  onAccountHolderSelect(newAccountHolder);
23375
23287
  }
23376
23288
  if (isLegalArrangementChanging) {
23377
23289
  await updateLegalEntityAndSelectAccountHolder();
23290
+ userEvents.addEvent("Saved legal entity selection", {
23291
+ segmentation: baseTrackingPayload
23292
+ });
23378
23293
  }
23379
23294
  }
23380
23295
  };
@@ -23615,7 +23530,7 @@ const getTargetLegalEntityType = (businessType, legalArrangement, trusteeType, c
23615
23530
  return currentLegalEntityType;
23616
23531
  };
23617
23532
  const FormWrapper$1 = "";
23618
- const logger$c = createLogger("FormRouterContextProvider");
23533
+ const logger$d = createLogger("FormRouterContextProvider");
23619
23534
  function FormRouterContextProvider({
23620
23535
  children,
23621
23536
  forms: forms2,
@@ -23635,7 +23550,7 @@ function FormRouterContextProvider({
23635
23550
  if (formIndex > -1) {
23636
23551
  setFormIndex(formIndex);
23637
23552
  } else {
23638
- logger$c.error("No form was found to have that field so form navigation failed.");
23553
+ logger$d.error("No form was found to have that field so form navigation failed.");
23639
23554
  }
23640
23555
  }
23641
23556
  }), [forms2, handleGetIdVerificationToken, setFormIndex]);
@@ -23978,7 +23893,7 @@ function CompanyDropinComponent({
23978
23893
  requiredFields,
23979
23894
  isSettingEnabled
23980
23895
  }), [country2, data, taskType, requiredFields, isSettingEnabled]);
23981
- const derivedProps = useMemo(() => getPropsFromConfigurations(fieldConfigurations, companyForms, (problems == null ? void 0 : problems.remediationActions) ? Object.values(problems == null ? void 0 : problems.remediationActions) : [], (problems == null ? void 0 : problems.missingData) ?? [], legalEntityResponse ? getFieldsWithExistingData(legalEntityResponse) : [], fieldsFromCustomRules), [fieldConfigurations, fieldsFromCustomRules, problems == null ? void 0 : problems.remediationActions]);
23896
+ const derivedProps = useMemo(() => getPropsFromConfigurations(fieldConfigurations, companyForms, (problems == null ? void 0 : problems.remediationActions) ? Object.values(problems == null ? void 0 : problems.remediationActions) : [], (problems == null ? void 0 : problems.missingData) ?? [], legalEntityResponse ? getFieldsWithExistingData(legalEntityResponse) : [], country2, fieldsFromCustomRules), [fieldConfigurations, fieldsFromCustomRules, problems == null ? void 0 : problems.remediationActions, country2]);
23982
23897
  const {
23983
23898
  state: {
23984
23899
  currentState
@@ -24239,7 +24154,7 @@ function CompanyDropinComponent({
24239
24154
  }
24240
24155
  const CompanyBasicsComponent$1 = "";
24241
24156
  const CompanyLookupComponent$1 = "";
24242
- const logger$b = createLogger("useCompanySearch");
24157
+ const logger$c = createLogger("useCompanySearch");
24243
24158
  const LOW_RISK_COMPANY_DATA_COMPLIANCE_WINDOW = 1577664e5;
24244
24159
  function useCompanySearch({
24245
24160
  defaultData,
@@ -24378,7 +24293,7 @@ function useCompanySearch({
24378
24293
  state: companyData.state ?? stateOrProvince2
24379
24294
  });
24380
24295
  } catch (e) {
24381
- logger$b.error(e);
24296
+ logger$c.error(e);
24382
24297
  setError(e);
24383
24298
  setStatus("error");
24384
24299
  } finally {
@@ -24411,7 +24326,7 @@ function useCompanySearch({
24411
24326
  indexSearch: handleCompanyIndexSearch,
24412
24327
  deepSearch: handleCompanyDeepSearch,
24413
24328
  resultsLimit: limit
24414
- })) == null ? void 0 : _a.catch((e) => logger$b.error(e));
24329
+ })) == null ? void 0 : _a.catch((e) => logger$c.error(e));
24415
24330
  }
24416
24331
  }, [legalCompanyName2, country2, stateOrProvince2, taxIdentificationNumber2, verifiedCompany, searchCompanies, handleCompanyIndexSearch, handleCompanyDeepSearch, limit, canVerify]);
24417
24332
  useEffect(() => {
@@ -26057,7 +25972,7 @@ const mapLegalEntityToCompanySearchSchema = (legalEntity) => {
26057
25972
  }
26058
25973
  }, {});
26059
25974
  };
26060
- const logger$a = createLogger("useFormTaskSubmit");
25975
+ const logger$b = createLogger("useFormTaskSubmit");
26061
25976
  function useCompanySearchTaskSubmit({
26062
25977
  task,
26063
25978
  forms: forms2,
@@ -26103,7 +26018,7 @@ function useCompanySearchTaskSubmit({
26103
26018
  });
26104
26019
  }
26105
26020
  } catch (e) {
26106
- logger$a.error(e);
26021
+ logger$b.error(e);
26107
26022
  }
26108
26023
  }, [baseTrackingPayload, documentUtils]);
26109
26024
  const submit2 = useCallback(async ({
@@ -26147,7 +26062,7 @@ function useCompanySearchTaskSubmit({
26147
26062
  ...trackingPayload
26148
26063
  }
26149
26064
  });
26150
- logger$a.log(submittedLegalEntity);
26065
+ logger$b.log(submittedLegalEntity);
26151
26066
  setAccountHolder(entityTypeToCorrespondingAccountHolderOption[legalEntityResponse.type]);
26152
26067
  clearToasts();
26153
26068
  onExternalSubmit == null ? void 0 : onExternalSubmit(data);
@@ -26172,7 +26087,7 @@ function useCompanySearchTaskSubmit({
26172
26087
  type: ToastType.ERROR
26173
26088
  });
26174
26089
  }
26175
- logger$a.error(e);
26090
+ logger$b.error(e);
26176
26091
  userEvents.addEvent("Encountered error company details", {
26177
26092
  segmentation: {
26178
26093
  ...baseTrackingPayload,
@@ -26309,7 +26224,7 @@ function CompanySearchComponent(props) {
26309
26224
  heading: i18n.get(forms.companyTaxDocument.formName),
26310
26225
  description: i18n.get(forms.companyTaxDocument.formDescription),
26311
26226
  documentField: "taxDocument",
26312
- documentType: country2 !== "US" ? DocumentType.VAT_DOCUMENT : DocumentType.PROOF_OF_ORGANIZATION_TAX_INFO,
26227
+ documentType: country2 === "US" ? DocumentType.PROOF_OF_ORGANIZATION_TAX_INFO : DocumentType.VAT_DOCUMENT,
26313
26228
  guidanceContent: jsxs(Fragment, {
26314
26229
  children: [jsx("div", {
26315
26230
  className: "adyen-kyc-document-upload__subtitle adl-u-margin-bottom-16",
@@ -26384,11 +26299,11 @@ function CompanySearchDropinComponent({
26384
26299
  } = useExperimentsContext();
26385
26300
  const [loadingStatus, setLoadingStatus] = useState("success");
26386
26301
  const [initialData, setInitialData] = useState(mapLegalEntityToCompanySearchSchema(legalEntityResponse));
26387
- const [problems, setProblems] = useState(propProblems ?? ((_b = (_a = getCapabilityProblems(legalEntityResponse, isExperimentEnabled)) == null ? void 0 : _a.LegalEntity) == null ? void 0 : _b[legalEntityResponse.id]));
26388
26302
  const country2 = useMemo(() => {
26389
26303
  var _a2;
26390
26304
  return ((_a2 = currentState.data.companyBasics) == null ? void 0 : _a2.country) ?? parentCountry;
26391
- }, [(_c = currentState.data.companyBasics) == null ? void 0 : _c.country, parentCountry]);
26305
+ }, [(_a = currentState.data.companyBasics) == null ? void 0 : _a.country, parentCountry]);
26306
+ const [problems, setProblems] = useState(propProblems ?? ((_c = (_b = getCapabilityProblems(legalEntityResponse, country2, isExperimentEnabled)) == null ? void 0 : _b.LegalEntity) == null ? void 0 : _c[legalEntityResponse.id]));
26392
26307
  const documentUtils = documentApiUtils(handleCreateDocument, handleGetDocument, handleUpdateDocument);
26393
26308
  useEffect(() => {
26394
26309
  var _a2;
@@ -26425,7 +26340,7 @@ function CompanySearchDropinComponent({
26425
26340
  taskType
26426
26341
  }), [currentState.data, country2, taskType]);
26427
26342
  const derivedProps = useMemo(() => {
26428
- const props = getPropsFromConfigurations(fieldConfigurations, forms, (problems == null ? void 0 : problems.remediationActions) ? Object.values(problems == null ? void 0 : problems.remediationActions) : [], (problems == null ? void 0 : problems.missingData) ?? [], legalEntityResponse ? getFieldsWithExistingData(legalEntityResponse, isExperimentEnabled) : [], customRules);
26343
+ const props = getPropsFromConfigurations(fieldConfigurations, forms, (problems == null ? void 0 : problems.remediationActions) ? Object.values(problems == null ? void 0 : problems.remediationActions) : [], (problems == null ? void 0 : problems.missingData) ?? [], legalEntityResponse ? getFieldsWithExistingData(legalEntityResponse, isExperimentEnabled) : [], country2, customRules);
26429
26344
  if (props) {
26430
26345
  return entriesOf(props).reduce((acc, [key, value]) => {
26431
26346
  var _a2, _b2;
@@ -26607,7 +26522,7 @@ const useShouldShowBusinessTypeSelection = (accountHolder2) => {
26607
26522
  } = useExperimentsContext();
26608
26523
  return isExperimentEnabled("EnableNewEntryFlow") && !accountHolder2;
26609
26524
  };
26610
- const logger$9 = createLogger("useExemptSettlor");
26525
+ const logger$a = createLogger("useExemptSettlor");
26611
26526
  const useExemptSettlor = ({
26612
26527
  trust: trust2,
26613
26528
  handleGetLegalEntity
@@ -26621,7 +26536,7 @@ const useExemptSettlor = ({
26621
26536
  useEffect(() => {
26622
26537
  if (!trust2)
26623
26538
  return;
26624
- updateExemptSettlor(trust2).catch(logger$9.error);
26539
+ updateExemptSettlor(trust2).catch(logger$a.error);
26625
26540
  }, [trust2, updateExemptSettlor]);
26626
26541
  return exemptSettlor;
26627
26542
  };
@@ -28246,6 +28161,7 @@ const LEGAL_ENTITY_BASE_TASKS = [TaskTypes.INDIVIDUAL, TaskTypes.COMPANY, TaskTy
28246
28161
  const CONTRACT_TASKS = [TaskTypes.SERVICE_AGREEMENT, TaskTypes.PCI_DSS];
28247
28162
  function TaskListComponent({
28248
28163
  tasks,
28164
+ trackingConfig,
28249
28165
  onNavigateToTask,
28250
28166
  legalEntityResponse,
28251
28167
  capabilityProblems,
@@ -28311,6 +28227,17 @@ function TaskListComponent({
28311
28227
  const handleOnNavigateToServiceAgreement = () => onNavigateToTask(TaskTypes.SERVICE_AGREEMENT);
28312
28228
  const companyTaskDescriptionKey = isReview ? "businessAccountDetailsDescriptionReview" : "businessAccountDetailsDescription";
28313
28229
  const payoutTaskDescriptionKey = isReview ? "payoutAccountsDescriptionReview" : "payoutAccountsDescription";
28230
+ const onEditBusinessSetupClick = () => {
28231
+ const baseTrackingPayload = getBaseTrackingPayload({
28232
+ trackingConfig,
28233
+ legalEntity: legalEntityResponse,
28234
+ task: tasks[tasks.length - 1]
28235
+ });
28236
+ userEvents.addEvent("Clicked back to legal entity selection", {
28237
+ segmentation: baseTrackingPayload
28238
+ });
28239
+ onNavigateToTask(TaskTypes.BUSINESS_TYPE_SELECTION);
28240
+ };
28314
28241
  return jsxs("div", {
28315
28242
  children: [canSeeIntroduction && jsx("div", {
28316
28243
  className: "adyen-task-list__nav",
@@ -28339,7 +28266,7 @@ function TaskListComponent({
28339
28266
  icon: "edit",
28340
28267
  ghost: true,
28341
28268
  circle: true,
28342
- onClick: () => onNavigateToTask(TaskTypes.BUSINESS_TYPE_SELECTION),
28269
+ onClick: onEditBusinessSetupClick,
28343
28270
  className: "adl-u-margin-left-4",
28344
28271
  type: "button"
28345
28272
  })]
@@ -28794,9 +28721,8 @@ const omitObscuredFieldsIfUnchanged = (obscuredFields, dataSubmitted, savedData)
28794
28721
  return filtered;
28795
28722
  };
28796
28723
  const parseConfiguration$3 = ({
28797
- country: country2,
28798
28724
  matchingScenario
28799
- }) => parseIndividualScenarios(matchingScenario == null ? void 0 : matchingScenario[LegalEntityType.INDIVIDUAL], country2);
28725
+ }) => parseIndividualScenarios(matchingScenario == null ? void 0 : matchingScenario[LegalEntityType.INDIVIDUAL]);
28800
28726
  function IndividualDropinComponent({
28801
28727
  handleCreateDocument,
28802
28728
  handleGetDocument,
@@ -28888,7 +28814,7 @@ function IndividualDropinComponent({
28888
28814
  taskType,
28889
28815
  isEmbeddedDropin
28890
28816
  }), [country2, data, taskType]);
28891
- const derivedProps = useMemo(() => getPropsFromConfigurations(fieldConfigurations, individualForms, (problems == null ? void 0 : problems.remediationActions) ? Object.values(problems == null ? void 0 : problems.remediationActions) : [], (problems == null ? void 0 : problems.missingData) ?? [], legalEntityResponse ? getFieldsWithExistingData(legalEntityResponse) : [], fieldsFromCustomRules), [fieldConfigurations, fieldsFromCustomRules, problems == null ? void 0 : problems.remediationActions]);
28817
+ const derivedProps = useMemo(() => getPropsFromConfigurations(fieldConfigurations, individualForms, (problems == null ? void 0 : problems.remediationActions) ? Object.values(problems == null ? void 0 : problems.remediationActions) : [], (problems == null ? void 0 : problems.missingData) ?? [], legalEntityResponse ? getFieldsWithExistingData(legalEntityResponse) : [], country2, fieldsFromCustomRules), [fieldConfigurations, fieldsFromCustomRules, problems == null ? void 0 : problems.remediationActions]);
28892
28818
  const {
28893
28819
  state: {
28894
28820
  currentState
@@ -29302,6 +29228,14 @@ const useBankConfigurationHandlers = ({
29302
29228
  getBankVerificationVendorsHandler
29303
29229
  };
29304
29230
  };
29231
+ const accountFormatsImports = /* @__PURE__ */ Object.assign({ "./AD.json": () => import("./AD-670c62c0.mjs"), "./AE.json": () => import("./AE-24bbc749.mjs"), "./AI.json": () => import("./AI-2f8eb3e4.mjs"), "./AL.json": () => import("./AL-dee818f3.mjs"), "./AR.json": () => import("./AR-ddb2f621.mjs"), "./AS.json": () => import("./AS-d857591e.mjs"), "./AT.json": () => import("./AT-0d286d50.mjs"), "./AU.json": () => import("./AU-e3d4ecff.mjs"), "./AX.json": () => import("./AX-acf0cb07.mjs"), "./AZ.json": () => import("./AZ-febcbba9.mjs"), "./BA.json": () => import("./BA-36553325.mjs"), "./BE.json": () => import("./BE-01b309e9.mjs"), "./BG.json": () => import("./BG-b141efc4.mjs"), "./BH.json": () => import("./BH-4252606c.mjs"), "./BM.json": () => import("./BM-9d017537.mjs"), "./BR.json": () => import("./BR-afb9b585.mjs"), "./BS.json": () => import("./BS-71942f8a.mjs"), "./BV.json": () => import("./BV-7c089d21.mjs"), "./BY.json": () => import("./BY-b3362481.mjs"), "./CA.json": () => import("./CA-75a34c71.mjs"), "./CH.json": () => import("./CH-b8cf24c1.mjs"), "./CN.json": () => import("./CN-ebbef145.mjs"), "./CR.json": () => import("./CR-8bf65073.mjs"), "./CY.json": () => import("./CY-3e2ed850.mjs"), "./CZ.json": () => import("./CZ-7ac97b54.mjs"), "./DE.json": () => import("./DE-2322162a.mjs"), "./DK.json": () => import("./DK-7cebcff6.mjs"), "./DO.json": () => import("./DO-bfe9604e.mjs"), "./EC.json": () => import("./EC-3ab33540.mjs"), "./EE.json": () => import("./EE-cbb695a1.mjs"), "./ES.json": () => import("./ES-094cb641.mjs"), "./FI.json": () => import("./FI-a1653669.mjs"), "./FJ.json": () => import("./FJ-3b91f5c9.mjs"), "./FO.json": () => import("./FO-f647fb1e.mjs"), "./FR.json": () => import("./FR-ea366f1a.mjs"), "./GB.json": () => import("./GB-a45c6caa.mjs"), "./GE.json": () => import("./GE-ac5fdc42.mjs"), "./GF.json": () => import("./GF-6273f16b.mjs"), "./GG.json": () => import("./GG-bad391fd.mjs"), "./GI.json": () => import("./GI-757caa3a.mjs"), "./GL.json": () => import("./GL-226ffa9f.mjs"), "./GP.json": () => import("./GP-473e593a.mjs"), "./GR.json": () => import("./GR-3bcff231.mjs"), "./GT.json": () => import("./GT-db5da0a4.mjs"), "./GU.json": () => import("./GU-ca4f557c.mjs"), "./HK.json": () => import("./HK-40526878.mjs"), "./HR.json": () => import("./HR-29a95014.mjs"), "./HU.json": () => import("./HU-80af7974.mjs"), "./ID.json": () => import("./ID-506578fe.mjs"), "./IE.json": () => import("./IE-32cbd0f3.mjs"), "./IL.json": () => import("./IL-373dafad.mjs"), "./IM.json": () => import("./IM-891b32c5.mjs"), "./IN.json": () => import("./IN-bec55b74.mjs"), "./IS.json": () => import("./IS-3a5d33d3.mjs"), "./IT.json": () => import("./IT-4ff08cfe.mjs"), "./JE.json": () => import("./JE-307987ba.mjs"), "./JM.json": () => import("./JM-3ce8fbab.mjs"), "./JO.json": () => import("./JO-42a19672.mjs"), "./JP.json": () => import("./JP-0077f7b5.mjs"), "./KR.json": () => import("./KR-95fa1426.mjs"), "./KW.json": () => import("./KW-a98f9b4c.mjs"), "./KY.json": () => import("./KY-1aaca646.mjs"), "./KZ.json": () => import("./KZ-7daadd7e.mjs"), "./LB.json": () => import("./LB-1c59787b.mjs"), "./LI.json": () => import("./LI-77d06f2d.mjs"), "./LT.json": () => import("./LT-f3ad2e3e.mjs"), "./LU.json": () => import("./LU-e8eedd03.mjs"), "./LV.json": () => import("./LV-6971017f.mjs"), "./MC.json": () => import("./MC-ee5965bb.mjs"), "./MD.json": () => import("./MD-8041437f.mjs"), "./ME.json": () => import("./ME-d9f4c3da.mjs"), "./MK.json": () => import("./MK-8c45a314.mjs"), "./MP.json": () => import("./MP-093ac455.mjs"), "./MQ.json": () => import("./MQ-f9c253cc.mjs"), "./MR.json": () => import("./MR-2f01df5c.mjs"), "./MT.json": () => import("./MT-32167278.mjs"), "./MU.json": () => import("./MU-e04facaa.mjs"), "./MX.json": () => import("./MX-1d1a9644.mjs"), "./MY.json": () => import("./MY-392e074a.mjs"), "./NC.json": () => import("./NC-3b4b0260.mjs"), "./NL.json": () => import("./NL-b9bcb702.mjs"), "./NO.json": () => import("./NO-6809e6fd.mjs"), "./NZ.json": () => import("./NZ-ccf0ea48.mjs"), "./PE.json": () => import("./PE-0c1072d7.mjs"), "./PF.json": () => import("./PF-fb6bd5d0.mjs"), "./PH.json": () => import("./PH-8ef2049d.mjs"), "./PK.json": () => import("./PK-a445458d.mjs"), "./PL.json": () => import("./PL-620a9ca4.mjs"), "./PM.json": () => import("./PM-d4c0464a.mjs"), "./PR.json": () => import("./PR-ad22b592.mjs"), "./PS.json": () => import("./PS-cabe03e5.mjs"), "./PT.json": () => import("./PT-33451f8d.mjs"), "./QA.json": () => import("./QA-3d255e2d.mjs"), "./RE.json": () => import("./RE-8b1c7cc1.mjs"), "./RO.json": () => import("./RO-2bfa665c.mjs"), "./RS.json": () => import("./RS-3347a703.mjs"), "./RU.json": () => import("./RU-e3e01124.mjs"), "./SA.json": () => import("./SA-91a0ead5.mjs"), "./SE.json": () => import("./SE-cb13f129.mjs"), "./SG.json": () => import("./SG-6086848e.mjs"), "./SI.json": () => import("./SI-2865f1da.mjs"), "./SJ.json": () => import("./SJ-598eb05e.mjs"), "./SK.json": () => import("./SK-95af17ba.mjs"), "./SM.json": () => import("./SM-4dd69f38.mjs"), "./TF.json": () => import("./TF-ea5a687e.mjs"), "./TH.json": () => import("./TH-567ec66c.mjs"), "./TL.json": () => import("./TL-9c45dea1.mjs"), "./TN.json": () => import("./TN-40f39700.mjs"), "./TR.json": () => import("./TR-17aaedbd.mjs"), "./TT.json": () => import("./TT-80575a0d.mjs"), "./TW.json": () => import("./TW-8104c581.mjs"), "./UA.json": () => import("./UA-9a09a2fe.mjs"), "./US.json": () => import("./US-48190122.mjs"), "./UY.json": () => import("./UY-ede97218.mjs"), "./VA.json": () => import("./VA-193042b9.mjs"), "./VG.json": () => import("./VG-71c752e9.mjs"), "./VI.json": () => import("./VI-caa740af.mjs"), "./VN.json": () => import("./VN-5a6450ab.mjs"), "./WF.json": () => import("./WF-6ee9803f.mjs"), "./YT.json": () => import("./YT-e12497c8.mjs"), "./ZA.json": () => import("./ZA-77011c5b.mjs") });
29232
+ const getAccountFormatsForCountry = async (country2) => {
29233
+ const importForCountry = accountFormatsImports[`./${country2}.json`];
29234
+ if (!importForCountry) {
29235
+ throw Error(`No account formats available for ${country2}`);
29236
+ }
29237
+ return (await importForCountry()).default;
29238
+ };
29305
29239
  const isInstantVerificationAvailable = ({
29306
29240
  country: country2,
29307
29241
  verificationVendorsCallback,
@@ -29412,8 +29346,7 @@ function PayoutDetailsDropinComponent({
29412
29346
  isSettingEnabled
29413
29347
  } = useSettingsContext();
29414
29348
  const {
29415
- getConfiguration: getConfiguration2,
29416
- getPayoutAccountFormat: getPayoutAccountFormat2
29349
+ getConfiguration: getConfiguration2
29417
29350
  } = useConfigurationApi();
29418
29351
  const defaultPayoutCountry = getRegistrationCountry(legalEntityResponse);
29419
29352
  const [bankAccountCountry2, setBankAccountCountry] = useState(defaultPayoutCountry);
@@ -29450,7 +29383,7 @@ function PayoutDetailsDropinComponent({
29450
29383
  const [hideBackButton, setHideBackButton] = useState(false);
29451
29384
  const [loadingStatus, setLoadingStatus] = useState("success");
29452
29385
  const [data, setData] = useState(prefilledData);
29453
- const [problems, setProblems] = useState(propProblems || ((transferInstrument == null ? void 0 : transferInstrument.id) ? (_c = (_b = getCapabilityProblems(legalEntityResponse)) == null ? void 0 : _b.BankAccount) == null ? void 0 : _c[transferInstrument.id] : void 0));
29386
+ const [problems, setProblems] = useState(propProblems || ((transferInstrument == null ? void 0 : transferInstrument.id) ? (_c = (_b = getCapabilityProblems(legalEntityResponse, bankAccountCountry2)) == null ? void 0 : _b.BankAccount) == null ? void 0 : _c[transferInstrument.id] : void 0));
29454
29387
  const existingBankAccountFormat = transferInstrument ? ((_d = existingPayoutDetails == null ? void 0 : existingPayoutDetails.payoutAccountDetails) == null ? void 0 : _d.iban) ? "iban" : "local" : void 0;
29455
29388
  const baseTrackingPayload = getBaseTrackingPayload({
29456
29389
  trackingConfig,
@@ -29476,7 +29409,7 @@ function PayoutDetailsDropinComponent({
29476
29409
  legalEntityType: legalEntityResponse.type,
29477
29410
  capabilities
29478
29411
  });
29479
- const getPayoutAccountFormatData = useCallback(async () => getPayoutAccountFormat2(bankAccountCountry2 ?? defaultPayoutCountry), [bankAccountCountry2]);
29412
+ const getPayoutAccountFormatData = useCallback(async () => getAccountFormatsForCountry(bankAccountCountry2 ?? defaultPayoutCountry), [bankAccountCountry2]);
29480
29413
  const {
29481
29414
  fieldConfigurations,
29482
29415
  requiredFields,
@@ -29505,7 +29438,7 @@ function PayoutDetailsDropinComponent({
29505
29438
  verificationVendorsCallback: handleGetBankVerificationVendors
29506
29439
  }), isSettingEnabled(SettingNames.AllowIntraRegionCrossBorderPayout), isExperimentEnabled("EnableNewEntryFlow"));
29507
29440
  }, [bankVerificationVendors]);
29508
- const derivedProps = useMemo(() => getPropsFromConfigurations(fieldConfigurations, payoutDetailsSteps, (problems == null ? void 0 : problems.remediationActions) ? Object.values(problems == null ? void 0 : problems.remediationActions) : [], (problems == null ? void 0 : problems.missingData) ?? [], [], fieldsFromCustomRules, fieldsFormCustomLabels), [fieldConfigurations, fieldsFromCustomRules, problems == null ? void 0 : problems.remediationActions]);
29441
+ const derivedProps = useMemo(() => getPropsFromConfigurations(fieldConfigurations, payoutDetailsSteps, (problems == null ? void 0 : problems.remediationActions) ? Object.values(problems == null ? void 0 : problems.remediationActions) : [], (problems == null ? void 0 : problems.missingData) ?? [], [], bankAccountCountry2, fieldsFromCustomRules, fieldsFormCustomLabels), [fieldConfigurations, fieldsFromCustomRules, problems == null ? void 0 : problems.remediationActions]);
29509
29442
  const {
29510
29443
  state: {
29511
29444
  currentState
@@ -29589,7 +29522,7 @@ function PayoutDetailsDropinComponent({
29589
29522
  if (payoutAccountDetails) {
29590
29523
  payoutAccountDetails.currency = payoutAccountDetails.currency ?? fallbackCurrency;
29591
29524
  if (defaultPayoutCountry === CountryCodes.Sweden && "iban" in payoutAccountDetails) {
29592
- payoutAccountDetails.currency = Currency.EUR;
29525
+ payoutAccountDetails.currency = Currencies.EUR;
29593
29526
  }
29594
29527
  dataSubmitted.payoutAccountDetails = omitObscuredFieldsIfUnchanged(obscuredPayoutFields, payoutAccountDetails, existingPayoutDetails == null ? void 0 : existingPayoutDetails.payoutAccountDetails);
29595
29528
  }
@@ -30670,7 +30603,7 @@ const serviceAgreementValidationRules = {
30670
30603
  errorMessage: "fieldIsRequired"
30671
30604
  }
30672
30605
  };
30673
- const logger$8 = createLogger("useServiceAgreement");
30606
+ const logger$9 = createLogger("useServiceAgreement");
30674
30607
  const FALLBACK_LANGUAGE_CODE = "en";
30675
30608
  const useServiceAgreement = ({
30676
30609
  handleGetServiceAgreement,
@@ -30699,7 +30632,7 @@ const useServiceAgreement = ({
30699
30632
  language: agreementLanguage
30700
30633
  });
30701
30634
  if (!document2) {
30702
- logger$8.log('"document" field was missing in response');
30635
+ logger$9.log('"document" field was missing in response');
30703
30636
  return;
30704
30637
  }
30705
30638
  const contract = JSON.parse(decodeURIComponent(escape(window.atob(document2))));
@@ -30717,7 +30650,7 @@ const useServiceAgreement = ({
30717
30650
  throw err;
30718
30651
  }
30719
30652
  };
30720
- requestServiceAgreement().catch(logger$8.error);
30653
+ requestServiceAgreement().catch(logger$9.error);
30721
30654
  }, [handleGetServiceAgreement, handleServiceAgreementIsNotAvailableInThatLanguage, agreementLanguage, legalEntityId, serviceAgreementType]);
30722
30655
  return {
30723
30656
  loading: loading2,
@@ -31075,7 +31008,7 @@ function SolePropDropinComponent({
31075
31008
  requiredFields,
31076
31009
  isSettingEnabled
31077
31010
  }), [country2, data, taskType, requiredFields, isSettingEnabled]);
31078
- const derivedProps = useMemo(() => getPropsFromConfigurations(fieldConfigurations, solePropForms, (problems == null ? void 0 : problems.remediationActions) ? Object.values(problems == null ? void 0 : problems.remediationActions) : [], (problems == null ? void 0 : problems.missingData) ?? [], legalEntityResponse ? getFieldsWithExistingData(legalEntityResponse) : [], fieldsFromCustomRules), [fieldConfigurations, fieldsFromCustomRules, problems == null ? void 0 : problems.remediationActions]);
31011
+ const derivedProps = useMemo(() => getPropsFromConfigurations(fieldConfigurations, solePropForms, (problems == null ? void 0 : problems.remediationActions) ? Object.values(problems == null ? void 0 : problems.remediationActions) : [], (problems == null ? void 0 : problems.missingData) ?? [], legalEntityResponse ? getFieldsWithExistingData(legalEntityResponse) : [], country2, fieldsFromCustomRules), [fieldConfigurations, fieldsFromCustomRules, problems == null ? void 0 : problems.remediationActions, country2]);
31079
31012
  const {
31080
31013
  state: {
31081
31014
  currentState
@@ -31358,7 +31291,7 @@ function TrustDropinComponent({
31358
31291
  requiredFields,
31359
31292
  isSettingEnabled
31360
31293
  }), [country2, data, taskType, requiredFields, isSettingEnabled]);
31361
- const derivedProps = useMemo(() => getPropsFromConfigurations(fieldConfigurations, trustForms, (problems == null ? void 0 : problems.remediationActions) ? Object.values(problems == null ? void 0 : problems.remediationActions) : [], (problems == null ? void 0 : problems.missingData) ?? [], legalEntityResponse ? getFieldsWithExistingData(legalEntityResponse) : [], fieldsFromCustomRules), [fieldConfigurations, fieldsFromCustomRules, problems == null ? void 0 : problems.remediationActions]);
31294
+ const derivedProps = useMemo(() => getPropsFromConfigurations(fieldConfigurations, trustForms, (problems == null ? void 0 : problems.remediationActions) ? Object.values(problems == null ? void 0 : problems.remediationActions) : [], (problems == null ? void 0 : problems.missingData) ?? [], legalEntityResponse ? getFieldsWithExistingData(legalEntityResponse) : [], country2, fieldsFromCustomRules), [fieldConfigurations, fieldsFromCustomRules, problems == null ? void 0 : problems.remediationActions, country2]);
31362
31295
  const {
31363
31296
  state: {
31364
31297
  currentState
@@ -31557,7 +31490,7 @@ function TrustDropinComponent({
31557
31490
  }
31558
31491
  const PAGES_WITH_POLLING = [TaskTypes.DECISION_MAKER_OVERVIEW, TaskTypes.TASKS_OVERVIEW];
31559
31492
  const POLLING_INTERVAL = 3e3;
31560
- const logger$7 = createLogger("DropinComposerComponent");
31493
+ const logger$8 = createLogger("DropinComposerComponent");
31561
31494
  const isOrganizationSettlorWithExemptionReasonEnabled = (enabled, country2) => country2 === CountryCodes.Australia && enabled;
31562
31495
  function DropinComposerComponent({
31563
31496
  capabilities,
@@ -31623,9 +31556,9 @@ function DropinComposerComponent({
31623
31556
  const [serviceAgreementTypes, setServiceAgreementTypes] = useState([]);
31624
31557
  const [serviceAgreementAcceptanceInfos, setServiceAgreementAcceptanceInfos] = useState([]);
31625
31558
  const [transferInstrument, setTransferInstrument] = useState(null);
31626
- const [capabilityProblems, setCapabilityProblems] = useState(getCapabilityProblems(legalEntityResponse, isExperimentEnabled));
31627
- const [bankVerificationVendors, setBankVerificationVendors] = useState();
31628
31559
  const rootLegalEntityCountry = rootLegalEntity.type === LegalEntityType.INDIVIDUAL ? (_a = rootLegalEntity.individual.residentialAddress) == null ? void 0 : _a.country : (_b = rootLegalEntity.organization.registeredAddress) == null ? void 0 : _b.country;
31560
+ const [capabilityProblems, setCapabilityProblems] = useState(getCapabilityProblems(legalEntityResponse, rootLegalEntityCountry, isExperimentEnabled));
31561
+ const [bankVerificationVendors, setBankVerificationVendors] = useState();
31629
31562
  const hasTrust = accountHolder2 === "aTrust" || isPartOfTrustFromLegalEntity(legalEntityResponse);
31630
31563
  const reviewRequired = (rootLegalEntity == null ? void 0 : rootLegalEntity.id) && ((_d = (_c = capabilityProblems == null ? void 0 : capabilityProblems.LegalEntity) == null ? void 0 : _c[rootLegalEntity.id]) == null ? void 0 : _d.isReviewRequired);
31631
31564
  const additionalSalesChannels = useSalesChannelsSettings();
@@ -31649,7 +31582,7 @@ function DropinComposerComponent({
31649
31582
  setPciStatus(response);
31650
31583
  return response;
31651
31584
  } catch (e) {
31652
- logger$7.warn(i18n.get("failedToGetPciStatus"));
31585
+ logger$8.warn(i18n.get("failedToGetPciStatus"));
31653
31586
  }
31654
31587
  }
31655
31588
  return void 0;
@@ -31678,7 +31611,7 @@ function DropinComposerComponent({
31678
31611
  useEffect(() => {
31679
31612
  if (!tasks.includes(TaskTypes.PCI_DSS))
31680
31613
  return;
31681
- getPciTemplate().catch(logger$7.error);
31614
+ getPciTemplate().catch(logger$8.error);
31682
31615
  }, [getPciTemplate, tasks]);
31683
31616
  const getServiceAgreementAcceptanceInfos = async () => {
31684
31617
  if (rootLegalEntity.id && (args == null ? void 0 : args.handleGetServiceAgreementAcceptanceInfos)) {
@@ -31686,7 +31619,7 @@ function DropinComposerComponent({
31686
31619
  const response = await args.handleGetServiceAgreementAcceptanceInfos(rootLegalEntity.id);
31687
31620
  setServiceAgreementAcceptanceInfos(response.data);
31688
31621
  } catch (e) {
31689
- logger$7.warn(i18n.get("failedToGetServiceAgreementStatus"));
31622
+ logger$8.warn(i18n.get("failedToGetServiceAgreementStatus"));
31690
31623
  }
31691
31624
  }
31692
31625
  };
@@ -31696,7 +31629,7 @@ function DropinComposerComponent({
31696
31629
  const response = await args.handleGetServiceAgreementStatus(rootLegalEntity.id);
31697
31630
  setServiceAgreementTypes(response.termsOfServiceTypes);
31698
31631
  } catch (e) {
31699
- logger$7.warn(i18n.get("failedToGetServiceAgreementStatus"));
31632
+ logger$8.warn(i18n.get("failedToGetServiceAgreementStatus"));
31700
31633
  }
31701
31634
  }
31702
31635
  };
@@ -31732,10 +31665,10 @@ function DropinComposerComponent({
31732
31665
  try {
31733
31666
  const response = await (args == null ? void 0 : args.handleGetLegalEntity(rootLegalEntity.id));
31734
31667
  setRootLegalEntity(response);
31735
- setCapabilityProblems(getCapabilityProblems(response));
31668
+ setCapabilityProblems(getCapabilityProblems(response, rootLegalEntityCountry, isExperimentEnabled));
31736
31669
  return response;
31737
31670
  } catch (e) {
31738
- logger$7.warn(i18n.get("failedToFetchLegalEntityDetails"));
31671
+ logger$8.warn(i18n.get("failedToFetchLegalEntityDetails"));
31739
31672
  }
31740
31673
  }
31741
31674
  return void 0;
@@ -31747,7 +31680,7 @@ function DropinComposerComponent({
31747
31680
  setTrust(response);
31748
31681
  return response;
31749
31682
  } catch (e) {
31750
- logger$7.warn(i18n.get("failedToFetchTrustDetails"));
31683
+ logger$8.warn(i18n.get("failedToFetchTrustDetails"));
31751
31684
  }
31752
31685
  }
31753
31686
  return void 0;
@@ -31797,7 +31730,7 @@ function DropinComposerComponent({
31797
31730
  label: i18n.get("successFullyRemovedTrustMember")
31798
31731
  });
31799
31732
  } catch (err) {
31800
- logger$7.error(`Failed to delete trust member`, err);
31733
+ logger$8.error(`Failed to delete trust member`, err);
31801
31734
  showToast({
31802
31735
  type: ToastType.ERROR,
31803
31736
  label: i18n.get("failedToRemoveTrustMember")
@@ -31867,7 +31800,7 @@ function DropinComposerComponent({
31867
31800
  }
31868
31801
  break;
31869
31802
  default:
31870
- logger$7.warn(`Updating trust member type "${trustMember.trustMemberType}" is not implemented.`);
31803
+ logger$8.warn(`Updating trust member type "${trustMember.trustMemberType}" is not implemented.`);
31871
31804
  }
31872
31805
  showToast({
31873
31806
  label: i18n.get("successfullyUpdatedDetails"),
@@ -31875,7 +31808,7 @@ function DropinComposerComponent({
31875
31808
  });
31876
31809
  await refreshTrustAndRunOnSubmit(trust2, 1);
31877
31810
  } catch (err) {
31878
- logger$7.error(err);
31811
+ logger$8.error(err);
31879
31812
  showToast({
31880
31813
  label: i18n.get("failedToUpdateDetails"),
31881
31814
  type: ToastType.ERROR
@@ -32098,7 +32031,7 @@ function DropinComposerComponent({
32098
32031
  }
32099
32032
  };
32100
32033
  setIsLoadingConfiguration(true);
32101
- fetchConfiguration().catch(logger$7.error).finally(() => {
32034
+ fetchConfiguration().catch(logger$8.error).finally(() => {
32102
32035
  setIsLoadingConfiguration(false);
32103
32036
  onLoad();
32104
32037
  });
@@ -32117,7 +32050,7 @@ function DropinComposerComponent({
32117
32050
  return;
32118
32051
  }
32119
32052
  const timeoutId = setTimeout(() => {
32120
- refreshLegalEntity().catch(logger$7.error);
32053
+ refreshLegalEntity().catch(logger$8.error);
32121
32054
  }, POLLING_INTERVAL);
32122
32055
  return () => {
32123
32056
  clearInterval(timeoutId);
@@ -32144,7 +32077,11 @@ function DropinComposerComponent({
32144
32077
  },
32145
32078
  taskHistory,
32146
32079
  setTaskHistory,
32147
- onNavigateTo
32080
+ onNavigateTo,
32081
+ trackingConfig: {
32082
+ topLevelLegalEntity: legalEntityResponse
32083
+ },
32084
+ eventEmitter
32148
32085
  })
32149
32086
  });
32150
32087
  case TaskTypes.INTRODUCTION:
@@ -32160,6 +32097,9 @@ function DropinComposerComponent({
32160
32097
  return jsx(AccountSetupRejected, {});
32161
32098
  case TaskTypes.TASKS_OVERVIEW:
32162
32099
  return jsx(TaskListComponent, {
32100
+ trackingConfig: {
32101
+ topLevelLegalEntity: legalEntityResponse
32102
+ },
32163
32103
  onNavigateToTask: navigateTo,
32164
32104
  tasks,
32165
32105
  legalEntityResponse: rootLegalEntity,
@@ -32746,6 +32686,22 @@ const createTrustedTransferInstrument = async (context, code2, state2) => {
32746
32686
  state: state2
32747
32687
  });
32748
32688
  };
32689
+ const generateOnboardingLink = async (context, config) => {
32690
+ const {
32691
+ loadingContext,
32692
+ legalEntityId
32693
+ } = context;
32694
+ return httpPost({
32695
+ loadingContext,
32696
+ errorLevel: "warn",
32697
+ errorMessage: `Fetching onboarding link was not successful`,
32698
+ path: `${legalEntityId}/onboardingStatus`,
32699
+ authentication: "jwt",
32700
+ headers: {
32701
+ "Content-Type": "application/json"
32702
+ }
32703
+ }, config);
32704
+ };
32749
32705
  const getAddress = async (context, addressId) => {
32750
32706
  const {
32751
32707
  loadingContext,
@@ -32778,6 +32734,22 @@ const getIdverificationToken = async (context, request) => {
32778
32734
  }
32779
32735
  }, request);
32780
32736
  };
32737
+ const getOnboardingStatus = async (context) => {
32738
+ const {
32739
+ loadingContext,
32740
+ legalEntityId
32741
+ } = context;
32742
+ return httpGet({
32743
+ loadingContext,
32744
+ errorLevel: "warn",
32745
+ errorMessage: `Fetching onboarding status was not successful`,
32746
+ path: `${legalEntityId}/onboardingStatus`,
32747
+ authentication: "jwt",
32748
+ headers: {
32749
+ "Content-Type": "application/json"
32750
+ }
32751
+ });
32752
+ };
32781
32753
  const handleBankVerificationError = async (context, errorCode, errorMessage, state2, metadata) => {
32782
32754
  const {
32783
32755
  loadingContext,
@@ -32873,7 +32845,9 @@ const useComponentApi = (rootLegalEntityId) => {
32873
32845
  searchAddress: async (address2) => searchAddress(baseRequestContext, address2),
32874
32846
  getAddress: async (address2) => getAddress(baseRequestContext, address2),
32875
32847
  getIdVerificationToken: async (legalEntityId, data) => getIdverificationToken(baseRequestContext, data),
32876
- idVerificationStartCheck: async (legalEntityId, data) => idVerificationStartcheck(baseRequestContext, data)
32848
+ idVerificationStartCheck: async (legalEntityId, data) => idVerificationStartcheck(baseRequestContext, data),
32849
+ getOnboardingStatus: async () => getOnboardingStatus(baseRequestContext),
32850
+ generateOnboardingLink: async (config) => generateOnboardingLink(baseRequestContext, config)
32877
32851
  };
32878
32852
  }, [base, rootLegalEntityId]);
32879
32853
  };
@@ -32896,7 +32870,7 @@ class EventEmitter {
32896
32870
  };
32897
32871
  }
32898
32872
  }
32899
- const logger$6 = createLogger("CreateIndividualComponent");
32873
+ const logger$7 = createLogger("CreateIndividualComponent");
32900
32874
  function CreateIndividualComponent({
32901
32875
  parentLegalEntityId,
32902
32876
  legalEntityId,
@@ -32929,13 +32903,13 @@ function CreateIndividualComponent({
32929
32903
  setParentLegalEntity(parentEntity);
32930
32904
  setLegalEntity(entity);
32931
32905
  } catch (error) {
32932
- logger$6.error(error);
32906
+ logger$7.error(error);
32933
32907
  } finally {
32934
32908
  setLoadingStatus("success");
32935
32909
  }
32936
32910
  }, [parentLegalEntityId, legalEntityId, getLegalEntity2]);
32937
32911
  useEffect(() => {
32938
- fetchLegalEntity().catch(logger$6.error);
32912
+ fetchLegalEntity().catch(logger$7.error);
32939
32913
  }, [fetchLegalEntity]);
32940
32914
  return loadingStatus === "loading" ? jsx(Loader, {
32941
32915
  size: "medium"
@@ -32958,7 +32932,7 @@ function CreateIndividualComponent({
32958
32932
  taskType
32959
32933
  });
32960
32934
  }
32961
- const logger$5 = createLogger("CreateTransferInstrumentComponent");
32935
+ const logger$6 = createLogger("CreateTransferInstrumentComponent");
32962
32936
  function CreateTransferInstrumentComponent({
32963
32937
  legalEntityId,
32964
32938
  transferInstrumentId,
@@ -32993,7 +32967,7 @@ function CreateTransferInstrumentComponent({
32993
32967
  const ti = await getTransferInstrument2(transferInstrumentId);
32994
32968
  setTransferInstrument(ti);
32995
32969
  }
32996
- })().catch(logger$5.error);
32970
+ })().catch(logger$6.error);
32997
32971
  }, [transferInstrumentId, fetchLegalEntity]);
32998
32972
  return legalEntity ? jsx(PayoutDetailsDropinComponent, {
32999
32973
  eventEmitter: eventEmitter ?? new EventEmitter(),
@@ -33014,6 +32988,190 @@ function CreateTransferInstrumentComponent({
33014
32988
  taskType: TaskTypes.PAYOUT
33015
32989
  }) : null;
33016
32990
  }
32991
+ const OnboardingRedirectComponent$1 = "";
32992
+ var OnboardingStatus = /* @__PURE__ */ ((OnboardingStatus2) => {
32993
+ OnboardingStatus2["INCOMPLETE"] = "INCOMPLETE";
32994
+ OnboardingStatus2["PROCESSING"] = "PROCESSING";
32995
+ OnboardingStatus2["ERROR"] = "ERROR";
32996
+ OnboardingStatus2["FINISHED"] = "FINISHED";
32997
+ return OnboardingStatus2;
32998
+ })(OnboardingStatus || {});
32999
+ const contentMap = {
33000
+ [OnboardingStatus.INCOMPLETE]: {
33001
+ header: "onboardingRedirectInitialHeader",
33002
+ description: ["onboardingRedirectInitialDescriptionP1"],
33003
+ ctaButton: "onboardingRedirectInitialCtaButton"
33004
+ },
33005
+ [OnboardingStatus.PROCESSING]: {
33006
+ header: "onboardingRedirectInProgressHeader",
33007
+ description: ["onboardingRedirectInProgressDescriptionP1"],
33008
+ ctaButton: "onboardingRedirectInProgressCtaButton"
33009
+ },
33010
+ [OnboardingStatus.ERROR]: {
33011
+ header: "onboardingRedirectErrorsHeader",
33012
+ description: ["onboardingRedirectErrorsDescriptionP1", "onboardingRedirectErrorsDescriptionP2"],
33013
+ ctaButton: "onboardingRedirectErrorsCtaButton"
33014
+ },
33015
+ [OnboardingStatus.FINISHED]: {
33016
+ header: "onboardingRedirectFinishedHeader",
33017
+ description: ["onboardingRedirectFinishedDescriptionP1"],
33018
+ ctaButton: "onboardingRedirectFinishedCtaButton"
33019
+ }
33020
+ };
33021
+ function getContentByStatus(status) {
33022
+ return contentMap[status];
33023
+ }
33024
+ const logger$5 = createLogger("OnboardingRedirectComponent");
33025
+ function OnboardingRedirectComponent({
33026
+ legalEntityId,
33027
+ returnUrl,
33028
+ onStatusChange,
33029
+ onError,
33030
+ onRedirect,
33031
+ eventEmitter
33032
+ }) {
33033
+ if (!legalEntityId) {
33034
+ throw new Error("legalEntityId argument is required!");
33035
+ }
33036
+ const {
33037
+ i18n,
33038
+ setLocale
33039
+ } = useI18nContext();
33040
+ const {
33041
+ getOnboardingStatus: getOnboardingStatus2,
33042
+ generateOnboardingLink: generateOnboardingLink2
33043
+ } = useComponentApi(legalEntityId);
33044
+ const [onboardingStatus, setOnboardingStatus] = useState();
33045
+ const [alertContent, setAlertContent] = useState();
33046
+ const content = useMemo(() => {
33047
+ if (!onboardingStatus)
33048
+ return;
33049
+ const statusContent = getContentByStatus(onboardingStatus);
33050
+ if (statusContent)
33051
+ return statusContent;
33052
+ logger$5.error(`there is no content for status "${onboardingStatus}"`);
33053
+ }, [onboardingStatus]);
33054
+ const handleError = ({
33055
+ trKey,
33056
+ error
33057
+ }) => {
33058
+ if (trKey) {
33059
+ setAlertContent(trKey);
33060
+ }
33061
+ if (error) {
33062
+ logger$5.error(error);
33063
+ }
33064
+ if (typeof onError === "function") {
33065
+ const userMessage = trKey ? i18n.get(trKey) : "";
33066
+ onError({
33067
+ error: error || {
33068
+ message: userMessage
33069
+ },
33070
+ userMessage
33071
+ });
33072
+ }
33073
+ };
33074
+ useEffect(() => {
33075
+ setAlertContent("");
33076
+ (async () => {
33077
+ try {
33078
+ const {
33079
+ status
33080
+ } = await getOnboardingStatus2();
33081
+ setOnboardingStatus(status);
33082
+ if (typeof onStatusChange === "function") {
33083
+ onStatusChange(status);
33084
+ }
33085
+ } catch (error) {
33086
+ handleError({
33087
+ trKey: "onboardingRedirectLinkError",
33088
+ error
33089
+ });
33090
+ }
33091
+ })().catch(logger$5.error);
33092
+ }, [legalEntityId, getOnboardingStatus2]);
33093
+ useEffect(() => {
33094
+ if (eventEmitter) {
33095
+ eventEmitter.on("updateLocale", (locale) => setLocale(locale));
33096
+ }
33097
+ });
33098
+ const [loadingLinkStatus, setLinkLoadingStatus] = useState("success");
33099
+ const redirectToAdyen = async () => {
33100
+ setLinkLoadingStatus("loading");
33101
+ const config = {
33102
+ locale: i18n.locale,
33103
+ returnUrl
33104
+ };
33105
+ try {
33106
+ const {
33107
+ link
33108
+ } = await generateOnboardingLink2(config);
33109
+ openLink(link, config);
33110
+ } catch (error) {
33111
+ handleError({
33112
+ trKey: "onboardingRedirectLinkError",
33113
+ error
33114
+ });
33115
+ } finally {
33116
+ setLinkLoadingStatus("success");
33117
+ }
33118
+ };
33119
+ const openLink = (link, config) => {
33120
+ const newTab = window.open("", "_blank");
33121
+ if (newTab) {
33122
+ newTab.location.href = link;
33123
+ if (typeof onRedirect === "function") {
33124
+ onRedirect({
33125
+ ...config,
33126
+ onboardingLink: link
33127
+ });
33128
+ }
33129
+ } else {
33130
+ handleError({
33131
+ trKey: "onboardingRedirectOpenError"
33132
+ });
33133
+ }
33134
+ };
33135
+ const renderBody = () => {
33136
+ if (alertContent) {
33137
+ return jsx(Alert, {
33138
+ title: i18n.get(alertContent),
33139
+ hasCloseButton: false,
33140
+ type: AlertTypes.ERROR
33141
+ });
33142
+ }
33143
+ if (content) {
33144
+ return jsxs(Fragment, {
33145
+ children: [jsx("h1", {
33146
+ className: "adyen-onboarding-redirect__header",
33147
+ children: i18n.get(content.header)
33148
+ }), content.description.map((key) => jsx("p", {
33149
+ className: "adyen-onboarding-redirect__description",
33150
+ children: i18n.get(key)
33151
+ }, key)), jsx("div", {
33152
+ className: "adyen-onboarding-redirect__footer",
33153
+ children: jsx(Button, {
33154
+ label: i18n.get(content.ctaButton),
33155
+ onClick: redirectToAdyen,
33156
+ type: "button",
33157
+ className: "adyen-onboarding-redirect__button",
33158
+ role: "link",
33159
+ negative: onboardingStatus !== OnboardingStatus.FINISHED,
33160
+ tertiary: onboardingStatus === OnboardingStatus.FINISHED,
33161
+ status: loadingLinkStatus === "loading" ? "loading" : "default"
33162
+ })
33163
+ })]
33164
+ });
33165
+ }
33166
+ return jsx(Loader, {
33167
+ size: "medium"
33168
+ });
33169
+ };
33170
+ return jsx("section", {
33171
+ className: "adyen-onboarding-redirect",
33172
+ children: renderBody()
33173
+ });
33174
+ }
33017
33175
  const componentsMap = {
33018
33176
  individualDropin: IndividualDropinComponent,
33019
33177
  companyDropin: CompanyDropinComponent,
@@ -33024,7 +33182,8 @@ const componentsMap = {
33024
33182
  soleProprietorDropin: SolePropDropinComponent,
33025
33183
  pci: PciDropinComponent,
33026
33184
  createTransferInstrumentComponent: CreateTransferInstrumentComponent,
33027
- createIndividualComponent: CreateIndividualComponent
33185
+ createIndividualComponent: CreateIndividualComponent,
33186
+ onboardingRedirectComponent: OnboardingRedirectComponent
33028
33187
  };
33029
33188
  const AuthProvider = ({
33030
33189
  children,
@@ -33077,15 +33236,6 @@ const loadDocumentGuidance = async (loadingContext) => {
33077
33236
  }, null, "text");
33078
33237
  document.body.insertBefore(buildSpriteDOMFromResponse(responseData), document.body.firstChild);
33079
33238
  };
33080
- const accountFormatsImports = /* @__PURE__ */ Object.assign({ "./AD.json": () => import("./AD-43128b9f.mjs"), "./AE.json": () => import("./AE-81598d61.mjs"), "./AG.json": () => import("./AG-ed98ae0e.mjs"), "./AI.json": () => import("./AI-3e78c886.mjs"), "./AL.json": () => import("./AL-3ad2778a.mjs"), "./AM.json": () => import("./AM-6a5175fb.mjs"), "./AN.json": () => import("./AN-311f7139.mjs"), "./AO.json": () => import("./AO-99b5ef59.mjs"), "./AQ.json": () => import("./AQ-effe27c7.mjs"), "./AR.json": () => import("./AR-4013d95c.mjs"), "./AS.json": () => import("./AS-f15d56b2.mjs"), "./AT.json": () => import("./AT-d4d62b74.mjs"), "./AU.json": () => import("./AU-b9cba969.mjs"), "./AW.json": () => import("./AW-581f73fb.mjs"), "./AX.json": () => import("./AX-07af957a.mjs"), "./AZ.json": () => import("./AZ-be214142.mjs"), "./BA.json": () => import("./BA-af4be83f.mjs"), "./BB.json": () => import("./BB-df28f015.mjs"), "./BD.json": () => import("./BD-7aef0af6.mjs"), "./BE.json": () => import("./BE-fc7cf8d5.mjs"), "./BF.json": () => import("./BF-090b06e2.mjs"), "./BG.json": () => import("./BG-1f54cf4f.mjs"), "./BH.json": () => import("./BH-1e9cc2b9.mjs"), "./BJ.json": () => import("./BJ-d5dd5c6f.mjs"), "./BM.json": () => import("./BM-a808b13f.mjs"), "./BN.json": () => import("./BN-b13f6f6a.mjs"), "./BR.json": () => import("./BR-55d93100.mjs"), "./BS.json": () => import("./BS-db6a5bce.mjs"), "./BT.json": () => import("./BT-dfed2604.mjs"), "./BV.json": () => import("./BV-e123b0a8.mjs"), "./BW.json": () => import("./BW-08473bd7.mjs"), "./BY.json": () => import("./BY-2762d989.mjs"), "./BZ.json": () => import("./BZ-7f28b1ff.mjs"), "./CA.json": () => import("./CA-aa1f78ab.mjs"), "./CC.json": () => import("./CC-2cc6ac39.mjs"), "./CF.json": () => import("./CF-78ae0244.mjs"), "./CH.json": () => import("./CH-47f538c0.mjs"), "./CI.json": () => import("./CI-10feb889.mjs"), "./CK.json": () => import("./CK-e308c734.mjs"), "./CL.json": () => import("./CL-4a6c3e0b.mjs"), "./CM.json": () => import("./CM-fddc630d.mjs"), "./CN.json": () => import("./CN-46bb9203.mjs"), "./CO.json": () => import("./CO-1b150cda.mjs"), "./CR.json": () => import("./CR-2bf50f66.mjs"), "./CU.json": () => import("./CU-904aea8f.mjs"), "./CX.json": () => import("./CX-750ccd92.mjs"), "./CY.json": () => import("./CY-1508b23e.mjs"), "./CZ.json": () => import("./CZ-b6eaa1d5.mjs"), "./DE.json": () => import("./DE-e02051d4.mjs"), "./DJ.json": () => import("./DJ-0032728a.mjs"), "./DK.json": () => import("./DK-6116657e.mjs"), "./DM.json": () => import("./DM-a2c158c9.mjs"), "./DO.json": () => import("./DO-cedffa27.mjs"), "./DZ.json": () => import("./DZ-d44be6f8.mjs"), "./EC.json": () => import("./EC-c2e5813b.mjs"), "./EE.json": () => import("./EE-1a10f52d.mjs"), "./EG.json": () => import("./EG-8f29aebd.mjs"), "./EH.json": () => import("./EH-2dafda3e.mjs"), "./ES.json": () => import("./ES-42b3562e.mjs"), "./ET.json": () => import("./ET-ffa87ef0.mjs"), "./FI.json": () => import("./FI-8e3bb2bb.mjs"), "./FJ.json": () => import("./FJ-088ea689.mjs"), "./FK.json": () => import("./FK-16d84ff5.mjs"), "./FM.json": () => import("./FM-32616e6f.mjs"), "./FO.json": () => import("./FO-62c08e45.mjs"), "./FR.json": () => import("./FR-3db03e20.mjs"), "./GA.json": () => import("./GA-4de2f994.mjs"), "./GB.json": () => import("./GB-28ea0b5a.mjs"), "./GD.json": () => import("./GD-0ad67069.mjs"), "./GE.json": () => import("./GE-0f594b35.mjs"), "./GF.json": () => import("./GF-a062cea7.mjs"), "./GG.json": () => import("./GG-e00581ea.mjs"), "./GH.json": () => import("./GH-80209e7e.mjs"), "./GI.json": () => import("./GI-b0f7c8b3.mjs"), "./GL.json": () => import("./GL-8f5e8ba9.mjs"), "./GM.json": () => import("./GM-ff3ca013.mjs"), "./GN.json": () => import("./GN-fc7c0f8c.mjs"), "./GP.json": () => import("./GP-68f23382.mjs"), "./GQ.json": () => import("./GQ-f9867fbd.mjs"), "./GR.json": () => import("./GR-64a2d25c.mjs"), "./GS.json": () => import("./GS-49ce0f4c.mjs"), "./GT.json": () => import("./GT-fa779b14.mjs"), "./GU.json": () => import("./GU-f0dceb37.mjs"), "./GW.json": () => import("./GW-471336ea.mjs"), "./GY.json": () => import("./GY-2889ae39.mjs"), "./HK.json": () => import("./HK-675b8651.mjs"), "./HM.json": () => import("./HM-924a724f.mjs"), "./HN.json": () => import("./HN-6dae206e.mjs"), "./HR.json": () => import("./HR-85763090.mjs"), "./HT.json": () => import("./HT-a659da85.mjs"), "./HU.json": () => import("./HU-f9ea5037.mjs"), "./ID.json": () => import("./ID-cb5cfce1.mjs"), "./IE.json": () => import("./IE-b341cbd2.mjs"), "./IL.json": () => import("./IL-657901df.mjs"), "./IM.json": () => import("./IM-5bd6279a.mjs"), "./IN.json": () => import("./IN-3c11df0e.mjs"), "./IO.json": () => import("./IO-24f6d2e7.mjs"), "./IQ.json": () => import("./IQ-241c0148.mjs"), "./IS.json": () => import("./IS-4a7e436f.mjs"), "./IT.json": () => import("./IT-f9755e76.mjs"), "./JE.json": () => import("./JE-46968fa2.mjs"), "./JM.json": () => import("./JM-a6657a34.mjs"), "./JO.json": () => import("./JO-bd1eabea.mjs"), "./JP.json": () => import("./JP-9b5a30fa.mjs"), "./KE.json": () => import("./KE-2a866579.mjs"), "./KG.json": () => import("./KG-7713761d.mjs"), "./KH.json": () => import("./KH-a5f0f831.mjs"), "./KI.json": () => import("./KI-8376e298.mjs"), "./KM.json": () => import("./KM-48c8c9c0.mjs"), "./KN.json": () => import("./KN-b34777c7.mjs"), "./KR.json": () => import("./KR-8bcf8499.mjs"), "./KW.json": () => import("./KW-4dd6ab01.mjs"), "./KY.json": () => import("./KY-4f921c93.mjs"), "./KZ.json": () => import("./KZ-68b655f3.mjs"), "./LA.json": () => import("./LA-582a34e2.mjs"), "./LB.json": () => import("./LB-7e5023a3.mjs"), "./LC.json": () => import("./LC-4e610f91.mjs"), "./LI.json": () => import("./LI-3979434e.mjs"), "./LK.json": () => import("./LK-23f5002d.mjs"), "./LT.json": () => import("./LT-2076ca77.mjs"), "./LU.json": () => import("./LU-b0538582.mjs"), "./LV.json": () => import("./LV-440617df.mjs"), "./MA.json": () => import("./MA-f2af9aa6.mjs"), "./MC.json": () => import("./MC-f619d821.mjs"), "./MD.json": () => import("./MD-ffe4e2f4.mjs"), "./ME.json": () => import("./ME-46686aa8.mjs"), "./MH.json": () => import("./MH-c535387d.mjs"), "./MK.json": () => import("./MK-11442cf1.mjs"), "./ML.json": () => import("./ML-b2c3720e.mjs"), "./MM.json": () => import("./MM-0ae1a124.mjs"), "./MN.json": () => import("./MN-baba0d9d.mjs"), "./MO.json": () => import("./MO-2c51f9f7.mjs"), "./MP.json": () => import("./MP-55044c4b.mjs"), "./MQ.json": () => import("./MQ-aaefd2b2.mjs"), "./MR.json": () => import("./MR-f122a6f0.mjs"), "./MS.json": () => import("./MS-7623ec5f.mjs"), "./MT.json": () => import("./MT-315c76bb.mjs"), "./MU.json": () => import("./MU-126673fe.mjs"), "./MV.json": () => import("./MV-d8748aca.mjs"), "./MW.json": () => import("./MW-26492427.mjs"), "./MX.json": () => import("./MX-ca79b44b.mjs"), "./MY.json": () => import("./MY-443e729e.mjs"), "./MZ.json": () => import("./MZ-192a5094.mjs"), "./NC.json": () => import("./NC-3849aac0.mjs"), "./NE.json": () => import("./NE-bf76bc84.mjs"), "./NF.json": () => import("./NF-46f5dffa.mjs"), "./NG.json": () => import("./NG-458396e5.mjs"), "./NI.json": () => import("./NI-efe8c864.mjs"), "./NL.json": () => import("./NL-3e38d0eb.mjs"), "./NO.json": () => import("./NO-088fac56.mjs"), "./NP.json": () => import("./NP-26b20587.mjs"), "./NR.json": () => import("./NR-ba1f7da1.mjs"), "./NU.json": () => import("./NU-6dc3ed45.mjs"), "./NZ.json": () => import("./NZ-12ed2cb9.mjs"), "./OM.json": () => import("./OM-4976855b.mjs"), "./PA.json": () => import("./PA-3b45122a.mjs"), "./PE.json": () => import("./PE-ad6e8281.mjs"), "./PF.json": () => import("./PF-2b1b6f30.mjs"), "./PG.json": () => import("./PG-b94ea47f.mjs"), "./PH.json": () => import("./PH-1b96a1eb.mjs"), "./PK.json": () => import("./PK-35cadd30.mjs"), "./PL.json": () => import("./PL-6a490cd1.mjs"), "./PM.json": () => import("./PM-d508f3c5.mjs"), "./PN.json": () => import("./PN-1f6ccf43.mjs"), "./PR.json": () => import("./PR-730f2830.mjs"), "./PS.json": () => import("./PS-f3ef78cd.mjs"), "./PT.json": () => import("./PT-66954cea.mjs"), "./PW.json": () => import("./PW-0d1c7797.mjs"), "./PY.json": () => import("./PY-c8e58794.mjs"), "./QA.json": () => import("./QA-35be8b1e.mjs"), "./RE.json": () => import("./RE-9f92ed9b.mjs"), "./RO.json": () => import("./RO-5c62edb1.mjs"), "./RS.json": () => import("./RS-bc256d90.mjs"), "./RU.json": () => import("./RU-bbee5e73.mjs"), "./RW.json": () => import("./RW-95b5d859.mjs"), "./SA.json": () => import("./SA-69b2f72a.mjs"), "./SB.json": () => import("./SB-567c239a.mjs"), "./SC.json": () => import("./SC-9e5a0d31.mjs"), "./SE.json": () => import("./SE-4ed53265.mjs"), "./SG.json": () => import("./SG-970463e3.mjs"), "./SH.json": () => import("./SH-d8ab21b7.mjs"), "./SI.json": () => import("./SI-3b6d3545.mjs"), "./SJ.json": () => import("./SJ-e3430cfd.mjs"), "./SK.json": () => import("./SK-2385e057.mjs"), "./SL.json": () => import("./SL-92bf45d9.mjs"), "./SM.json": () => import("./SM-bafbc267.mjs"), "./SN.json": () => import("./SN-5733e740.mjs"), "./SO.json": () => import("./SO-d5b69054.mjs"), "./SR.json": () => import("./SR-0a8c71c0.mjs"), "./ST.json": () => import("./ST-d40d86c1.mjs"), "./TC.json": () => import("./TC-ccbc7116.mjs"), "./TD.json": () => import("./TD-679d137c.mjs"), "./TF.json": () => import("./TF-6bfcf75d.mjs"), "./TG.json": () => import("./TG-a20ef9ed.mjs"), "./TH.json": () => import("./TH-e39a447c.mjs"), "./TK.json": () => import("./TK-89a81d38.mjs"), "./TL.json": () => import("./TL-8d6ca9b7.mjs"), "./TN.json": () => import("./TN-6e746476.mjs"), "./TO.json": () => import("./TO-a8c55d73.mjs"), "./TR.json": () => import("./TR-b1175ddc.mjs"), "./TT.json": () => import("./TT-5c4a3940.mjs"), "./TV.json": () => import("./TV-e1a267b9.mjs"), "./TW.json": () => import("./TW-9e0e34fa.mjs"), "./TZ.json": () => import("./TZ-c8a8159b.mjs"), "./UA.json": () => import("./UA-7014199a.mjs"), "./UG.json": () => import("./UG-1fe39fa7.mjs"), "./UM.json": () => import("./UM-3fcbf872.mjs"), "./US.json": () => import("./US-6fbdfc0c.mjs"), "./UY.json": () => import("./UY-e6d05d75.mjs"), "./UZ.json": () => import("./UZ-433656c8.mjs"), "./VA.json": () => import("./VA-e8e13d32.mjs"), "./VC.json": () => import("./VC-331669c0.mjs"), "./VE.json": () => import("./VE-5e7b0d3b.mjs"), "./VG.json": () => import("./VG-43e85e33.mjs"), "./VI.json": () => import("./VI-3d9d6d8b.mjs"), "./VN.json": () => import("./VN-9442a8c1.mjs"), "./VU.json": () => import("./VU-96fae02f.mjs"), "./WF.json": () => import("./WF-90a27056.mjs"), "./WS.json": () => import("./WS-ddcb2b71.mjs"), "./YE.json": () => import("./YE-02c4c81e.mjs"), "./YT.json": () => import("./YT-33751cc9.mjs"), "./ZA.json": () => import("./ZA-0084b083.mjs"), "./ZM.json": () => import("./ZM-c6a4d6cc.mjs") });
33081
- const getAccountFormatsForCountry = async (country2) => {
33082
- const importForCountry = accountFormatsImports[`./${country2}.json`];
33083
- if (!importForCountry) {
33084
- throw Error(`No account formats available for ${country2}`);
33085
- }
33086
- return (await importForCountry()).default;
33087
- };
33088
- const getPayoutAccountFormat = async (country2) => getAccountFormatsForCountry(country2);
33089
33239
  const getAllowedLocales$1 = async (context) => {
33090
33240
  const {
33091
33241
  loadingContext,
@@ -33194,7 +33344,6 @@ const getEmbeddedApi = ({
33194
33344
  taskList: tasks
33195
33345
  };
33196
33346
  },
33197
- getPayoutAccountFormat: async (country2) => getPayoutAccountFormat(country2),
33198
33347
  getDataset: async (datasetIdentifier2, locale) => getDataset$1({
33199
33348
  ...baseRequestContext,
33200
33349
  loadingContext
@@ -33329,7 +33478,6 @@ const getKycExternalApi = ({
33329
33478
  loadingContext,
33330
33479
  clientKey
33331
33480
  }, request),
33332
- getPayoutAccountFormat: async (country2) => getPayoutAccountFormat(country2),
33333
33481
  getAllowedCountries: async () => getAllowedCountries({
33334
33482
  loadingContext,
33335
33483
  clientKey
@@ -34451,6 +34599,24 @@ const createIndividualComponentSchema = {
34451
34599
  type: "function"
34452
34600
  }
34453
34601
  };
34602
+ const onboardingRedirectComponentSchema = {
34603
+ legalEntityId: {
34604
+ type: "string",
34605
+ required: true
34606
+ },
34607
+ onStatusChange: {
34608
+ type: "function"
34609
+ },
34610
+ onError: {
34611
+ type: "function"
34612
+ },
34613
+ onRedirect: {
34614
+ type: "function"
34615
+ },
34616
+ returnUrl: {
34617
+ type: "string"
34618
+ }
34619
+ };
34454
34620
  const componentsSchemaMap = {
34455
34621
  payoutAccount: payoutAccountSchema,
34456
34622
  soleProprietorDropin: solePropDropinSchema,
@@ -34461,7 +34627,8 @@ const componentsSchemaMap = {
34461
34627
  trustDropin: trustDropinSchema,
34462
34628
  taskList: taskListSchema,
34463
34629
  createIndividualComponent: createIndividualComponentSchema,
34464
- createTransferInstrumentComponent: createTransferInstrumentComponentSchema
34630
+ createTransferInstrumentComponent: createTransferInstrumentComponentSchema,
34631
+ onboardingRedirectComponent: onboardingRedirectComponentSchema
34465
34632
  };
34466
34633
  const validateComponentName = (componentName) => {
34467
34634
  if (!componentName) {
@@ -34491,14 +34658,14 @@ const validateCoreOptions = (coreOptions) => {
34491
34658
  Please specify either sdkToken and getSdkToken handler or a clientKey for the SDK to initialize!
34492
34659
 
34493
34660
 
34494
- - For more information please check: https://github.com/Adyen/adyen-kyc-components#configuration.`);
34661
+ - For more information please check: https://docs.adyen.com/platforms/onboard-users/components/?tab=npm_recommended__1#step-7-initiate-the-onboarding-component`);
34495
34662
  }
34496
34663
  if (missing.length > 0) {
34497
34664
  throw new Error(`
34498
34665
 
34499
34666
  Please specify a ${listify(missing)} for the SDK to initialize!
34500
34667
 
34501
- - For more information please check: https://github.com/Adyen/adyen-kyc-components#configuration.
34668
+ - For more information please check: https://docs.adyen.com/platforms/onboard-users/components/?tab=npm_recommended__1#step-7-initiate-the-onboarding-component
34502
34669
  `);
34503
34670
  }
34504
34671
  };