@adyen/kyc-components 3.3.5 → 3.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (374) 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-43e49467.mjs +15 -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 +477 -405
  123. package/dist/style.css +1884 -0
  124. package/dist/types/components/Dropins/types.d.ts +3 -0
  125. package/dist/types/components/EmbeddedDropins/OnboardingRedirect/OnboardingRedirectComponent.d.ts +14 -0
  126. package/dist/types/components/EmbeddedDropins/OnboardingRedirect/content.d.ts +2 -0
  127. package/dist/types/components/EmbeddedDropins/OnboardingRedirect/index.d.ts +2 -0
  128. package/dist/types/components/EmbeddedDropins/OnboardingRedirect/types.d.ts +12 -0
  129. package/dist/types/components/index.d.ts +2 -0
  130. package/dist/types/components/internal/Address/utils.d.ts +1 -1
  131. package/dist/types/core/Context/ConfigurationApiContext/ConfigurationApiContext.d.ts +0 -3
  132. package/dist/types/core/SDKValidation/index.d.ts +1 -1
  133. package/dist/types/core/Services/componentApi/generate-onboarding-link.d.ts +3 -0
  134. package/dist/types/core/Services/componentApi/get-onboarding-status.d.ts +3 -0
  135. package/dist/types/core/core.d.ts +1 -1
  136. package/dist/types/core/hooks/useComponentApi.d.ts +2 -0
  137. package/dist/types/core/hooks/useScenarioConfiguration.d.ts +5 -5
  138. package/dist/types/core/models/api/get-configuration.d.ts +0 -20
  139. package/dist/types/core/models/api/onboarding-redirect.d.ts +22 -0
  140. package/dist/types/core/models/currency.d.ts +2 -1
  141. package/dist/types/core/models/form-rules.d.ts +2 -2
  142. package/dist/types/core/models/identity.d.ts +0 -2
  143. package/dist/types/core/models/payout-account.d.ts +0 -4
  144. package/dist/types/core/process-field-configurations.d.ts +4 -4
  145. package/dist/types/datasets/accountFormats/getAccountFormatForCountry.d.ts +12 -2
  146. package/dist/types/language/config.d.ts +15 -0
  147. package/dist/types/utils/entity-status-util.d.ts +1 -1
  148. package/dist/types/utils/payout-account-util.d.ts +0 -6
  149. package/package.json +1 -1
  150. package/dist/es/AD-43128b9f.mjs +0 -29
  151. package/dist/es/AE-81598d61.mjs +0 -40
  152. package/dist/es/AG-ed98ae0e.mjs +0 -55
  153. package/dist/es/AI-3e78c886.mjs +0 -50
  154. package/dist/es/AL-3ad2778a.mjs +0 -50
  155. package/dist/es/AM-6a5175fb.mjs +0 -55
  156. package/dist/es/AN-311f7139.mjs +0 -55
  157. package/dist/es/AO-99b5ef59.mjs +0 -55
  158. package/dist/es/AQ-effe27c7.mjs +0 -55
  159. package/dist/es/AR-4013d95c.mjs +0 -50
  160. package/dist/es/AS-f15d56b2.mjs +0 -55
  161. package/dist/es/AT-d4d62b74.mjs +0 -29
  162. package/dist/es/AU-b9cba969.mjs +0 -35
  163. package/dist/es/AW-581f73fb.mjs +0 -55
  164. package/dist/es/AX-07af957a.mjs +0 -29
  165. package/dist/es/AZ-be214142.mjs +0 -50
  166. package/dist/es/BA-af4be83f.mjs +0 -50
  167. package/dist/es/BB-df28f015.mjs +0 -55
  168. package/dist/es/BD-7aef0af6.mjs +0 -55
  169. package/dist/es/BE-fc7cf8d5.mjs +0 -29
  170. package/dist/es/BF-090b06e2.mjs +0 -55
  171. package/dist/es/BG-1f54cf4f.mjs +0 -50
  172. package/dist/es/BH-1e9cc2b9.mjs +0 -50
  173. package/dist/es/BJ-d5dd5c6f.mjs +0 -55
  174. package/dist/es/BM-a808b13f.mjs +0 -50
  175. package/dist/es/BN-b13f6f6a.mjs +0 -55
  176. package/dist/es/BR-55d93100.mjs +0 -71
  177. package/dist/es/BS-db6a5bce.mjs +0 -50
  178. package/dist/es/BT-dfed2604.mjs +0 -55
  179. package/dist/es/BV-e123b0a8.mjs +0 -50
  180. package/dist/es/BW-08473bd7.mjs +0 -55
  181. package/dist/es/BY-2762d989.mjs +0 -50
  182. package/dist/es/BZ-7f28b1ff.mjs +0 -55
  183. package/dist/es/CA-aa1f78ab.mjs +0 -41
  184. package/dist/es/CC-2cc6ac39.mjs +0 -55
  185. package/dist/es/CF-78ae0244.mjs +0 -55
  186. package/dist/es/CH-47f538c0.mjs +0 -29
  187. package/dist/es/CI-10feb889.mjs +0 -55
  188. package/dist/es/CK-e308c734.mjs +0 -55
  189. package/dist/es/CL-4a6c3e0b.mjs +0 -55
  190. package/dist/es/CM-fddc630d.mjs +0 -55
  191. package/dist/es/CN-46bb9203.mjs +0 -50
  192. package/dist/es/CO-1b150cda.mjs +0 -55
  193. package/dist/es/CR-2bf50f66.mjs +0 -50
  194. package/dist/es/CU-904aea8f.mjs +0 -55
  195. package/dist/es/CX-750ccd92.mjs +0 -55
  196. package/dist/es/CY-1508b23e.mjs +0 -29
  197. package/dist/es/CZ-b6eaa1d5.mjs +0 -29
  198. package/dist/es/DE-e02051d4.mjs +0 -29
  199. package/dist/es/DJ-0032728a.mjs +0 -55
  200. package/dist/es/DK-6116657e.mjs +0 -59
  201. package/dist/es/DM-a2c158c9.mjs +0 -55
  202. package/dist/es/DO-cedffa27.mjs +0 -50
  203. package/dist/es/DZ-d44be6f8.mjs +0 -55
  204. package/dist/es/EC-c2e5813b.mjs +0 -56
  205. package/dist/es/EE-1a10f52d.mjs +0 -29
  206. package/dist/es/EG-8f29aebd.mjs +0 -55
  207. package/dist/es/EH-2dafda3e.mjs +0 -55
  208. package/dist/es/ES-42b3562e.mjs +0 -29
  209. package/dist/es/ET-ffa87ef0.mjs +0 -55
  210. package/dist/es/FI-8e3bb2bb.mjs +0 -29
  211. package/dist/es/FJ-088ea689.mjs +0 -50
  212. package/dist/es/FK-16d84ff5.mjs +0 -55
  213. package/dist/es/FM-32616e6f.mjs +0 -55
  214. package/dist/es/FO-62c08e45.mjs +0 -50
  215. package/dist/es/FR-3db03e20.mjs +0 -29
  216. package/dist/es/GA-4de2f994.mjs +0 -55
  217. package/dist/es/GB-28ea0b5a.mjs +0 -59
  218. package/dist/es/GD-0ad67069.mjs +0 -55
  219. package/dist/es/GE-0f594b35.mjs +0 -50
  220. package/dist/es/GF-a062cea7.mjs +0 -29
  221. package/dist/es/GG-e00581ea.mjs +0 -59
  222. package/dist/es/GH-80209e7e.mjs +0 -55
  223. package/dist/es/GI-b0f7c8b3.mjs +0 -101
  224. package/dist/es/GL-8f5e8ba9.mjs +0 -50
  225. package/dist/es/GM-ff3ca013.mjs +0 -55
  226. package/dist/es/GN-fc7c0f8c.mjs +0 -55
  227. package/dist/es/GP-68f23382.mjs +0 -29
  228. package/dist/es/GQ-f9867fbd.mjs +0 -55
  229. package/dist/es/GR-64a2d25c.mjs +0 -29
  230. package/dist/es/GS-49ce0f4c.mjs +0 -55
  231. package/dist/es/GT-fa779b14.mjs +0 -50
  232. package/dist/es/GU-f0dceb37.mjs +0 -55
  233. package/dist/es/GW-471336ea.mjs +0 -55
  234. package/dist/es/GY-2889ae39.mjs +0 -55
  235. package/dist/es/HK-675b8651.mjs +0 -56
  236. package/dist/es/HM-924a724f.mjs +0 -55
  237. package/dist/es/HN-6dae206e.mjs +0 -55
  238. package/dist/es/HR-85763090.mjs +0 -29
  239. package/dist/es/HT-a659da85.mjs +0 -55
  240. package/dist/es/HU-f9ea5037.mjs +0 -29
  241. package/dist/es/ID-cb5cfce1.mjs +0 -50
  242. package/dist/es/IE-b341cbd2.mjs +0 -29
  243. package/dist/es/IL-657901df.mjs +0 -29
  244. package/dist/es/IM-5bd6279a.mjs +0 -59
  245. package/dist/es/IN-3c11df0e.mjs +0 -56
  246. package/dist/es/IO-24f6d2e7.mjs +0 -55
  247. package/dist/es/IQ-241c0148.mjs +0 -55
  248. package/dist/es/IS-4a7e436f.mjs +0 -50
  249. package/dist/es/IT-f9755e76.mjs +0 -29
  250. package/dist/es/JE-46968fa2.mjs +0 -59
  251. package/dist/es/JM-a6657a34.mjs +0 -50
  252. package/dist/es/JO-bd1eabea.mjs +0 -50
  253. package/dist/es/JP-9b5a30fa.mjs +0 -88
  254. package/dist/es/KE-2a866579.mjs +0 -55
  255. package/dist/es/KG-7713761d.mjs +0 -55
  256. package/dist/es/KH-a5f0f831.mjs +0 -55
  257. package/dist/es/KI-8376e298.mjs +0 -55
  258. package/dist/es/KM-48c8c9c0.mjs +0 -55
  259. package/dist/es/KN-b34777c7.mjs +0 -55
  260. package/dist/es/KR-8bcf8499.mjs +0 -50
  261. package/dist/es/KW-4dd6ab01.mjs +0 -50
  262. package/dist/es/KY-4f921c93.mjs +0 -50
  263. package/dist/es/KZ-68b655f3.mjs +0 -50
  264. package/dist/es/LA-582a34e2.mjs +0 -55
  265. package/dist/es/LB-7e5023a3.mjs +0 -50
  266. package/dist/es/LC-4e610f91.mjs +0 -55
  267. package/dist/es/LI-3979434e.mjs +0 -29
  268. package/dist/es/LK-23f5002d.mjs +0 -55
  269. package/dist/es/LT-2076ca77.mjs +0 -29
  270. package/dist/es/LU-b0538582.mjs +0 -29
  271. package/dist/es/LV-440617df.mjs +0 -29
  272. package/dist/es/MA-f2af9aa6.mjs +0 -55
  273. package/dist/es/MC-f619d821.mjs +0 -29
  274. package/dist/es/MD-ffe4e2f4.mjs +0 -50
  275. package/dist/es/ME-46686aa8.mjs +0 -50
  276. package/dist/es/MH-c535387d.mjs +0 -55
  277. package/dist/es/MK-11442cf1.mjs +0 -50
  278. package/dist/es/ML-b2c3720e.mjs +0 -55
  279. package/dist/es/MM-0ae1a124.mjs +0 -55
  280. package/dist/es/MN-baba0d9d.mjs +0 -55
  281. package/dist/es/MO-2c51f9f7.mjs +0 -55
  282. package/dist/es/MP-55044c4b.mjs +0 -55
  283. package/dist/es/MQ-aaefd2b2.mjs +0 -29
  284. package/dist/es/MR-f122a6f0.mjs +0 -50
  285. package/dist/es/MS-7623ec5f.mjs +0 -55
  286. package/dist/es/MT-315c76bb.mjs +0 -29
  287. package/dist/es/MU-126673fe.mjs +0 -50
  288. package/dist/es/MV-d8748aca.mjs +0 -55
  289. package/dist/es/MW-26492427.mjs +0 -55
  290. package/dist/es/MX-ca79b44b.mjs +0 -60
  291. package/dist/es/MY-443e729e.mjs +0 -55
  292. package/dist/es/MZ-192a5094.mjs +0 -55
  293. package/dist/es/NC-3849aac0.mjs +0 -50
  294. package/dist/es/NE-bf76bc84.mjs +0 -55
  295. package/dist/es/NF-46f5dffa.mjs +0 -55
  296. package/dist/es/NG-458396e5.mjs +0 -55
  297. package/dist/es/NI-efe8c864.mjs +0 -55
  298. package/dist/es/NL-3e38d0eb.mjs +0 -29
  299. package/dist/es/NO-088fac56.mjs +0 -59
  300. package/dist/es/NP-26b20587.mjs +0 -55
  301. package/dist/es/NR-ba1f7da1.mjs +0 -55
  302. package/dist/es/NU-6dc3ed45.mjs +0 -55
  303. package/dist/es/NZ-d7a003bc.mjs +0 -24
  304. package/dist/es/OM-4976855b.mjs +0 -55
  305. package/dist/es/PA-3b45122a.mjs +0 -55
  306. package/dist/es/PE-ad6e8281.mjs +0 -50
  307. package/dist/es/PF-2b1b6f30.mjs +0 -50
  308. package/dist/es/PG-b94ea47f.mjs +0 -55
  309. package/dist/es/PH-1b96a1eb.mjs +0 -50
  310. package/dist/es/PK-35cadd30.mjs +0 -50
  311. package/dist/es/PL-6a490cd1.mjs +0 -53
  312. package/dist/es/PM-d508f3c5.mjs +0 -29
  313. package/dist/es/PN-1f6ccf43.mjs +0 -55
  314. package/dist/es/PR-730f2830.mjs +0 -55
  315. package/dist/es/PS-f3ef78cd.mjs +0 -50
  316. package/dist/es/PT-66954cea.mjs +0 -29
  317. package/dist/es/PW-0d1c7797.mjs +0 -55
  318. package/dist/es/PY-c8e58794.mjs +0 -55
  319. package/dist/es/QA-35be8b1e.mjs +0 -50
  320. package/dist/es/RE-9f92ed9b.mjs +0 -29
  321. package/dist/es/RO-5c62edb1.mjs +0 -29
  322. package/dist/es/RS-bc256d90.mjs +0 -50
  323. package/dist/es/RU-bbee5e73.mjs +0 -55
  324. package/dist/es/RW-95b5d859.mjs +0 -55
  325. package/dist/es/SA-69b2f72a.mjs +0 -50
  326. package/dist/es/SB-567c239a.mjs +0 -55
  327. package/dist/es/SC-9e5a0d31.mjs +0 -55
  328. package/dist/es/SE-4ed53265.mjs +0 -59
  329. package/dist/es/SG-970463e3.mjs +0 -35
  330. package/dist/es/SH-d8ab21b7.mjs +0 -55
  331. package/dist/es/SI-3b6d3545.mjs +0 -29
  332. package/dist/es/SJ-e3430cfd.mjs +0 -50
  333. package/dist/es/SK-2385e057.mjs +0 -29
  334. package/dist/es/SL-92bf45d9.mjs +0 -55
  335. package/dist/es/SM-bafbc267.mjs +0 -29
  336. package/dist/es/SN-5733e740.mjs +0 -55
  337. package/dist/es/SO-d5b69054.mjs +0 -55
  338. package/dist/es/SR-0a8c71c0.mjs +0 -55
  339. package/dist/es/ST-d40d86c1.mjs +0 -55
  340. package/dist/es/TC-ccbc7116.mjs +0 -55
  341. package/dist/es/TD-679d137c.mjs +0 -55
  342. package/dist/es/TF-6bfcf75d.mjs +0 -50
  343. package/dist/es/TG-a20ef9ed.mjs +0 -55
  344. package/dist/es/TH-e39a447c.mjs +0 -56
  345. package/dist/es/TK-89a81d38.mjs +0 -55
  346. package/dist/es/TL-8d6ca9b7.mjs +0 -50
  347. package/dist/es/TN-6e746476.mjs +0 -50
  348. package/dist/es/TO-a8c55d73.mjs +0 -55
  349. package/dist/es/TR-b1175ddc.mjs +0 -50
  350. package/dist/es/TT-5c4a3940.mjs +0 -56
  351. package/dist/es/TV-e1a267b9.mjs +0 -55
  352. package/dist/es/TW-9e0e34fa.mjs +0 -62
  353. package/dist/es/TZ-c8a8159b.mjs +0 -55
  354. package/dist/es/UA-7014199a.mjs +0 -50
  355. package/dist/es/UG-1fe39fa7.mjs +0 -55
  356. package/dist/es/UM-3fcbf872.mjs +0 -55
  357. package/dist/es/US-6fbdfc0c.mjs +0 -60
  358. package/dist/es/UY-e6d05d75.mjs +0 -50
  359. package/dist/es/UZ-433656c8.mjs +0 -55
  360. package/dist/es/VA-e8e13d32.mjs +0 -29
  361. package/dist/es/VC-331669c0.mjs +0 -55
  362. package/dist/es/VE-5e7b0d3b.mjs +0 -55
  363. package/dist/es/VG-43e85e33.mjs +0 -50
  364. package/dist/es/VI-3d9d6d8b.mjs +0 -55
  365. package/dist/es/VN-9442a8c1.mjs +0 -50
  366. package/dist/es/VU-96fae02f.mjs +0 -55
  367. package/dist/es/WF-90a27056.mjs +0 -50
  368. package/dist/es/WS-ddcb2b71.mjs +0 -55
  369. package/dist/es/YE-02c4c81e.mjs +0 -55
  370. package/dist/es/YT-33751cc9.mjs +0 -29
  371. package/dist/es/ZA-0084b083.mjs +0 -56
  372. package/dist/es/ZM-c6a4d6cc.mjs +0 -55
  373. package/dist/types/core/Services/agnostic/get-payout-account-formats.d.ts +0 -3
  374. package/dist/types/core/models/api/get-account-format.d.ts +0 -5
@@ -1217,6 +1217,21 @@ const introductionScreenEpilogueTitle = "Why do we need this information?";
1217
1217
  const introductionScreenEpilogueDescriptionP1 = "We check all this information against official records to verify your identity and comply with financial regulations.";
1218
1218
  const introductionScreenEpilogueDescriptionP2 = "Your information will be used only for these purposes.";
1219
1219
  const oib = "OIB";
1220
+ const onboardingRedirectInitialHeader = "Reach more customers and accept orders online";
1221
+ const onboardingRedirectInitialDescriptionP1 = "Register today and get access to all the features like receiving payments or issuing cards.";
1222
+ const onboardingRedirectInitialCtaButton = "Get started";
1223
+ const onboardingRedirectInProgressHeader = "We are currently reviewing your information";
1224
+ const onboardingRedirectInProgressDescriptionP1 = "We will notify you when your details are verified correctly so you can start doing payments.";
1225
+ const onboardingRedirectInProgressCtaButton = "View information";
1226
+ const onboardingRedirectErrorsHeader = "Some of your information needs to be corrected";
1227
+ const onboardingRedirectErrorsDescriptionP1 = "We reviewed the information you submitted, but we were not able to verify everything.";
1228
+ const onboardingRedirectErrorsDescriptionP2 = "You need to correct some information before we can activate your account.";
1229
+ const onboardingRedirectErrorsCtaButton = "Correct information";
1230
+ const onboardingRedirectFinishedHeader = "You’re all set";
1231
+ const onboardingRedirectFinishedDescriptionP1 = "We reviewed the information you submitted and successfully verified your account.";
1232
+ const onboardingRedirectFinishedCtaButton = "View data";
1233
+ const onboardingRedirectLinkError = "Onboarding link not available at the moment, please try again later.";
1234
+ const onboardingRedirectOpenError = "Pop-up blocker prevented redirecting, please allow pop-ups for this site.";
1220
1235
  const addBankDetails = "Add bank details";
1221
1236
  const addMissingBankDetails = "We are missing your bank details in order to perform payouts, please add your bank account.";
1222
1237
  const bankDetails = "Bank details";
@@ -2440,6 +2455,21 @@ const defaultTrans = {
2440
2455
  introductionScreenEpilogueDescriptionP1,
2441
2456
  introductionScreenEpilogueDescriptionP2,
2442
2457
  oib,
2458
+ onboardingRedirectInitialHeader,
2459
+ onboardingRedirectInitialDescriptionP1,
2460
+ onboardingRedirectInitialCtaButton,
2461
+ onboardingRedirectInProgressHeader,
2462
+ onboardingRedirectInProgressDescriptionP1,
2463
+ onboardingRedirectInProgressCtaButton,
2464
+ onboardingRedirectErrorsHeader,
2465
+ onboardingRedirectErrorsDescriptionP1,
2466
+ onboardingRedirectErrorsDescriptionP2,
2467
+ onboardingRedirectErrorsCtaButton,
2468
+ onboardingRedirectFinishedHeader,
2469
+ onboardingRedirectFinishedDescriptionP1,
2470
+ onboardingRedirectFinishedCtaButton,
2471
+ onboardingRedirectLinkError,
2472
+ onboardingRedirectOpenError,
2443
2473
  addBankDetails,
2444
2474
  addMissingBankDetails,
2445
2475
  bankDetails,
@@ -2893,7 +2923,6 @@ const exactLength = (input, length) => {
2893
2923
  }
2894
2924
  return input.length === length;
2895
2925
  };
2896
- const lengthIsBetween = (input, minLength, maxLength) => Boolean(input && input.length >= minLength && input.length <= maxLength);
2897
2926
  const trimValWithOneSpace = (val) => val.trimStart().replace(/\s+/g, " ");
2898
2927
  const _button_component = "";
2899
2928
  const _link_component = "";
@@ -2955,7 +2984,7 @@ const icons = {
2955
2984
  warning: lazy(() => import("./warning-bb000c6b.mjs")),
2956
2985
  wrong: lazy(() => import("./wrong-652db543.mjs"))
2957
2986
  };
2958
- const logger$v = createLogger("Icon");
2987
+ const logger$w = createLogger("Icon");
2959
2988
  const Icon = ({
2960
2989
  className,
2961
2990
  name,
@@ -2963,7 +2992,7 @@ const Icon = ({
2963
2992
  }) => {
2964
2993
  const LazyLoadedIcon = icons[name];
2965
2994
  if (!LazyLoadedIcon) {
2966
- logger$v.error(`No such icon: "${name}"`);
2995
+ logger$w.error(`No such icon: "${name}"`);
2967
2996
  return null;
2968
2997
  }
2969
2998
  return jsx("span", {
@@ -3170,7 +3199,7 @@ function useFormRouterContext() {
3170
3199
  }
3171
3200
  return context;
3172
3201
  }
3173
- const logger$u = createLogger("Link");
3202
+ const logger$v = createLogger("Link");
3174
3203
  const getIconClass = (icon, external) => {
3175
3204
  if (external) {
3176
3205
  return "adl-link__icon adyen-kyc-icon-external-link";
@@ -3182,7 +3211,7 @@ const getIconClass = (icon, external) => {
3182
3211
  };
3183
3212
  const isValidLink = (href) => {
3184
3213
  if (href === "#") {
3185
- logger$u.error('Links must include a valid href. If your href is "#", consider using a Button instead');
3214
+ logger$v.error('Links must include a valid href. If your href is "#", consider using a Button instead');
3186
3215
  return false;
3187
3216
  }
3188
3217
  return true;
@@ -3461,14 +3490,14 @@ function useResetGlobalData(caller) {
3461
3490
  }
3462
3491
  }), [dispatch, caller]);
3463
3492
  }
3464
- const logger$t = createLogger("useAllowedCountries");
3493
+ const logger$u = createLogger("useAllowedCountries");
3465
3494
  const useAllowedCountries = () => {
3466
3495
  const {
3467
3496
  getAllowedCountries: getAllowedCountries2
3468
3497
  } = useConfigurationApi();
3469
3498
  const [allowedCountries, setAllowedCountries] = useState();
3470
3499
  useEffect(() => {
3471
- getAllowedCountries2().then((response) => setAllowedCountries(response.countries)).catch(logger$t.error);
3500
+ getAllowedCountries2().then((response) => setAllowedCountries(response.countries)).catch(logger$u.error);
3472
3501
  }, []);
3473
3502
  return allowedCountries;
3474
3503
  };
@@ -3807,7 +3836,7 @@ class ValidationResult {
3807
3836
  return this.validationResults.filter((result) => result.hasError);
3808
3837
  }
3809
3838
  }
3810
- const logger$s = createLogger("useAsyncValidator");
3839
+ const logger$t = createLogger("useAsyncValidator");
3811
3840
  const useAsyncValidator = (asyncRules) => {
3812
3841
  const [asyncValidationResults, setAsyncValidationResults] = useState({});
3813
3842
  const clearAsyncValidationResults = useCallback(() => setAsyncValidationResults({}), []);
@@ -3830,7 +3859,7 @@ const useAsyncValidator = (asyncRules) => {
3830
3859
  hasError: !isValid
3831
3860
  }])
3832
3861
  });
3833
- }).catch(logger$s.error);
3862
+ }).catch(logger$t.error);
3834
3863
  }, [asyncRules, clearAsyncValidationResults]);
3835
3864
  return {
3836
3865
  asyncValidationResults,
@@ -5267,7 +5296,7 @@ function useIsElementVisible(ref, fallback = true) {
5267
5296
  }, [ref]);
5268
5297
  return isOnScreen;
5269
5298
  }
5270
- const logger$r = createLogger("Flag");
5299
+ const logger$s = createLogger("Flag");
5271
5300
  const flagImports = /* @__PURE__ */ Object.assign({
5272
5301
  "../../../../assets/flags/ad.svg": () => import("./ad-e09b987a.mjs"),
5273
5302
  "../../../../assets/flags/ae.svg": () => import("./ae-8ca1be27.mjs"),
@@ -5524,7 +5553,7 @@ const flagImports = /* @__PURE__ */ Object.assign({
5524
5553
  const getLazyLoadedSvgComponent = (country2) => {
5525
5554
  const importForCountry = flagImports[`../../../../assets/flags/${country2.toLowerCase()}.svg`];
5526
5555
  if (!importForCountry) {
5527
- logger$r.error(`No flag available for ${country2}`);
5556
+ logger$s.error(`No flag available for ${country2}`);
5528
5557
  return void 0;
5529
5558
  }
5530
5559
  return lazy(importForCountry);
@@ -6326,7 +6355,7 @@ const deriveInputState = (isValid, isFocused, hasBlurred, isDisabled, errorMessa
6326
6355
  };
6327
6356
  };
6328
6357
  const MISMATCH_ANIMATION_NAME = "mismatchShake";
6329
- const logger$q = createLogger("MaskedInputText");
6358
+ const logger$r = createLogger("MaskedInputText");
6330
6359
  const MaskedInputText = ({
6331
6360
  value,
6332
6361
  onInput,
@@ -6368,7 +6397,7 @@ const MaskedInputText = ({
6368
6397
  };
6369
6398
  useEffect(() => {
6370
6399
  if (!mask) {
6371
- logger$q.warn("`mask` is undefined. No masking of input will take place.");
6400
+ logger$r.warn("`mask` is undefined. No masking of input will take place.");
6372
6401
  }
6373
6402
  }, [mask]);
6374
6403
  const getMaskResult = useCallback((pureValue) => {
@@ -6395,7 +6424,7 @@ const MaskedInputText = ({
6395
6424
  return;
6396
6425
  }
6397
6426
  const fallback = displayValueToPure(maskResult.partialDisplayValue);
6398
- logger$q.warn(`Value received "${value}" does not match mask`, maskResult, `
6427
+ logger$r.warn(`Value received "${value}" does not match mask`, maskResult, `
6399
6428
  Falling back to partially valid value "${fallback}"`);
6400
6429
  onInput(fallback);
6401
6430
  }
@@ -6995,7 +7024,7 @@ const CountryIdNumberPatterns = {
6995
7024
  [CountryCodes.Italy]: /^[A-Z]{6}[0-9]{2}[ABCDEHLMPRST][0-9]{2}[A-Z][0-9]{3}[A-Z]$/,
6996
7025
  [CountryCodes.Poland]: /^\d{11}$/,
6997
7026
  [CountryCodes.Romania]: /^\d{13}$/,
6998
- [CountryCodes.Singapore]: /^[A-Z][0-9]{7}[A-Z]$/,
7027
+ [CountryCodes.Singapore]: /^[A-Z][0-9]{6}[A-Z]$/,
6999
7028
  [CountryCodes.Spain]: {
7000
7029
  dni: /(^[KL]?\d{8}[A-Z]$)/,
7001
7030
  nie: /(^[MXYZ]\d{7,8}[A-Z]$)/
@@ -9901,7 +9930,7 @@ const companySearchFieldsPerScenario = {
9901
9930
  }
9902
9931
  }
9903
9932
  };
9904
- const countryConfig$4 = {
9933
+ const countryConfig$3 = {
9905
9934
  [CountryCodes.Australia]: {
9906
9935
  legalCompanyName: {
9907
9936
  helperText: "legalCompanyName__helperText__AU"
@@ -10271,7 +10300,7 @@ const fieldsPerScenario$2 = {
10271
10300
  ...trustBase
10272
10301
  }
10273
10302
  };
10274
- const countryConfig$3 = {
10303
+ const countryConfig$2 = {
10275
10304
  AU: {
10276
10305
  taxId: {
10277
10306
  label: "australianBusinessNumberAbn"
@@ -10489,7 +10518,7 @@ const accountHolderValidationRules = {
10489
10518
  }
10490
10519
  };
10491
10520
  const accountHolderFields = ["accountHolder"];
10492
- const logger$p = createLogger("AccountHolder");
10521
+ const logger$q = createLogger("AccountHolder");
10493
10522
  function getAvailableAccountHolderOptions(legalEntityType, isChangeOfLegalEntityTypeAllowed, isTrustFlowEnabled, isSoleProprietorshipAllowed, isChangeToMyNameAllowed) {
10494
10523
  switch (legalEntityType) {
10495
10524
  case LegalEntityType.ORGANIZATION: {
@@ -10499,7 +10528,7 @@ function getAvailableAccountHolderOptions(legalEntityType, isChangeOfLegalEntity
10499
10528
  return [...isChangeToMyNameAllowed ? ["myName"] : [], ...isChangeOfLegalEntityTypeAllowed ? ["theCompanyIWorkFor"] : [], ...isTrustFlowEnabled ? ["aTrust"] : [], ...isSoleProprietorshipAllowed ? ["mySoleProprietorName"] : []];
10500
10529
  }
10501
10530
  default:
10502
- logger$p.error(`No available account holder options for legal entity type '${legalEntityType}'`);
10531
+ logger$q.error(`No available account holder options for legal entity type '${legalEntityType}'`);
10503
10532
  return [];
10504
10533
  }
10505
10534
  }
@@ -11247,7 +11276,7 @@ function Dropzone(props) {
11247
11276
  })]
11248
11277
  });
11249
11278
  }
11250
- const logger$o = createLogger("TextArea");
11279
+ const logger$p = createLogger("TextArea");
11251
11280
  function TextArea(props) {
11252
11281
  const {
11253
11282
  classNameModifiers,
@@ -11268,7 +11297,7 @@ function TextArea(props) {
11268
11297
  } = useI18nContext();
11269
11298
  const [value, setValue] = useState("");
11270
11299
  if (Object.prototype.hasOwnProperty.call(props, "onChange")) {
11271
- logger$o.error("Error: Form fields that rely on InputBase may not have an onChange property");
11300
+ logger$p.error("Error: Form fields that rely on InputBase may not have an onChange property");
11272
11301
  }
11273
11302
  const handleInput = (e) => {
11274
11303
  var _a;
@@ -11682,7 +11711,7 @@ function FieldContainer(props) {
11682
11711
  }
11683
11712
  return renderField(fieldName);
11684
11713
  }
11685
- const logger$n = createLogger("SearchAddress");
11714
+ const logger$o = createLogger("SearchAddress");
11686
11715
  const SearchAddress = ({
11687
11716
  data,
11688
11717
  legalEntityId,
@@ -11725,7 +11754,7 @@ const SearchAddress = ({
11725
11754
  const response = await handleFindAddress(selectedAddressId);
11726
11755
  autocompleteAddressForm(response);
11727
11756
  } catch (e) {
11728
- logger$n.error(e);
11757
+ logger$o.error(e);
11729
11758
  }
11730
11759
  };
11731
11760
  const onDrilldown = async (selectedAddress) => {
@@ -11737,7 +11766,7 @@ const SearchAddress = ({
11737
11766
  }, legalEntityId);
11738
11767
  setItems((response == null ? void 0 : response.results) || []);
11739
11768
  } catch (e) {
11740
- logger$n.error(e);
11769
+ logger$o.error(e);
11741
11770
  }
11742
11771
  };
11743
11772
  const onChange = (e) => {
@@ -11792,7 +11821,7 @@ const SearchAddress = ({
11792
11821
  setItems([]);
11793
11822
  }
11794
11823
  } catch (e) {
11795
- logger$n.error(e);
11824
+ logger$o.error(e);
11796
11825
  }
11797
11826
  setLoading(false);
11798
11827
  }
@@ -14826,7 +14855,7 @@ const initOnfido = async ({
14826
14855
  language: getOnfidoLocaleConfig(i18n)
14827
14856
  });
14828
14857
  };
14829
- const logger$m = createLogger("IdVerificationComponent");
14858
+ const logger$n = createLogger("IdVerificationComponent");
14830
14859
  function IdVerificationComponent({
14831
14860
  userDetails,
14832
14861
  legalEntityId,
@@ -14859,7 +14888,7 @@ function IdVerificationComponent({
14859
14888
  onIdVerificationError,
14860
14889
  onIdVerificationComplete
14861
14890
  });
14862
- })().catch(logger$m.error);
14891
+ })().catch(logger$n.error);
14863
14892
  return () => {
14864
14893
  if (onfidoSdk.current)
14865
14894
  onfidoSdk.current.tearDown();
@@ -14911,7 +14940,7 @@ function IdDocumentAlreadyUpload(props) {
14911
14940
  })]
14912
14941
  });
14913
14942
  }
14914
- const logger$l = createLogger("IdDocumentInstantVerificationComponent");
14943
+ const logger$m = createLogger("IdDocumentInstantVerificationComponent");
14915
14944
  const idVerificationSchema = ["instantIdVerificationData", "idDocumentType"];
14916
14945
  const documentTypeValidationRules = {
14917
14946
  instantIdVerificationData: {
@@ -14993,7 +15022,7 @@ function IdDocumentInstantVerificationComponent(props) {
14993
15022
  userDetails: props.userDetails,
14994
15023
  legalEntityId: props.legalEntityId,
14995
15024
  onIdVerificationComplete: handleIdVerificationComplete,
14996
- onIdVerificationError: logger$l.error
15025
+ onIdVerificationError: logger$m.error
14997
15026
  }), jsxs("div", {
14998
15027
  className: "adyen-kyc-document-upload__manual-upload",
14999
15028
  children: [i18n.get("canNotCompleteInstantVerification"), " ", jsx("button", {
@@ -15712,15 +15741,15 @@ const defaultFieldConfig$5 = {
15712
15741
  [CountryCodes.Singapore]: {
15713
15742
  label: "nric",
15714
15743
  mask: {
15715
- mask: makeMask(...alphaInputs(1), ...numericInputs(7), ...alphaInputs(1)),
15744
+ mask: makeMask(...alphaInputs(1), ...numericInputs(6), ...alphaInputs(1)),
15716
15745
  transformOnType: uppercase
15717
15746
  },
15718
15747
  validators: validatePatternOnBlur(CountryIdNumberPatterns[CountryCodes.Singapore]),
15719
15748
  guidanceText: {
15720
15749
  key: "enterNCharactersWithAMixForExample",
15721
15750
  values: {
15722
- numChars: "9",
15723
- example: "T9123456J"
15751
+ numChars: "8",
15752
+ example: "T123456J"
15724
15753
  }
15725
15754
  }
15726
15755
  },
@@ -15841,7 +15870,7 @@ const defaultFieldConfig$5 = {
15841
15870
  case "driversLicense":
15842
15871
  default:
15843
15872
  return {
15844
- label: "driversLicense",
15873
+ label: "licenseNumber",
15845
15874
  mask: {
15846
15875
  mask: makeMask(...alphaInputs(2), ...numericInputs(6)),
15847
15876
  transformOnType: uppercase
@@ -15900,7 +15929,7 @@ const defaultFieldConfig$5 = {
15900
15929
  case "driversLicense":
15901
15930
  default:
15902
15931
  return {
15903
- label: "driversLicense",
15932
+ label: "licenseNumber",
15904
15933
  mask: {
15905
15934
  mask: makeMask(...alphanumericInputs(7), spacer, ...alphanumericInputs(1)),
15906
15935
  transformOnType: uppercase
@@ -15940,7 +15969,7 @@ const defaultFieldConfig$5 = {
15940
15969
  case "driversLicense":
15941
15970
  default:
15942
15971
  return {
15943
- label: "driversLicense",
15972
+ label: "licenseNumber",
15944
15973
  mask: {
15945
15974
  mask: makeMask(...alphanumericInputs(6), ...alphanumericInputs(5, true)),
15946
15975
  transformOnType: uppercase
@@ -16071,7 +16100,9 @@ function IdentityNumberComponent(props) {
16071
16100
  }
16072
16101
  }, [propErrors]);
16073
16102
  useEffect(() => {
16074
- triggerValidation(["idNumber"]);
16103
+ if (data.idNumber || idNumberType) {
16104
+ triggerValidation(["idNumber"]);
16105
+ }
16075
16106
  }, [country2, idNumberType]);
16076
16107
  useEffect(() => {
16077
16108
  const dataHasChanged = !objectsDeepEqual(data, formData);
@@ -17820,79 +17851,79 @@ const ActionBar = ({
17820
17851
  })
17821
17852
  })]
17822
17853
  });
17823
- var Currency = /* @__PURE__ */ ((Currency2) => {
17824
- Currency2["AED"] = "AED";
17825
- Currency2["AUD"] = "AUD";
17826
- Currency2["BGN"] = "BGN";
17827
- Currency2["BRL"] = "BRL";
17828
- Currency2["CAD"] = "CAD";
17829
- Currency2["CHF"] = "CHF";
17830
- Currency2["CZK"] = "CZK";
17831
- Currency2["DKK"] = "DKK";
17832
- Currency2["EUR"] = "EUR";
17833
- Currency2["GBP"] = "GBP";
17834
- Currency2["HKD"] = "HKD";
17835
- Currency2["HRK"] = "HRK";
17836
- Currency2["HUF"] = "HUF";
17837
- Currency2["MXN"] = "MXN";
17838
- Currency2["MYR"] = "MYR";
17839
- Currency2["NOK"] = "NOK";
17840
- Currency2["NZD"] = "NZD";
17841
- Currency2["PLN"] = "PLN";
17842
- Currency2["RON"] = "RON";
17843
- Currency2["SEK"] = "SEK";
17844
- Currency2["SGD"] = "SGD";
17845
- Currency2["USD"] = "USD";
17846
- return Currency2;
17847
- })(Currency || {});
17854
+ var Currencies = /* @__PURE__ */ ((Currencies2) => {
17855
+ Currencies2["AED"] = "AED";
17856
+ Currencies2["AUD"] = "AUD";
17857
+ Currencies2["BGN"] = "BGN";
17858
+ Currencies2["BRL"] = "BRL";
17859
+ Currencies2["CAD"] = "CAD";
17860
+ Currencies2["CHF"] = "CHF";
17861
+ Currencies2["CZK"] = "CZK";
17862
+ Currencies2["DKK"] = "DKK";
17863
+ Currencies2["EUR"] = "EUR";
17864
+ Currencies2["GBP"] = "GBP";
17865
+ Currencies2["HKD"] = "HKD";
17866
+ Currencies2["HRK"] = "HRK";
17867
+ Currencies2["HUF"] = "HUF";
17868
+ Currencies2["MXN"] = "MXN";
17869
+ Currencies2["MYR"] = "MYR";
17870
+ Currencies2["NOK"] = "NOK";
17871
+ Currencies2["NZD"] = "NZD";
17872
+ Currencies2["PLN"] = "PLN";
17873
+ Currencies2["RON"] = "RON";
17874
+ Currencies2["SEK"] = "SEK";
17875
+ Currencies2["SGD"] = "SGD";
17876
+ Currencies2["USD"] = "USD";
17877
+ return Currencies2;
17878
+ })(Currencies || {});
17848
17879
  const currencyByCountry = {
17849
- [CountryCodes.Australia]: [Currency.AUD],
17850
- [CountryCodes.Austria]: [Currency.EUR],
17851
- [CountryCodes.Belgium]: [Currency.EUR],
17852
- [CountryCodes.Brazil]: [Currency.BRL],
17853
- [CountryCodes.Bulgaria]: [Currency.BGN, Currency.EUR],
17854
- [CountryCodes.Canada]: [Currency.CAD, Currency.USD],
17855
- [CountryCodes.Croatia]: [Currency.HRK, Currency.EUR],
17856
- [CountryCodes.Cyprus]: [Currency.EUR],
17857
- [CountryCodes.CzechRepublic]: [Currency.CZK, Currency.EUR],
17858
- [CountryCodes.Denmark]: [Currency.DKK, Currency.EUR],
17859
- [CountryCodes.Estonia]: [Currency.EUR],
17860
- [CountryCodes.Finland]: [Currency.EUR],
17861
- [CountryCodes.France]: [Currency.EUR],
17862
- [CountryCodes.Germany]: [Currency.EUR],
17863
- [CountryCodes.Gibraltar]: [Currency.GBP],
17864
- [CountryCodes.Greece]: [Currency.EUR],
17865
- [CountryCodes.Guernsey]: [Currency.GBP],
17866
- [CountryCodes.HongKong]: [Currency.HKD],
17867
- [CountryCodes.Hungary]: [Currency.HUF, Currency.EUR],
17868
- [CountryCodes.Ireland]: [Currency.EUR],
17869
- [CountryCodes.IsleOfMan]: [Currency.GBP],
17870
- [CountryCodes.Italy]: [Currency.EUR],
17871
- [CountryCodes.Jersey]: [Currency.GBP],
17872
- [CountryCodes.Latvia]: [Currency.EUR],
17873
- [CountryCodes.Liechtenstein]: [Currency.CHF, Currency.EUR],
17874
- [CountryCodes.Lithuania]: [Currency.EUR],
17875
- [CountryCodes.Luxembourg]: [Currency.EUR],
17876
- [CountryCodes.Malaysia]: [Currency.MYR],
17877
- [CountryCodes.Malta]: [Currency.EUR],
17878
- [CountryCodes.Mexico]: [Currency.MXN],
17879
- [CountryCodes.Monaco]: [Currency.EUR],
17880
- [CountryCodes.Netherlands]: [Currency.EUR],
17881
- [CountryCodes.NewZealand]: [Currency.NZD],
17882
- [CountryCodes.Norway]: [Currency.NOK, Currency.EUR],
17883
- [CountryCodes.Poland]: [Currency.PLN, Currency.EUR],
17884
- [CountryCodes.Portugal]: [Currency.EUR],
17885
- [CountryCodes.PuertoRico]: [Currency.USD],
17886
- [CountryCodes.Romania]: [Currency.RON, Currency.EUR],
17887
- [CountryCodes.Singapore]: [Currency.SGD],
17888
- [CountryCodes.Slovakia]: [Currency.EUR],
17889
- [CountryCodes.Slovenia]: [Currency.EUR],
17890
- [CountryCodes.Spain]: [Currency.EUR],
17891
- [CountryCodes.Sweden]: [Currency.SEK, Currency.EUR],
17892
- [CountryCodes.Switzerland]: [Currency.CHF, Currency.EUR],
17893
- [CountryCodes.UnitedArabEmirates]: [Currency.AED],
17894
- [CountryCodes.UnitedKingdom]: [Currency.GBP, Currency.EUR],
17895
- [CountryCodes.UnitedStates]: [Currency.USD]
17880
+ [CountryCodes.Australia]: [Currencies.AUD],
17881
+ [CountryCodes.Austria]: [Currencies.EUR],
17882
+ [CountryCodes.Belgium]: [Currencies.EUR],
17883
+ [CountryCodes.Brazil]: [Currencies.BRL],
17884
+ [CountryCodes.Bulgaria]: [Currencies.BGN, Currencies.EUR],
17885
+ [CountryCodes.Canada]: [Currencies.CAD, Currencies.USD],
17886
+ [CountryCodes.Croatia]: [Currencies.HRK, Currencies.EUR],
17887
+ [CountryCodes.Cyprus]: [Currencies.EUR],
17888
+ [CountryCodes.CzechRepublic]: [Currencies.CZK, Currencies.EUR],
17889
+ [CountryCodes.Denmark]: [Currencies.DKK, Currencies.EUR],
17890
+ [CountryCodes.Estonia]: [Currencies.EUR],
17891
+ [CountryCodes.Finland]: [Currencies.EUR],
17892
+ [CountryCodes.France]: [Currencies.EUR],
17893
+ [CountryCodes.Germany]: [Currencies.EUR],
17894
+ [CountryCodes.Gibraltar]: [Currencies.GBP],
17895
+ [CountryCodes.Greece]: [Currencies.EUR],
17896
+ [CountryCodes.Guernsey]: [Currencies.GBP],
17897
+ [CountryCodes.HongKong]: [Currencies.HKD],
17898
+ [CountryCodes.Hungary]: [Currencies.HUF, Currencies.EUR],
17899
+ [CountryCodes.Ireland]: [Currencies.EUR],
17900
+ [CountryCodes.IsleOfMan]: [Currencies.GBP],
17901
+ [CountryCodes.Italy]: [Currencies.EUR],
17902
+ [CountryCodes.Jersey]: [Currencies.GBP],
17903
+ [CountryCodes.Latvia]: [Currencies.EUR],
17904
+ [CountryCodes.Liechtenstein]: [Currencies.CHF, Currencies.EUR],
17905
+ [CountryCodes.Lithuania]: [Currencies.EUR],
17906
+ [CountryCodes.Luxembourg]: [Currencies.EUR],
17907
+ [CountryCodes.Malaysia]: [Currencies.MYR],
17908
+ [CountryCodes.Malta]: [Currencies.EUR],
17909
+ [CountryCodes.Mexico]: [Currencies.MXN],
17910
+ [CountryCodes.Monaco]: [Currencies.EUR],
17911
+ [CountryCodes.Netherlands]: [Currencies.EUR],
17912
+ [CountryCodes.NewZealand]: [Currencies.NZD],
17913
+ [CountryCodes.Norway]: [Currencies.NOK, Currencies.EUR],
17914
+ [CountryCodes.Poland]: [Currencies.PLN, Currencies.EUR],
17915
+ [CountryCodes.Portugal]: [Currencies.EUR],
17916
+ [CountryCodes.PuertoRico]: [Currencies.USD],
17917
+ [CountryCodes.Romania]: [Currencies.RON, Currencies.EUR],
17918
+ [CountryCodes.Singapore]: [Currencies.SGD],
17919
+ [CountryCodes.Slovakia]: [Currencies.EUR],
17920
+ [CountryCodes.Slovenia]: [Currencies.EUR],
17921
+ [CountryCodes.Spain]: [Currencies.EUR],
17922
+ [CountryCodes.Sweden]: [Currencies.SEK, Currencies.EUR],
17923
+ [CountryCodes.Switzerland]: [Currencies.CHF, Currencies.EUR],
17924
+ [CountryCodes.UnitedArabEmirates]: [Currencies.AED],
17925
+ [CountryCodes.UnitedKingdom]: [Currencies.GBP, Currencies.EUR],
17926
+ [CountryCodes.UnitedStates]: [Currencies.USD]
17896
17927
  };
17897
17928
  const bankVerificationValidationRules = {
17898
17929
  verifiedAccountHolder: {
@@ -17941,7 +17972,7 @@ class AdyenKycSdkError extends Error {
17941
17972
  }
17942
17973
  let sdkToken;
17943
17974
  let fetchSdkToken;
17944
- const logger$k = createLogger("Session");
17975
+ const logger$l = createLogger("Session");
17945
17976
  const setSdkToken = (token) => {
17946
17977
  sdkToken = token;
17947
17978
  };
@@ -17959,7 +17990,7 @@ const refreshSession = async () => {
17959
17990
  } = await fetchSdkToken();
17960
17991
  setSdkToken(token);
17961
17992
  } catch (e) {
17962
- logger$k.error("Failed to fetch sdk token", e);
17993
+ logger$l.error("Failed to fetch sdk token", e);
17963
17994
  }
17964
17995
  };
17965
17996
  const addAnimationStartListener = (element, listener) => {
@@ -17968,7 +17999,7 @@ const addAnimationStartListener = (element, listener) => {
17968
17999
  const removeAnimationStartListener = (element, listener) => {
17969
18000
  element.removeEventListener("animationstart", listener, false);
17970
18001
  };
17971
- const logger$j = createLogger("Fetch");
18002
+ const logger$k = createLogger("Fetch");
17972
18003
  const getRequestObject = (options, data) => {
17973
18004
  const {
17974
18005
  headers = [],
@@ -18015,10 +18046,10 @@ const logFetchError = (message, level) => {
18015
18046
  case "info":
18016
18047
  case "warn":
18017
18048
  case "error":
18018
- logger$j[level](message);
18049
+ logger$k[level](message);
18019
18050
  break;
18020
18051
  default:
18021
- logger$j.error(message);
18052
+ logger$k.error(message);
18022
18053
  }
18023
18054
  };
18024
18055
  const handleFetchResponse = async (response, responseType) => {
@@ -18116,7 +18147,7 @@ const RELEVANT_MESSAGE_TYPES = ["account_verification_report_id", "error"];
18116
18147
  const TERMINAL_DATA_PROPS = ["accounts", "error", "reference"];
18117
18148
  const MOUNT_TIMEOUT = 10 * 1e3;
18118
18149
  const TINK_VENDOR = "Tink";
18119
- const logger$i = createLogger("iframeWidget");
18150
+ const logger$j = createLogger("iframeWidget");
18120
18151
  const isObjectData = (data) => typeof data === "object" && !Array.isArray(data) && data !== null;
18121
18152
  const isTerminalMessageData = (data) => isObjectData(data) && Object.entries(data).some(([prop]) => TERMINAL_DATA_PROPS.includes(prop));
18122
18153
  const parseMessageJson = (message) => {
@@ -18135,7 +18166,7 @@ const callbackErrorHandler = async (response) => {
18135
18166
  try {
18136
18167
  await response;
18137
18168
  } catch (ex) {
18138
- logger$i.error(ex);
18169
+ logger$j.error(ex);
18139
18170
  }
18140
18171
  return {
18141
18172
  error: "UNKNOWN_ERROR",
@@ -18244,7 +18275,7 @@ class IFrameWidget {
18244
18275
  message = responseData.errorMessage;
18245
18276
  }
18246
18277
  } catch (ex) {
18247
- logger$i.error(ex);
18278
+ logger$j.error(ex);
18248
18279
  }
18249
18280
  throw new AdyenKycSdkError(reason, jsonData.error);
18250
18281
  }
@@ -18432,7 +18463,7 @@ function BankVerificationWidget({
18432
18463
  ref: widgetContainerRef
18433
18464
  });
18434
18465
  }
18435
- const logger$h = createLogger("BankVerification");
18466
+ const logger$i = createLogger("BankVerification");
18436
18467
  const accountVerificationFields = ["verifiedAccountHolder", "verifiedBankCountry", "verifiedBankName", "verifiedCurrencyCode", "verifiedBankAccountNumber"];
18437
18468
  const InstantVerificationErrorContext = createContext(null);
18438
18469
  const useInstantVerificationErrorNotification = (notificationVisibilityDuration) => {
@@ -18466,7 +18497,7 @@ const usePreferredVendorForCountry = (country2, getBankVerificationVendors) => {
18466
18497
  const vendor = vendors[0];
18467
18498
  setPreferredVendor(vendor.name ? vendor : void 0);
18468
18499
  };
18469
- getPreferredVendor().catch(logger$h.error);
18500
+ getPreferredVendor().catch(logger$i.error);
18470
18501
  }, [country2, getBankVerificationVendors]);
18471
18502
  return preferredVendor;
18472
18503
  };
@@ -18672,12 +18703,12 @@ const countriesWithMultipleCurrencies = /* @__PURE__ */ new Set([CountryCodes.Bu
18672
18703
  const countriesWithLocalFormat = /* @__PURE__ */ new Set([CountryCodes.Denmark, CountryCodes.Norway, CountryCodes.Poland, CountryCodes.Sweden, CountryCodes.UnitedKingdom]);
18673
18704
  const payoutCurrencySupport = {
18674
18705
  [CountryCodes.Sweden]: {
18675
- local: [Currency.SEK],
18676
- iban: [Currency.EUR, Currency.SEK]
18706
+ local: [Currencies.SEK],
18707
+ iban: [Currencies.EUR, Currencies.SEK]
18677
18708
  },
18678
18709
  [CountryCodes.Canada]: {
18679
- local: [Currency.CAD, Currency.USD],
18680
- iban: [Currency.CAD, Currency.USD]
18710
+ local: [Currencies.CAD, Currencies.USD],
18711
+ iban: [Currencies.CAD, Currencies.USD]
18681
18712
  }
18682
18713
  };
18683
18714
  const shouldShowPayoutAccountFormatSelector = (country2) => countriesWithLocalFormat.has(country2);
@@ -18710,22 +18741,10 @@ const getSupportedCurrenciesPerFormat = (country2, format) => {
18710
18741
  if (!defaultCurrency) {
18711
18742
  return;
18712
18743
  }
18713
- return format === "iban" ? [Currency.EUR, defaultCurrency] : [defaultCurrency];
18744
+ return format === "iban" ? [Currencies.EUR, defaultCurrency] : [defaultCurrency];
18714
18745
  }
18715
18746
  return supportedCurrencies[format];
18716
18747
  };
18717
- const createDelimitedStringFormatter = (char, indexes) => (val) => indexes.reduce((acc, delimiterIndex, index) => {
18718
- const slicePoint = delimiterIndex + index;
18719
- return slicePoint < acc.length ? [...acc.slice(0, slicePoint), "-", ...acc.slice(slicePoint)] : acc;
18720
- }, val.replaceAll("-", "").split("")).join("");
18721
- ({
18722
- [CountryCodes.NewZealand]: {
18723
- bankAccountNumber: {
18724
- // We want to add "-" after the 2nd, 6th and 13th numbers for New Zealand
18725
- formatter: (val) => val ? createDelimitedStringFormatter("-", [2, 6, 13])(val) : val
18726
- }
18727
- }
18728
- });
18729
18748
  function BankAccountFormat(props) {
18730
18749
  const {
18731
18750
  i18n
@@ -20223,7 +20242,7 @@ const makePayoutVerificationMethodsMetadata = (svgPath, instantVerificationProvi
20223
20242
  }
20224
20243
  });
20225
20244
  const payoutVerificationMethods = ["instantVerification", "manualVerification"];
20226
- const logger$g = createLogger("useLocalStorage");
20245
+ const logger$h = createLogger("useLocalStorage");
20227
20246
  const useLocalStorage = (key, defaultValue, options) => {
20228
20247
  const {
20229
20248
  serializer,
@@ -20244,7 +20263,7 @@ const useLocalStorage = (key, defaultValue, options) => {
20244
20263
  const res = rawValueRef.current ? parser(rawValueRef.current) : defaultValue;
20245
20264
  return res;
20246
20265
  } catch (err) {
20247
- logger$g.error(err);
20266
+ logger$h.error(err);
20248
20267
  return defaultValue;
20249
20268
  }
20250
20269
  });
@@ -20276,7 +20295,7 @@ const useLocalStorage = (key, defaultValue, options) => {
20276
20295
  try {
20277
20296
  updateLocalStorage();
20278
20297
  } catch (err) {
20279
- logger$g.error(err);
20298
+ logger$h.error(err);
20280
20299
  }
20281
20300
  }, [value]);
20282
20301
  useEffect(() => {
@@ -20291,7 +20310,7 @@ const useLocalStorage = (key, defaultValue, options) => {
20291
20310
  setValue(event.newValue ? parser(event.newValue) : void 0);
20292
20311
  }
20293
20312
  } catch (err) {
20294
- logger$g.error(err);
20313
+ logger$h.error(err);
20295
20314
  }
20296
20315
  };
20297
20316
  if (typeof window === "undefined")
@@ -22439,18 +22458,8 @@ const useFormComposer = ({
22439
22458
  setShouldValidate
22440
22459
  };
22441
22460
  };
22442
- const payoutFieldsMapping = {
22443
- BANK_CODE: "bankCode",
22444
- BRANCH_CODE: "branchCode",
22445
- NUMBER: "bankAccountNumber",
22446
- BANK_CITY: "bankCity",
22447
- SWIFT_CODE: "swiftCode",
22448
- IBAN: "iban",
22449
- OWNER_NAME: "accountHolder",
22450
- BANK_NAME: "bankName"
22451
- };
22452
- const obscuredPayoutFields = [payoutFieldsMapping.NUMBER, payoutFieldsMapping.IBAN];
22453
- const countryConfig$2 = {
22461
+ const obscuredPayoutFields = ["bankAccountNumber", "iban"];
22462
+ const countryConfig$1 = {
22454
22463
  [CountryCodes.Australia]: {},
22455
22464
  [CountryCodes.Brazil]: {
22456
22465
  bankCode: {
@@ -22494,97 +22503,6 @@ const countryConfig$2 = {
22494
22503
  },
22495
22504
  [CountryCodes.UnitedStates]: {}
22496
22505
  };
22497
- const parseValidationRule = (validationRule) => {
22498
- const [name, start, end] = validationRule.split(":");
22499
- switch (name) {
22500
- case "bic_either8or11":
22501
- return {
22502
- name: "bic_either8or11"
22503
- };
22504
- case "iban": {
22505
- const length = parseInt(start);
22506
- if (Number.isNaN(length))
22507
- return "invalid";
22508
- return {
22509
- name: "iban",
22510
- length
22511
- };
22512
- }
22513
- case "digits": {
22514
- const minLength = parseInt(start);
22515
- const maxLength = parseInt(end);
22516
- if (Number.isNaN(minLength) || end && Number.isNaN(maxLength))
22517
- return "invalid";
22518
- return {
22519
- name: "digits",
22520
- minLength,
22521
- maxLength
22522
- };
22523
- }
22524
- default:
22525
- return "invalid";
22526
- }
22527
- };
22528
- const countryValueParser = (country2) => {
22529
- switch (country2) {
22530
- case CountryCodes.NewZealand:
22531
- return (value) => value == null ? void 0 : value.replaceAll("-", "");
22532
- default:
22533
- return (value) => value;
22534
- }
22535
- };
22536
- const getValidatorRules = (validationRule, country2) => {
22537
- const rule = parseValidationRule(validationRule);
22538
- if (rule === "invalid")
22539
- throw Error(`Invalid validation rule '${validationRule}'`);
22540
- const valueParser = countryValueParser(country2);
22541
- switch (rule.name) {
22542
- case "bic_either8or11":
22543
- return {
22544
- modes: ["blur", "input"],
22545
- validate: (value) => /^([a-zA-Z0-9]{8}|[a-zA-Z0-9]{11})$/.test(value ?? ""),
22546
- errorMessage: "validation8Or11Characters"
22547
- };
22548
- case "iban":
22549
- return {
22550
- modes: ["blur", "input"],
22551
- validate: (value) => exactLength(value, rule.length),
22552
- errorMessage: {
22553
- key: "validationCharacters",
22554
- values: {
22555
- length: `${rule.length}`
22556
- }
22557
- }
22558
- };
22559
- case "digits":
22560
- if (rule.maxLength) {
22561
- return {
22562
- modes: ["blur", "input"],
22563
- // TODO: https://mattermost.adyen.com/adyen/pl/cr37pz9tzpr7zfy8cj4tn5caio
22564
- validate: (value) => lengthIsBetween(valueParser(value), rule.minLength, rule.maxLength),
22565
- errorMessage: {
22566
- key: "validationDigitsBetween",
22567
- values: {
22568
- start: `${rule.minLength}`,
22569
- end: `${rule.maxLength}`
22570
- }
22571
- }
22572
- };
22573
- }
22574
- return {
22575
- modes: ["blur", "input"],
22576
- validate: (value) => exactLength(value, rule.minLength),
22577
- errorMessage: {
22578
- key: "validationDigits",
22579
- values: {
22580
- length: `${rule.minLength}`
22581
- }
22582
- }
22583
- };
22584
- default:
22585
- return void 0;
22586
- }
22587
- };
22588
22506
  const defaultPayoutAccountFormat = {
22589
22507
  [CountryCodes.CzechRepublic]: "iban",
22590
22508
  [CountryCodes.Denmark]: "local",
@@ -22594,7 +22512,7 @@ const defaultPayoutAccountFormat = {
22594
22512
  [CountryCodes.Sweden]: "local",
22595
22513
  [CountryCodes.UnitedKingdom]: "local"
22596
22514
  };
22597
- const logger$f = createLogger("useScenarioConfiguration");
22515
+ const logger$g = createLogger("useScenarioConfiguration");
22598
22516
  const useScenarioConfiguration = ({
22599
22517
  getConfigurationData,
22600
22518
  getPayoutAccountFormatData,
@@ -22617,12 +22535,12 @@ const useScenarioConfiguration = ({
22617
22535
  const response = await getConfigurationData();
22618
22536
  setConfigurationResponse(response);
22619
22537
  } catch (err) {
22620
- logger$f.warn("WARNING: Configuration request failed - error:", err);
22538
+ logger$g.warn("WARNING: Configuration request failed - error:", err);
22621
22539
  } finally {
22622
22540
  setLoadingStatus("success");
22623
22541
  }
22624
22542
  };
22625
- makeConfigCallAndSave().catch(logger$f.error);
22543
+ makeConfigCallAndSave().catch(logger$g.error);
22626
22544
  }, [getConfigurationData, setLoadingStatus]);
22627
22545
  useEffect(() => {
22628
22546
  setLoadingStatus("loading");
@@ -22641,12 +22559,12 @@ const useScenarioConfiguration = ({
22641
22559
  const defaultAccountFormat = defaultPayoutAccountFormat[country2] ?? allowedBankAccountFormats[0];
22642
22560
  setAccountFormat(existingBankAccountFormat ?? defaultAccountFormat);
22643
22561
  } catch (err) {
22644
- logger$f.warn("WARNING: Payout format request failed - error:", err);
22562
+ logger$g.warn("WARNING: Payout format request failed - error:", err);
22645
22563
  } finally {
22646
22564
  setLoadingStatus("success");
22647
22565
  }
22648
22566
  };
22649
- makePayoutFormatCallAndSave().catch(logger$f.error);
22567
+ makePayoutFormatCallAndSave().catch(logger$g.error);
22650
22568
  }, [country2, setAccountFormat, getPayoutAccountFormatData, setLoadingStatus, existingBankAccountFormat]);
22651
22569
  const {
22652
22570
  fieldConfigurations,
@@ -22808,69 +22726,6 @@ const fieldsPerScenario$1 = {
22808
22726
  },
22809
22727
  L1_IDDOC: idDocument
22810
22728
  };
22811
- const countryConfig$1 = {
22812
- US: {
22813
- idNumber: {
22814
- label: "last4DigitsOfSocialSecurityNumber",
22815
- placeholder: "SSNFormatUS"
22816
- },
22817
- idNumberExempt: {
22818
- label: "identityNumberExempt__US"
22819
- }
22820
- },
22821
- CA: {
22822
- idNumber: {
22823
- label: "socialInsuranceNumber",
22824
- placeholder: "SINFormatCA"
22825
- },
22826
- idNumberExempt: {
22827
- label: "identityNumberExempt__CA"
22828
- }
22829
- },
22830
- IT: {
22831
- idNumber: {
22832
- label: "codiceFiscale"
22833
- }
22834
- },
22835
- BR: {
22836
- idNumber: {
22837
- label: "cadastroDePessoasFisicas"
22838
- }
22839
- },
22840
- SE: {
22841
- idNumber: {
22842
- label: "personnummer"
22843
- }
22844
- },
22845
- ES: {
22846
- idNumber: {
22847
- label: "dni"
22848
- }
22849
- },
22850
- PL: {
22851
- idNumber: {
22852
- label: "peselNumber"
22853
- }
22854
- },
22855
- DK: {
22856
- idNumber: {
22857
- label: "detCentralePersonregister"
22858
- }
22859
- },
22860
- RO: {
22861
- idNumber: {
22862
- label: "codNumericPersonal"
22863
- }
22864
- },
22865
- SG: {
22866
- idNumber: {
22867
- label: "nric"
22868
- },
22869
- idNumberExempt: {
22870
- label: "uploadDocumentForNric"
22871
- }
22872
- }
22873
- };
22874
22729
  const solePropBase = {
22875
22730
  companyCountry: {
22876
22731
  rule: "REQUIRED"
@@ -22944,36 +22799,31 @@ const fieldsPerScenario = {
22944
22799
  }
22945
22800
  };
22946
22801
  const countryConfig = {
22947
- ...countryConfig$4,
22802
+ ...countryConfig$3,
22948
22803
  [CountryCodes.NewZealand]: {
22949
- ...countryConfig$4[CountryCodes.NewZealand],
22804
+ ...countryConfig$3[CountryCodes.NewZealand],
22950
22805
  registrationNumber: {
22951
22806
  label: "NZBN"
22952
22807
  }
22953
22808
  },
22954
22809
  [CountryCodes.Croatia]: {
22955
- ...countryConfig$4[CountryCodes.Croatia],
22810
+ ...countryConfig$3[CountryCodes.Croatia],
22956
22811
  registrationNumber: {
22957
22812
  label: "MBO"
22958
22813
  }
22959
22814
  }
22960
22815
  };
22961
- function parseIndividualScenarios(scenario, country2) {
22962
- let fieldConfigurations = scenario == null ? void 0 : scenario.reduce((scenarios, scenarioName) => ({
22963
- ...scenarios,
22964
- ...fieldsPerScenario$1[scenarioName]
22965
- }), {});
22966
- const countryConfigs = countryConfig$1[country2];
22967
- fieldConfigurations = augmentWithCountryConfigs(countryConfigs, fieldConfigurations);
22968
- return fieldConfigurations;
22969
- }
22816
+ const parseIndividualScenarios = (scenario) => scenario == null ? void 0 : scenario.reduce((scenarios, scenarioName) => ({
22817
+ ...scenarios,
22818
+ ...fieldsPerScenario$1[scenarioName]
22819
+ }), {});
22970
22820
  function parseCompanyScenarios(scenario, country2) {
22971
22821
  if (scenario) {
22972
22822
  let fieldConfigurations = scenario.reduce((scenarios, scenarioName) => ({
22973
22823
  ...scenarios,
22974
22824
  ...fieldsPerScenario$3[scenarioName]
22975
22825
  }), {});
22976
- const countryConfigs = countryConfig$4[country2];
22826
+ const countryConfigs = countryConfig$3[country2];
22977
22827
  fieldConfigurations = augmentWithCountryConfigs(countryConfigs, fieldConfigurations);
22978
22828
  return fieldConfigurations;
22979
22829
  }
@@ -22984,7 +22834,7 @@ function parseCompanySearchScenarios(scenario, country2) {
22984
22834
  ...scenarios,
22985
22835
  ...companySearchFieldsPerScenario[scenarioName]
22986
22836
  }), {});
22987
- const countryConfigs = countryConfig$4[country2];
22837
+ const countryConfigs = countryConfig$3[country2];
22988
22838
  fieldConfigurations = augmentWithCountryConfigs(countryConfigs, fieldConfigurations);
22989
22839
  return fieldConfigurations;
22990
22840
  }
@@ -22995,7 +22845,7 @@ function parseTrustScenarios(scenario, country2) {
22995
22845
  ...scenarios,
22996
22846
  ...fieldsPerScenario$2[scenarioName]
22997
22847
  }), {});
22998
- const countryConfigs = countryConfig$3[country2];
22848
+ const countryConfigs = countryConfig$2[country2];
22999
22849
  fieldConfigurations = augmentWithCountryConfigs(countryConfigs, fieldConfigurations);
23000
22850
  return fieldConfigurations;
23001
22851
  }
@@ -23018,11 +22868,6 @@ function parsePayoutScenarios({
23018
22868
  }) {
23019
22869
  if (!requiredFields)
23020
22870
  return;
23021
- const requiredValidatorRule = {
23022
- modes: ["blur"],
23023
- validate: (value) => !!value,
23024
- errorMessage: "fieldIsRequired"
23025
- };
23026
22871
  const fieldConfigurations = {};
23027
22872
  fieldConfigurations.payoutVerificationMethod = {
23028
22873
  rule: "REQUIRED"
@@ -23030,22 +22875,16 @@ function parsePayoutScenarios({
23030
22875
  fieldConfigurations.bankCountry = {
23031
22876
  rule: "REQUIRED"
23032
22877
  };
23033
- requiredFields.forEach((field) => {
23034
- const {
23035
- fieldName: apiFieldName,
23036
- validationRule
23037
- } = field.Field ?? field;
23038
- const fieldName = payoutFieldsMapping[apiFieldName];
23039
- if (fieldName) {
23040
- fieldConfigurations[fieldName] = validationRule ? {
23041
- rule: bankVerificationAvailable ? "whenUsingManualVerification" : "REQUIRED",
23042
- validators: [getValidatorRules(validationRule, country2), requiredValidatorRule]
23043
- } : {
23044
- rule: bankVerificationAvailable ? "whenUsingManualVerification" : "REQUIRED",
23045
- validators: [requiredValidatorRule]
23046
- };
23047
- fieldConfigurations[fieldName].obscured = obscuredPayoutFields.includes(fieldName);
23048
- }
22878
+ requiredFields.forEach((fieldName) => {
22879
+ fieldConfigurations[fieldName] = {
22880
+ rule: bankVerificationAvailable ? "whenUsingManualVerification" : "REQUIRED",
22881
+ validators: [{
22882
+ modes: ["blur"],
22883
+ validate: (value) => !!value,
22884
+ errorMessage: "fieldIsRequired"
22885
+ }]
22886
+ };
22887
+ fieldConfigurations[fieldName].obscured = obscuredPayoutFields.includes(fieldName);
23049
22888
  });
23050
22889
  if (bankVerificationAvailable) {
23051
22890
  fieldConfigurations.verifiedAccountHolder = {
@@ -23070,7 +22909,7 @@ function parsePayoutScenarios({
23070
22909
  fieldConfigurations.description = {
23071
22910
  rule: "bankStatementDescription"
23072
22911
  };
23073
- return augmentWithCountryConfigs(countryConfig$2[country2], fieldConfigurations);
22912
+ return augmentWithCountryConfigs(countryConfig$1[country2], fieldConfigurations);
23074
22913
  }
23075
22914
  const augmentWithCountryConfigs = (countryConfigs, fieldConfigurations) => {
23076
22915
  if (countryConfigs) {
@@ -23902,7 +23741,7 @@ const getTargetLegalEntityType = (businessType, legalArrangement, trusteeType, c
23902
23741
  return currentLegalEntityType;
23903
23742
  };
23904
23743
  const FormWrapper$1 = "";
23905
- const logger$e = createLogger("FormRouterContextProvider");
23744
+ const logger$f = createLogger("FormRouterContextProvider");
23906
23745
  function FormRouterContextProvider({
23907
23746
  children,
23908
23747
  forms: forms2,
@@ -23922,7 +23761,7 @@ function FormRouterContextProvider({
23922
23761
  if (formIndex > -1) {
23923
23762
  setFormIndex(formIndex);
23924
23763
  } else {
23925
- logger$e.error("No form was found to have that field so form navigation failed.");
23764
+ logger$f.error("No form was found to have that field so form navigation failed.");
23926
23765
  }
23927
23766
  }
23928
23767
  }), [forms2, handleGetIdVerificationToken, setFormIndex]);
@@ -24526,7 +24365,7 @@ function CompanyDropinComponent({
24526
24365
  }
24527
24366
  const CompanyBasicsComponent$1 = "";
24528
24367
  const CompanyLookupComponent$1 = "";
24529
- const logger$d = createLogger("useCompanySearch");
24368
+ const logger$e = createLogger("useCompanySearch");
24530
24369
  const LOW_RISK_COMPANY_DATA_COMPLIANCE_WINDOW = 1577664e5;
24531
24370
  function useCompanySearch({
24532
24371
  defaultData,
@@ -24665,7 +24504,7 @@ function useCompanySearch({
24665
24504
  state: companyData.state ?? stateOrProvince2
24666
24505
  });
24667
24506
  } catch (e) {
24668
- logger$d.error(e);
24507
+ logger$e.error(e);
24669
24508
  setError(e);
24670
24509
  setStatus("error");
24671
24510
  } finally {
@@ -24698,7 +24537,7 @@ function useCompanySearch({
24698
24537
  indexSearch: handleCompanyIndexSearch,
24699
24538
  deepSearch: handleCompanyDeepSearch,
24700
24539
  resultsLimit: limit
24701
- })) == null ? void 0 : _a.catch((e) => logger$d.error(e));
24540
+ })) == null ? void 0 : _a.catch((e) => logger$e.error(e));
24702
24541
  }
24703
24542
  }, [legalCompanyName2, country2, stateOrProvince2, taxIdentificationNumber2, verifiedCompany, searchCompanies, handleCompanyIndexSearch, handleCompanyDeepSearch, limit, canVerify]);
24704
24543
  useEffect(() => {
@@ -26344,7 +26183,7 @@ const mapLegalEntityToCompanySearchSchema = (legalEntity) => {
26344
26183
  }
26345
26184
  }, {});
26346
26185
  };
26347
- const logger$c = createLogger("useFormTaskSubmit");
26186
+ const logger$d = createLogger("useFormTaskSubmit");
26348
26187
  function useCompanySearchTaskSubmit({
26349
26188
  task,
26350
26189
  forms: forms2,
@@ -26390,7 +26229,7 @@ function useCompanySearchTaskSubmit({
26390
26229
  });
26391
26230
  }
26392
26231
  } catch (e) {
26393
- logger$c.error(e);
26232
+ logger$d.error(e);
26394
26233
  }
26395
26234
  }, [baseTrackingPayload, documentUtils]);
26396
26235
  const submit2 = useCallback(async ({
@@ -26434,7 +26273,7 @@ function useCompanySearchTaskSubmit({
26434
26273
  ...trackingPayload
26435
26274
  }
26436
26275
  });
26437
- logger$c.log(submittedLegalEntity);
26276
+ logger$d.log(submittedLegalEntity);
26438
26277
  setAccountHolder(entityTypeToCorrespondingAccountHolderOption[legalEntityResponse.type]);
26439
26278
  clearToasts();
26440
26279
  onExternalSubmit == null ? void 0 : onExternalSubmit(data);
@@ -26459,7 +26298,7 @@ function useCompanySearchTaskSubmit({
26459
26298
  type: ToastType.ERROR
26460
26299
  });
26461
26300
  }
26462
- logger$c.error(e);
26301
+ logger$d.error(e);
26463
26302
  userEvents.addEvent("Encountered error company details", {
26464
26303
  segmentation: {
26465
26304
  ...baseTrackingPayload,
@@ -26894,7 +26733,7 @@ const useShouldShowBusinessTypeSelection = (accountHolder2) => {
26894
26733
  } = useExperimentsContext();
26895
26734
  return isExperimentEnabled("EnableNewEntryFlow") && !accountHolder2;
26896
26735
  };
26897
- const logger$b = createLogger("useExemptSettlor");
26736
+ const logger$c = createLogger("useExemptSettlor");
26898
26737
  const useExemptSettlor = ({
26899
26738
  trust: trust2,
26900
26739
  handleGetLegalEntity
@@ -26908,7 +26747,7 @@ const useExemptSettlor = ({
26908
26747
  useEffect(() => {
26909
26748
  if (!trust2)
26910
26749
  return;
26911
- updateExemptSettlor(trust2).catch(logger$b.error);
26750
+ updateExemptSettlor(trust2).catch(logger$c.error);
26912
26751
  }, [trust2, updateExemptSettlor]);
26913
26752
  return exemptSettlor;
26914
26753
  };
@@ -29101,9 +28940,8 @@ const omitObscuredFieldsIfUnchanged = (obscuredFields, dataSubmitted, savedData)
29101
28940
  return filtered;
29102
28941
  };
29103
28942
  const parseConfiguration$3 = ({
29104
- country: country2,
29105
28943
  matchingScenario
29106
- }) => parseIndividualScenarios(matchingScenario == null ? void 0 : matchingScenario[LegalEntityType.INDIVIDUAL], country2);
28944
+ }) => parseIndividualScenarios(matchingScenario == null ? void 0 : matchingScenario[LegalEntityType.INDIVIDUAL]);
29107
28945
  function IndividualDropinComponent({
29108
28946
  handleCreateDocument,
29109
28947
  handleGetDocument,
@@ -29609,6 +29447,14 @@ const useBankConfigurationHandlers = ({
29609
29447
  getBankVerificationVendorsHandler
29610
29448
  };
29611
29449
  };
29450
+ 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-43e49467.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") });
29451
+ const getAccountFormatsForCountry = async (country2) => {
29452
+ const importForCountry = accountFormatsImports[`./${country2}.json`];
29453
+ if (!importForCountry) {
29454
+ throw Error(`No account formats available for ${country2}`);
29455
+ }
29456
+ return (await importForCountry()).default;
29457
+ };
29612
29458
  const isInstantVerificationAvailable = ({
29613
29459
  country: country2,
29614
29460
  verificationVendorsCallback,
@@ -29719,8 +29565,7 @@ function PayoutDetailsDropinComponent({
29719
29565
  isSettingEnabled
29720
29566
  } = useSettingsContext();
29721
29567
  const {
29722
- getConfiguration: getConfiguration2,
29723
- getPayoutAccountFormat: getPayoutAccountFormat2
29568
+ getConfiguration: getConfiguration2
29724
29569
  } = useConfigurationApi();
29725
29570
  const defaultPayoutCountry = getRegistrationCountry(legalEntityResponse);
29726
29571
  const existingPayoutDetails = transferInstrument ? mapTransferInstrumentToPayoutAccount(transferInstrument) : void 0;
@@ -29800,7 +29645,7 @@ function PayoutDetailsDropinComponent({
29800
29645
  legalEntityType: legalEntityResponse.type,
29801
29646
  capabilities
29802
29647
  });
29803
- const getPayoutAccountFormatData = useCallback(async () => getPayoutAccountFormat2(bankAccountCountry2), [bankAccountCountry2]);
29648
+ const getPayoutAccountFormatData = useCallback(async () => getAccountFormatsForCountry(bankAccountCountry2), [bankAccountCountry2]);
29804
29649
  const {
29805
29650
  fieldConfigurations,
29806
29651
  requiredFields,
@@ -30971,7 +30816,7 @@ const serviceAgreementValidationRules = {
30971
30816
  errorMessage: "fieldIsRequired"
30972
30817
  }
30973
30818
  };
30974
- const logger$a = createLogger("useServiceAgreement");
30819
+ const logger$b = createLogger("useServiceAgreement");
30975
30820
  const FALLBACK_LANGUAGE_CODE = "en";
30976
30821
  const useServiceAgreement = ({
30977
30822
  handleGetServiceAgreement,
@@ -31000,7 +30845,7 @@ const useServiceAgreement = ({
31000
30845
  language: agreementLanguage
31001
30846
  });
31002
30847
  if (!document2) {
31003
- logger$a.log('"document" field was missing in response');
30848
+ logger$b.log('"document" field was missing in response');
31004
30849
  return;
31005
30850
  }
31006
30851
  const contract = JSON.parse(decodeURIComponent(escape(window.atob(document2))));
@@ -31018,7 +30863,7 @@ const useServiceAgreement = ({
31018
30863
  throw err;
31019
30864
  }
31020
30865
  };
31021
- requestServiceAgreement().catch(logger$a.error);
30866
+ requestServiceAgreement().catch(logger$b.error);
31022
30867
  }, [handleGetServiceAgreement, handleServiceAgreementIsNotAvailableInThatLanguage, agreementLanguage, legalEntityId, serviceAgreementType]);
31023
30868
  return {
31024
30869
  loading: loading2,
@@ -31858,7 +31703,7 @@ function TrustDropinComponent({
31858
31703
  }
31859
31704
  const PAGES_WITH_POLLING = [TaskTypes.DECISION_MAKER_OVERVIEW, TaskTypes.TASKS_OVERVIEW];
31860
31705
  const POLLING_INTERVAL = 3e3;
31861
- const logger$9 = createLogger("DropinComposerComponent");
31706
+ const logger$a = createLogger("DropinComposerComponent");
31862
31707
  const isOrganizationSettlorWithExemptionReasonEnabled = (enabled, country2) => country2 === CountryCodes.Australia && enabled;
31863
31708
  function DropinComposerComponent({
31864
31709
  capabilities,
@@ -31950,7 +31795,7 @@ function DropinComposerComponent({
31950
31795
  setPciStatus(response);
31951
31796
  return response;
31952
31797
  } catch (e) {
31953
- logger$9.warn(i18n.get("failedToGetPciStatus"));
31798
+ logger$a.warn(i18n.get("failedToGetPciStatus"));
31954
31799
  }
31955
31800
  }
31956
31801
  return void 0;
@@ -31979,7 +31824,7 @@ function DropinComposerComponent({
31979
31824
  useEffect(() => {
31980
31825
  if (!tasks.includes(TaskTypes.PCI_DSS))
31981
31826
  return;
31982
- getPciTemplate().catch(logger$9.error);
31827
+ getPciTemplate().catch(logger$a.error);
31983
31828
  }, [getPciTemplate, tasks]);
31984
31829
  const getServiceAgreementAcceptanceInfos = async () => {
31985
31830
  if (rootLegalEntity.id && (args == null ? void 0 : args.handleGetServiceAgreementAcceptanceInfos)) {
@@ -31987,7 +31832,7 @@ function DropinComposerComponent({
31987
31832
  const response = await args.handleGetServiceAgreementAcceptanceInfos(rootLegalEntity.id);
31988
31833
  setServiceAgreementAcceptanceInfos(response.data);
31989
31834
  } catch (e) {
31990
- logger$9.warn(i18n.get("failedToGetServiceAgreementStatus"));
31835
+ logger$a.warn(i18n.get("failedToGetServiceAgreementStatus"));
31991
31836
  }
31992
31837
  }
31993
31838
  };
@@ -31997,7 +31842,7 @@ function DropinComposerComponent({
31997
31842
  const response = await args.handleGetServiceAgreementStatus(rootLegalEntity.id);
31998
31843
  setServiceAgreementTypes(response.termsOfServiceTypes);
31999
31844
  } catch (e) {
32000
- logger$9.warn(i18n.get("failedToGetServiceAgreementStatus"));
31845
+ logger$a.warn(i18n.get("failedToGetServiceAgreementStatus"));
32001
31846
  }
32002
31847
  }
32003
31848
  };
@@ -32036,7 +31881,7 @@ function DropinComposerComponent({
32036
31881
  setCapabilityProblems(getCapabilityProblems(response));
32037
31882
  return response;
32038
31883
  } catch (e) {
32039
- logger$9.warn(i18n.get("failedToFetchLegalEntityDetails"));
31884
+ logger$a.warn(i18n.get("failedToFetchLegalEntityDetails"));
32040
31885
  }
32041
31886
  }
32042
31887
  return void 0;
@@ -32048,7 +31893,7 @@ function DropinComposerComponent({
32048
31893
  setTrust(response);
32049
31894
  return response;
32050
31895
  } catch (e) {
32051
- logger$9.warn(i18n.get("failedToFetchTrustDetails"));
31896
+ logger$a.warn(i18n.get("failedToFetchTrustDetails"));
32052
31897
  }
32053
31898
  }
32054
31899
  return void 0;
@@ -32098,7 +31943,7 @@ function DropinComposerComponent({
32098
31943
  label: i18n.get("successFullyRemovedTrustMember")
32099
31944
  });
32100
31945
  } catch (err) {
32101
- logger$9.error(`Failed to delete trust member`, err);
31946
+ logger$a.error(`Failed to delete trust member`, err);
32102
31947
  showToast({
32103
31948
  type: ToastType.ERROR,
32104
31949
  label: i18n.get("failedToRemoveTrustMember")
@@ -32168,7 +32013,7 @@ function DropinComposerComponent({
32168
32013
  }
32169
32014
  break;
32170
32015
  default:
32171
- logger$9.warn(`Updating trust member type "${trustMember.trustMemberType}" is not implemented.`);
32016
+ logger$a.warn(`Updating trust member type "${trustMember.trustMemberType}" is not implemented.`);
32172
32017
  }
32173
32018
  showToast({
32174
32019
  label: i18n.get("successfullyUpdatedDetails"),
@@ -32176,7 +32021,7 @@ function DropinComposerComponent({
32176
32021
  });
32177
32022
  await refreshTrustAndRunOnSubmit(trust2, 1);
32178
32023
  } catch (err) {
32179
- logger$9.error(err);
32024
+ logger$a.error(err);
32180
32025
  showToast({
32181
32026
  label: i18n.get("failedToUpdateDetails"),
32182
32027
  type: ToastType.ERROR
@@ -32399,7 +32244,7 @@ function DropinComposerComponent({
32399
32244
  }
32400
32245
  };
32401
32246
  setIsLoadingConfiguration(true);
32402
- fetchConfiguration().catch(logger$9.error).finally(() => {
32247
+ fetchConfiguration().catch(logger$a.error).finally(() => {
32403
32248
  setIsLoadingConfiguration(false);
32404
32249
  onLoad();
32405
32250
  });
@@ -32418,7 +32263,7 @@ function DropinComposerComponent({
32418
32263
  return;
32419
32264
  }
32420
32265
  const timeoutId = setTimeout(() => {
32421
- refreshLegalEntity().catch(logger$9.error);
32266
+ refreshLegalEntity().catch(logger$a.error);
32422
32267
  }, POLLING_INTERVAL);
32423
32268
  return () => {
32424
32269
  clearInterval(timeoutId);
@@ -33079,6 +32924,22 @@ const deleteTransferInstrument = async (context, transferInstrumentId) => {
33079
32924
  }
33080
32925
  });
33081
32926
  };
32927
+ const generateOnboardingLink = async (context, config) => {
32928
+ const {
32929
+ loadingContext,
32930
+ legalEntityId
32931
+ } = context;
32932
+ return httpPost({
32933
+ loadingContext,
32934
+ errorLevel: "warn",
32935
+ errorMessage: `Fetching onboarding link was not successful`,
32936
+ path: `${legalEntityId}/onboardingStatus/redirectLink`,
32937
+ authentication: "jwt",
32938
+ headers: {
32939
+ "Content-Type": "application/json"
32940
+ }
32941
+ }, config);
32942
+ };
33082
32943
  const getAddress = async (context, addressId) => {
33083
32944
  const {
33084
32945
  loadingContext,
@@ -33111,6 +32972,22 @@ const getIdverificationToken = async (context, request) => {
33111
32972
  }
33112
32973
  }, request);
33113
32974
  };
32975
+ const getOnboardingStatus = async (context) => {
32976
+ const {
32977
+ loadingContext,
32978
+ legalEntityId
32979
+ } = context;
32980
+ return httpGet({
32981
+ loadingContext,
32982
+ errorLevel: "warn",
32983
+ errorMessage: `Fetching onboarding status was not successful`,
32984
+ path: `${legalEntityId}/onboardingStatus`,
32985
+ authentication: "jwt",
32986
+ headers: {
32987
+ "Content-Type": "application/json"
32988
+ }
32989
+ });
32990
+ };
33114
32991
  const handleBankVerificationError = async (context, errorCode, errorMessage, state2, metadata) => {
33115
32992
  const {
33116
32993
  loadingContext,
@@ -33208,7 +33085,9 @@ const useComponentApi = (rootLegalEntityId) => {
33208
33085
  getAddress: async (address2) => getAddress(baseRequestContext, address2),
33209
33086
  getIdVerificationToken: async (legalEntityId, data) => getIdverificationToken(baseRequestContext, data),
33210
33087
  idVerificationStartCheck: async (legalEntityId, data) => idVerificationStartcheck(baseRequestContext, data),
33211
- getTransferInstruments: async () => getTransferInstruments(baseRequestContext)
33088
+ getTransferInstruments: async () => getTransferInstruments(baseRequestContext),
33089
+ getOnboardingStatus: async () => getOnboardingStatus(baseRequestContext),
33090
+ generateOnboardingLink: async (config) => generateOnboardingLink(baseRequestContext, config)
33212
33091
  };
33213
33092
  }, [base, rootLegalEntityId]);
33214
33093
  };
@@ -33231,7 +33110,7 @@ class EventEmitter {
33231
33110
  };
33232
33111
  }
33233
33112
  }
33234
- const logger$8 = createLogger("CreateIndividualComponent");
33113
+ const logger$9 = createLogger("CreateIndividualComponent");
33235
33114
  function CreateIndividualComponent({
33236
33115
  parentLegalEntityId,
33237
33116
  legalEntityId,
@@ -33264,13 +33143,13 @@ function CreateIndividualComponent({
33264
33143
  setParentLegalEntity(parentEntity);
33265
33144
  setLegalEntity(entity);
33266
33145
  } catch (error) {
33267
- logger$8.error(error);
33146
+ logger$9.error(error);
33268
33147
  } finally {
33269
33148
  setLoadingStatus("success");
33270
33149
  }
33271
33150
  }, [parentLegalEntityId, legalEntityId, getLegalEntity2]);
33272
33151
  useEffect(() => {
33273
- fetchLegalEntity().catch(logger$8.error);
33152
+ fetchLegalEntity().catch(logger$9.error);
33274
33153
  }, [fetchLegalEntity]);
33275
33154
  return loadingStatus === "loading" ? jsx(Loader, {
33276
33155
  size: "medium"
@@ -33293,7 +33172,7 @@ function CreateIndividualComponent({
33293
33172
  taskType
33294
33173
  });
33295
33174
  }
33296
- const logger$7 = createLogger("CreateTransferInstrumentComponent");
33175
+ const logger$8 = createLogger("CreateTransferInstrumentComponent");
33297
33176
  function CreateTransferInstrumentComponent({
33298
33177
  legalEntityId,
33299
33178
  transferInstrumentId,
@@ -33330,7 +33209,7 @@ function CreateTransferInstrumentComponent({
33330
33209
  const ti = await getTransferInstrument2(transferInstrumentId);
33331
33210
  setTransferInstrument(ti);
33332
33211
  }
33333
- })().catch(logger$7.error).finally(() => {
33212
+ })().catch(logger$8.error).finally(() => {
33334
33213
  setLoadingStatus("success");
33335
33214
  });
33336
33215
  }, [transferInstrumentId, fetchLegalEntity, getTransferInstrument2]);
@@ -33530,7 +33409,7 @@ function ManageTransferInstrumentOverviewItem({
33530
33409
  })]
33531
33410
  }, transferInstrumentReference.transferInstrument.id);
33532
33411
  }
33533
- const logger$6 = createLogger("ManageTransferInstrumentOverview");
33412
+ const logger$7 = createLogger("ManageTransferInstrumentOverview");
33534
33413
  function ManageTransferInstrumentOverview({
33535
33414
  transferInstrumentReferences,
33536
33415
  onAdd,
@@ -33555,7 +33434,7 @@ function ManageTransferInstrumentOverview({
33555
33434
  ...transferInstrumentsMap
33556
33435
  });
33557
33436
  } catch (e) {
33558
- logger$6.error(e);
33437
+ logger$7.error(e);
33559
33438
  }
33560
33439
  };
33561
33440
  const onRemoveTransferinstrument = async (transferInstrumentId) => {
@@ -33563,7 +33442,7 @@ function ManageTransferInstrumentOverview({
33563
33442
  await deleteTransferInstrument2(transferInstrumentId);
33564
33443
  onRemove(transferInstrumentId);
33565
33444
  } catch (e) {
33566
- logger$6.error(e);
33445
+ logger$7.error(e);
33567
33446
  }
33568
33447
  };
33569
33448
  const transferInstrumentListEle = transferInstrumentReferences.map((transferInstrumentRef) => jsx(ManageTransferInstrumentOverviewItem, {
@@ -33588,7 +33467,7 @@ function ManageTransferInstrumentOverview({
33588
33467
  })]
33589
33468
  });
33590
33469
  }
33591
- const logger$5 = createLogger("ManageTransferInstrumentComponent");
33470
+ const logger$6 = createLogger("ManageTransferInstrumentComponent");
33592
33471
  function ManageTransferInstrumentComponent({
33593
33472
  legalEntityId,
33594
33473
  onAdd,
@@ -33624,7 +33503,7 @@ function ManageTransferInstrumentComponent({
33624
33503
  }, [getTransferInstruments2, getLegalEntity2, i18n, legalEntityId]);
33625
33504
  useEffect(() => {
33626
33505
  eventEmitter == null ? void 0 : eventEmitter.on("updateLocale", (locale) => setLocale(locale));
33627
- init2().catch(logger$5.error).finally(() => {
33506
+ init2().catch(logger$6.error).finally(() => {
33628
33507
  setLoadingStatus("success");
33629
33508
  });
33630
33509
  }, [init2, setLocale, eventEmitter]);
@@ -33634,7 +33513,7 @@ function ManageTransferInstrumentComponent({
33634
33513
  }
33635
33514
  }, [hasOnlyVerifiedTransferInstruments, timeoutId, transferInstruments]);
33636
33515
  const onRemove = (transferInstrumentId) => {
33637
- refreshTransferInstruments().catch(logger$5.error);
33516
+ refreshTransferInstruments().catch(logger$6.error);
33638
33517
  onRemoveSuccess == null ? void 0 : onRemoveSuccess(transferInstrumentId, legalEntityId);
33639
33518
  };
33640
33519
  const render2 = () => {
@@ -33662,6 +33541,190 @@ function ManageTransferInstrumentComponent({
33662
33541
  children: render2()
33663
33542
  });
33664
33543
  }
33544
+ const OnboardingRedirectComponent$1 = "";
33545
+ var OnboardingStatus = /* @__PURE__ */ ((OnboardingStatus2) => {
33546
+ OnboardingStatus2["INCOMPLETE"] = "INCOMPLETE";
33547
+ OnboardingStatus2["PROCESSING"] = "PROCESSING";
33548
+ OnboardingStatus2["ERROR"] = "ERROR";
33549
+ OnboardingStatus2["FINISHED"] = "FINISHED";
33550
+ return OnboardingStatus2;
33551
+ })(OnboardingStatus || {});
33552
+ const contentMap = {
33553
+ [OnboardingStatus.INCOMPLETE]: {
33554
+ header: "onboardingRedirectInitialHeader",
33555
+ description: ["onboardingRedirectInitialDescriptionP1"],
33556
+ ctaButton: "onboardingRedirectInitialCtaButton"
33557
+ },
33558
+ [OnboardingStatus.PROCESSING]: {
33559
+ header: "onboardingRedirectInProgressHeader",
33560
+ description: ["onboardingRedirectInProgressDescriptionP1"],
33561
+ ctaButton: "onboardingRedirectInProgressCtaButton"
33562
+ },
33563
+ [OnboardingStatus.ERROR]: {
33564
+ header: "onboardingRedirectErrorsHeader",
33565
+ description: ["onboardingRedirectErrorsDescriptionP1", "onboardingRedirectErrorsDescriptionP2"],
33566
+ ctaButton: "onboardingRedirectErrorsCtaButton"
33567
+ },
33568
+ [OnboardingStatus.FINISHED]: {
33569
+ header: "onboardingRedirectFinishedHeader",
33570
+ description: ["onboardingRedirectFinishedDescriptionP1"],
33571
+ ctaButton: "onboardingRedirectFinishedCtaButton"
33572
+ }
33573
+ };
33574
+ function getContentByStatus(status) {
33575
+ return contentMap[status];
33576
+ }
33577
+ const logger$5 = createLogger("OnboardingRedirectComponent");
33578
+ function OnboardingRedirectComponent({
33579
+ legalEntityId,
33580
+ redirectUrl,
33581
+ onStatusChange,
33582
+ onError,
33583
+ onRedirect,
33584
+ eventEmitter
33585
+ }) {
33586
+ if (!legalEntityId) {
33587
+ throw new Error("legalEntityId argument is required!");
33588
+ }
33589
+ const {
33590
+ i18n,
33591
+ setLocale
33592
+ } = useI18nContext();
33593
+ const {
33594
+ getOnboardingStatus: getOnboardingStatus2,
33595
+ generateOnboardingLink: generateOnboardingLink2
33596
+ } = useComponentApi(legalEntityId);
33597
+ const [onboardingStatus, setOnboardingStatus] = useState();
33598
+ const [alertContent, setAlertContent] = useState();
33599
+ const content = useMemo(() => {
33600
+ if (!onboardingStatus)
33601
+ return;
33602
+ const statusContent = getContentByStatus(onboardingStatus);
33603
+ if (statusContent)
33604
+ return statusContent;
33605
+ logger$5.error(`there is no content for status "${onboardingStatus}"`);
33606
+ }, [onboardingStatus]);
33607
+ const handleError = ({
33608
+ trKey,
33609
+ error
33610
+ }) => {
33611
+ if (trKey) {
33612
+ setAlertContent(trKey);
33613
+ }
33614
+ if (error) {
33615
+ logger$5.error(error);
33616
+ }
33617
+ if (typeof onError === "function") {
33618
+ const userMessage = trKey ? i18n.get(trKey) : "";
33619
+ onError({
33620
+ error: error || {
33621
+ message: userMessage
33622
+ },
33623
+ userMessage
33624
+ });
33625
+ }
33626
+ };
33627
+ useEffect(() => {
33628
+ setAlertContent("");
33629
+ (async () => {
33630
+ try {
33631
+ const {
33632
+ status
33633
+ } = await getOnboardingStatus2();
33634
+ setOnboardingStatus(status);
33635
+ if (typeof onStatusChange === "function") {
33636
+ onStatusChange(status);
33637
+ }
33638
+ } catch (error) {
33639
+ handleError({
33640
+ trKey: "onboardingRedirectLinkError",
33641
+ error
33642
+ });
33643
+ }
33644
+ })().catch(logger$5.error);
33645
+ }, [legalEntityId, getOnboardingStatus2]);
33646
+ useEffect(() => {
33647
+ if (eventEmitter) {
33648
+ eventEmitter.on("updateLocale", (locale) => setLocale(locale));
33649
+ }
33650
+ });
33651
+ const [loadingLinkStatus, setLinkLoadingStatus] = useState("success");
33652
+ const redirectToAdyen = async () => {
33653
+ setLinkLoadingStatus("loading");
33654
+ const config = {
33655
+ locale: i18n.locale,
33656
+ redirectUrl
33657
+ };
33658
+ try {
33659
+ const {
33660
+ link
33661
+ } = await generateOnboardingLink2(config);
33662
+ openLink(link, config);
33663
+ } catch (error) {
33664
+ handleError({
33665
+ trKey: "onboardingRedirectLinkError",
33666
+ error
33667
+ });
33668
+ } finally {
33669
+ setLinkLoadingStatus("success");
33670
+ }
33671
+ };
33672
+ const openLink = (link, config) => {
33673
+ const newTab = window.open("", "_blank");
33674
+ if (newTab) {
33675
+ newTab.location.href = link;
33676
+ if (typeof onRedirect === "function") {
33677
+ onRedirect({
33678
+ ...config,
33679
+ redirectTo: link
33680
+ });
33681
+ }
33682
+ } else {
33683
+ handleError({
33684
+ trKey: "onboardingRedirectOpenError"
33685
+ });
33686
+ }
33687
+ };
33688
+ const renderBody = () => {
33689
+ if (alertContent) {
33690
+ return jsx(Alert, {
33691
+ title: i18n.get(alertContent),
33692
+ hasCloseButton: false,
33693
+ type: AlertTypes.ERROR
33694
+ });
33695
+ }
33696
+ if (content) {
33697
+ return jsxs(Fragment, {
33698
+ children: [jsx("h1", {
33699
+ className: "adyen-onboarding-redirect__header",
33700
+ children: i18n.get(content.header)
33701
+ }), content.description.map((key) => jsx("p", {
33702
+ className: "adyen-onboarding-redirect__description",
33703
+ children: i18n.get(key)
33704
+ }, key)), jsx("div", {
33705
+ className: "adyen-onboarding-redirect__footer",
33706
+ children: jsx(Button, {
33707
+ label: i18n.get(content.ctaButton),
33708
+ onClick: redirectToAdyen,
33709
+ type: "button",
33710
+ className: "adyen-onboarding-redirect__button",
33711
+ role: "link",
33712
+ negative: onboardingStatus !== OnboardingStatus.FINISHED,
33713
+ tertiary: onboardingStatus === OnboardingStatus.FINISHED,
33714
+ status: loadingLinkStatus === "loading" ? "loading" : "default"
33715
+ })
33716
+ })]
33717
+ });
33718
+ }
33719
+ return jsx(Loader, {
33720
+ size: "medium"
33721
+ });
33722
+ };
33723
+ return jsx("section", {
33724
+ className: "adyen-onboarding-redirect",
33725
+ children: renderBody()
33726
+ });
33727
+ }
33665
33728
  const componentsMap = {
33666
33729
  individualDropin: IndividualDropinComponent,
33667
33730
  companyDropin: CompanyDropinComponent,
@@ -33673,7 +33736,8 @@ const componentsMap = {
33673
33736
  pci: PciDropinComponent,
33674
33737
  createTransferInstrumentComponent: CreateTransferInstrumentComponent,
33675
33738
  createIndividualComponent: CreateIndividualComponent,
33676
- manageTransferInstrumentComponent: ManageTransferInstrumentComponent
33739
+ manageTransferInstrumentComponent: ManageTransferInstrumentComponent,
33740
+ onboardingRedirectComponent: OnboardingRedirectComponent
33677
33741
  };
33678
33742
  const AuthProvider = ({
33679
33743
  children,
@@ -33726,15 +33790,6 @@ const loadDocumentGuidance = async (loadingContext) => {
33726
33790
  }, null, "text");
33727
33791
  document.body.insertBefore(buildSpriteDOMFromResponse(responseData), document.body.firstChild);
33728
33792
  };
33729
- 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-d7a003bc.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") });
33730
- const getAccountFormatsForCountry = async (country2) => {
33731
- const importForCountry = accountFormatsImports[`./${country2}.json`];
33732
- if (!importForCountry) {
33733
- throw Error(`No account formats available for ${country2}`);
33734
- }
33735
- return (await importForCountry()).default;
33736
- };
33737
- const getPayoutAccountFormat = async (country2) => getAccountFormatsForCountry(country2);
33738
33793
  const getAllowedLocales$1 = async (context) => {
33739
33794
  const {
33740
33795
  loadingContext,
@@ -33846,7 +33901,6 @@ const getEmbeddedApi = ({
33846
33901
  taskList: tasks
33847
33902
  };
33848
33903
  },
33849
- getPayoutAccountFormat: async (country2) => getPayoutAccountFormat(country2),
33850
33904
  getDataset: async (datasetIdentifier2, locale) => getDataset$1({
33851
33905
  ...baseRequestContext,
33852
33906
  loadingContext
@@ -34002,7 +34056,6 @@ const getKycExternalApi = ({
34002
34056
  loadingContext,
34003
34057
  clientKey
34004
34058
  }, request),
34005
- getPayoutAccountFormat: async (country2) => getPayoutAccountFormat(country2),
34006
34059
  getAllowedCountries: async () => getAllowedCountries({
34007
34060
  loadingContext,
34008
34061
  clientKey
@@ -35130,6 +35183,24 @@ const createIndividualComponentSchema = {
35130
35183
  type: "function"
35131
35184
  }
35132
35185
  };
35186
+ const onboardingRedirectComponentSchema = {
35187
+ legalEntityId: {
35188
+ type: "string",
35189
+ required: true
35190
+ },
35191
+ onStatusChange: {
35192
+ type: "function"
35193
+ },
35194
+ onError: {
35195
+ type: "function"
35196
+ },
35197
+ onRedirect: {
35198
+ type: "function"
35199
+ },
35200
+ redirectUrl: {
35201
+ type: "string"
35202
+ }
35203
+ };
35133
35204
  const componentsSchemaMap = {
35134
35205
  payoutAccount: payoutAccountSchema,
35135
35206
  soleProprietorDropin: solePropDropinSchema,
@@ -35141,7 +35212,8 @@ const componentsSchemaMap = {
35141
35212
  taskList: taskListSchema,
35142
35213
  manageTransferInstrumentComponent: manageTransferInstrumentComponentSchema,
35143
35214
  createIndividualComponent: createIndividualComponentSchema,
35144
- createTransferInstrumentComponent: createTransferInstrumentComponentSchema
35215
+ createTransferInstrumentComponent: createTransferInstrumentComponentSchema,
35216
+ onboardingRedirectComponent: onboardingRedirectComponentSchema
35145
35217
  };
35146
35218
  const validateComponentName = (componentName) => {
35147
35219
  if (!componentName) {
@@ -35171,14 +35243,14 @@ const validateCoreOptions = (coreOptions) => {
35171
35243
  Please specify either sdkToken and getSdkToken handler or a clientKey for the SDK to initialize!
35172
35244
 
35173
35245
 
35174
- - For more information please check: https://github.com/Adyen/adyen-kyc-components#configuration.`);
35246
+ - For more information please check: https://docs.adyen.com/platforms/onboard-users/components/?tab=npm_recommended__1#step-7-initiate-the-onboarding-component`);
35175
35247
  }
35176
35248
  if (missing.length > 0) {
35177
35249
  throw new Error(`
35178
35250
 
35179
35251
  Please specify a ${listify(missing)} for the SDK to initialize!
35180
35252
 
35181
- - For more information please check: https://github.com/Adyen/adyen-kyc-components#configuration.
35253
+ - For more information please check: https://docs.adyen.com/platforms/onboard-users/components/?tab=npm_recommended__1#step-7-initiate-the-onboarding-component
35182
35254
  `);
35183
35255
  }
35184
35256
  };