@adyen/kyc-components 3.4.0 → 3.5.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 (454) hide show
  1. package/dist/es/adyen-kyc-components.es.js +1417 -1111
  2. package/dist/style.css +1933 -72
  3. package/dist/types/components/BankDocument/component/BankDocumentComponent.d.ts +6 -0
  4. package/dist/types/components/BankDocument/component/BankDocumentRequirements.d.ts +10 -0
  5. package/dist/types/components/BankDocument/component/validate.d.ts +3 -0
  6. package/dist/types/components/BankDocument/index.d.ts +2 -0
  7. package/dist/types/components/BankDocument/types.d.ts +47 -0
  8. package/dist/types/components/BusinessTypeSelection/BusinessTypeSelection.d.ts +1 -1
  9. package/dist/types/components/BusinessTypeSelection/types.d.ts +2 -2
  10. package/dist/types/components/Dropins/PayoutDetailsDropin/components/PayoutDetailsDropinComponent.d.ts +1 -1
  11. package/dist/types/components/EmbeddedDropins/OnboardingRedirect/OnboardingRedirectComponent.d.ts +4 -3
  12. package/dist/types/components/EmbeddedDropins/OnboardingRedirect/types.d.ts +5 -1
  13. package/dist/types/components/PayoutDetails/component/PayoutDetailsComponent.d.ts +6 -5
  14. package/dist/types/components/PayoutDetails/types.d.ts +3 -2
  15. package/dist/types/components/ProofOfResidency/types.d.ts +1 -1
  16. package/dist/types/components/TaskList/component/TaskListComponent.d.ts +1 -1
  17. package/dist/types/components/TaskList/types.d.ts +3 -0
  18. package/dist/types/components/internal/Address/utils.d.ts +1 -1
  19. package/dist/types/components/internal/FormFields/Select/types.d.ts +2 -2
  20. package/dist/types/components/internal/List/ListItem.d.ts +1 -1
  21. package/dist/types/components/internal/List/types.d.ts +2 -2
  22. package/dist/types/components/internal/PhoneInput/types.d.ts +2 -4
  23. package/dist/types/components/internal/PhoneInput/validate.d.ts +2 -4
  24. package/dist/types/core/Context/SettingsContext/{SettingsContextProvider.d.ts → SettingsProvider.d.ts} +1 -1
  25. package/dist/types/core/Context/SettingsContext/types.d.ts +26 -5
  26. package/dist/types/core/Context/SettingsContext/useSetting.d.ts +2 -0
  27. package/dist/types/core/Services/componentApi/index.d.ts +0 -1
  28. package/dist/types/core/Services/utils.d.ts +2 -2
  29. package/dist/types/core/errorMapping.d.ts +10 -0
  30. package/dist/types/core/hooks/useAssociatedLegalArrangement.d.ts +11 -0
  31. package/dist/types/core/models/api/data-set.d.ts +1 -1
  32. package/dist/types/core/models/api/onboarding-redirect.d.ts +2 -2
  33. package/dist/types/core/models/api/remediating-action.d.ts +1 -1
  34. package/dist/types/core/models/api/verification-error.d.ts +3 -3
  35. package/dist/types/core/models/errors/validation-error.d.ts +2 -2
  36. package/dist/types/language/config.d.ts +23 -11
  37. package/dist/types/utils/api/processCapabilitites.d.ts +2 -1
  38. package/dist/types/utils/entity-status-util.d.ts +1 -1
  39. package/dist/types/utils/mapping/componentApiMapping.d.ts +2 -2
  40. package/dist/types/utils/mapping/mapping.d.ts +2 -2
  41. package/dist/types/utils/perCountry.d.ts +3 -0
  42. package/package.json +17 -18
  43. package/dist/types/components/PayoutBankStatement/component/BankDocumentRequirements.d.ts +0 -9
  44. package/dist/types/components/PayoutBankStatement/component/PayoutBankStatementComponent.d.ts +0 -6
  45. package/dist/types/components/PayoutBankStatement/component/validate.d.ts +0 -3
  46. package/dist/types/components/PayoutBankStatement/types.d.ts +0 -33
  47. package/dist/types/core/Services/componentApi/get-bankVerification-providers.d.ts +0 -3
  48. /package/dist/es/{AD-670c62c0.mjs → AD-rNM7cqE8.mjs} +0 -0
  49. /package/dist/es/{AE-24bbc749.mjs → AE-DoU2c3CQ.mjs} +0 -0
  50. /package/dist/es/{AI-2f8eb3e4.mjs → AI-BQBZ2VVt.mjs} +0 -0
  51. /package/dist/es/{AL-dee818f3.mjs → AL-s4ei1ra4.mjs} +0 -0
  52. /package/dist/es/{AR-ddb2f621.mjs → AR-DDR8RTlN.mjs} +0 -0
  53. /package/dist/es/{AS-d857591e.mjs → AS-CvpjtIPo.mjs} +0 -0
  54. /package/dist/es/{AT-0d286d50.mjs → AT-Du3jf0QK.mjs} +0 -0
  55. /package/dist/es/{AU-e3d4ecff.mjs → AU-CaRlRNzq.mjs} +0 -0
  56. /package/dist/es/{AX-acf0cb07.mjs → AX-DL2IpBlq.mjs} +0 -0
  57. /package/dist/es/{AZ-febcbba9.mjs → AZ-DgnKHqSW.mjs} +0 -0
  58. /package/dist/es/{BA-36553325.mjs → BA-DbzAHDbo.mjs} +0 -0
  59. /package/dist/es/{BE-01b309e9.mjs → BE-B8RVrEa-.mjs} +0 -0
  60. /package/dist/es/{BG-b141efc4.mjs → BG-BAU_RbNU.mjs} +0 -0
  61. /package/dist/es/{BH-4252606c.mjs → BH-zzl3Aicz.mjs} +0 -0
  62. /package/dist/es/{BM-9d017537.mjs → BM-Bx0QpJE_.mjs} +0 -0
  63. /package/dist/es/{BR-afb9b585.mjs → BR-CcE5GVb_.mjs} +0 -0
  64. /package/dist/es/{BS-71942f8a.mjs → BS-C5xv5epf.mjs} +0 -0
  65. /package/dist/es/{BV-7c089d21.mjs → BV-BO7Uhvet.mjs} +0 -0
  66. /package/dist/es/{BY-b3362481.mjs → BY-Dn7i3b4O.mjs} +0 -0
  67. /package/dist/es/{CA-75a34c71.mjs → CA-BzjyYlZe.mjs} +0 -0
  68. /package/dist/es/{CH-b8cf24c1.mjs → CH-BvlOBUqB.mjs} +0 -0
  69. /package/dist/es/{CN-ebbef145.mjs → CN-y0BC6iBw.mjs} +0 -0
  70. /package/dist/es/{CR-8bf65073.mjs → CR-tTzdtq6M.mjs} +0 -0
  71. /package/dist/es/{CY-3e2ed850.mjs → CY-Bjyj7q7k.mjs} +0 -0
  72. /package/dist/es/{CZ-7ac97b54.mjs → CZ-DdsXQiz6.mjs} +0 -0
  73. /package/dist/es/{DE-2322162a.mjs → DE-k6sF_Z8P.mjs} +0 -0
  74. /package/dist/es/{DK-7cebcff6.mjs → DK-CUWikATU.mjs} +0 -0
  75. /package/dist/es/{DO-bfe9604e.mjs → DO-DpDyoh4y.mjs} +0 -0
  76. /package/dist/es/{EC-3ab33540.mjs → EC--TPKDJme.mjs} +0 -0
  77. /package/dist/es/{EE-cbb695a1.mjs → EE-o0O1NAuh.mjs} +0 -0
  78. /package/dist/es/{ES-094cb641.mjs → ES-8DboqUrj.mjs} +0 -0
  79. /package/dist/es/{FI-a1653669.mjs → FI-CwVBRBBQ.mjs} +0 -0
  80. /package/dist/es/{FJ-3b91f5c9.mjs → FJ-DkKmOAd6.mjs} +0 -0
  81. /package/dist/es/{FO-f647fb1e.mjs → FO-BCZCVxXR.mjs} +0 -0
  82. /package/dist/es/{FR-ea366f1a.mjs → FR-NtJ3QSfd.mjs} +0 -0
  83. /package/dist/es/{GB-a45c6caa.mjs → GB-BhRiUVO6.mjs} +0 -0
  84. /package/dist/es/{GE-ac5fdc42.mjs → GE--9n2R8_p.mjs} +0 -0
  85. /package/dist/es/{GF-6273f16b.mjs → GF-BeND08-O.mjs} +0 -0
  86. /package/dist/es/{GG-bad391fd.mjs → GG-DcYzHlYO.mjs} +0 -0
  87. /package/dist/es/{GI-757caa3a.mjs → GI-BWXRySSY.mjs} +0 -0
  88. /package/dist/es/{GL-226ffa9f.mjs → GL-Cu7M9Xnx.mjs} +0 -0
  89. /package/dist/es/{GP-473e593a.mjs → GP-Dm3WhONm.mjs} +0 -0
  90. /package/dist/es/{GR-3bcff231.mjs → GR-C0snveYS.mjs} +0 -0
  91. /package/dist/es/{GT-db5da0a4.mjs → GT-BykjfmEK.mjs} +0 -0
  92. /package/dist/es/{GU-ca4f557c.mjs → GU-oom5Ehbd.mjs} +0 -0
  93. /package/dist/es/{HK-40526878.mjs → HK-Dr5b-SwK.mjs} +0 -0
  94. /package/dist/es/{HR-29a95014.mjs → HR-DKAQpsSV.mjs} +0 -0
  95. /package/dist/es/{HU-80af7974.mjs → HU-DJWWX_5P.mjs} +0 -0
  96. /package/dist/es/{ID-506578fe.mjs → ID-BWJvoyJo.mjs} +0 -0
  97. /package/dist/es/{IE-32cbd0f3.mjs → IE-BPh0CHaO.mjs} +0 -0
  98. /package/dist/es/{IL-373dafad.mjs → IL-B8E0HdBj.mjs} +0 -0
  99. /package/dist/es/{IM-891b32c5.mjs → IM-ClrsAYLm.mjs} +0 -0
  100. /package/dist/es/{IN-bec55b74.mjs → IN-CVsYzQzI.mjs} +0 -0
  101. /package/dist/es/{IS-3a5d33d3.mjs → IS-BkDwjQHz.mjs} +0 -0
  102. /package/dist/es/{IT-4ff08cfe.mjs → IT-B3cLskCx.mjs} +0 -0
  103. /package/dist/es/{JE-307987ba.mjs → JE-C8HBNrJn.mjs} +0 -0
  104. /package/dist/es/{JM-3ce8fbab.mjs → JM-CH_LXMnd.mjs} +0 -0
  105. /package/dist/es/{JO-42a19672.mjs → JO-CD_uH_Uk.mjs} +0 -0
  106. /package/dist/es/{JP-0077f7b5.mjs → JP-DtK_xb_Y.mjs} +0 -0
  107. /package/dist/es/{KR-95fa1426.mjs → KR-DBPY5awJ.mjs} +0 -0
  108. /package/dist/es/{KW-a98f9b4c.mjs → KW-CiSCIyPm.mjs} +0 -0
  109. /package/dist/es/{KY-1aaca646.mjs → KY-FU9AuEMz.mjs} +0 -0
  110. /package/dist/es/{KZ-7daadd7e.mjs → KZ-CMFj-_rM.mjs} +0 -0
  111. /package/dist/es/{LB-1c59787b.mjs → LB-BRGM3Yl3.mjs} +0 -0
  112. /package/dist/es/{LI-77d06f2d.mjs → LI-DlCX-3GD.mjs} +0 -0
  113. /package/dist/es/{LT-f3ad2e3e.mjs → LT-XRkygwh8.mjs} +0 -0
  114. /package/dist/es/{LU-e8eedd03.mjs → LU-CV14IXAu.mjs} +0 -0
  115. /package/dist/es/{LV-6971017f.mjs → LV-ByV8yuF8.mjs} +0 -0
  116. /package/dist/es/{MC-ee5965bb.mjs → MC-CwHePfdt.mjs} +0 -0
  117. /package/dist/es/{MD-8041437f.mjs → MD-_IIMR66Q.mjs} +0 -0
  118. /package/dist/es/{ME-d9f4c3da.mjs → ME-Cfx8llkg.mjs} +0 -0
  119. /package/dist/es/{MK-8c45a314.mjs → MK-CEzz7Z_a.mjs} +0 -0
  120. /package/dist/es/{MP-093ac455.mjs → MP-C5acK0KC.mjs} +0 -0
  121. /package/dist/es/{MQ-f9c253cc.mjs → MQ-BEZo6wPU.mjs} +0 -0
  122. /package/dist/es/{MR-2f01df5c.mjs → MR-BoFyF5R-.mjs} +0 -0
  123. /package/dist/es/{MT-32167278.mjs → MT-C_-lQGuI.mjs} +0 -0
  124. /package/dist/es/{MU-e04facaa.mjs → MU-_tM1ai_B.mjs} +0 -0
  125. /package/dist/es/{MX-1d1a9644.mjs → MX-eayygS1f.mjs} +0 -0
  126. /package/dist/es/{MY-392e074a.mjs → MY-CsKpuB-w.mjs} +0 -0
  127. /package/dist/es/{NC-3b4b0260.mjs → NC-Bel2A-Fk.mjs} +0 -0
  128. /package/dist/es/{NL-b9bcb702.mjs → NL-C3LxWTQ7.mjs} +0 -0
  129. /package/dist/es/{NO-6809e6fd.mjs → NO-CjZgx8a-.mjs} +0 -0
  130. /package/dist/es/{NZ-43e49467.mjs → NZ-CG-hMfLg.mjs} +0 -0
  131. /package/dist/es/{PE-0c1072d7.mjs → PE-DvMRqGF_.mjs} +0 -0
  132. /package/dist/es/{PF-fb6bd5d0.mjs → PF-f7fSMI_4.mjs} +0 -0
  133. /package/dist/es/{PH-8ef2049d.mjs → PH-CjFT8xMY.mjs} +0 -0
  134. /package/dist/es/{PK-a445458d.mjs → PK-wMg8N3zK.mjs} +0 -0
  135. /package/dist/es/{PL-620a9ca4.mjs → PL-WpWUBPgN.mjs} +0 -0
  136. /package/dist/es/{PM-d4c0464a.mjs → PM-D4sBI2Px.mjs} +0 -0
  137. /package/dist/es/{PR-ad22b592.mjs → PR-BJ09dEXF.mjs} +0 -0
  138. /package/dist/es/{PS-cabe03e5.mjs → PS-CWFZXVi8.mjs} +0 -0
  139. /package/dist/es/{PT-33451f8d.mjs → PT-BarBZmwW.mjs} +0 -0
  140. /package/dist/es/{QA-3d255e2d.mjs → QA-CtUmYTKA.mjs} +0 -0
  141. /package/dist/es/{RE-8b1c7cc1.mjs → RE-DfaVzCe-.mjs} +0 -0
  142. /package/dist/es/{RO-2bfa665c.mjs → RO-DmWLrUu-.mjs} +0 -0
  143. /package/dist/es/{RS-3347a703.mjs → RS-DilO913f.mjs} +0 -0
  144. /package/dist/es/{RU-e3e01124.mjs → RU-B83Fu7c3.mjs} +0 -0
  145. /package/dist/es/{SA-91a0ead5.mjs → SA-BpimyQxp.mjs} +0 -0
  146. /package/dist/es/{SE-cb13f129.mjs → SE-BXNcwTPQ.mjs} +0 -0
  147. /package/dist/es/{SG-6086848e.mjs → SG-Uyk6Nl41.mjs} +0 -0
  148. /package/dist/es/{SI-2865f1da.mjs → SI-B5ALffDQ.mjs} +0 -0
  149. /package/dist/es/{SJ-598eb05e.mjs → SJ-BrJofAMz.mjs} +0 -0
  150. /package/dist/es/{SK-95af17ba.mjs → SK-DOE_fS4w.mjs} +0 -0
  151. /package/dist/es/{SM-4dd69f38.mjs → SM-BBQZf4DZ.mjs} +0 -0
  152. /package/dist/es/{TF-ea5a687e.mjs → TF-BDwH1us-.mjs} +0 -0
  153. /package/dist/es/{TH-567ec66c.mjs → TH-BxFJXEcZ.mjs} +0 -0
  154. /package/dist/es/{TL-9c45dea1.mjs → TL-BzbQs-FD.mjs} +0 -0
  155. /package/dist/es/{TN-40f39700.mjs → TN-Dc91A3rb.mjs} +0 -0
  156. /package/dist/es/{TR-17aaedbd.mjs → TR-BBxkpnZQ.mjs} +0 -0
  157. /package/dist/es/{TT-80575a0d.mjs → TT-D-FKOmmE.mjs} +0 -0
  158. /package/dist/es/{TW-8104c581.mjs → TW-r3G_Qs5B.mjs} +0 -0
  159. /package/dist/es/{UA-9a09a2fe.mjs → UA-vpfj8SEN.mjs} +0 -0
  160. /package/dist/es/{US-48190122.mjs → US-CFOdL8kt.mjs} +0 -0
  161. /package/dist/es/{UY-ede97218.mjs → UY-CUwq2MHm.mjs} +0 -0
  162. /package/dist/es/{VA-193042b9.mjs → VA-DlPtJwY9.mjs} +0 -0
  163. /package/dist/es/{VG-71c752e9.mjs → VG-yM0HOg57.mjs} +0 -0
  164. /package/dist/es/{VI-caa740af.mjs → VI-I7ADXxNd.mjs} +0 -0
  165. /package/dist/es/{VN-5a6450ab.mjs → VN-0gy1H7YD.mjs} +0 -0
  166. /package/dist/es/{WF-6ee9803f.mjs → WF-BlzFGDgv.mjs} +0 -0
  167. /package/dist/es/{YT-e12497c8.mjs → YT-17mSpzMD.mjs} +0 -0
  168. /package/dist/es/{ZA-77011c5b.mjs → ZA-BcxFTdWL.mjs} +0 -0
  169. /package/dist/es/{ad-e09b987a.mjs → ad-DT4vRaBJ.mjs} +0 -0
  170. /package/dist/es/{ae-8ca1be27.mjs → ae-BOcuAHGY.mjs} +0 -0
  171. /package/dist/es/{af-342e1bf5.mjs → af-CoKzErRW.mjs} +0 -0
  172. /package/dist/es/{ag-997e3f88.mjs → ag-g4DXUCrU.mjs} +0 -0
  173. /package/dist/es/{ai-402dc201.mjs → ai-CI-B0R9i.mjs} +0 -0
  174. /package/dist/es/{al-38b31dad.mjs → al-COFkJ5Ca.mjs} +0 -0
  175. /package/dist/es/{am-bc1403ea.mjs → am-Dra-uz-8.mjs} +0 -0
  176. /package/dist/es/{an-70336f96.mjs → an-BGvLoFME.mjs} +0 -0
  177. /package/dist/es/{ao-eedf3279.mjs → ao-DxG-ywGM.mjs} +0 -0
  178. /package/dist/es/{aq-2220e7e0.mjs → aq-D6KJELrz.mjs} +0 -0
  179. /package/dist/es/{ar-87abe42d.mjs → ar-D1__sXLf.mjs} +0 -0
  180. /package/dist/es/{arrow-left-3d6cd330.mjs → arrow-left-CCxYxfCP.mjs} +0 -0
  181. /package/dist/es/{arrow-right-994e40f8.mjs → arrow-right-DF4Qe-8E.mjs} +0 -0
  182. /package/dist/es/{as-6e35c5ec.mjs → as-CO1cnzQr.mjs} +0 -0
  183. /package/dist/es/{at-4310d424.mjs → at-DJ-_JUEF.mjs} +0 -0
  184. /package/dist/es/{au-50f94ba8.mjs → au-DQ7hwYxQ.mjs} +0 -0
  185. /package/dist/es/{aw-97918c9f.mjs → aw-DsF55GZp.mjs} +0 -0
  186. /package/dist/es/{ax-567f3585.mjs → ax-B7xGO2vL.mjs} +0 -0
  187. /package/dist/es/{az-85dbb96d.mjs → az-Bn_p9CvJ.mjs} +0 -0
  188. /package/dist/es/{ba-8afe4a33.mjs → ba-BoJK_mQe.mjs} +0 -0
  189. /package/dist/es/{bb-c4d79528.mjs → bb-Pm_QT_Dl.mjs} +0 -0
  190. /package/dist/es/{bd-0f87f359.mjs → bd-D7_YREZy.mjs} +0 -0
  191. /package/dist/es/{be-63be2126.mjs → be-CZxtblLB.mjs} +0 -0
  192. /package/dist/es/{bf-621f8737.mjs → bf-Dpx2xJ7g.mjs} +0 -0
  193. /package/dist/es/{bg-30061757.mjs → bg-GwVUUSOM.mjs} +0 -0
  194. /package/dist/es/{bh-a858ad79.mjs → bh-JbZUrPJw.mjs} +0 -0
  195. /package/dist/es/{bi-c08e68ba.mjs → bi-BltG81ar.mjs} +0 -0
  196. /package/dist/es/{bin-191739de.mjs → bin-CGwewvcn.mjs} +0 -0
  197. /package/dist/es/{bj-8e17226d.mjs → bj-zQUv2SQa.mjs} +0 -0
  198. /package/dist/es/{bl-b7b32ae6.mjs → bl-BUtmusIM.mjs} +0 -0
  199. /package/dist/es/{bm-b728ab56.mjs → bm-D_illE8L.mjs} +0 -0
  200. /package/dist/es/{bn-c706c05b.mjs → bn-1XDJa4lE.mjs} +0 -0
  201. /package/dist/es/{bo-1fad8399.mjs → bo-DlmVbV9z.mjs} +0 -0
  202. /package/dist/es/{br-11b9980d.mjs → br-DLB6QJZk.mjs} +0 -0
  203. /package/dist/es/{bs-090f5bd7.mjs → bs-8dBnGYPj.mjs} +0 -0
  204. /package/dist/es/{bt-c56334d3.mjs → bt-D9SHS-Ak.mjs} +0 -0
  205. /package/dist/es/{bv-570dcd11.mjs → bv-ahmv_jU3.mjs} +0 -0
  206. /package/dist/es/{bw-5de93ae1.mjs → bw-DzLl7TuC.mjs} +0 -0
  207. /package/dist/es/{by-e2457131.mjs → by-BztFrg5-.mjs} +0 -0
  208. /package/dist/es/{bz-30bbd0de.mjs → bz-DkyxrcWx.mjs} +0 -0
  209. /package/dist/es/{ca-39c0e436.mjs → ca-Bika55Ha.mjs} +0 -0
  210. /package/dist/es/{cc-ddc2a1db.mjs → cc-CFZz_AYg.mjs} +0 -0
  211. /package/dist/es/{cd-eab01270.mjs → cd-CgybrxtQ.mjs} +0 -0
  212. /package/dist/es/{cf-50f7241b.mjs → cf-D23Pv9G5.mjs} +0 -0
  213. /package/dist/es/{cg-e87aa981.mjs → cg-CfZbcFMO.mjs} +0 -0
  214. /package/dist/es/{ch-9637f347.mjs → ch-mKEGRNZY.mjs} +0 -0
  215. /package/dist/es/{check-b5a70376.mjs → check-CeSLN4_9.mjs} +0 -0
  216. /package/dist/es/{checkmark-fd78da6f.mjs → checkmark-DEh9MPYR.mjs} +0 -0
  217. /package/dist/es/{checkmark-small-bf41309f.mjs → checkmark-small-D_9HLctx.mjs} +0 -0
  218. /package/dist/es/{chevron-down-df0a3ac6.mjs → chevron-down-BzENwYSf.mjs} +0 -0
  219. /package/dist/es/{chevron-right-23ff6e47.mjs → chevron-right-DczMHcvL.mjs} +0 -0
  220. /package/dist/es/{chevron-up-abfe0e90.mjs → chevron-up-BLtnROd5.mjs} +0 -0
  221. /package/dist/es/{ci-41814a2b.mjs → ci-BJ-L2p8Z.mjs} +0 -0
  222. /package/dist/es/{ck-60b0d769.mjs → ck-j69yRZOc.mjs} +0 -0
  223. /package/dist/es/{cl-931fd7da.mjs → cl-C6BytT6S.mjs} +0 -0
  224. /package/dist/es/{cm-55c02792.mjs → cm-CUzrX5VK.mjs} +0 -0
  225. /package/dist/es/{cn-1526dac5.mjs → cn-De5mx48S.mjs} +0 -0
  226. /package/dist/es/{co-c7ada338.mjs → co-D1tfX-Rj.mjs} +0 -0
  227. /package/dist/es/{company-4f71e406.mjs → company-D5_F_6SW.mjs} +0 -0
  228. /package/dist/es/{contract-5bc99018.mjs → contract-C6wDy9zU.mjs} +0 -0
  229. /package/dist/es/{controlling-person-88da578f.mjs → controlling-person-C4KoSyi2.mjs} +0 -0
  230. /package/dist/es/{cr-bac1e451.mjs → cr-zUnaQPg8.mjs} +0 -0
  231. /package/dist/es/{cross-c2431982.mjs → cross-BadGfrgB.mjs} +0 -0
  232. /package/dist/es/{cu-af98b602.mjs → cu-DaGswOf0.mjs} +0 -0
  233. /package/dist/es/{cv-575fe55b.mjs → cv-C4-jr8vq.mjs} +0 -0
  234. /package/dist/es/{cw-6f1c60ce.mjs → cw-D-6419Qt.mjs} +0 -0
  235. /package/dist/es/{cx-7687e3a9.mjs → cx-DfNBgtwc.mjs} +0 -0
  236. /package/dist/es/{cy-eeff5dbd.mjs → cy-BRABzapK.mjs} +0 -0
  237. /package/dist/es/{cz-24eff96c.mjs → cz-DzosVcuo.mjs} +0 -0
  238. /package/dist/es/{de-8e2b6f6c.mjs → de-DRcIm1Ma.mjs} +0 -0
  239. /package/dist/es/{decision-maker-a2182544.mjs → decision-maker-Cef3-OzY.mjs} +0 -0
  240. /package/dist/es/{dj-e0f41411.mjs → dj-Da7LmapC.mjs} +0 -0
  241. /package/dist/es/{dk-a5073c43.mjs → dk-pty9O1pD.mjs} +0 -0
  242. /package/dist/es/{dm-9a3ee195.mjs → dm-GPioKBpx.mjs} +0 -0
  243. /package/dist/es/{do-5aa635df.mjs → do-k8Aqzhu5.mjs} +0 -0
  244. /package/dist/es/{document-88abec41.mjs → document-Cg4kZHpA.mjs} +0 -0
  245. /package/dist/es/{download-54b1a163.mjs → download-DGC5_Bxe.mjs} +0 -0
  246. /package/dist/es/{dz-7452e74d.mjs → dz-0w5shCtT.mjs} +0 -0
  247. /package/dist/es/{ec-c68c940e.mjs → ec-hp0Ygj0Y.mjs} +0 -0
  248. /package/dist/es/{edit-e3629680.mjs → edit--fDhojib.mjs} +0 -0
  249. /package/dist/es/{ee-1dbd9a40.mjs → ee-Dpf_R8jm.mjs} +0 -0
  250. /package/dist/es/{eg-40f9b2b5.mjs → eg-BgVS1lzb.mjs} +0 -0
  251. /package/dist/es/{eh-51f4bae2.mjs → eh-CEZasM8H.mjs} +0 -0
  252. /package/dist/es/{er-61cda111.mjs → er-RK3foPBe.mjs} +0 -0
  253. /package/dist/es/{es-78250575.mjs → es-CNey9Ibr.mjs} +0 -0
  254. /package/dist/es/{et-63dc8d1e.mjs → et-cNmj57xA.mjs} +0 -0
  255. /package/dist/es/{fi-e2d1f3df.mjs → fi-Ds4M7qRF.mjs} +0 -0
  256. /package/dist/es/{field-error-620e1903.mjs → field-error-WElEN1mN.mjs} +0 -0
  257. /package/dist/es/{fj-02f497c5.mjs → fj-D1q87nq5.mjs} +0 -0
  258. /package/dist/es/{fk-56af40af.mjs → fk-Y2rCs5DH.mjs} +0 -0
  259. /package/dist/es/{fm-0292f2ce.mjs → fm-BZKPOICq.mjs} +0 -0
  260. /package/dist/es/{fo-5063373c.mjs → fo-sSr8Xnvb.mjs} +0 -0
  261. /package/dist/es/{fr-fb20da2b.mjs → fr-BWzaj6Yw.mjs} +0 -0
  262. /package/dist/es/{fx-ca4da212.mjs → fx-DR2GRTdn.mjs} +0 -0
  263. /package/dist/es/{ga-31f5afca.mjs → ga-9LhduROZ.mjs} +0 -0
  264. /package/dist/es/{gb-4ae48840.mjs → gb-DA-V5Xdu.mjs} +0 -0
  265. /package/dist/es/{gd-25e40717.mjs → gd-JWdzcsNM.mjs} +0 -0
  266. /package/dist/es/{ge-939c150e.mjs → ge-Zw0skRye.mjs} +0 -0
  267. /package/dist/es/{gf-b8736c20.mjs → gf-Bq_uV48f.mjs} +0 -0
  268. /package/dist/es/{gg-4c532713.mjs → gg-CNzs8gF-.mjs} +0 -0
  269. /package/dist/es/{gh-7b187c5f.mjs → gh-2VT5yAxo.mjs} +0 -0
  270. /package/dist/es/{gi-e59b72be.mjs → gi-jPgXNb1L.mjs} +0 -0
  271. /package/dist/es/{gl-31e9b8e5.mjs → gl-c6mjlUME.mjs} +0 -0
  272. /package/dist/es/{gm-975999b2.mjs → gm-BgeXyCUQ.mjs} +0 -0
  273. /package/dist/es/{gn-3701984d.mjs → gn-CyyMcNZ3.mjs} +0 -0
  274. /package/dist/es/{gp-40fbae20.mjs → gp-D2PIp9tB.mjs} +0 -0
  275. /package/dist/es/{gq-86021eca.mjs → gq-BT6Gd3M4.mjs} +0 -0
  276. /package/dist/es/{gr-3b0c7597.mjs → gr-B5MQUSuL.mjs} +0 -0
  277. /package/dist/es/{gs-00bc8674.mjs → gs-6VXnGQzD.mjs} +0 -0
  278. /package/dist/es/{gt-05eb5f87.mjs → gt-4DSSuHgq.mjs} +0 -0
  279. /package/dist/es/{gu-497f9b0b.mjs → gu-Dxf1inL8.mjs} +0 -0
  280. /package/dist/es/{gw-b54f1365.mjs → gw-R5Dl09OL.mjs} +0 -0
  281. /package/dist/es/{gy-e917fca1.mjs → gy-CHx6kck0.mjs} +0 -0
  282. /package/dist/es/{hk-ddd60484.mjs → hk-DLy2j4QA.mjs} +0 -0
  283. /package/dist/es/{hm-03a2df0b.mjs → hm-CoK7Z2cg.mjs} +0 -0
  284. /package/dist/es/{hn-1748eed1.mjs → hn-DxQ71v08.mjs} +0 -0
  285. /package/dist/es/{hr-6b1bd9c8.mjs → hr-B6Zc8qZS.mjs} +0 -0
  286. /package/dist/es/{ht-13a1ab82.mjs → ht-DCMkLse8.mjs} +0 -0
  287. /package/dist/es/{hu-81872148.mjs → hu-JEoUAdpx.mjs} +0 -0
  288. /package/dist/es/{id-2c9c4235.mjs → id-D1C_2HvG.mjs} +0 -0
  289. /package/dist/es/{ie-ef96fd76.mjs → ie-d3bapQx-.mjs} +0 -0
  290. /package/dist/es/{il-20c3ccd4.mjs → il-CxVm0b2J.mjs} +0 -0
  291. /package/dist/es/{im-eb7a7143.mjs → im-BN_uhDka.mjs} +0 -0
  292. /package/dist/es/{in-67c16223.mjs → in-BGdmDROr.mjs} +0 -0
  293. /package/dist/es/{info-circle-3d2e7ba8.mjs → info-circle-DkHN1ugA.mjs} +0 -0
  294. /package/dist/es/{io-9adeb690.mjs → io-DYCJpAKf.mjs} +0 -0
  295. /package/dist/es/{iq-61ffc408.mjs → iq-BlsI9EWN.mjs} +0 -0
  296. /package/dist/es/{ir-bc3341c2.mjs → ir-DdOj6IVV.mjs} +0 -0
  297. /package/dist/es/{is-7c19d0ff.mjs → is-DN52KJKG.mjs} +0 -0
  298. /package/dist/es/{it-fa0dd04c.mjs → it-D6Y8tXt3.mjs} +0 -0
  299. /package/dist/es/{je-a29e157d.mjs → je-DR82slj4.mjs} +0 -0
  300. /package/dist/es/{jm-53f8ddb8.mjs → jm-LqaENrl9.mjs} +0 -0
  301. /package/dist/es/{jo-89d49ef8.mjs → jo-yLc64Rmj.mjs} +0 -0
  302. /package/dist/es/{jp-f97d7972.mjs → jp-Bb5uIw0H.mjs} +0 -0
  303. /package/dist/es/{ke-545eb9cb.mjs → ke-BK1BjkeR.mjs} +0 -0
  304. /package/dist/es/{kg-066a524e.mjs → kg-wlEuBvxO.mjs} +0 -0
  305. /package/dist/es/{kh-39620e7b.mjs → kh-DsvqlHLy.mjs} +0 -0
  306. /package/dist/es/{ki-900be23e.mjs → ki-Byta-OFo.mjs} +0 -0
  307. /package/dist/es/{km-b4e8c8ba.mjs → km-RNbmgGL_.mjs} +0 -0
  308. /package/dist/es/{kn-8ec9ee75.mjs → kn-CsHNi3Qt.mjs} +0 -0
  309. /package/dist/es/{kp-1cdc64be.mjs → kp-DskyYlvx.mjs} +0 -0
  310. /package/dist/es/{kr-53eac37f.mjs → kr-DlF6eJVr.mjs} +0 -0
  311. /package/dist/es/{kw-c4347b38.mjs → kw-BiQAd6j1.mjs} +0 -0
  312. /package/dist/es/{ky-a104dc86.mjs → ky-BvPeTNcl.mjs} +0 -0
  313. /package/dist/es/{kz-d64ba71d.mjs → kz-BQCcz0Va.mjs} +0 -0
  314. /package/dist/es/{la-04577eb2.mjs → la-COyntyzl.mjs} +0 -0
  315. /package/dist/es/{lb-c2470dd0.mjs → lb-CzTzggHc.mjs} +0 -0
  316. /package/dist/es/{lc-58fb8706.mjs → lc-CRL2hV6d.mjs} +0 -0
  317. /package/dist/es/{li-c887f5b7.mjs → li-BN-LWzEm.mjs} +0 -0
  318. /package/dist/es/{light-bulb-d403fe24.mjs → light-bulb-DEUhbRWP.mjs} +0 -0
  319. /package/dist/es/{lk-d10f8746.mjs → lk-Dh6uTZcH.mjs} +0 -0
  320. /package/dist/es/{location-e7c2a8f5.mjs → location-B1Til-7Q.mjs} +0 -0
  321. /package/dist/es/{lr-8422af8e.mjs → lr-CoVvhAhL.mjs} +0 -0
  322. /package/dist/es/{ls-bdcefbbc.mjs → ls-BFhv4OAc.mjs} +0 -0
  323. /package/dist/es/{lt-07e70fec.mjs → lt-C9w-Id1S.mjs} +0 -0
  324. /package/dist/es/{lu-b7c93ece.mjs → lu-Ccpxa0yN.mjs} +0 -0
  325. /package/dist/es/{lv-97900494.mjs → lv-Di5Y7vBC.mjs} +0 -0
  326. /package/dist/es/{ly-86ceab07.mjs → ly-BKgB-CvV.mjs} +0 -0
  327. /package/dist/es/{ma-21b21bdf.mjs → ma-gJj5XCI-.mjs} +0 -0
  328. /package/dist/es/{mc-f23b73f0.mjs → mc-BPN5JfTO.mjs} +0 -0
  329. /package/dist/es/{md-82ed1b49.mjs → md-aCqyKOgl.mjs} +0 -0
  330. /package/dist/es/{me-c45ff596.mjs → me-C6-JkhFA.mjs} +0 -0
  331. /package/dist/es/{mf-11563bd1.mjs → mf-jpyKjgsU.mjs} +0 -0
  332. /package/dist/es/{mg-f5f0546b.mjs → mg-TS1IwqtI.mjs} +0 -0
  333. /package/dist/es/{mh-06a860ed.mjs → mh-yHLgOFiA.mjs} +0 -0
  334. /package/dist/es/{mk-91356e13.mjs → mk-CaRVDngZ.mjs} +0 -0
  335. /package/dist/es/{ml-c3f2014e.mjs → ml-CUUHxg1j.mjs} +0 -0
  336. /package/dist/es/{mm-d138bd76.mjs → mm-CYK7VHSP.mjs} +0 -0
  337. /package/dist/es/{mn-9c4664d8.mjs → mn-D2S-h2WN.mjs} +0 -0
  338. /package/dist/es/{mo-54bd2fbe.mjs → mo-D1RG60zF.mjs} +0 -0
  339. /package/dist/es/{more-horiz-0ca4ec23.mjs → more-horiz-BieZKfy3.mjs} +0 -0
  340. /package/dist/es/{mp-796516e8.mjs → mp-DzztXSh1.mjs} +0 -0
  341. /package/dist/es/{mq-3511a92a.mjs → mq-Gsmz5_5j.mjs} +0 -0
  342. /package/dist/es/{mr-a4b18b6d.mjs → mr-C_s5K8p5.mjs} +0 -0
  343. /package/dist/es/{ms-91e4dcef.mjs → ms-Cgov7p4h.mjs} +0 -0
  344. /package/dist/es/{mt-9b58b6a6.mjs → mt-B9vsNjSx.mjs} +0 -0
  345. /package/dist/es/{mu-2307760c.mjs → mu-DeH79Hcd.mjs} +0 -0
  346. /package/dist/es/{mv-32c9699b.mjs → mv-CS9OGWK4.mjs} +0 -0
  347. /package/dist/es/{mw-2b9505ac.mjs → mw-BvDfO_4m.mjs} +0 -0
  348. /package/dist/es/{mx-98a49b74.mjs → mx-ByC0ZmOn.mjs} +0 -0
  349. /package/dist/es/{my-217f9384.mjs → my-BtbjhaSG.mjs} +0 -0
  350. /package/dist/es/{mz-92e1e39c.mjs → mz-BuZty0IX.mjs} +0 -0
  351. /package/dist/es/{na-3c30775f.mjs → na-BMRoTc_5.mjs} +0 -0
  352. /package/dist/es/{nc-c80aff50.mjs → nc-TfmJ1_PR.mjs} +0 -0
  353. /package/dist/es/{ne-b38208ab.mjs → ne-e6jU7Ta4.mjs} +0 -0
  354. /package/dist/es/{new-document-cfa14b7f.mjs → new-document-BEAJnXCG.mjs} +0 -0
  355. /package/dist/es/{nf-780a37dd.mjs → nf-DEApE1l7.mjs} +0 -0
  356. /package/dist/es/{ng-f5ea4118.mjs → ng-C481SfES.mjs} +0 -0
  357. /package/dist/es/{ni-60b41460.mjs → ni-DoG4DYn_.mjs} +0 -0
  358. /package/dist/es/{nl-975a8624.mjs → nl-Cmbofdv4.mjs} +0 -0
  359. /package/dist/es/{no-952bf512.mjs → no-CVO81I1l.mjs} +0 -0
  360. /package/dist/es/{np-5135aa90.mjs → np-zRmg82Re.mjs} +0 -0
  361. /package/dist/es/{nr-cecf1f05.mjs → nr-B5qQQRjH.mjs} +0 -0
  362. /package/dist/es/{nu-c1ad2dc9.mjs → nu-BI4Y-0EG.mjs} +0 -0
  363. /package/dist/es/{nz-70a6e29f.mjs → nz-DF7xbKn7.mjs} +0 -0
  364. /package/dist/es/{om-e5c99d1e.mjs → om-BjOei_ke.mjs} +0 -0
  365. /package/dist/es/{owners-a58a9f25.mjs → owners-D1pksb86.mjs} +0 -0
  366. /package/dist/es/{pa-0e401aff.mjs → pa-ZEXTGOfm.mjs} +0 -0
  367. /package/dist/es/{payout-575951ec.mjs → payout-BFiI--HY.mjs} +0 -0
  368. /package/dist/es/{pci-f4b6e5f5.mjs → pci-DMQLRoAn.mjs} +0 -0
  369. /package/dist/es/{pe-823d3b3f.mjs → pe-HNEmB15y.mjs} +0 -0
  370. /package/dist/es/{pf-5c60fe59.mjs → pf-DwCESo2k.mjs} +0 -0
  371. /package/dist/es/{pg-71e8aaec.mjs → pg-BhOdaLDy.mjs} +0 -0
  372. /package/dist/es/{ph-52f55ac4.mjs → ph-8ii4-Tq6.mjs} +0 -0
  373. /package/dist/es/{pk-372b07db.mjs → pk-BafoDKz5.mjs} +0 -0
  374. /package/dist/es/{pl-2c472f58.mjs → pl-D9b2Q58T.mjs} +0 -0
  375. /package/dist/es/{plus-25579839.mjs → plus-DAnbeoyS.mjs} +0 -0
  376. /package/dist/es/{pm-2195603b.mjs → pm-C-WvmgM4.mjs} +0 -0
  377. /package/dist/es/{pn-ec73a623.mjs → pn-DjnHidFS.mjs} +0 -0
  378. /package/dist/es/{pr-8f159ad6.mjs → pr-Dd50hA9F.mjs} +0 -0
  379. /package/dist/es/{ps-34dd64b7.mjs → ps-CUGb27Pq.mjs} +0 -0
  380. /package/dist/es/{pt-b210cd4c.mjs → pt-Qpxk-ulQ.mjs} +0 -0
  381. /package/dist/es/{pw-a474545d.mjs → pw-DV4RtHVX.mjs} +0 -0
  382. /package/dist/es/{py-e271f15f.mjs → py-eg-mtZFC.mjs} +0 -0
  383. /package/dist/es/{qa-a7ad70ed.mjs → qa-CHyJi5tF.mjs} +0 -0
  384. /package/dist/es/{re-a1440f32.mjs → re-FpArmeeM.mjs} +0 -0
  385. /package/dist/es/{remove-6a123f82.mjs → remove-CEmd9YX7.mjs} +0 -0
  386. /package/dist/es/{review-14953b30.mjs → review-CeQeKHXH.mjs} +0 -0
  387. /package/dist/es/{ro-8a071708.mjs → ro-ANrnebzK.mjs} +0 -0
  388. /package/dist/es/{rs-f3ea0f97.mjs → rs-BGbyX7Qb.mjs} +0 -0
  389. /package/dist/es/{ru-edd59839.mjs → ru-DtLSIa8v.mjs} +0 -0
  390. /package/dist/es/{rw-df210dff.mjs → rw-B1kILqpv.mjs} +0 -0
  391. /package/dist/es/{sa-18c28dc4.mjs → sa-CEcWBFfj.mjs} +0 -0
  392. /package/dist/es/{sb-35c0ab8d.mjs → sb-p9ah_4x5.mjs} +0 -0
  393. /package/dist/es/{sc-82eb7101.mjs → sc-2YHg9FTT.mjs} +0 -0
  394. /package/dist/es/{sd-dc5fb244.mjs → sd-BKzyWEE3.mjs} +0 -0
  395. /package/dist/es/{se-0413b6f1.mjs → se-Dq5LtCEp.mjs} +0 -0
  396. /package/dist/es/{search-3edfe795.mjs → search-hf3HRVbu.mjs} +0 -0
  397. /package/dist/es/{sg-8ff78597.mjs → sg-C752_QVl.mjs} +0 -0
  398. /package/dist/es/{sh-7b636341.mjs → sh-NFjaiAXX.mjs} +0 -0
  399. /package/dist/es/{si-2c09bba0.mjs → si-DKzVjXeV.mjs} +0 -0
  400. /package/dist/es/{signatory-c8417fb2.mjs → signatory-BVoLPYPu.mjs} +0 -0
  401. /package/dist/es/{sj-8aff2627.mjs → sj-DF7Bf8Q9.mjs} +0 -0
  402. /package/dist/es/{sk-8da1fee7.mjs → sk-CPmqq18S.mjs} +0 -0
  403. /package/dist/es/{sl-92cb9116.mjs → sl-Dx7oHjXI.mjs} +0 -0
  404. /package/dist/es/{sm-6fd64a6a.mjs → sm-B8bEOCx7.mjs} +0 -0
  405. /package/dist/es/{sn-57e8c34b.mjs → sn-tcqzwUh4.mjs} +0 -0
  406. /package/dist/es/{so-f2f0ac03.mjs → so-BrD8jwW8.mjs} +0 -0
  407. /package/dist/es/{sr-7869b748.mjs → sr-Dyy1x6sW.mjs} +0 -0
  408. /package/dist/es/{ss-8e9c79ca.mjs → ss-CpfhWUQL.mjs} +0 -0
  409. /package/dist/es/{st-6b3e911c.mjs → st-DZJqDu2d.mjs} +0 -0
  410. /package/dist/es/{store-9fc075e6.mjs → store-D2z639xh.mjs} +0 -0
  411. /package/dist/es/{sv-922ba5ea.mjs → sv-DtkfLQdf.mjs} +0 -0
  412. /package/dist/es/{sx-c078bfd1.mjs → sx-C1dyGLW-.mjs} +0 -0
  413. /package/dist/es/{sy-995ec1ee.mjs → sy-DhvBoSDL.mjs} +0 -0
  414. /package/dist/es/{sz-da33c6e8.mjs → sz-Co03zPL0.mjs} +0 -0
  415. /package/dist/es/{tc-1a465526.mjs → tc-DFY42rbc.mjs} +0 -0
  416. /package/dist/es/{td-a7ff3830.mjs → td-DdnMoB4B.mjs} +0 -0
  417. /package/dist/es/{tf-c71eed4a.mjs → tf-DtUoHxUD.mjs} +0 -0
  418. /package/dist/es/{tg-613f7f5a.mjs → tg-B-szBZlQ.mjs} +0 -0
  419. /package/dist/es/{th-f517ca34.mjs → th-hl0xD9En.mjs} +0 -0
  420. /package/dist/es/{tj-b99ac64f.mjs → tj-CaluHgV4.mjs} +0 -0
  421. /package/dist/es/{tk-c0dfeac1.mjs → tk-7WTKQA6M.mjs} +0 -0
  422. /package/dist/es/{tl-35cc3595.mjs → tl-DWxFj_mI.mjs} +0 -0
  423. /package/dist/es/{tm-0deecc32.mjs → tm-CXa44ZsQ.mjs} +0 -0
  424. /package/dist/es/{tn-190a49a0.mjs → tn-YGA63yhm.mjs} +0 -0
  425. /package/dist/es/{to-790cac18.mjs → to-D1SPhDAS.mjs} +0 -0
  426. /package/dist/es/{tr-1db5a437.mjs → tr-BkORBw5s.mjs} +0 -0
  427. /package/dist/es/{trust-0e40337d.mjs → trust-CpcaQaV7.mjs} +0 -0
  428. /package/dist/es/{tt-85ae901c.mjs → tt-CPiasxy9.mjs} +0 -0
  429. /package/dist/es/{tv-9f2b4198.mjs → tv-1UKqGnYq.mjs} +0 -0
  430. /package/dist/es/{tw-74aa27b3.mjs → tw-V_-9EdZA.mjs} +0 -0
  431. /package/dist/es/{tz-2a5cf5e6.mjs → tz-vyNQ8siG.mjs} +0 -0
  432. /package/dist/es/{ua-9fedceaa.mjs → ua-B36hNKIn.mjs} +0 -0
  433. /package/dist/es/{ug-1a8fee80.mjs → ug-DzrOv_zJ.mjs} +0 -0
  434. /package/dist/es/{um-d774b142.mjs → um-Xf4WHDSX.mjs} +0 -0
  435. /package/dist/es/{us-20ac3d88.mjs → us-VkSkiw44.mjs} +0 -0
  436. /package/dist/es/{uy-c22e1eb1.mjs → uy-BBVhuI0m.mjs} +0 -0
  437. /package/dist/es/{uz-f8be4086.mjs → uz-D4g4y6tl.mjs} +0 -0
  438. /package/dist/es/{va-d1f00296.mjs → va-CuiFpTCr.mjs} +0 -0
  439. /package/dist/es/{vc-0a06f1c2.mjs → vc-BGrc4dhk.mjs} +0 -0
  440. /package/dist/es/{ve-3bc33c40.mjs → ve-76O2C7rm.mjs} +0 -0
  441. /package/dist/es/{vg-3ad787bf.mjs → vg-DMKx8jrg.mjs} +0 -0
  442. /package/dist/es/{vi-5a78bf74.mjs → vi-D8PahWnh.mjs} +0 -0
  443. /package/dist/es/{vn-50e78ae2.mjs → vn-BnPQgCR1.mjs} +0 -0
  444. /package/dist/es/{vu-72d9304c.mjs → vu-B3LLAmr5.mjs} +0 -0
  445. /package/dist/es/{warning-bb000c6b.mjs → warning-99uFf1WU.mjs} +0 -0
  446. /package/dist/es/{wf-8cdbeff9.mjs → wf-qXr-xalT.mjs} +0 -0
  447. /package/dist/es/{wrong-652db543.mjs → wrong-1wvh7nZe.mjs} +0 -0
  448. /package/dist/es/{ws-745fc88c.mjs → ws-pGsAcjqz.mjs} +0 -0
  449. /package/dist/es/{ye-f4eaca91.mjs → ye-CII0qyBt.mjs} +0 -0
  450. /package/dist/es/{yt-93635c9a.mjs → yt-BoehcMko.mjs} +0 -0
  451. /package/dist/es/{za-42d70d0b.mjs → za-CaK3IAZP.mjs} +0 -0
  452. /package/dist/es/{zm-571a963f.mjs → zm-C8-RQ03K.mjs} +0 -0
  453. /package/dist/es/{zw-6cf765c3.mjs → zw-JWvy-vVa.mjs} +0 -0
  454. /package/dist/es/{zz-067ccc58.mjs → zz-CCLSDExB.mjs} +0 -0
@@ -391,19 +391,27 @@ const failedToUpdateDetails = "Failed to update details";
391
391
  const successfullyVerifiedIdNumber = "Successfully verified %{idNumber}";
392
392
  const failedFetchingDecisionMaker = "Failed to get decision maker details";
393
393
  const fileUpload = "File upload";
394
- const bankStatement = "Bank statement";
395
- const bankStatementOptional = "Bank statement (optional)";
394
+ const documentRequirements = "Document requirements";
395
+ const bankAccountNameIndividual = "Bank account must be in your name (<strong>%{individualLegalName}</strong>)";
396
+ const bankAccountNameOrganization = "Bank account must be in your company's name (<strong>%{companyLegalName}</strong>)";
397
+ const bankAccountNameWithSoleProprietor = "Bank account must be in your name (<strong>%{individualLegalName}</strong>) or sole proprietorship's name (<strong>%{soleProprietorshipName}</strong>)";
398
+ const bankAccountNameWithTrust = "The bank account must be in your trust's name (<strong>%{trusteeName} as trustee for %{trustLegalName} trading as %{trustTradingName}</strong>)";
399
+ const bankAccountNameWithTrust_US = "The bank account must be in your trust's name (<strong>%{trusteeName} as trustee for %{trustLegalName} doing business as %{trustTradingName}</strong>)";
400
+ const bankDocument = "Bank document";
401
+ const bankDocumentHeader = "Upload a bank document";
402
+ const bankDocumentHeaderOptional = "Upload a bank document (optional)";
403
+ const bankDocumentDescription = "We need an official document to verify your bank account details.";
404
+ const bankDocumentFileDescription = "Add a description for this bank account (optional)";
405
+ const accountNumberOrIbanVisible = "Includes your account number or IBAN";
406
+ const accountNumberVisible = "Includes your account number";
407
+ const routingNumberVisible = "Includes your routing number";
408
+ const showsCountryOfBankAccount = "Includes the country/region of the bank account";
409
+ const hasBankStampOrBankSignature = "Includes a bank stamp or signature";
410
+ const hasToBeOfficialDocumentFromBank = "Includes the bank logo, bank name, or bank-specific font";
411
+ const issuedInTheLastXMonths = "Issued in the last %{number} months";
396
412
  const bankAccountVerification = "Bank account verification";
397
413
  const bankStatementDocument = "Bank statement";
398
- const bankStatementDocumentTypeLabel = "Upload a document to confirm your bank account information. We need to see this document so we can set up your payouts.";
399
414
  const requirements = "Requirements:";
400
- const accountHolderNameMatchesWithBusinessOrTradingName = "Account holder name on the document has to match the legal business or trading name of your company";
401
- const accountNumberOrIbanVisible = "Visible account number or IBAN";
402
- const accountNumberVisible = "The account number needs to be visible";
403
- const routingNumberVisible = "The routing number should be visible";
404
- const showsCountryOfBankAccount = "Shows the country where the bank account is located (for banks in the EU, the country is included in the IBAN)";
405
- const hasToBeOfficialDocumentFromBank = "Must be an official bank document that shows the bank logo, the bank name, or a bank-specific font";
406
- const hasBankStampOrBankSignature = "Must have a bank stamp or bank signature";
407
415
  const ifDocumentMoreThan12months = "If your document is older than 12 months, then it should contain a statement with the company’s assets and liabilities. You will need to have it signed and dated by someone with decision-making or signing power within the company. Make sure the date, title, and legal entity name are included.";
408
416
  const whyDoINeedToFillInThisInformation = "Why do I need to fill in this information?";
409
417
  const reasonForFillingCompanyRegistrationDetails = "We have to make sure the businesses using our services will not be misusing the funds or causing harm. To do that, we’ll check all of this information against official records. This is a part of the financial regulations that we have to follow as a payments provider.";
@@ -419,11 +427,10 @@ const signatoryGuideDescription = "A <strong>signatory</strong> has been given a
419
427
  const directorGuideDescription = "A <strong>director</strong> is someone appointed to manage a company's business and affairs. Who your directors are can be found on the companies register.";
420
428
  const someoneAppointedToManageACompanysBusinessAndAffairs = "Someone appointed to manage a company's business and affairs.";
421
429
  const whatIfDocumentIsMoreThan12MonthsOld = "What if my document is more than 12 months old?";
422
- const descriptionHelper = "Attach description to this payout account";
423
- const depositTicket = "Deposit ticket / deposit form";
430
+ const depositSlip = "Deposit slip";
424
431
  const screenshotOfOnlineBankingEnviroment = "Screenshot of online banking environment";
425
432
  const officialEmailOrALetterFromYourBank = "Official email or a letter from your bank";
426
- const cheques = "Cheques";
433
+ const check = "Check";
427
434
  const releveDidentiteBancaire = "Relevé d'Identité Bancaire (RIB)";
428
435
  const successFullyRemovedDecisionMaker = "Successfully removed a decision maker";
429
436
  const failedToRemoveDecisionMaker = "Failed to remove a decision maker";
@@ -1029,6 +1036,7 @@ const errorMessage_1_5050 = "The affiliation document was not official.";
1029
1036
  const errorMessage_1_5051 = "Signing person on the affiliation document could not be verified";
1030
1037
  const errorMessage_1_5052 = "The affiliation document verifies the payout entity is not 100% affiliated with the company. Setup can't be continued.";
1031
1038
  const errorMessage_1_5053 = "The affiliation document was not issued within the last 6 months";
1039
+ const errorMessage_1_5067 = "The legal name didn't match the one on the VAT registry.";
1032
1040
  const errorMessage_1_6000 = "The legal name couldn't be verified.";
1033
1041
  const errorMessage_1_6001 = "The legal name didn't match the registration number.";
1034
1042
  const errorMessage_1_6002 = "The registration number couldn't be verified.";
@@ -1103,6 +1111,8 @@ const errorMessage_1_7021 = "The bank document didn't show an official bank logo
1103
1111
  const errorMessage_1_7022 = "The bank document didn't show an official bank stamp.";
1104
1112
  const errorMessage_2_8064 = "UBO through ownership was missing.";
1105
1113
  const errorMessage_2_8067 = "Signatory was missing.";
1114
+ const errorMessage_2_8141 = "Registration document was missing.";
1115
+ const errorMessage_2_8162 = "proofOfOrganizationTaxInfo was missing.";
1106
1116
  const errorMessage_2_8189 = "UBO through control was missing.";
1107
1117
  const errorMessage_2_8193 = "Director was missing.";
1108
1118
  const errorMessage_3_10 = "Review of data is required";
@@ -1133,6 +1143,8 @@ const remediationMessage_1_508 = "Upload a proof of ownership";
1133
1143
  const remediationMessage_1_509 = "Upload a different affiliation document";
1134
1144
  const remediationMessage_1_510 = "Ensure signing person has the rights to represent the organization or is a listed professional member (lawyer, accountant) in your country of business and upload the right document";
1135
1145
  const remediationMessage_1_511 = "Upload a document that proves the payout entity is 100% affiliated with the legal entity";
1146
+ const remediationMessage_1_512 = "Upload a VAT document";
1147
+ const remediationMessage_1_513 = "Upload a different VAT document";
1136
1148
  const remediationMessage_1_600 = "Update legal entity details";
1137
1149
  const remediationMessage_1_601 = "Upload a constitutional document";
1138
1150
  const remediationMessage_1_602 = "Upload a different constitutional document";
@@ -1621,19 +1633,27 @@ const defaultTrans = {
1621
1633
  successfullyVerifiedIdNumber,
1622
1634
  failedFetchingDecisionMaker,
1623
1635
  fileUpload,
1624
- bankStatement,
1625
- bankStatementOptional,
1626
- bankAccountVerification,
1627
- bankStatementDocument,
1628
- bankStatementDocumentTypeLabel,
1629
- requirements,
1630
- accountHolderNameMatchesWithBusinessOrTradingName,
1636
+ documentRequirements,
1637
+ bankAccountNameIndividual,
1638
+ bankAccountNameOrganization,
1639
+ bankAccountNameWithSoleProprietor,
1640
+ bankAccountNameWithTrust,
1641
+ bankAccountNameWithTrust_US,
1642
+ bankDocument,
1643
+ bankDocumentHeader,
1644
+ bankDocumentHeaderOptional,
1645
+ bankDocumentDescription,
1646
+ bankDocumentFileDescription,
1631
1647
  accountNumberOrIbanVisible,
1632
1648
  accountNumberVisible,
1633
1649
  routingNumberVisible,
1634
1650
  showsCountryOfBankAccount,
1635
- hasToBeOfficialDocumentFromBank,
1636
1651
  hasBankStampOrBankSignature,
1652
+ hasToBeOfficialDocumentFromBank,
1653
+ issuedInTheLastXMonths,
1654
+ bankAccountVerification,
1655
+ bankStatementDocument,
1656
+ requirements,
1637
1657
  ifDocumentMoreThan12months,
1638
1658
  whyDoINeedToFillInThisInformation,
1639
1659
  reasonForFillingCompanyRegistrationDetails,
@@ -1649,11 +1669,10 @@ const defaultTrans = {
1649
1669
  directorGuideDescription,
1650
1670
  someoneAppointedToManageACompanysBusinessAndAffairs,
1651
1671
  whatIfDocumentIsMoreThan12MonthsOld,
1652
- descriptionHelper,
1653
- depositTicket,
1672
+ depositSlip,
1654
1673
  screenshotOfOnlineBankingEnviroment,
1655
1674
  officialEmailOrALetterFromYourBank,
1656
- cheques,
1675
+ check,
1657
1676
  releveDidentiteBancaire,
1658
1677
  successFullyRemovedDecisionMaker,
1659
1678
  failedToRemoveDecisionMaker,
@@ -2267,6 +2286,7 @@ const defaultTrans = {
2267
2286
  errorMessage_1_5051,
2268
2287
  errorMessage_1_5052,
2269
2288
  errorMessage_1_5053,
2289
+ errorMessage_1_5067,
2270
2290
  errorMessage_1_6000,
2271
2291
  errorMessage_1_6001,
2272
2292
  errorMessage_1_6002,
@@ -2341,6 +2361,8 @@ const defaultTrans = {
2341
2361
  errorMessage_1_7022,
2342
2362
  errorMessage_2_8064,
2343
2363
  errorMessage_2_8067,
2364
+ errorMessage_2_8141,
2365
+ errorMessage_2_8162,
2344
2366
  errorMessage_2_8189,
2345
2367
  errorMessage_2_8193,
2346
2368
  errorMessage_3_10,
@@ -2371,6 +2393,8 @@ const defaultTrans = {
2371
2393
  remediationMessage_1_509,
2372
2394
  remediationMessage_1_510,
2373
2395
  remediationMessage_1_511,
2396
+ remediationMessage_1_512,
2397
+ remediationMessage_1_513,
2374
2398
  remediationMessage_1_600,
2375
2399
  remediationMessage_1_601,
2376
2400
  remediationMessage_1_602,
@@ -2654,9 +2678,7 @@ const defaultI18n = {
2654
2678
  };
2655
2679
  const I18nContext = createContext(defaultI18n);
2656
2680
  const useI18nContext = () => useContext(I18nContext);
2657
- const SettingsContext = createContext({
2658
- isSettingEnabled: () => false
2659
- });
2681
+ const SettingsContext = createContext(void 0);
2660
2682
  function useSettingsContext() {
2661
2683
  const context = useContext(SettingsContext);
2662
2684
  if (context === void 0) {
@@ -2704,6 +2726,7 @@ function useExperimentsContext() {
2704
2726
  return context;
2705
2727
  }
2706
2728
  var SettingNames = /* @__PURE__ */ ((SettingNames2) => {
2729
+ SettingNames2["AcceptedCountries"] = "acceptedCountries";
2707
2730
  SettingNames2["AllowBankAccountFormatSelection"] = "allowBankAccountFormatSelection";
2708
2731
  SettingNames2["AllowIntraRegionCrossBorderPayout"] = "allowIntraRegionCrossBorderPayout";
2709
2732
  SettingNames2["AllowLegalEntityTypeChange"] = "changeLegalEntityType";
@@ -2728,7 +2751,6 @@ const useEnableNewEntryFlow = () => {
2728
2751
  } = useExperimentsContext();
2729
2752
  return isSettingEnabled(SettingNames.AllowLegalEntityTypeChange) && isExperimentEnabled("EnableNewEntryFlow");
2730
2753
  };
2731
- const Summary$1 = "";
2732
2754
  const omitKeys = (obj, omit) => Object.keys(obj).filter((k) => !omit.includes(k)).reduce((a, c) => {
2733
2755
  a[c] = obj[c];
2734
2756
  return a;
@@ -2924,9 +2946,6 @@ const exactLength = (input, length) => {
2924
2946
  return input.length === length;
2925
2947
  };
2926
2948
  const trimValWithOneSpace = (val) => val.trimStart().replace(/\s+/g, " ");
2927
- const _button_component = "";
2928
- const _link_component = "";
2929
- const Icon$1 = "";
2930
2949
  let suppressed = false;
2931
2950
  const consoleMethodsPrefixable = Object.freeze(["debug", "info", "log", "warn", "error", "trace"]);
2932
2951
  const stringSubstitutionRegex = /%([soOc]|(\.\d)?[dif])/;
@@ -2948,43 +2967,43 @@ const createLogger = (namespace) => {
2948
2967
  return methods;
2949
2968
  };
2950
2969
  const icons = {
2951
- "arrow-left": lazy(() => import("./arrow-left-3d6cd330.mjs")),
2952
- "arrow-right": lazy(() => import("./arrow-right-994e40f8.mjs")),
2953
- bin: lazy(() => import("./bin-191739de.mjs")),
2954
- check: lazy(() => import("./check-b5a70376.mjs")),
2955
- checkmark: lazy(() => import("./checkmark-fd78da6f.mjs")),
2956
- "checkmark-small": lazy(() => import("./checkmark-small-bf41309f.mjs")),
2957
- "chevron-down": lazy(() => import("./chevron-down-df0a3ac6.mjs")),
2958
- "chevron-right": lazy(() => import("./chevron-right-23ff6e47.mjs")),
2959
- "chevron-up": lazy(() => import("./chevron-up-abfe0e90.mjs")),
2960
- company: lazy(() => import("./company-4f71e406.mjs")),
2961
- contract: lazy(() => import("./contract-5bc99018.mjs")),
2962
- "controlling-person": lazy(() => import("./controlling-person-88da578f.mjs")),
2963
- cross: lazy(() => import("./cross-c2431982.mjs")),
2964
- "decision-maker": lazy(() => import("./decision-maker-a2182544.mjs")),
2965
- document: lazy(() => import("./document-88abec41.mjs")),
2966
- download: lazy(() => import("./download-54b1a163.mjs")),
2967
- edit: lazy(() => import("./edit-e3629680.mjs")),
2968
- "field-error": lazy(() => import("./field-error-620e1903.mjs")),
2969
- "info-circle": lazy(() => import("./info-circle-3d2e7ba8.mjs")),
2970
- "light-bulb": lazy(() => import("./light-bulb-d403fe24.mjs")),
2971
- location: lazy(() => import("./location-e7c2a8f5.mjs")),
2972
- "more-horiz": lazy(() => import("./more-horiz-0ca4ec23.mjs")),
2973
- "new-document": lazy(() => import("./new-document-cfa14b7f.mjs")),
2974
- owners: lazy(() => import("./owners-a58a9f25.mjs")),
2975
- payout: lazy(() => import("./payout-575951ec.mjs")),
2976
- pci: lazy(() => import("./pci-f4b6e5f5.mjs")),
2977
- plus: lazy(() => import("./plus-25579839.mjs")),
2978
- remove: lazy(() => import("./remove-6a123f82.mjs")),
2979
- review: lazy(() => import("./review-14953b30.mjs")),
2980
- search: lazy(() => import("./search-3edfe795.mjs")),
2981
- signatory: lazy(() => import("./signatory-c8417fb2.mjs")),
2982
- store: lazy(() => import("./store-9fc075e6.mjs")),
2983
- trust: lazy(() => import("./trust-0e40337d.mjs")),
2984
- warning: lazy(() => import("./warning-bb000c6b.mjs")),
2985
- wrong: lazy(() => import("./wrong-652db543.mjs"))
2986
- };
2987
- const logger$w = createLogger("Icon");
2970
+ "arrow-left": lazy(() => import("./arrow-left-CCxYxfCP.mjs")),
2971
+ "arrow-right": lazy(() => import("./arrow-right-DF4Qe-8E.mjs")),
2972
+ bin: lazy(() => import("./bin-CGwewvcn.mjs")),
2973
+ check: lazy(() => import("./check-CeSLN4_9.mjs")),
2974
+ checkmark: lazy(() => import("./checkmark-DEh9MPYR.mjs")),
2975
+ "checkmark-small": lazy(() => import("./checkmark-small-D_9HLctx.mjs")),
2976
+ "chevron-down": lazy(() => import("./chevron-down-BzENwYSf.mjs")),
2977
+ "chevron-right": lazy(() => import("./chevron-right-DczMHcvL.mjs")),
2978
+ "chevron-up": lazy(() => import("./chevron-up-BLtnROd5.mjs")),
2979
+ company: lazy(() => import("./company-D5_F_6SW.mjs")),
2980
+ contract: lazy(() => import("./contract-C6wDy9zU.mjs")),
2981
+ "controlling-person": lazy(() => import("./controlling-person-C4KoSyi2.mjs")),
2982
+ cross: lazy(() => import("./cross-BadGfrgB.mjs")),
2983
+ "decision-maker": lazy(() => import("./decision-maker-Cef3-OzY.mjs")),
2984
+ document: lazy(() => import("./document-Cg4kZHpA.mjs")),
2985
+ download: lazy(() => import("./download-DGC5_Bxe.mjs")),
2986
+ edit: lazy(() => import("./edit--fDhojib.mjs")),
2987
+ "field-error": lazy(() => import("./field-error-WElEN1mN.mjs")),
2988
+ "info-circle": lazy(() => import("./info-circle-DkHN1ugA.mjs")),
2989
+ "light-bulb": lazy(() => import("./light-bulb-DEUhbRWP.mjs")),
2990
+ location: lazy(() => import("./location-B1Til-7Q.mjs")),
2991
+ "more-horiz": lazy(() => import("./more-horiz-BieZKfy3.mjs")),
2992
+ "new-document": lazy(() => import("./new-document-BEAJnXCG.mjs")),
2993
+ owners: lazy(() => import("./owners-D1pksb86.mjs")),
2994
+ payout: lazy(() => import("./payout-BFiI--HY.mjs")),
2995
+ pci: lazy(() => import("./pci-DMQLRoAn.mjs")),
2996
+ plus: lazy(() => import("./plus-DAnbeoyS.mjs")),
2997
+ remove: lazy(() => import("./remove-CEmd9YX7.mjs")),
2998
+ review: lazy(() => import("./review-CeQeKHXH.mjs")),
2999
+ search: lazy(() => import("./search-hf3HRVbu.mjs")),
3000
+ signatory: lazy(() => import("./signatory-BVoLPYPu.mjs")),
3001
+ store: lazy(() => import("./store-D2z639xh.mjs")),
3002
+ trust: lazy(() => import("./trust-CpcaQaV7.mjs")),
3003
+ warning: lazy(() => import("./warning-99uFf1WU.mjs")),
3004
+ wrong: lazy(() => import("./wrong-1wvh7nZe.mjs"))
3005
+ };
3006
+ const logger$x = createLogger("Icon");
2988
3007
  const Icon = ({
2989
3008
  className,
2990
3009
  name,
@@ -2992,7 +3011,7 @@ const Icon = ({
2992
3011
  }) => {
2993
3012
  const LazyLoadedIcon = icons[name];
2994
3013
  if (!LazyLoadedIcon) {
2995
- logger$w.error(`No such icon: "${name}"`);
3014
+ logger$x.error(`No such icon: "${name}"`);
2996
3015
  return null;
2997
3016
  }
2998
3017
  return jsx("span", {
@@ -3006,7 +3025,6 @@ const Icon = ({
3006
3025
  })
3007
3026
  });
3008
3027
  };
3009
- const Spinner$1 = "";
3010
3028
  const Spinner = ({
3011
3029
  inline = false,
3012
3030
  size = "large"
@@ -3103,8 +3121,6 @@ const Button = ({
3103
3121
  children: buttonText
3104
3122
  });
3105
3123
  };
3106
- const ErrorPanel$1 = "";
3107
- const _alert = "";
3108
3124
  var AlertTypes = /* @__PURE__ */ ((AlertTypes2) => {
3109
3125
  AlertTypes2[AlertTypes2["BASIC"] = 0] = "BASIC";
3110
3126
  AlertTypes2[AlertTypes2["INFO"] = 1] = "INFO";
@@ -3199,7 +3215,7 @@ function useFormRouterContext() {
3199
3215
  }
3200
3216
  return context;
3201
3217
  }
3202
- const logger$v = createLogger("Link");
3218
+ const logger$w = createLogger("Link");
3203
3219
  const getIconClass = (icon, external) => {
3204
3220
  if (external) {
3205
3221
  return "adl-link__icon adyen-kyc-icon-external-link";
@@ -3211,7 +3227,7 @@ const getIconClass = (icon, external) => {
3211
3227
  };
3212
3228
  const isValidLink = (href) => {
3213
3229
  if (href === "#") {
3214
- logger$v.error('Links must include a valid href. If your href is "#", consider using a Button instead');
3230
+ logger$w.error('Links must include a valid href. If your href is "#", consider using a Button instead');
3215
3231
  return false;
3216
3232
  }
3217
3233
  return true;
@@ -3312,7 +3328,6 @@ function ServerValidationErrors({
3312
3328
  })
3313
3329
  });
3314
3330
  }
3315
- const CompanyComponent$1 = "";
3316
3331
  function StateContextWatcher({
3317
3332
  onChange
3318
3333
  }) {
@@ -3490,15 +3505,28 @@ function useResetGlobalData(caller) {
3490
3505
  }
3491
3506
  }), [dispatch, caller]);
3492
3507
  }
3493
- const logger$u = createLogger("useAllowedCountries");
3508
+ const useSetting = (settingName) => {
3509
+ const context = useContext(SettingsContext);
3510
+ if (context === void 0) {
3511
+ throw new Error("useSetting must be used within a SettingsProvider");
3512
+ }
3513
+ const {
3514
+ getSetting
3515
+ } = context;
3516
+ return getSetting(settingName);
3517
+ };
3518
+ const logger$v = createLogger("useAllowedCountries");
3494
3519
  const useAllowedCountries = () => {
3520
+ const acceptedCountries = useSetting("acceptedCountries");
3495
3521
  const {
3496
3522
  getAllowedCountries: getAllowedCountries2
3497
3523
  } = useConfigurationApi();
3498
- const [allowedCountries, setAllowedCountries] = useState();
3524
+ const [allowedCountries, setAllowedCountries] = useState(acceptedCountries);
3499
3525
  useEffect(() => {
3500
- getAllowedCountries2().then((response) => setAllowedCountries(response.countries)).catch(logger$u.error);
3501
- }, []);
3526
+ if (acceptedCountries !== void 0)
3527
+ return;
3528
+ getAllowedCountries2().then((response) => setAllowedCountries(response.countries)).catch(logger$v.error);
3529
+ }, [acceptedCountries]);
3502
3530
  return allowedCountries;
3503
3531
  };
3504
3532
  const processField = ({
@@ -3836,7 +3864,7 @@ class ValidationResult {
3836
3864
  return this.validationResults.filter((result) => result.hasError);
3837
3865
  }
3838
3866
  }
3839
- const logger$t = createLogger("useAsyncValidator");
3867
+ const logger$u = createLogger("useAsyncValidator");
3840
3868
  const useAsyncValidator = (asyncRules) => {
3841
3869
  const [asyncValidationResults, setAsyncValidationResults] = useState({});
3842
3870
  const clearAsyncValidationResults = useCallback(() => setAsyncValidationResults({}), []);
@@ -3859,7 +3887,7 @@ const useAsyncValidator = (asyncRules) => {
3859
3887
  hasError: !isValid
3860
3888
  }])
3861
3889
  });
3862
- }).catch(logger$t.error);
3890
+ }).catch(logger$u.error);
3863
3891
  }, [asyncRules, clearAsyncValidationResults]);
3864
3892
  return {
3865
3893
  asyncValidationResults,
@@ -4117,7 +4145,6 @@ function datasetUtilities(locale) {
4117
4145
  getDatasetKey: (identifier) => createDatasetKey(identifier, locale)
4118
4146
  };
4119
4147
  }
4120
- const Field$1 = "";
4121
4148
  const useStateFromProp = ({
4122
4149
  initialValue,
4123
4150
  passedValue,
@@ -4259,7 +4286,6 @@ const Field = ({
4259
4286
  })
4260
4287
  });
4261
4288
  };
4262
- const Select$1 = "";
4263
4289
  const getScrollParent = (node) => {
4264
4290
  if (!node)
4265
4291
  return null;
@@ -4276,7 +4302,6 @@ function uuidv4() {
4276
4302
  return v.toString(16);
4277
4303
  });
4278
4304
  }
4279
- const _loader = "";
4280
4305
  const Loader = ({
4281
4306
  inline = false,
4282
4307
  size = "large",
@@ -4289,7 +4314,6 @@ const Loader = ({
4289
4314
  })
4290
4315
  })
4291
4316
  });
4292
- const _tag_component = "";
4293
4317
  const Tag = ({
4294
4318
  className,
4295
4319
  isBasic = false,
@@ -4885,7 +4909,6 @@ const SelectButtonContentMulti = ({
4885
4909
  className: "adyen-kyc-dropdown-button__text adyen-kyc-dropdown-button__text--placeholder",
4886
4910
  children: placeholder
4887
4911
  });
4888
- const Checkbox$1 = "";
4889
4912
  function Checkbox({
4890
4913
  classNameModifiers = [],
4891
4914
  label,
@@ -5274,7 +5297,6 @@ const Select = ({
5274
5297
  })]
5275
5298
  });
5276
5299
  };
5277
- const Flag$1 = "";
5278
5300
  const isIntersectionObserverSupported = typeof IntersectionObserver === "function";
5279
5301
  function useIsElementVisible(ref, fallback = true) {
5280
5302
  const [isOnScreen, setIsOnScreen] = useState(isIntersectionObserverSupported ? false : fallback);
@@ -5296,264 +5318,264 @@ function useIsElementVisible(ref, fallback = true) {
5296
5318
  }, [ref]);
5297
5319
  return isOnScreen;
5298
5320
  }
5299
- const logger$s = createLogger("Flag");
5321
+ const logger$t = createLogger("Flag");
5300
5322
  const flagImports = /* @__PURE__ */ Object.assign({
5301
- "../../../../assets/flags/ad.svg": () => import("./ad-e09b987a.mjs"),
5302
- "../../../../assets/flags/ae.svg": () => import("./ae-8ca1be27.mjs"),
5303
- "../../../../assets/flags/af.svg": () => import("./af-342e1bf5.mjs"),
5304
- "../../../../assets/flags/ag.svg": () => import("./ag-997e3f88.mjs"),
5305
- "../../../../assets/flags/ai.svg": () => import("./ai-402dc201.mjs"),
5306
- "../../../../assets/flags/al.svg": () => import("./al-38b31dad.mjs"),
5307
- "../../../../assets/flags/am.svg": () => import("./am-bc1403ea.mjs"),
5308
- "../../../../assets/flags/an.svg": () => import("./an-70336f96.mjs"),
5309
- "../../../../assets/flags/ao.svg": () => import("./ao-eedf3279.mjs"),
5310
- "../../../../assets/flags/aq.svg": () => import("./aq-2220e7e0.mjs"),
5311
- "../../../../assets/flags/ar.svg": () => import("./ar-87abe42d.mjs"),
5312
- "../../../../assets/flags/as.svg": () => import("./as-6e35c5ec.mjs"),
5313
- "../../../../assets/flags/at.svg": () => import("./at-4310d424.mjs"),
5314
- "../../../../assets/flags/au.svg": () => import("./au-50f94ba8.mjs"),
5315
- "../../../../assets/flags/aw.svg": () => import("./aw-97918c9f.mjs"),
5316
- "../../../../assets/flags/ax.svg": () => import("./ax-567f3585.mjs"),
5317
- "../../../../assets/flags/az.svg": () => import("./az-85dbb96d.mjs"),
5318
- "../../../../assets/flags/ba.svg": () => import("./ba-8afe4a33.mjs"),
5319
- "../../../../assets/flags/bb.svg": () => import("./bb-c4d79528.mjs"),
5320
- "../../../../assets/flags/bd.svg": () => import("./bd-0f87f359.mjs"),
5321
- "../../../../assets/flags/be.svg": () => import("./be-63be2126.mjs"),
5322
- "../../../../assets/flags/bf.svg": () => import("./bf-621f8737.mjs"),
5323
- "../../../../assets/flags/bg.svg": () => import("./bg-30061757.mjs"),
5324
- "../../../../assets/flags/bh.svg": () => import("./bh-a858ad79.mjs"),
5325
- "../../../../assets/flags/bi.svg": () => import("./bi-c08e68ba.mjs"),
5326
- "../../../../assets/flags/bj.svg": () => import("./bj-8e17226d.mjs"),
5327
- "../../../../assets/flags/bl.svg": () => import("./bl-b7b32ae6.mjs"),
5328
- "../../../../assets/flags/bm.svg": () => import("./bm-b728ab56.mjs"),
5329
- "../../../../assets/flags/bn.svg": () => import("./bn-c706c05b.mjs"),
5330
- "../../../../assets/flags/bo.svg": () => import("./bo-1fad8399.mjs"),
5331
- "../../../../assets/flags/br.svg": () => import("./br-11b9980d.mjs"),
5332
- "../../../../assets/flags/bs.svg": () => import("./bs-090f5bd7.mjs"),
5333
- "../../../../assets/flags/bt.svg": () => import("./bt-c56334d3.mjs"),
5334
- "../../../../assets/flags/bv.svg": () => import("./bv-570dcd11.mjs"),
5335
- "../../../../assets/flags/bw.svg": () => import("./bw-5de93ae1.mjs"),
5336
- "../../../../assets/flags/by.svg": () => import("./by-e2457131.mjs"),
5337
- "../../../../assets/flags/bz.svg": () => import("./bz-30bbd0de.mjs"),
5338
- "../../../../assets/flags/ca.svg": () => import("./ca-39c0e436.mjs"),
5339
- "../../../../assets/flags/cc.svg": () => import("./cc-ddc2a1db.mjs"),
5340
- "../../../../assets/flags/cd.svg": () => import("./cd-eab01270.mjs"),
5341
- "../../../../assets/flags/cf.svg": () => import("./cf-50f7241b.mjs"),
5342
- "../../../../assets/flags/cg.svg": () => import("./cg-e87aa981.mjs"),
5343
- "../../../../assets/flags/ch.svg": () => import("./ch-9637f347.mjs"),
5344
- "../../../../assets/flags/ci.svg": () => import("./ci-41814a2b.mjs"),
5345
- "../../../../assets/flags/ck.svg": () => import("./ck-60b0d769.mjs"),
5346
- "../../../../assets/flags/cl.svg": () => import("./cl-931fd7da.mjs"),
5347
- "../../../../assets/flags/cm.svg": () => import("./cm-55c02792.mjs"),
5348
- "../../../../assets/flags/cn.svg": () => import("./cn-1526dac5.mjs"),
5349
- "../../../../assets/flags/co.svg": () => import("./co-c7ada338.mjs"),
5350
- "../../../../assets/flags/cr.svg": () => import("./cr-bac1e451.mjs"),
5351
- "../../../../assets/flags/cu.svg": () => import("./cu-af98b602.mjs"),
5352
- "../../../../assets/flags/cv.svg": () => import("./cv-575fe55b.mjs"),
5353
- "../../../../assets/flags/cw.svg": () => import("./cw-6f1c60ce.mjs"),
5354
- "../../../../assets/flags/cx.svg": () => import("./cx-7687e3a9.mjs"),
5355
- "../../../../assets/flags/cy.svg": () => import("./cy-eeff5dbd.mjs"),
5356
- "../../../../assets/flags/cz.svg": () => import("./cz-24eff96c.mjs"),
5357
- "../../../../assets/flags/de.svg": () => import("./de-8e2b6f6c.mjs"),
5358
- "../../../../assets/flags/dj.svg": () => import("./dj-e0f41411.mjs"),
5359
- "../../../../assets/flags/dk.svg": () => import("./dk-a5073c43.mjs"),
5360
- "../../../../assets/flags/dm.svg": () => import("./dm-9a3ee195.mjs"),
5361
- "../../../../assets/flags/do.svg": () => import("./do-5aa635df.mjs"),
5362
- "../../../../assets/flags/dz.svg": () => import("./dz-7452e74d.mjs"),
5363
- "../../../../assets/flags/ec.svg": () => import("./ec-c68c940e.mjs"),
5364
- "../../../../assets/flags/ee.svg": () => import("./ee-1dbd9a40.mjs"),
5365
- "../../../../assets/flags/eg.svg": () => import("./eg-40f9b2b5.mjs"),
5366
- "../../../../assets/flags/eh.svg": () => import("./eh-51f4bae2.mjs"),
5367
- "../../../../assets/flags/er.svg": () => import("./er-61cda111.mjs"),
5368
- "../../../../assets/flags/es.svg": () => import("./es-78250575.mjs"),
5369
- "../../../../assets/flags/et.svg": () => import("./et-63dc8d1e.mjs"),
5370
- "../../../../assets/flags/fi.svg": () => import("./fi-e2d1f3df.mjs"),
5371
- "../../../../assets/flags/fj.svg": () => import("./fj-02f497c5.mjs"),
5372
- "../../../../assets/flags/fk.svg": () => import("./fk-56af40af.mjs"),
5373
- "../../../../assets/flags/fm.svg": () => import("./fm-0292f2ce.mjs"),
5374
- "../../../../assets/flags/fo.svg": () => import("./fo-5063373c.mjs"),
5375
- "../../../../assets/flags/fr.svg": () => import("./fr-fb20da2b.mjs"),
5376
- "../../../../assets/flags/fx.svg": () => import("./fx-ca4da212.mjs"),
5377
- "../../../../assets/flags/ga.svg": () => import("./ga-31f5afca.mjs"),
5378
- "../../../../assets/flags/gb.svg": () => import("./gb-4ae48840.mjs"),
5379
- "../../../../assets/flags/gd.svg": () => import("./gd-25e40717.mjs"),
5380
- "../../../../assets/flags/ge.svg": () => import("./ge-939c150e.mjs"),
5381
- "../../../../assets/flags/gf.svg": () => import("./gf-b8736c20.mjs"),
5382
- "../../../../assets/flags/gg.svg": () => import("./gg-4c532713.mjs"),
5383
- "../../../../assets/flags/gh.svg": () => import("./gh-7b187c5f.mjs"),
5384
- "../../../../assets/flags/gi.svg": () => import("./gi-e59b72be.mjs"),
5385
- "../../../../assets/flags/gl.svg": () => import("./gl-31e9b8e5.mjs"),
5386
- "../../../../assets/flags/gm.svg": () => import("./gm-975999b2.mjs"),
5387
- "../../../../assets/flags/gn.svg": () => import("./gn-3701984d.mjs"),
5388
- "../../../../assets/flags/gp.svg": () => import("./gp-40fbae20.mjs"),
5389
- "../../../../assets/flags/gq.svg": () => import("./gq-86021eca.mjs"),
5390
- "../../../../assets/flags/gr.svg": () => import("./gr-3b0c7597.mjs"),
5391
- "../../../../assets/flags/gs.svg": () => import("./gs-00bc8674.mjs"),
5392
- "../../../../assets/flags/gt.svg": () => import("./gt-05eb5f87.mjs"),
5393
- "../../../../assets/flags/gu.svg": () => import("./gu-497f9b0b.mjs"),
5394
- "../../../../assets/flags/gw.svg": () => import("./gw-b54f1365.mjs"),
5395
- "../../../../assets/flags/gy.svg": () => import("./gy-e917fca1.mjs"),
5396
- "../../../../assets/flags/hk.svg": () => import("./hk-ddd60484.mjs"),
5397
- "../../../../assets/flags/hm.svg": () => import("./hm-03a2df0b.mjs"),
5398
- "../../../../assets/flags/hn.svg": () => import("./hn-1748eed1.mjs"),
5399
- "../../../../assets/flags/hr.svg": () => import("./hr-6b1bd9c8.mjs"),
5400
- "../../../../assets/flags/ht.svg": () => import("./ht-13a1ab82.mjs"),
5401
- "../../../../assets/flags/hu.svg": () => import("./hu-81872148.mjs"),
5402
- "../../../../assets/flags/id.svg": () => import("./id-2c9c4235.mjs"),
5403
- "../../../../assets/flags/ie.svg": () => import("./ie-ef96fd76.mjs"),
5404
- "../../../../assets/flags/il.svg": () => import("./il-20c3ccd4.mjs"),
5405
- "../../../../assets/flags/im.svg": () => import("./im-eb7a7143.mjs"),
5406
- "../../../../assets/flags/in.svg": () => import("./in-67c16223.mjs"),
5407
- "../../../../assets/flags/io.svg": () => import("./io-9adeb690.mjs"),
5408
- "../../../../assets/flags/iq.svg": () => import("./iq-61ffc408.mjs"),
5409
- "../../../../assets/flags/ir.svg": () => import("./ir-bc3341c2.mjs"),
5410
- "../../../../assets/flags/is.svg": () => import("./is-7c19d0ff.mjs"),
5411
- "../../../../assets/flags/it.svg": () => import("./it-fa0dd04c.mjs"),
5412
- "../../../../assets/flags/je.svg": () => import("./je-a29e157d.mjs"),
5413
- "../../../../assets/flags/jm.svg": () => import("./jm-53f8ddb8.mjs"),
5414
- "../../../../assets/flags/jo.svg": () => import("./jo-89d49ef8.mjs"),
5415
- "../../../../assets/flags/jp.svg": () => import("./jp-f97d7972.mjs"),
5416
- "../../../../assets/flags/ke.svg": () => import("./ke-545eb9cb.mjs"),
5417
- "../../../../assets/flags/kg.svg": () => import("./kg-066a524e.mjs"),
5418
- "../../../../assets/flags/kh.svg": () => import("./kh-39620e7b.mjs"),
5419
- "../../../../assets/flags/ki.svg": () => import("./ki-900be23e.mjs"),
5420
- "../../../../assets/flags/km.svg": () => import("./km-b4e8c8ba.mjs"),
5421
- "../../../../assets/flags/kn.svg": () => import("./kn-8ec9ee75.mjs"),
5422
- "../../../../assets/flags/kp.svg": () => import("./kp-1cdc64be.mjs"),
5423
- "../../../../assets/flags/kr.svg": () => import("./kr-53eac37f.mjs"),
5424
- "../../../../assets/flags/kw.svg": () => import("./kw-c4347b38.mjs"),
5425
- "../../../../assets/flags/ky.svg": () => import("./ky-a104dc86.mjs"),
5426
- "../../../../assets/flags/kz.svg": () => import("./kz-d64ba71d.mjs"),
5427
- "../../../../assets/flags/la.svg": () => import("./la-04577eb2.mjs"),
5428
- "../../../../assets/flags/lb.svg": () => import("./lb-c2470dd0.mjs"),
5429
- "../../../../assets/flags/lc.svg": () => import("./lc-58fb8706.mjs"),
5430
- "../../../../assets/flags/li.svg": () => import("./li-c887f5b7.mjs"),
5431
- "../../../../assets/flags/lk.svg": () => import("./lk-d10f8746.mjs"),
5432
- "../../../../assets/flags/lr.svg": () => import("./lr-8422af8e.mjs"),
5433
- "../../../../assets/flags/ls.svg": () => import("./ls-bdcefbbc.mjs"),
5434
- "../../../../assets/flags/lt.svg": () => import("./lt-07e70fec.mjs"),
5435
- "../../../../assets/flags/lu.svg": () => import("./lu-b7c93ece.mjs"),
5436
- "../../../../assets/flags/lv.svg": () => import("./lv-97900494.mjs"),
5437
- "../../../../assets/flags/ly.svg": () => import("./ly-86ceab07.mjs"),
5438
- "../../../../assets/flags/ma.svg": () => import("./ma-21b21bdf.mjs"),
5439
- "../../../../assets/flags/mc.svg": () => import("./mc-f23b73f0.mjs"),
5440
- "../../../../assets/flags/md.svg": () => import("./md-82ed1b49.mjs"),
5441
- "../../../../assets/flags/me.svg": () => import("./me-c45ff596.mjs"),
5442
- "../../../../assets/flags/mf.svg": () => import("./mf-11563bd1.mjs"),
5443
- "../../../../assets/flags/mg.svg": () => import("./mg-f5f0546b.mjs"),
5444
- "../../../../assets/flags/mh.svg": () => import("./mh-06a860ed.mjs"),
5445
- "../../../../assets/flags/mk.svg": () => import("./mk-91356e13.mjs"),
5446
- "../../../../assets/flags/ml.svg": () => import("./ml-c3f2014e.mjs"),
5447
- "../../../../assets/flags/mm.svg": () => import("./mm-d138bd76.mjs"),
5448
- "../../../../assets/flags/mn.svg": () => import("./mn-9c4664d8.mjs"),
5449
- "../../../../assets/flags/mo.svg": () => import("./mo-54bd2fbe.mjs"),
5450
- "../../../../assets/flags/mp.svg": () => import("./mp-796516e8.mjs"),
5451
- "../../../../assets/flags/mq.svg": () => import("./mq-3511a92a.mjs"),
5452
- "../../../../assets/flags/mr.svg": () => import("./mr-a4b18b6d.mjs"),
5453
- "../../../../assets/flags/ms.svg": () => import("./ms-91e4dcef.mjs"),
5454
- "../../../../assets/flags/mt.svg": () => import("./mt-9b58b6a6.mjs"),
5455
- "../../../../assets/flags/mu.svg": () => import("./mu-2307760c.mjs"),
5456
- "../../../../assets/flags/mv.svg": () => import("./mv-32c9699b.mjs"),
5457
- "../../../../assets/flags/mw.svg": () => import("./mw-2b9505ac.mjs"),
5458
- "../../../../assets/flags/mx.svg": () => import("./mx-98a49b74.mjs"),
5459
- "../../../../assets/flags/my.svg": () => import("./my-217f9384.mjs"),
5460
- "../../../../assets/flags/mz.svg": () => import("./mz-92e1e39c.mjs"),
5461
- "../../../../assets/flags/na.svg": () => import("./na-3c30775f.mjs"),
5462
- "../../../../assets/flags/nc.svg": () => import("./nc-c80aff50.mjs"),
5463
- "../../../../assets/flags/ne.svg": () => import("./ne-b38208ab.mjs"),
5464
- "../../../../assets/flags/nf.svg": () => import("./nf-780a37dd.mjs"),
5465
- "../../../../assets/flags/ng.svg": () => import("./ng-f5ea4118.mjs"),
5466
- "../../../../assets/flags/ni.svg": () => import("./ni-60b41460.mjs"),
5467
- "../../../../assets/flags/nl.svg": () => import("./nl-975a8624.mjs"),
5468
- "../../../../assets/flags/no.svg": () => import("./no-952bf512.mjs"),
5469
- "../../../../assets/flags/np.svg": () => import("./np-5135aa90.mjs"),
5470
- "../../../../assets/flags/nr.svg": () => import("./nr-cecf1f05.mjs"),
5471
- "../../../../assets/flags/nu.svg": () => import("./nu-c1ad2dc9.mjs"),
5472
- "../../../../assets/flags/nz.svg": () => import("./nz-70a6e29f.mjs"),
5473
- "../../../../assets/flags/om.svg": () => import("./om-e5c99d1e.mjs"),
5474
- "../../../../assets/flags/pa.svg": () => import("./pa-0e401aff.mjs"),
5475
- "../../../../assets/flags/pe.svg": () => import("./pe-823d3b3f.mjs"),
5476
- "../../../../assets/flags/pf.svg": () => import("./pf-5c60fe59.mjs"),
5477
- "../../../../assets/flags/pg.svg": () => import("./pg-71e8aaec.mjs"),
5478
- "../../../../assets/flags/ph.svg": () => import("./ph-52f55ac4.mjs"),
5479
- "../../../../assets/flags/pk.svg": () => import("./pk-372b07db.mjs"),
5480
- "../../../../assets/flags/pl.svg": () => import("./pl-2c472f58.mjs"),
5481
- "../../../../assets/flags/pm.svg": () => import("./pm-2195603b.mjs"),
5482
- "../../../../assets/flags/pn.svg": () => import("./pn-ec73a623.mjs"),
5483
- "../../../../assets/flags/pr.svg": () => import("./pr-8f159ad6.mjs"),
5484
- "../../../../assets/flags/ps.svg": () => import("./ps-34dd64b7.mjs"),
5485
- "../../../../assets/flags/pt.svg": () => import("./pt-b210cd4c.mjs"),
5486
- "../../../../assets/flags/pw.svg": () => import("./pw-a474545d.mjs"),
5487
- "../../../../assets/flags/py.svg": () => import("./py-e271f15f.mjs"),
5488
- "../../../../assets/flags/qa.svg": () => import("./qa-a7ad70ed.mjs"),
5489
- "../../../../assets/flags/re.svg": () => import("./re-a1440f32.mjs"),
5490
- "../../../../assets/flags/ro.svg": () => import("./ro-8a071708.mjs"),
5491
- "../../../../assets/flags/rs.svg": () => import("./rs-f3ea0f97.mjs"),
5492
- "../../../../assets/flags/ru.svg": () => import("./ru-edd59839.mjs"),
5493
- "../../../../assets/flags/rw.svg": () => import("./rw-df210dff.mjs"),
5494
- "../../../../assets/flags/sa.svg": () => import("./sa-18c28dc4.mjs"),
5495
- "../../../../assets/flags/sb.svg": () => import("./sb-35c0ab8d.mjs"),
5496
- "../../../../assets/flags/sc.svg": () => import("./sc-82eb7101.mjs"),
5497
- "../../../../assets/flags/sd.svg": () => import("./sd-dc5fb244.mjs"),
5498
- "../../../../assets/flags/se.svg": () => import("./se-0413b6f1.mjs"),
5499
- "../../../../assets/flags/sg.svg": () => import("./sg-8ff78597.mjs"),
5500
- "../../../../assets/flags/sh.svg": () => import("./sh-7b636341.mjs"),
5501
- "../../../../assets/flags/si.svg": () => import("./si-2c09bba0.mjs"),
5502
- "../../../../assets/flags/sj.svg": () => import("./sj-8aff2627.mjs"),
5503
- "../../../../assets/flags/sk.svg": () => import("./sk-8da1fee7.mjs"),
5504
- "../../../../assets/flags/sl.svg": () => import("./sl-92cb9116.mjs"),
5505
- "../../../../assets/flags/sm.svg": () => import("./sm-6fd64a6a.mjs"),
5506
- "../../../../assets/flags/sn.svg": () => import("./sn-57e8c34b.mjs"),
5507
- "../../../../assets/flags/so.svg": () => import("./so-f2f0ac03.mjs"),
5508
- "../../../../assets/flags/sr.svg": () => import("./sr-7869b748.mjs"),
5509
- "../../../../assets/flags/ss.svg": () => import("./ss-8e9c79ca.mjs"),
5510
- "../../../../assets/flags/st.svg": () => import("./st-6b3e911c.mjs"),
5511
- "../../../../assets/flags/sv.svg": () => import("./sv-922ba5ea.mjs"),
5512
- "../../../../assets/flags/sx.svg": () => import("./sx-c078bfd1.mjs"),
5513
- "../../../../assets/flags/sy.svg": () => import("./sy-995ec1ee.mjs"),
5514
- "../../../../assets/flags/sz.svg": () => import("./sz-da33c6e8.mjs"),
5515
- "../../../../assets/flags/tc.svg": () => import("./tc-1a465526.mjs"),
5516
- "../../../../assets/flags/td.svg": () => import("./td-a7ff3830.mjs"),
5517
- "../../../../assets/flags/tf.svg": () => import("./tf-c71eed4a.mjs"),
5518
- "../../../../assets/flags/tg.svg": () => import("./tg-613f7f5a.mjs"),
5519
- "../../../../assets/flags/th.svg": () => import("./th-f517ca34.mjs"),
5520
- "../../../../assets/flags/tj.svg": () => import("./tj-b99ac64f.mjs"),
5521
- "../../../../assets/flags/tk.svg": () => import("./tk-c0dfeac1.mjs"),
5522
- "../../../../assets/flags/tl.svg": () => import("./tl-35cc3595.mjs"),
5523
- "../../../../assets/flags/tm.svg": () => import("./tm-0deecc32.mjs"),
5524
- "../../../../assets/flags/tn.svg": () => import("./tn-190a49a0.mjs"),
5525
- "../../../../assets/flags/to.svg": () => import("./to-790cac18.mjs"),
5526
- "../../../../assets/flags/tr.svg": () => import("./tr-1db5a437.mjs"),
5527
- "../../../../assets/flags/tt.svg": () => import("./tt-85ae901c.mjs"),
5528
- "../../../../assets/flags/tv.svg": () => import("./tv-9f2b4198.mjs"),
5529
- "../../../../assets/flags/tw.svg": () => import("./tw-74aa27b3.mjs"),
5530
- "../../../../assets/flags/tz.svg": () => import("./tz-2a5cf5e6.mjs"),
5531
- "../../../../assets/flags/ua.svg": () => import("./ua-9fedceaa.mjs"),
5532
- "../../../../assets/flags/ug.svg": () => import("./ug-1a8fee80.mjs"),
5533
- "../../../../assets/flags/um.svg": () => import("./um-d774b142.mjs"),
5534
- "../../../../assets/flags/us.svg": () => import("./us-20ac3d88.mjs"),
5535
- "../../../../assets/flags/uy.svg": () => import("./uy-c22e1eb1.mjs"),
5536
- "../../../../assets/flags/uz.svg": () => import("./uz-f8be4086.mjs"),
5537
- "../../../../assets/flags/va.svg": () => import("./va-d1f00296.mjs"),
5538
- "../../../../assets/flags/vc.svg": () => import("./vc-0a06f1c2.mjs"),
5539
- "../../../../assets/flags/ve.svg": () => import("./ve-3bc33c40.mjs"),
5540
- "../../../../assets/flags/vg.svg": () => import("./vg-3ad787bf.mjs"),
5541
- "../../../../assets/flags/vi.svg": () => import("./vi-5a78bf74.mjs"),
5542
- "../../../../assets/flags/vn.svg": () => import("./vn-50e78ae2.mjs"),
5543
- "../../../../assets/flags/vu.svg": () => import("./vu-72d9304c.mjs"),
5544
- "../../../../assets/flags/wf.svg": () => import("./wf-8cdbeff9.mjs"),
5545
- "../../../../assets/flags/ws.svg": () => import("./ws-745fc88c.mjs"),
5546
- "../../../../assets/flags/ye.svg": () => import("./ye-f4eaca91.mjs"),
5547
- "../../../../assets/flags/yt.svg": () => import("./yt-93635c9a.mjs"),
5548
- "../../../../assets/flags/za.svg": () => import("./za-42d70d0b.mjs"),
5549
- "../../../../assets/flags/zm.svg": () => import("./zm-571a963f.mjs"),
5550
- "../../../../assets/flags/zw.svg": () => import("./zw-6cf765c3.mjs"),
5551
- "../../../../assets/flags/zz.svg": () => import("./zz-067ccc58.mjs")
5323
+ "../../../../assets/flags/ad.svg": () => import("./ad-DT4vRaBJ.mjs"),
5324
+ "../../../../assets/flags/ae.svg": () => import("./ae-BOcuAHGY.mjs"),
5325
+ "../../../../assets/flags/af.svg": () => import("./af-CoKzErRW.mjs"),
5326
+ "../../../../assets/flags/ag.svg": () => import("./ag-g4DXUCrU.mjs"),
5327
+ "../../../../assets/flags/ai.svg": () => import("./ai-CI-B0R9i.mjs"),
5328
+ "../../../../assets/flags/al.svg": () => import("./al-COFkJ5Ca.mjs"),
5329
+ "../../../../assets/flags/am.svg": () => import("./am-Dra-uz-8.mjs"),
5330
+ "../../../../assets/flags/an.svg": () => import("./an-BGvLoFME.mjs"),
5331
+ "../../../../assets/flags/ao.svg": () => import("./ao-DxG-ywGM.mjs"),
5332
+ "../../../../assets/flags/aq.svg": () => import("./aq-D6KJELrz.mjs"),
5333
+ "../../../../assets/flags/ar.svg": () => import("./ar-D1__sXLf.mjs"),
5334
+ "../../../../assets/flags/as.svg": () => import("./as-CO1cnzQr.mjs"),
5335
+ "../../../../assets/flags/at.svg": () => import("./at-DJ-_JUEF.mjs"),
5336
+ "../../../../assets/flags/au.svg": () => import("./au-DQ7hwYxQ.mjs"),
5337
+ "../../../../assets/flags/aw.svg": () => import("./aw-DsF55GZp.mjs"),
5338
+ "../../../../assets/flags/ax.svg": () => import("./ax-B7xGO2vL.mjs"),
5339
+ "../../../../assets/flags/az.svg": () => import("./az-Bn_p9CvJ.mjs"),
5340
+ "../../../../assets/flags/ba.svg": () => import("./ba-BoJK_mQe.mjs"),
5341
+ "../../../../assets/flags/bb.svg": () => import("./bb-Pm_QT_Dl.mjs"),
5342
+ "../../../../assets/flags/bd.svg": () => import("./bd-D7_YREZy.mjs"),
5343
+ "../../../../assets/flags/be.svg": () => import("./be-CZxtblLB.mjs"),
5344
+ "../../../../assets/flags/bf.svg": () => import("./bf-Dpx2xJ7g.mjs"),
5345
+ "../../../../assets/flags/bg.svg": () => import("./bg-GwVUUSOM.mjs"),
5346
+ "../../../../assets/flags/bh.svg": () => import("./bh-JbZUrPJw.mjs"),
5347
+ "../../../../assets/flags/bi.svg": () => import("./bi-BltG81ar.mjs"),
5348
+ "../../../../assets/flags/bj.svg": () => import("./bj-zQUv2SQa.mjs"),
5349
+ "../../../../assets/flags/bl.svg": () => import("./bl-BUtmusIM.mjs"),
5350
+ "../../../../assets/flags/bm.svg": () => import("./bm-D_illE8L.mjs"),
5351
+ "../../../../assets/flags/bn.svg": () => import("./bn-1XDJa4lE.mjs"),
5352
+ "../../../../assets/flags/bo.svg": () => import("./bo-DlmVbV9z.mjs"),
5353
+ "../../../../assets/flags/br.svg": () => import("./br-DLB6QJZk.mjs"),
5354
+ "../../../../assets/flags/bs.svg": () => import("./bs-8dBnGYPj.mjs"),
5355
+ "../../../../assets/flags/bt.svg": () => import("./bt-D9SHS-Ak.mjs"),
5356
+ "../../../../assets/flags/bv.svg": () => import("./bv-ahmv_jU3.mjs"),
5357
+ "../../../../assets/flags/bw.svg": () => import("./bw-DzLl7TuC.mjs"),
5358
+ "../../../../assets/flags/by.svg": () => import("./by-BztFrg5-.mjs"),
5359
+ "../../../../assets/flags/bz.svg": () => import("./bz-DkyxrcWx.mjs"),
5360
+ "../../../../assets/flags/ca.svg": () => import("./ca-Bika55Ha.mjs"),
5361
+ "../../../../assets/flags/cc.svg": () => import("./cc-CFZz_AYg.mjs"),
5362
+ "../../../../assets/flags/cd.svg": () => import("./cd-CgybrxtQ.mjs"),
5363
+ "../../../../assets/flags/cf.svg": () => import("./cf-D23Pv9G5.mjs"),
5364
+ "../../../../assets/flags/cg.svg": () => import("./cg-CfZbcFMO.mjs"),
5365
+ "../../../../assets/flags/ch.svg": () => import("./ch-mKEGRNZY.mjs"),
5366
+ "../../../../assets/flags/ci.svg": () => import("./ci-BJ-L2p8Z.mjs"),
5367
+ "../../../../assets/flags/ck.svg": () => import("./ck-j69yRZOc.mjs"),
5368
+ "../../../../assets/flags/cl.svg": () => import("./cl-C6BytT6S.mjs"),
5369
+ "../../../../assets/flags/cm.svg": () => import("./cm-CUzrX5VK.mjs"),
5370
+ "../../../../assets/flags/cn.svg": () => import("./cn-De5mx48S.mjs"),
5371
+ "../../../../assets/flags/co.svg": () => import("./co-D1tfX-Rj.mjs"),
5372
+ "../../../../assets/flags/cr.svg": () => import("./cr-zUnaQPg8.mjs"),
5373
+ "../../../../assets/flags/cu.svg": () => import("./cu-DaGswOf0.mjs"),
5374
+ "../../../../assets/flags/cv.svg": () => import("./cv-C4-jr8vq.mjs"),
5375
+ "../../../../assets/flags/cw.svg": () => import("./cw-D-6419Qt.mjs"),
5376
+ "../../../../assets/flags/cx.svg": () => import("./cx-DfNBgtwc.mjs"),
5377
+ "../../../../assets/flags/cy.svg": () => import("./cy-BRABzapK.mjs"),
5378
+ "../../../../assets/flags/cz.svg": () => import("./cz-DzosVcuo.mjs"),
5379
+ "../../../../assets/flags/de.svg": () => import("./de-DRcIm1Ma.mjs"),
5380
+ "../../../../assets/flags/dj.svg": () => import("./dj-Da7LmapC.mjs"),
5381
+ "../../../../assets/flags/dk.svg": () => import("./dk-pty9O1pD.mjs"),
5382
+ "../../../../assets/flags/dm.svg": () => import("./dm-GPioKBpx.mjs"),
5383
+ "../../../../assets/flags/do.svg": () => import("./do-k8Aqzhu5.mjs"),
5384
+ "../../../../assets/flags/dz.svg": () => import("./dz-0w5shCtT.mjs"),
5385
+ "../../../../assets/flags/ec.svg": () => import("./ec-hp0Ygj0Y.mjs"),
5386
+ "../../../../assets/flags/ee.svg": () => import("./ee-Dpf_R8jm.mjs"),
5387
+ "../../../../assets/flags/eg.svg": () => import("./eg-BgVS1lzb.mjs"),
5388
+ "../../../../assets/flags/eh.svg": () => import("./eh-CEZasM8H.mjs"),
5389
+ "../../../../assets/flags/er.svg": () => import("./er-RK3foPBe.mjs"),
5390
+ "../../../../assets/flags/es.svg": () => import("./es-CNey9Ibr.mjs"),
5391
+ "../../../../assets/flags/et.svg": () => import("./et-cNmj57xA.mjs"),
5392
+ "../../../../assets/flags/fi.svg": () => import("./fi-Ds4M7qRF.mjs"),
5393
+ "../../../../assets/flags/fj.svg": () => import("./fj-D1q87nq5.mjs"),
5394
+ "../../../../assets/flags/fk.svg": () => import("./fk-Y2rCs5DH.mjs"),
5395
+ "../../../../assets/flags/fm.svg": () => import("./fm-BZKPOICq.mjs"),
5396
+ "../../../../assets/flags/fo.svg": () => import("./fo-sSr8Xnvb.mjs"),
5397
+ "../../../../assets/flags/fr.svg": () => import("./fr-BWzaj6Yw.mjs"),
5398
+ "../../../../assets/flags/fx.svg": () => import("./fx-DR2GRTdn.mjs"),
5399
+ "../../../../assets/flags/ga.svg": () => import("./ga-9LhduROZ.mjs"),
5400
+ "../../../../assets/flags/gb.svg": () => import("./gb-DA-V5Xdu.mjs"),
5401
+ "../../../../assets/flags/gd.svg": () => import("./gd-JWdzcsNM.mjs"),
5402
+ "../../../../assets/flags/ge.svg": () => import("./ge-Zw0skRye.mjs"),
5403
+ "../../../../assets/flags/gf.svg": () => import("./gf-Bq_uV48f.mjs"),
5404
+ "../../../../assets/flags/gg.svg": () => import("./gg-CNzs8gF-.mjs"),
5405
+ "../../../../assets/flags/gh.svg": () => import("./gh-2VT5yAxo.mjs"),
5406
+ "../../../../assets/flags/gi.svg": () => import("./gi-jPgXNb1L.mjs"),
5407
+ "../../../../assets/flags/gl.svg": () => import("./gl-c6mjlUME.mjs"),
5408
+ "../../../../assets/flags/gm.svg": () => import("./gm-BgeXyCUQ.mjs"),
5409
+ "../../../../assets/flags/gn.svg": () => import("./gn-CyyMcNZ3.mjs"),
5410
+ "../../../../assets/flags/gp.svg": () => import("./gp-D2PIp9tB.mjs"),
5411
+ "../../../../assets/flags/gq.svg": () => import("./gq-BT6Gd3M4.mjs"),
5412
+ "../../../../assets/flags/gr.svg": () => import("./gr-B5MQUSuL.mjs"),
5413
+ "../../../../assets/flags/gs.svg": () => import("./gs-6VXnGQzD.mjs"),
5414
+ "../../../../assets/flags/gt.svg": () => import("./gt-4DSSuHgq.mjs"),
5415
+ "../../../../assets/flags/gu.svg": () => import("./gu-Dxf1inL8.mjs"),
5416
+ "../../../../assets/flags/gw.svg": () => import("./gw-R5Dl09OL.mjs"),
5417
+ "../../../../assets/flags/gy.svg": () => import("./gy-CHx6kck0.mjs"),
5418
+ "../../../../assets/flags/hk.svg": () => import("./hk-DLy2j4QA.mjs"),
5419
+ "../../../../assets/flags/hm.svg": () => import("./hm-CoK7Z2cg.mjs"),
5420
+ "../../../../assets/flags/hn.svg": () => import("./hn-DxQ71v08.mjs"),
5421
+ "../../../../assets/flags/hr.svg": () => import("./hr-B6Zc8qZS.mjs"),
5422
+ "../../../../assets/flags/ht.svg": () => import("./ht-DCMkLse8.mjs"),
5423
+ "../../../../assets/flags/hu.svg": () => import("./hu-JEoUAdpx.mjs"),
5424
+ "../../../../assets/flags/id.svg": () => import("./id-D1C_2HvG.mjs"),
5425
+ "../../../../assets/flags/ie.svg": () => import("./ie-d3bapQx-.mjs"),
5426
+ "../../../../assets/flags/il.svg": () => import("./il-CxVm0b2J.mjs"),
5427
+ "../../../../assets/flags/im.svg": () => import("./im-BN_uhDka.mjs"),
5428
+ "../../../../assets/flags/in.svg": () => import("./in-BGdmDROr.mjs"),
5429
+ "../../../../assets/flags/io.svg": () => import("./io-DYCJpAKf.mjs"),
5430
+ "../../../../assets/flags/iq.svg": () => import("./iq-BlsI9EWN.mjs"),
5431
+ "../../../../assets/flags/ir.svg": () => import("./ir-DdOj6IVV.mjs"),
5432
+ "../../../../assets/flags/is.svg": () => import("./is-DN52KJKG.mjs"),
5433
+ "../../../../assets/flags/it.svg": () => import("./it-D6Y8tXt3.mjs"),
5434
+ "../../../../assets/flags/je.svg": () => import("./je-DR82slj4.mjs"),
5435
+ "../../../../assets/flags/jm.svg": () => import("./jm-LqaENrl9.mjs"),
5436
+ "../../../../assets/flags/jo.svg": () => import("./jo-yLc64Rmj.mjs"),
5437
+ "../../../../assets/flags/jp.svg": () => import("./jp-Bb5uIw0H.mjs"),
5438
+ "../../../../assets/flags/ke.svg": () => import("./ke-BK1BjkeR.mjs"),
5439
+ "../../../../assets/flags/kg.svg": () => import("./kg-wlEuBvxO.mjs"),
5440
+ "../../../../assets/flags/kh.svg": () => import("./kh-DsvqlHLy.mjs"),
5441
+ "../../../../assets/flags/ki.svg": () => import("./ki-Byta-OFo.mjs"),
5442
+ "../../../../assets/flags/km.svg": () => import("./km-RNbmgGL_.mjs"),
5443
+ "../../../../assets/flags/kn.svg": () => import("./kn-CsHNi3Qt.mjs"),
5444
+ "../../../../assets/flags/kp.svg": () => import("./kp-DskyYlvx.mjs"),
5445
+ "../../../../assets/flags/kr.svg": () => import("./kr-DlF6eJVr.mjs"),
5446
+ "../../../../assets/flags/kw.svg": () => import("./kw-BiQAd6j1.mjs"),
5447
+ "../../../../assets/flags/ky.svg": () => import("./ky-BvPeTNcl.mjs"),
5448
+ "../../../../assets/flags/kz.svg": () => import("./kz-BQCcz0Va.mjs"),
5449
+ "../../../../assets/flags/la.svg": () => import("./la-COyntyzl.mjs"),
5450
+ "../../../../assets/flags/lb.svg": () => import("./lb-CzTzggHc.mjs"),
5451
+ "../../../../assets/flags/lc.svg": () => import("./lc-CRL2hV6d.mjs"),
5452
+ "../../../../assets/flags/li.svg": () => import("./li-BN-LWzEm.mjs"),
5453
+ "../../../../assets/flags/lk.svg": () => import("./lk-Dh6uTZcH.mjs"),
5454
+ "../../../../assets/flags/lr.svg": () => import("./lr-CoVvhAhL.mjs"),
5455
+ "../../../../assets/flags/ls.svg": () => import("./ls-BFhv4OAc.mjs"),
5456
+ "../../../../assets/flags/lt.svg": () => import("./lt-C9w-Id1S.mjs"),
5457
+ "../../../../assets/flags/lu.svg": () => import("./lu-Ccpxa0yN.mjs"),
5458
+ "../../../../assets/flags/lv.svg": () => import("./lv-Di5Y7vBC.mjs"),
5459
+ "../../../../assets/flags/ly.svg": () => import("./ly-BKgB-CvV.mjs"),
5460
+ "../../../../assets/flags/ma.svg": () => import("./ma-gJj5XCI-.mjs"),
5461
+ "../../../../assets/flags/mc.svg": () => import("./mc-BPN5JfTO.mjs"),
5462
+ "../../../../assets/flags/md.svg": () => import("./md-aCqyKOgl.mjs"),
5463
+ "../../../../assets/flags/me.svg": () => import("./me-C6-JkhFA.mjs"),
5464
+ "../../../../assets/flags/mf.svg": () => import("./mf-jpyKjgsU.mjs"),
5465
+ "../../../../assets/flags/mg.svg": () => import("./mg-TS1IwqtI.mjs"),
5466
+ "../../../../assets/flags/mh.svg": () => import("./mh-yHLgOFiA.mjs"),
5467
+ "../../../../assets/flags/mk.svg": () => import("./mk-CaRVDngZ.mjs"),
5468
+ "../../../../assets/flags/ml.svg": () => import("./ml-CUUHxg1j.mjs"),
5469
+ "../../../../assets/flags/mm.svg": () => import("./mm-CYK7VHSP.mjs"),
5470
+ "../../../../assets/flags/mn.svg": () => import("./mn-D2S-h2WN.mjs"),
5471
+ "../../../../assets/flags/mo.svg": () => import("./mo-D1RG60zF.mjs"),
5472
+ "../../../../assets/flags/mp.svg": () => import("./mp-DzztXSh1.mjs"),
5473
+ "../../../../assets/flags/mq.svg": () => import("./mq-Gsmz5_5j.mjs"),
5474
+ "../../../../assets/flags/mr.svg": () => import("./mr-C_s5K8p5.mjs"),
5475
+ "../../../../assets/flags/ms.svg": () => import("./ms-Cgov7p4h.mjs"),
5476
+ "../../../../assets/flags/mt.svg": () => import("./mt-B9vsNjSx.mjs"),
5477
+ "../../../../assets/flags/mu.svg": () => import("./mu-DeH79Hcd.mjs"),
5478
+ "../../../../assets/flags/mv.svg": () => import("./mv-CS9OGWK4.mjs"),
5479
+ "../../../../assets/flags/mw.svg": () => import("./mw-BvDfO_4m.mjs"),
5480
+ "../../../../assets/flags/mx.svg": () => import("./mx-ByC0ZmOn.mjs"),
5481
+ "../../../../assets/flags/my.svg": () => import("./my-BtbjhaSG.mjs"),
5482
+ "../../../../assets/flags/mz.svg": () => import("./mz-BuZty0IX.mjs"),
5483
+ "../../../../assets/flags/na.svg": () => import("./na-BMRoTc_5.mjs"),
5484
+ "../../../../assets/flags/nc.svg": () => import("./nc-TfmJ1_PR.mjs"),
5485
+ "../../../../assets/flags/ne.svg": () => import("./ne-e6jU7Ta4.mjs"),
5486
+ "../../../../assets/flags/nf.svg": () => import("./nf-DEApE1l7.mjs"),
5487
+ "../../../../assets/flags/ng.svg": () => import("./ng-C481SfES.mjs"),
5488
+ "../../../../assets/flags/ni.svg": () => import("./ni-DoG4DYn_.mjs"),
5489
+ "../../../../assets/flags/nl.svg": () => import("./nl-Cmbofdv4.mjs"),
5490
+ "../../../../assets/flags/no.svg": () => import("./no-CVO81I1l.mjs"),
5491
+ "../../../../assets/flags/np.svg": () => import("./np-zRmg82Re.mjs"),
5492
+ "../../../../assets/flags/nr.svg": () => import("./nr-B5qQQRjH.mjs"),
5493
+ "../../../../assets/flags/nu.svg": () => import("./nu-BI4Y-0EG.mjs"),
5494
+ "../../../../assets/flags/nz.svg": () => import("./nz-DF7xbKn7.mjs"),
5495
+ "../../../../assets/flags/om.svg": () => import("./om-BjOei_ke.mjs"),
5496
+ "../../../../assets/flags/pa.svg": () => import("./pa-ZEXTGOfm.mjs"),
5497
+ "../../../../assets/flags/pe.svg": () => import("./pe-HNEmB15y.mjs"),
5498
+ "../../../../assets/flags/pf.svg": () => import("./pf-DwCESo2k.mjs"),
5499
+ "../../../../assets/flags/pg.svg": () => import("./pg-BhOdaLDy.mjs"),
5500
+ "../../../../assets/flags/ph.svg": () => import("./ph-8ii4-Tq6.mjs"),
5501
+ "../../../../assets/flags/pk.svg": () => import("./pk-BafoDKz5.mjs"),
5502
+ "../../../../assets/flags/pl.svg": () => import("./pl-D9b2Q58T.mjs"),
5503
+ "../../../../assets/flags/pm.svg": () => import("./pm-C-WvmgM4.mjs"),
5504
+ "../../../../assets/flags/pn.svg": () => import("./pn-DjnHidFS.mjs"),
5505
+ "../../../../assets/flags/pr.svg": () => import("./pr-Dd50hA9F.mjs"),
5506
+ "../../../../assets/flags/ps.svg": () => import("./ps-CUGb27Pq.mjs"),
5507
+ "../../../../assets/flags/pt.svg": () => import("./pt-Qpxk-ulQ.mjs"),
5508
+ "../../../../assets/flags/pw.svg": () => import("./pw-DV4RtHVX.mjs"),
5509
+ "../../../../assets/flags/py.svg": () => import("./py-eg-mtZFC.mjs"),
5510
+ "../../../../assets/flags/qa.svg": () => import("./qa-CHyJi5tF.mjs"),
5511
+ "../../../../assets/flags/re.svg": () => import("./re-FpArmeeM.mjs"),
5512
+ "../../../../assets/flags/ro.svg": () => import("./ro-ANrnebzK.mjs"),
5513
+ "../../../../assets/flags/rs.svg": () => import("./rs-BGbyX7Qb.mjs"),
5514
+ "../../../../assets/flags/ru.svg": () => import("./ru-DtLSIa8v.mjs"),
5515
+ "../../../../assets/flags/rw.svg": () => import("./rw-B1kILqpv.mjs"),
5516
+ "../../../../assets/flags/sa.svg": () => import("./sa-CEcWBFfj.mjs"),
5517
+ "../../../../assets/flags/sb.svg": () => import("./sb-p9ah_4x5.mjs"),
5518
+ "../../../../assets/flags/sc.svg": () => import("./sc-2YHg9FTT.mjs"),
5519
+ "../../../../assets/flags/sd.svg": () => import("./sd-BKzyWEE3.mjs"),
5520
+ "../../../../assets/flags/se.svg": () => import("./se-Dq5LtCEp.mjs"),
5521
+ "../../../../assets/flags/sg.svg": () => import("./sg-C752_QVl.mjs"),
5522
+ "../../../../assets/flags/sh.svg": () => import("./sh-NFjaiAXX.mjs"),
5523
+ "../../../../assets/flags/si.svg": () => import("./si-DKzVjXeV.mjs"),
5524
+ "../../../../assets/flags/sj.svg": () => import("./sj-DF7Bf8Q9.mjs"),
5525
+ "../../../../assets/flags/sk.svg": () => import("./sk-CPmqq18S.mjs"),
5526
+ "../../../../assets/flags/sl.svg": () => import("./sl-Dx7oHjXI.mjs"),
5527
+ "../../../../assets/flags/sm.svg": () => import("./sm-B8bEOCx7.mjs"),
5528
+ "../../../../assets/flags/sn.svg": () => import("./sn-tcqzwUh4.mjs"),
5529
+ "../../../../assets/flags/so.svg": () => import("./so-BrD8jwW8.mjs"),
5530
+ "../../../../assets/flags/sr.svg": () => import("./sr-Dyy1x6sW.mjs"),
5531
+ "../../../../assets/flags/ss.svg": () => import("./ss-CpfhWUQL.mjs"),
5532
+ "../../../../assets/flags/st.svg": () => import("./st-DZJqDu2d.mjs"),
5533
+ "../../../../assets/flags/sv.svg": () => import("./sv-DtkfLQdf.mjs"),
5534
+ "../../../../assets/flags/sx.svg": () => import("./sx-C1dyGLW-.mjs"),
5535
+ "../../../../assets/flags/sy.svg": () => import("./sy-DhvBoSDL.mjs"),
5536
+ "../../../../assets/flags/sz.svg": () => import("./sz-Co03zPL0.mjs"),
5537
+ "../../../../assets/flags/tc.svg": () => import("./tc-DFY42rbc.mjs"),
5538
+ "../../../../assets/flags/td.svg": () => import("./td-DdnMoB4B.mjs"),
5539
+ "../../../../assets/flags/tf.svg": () => import("./tf-DtUoHxUD.mjs"),
5540
+ "../../../../assets/flags/tg.svg": () => import("./tg-B-szBZlQ.mjs"),
5541
+ "../../../../assets/flags/th.svg": () => import("./th-hl0xD9En.mjs"),
5542
+ "../../../../assets/flags/tj.svg": () => import("./tj-CaluHgV4.mjs"),
5543
+ "../../../../assets/flags/tk.svg": () => import("./tk-7WTKQA6M.mjs"),
5544
+ "../../../../assets/flags/tl.svg": () => import("./tl-DWxFj_mI.mjs"),
5545
+ "../../../../assets/flags/tm.svg": () => import("./tm-CXa44ZsQ.mjs"),
5546
+ "../../../../assets/flags/tn.svg": () => import("./tn-YGA63yhm.mjs"),
5547
+ "../../../../assets/flags/to.svg": () => import("./to-D1SPhDAS.mjs"),
5548
+ "../../../../assets/flags/tr.svg": () => import("./tr-BkORBw5s.mjs"),
5549
+ "../../../../assets/flags/tt.svg": () => import("./tt-CPiasxy9.mjs"),
5550
+ "../../../../assets/flags/tv.svg": () => import("./tv-1UKqGnYq.mjs"),
5551
+ "../../../../assets/flags/tw.svg": () => import("./tw-V_-9EdZA.mjs"),
5552
+ "../../../../assets/flags/tz.svg": () => import("./tz-vyNQ8siG.mjs"),
5553
+ "../../../../assets/flags/ua.svg": () => import("./ua-B36hNKIn.mjs"),
5554
+ "../../../../assets/flags/ug.svg": () => import("./ug-DzrOv_zJ.mjs"),
5555
+ "../../../../assets/flags/um.svg": () => import("./um-Xf4WHDSX.mjs"),
5556
+ "../../../../assets/flags/us.svg": () => import("./us-VkSkiw44.mjs"),
5557
+ "../../../../assets/flags/uy.svg": () => import("./uy-BBVhuI0m.mjs"),
5558
+ "../../../../assets/flags/uz.svg": () => import("./uz-D4g4y6tl.mjs"),
5559
+ "../../../../assets/flags/va.svg": () => import("./va-CuiFpTCr.mjs"),
5560
+ "../../../../assets/flags/vc.svg": () => import("./vc-BGrc4dhk.mjs"),
5561
+ "../../../../assets/flags/ve.svg": () => import("./ve-76O2C7rm.mjs"),
5562
+ "../../../../assets/flags/vg.svg": () => import("./vg-DMKx8jrg.mjs"),
5563
+ "../../../../assets/flags/vi.svg": () => import("./vi-D8PahWnh.mjs"),
5564
+ "../../../../assets/flags/vn.svg": () => import("./vn-BnPQgCR1.mjs"),
5565
+ "../../../../assets/flags/vu.svg": () => import("./vu-B3LLAmr5.mjs"),
5566
+ "../../../../assets/flags/wf.svg": () => import("./wf-qXr-xalT.mjs"),
5567
+ "../../../../assets/flags/ws.svg": () => import("./ws-pGsAcjqz.mjs"),
5568
+ "../../../../assets/flags/ye.svg": () => import("./ye-CII0qyBt.mjs"),
5569
+ "../../../../assets/flags/yt.svg": () => import("./yt-BoehcMko.mjs"),
5570
+ "../../../../assets/flags/za.svg": () => import("./za-CaK3IAZP.mjs"),
5571
+ "../../../../assets/flags/zm.svg": () => import("./zm-C8-RQ03K.mjs"),
5572
+ "../../../../assets/flags/zw.svg": () => import("./zw-JWvy-vVa.mjs"),
5573
+ "../../../../assets/flags/zz.svg": () => import("./zz-CCLSDExB.mjs")
5552
5574
  });
5553
5575
  const getLazyLoadedSvgComponent = (country2) => {
5554
5576
  const importForCountry = flagImports[`../../../../assets/flags/${country2.toLowerCase()}.svg`];
5555
5577
  if (!importForCountry) {
5556
- logger$s.error(`No flag available for ${country2}`);
5578
+ logger$t.error(`No flag available for ${country2}`);
5557
5579
  return void 0;
5558
5580
  }
5559
5581
  return lazy(importForCountry);
@@ -5618,7 +5640,6 @@ function CountryField({
5618
5640
  })
5619
5641
  });
5620
5642
  }
5621
- const FormHeader$1 = "";
5622
5643
  function FormHeader({
5623
5644
  heading,
5624
5645
  description: description2,
@@ -5658,7 +5679,6 @@ const useForwardedRef = (forwardedRef) => {
5658
5679
  const backupRef = useRef();
5659
5680
  return forwardedRef ?? backupRef;
5660
5681
  };
5661
- const FormFields = "";
5662
5682
  const convertFullToHalf = (str) => str.replace(/[!-~]/g, (r) => String.fromCharCode(r.charCodeAt(0) - 65248));
5663
5683
  const InputBase = forwardRef((props, ref) => {
5664
5684
  const {
@@ -5782,7 +5802,6 @@ function LegalCompanyNameField({
5782
5802
  })
5783
5803
  });
5784
5804
  }
5785
- const Disclaimer$1 = "";
5786
5805
  const Disclaimer = ({
5787
5806
  title,
5788
5807
  children
@@ -5898,7 +5917,6 @@ const CompanyNameAndCountryComponent = memo(CompanyNameAndCountry, (prevProps, n
5898
5917
  var _a, _b;
5899
5918
  return objectsDeepEqual(prevProps.requiredFields, nextProps.requiredFields) && objectsDeepEqual(prevProps.optionalFields, nextProps.optionalFields) && objectsDeepEqual(prevProps.data, nextProps.data) && objectsDeepEqual(prevProps.formVerificationErrors, nextProps.formVerificationErrors) && objectsDeepEqual(prevProps.fieldValidationErrors, nextProps.fieldValidationErrors) && ((_a = prevProps.data) == null ? void 0 : _a.country) === ((_b = nextProps.data) == null ? void 0 : _b.country) && prevProps.shouldValidate === nextProps.shouldValidate;
5900
5919
  });
5901
- const CompanyRegistrationDetailsComponent$1 = "";
5902
5920
  var ExperimentNames = /* @__PURE__ */ ((ExperimentNames2) => {
5903
5921
  ExperimentNames2["EnableCompanySearchFlow"] = "EnableCompanySearchFlow";
5904
5922
  ExperimentNames2["EnableNewEntryFlow"] = "EnableNewEntryFlow";
@@ -6197,7 +6215,6 @@ const resolveFieldMetadata = (countryEntry, params, defaultMetadata) => {
6197
6215
  }
6198
6216
  return defaultMetadata;
6199
6217
  };
6200
- const MaskedInputText$1 = "";
6201
6218
  const cachedStripPatterns = /* @__PURE__ */ new Map();
6202
6219
  const makeStripPattern = (mask) => {
6203
6220
  const inputPatterns = mask.tokens.filter((token) => token.type === "input" && !!token.allow).map((token) => token.allow);
@@ -6355,7 +6372,7 @@ const deriveInputState = (isValid, isFocused, hasBlurred, isDisabled, errorMessa
6355
6372
  };
6356
6373
  };
6357
6374
  const MISMATCH_ANIMATION_NAME = "mismatchShake";
6358
- const logger$r = createLogger("MaskedInputText");
6375
+ const logger$s = createLogger("MaskedInputText");
6359
6376
  const MaskedInputText = ({
6360
6377
  value,
6361
6378
  onInput,
@@ -6397,7 +6414,7 @@ const MaskedInputText = ({
6397
6414
  };
6398
6415
  useEffect(() => {
6399
6416
  if (!mask) {
6400
- logger$r.warn("`mask` is undefined. No masking of input will take place.");
6417
+ logger$s.warn("`mask` is undefined. No masking of input will take place.");
6401
6418
  }
6402
6419
  }, [mask]);
6403
6420
  const getMaskResult = useCallback((pureValue) => {
@@ -6424,7 +6441,7 @@ const MaskedInputText = ({
6424
6441
  return;
6425
6442
  }
6426
6443
  const fallback = displayValueToPure(maskResult.partialDisplayValue);
6427
- logger$r.warn(`Value received "${value}" does not match mask`, maskResult, `
6444
+ logger$s.warn(`Value received "${value}" does not match mask`, maskResult, `
6428
6445
  Falling back to partially valid value "${fallback}"`);
6429
6446
  onInput(fallback);
6430
6447
  }
@@ -6645,7 +6662,9 @@ const businessRegistrationNumberMasks = {
6645
6662
  },
6646
6663
  [CountryCodes.Finland]: {
6647
6664
  default: {
6648
- mask: makeMask(...numericInputs(7), ...nonInputs(" - "), ...numericInputs(1))
6665
+ mask: makeMask(...numericInputs(7), spacer, ...nonInputs("-", {
6666
+ includeInValue: true
6667
+ }), spacer, ...numericInputs(1))
6649
6668
  }
6650
6669
  },
6651
6670
  [CountryCodes.France]: {
@@ -6893,7 +6912,7 @@ const businessRegistrationNumberPatterns = {
6893
6912
  default: /^\d{8}$/
6894
6913
  },
6895
6914
  [CountryCodes.Finland]: {
6896
- default: /^\d{8}$/
6915
+ default: /^\d{7}-?\d$/
6897
6916
  },
6898
6917
  [CountryCodes.France]: {
6899
6918
  SIRET: /^\d{9}-?\d{5}$/,
@@ -7024,7 +7043,7 @@ const CountryIdNumberPatterns = {
7024
7043
  [CountryCodes.Italy]: /^[A-Z]{6}[0-9]{2}[ABCDEHLMPRST][0-9]{2}[A-Z][0-9]{3}[A-Z]$/,
7025
7044
  [CountryCodes.Poland]: /^\d{11}$/,
7026
7045
  [CountryCodes.Romania]: /^\d{13}$/,
7027
- [CountryCodes.Singapore]: /^[A-Z][0-9]{6}[A-Z]$/,
7046
+ [CountryCodes.Singapore]: /^[A-Z][0-9]{7}[A-Z]$/,
7028
7047
  [CountryCodes.Spain]: {
7029
7048
  dni: /(^[KL]?\d{8}[A-Z]$)/,
7030
7049
  nie: /(^[MXYZ]\d{7,8}[A-Z]$)/
@@ -7904,7 +7923,6 @@ class UserEvents {
7904
7923
  }
7905
7924
  }
7906
7925
  const userEvents = new UserEvents();
7907
- const _accordion_component = "";
7908
7926
  const AccordionContext = createContext(null);
7909
7927
  function Accordion({
7910
7928
  children,
@@ -7937,13 +7955,11 @@ var Placement = /* @__PURE__ */ ((Placement2) => {
7937
7955
  Placement2[Placement2["Right"] = 1] = "Right";
7938
7956
  return Placement2;
7939
7957
  })(Placement || {});
7940
- const _accordionItem_component = "";
7941
7958
  let idCounter = Date.now();
7942
7959
  const getUniqueId = (prefix = "id") => {
7943
7960
  idCounter += 1;
7944
7961
  return `${prefix}-${idCounter}`;
7945
7962
  };
7946
- const CollapsibleContainer$1 = "";
7947
7963
  function CollapsibleContainer({
7948
7964
  children,
7949
7965
  collapsed = false,
@@ -8144,8 +8160,6 @@ function InputDate(props) {
8144
8160
  maxLength: 10
8145
8161
  });
8146
8162
  }
8147
- const RadioGroup$1 = "";
8148
- const _inputRadio = "";
8149
8163
  const InputRadio = ({
8150
8164
  className,
8151
8165
  ...props
@@ -8461,12 +8475,12 @@ const defaultFieldConfig$7 = {
8461
8475
  label: "employerIdentificationNumber",
8462
8476
  validators: validatePatternOnBlur(/^\d{9}$/),
8463
8477
  mask: {
8464
- mask: makeMask(...numericInputs(9))
8478
+ mask: makeMask(...numericInputs(2), ...nonInputs(" - "), ...numericInputs(7))
8465
8479
  },
8466
8480
  guidanceText: {
8467
8481
  key: "validationPleaseEnterAValidTaxIdNumberWithFormat",
8468
8482
  values: {
8469
- format: "XXXXXXXXX"
8483
+ format: "XX-XXXXXXX"
8470
8484
  }
8471
8485
  }
8472
8486
  };
@@ -9709,7 +9723,6 @@ function CompanyRegistrationDetailsComponent(props) {
9709
9723
  })]
9710
9724
  });
9711
9725
  }
9712
- const CompanyTypeComponent$1 = "";
9713
9726
  const companyBase = {
9714
9727
  accountHolder: {
9715
9728
  rule: "accountHolderIfCustomer"
@@ -10518,7 +10531,7 @@ const accountHolderValidationRules = {
10518
10531
  }
10519
10532
  };
10520
10533
  const accountHolderFields = ["accountHolder"];
10521
- const logger$q = createLogger("AccountHolder");
10534
+ const logger$r = createLogger("AccountHolder");
10522
10535
  function getAvailableAccountHolderOptions(legalEntityType, isChangeOfLegalEntityTypeAllowed, isTrustFlowEnabled, isSoleProprietorshipAllowed, isChangeToMyNameAllowed) {
10523
10536
  switch (legalEntityType) {
10524
10537
  case LegalEntityType.ORGANIZATION: {
@@ -10528,7 +10541,7 @@ function getAvailableAccountHolderOptions(legalEntityType, isChangeOfLegalEntity
10528
10541
  return [...isChangeToMyNameAllowed ? ["myName"] : [], ...isChangeOfLegalEntityTypeAllowed ? ["theCompanyIWorkFor"] : [], ...isTrustFlowEnabled ? ["aTrust"] : [], ...isSoleProprietorshipAllowed ? ["mySoleProprietorName"] : []];
10529
10542
  }
10530
10543
  default:
10531
- logger$q.error(`No available account holder options for legal entity type '${legalEntityType}'`);
10544
+ logger$r.error(`No available account holder options for legal entity type '${legalEntityType}'`);
10532
10545
  return [];
10533
10546
  }
10534
10547
  }
@@ -10620,7 +10633,6 @@ function AccountHolder(props) {
10620
10633
  }) : null]
10621
10634
  });
10622
10635
  }
10623
- const RadioCard$1 = "";
10624
10636
  const RadioCard = ({
10625
10637
  optionId,
10626
10638
  optionName,
@@ -10691,7 +10703,6 @@ const RadioCard = ({
10691
10703
  })]
10692
10704
  }, optionId);
10693
10705
  };
10694
- const RadioGroupCard$1 = "";
10695
10706
  function RadioCardSelect({
10696
10707
  options,
10697
10708
  name,
@@ -10875,7 +10886,6 @@ const getDocumentGuidancePrefix = (documentType2, isIcon = false, isFront = true
10875
10886
  return "generic-document";
10876
10887
  }
10877
10888
  };
10878
- const _documentGuidance_component = "";
10879
10889
  function DocumentGuidance({
10880
10890
  type,
10881
10891
  className
@@ -10962,7 +10972,6 @@ function DocumentGuidance({
10962
10972
  })
10963
10973
  });
10964
10974
  }
10965
- const Dropzone$1 = "";
10966
10975
  function bytesToSize(bytes) {
10967
10976
  const sizes = ["Bytes", "KB", "MB", "GB", "TB"];
10968
10977
  if (bytes === 0)
@@ -10972,7 +10981,6 @@ function bytesToSize(bytes) {
10972
10981
  return `${bytes} ${sizes[i]}`;
10973
10982
  return `${(bytes / 1024 ** i).toFixed()} ${sizes[i]}`;
10974
10983
  }
10975
- const DropzoneFile$1 = "";
10976
10984
  const isExistingFile = (file) => "existing" in file && file.existing;
10977
10985
  const isNewlyUploadedFile = (file) => !isExistingFile(file);
10978
10986
  function DropzoneFile(props) {
@@ -11276,7 +11284,7 @@ function Dropzone(props) {
11276
11284
  })]
11277
11285
  });
11278
11286
  }
11279
- const logger$p = createLogger("TextArea");
11287
+ const logger$q = createLogger("TextArea");
11280
11288
  function TextArea(props) {
11281
11289
  const {
11282
11290
  classNameModifiers,
@@ -11297,7 +11305,7 @@ function TextArea(props) {
11297
11305
  } = useI18nContext();
11298
11306
  const [value, setValue] = useState("");
11299
11307
  if (Object.prototype.hasOwnProperty.call(props, "onChange")) {
11300
- logger$p.error("Error: Form fields that rely on InputBase may not have an onChange property");
11308
+ logger$q.error("Error: Form fields that rely on InputBase may not have an onChange property");
11301
11309
  }
11302
11310
  const handleInput = (e) => {
11303
11311
  var _a;
@@ -11459,7 +11467,6 @@ function DocumentUploadComponent({
11459
11467
  }), formUtils.isRequiredField("description") && jsx(Field, {
11460
11468
  name: "description",
11461
11469
  label: formUtils.getLabel("descriptionOptional"),
11462
- helper: i18n.get("descriptionHelper"),
11463
11470
  errorMessage: formUtils.getErrorMessage("description", errors, fieldProblems),
11464
11471
  isValid: valid.description,
11465
11472
  children: (childProps) => jsx(TextArea, {
@@ -11476,7 +11483,6 @@ function DocumentUploadComponent({
11476
11483
  });
11477
11484
  }
11478
11485
  const DocumentUpload = memo(DocumentUploadComponent, (prevProps, nextProps) => prevProps.shouldValidate === nextProps.shouldValidate && objectsDeepEqual(prevProps.requiredFields, nextProps.requiredFields) && objectsDeepEqual(prevProps.data, nextProps.data) && objectsDeepEqual(prevProps.formVerificationErrors, nextProps.formVerificationErrors) && objectsDeepEqual(prevProps.fieldValidationErrors, nextProps.fieldValidationErrors) && objectsDeepEqual(prevProps.documentTypeSelect, nextProps.documentTypeSelect) && prevProps.documentField === nextProps.documentField && prevProps.name === nextProps.name);
11479
- const _list_component = "";
11480
11486
  function List({
11481
11487
  className,
11482
11488
  nested,
@@ -11493,15 +11499,16 @@ function List({
11493
11499
  function ListItem({
11494
11500
  className,
11495
11501
  children,
11496
- noMarkers
11502
+ noMarkers,
11503
+ ...props
11497
11504
  }) {
11498
11505
  const classNames = cx(["adl-list__item", noMarkers && "adl-list__item--no-markers", className]);
11499
11506
  return jsx("li", {
11507
+ ...props,
11500
11508
  className: classNames,
11501
11509
  children
11502
11510
  });
11503
11511
  }
11504
- const Address$1 = "";
11505
11512
  const ADDRESS_SCHEMA = ["address", "otherAddressInformation", "postalCode", "city", "stateOrProvince", "country"];
11506
11513
  const [ADDRESS, OTHER_ADDRESS_INFORMATION, POSTAL_CODE, CITY, STATE, COUNTRY] = ADDRESS_SCHEMA;
11507
11514
  const COUNTRIES_WITH_STATES_DATASET = [CountryCodes.Australia, CountryCodes.Brazil, CountryCodes.Canada, CountryCodes.NewZealand, CountryCodes.UnitedStates];
@@ -11711,7 +11718,7 @@ function FieldContainer(props) {
11711
11718
  }
11712
11719
  return renderField(fieldName);
11713
11720
  }
11714
- const logger$o = createLogger("SearchAddress");
11721
+ const logger$p = createLogger("SearchAddress");
11715
11722
  const SearchAddress = ({
11716
11723
  data,
11717
11724
  legalEntityId,
@@ -11754,7 +11761,7 @@ const SearchAddress = ({
11754
11761
  const response = await handleFindAddress(selectedAddressId);
11755
11762
  autocompleteAddressForm(response);
11756
11763
  } catch (e) {
11757
- logger$o.error(e);
11764
+ logger$p.error(e);
11758
11765
  }
11759
11766
  };
11760
11767
  const onDrilldown = async (selectedAddress) => {
@@ -11766,7 +11773,7 @@ const SearchAddress = ({
11766
11773
  }, legalEntityId);
11767
11774
  setItems((response == null ? void 0 : response.results) || []);
11768
11775
  } catch (e) {
11769
- logger$o.error(e);
11776
+ logger$p.error(e);
11770
11777
  }
11771
11778
  };
11772
11779
  const onChange = (e) => {
@@ -11821,7 +11828,7 @@ const SearchAddress = ({
11821
11828
  setItems([]);
11822
11829
  }
11823
11830
  } catch (e) {
11824
- logger$o.error(e);
11831
+ logger$p.error(e);
11825
11832
  }
11826
11833
  setLoading(false);
11827
11834
  }
@@ -12773,7 +12780,7 @@ function CompanyComponent(props) {
12773
12780
  children: jsx(DocumentUpload, {
12774
12781
  ...companyTaxDocumentFormProps,
12775
12782
  documentField: "taxDocument",
12776
- documentType: DocumentType.VAT_DOCUMENT,
12783
+ documentType: props.country === "US" ? DocumentType.PROOF_OF_ORGANIZATION_TAX_INFO : DocumentType.VAT_DOCUMENT,
12777
12784
  heading: i18n.get("taxDocument"),
12778
12785
  guidanceContent: jsxs(Fragment, {
12779
12786
  children: [jsx("div", {
@@ -12798,8 +12805,6 @@ function CompanyComponent(props) {
12798
12805
  })]
12799
12806
  });
12800
12807
  }
12801
- const Individual = "";
12802
- const IdDocumentUploadComponent$1 = "";
12803
12808
  const idDocumentTypeOptions = [{
12804
12809
  id: DocumentType.DRIVERS_LICENSE,
12805
12810
  name: "driversLicense",
@@ -13503,13 +13508,15 @@ const remediationCompanyApiKeyMapping = {
13503
13508
  ...companyApiKeyMapping,
13504
13509
  "organization.registeredAddress": "companyRegistrationAddress.registrationAddress",
13505
13510
  [DocumentType.REGISTRATION_DOCUMENT]: "companyRegistrationDocument.registrationDocument",
13506
- [DocumentType.VAT_DOCUMENT]: "companyTaxDocument.taxDocument"
13511
+ [DocumentType.VAT_DOCUMENT]: "companyTaxDocument.taxDocument",
13512
+ [DocumentType.PROOF_OF_ORGANIZATION_TAX_INFO]: "companyTaxDocument.taxDocument"
13507
13513
  };
13508
13514
  const remediationCompanySearchApiKeyMapping = {
13509
13515
  ...companySearchApiKeyMapping,
13510
13516
  "organization.registeredAddress": "companyRegistrationAddress.registrationAddress",
13511
13517
  [DocumentType.REGISTRATION_DOCUMENT]: "companyRegistrationDocument.registrationDocument",
13512
- [DocumentType.VAT_DOCUMENT]: "companyTaxDocument.taxDocument"
13518
+ [DocumentType.VAT_DOCUMENT]: "companyTaxDocument.taxDocument",
13519
+ [DocumentType.PROOF_OF_ORGANIZATION_TAX_INFO]: "companyTaxDocument.taxDocument"
13513
13520
  };
13514
13521
  const remediationIndividualApiKeyMapping = {
13515
13522
  ...individualApiKeyMapping,
@@ -14066,10 +14073,10 @@ const mapPayoutDocumentsToApiDocuments = async (data, entityId) => {
14066
14073
  return document2;
14067
14074
  };
14068
14075
  const mapApiDocumentToPayoutDocuments = (entityId) => {
14069
- const bankStatement2 = getDocument$1(entityId, DocumentType.BANK_STATEMENT) || null;
14076
+ const bankStatement = getDocument$1(entityId, DocumentType.BANK_STATEMENT) || null;
14070
14077
  return {
14071
- bankStatementDocument: bankStatement2 ? [mapExistingFile(getPageName(bankStatement2))] : null,
14072
- description: bankStatement2.description
14078
+ bankStatementDocument: bankStatement ? [mapExistingFile(getPageName(bankStatement))] : null,
14079
+ description: bankStatement.description
14073
14080
  };
14074
14081
  };
14075
14082
  const mapWith = (obj, mapping) => {
@@ -14275,7 +14282,6 @@ function IdDocumentManualUploadComponent(props) {
14275
14282
  });
14276
14283
  }
14277
14284
  const IdDocumentManualUpload = memo(IdDocumentManualUploadComponent, (prevProps, nextProps) => objectsDeepEqual(prevProps.data, nextProps.data) && objectsDeepEqual(prevProps.formVerificationErrors, nextProps.formVerificationErrors) && objectsDeepEqual(prevProps.fieldValidationErrors, nextProps.fieldValidationErrors) && prevProps.shouldValidate === nextProps.shouldValidate && prevProps.name === nextProps.name);
14278
- const IdVerificationComponent$1 = "";
14279
14285
  const useIdVerificationToken = ({
14280
14286
  userDetails,
14281
14287
  legalEntityId,
@@ -14855,7 +14861,7 @@ const initOnfido = async ({
14855
14861
  language: getOnfidoLocaleConfig(i18n)
14856
14862
  });
14857
14863
  };
14858
- const logger$n = createLogger("IdVerificationComponent");
14864
+ const logger$o = createLogger("IdVerificationComponent");
14859
14865
  function IdVerificationComponent({
14860
14866
  userDetails,
14861
14867
  legalEntityId,
@@ -14888,7 +14894,7 @@ function IdVerificationComponent({
14888
14894
  onIdVerificationError,
14889
14895
  onIdVerificationComplete
14890
14896
  });
14891
- })().catch(logger$n.error);
14897
+ })().catch(logger$o.error);
14892
14898
  return () => {
14893
14899
  if (onfidoSdk.current)
14894
14900
  onfidoSdk.current.tearDown();
@@ -14940,7 +14946,7 @@ function IdDocumentAlreadyUpload(props) {
14940
14946
  })]
14941
14947
  });
14942
14948
  }
14943
- const logger$m = createLogger("IdDocumentInstantVerificationComponent");
14949
+ const logger$n = createLogger("IdDocumentInstantVerificationComponent");
14944
14950
  const idVerificationSchema = ["instantIdVerificationData", "idDocumentType"];
14945
14951
  const documentTypeValidationRules = {
14946
14952
  instantIdVerificationData: {
@@ -15022,7 +15028,7 @@ function IdDocumentInstantVerificationComponent(props) {
15022
15028
  userDetails: props.userDetails,
15023
15029
  legalEntityId: props.legalEntityId,
15024
15030
  onIdVerificationComplete: handleIdVerificationComplete,
15025
- onIdVerificationError: logger$m.error
15031
+ onIdVerificationError: logger$n.error
15026
15032
  }), jsxs("div", {
15027
15033
  className: "adyen-kyc-document-upload__manual-upload",
15028
15034
  children: [i18n.get("canNotCompleteInstantVerification"), " ", jsx("button", {
@@ -15050,7 +15056,6 @@ function IdDocumentUploadComponent(props) {
15050
15056
  ...props
15051
15057
  });
15052
15058
  }
15053
- const IdVerificationMethod = "";
15054
15059
  const layoutBreakpointClassnames = {
15055
15060
  xsOnly: "adyen-layout-xs-only",
15056
15061
  md: "adyen-layout-md",
@@ -15597,7 +15602,6 @@ const ContactDetailsComp = memo(ContactDetailsComponent, (prevProps, nextProps)
15597
15602
  ContactDetailsComponent.defaultProps = {
15598
15603
  data: {}
15599
15604
  };
15600
- const IdentityNumber = "";
15601
15605
  const defaultFieldMetadata$5 = {
15602
15606
  label: "idNumber"
15603
15607
  };
@@ -15741,15 +15745,15 @@ const defaultFieldConfig$5 = {
15741
15745
  [CountryCodes.Singapore]: {
15742
15746
  label: "nric",
15743
15747
  mask: {
15744
- mask: makeMask(...alphaInputs(1), ...numericInputs(6), ...alphaInputs(1)),
15748
+ mask: makeMask(...alphaInputs(1), ...numericInputs(7), ...alphaInputs(1)),
15745
15749
  transformOnType: uppercase
15746
15750
  },
15747
15751
  validators: validatePatternOnBlur(CountryIdNumberPatterns[CountryCodes.Singapore]),
15748
15752
  guidanceText: {
15749
15753
  key: "enterNCharactersWithAMixForExample",
15750
15754
  values: {
15751
- numChars: "8",
15752
- example: "T123456J"
15755
+ numChars: "9",
15756
+ example: "T9123456J"
15753
15757
  }
15754
15758
  }
15755
15759
  },
@@ -16100,9 +16104,7 @@ function IdentityNumberComponent(props) {
16100
16104
  }
16101
16105
  }, [propErrors]);
16102
16106
  useEffect(() => {
16103
- if (data.idNumber || idNumberType) {
16104
- triggerValidation(["idNumber"]);
16105
- }
16107
+ triggerValidation(["idNumber"]);
16106
16108
  }, [country2, idNumberType]);
16107
16109
  useEffect(() => {
16108
16110
  const dataHasChanged = !objectsDeepEqual(data, formData);
@@ -17495,7 +17497,7 @@ var ProofOfResidenceDocumentTypes = /* @__PURE__ */ ((ProofOfResidenceDocumentTy
17495
17497
  })(ProofOfResidenceDocumentTypes || {});
17496
17498
  const proofOfResidenceDocumentOptions = [{
17497
17499
  id: "bankStatement",
17498
- name: "bankStatement"
17500
+ name: "bankStatementDocument"
17499
17501
  }, {
17500
17502
  id: "utilityBill",
17501
17503
  name: "utilityBill"
@@ -17779,7 +17781,6 @@ function IndividualComponent(props) {
17779
17781
  children: renderActiveForm(props.activeForm)
17780
17782
  });
17781
17783
  }
17782
- const PayoutDetails = "";
17783
17784
  const useAsyncAccountDetailsValidationRules = (payload, hasEmptyFields2, isAccountNumberMasked2) => {
17784
17785
  const {
17785
17786
  accountIdentification: accountIdentification2
@@ -17803,7 +17804,535 @@ const useAsyncAccountDetailsValidationRules = (payload, hasEmptyFields2, isAccou
17803
17804
  }, [accountIdentification2, hasEmptyFields2, payload]);
17804
17805
  return accountValidationData;
17805
17806
  };
17806
- const BankVerification$2 = "";
17807
+ const getLegalEntityNameBasedOnType = (legalEntityResponse) => {
17808
+ var _a, _b, _c, _d, _e;
17809
+ if (legalEntityResponse.type === LegalEntityType.INDIVIDUAL) {
17810
+ return `${((_b = (_a = legalEntityResponse.individual) == null ? void 0 : _a.name) == null ? void 0 : _b.firstName) ?? ""} ${((_d = (_c = legalEntityResponse.individual) == null ? void 0 : _c.name) == null ? void 0 : _d.lastName) ?? ""}`;
17811
+ }
17812
+ return ((_e = legalEntityResponse.organization) == null ? void 0 : _e.legalName) ?? "";
17813
+ };
17814
+ const getPayoutAccountHolderName = (legalEntity, i18n) => {
17815
+ const ownAssociations = getOwnEntityAssociations(legalEntity);
17816
+ const trustAssociation = ownAssociations.find(({
17817
+ type
17818
+ }) => type === LegalEntityType.TRUST);
17819
+ if (trustAssociation == null ? void 0 : trustAssociation.name) {
17820
+ const trustName = trustAssociation.name;
17821
+ const trusteeName = getLegalEntityNameBasedOnType(legalEntity);
17822
+ return i18n.get("trusteeAsTrusteeForTrust", {
17823
+ values: {
17824
+ trustName,
17825
+ trusteeName
17826
+ }
17827
+ });
17828
+ }
17829
+ const solePropAssociation = ownAssociations.find(({
17830
+ type
17831
+ }) => type === LegalEntityType.SOLE_PROPRIETORSHIP);
17832
+ if (solePropAssociation == null ? void 0 : solePropAssociation.name) {
17833
+ return solePropAssociation.name;
17834
+ }
17835
+ return getLegalEntityNameBasedOnType(legalEntity);
17836
+ };
17837
+ function FilePicker({
17838
+ files,
17839
+ setFiles,
17840
+ isValid,
17841
+ errorMessage,
17842
+ multiple = false,
17843
+ label,
17844
+ iconPrefix = "generic-document",
17845
+ // file validation options
17846
+ allowedFileTypes,
17847
+ maxSize,
17848
+ isOptional,
17849
+ maxNumberOfFiles
17850
+ }) {
17851
+ const {
17852
+ i18n
17853
+ } = useI18nContext();
17854
+ const fileInput = useRef(null);
17855
+ const [dragged, setDragged] = useState(false);
17856
+ const hasRequiredError = errorMessage === "fieldIsRequired";
17857
+ const showDropzone = files.length < maxNumberOfFiles;
17858
+ const openFilePicker = () => {
17859
+ var _a;
17860
+ return (_a = fileInput.current) == null ? void 0 : _a.click();
17861
+ };
17862
+ const handleFileDelete = (fileToDelete) => setFiles(files.filter((file) => file !== fileToDelete));
17863
+ const handleDragEnter = (e) => {
17864
+ e.preventDefault();
17865
+ e.stopPropagation();
17866
+ };
17867
+ const handleDragLeave = (e) => {
17868
+ e.preventDefault();
17869
+ e.stopPropagation();
17870
+ setDragged(false);
17871
+ };
17872
+ const handleDragOver = (e) => {
17873
+ e.preventDefault();
17874
+ e.stopPropagation();
17875
+ setDragged(true);
17876
+ };
17877
+ const handleDrop = (e) => {
17878
+ e.preventDefault();
17879
+ e.stopPropagation();
17880
+ if (e.dataTransfer)
17881
+ addFiles(e.dataTransfer.files);
17882
+ setDragged(false);
17883
+ };
17884
+ const handleFilesChosen = (e) => {
17885
+ const fileInput2 = e.target;
17886
+ if (fileInput2.files)
17887
+ addFiles(fileInput2.files);
17888
+ };
17889
+ const addFiles = (newFiles) => {
17890
+ setFiles([...newFiles, ...files]);
17891
+ };
17892
+ const allowedFileTypesString = allowedFileTypes.join(", ");
17893
+ return jsxs("div", {
17894
+ children: [label && jsx("div", {
17895
+ className: cx("adyen-kyc-label__text", {
17896
+ "adyen-kyc-label__text--error": hasRequiredError
17897
+ }),
17898
+ children: label
17899
+ }), files.map((file) => jsx(DropzoneFile, {
17900
+ file,
17901
+ onDelete: () => handleFileDelete(file),
17902
+ errorMessage,
17903
+ iconPrefix
17904
+ }, file)), showDropzone && jsxs("div", {
17905
+ role: "region",
17906
+ className: cx("adyen-kyc-dropzone", {
17907
+ "adyen-kyc-dropzone--dragged": dragged,
17908
+ "adyen-kyc-dropzone--error": !dragged && hasRequiredError
17909
+ }),
17910
+ onDrop: handleDrop,
17911
+ onDragOver: handleDragOver,
17912
+ onDragEnter: handleDragEnter,
17913
+ onDragLeave: handleDragLeave,
17914
+ children: [jsx("div", {
17915
+ className: "adyen-kyc-dropzone__icon",
17916
+ children: jsx("svg", {
17917
+ height: "100%",
17918
+ width: "100%",
17919
+ children: jsx("use", {
17920
+ href: `#adl-${iconPrefix}-icon`
17921
+ })
17922
+ })
17923
+ }), jsxs("div", {
17924
+ className: "adyen-kyc-dropzone__labels",
17925
+ children: [jsxs("div", {
17926
+ className: "adyen-kyc-dropzone__drag-text",
17927
+ children: [jsxs("span", {
17928
+ children: [i18n.get("dragYourFilesHereOr"), " "]
17929
+ }), jsx("button", {
17930
+ className: "adyen-kyc-dropzone__button",
17931
+ type: "button",
17932
+ onClick: openFilePicker,
17933
+ children: i18n.get("browse")
17934
+ })]
17935
+ }), jsx("div", {
17936
+ className: "adyen-kyc-dropzone__supports-text",
17937
+ children: i18n.get("supports", {
17938
+ values: {
17939
+ fileTypes: allowedFileTypesString,
17940
+ maxSize: bytesToSize(maxSize),
17941
+ maxFiles: maxNumberOfFiles
17942
+ }
17943
+ })
17944
+ })]
17945
+ }), jsx("input", {
17946
+ className: "adyen-kyc-dropzone__input",
17947
+ ref: fileInput,
17948
+ multiple,
17949
+ accept: allowedFileTypesString,
17950
+ onChange: handleFilesChosen,
17951
+ type: "file",
17952
+ "aria-required": !isOptional,
17953
+ "aria-label": label,
17954
+ "aria-invalid": !isValid
17955
+ })]
17956
+ }), hasRequiredError && jsx("div", {
17957
+ className: "adyen-kyc-error-text",
17958
+ children: i18n.get("fieldIsRequired")
17959
+ })]
17960
+ });
17961
+ }
17962
+ var BankDocumentTypes = /* @__PURE__ */ ((BankDocumentTypes2) => {
17963
+ BankDocumentTypes2["BANK_STATEMENT"] = "bankStatement";
17964
+ BankDocumentTypes2["DEPOSIT_SLIP"] = "depositSlip";
17965
+ BankDocumentTypes2["SCREENSHOT_OF_BANK"] = "screenshotOfOnlineBankingEnviroment";
17966
+ BankDocumentTypes2["OFFICIAL_EMAIL"] = "officialEmailOrALetterFromYourBank";
17967
+ BankDocumentTypes2["CHECK"] = "check";
17968
+ BankDocumentTypes2["RELEVE_DIDENTITE"] = "releveDidentiteBancaire";
17969
+ return BankDocumentTypes2;
17970
+ })(BankDocumentTypes || {});
17971
+ const bankDocumentOptions = [{
17972
+ id: "bankStatement",
17973
+ name: "bankStatementDocument"
17974
+ }, {
17975
+ id: "depositSlip",
17976
+ name: "depositSlip"
17977
+ }, {
17978
+ id: "screenshotOfOnlineBankingEnviroment",
17979
+ name: "screenshotOfOnlineBankingEnviroment"
17980
+ }, {
17981
+ id: "officialEmailOrALetterFromYourBank",
17982
+ name: "officialEmailOrALetterFromYourBank"
17983
+ }, {
17984
+ id: "check",
17985
+ name: "check"
17986
+ }, {
17987
+ id: "releveDidentiteBancaire",
17988
+ name: "releveDidentiteBancaire"
17989
+ }];
17990
+ var BankDocumentRequirement = /* @__PURE__ */ ((BankDocumentRequirement2) => {
17991
+ BankDocumentRequirement2["ACCOUNT_NAME_INDIVIDUAL"] = "bankAccountNameIndividual";
17992
+ BankDocumentRequirement2["ACCOUNT_NAME_ORGANIZATION"] = "bankAccountNameOrganization";
17993
+ BankDocumentRequirement2["ACCOUNT_NAME_WITH_SOLE_PROP"] = "bankAccountNameWithSoleProprietor";
17994
+ BankDocumentRequirement2["ACCOUNT_NAME_WITH_TRUST"] = "bankAccountNameWithTrust";
17995
+ BankDocumentRequirement2["ACCOUNT_NUMBER_OR_IBAN"] = "accountNumberOrIbanVisible";
17996
+ BankDocumentRequirement2["ACCOUNT_NUMBER"] = "accountNumberVisible";
17997
+ BankDocumentRequirement2["ROUTING_NUMBER"] = "routingNumberVisible";
17998
+ BankDocumentRequirement2["DATE_ON_DOCUMENT"] = "issuedInTheLastXMonths";
17999
+ BankDocumentRequirement2["COUNTRY_OF_BANK"] = "showsCountryOfBankAccount";
18000
+ BankDocumentRequirement2["OFFICIAL_DOCUMENT"] = "hasToBeOfficialDocumentFromBank";
18001
+ BankDocumentRequirement2["STAMP_OR_SIGNATURE"] = "hasBankStampOrBankSignature";
18002
+ return BankDocumentRequirement2;
18003
+ })(BankDocumentRequirement || {});
18004
+ const accountNameRequirement = {
18005
+ [LegalEntityType.INDIVIDUAL]: {
18006
+ default: BankDocumentRequirement.ACCOUNT_NAME_INDIVIDUAL
18007
+ },
18008
+ [LegalEntityType.ORGANIZATION]: {
18009
+ default: BankDocumentRequirement.ACCOUNT_NAME_ORGANIZATION
18010
+ }
18011
+ };
18012
+ const accountNameRequirementWithLegalArrangement = {
18013
+ [LegalEntityType.INDIVIDUAL]: {
18014
+ [LegalEntityType.SOLE_PROPRIETORSHIP]: {
18015
+ default: BankDocumentRequirement.ACCOUNT_NAME_WITH_SOLE_PROP
18016
+ },
18017
+ [LegalEntityType.TRUST]: {
18018
+ [CountryCodes.UnitedStates]: "bankAccountNameWithTrust_US",
18019
+ default: BankDocumentRequirement.ACCOUNT_NAME_WITH_TRUST
18020
+ }
18021
+ },
18022
+ [LegalEntityType.ORGANIZATION]: {
18023
+ [LegalEntityType.TRUST]: {
18024
+ [CountryCodes.UnitedStates]: "bankAccountNameWithTrust_US",
18025
+ default: BankDocumentRequirement.ACCOUNT_NAME_WITH_TRUST
18026
+ }
18027
+ }
18028
+ };
18029
+ const applyNamedModifiers = (country2, documentModifiers) => {
18030
+ var _a, _b, _c, _d, _e;
18031
+ if (!documentModifiers.associatedEntityType || !documentModifiers.associatedEntityLegalName) {
18032
+ switch (documentModifiers.rootEntityType) {
18033
+ case LegalEntityType.INDIVIDUAL:
18034
+ return {
18035
+ key: accountNameRequirement[LegalEntityType.INDIVIDUAL].default,
18036
+ options: {
18037
+ values: {
18038
+ individualLegalName: documentModifiers.rootEntityLegalName
18039
+ }
18040
+ }
18041
+ };
18042
+ case LegalEntityType.ORGANIZATION:
18043
+ default:
18044
+ return {
18045
+ key: accountNameRequirement[LegalEntityType.ORGANIZATION].default,
18046
+ options: {
18047
+ values: {
18048
+ companyLegalName: documentModifiers.rootEntityLegalName
18049
+ }
18050
+ }
18051
+ };
18052
+ }
18053
+ }
18054
+ switch (documentModifiers.rootEntityType) {
18055
+ case LegalEntityType.INDIVIDUAL:
18056
+ switch (documentModifiers.associatedEntityType) {
18057
+ case LegalEntityType.TRUST:
18058
+ return {
18059
+ key: ((_a = accountNameRequirementWithLegalArrangement[LegalEntityType.INDIVIDUAL][LegalEntityType.TRUST]) == null ? void 0 : _a[country2]) ?? ((_b = accountNameRequirementWithLegalArrangement[LegalEntityType.INDIVIDUAL][LegalEntityType.TRUST]) == null ? void 0 : _b.default),
18060
+ options: {
18061
+ values: {
18062
+ trusteeName: documentModifiers.rootEntityLegalName,
18063
+ trustLegalName: documentModifiers.associatedEntityLegalName,
18064
+ trustTradingName: documentModifiers.associatedEntityTradingName ?? documentModifiers.associatedEntityLegalName
18065
+ }
18066
+ }
18067
+ };
18068
+ case LegalEntityType.SOLE_PROPRIETORSHIP:
18069
+ default:
18070
+ return {
18071
+ key: (_c = accountNameRequirementWithLegalArrangement[LegalEntityType.INDIVIDUAL][LegalEntityType.SOLE_PROPRIETORSHIP]) == null ? void 0 : _c.default,
18072
+ options: {
18073
+ values: {
18074
+ individualLegalName: documentModifiers.rootEntityLegalName,
18075
+ soleProprietorshipName: documentModifiers.associatedEntityLegalName
18076
+ }
18077
+ }
18078
+ };
18079
+ }
18080
+ case LegalEntityType.ORGANIZATION:
18081
+ default:
18082
+ switch (documentModifiers.associatedEntityType) {
18083
+ case LegalEntityType.TRUST:
18084
+ return {
18085
+ key: ((_d = accountNameRequirementWithLegalArrangement[LegalEntityType.ORGANIZATION][LegalEntityType.TRUST]) == null ? void 0 : _d[country2]) ?? ((_e = accountNameRequirementWithLegalArrangement[LegalEntityType.ORGANIZATION][LegalEntityType.TRUST]) == null ? void 0 : _e.default),
18086
+ options: {
18087
+ values: {
18088
+ trusteeName: documentModifiers.rootEntityLegalName,
18089
+ trustLegalName: documentModifiers.associatedEntityLegalName,
18090
+ trustTradingName: documentModifiers.associatedEntityTradingName ?? documentModifiers.associatedEntityLegalName
18091
+ }
18092
+ }
18093
+ };
18094
+ default:
18095
+ return {
18096
+ key: accountNameRequirement[LegalEntityType.ORGANIZATION].default
18097
+ };
18098
+ }
18099
+ }
18100
+ };
18101
+ const getBankDocumentRequirements = (country2, documentType2, documentModifiers) => {
18102
+ const baseRequirements = [{
18103
+ key: BankDocumentRequirement.COUNTRY_OF_BANK
18104
+ }, {
18105
+ key: BankDocumentRequirement.OFFICIAL_DOCUMENT
18106
+ }];
18107
+ const accountNumberRequirement = country2 === "US" ? [{
18108
+ key: BankDocumentRequirement.ACCOUNT_NUMBER
18109
+ }, {
18110
+ key: BankDocumentRequirement.ROUTING_NUMBER
18111
+ }] : [{
18112
+ key: BankDocumentRequirement.ACCOUNT_NUMBER_OR_IBAN
18113
+ }];
18114
+ const requireLast12Months = documentType2 !== BankDocumentTypes.SCREENSHOT_OF_BANK;
18115
+ const requireStampOrSignature = documentType2 === BankDocumentTypes.DEPOSIT_SLIP || documentType2 === BankDocumentTypes.OFFICIAL_EMAIL;
18116
+ const requirements2 = [applyNamedModifiers(country2, documentModifiers), ...accountNumberRequirement, ...baseRequirements];
18117
+ if (requireLast12Months) {
18118
+ requirements2.push({
18119
+ key: BankDocumentRequirement.DATE_ON_DOCUMENT,
18120
+ options: {
18121
+ values: {
18122
+ number: 12
18123
+ }
18124
+ }
18125
+ });
18126
+ }
18127
+ if (requireStampOrSignature) {
18128
+ requirements2.push({
18129
+ key: BankDocumentRequirement.STAMP_OR_SIGNATURE
18130
+ });
18131
+ }
18132
+ return requirements2;
18133
+ };
18134
+ const BankDocumentRequirements = ({
18135
+ country: country2,
18136
+ documentType: documentType2,
18137
+ documentModifiers
18138
+ }) => {
18139
+ const {
18140
+ i18n
18141
+ } = useI18nContext();
18142
+ return jsxs("div", {
18143
+ className: "adyen-kyc-document-requirements",
18144
+ children: [jsx("strong", {
18145
+ className: "adyen-kyc-document-requirements__subtitle",
18146
+ children: i18n.get("documentRequirements")
18147
+ }), jsx(List, {
18148
+ children: getBankDocumentRequirements(country2, documentType2, documentModifiers).map(({
18149
+ key,
18150
+ options
18151
+ }) => jsx(ListItem, {
18152
+ "data-testid": key,
18153
+ dangerouslySetInnerHTML: {
18154
+ __html: i18n.get(key, options)
18155
+ }
18156
+ }, key))
18157
+ })]
18158
+ });
18159
+ };
18160
+ const bankDocumentValidationRules = {
18161
+ description: {
18162
+ modes: ["blur"],
18163
+ validate: (description2) => description2 ? bankStatementDescriptionPattern.test(description2) : true,
18164
+ errorMessage: "invalidFormatBankStatementDescription"
18165
+ }
18166
+ };
18167
+ const CHARACTERS_LIMIT$1 = 200;
18168
+ const bankDocumentFields = ["bankStatementDocument", "description"];
18169
+ function BankDocument(props) {
18170
+ var _a, _b;
18171
+ const {
18172
+ legalEntity,
18173
+ associatedLegalArrangement,
18174
+ country: country2,
18175
+ optionalFields
18176
+ } = props;
18177
+ const {
18178
+ i18n
18179
+ } = useI18nContext();
18180
+ const [documentType2, setDocumentType] = useState();
18181
+ const stateRef = useRef({
18182
+ setState: null
18183
+ });
18184
+ const isBankStatementOptional = (optionalFields == null ? void 0 : optionalFields.includes("bankStatementDocument")) ?? false;
18185
+ const formUtils = formUtilities(props, i18n);
18186
+ const bankStatementValidationOptions = useMemo(() => ({
18187
+ ...defaultFileValidationOptions,
18188
+ isOptional: isBankStatementOptional
18189
+ }), [isBankStatementOptional]);
18190
+ const rules2 = useMemo(() => ({
18191
+ ...props.validators || bankDocumentValidationRules,
18192
+ bankStatementDocument: fileValidationRules(bankStatementValidationOptions)
18193
+ }), [bankStatementValidationOptions, props.validators]);
18194
+ const {
18195
+ handleChangeFor,
18196
+ data,
18197
+ setData,
18198
+ valid,
18199
+ fieldProblems,
18200
+ errors,
18201
+ triggerValidation
18202
+ } = useForm({
18203
+ ...props,
18204
+ schema: bankDocumentFields,
18205
+ defaultData: props.data,
18206
+ rules: rules2,
18207
+ fieldProblems: props == null ? void 0 : props.fieldValidationErrors,
18208
+ shouldValidate: props == null ? void 0 : props.shouldValidate
18209
+ });
18210
+ const alreadyUploadedDocuments = useMemo(() => {
18211
+ var _a2;
18212
+ return ((_a2 = props.data) == null ? void 0 : _a2.bankStatementDocument) ?? [];
18213
+ }, [(_a = props.data) == null ? void 0 : _a.bankStatementDocument]);
18214
+ const hasAlreadyUploadedDocuments = alreadyUploadedDocuments.length > 0;
18215
+ const usingExistingUploadedDocuments = data.bankStatementDocument && doArraysMatch(alreadyUploadedDocuments, data.bankStatementDocument);
18216
+ useEffect(() => {
18217
+ var _a2;
18218
+ if (hasAlreadyUploadedDocuments) {
18219
+ setData("bankStatementDocument", alreadyUploadedDocuments);
18220
+ if ((_a2 = props.data) == null ? void 0 : _a2.description)
18221
+ setData("description", props.data.description);
18222
+ triggerValidation();
18223
+ }
18224
+ }, [alreadyUploadedDocuments, hasAlreadyUploadedDocuments, (_b = props.data) == null ? void 0 : _b.description, setData, triggerValidation]);
18225
+ useEffect(() => {
18226
+ var _a2, _b2;
18227
+ (_b2 = (_a2 = stateRef.current) == null ? void 0 : _a2.setState) == null ? void 0 : _b2.call(_a2, {
18228
+ type: "addToState",
18229
+ value: {
18230
+ data,
18231
+ valid,
18232
+ errors,
18233
+ fieldProblems,
18234
+ caller: props.id,
18235
+ dataStoreId: props.id,
18236
+ schema: bankDocumentFields
18237
+ }
18238
+ });
18239
+ }, [data, valid, errors, fieldProblems]);
18240
+ const getBankDocumentOptions = () => {
18241
+ let options = bankDocumentOptions;
18242
+ if (country2 !== "FR") {
18243
+ options = options.filter((option) => option.id !== BankDocumentTypes.RELEVE_DIDENTITE);
18244
+ }
18245
+ return options.map(({
18246
+ id: id2,
18247
+ name
18248
+ }) => ({
18249
+ id: id2,
18250
+ name: i18n.get(name)
18251
+ }));
18252
+ };
18253
+ const documentsModifiers = useMemo(() => {
18254
+ var _a2, _b2;
18255
+ return {
18256
+ rootEntityType: legalEntity.type,
18257
+ rootEntityLegalName: getLegalEntityNameBasedOnType(legalEntity),
18258
+ associatedEntityType: associatedLegalArrangement == null ? void 0 : associatedLegalArrangement.type,
18259
+ associatedEntityLegalName: (_a2 = associatedLegalArrangement == null ? void 0 : associatedLegalArrangement[associatedLegalArrangement == null ? void 0 : associatedLegalArrangement.type]) == null ? void 0 : _a2.name,
18260
+ associatedEntityTradingName: (_b2 = associatedLegalArrangement == null ? void 0 : associatedLegalArrangement[associatedLegalArrangement == null ? void 0 : associatedLegalArrangement.type]) == null ? void 0 : _b2.doingBusinessAs
18261
+ };
18262
+ }, [legalEntity, associatedLegalArrangement]);
18263
+ return jsxs("form", {
18264
+ className: "adyen-kyc-bank-document",
18265
+ children: [jsx(StateContextSetter, {
18266
+ owner: props.id,
18267
+ stateRef
18268
+ }), jsx(FormHeader, {
18269
+ heading: props.heading,
18270
+ description: props.description
18271
+ }), jsx(ErrorPanel, {
18272
+ verificationErrors: props == null ? void 0 : props.formVerificationErrors,
18273
+ validationErrors: props == null ? void 0 : props.fieldValidationErrors,
18274
+ formUtils,
18275
+ id: "ariaErrorField"
18276
+ }), formUtils.isVisibleField("bankStatementDocument") && jsxs(Fragment, {
18277
+ children: [!usingExistingUploadedDocuments && jsx(Field, {
18278
+ name: "documentType",
18279
+ label: formUtils.getLabel("bankStatementDocument", "selectDocumentType"),
18280
+ className: "adyen-kyc-bank-document__document-type",
18281
+ children: (childProps) => jsx(Select, {
18282
+ ...childProps,
18283
+ onChange: (e) => setDocumentType(e.target.value),
18284
+ name: "documentType",
18285
+ placeholder: i18n.get("selectDocument"),
18286
+ isInvalid: false,
18287
+ items: getBankDocumentOptions(),
18288
+ selected: documentType2
18289
+ })
18290
+ }), documentType2 ? jsxs(Fragment, {
18291
+ children: [country2 ? jsx(BankDocumentRequirements, {
18292
+ country: country2,
18293
+ documentType: documentType2,
18294
+ documentModifiers: documentsModifiers
18295
+ }) : void 0, jsx(DocumentGuidance, {
18296
+ type: DocumentType.BANK_STATEMENT,
18297
+ className: "adl-u-margin-y-24"
18298
+ })]
18299
+ }) : null, documentType2 || usingExistingUploadedDocuments ? jsx(Field, {
18300
+ className: "adyen-kyc-bank-document__document-upload adyen-kyc-upload-field",
18301
+ name: "bankStatementDocument",
18302
+ isValid: valid.bankStatementDocument,
18303
+ children: (childProps) => {
18304
+ var _a2;
18305
+ return jsx(FilePicker, {
18306
+ ...childProps,
18307
+ files: data.bankStatementDocument ?? [],
18308
+ setFiles: handleChangeFor("bankStatementDocument"),
18309
+ isValid: valid.bankStatementDocument ?? isBankStatementOptional,
18310
+ errorMessage: (_a2 = errors.bankStatementDocument) == null ? void 0 : _a2.errorMessage,
18311
+ iconPrefix: getDocumentGuidancePrefix(DocumentType.BANK_STATEMENT, true),
18312
+ ...bankStatementValidationOptions
18313
+ });
18314
+ }
18315
+ }) : null]
18316
+ }), documentType2 || usingExistingUploadedDocuments ? jsx(Field, {
18317
+ className: "adyen-kyc-bank-document__document-description",
18318
+ name: "description",
18319
+ label: formUtils.getLabel("bankDocumentFileDescription"),
18320
+ errorMessage: formUtils.getErrorMessage("description", errors, fieldProblems),
18321
+ isValid: valid.description,
18322
+ children: (childProps) => jsx(TextArea, {
18323
+ ...childProps,
18324
+ name: "description",
18325
+ value: data.description,
18326
+ classNameModifiers: ["description"],
18327
+ maxLength: CHARACTERS_LIMIT$1,
18328
+ onInput: handleChangeFor("description"),
18329
+ "aria-label": formUtils.getLabel("description"),
18330
+ "aria-invalid": !valid.description
18331
+ })
18332
+ }) : null]
18333
+ });
18334
+ }
18335
+ const BankDocumentComponent = memo(BankDocument, (prevProps, nextProps) => objectsDeepEqual(prevProps.requiredFields, nextProps.requiredFields) && objectsDeepEqual(prevProps.optionalFields, nextProps.optionalFields) && objectsDeepEqual(prevProps.data, nextProps.data) && objectsDeepEqual(prevProps.formVerificationErrors, nextProps.formVerificationErrors) && objectsDeepEqual(prevProps.fieldValidationErrors, nextProps.fieldValidationErrors) && prevProps.country === nextProps.country && prevProps.shouldValidate === nextProps.shouldValidate && prevProps.heading === nextProps.heading);
17807
18336
  const AuthContext = createContext(void 0);
17808
18337
  const useAuthContext = () => {
17809
18338
  const authContext = useContext(AuthContext);
@@ -17812,7 +18341,6 @@ const useAuthContext = () => {
17812
18341
  }
17813
18342
  return authContext;
17814
18343
  };
17815
- const _actionBar_component = "";
17816
18344
  const ActionBar = ({
17817
18345
  onNext,
17818
18346
  onBack,
@@ -17952,7 +18480,6 @@ const bankVerificationValidationRules = {
17952
18480
  errorMessage: "fieldIsRequired"
17953
18481
  }
17954
18482
  };
17955
- const BankVerificationWidget$1 = "";
17956
18483
  class AdyenKycSdkError extends Error {
17957
18484
  constructor(message, sourceError) {
17958
18485
  super(message);
@@ -17972,7 +18499,7 @@ class AdyenKycSdkError extends Error {
17972
18499
  }
17973
18500
  let sdkToken;
17974
18501
  let fetchSdkToken;
17975
- const logger$l = createLogger("Session");
18502
+ const logger$m = createLogger("Session");
17976
18503
  const setSdkToken = (token) => {
17977
18504
  sdkToken = token;
17978
18505
  };
@@ -17990,7 +18517,7 @@ const refreshSession = async () => {
17990
18517
  } = await fetchSdkToken();
17991
18518
  setSdkToken(token);
17992
18519
  } catch (e) {
17993
- logger$l.error("Failed to fetch sdk token", e);
18520
+ logger$m.error("Failed to fetch sdk token", e);
17994
18521
  }
17995
18522
  };
17996
18523
  const addAnimationStartListener = (element, listener) => {
@@ -17999,7 +18526,7 @@ const addAnimationStartListener = (element, listener) => {
17999
18526
  const removeAnimationStartListener = (element, listener) => {
18000
18527
  element.removeEventListener("animationstart", listener, false);
18001
18528
  };
18002
- const logger$k = createLogger("Fetch");
18529
+ const logger$l = createLogger("Fetch");
18003
18530
  const getRequestObject = (options, data) => {
18004
18531
  const {
18005
18532
  headers = [],
@@ -18046,10 +18573,10 @@ const logFetchError = (message, level) => {
18046
18573
  case "info":
18047
18574
  case "warn":
18048
18575
  case "error":
18049
- logger$k[level](message);
18576
+ logger$l[level](message);
18050
18577
  break;
18051
18578
  default:
18052
- logger$k.error(message);
18579
+ logger$l.error(message);
18053
18580
  }
18054
18581
  };
18055
18582
  const handleFetchResponse = async (response, responseType) => {
@@ -18147,7 +18674,7 @@ const RELEVANT_MESSAGE_TYPES = ["account_verification_report_id", "error"];
18147
18674
  const TERMINAL_DATA_PROPS = ["accounts", "error", "reference"];
18148
18675
  const MOUNT_TIMEOUT = 10 * 1e3;
18149
18676
  const TINK_VENDOR = "Tink";
18150
- const logger$j = createLogger("iframeWidget");
18677
+ const logger$k = createLogger("iframeWidget");
18151
18678
  const isObjectData = (data) => typeof data === "object" && !Array.isArray(data) && data !== null;
18152
18679
  const isTerminalMessageData = (data) => isObjectData(data) && Object.entries(data).some(([prop]) => TERMINAL_DATA_PROPS.includes(prop));
18153
18680
  const parseMessageJson = (message) => {
@@ -18166,7 +18693,7 @@ const callbackErrorHandler = async (response) => {
18166
18693
  try {
18167
18694
  await response;
18168
18695
  } catch (ex) {
18169
- logger$j.error(ex);
18696
+ logger$k.error(ex);
18170
18697
  }
18171
18698
  return {
18172
18699
  error: "UNKNOWN_ERROR",
@@ -18275,7 +18802,7 @@ class IFrameWidget {
18275
18802
  message = responseData.errorMessage;
18276
18803
  }
18277
18804
  } catch (ex) {
18278
- logger$j.error(ex);
18805
+ logger$k.error(ex);
18279
18806
  }
18280
18807
  throw new AdyenKycSdkError(reason, jsonData.error);
18281
18808
  }
@@ -18463,7 +18990,7 @@ function BankVerificationWidget({
18463
18990
  ref: widgetContainerRef
18464
18991
  });
18465
18992
  }
18466
- const logger$i = createLogger("BankVerification");
18993
+ const logger$j = createLogger("BankVerification");
18467
18994
  const accountVerificationFields = ["verifiedAccountHolder", "verifiedBankCountry", "verifiedBankName", "verifiedCurrencyCode", "verifiedBankAccountNumber"];
18468
18995
  const InstantVerificationErrorContext = createContext(null);
18469
18996
  const useInstantVerificationErrorNotification = (notificationVisibilityDuration) => {
@@ -18497,7 +19024,7 @@ const usePreferredVendorForCountry = (country2, getBankVerificationVendors) => {
18497
19024
  const vendor = vendors[0];
18498
19025
  setPreferredVendor(vendor.name ? vendor : void 0);
18499
19026
  };
18500
- getPreferredVendor().catch(logger$i.error);
19027
+ getPreferredVendor().catch(logger$j.error);
18501
19028
  }, [country2, getBankVerificationVendors]);
18502
19029
  return preferredVendor;
18503
19030
  };
@@ -18698,7 +19225,6 @@ function BankVerification(props) {
18698
19225
  });
18699
19226
  }
18700
19227
  const BankVerification$1 = memo(BankVerification);
18701
- const PayoutAccount$1 = "";
18702
19228
  const countriesWithMultipleCurrencies = /* @__PURE__ */ new Set([CountryCodes.Bulgaria, CountryCodes.Canada, CountryCodes.Croatia, CountryCodes.CzechRepublic, CountryCodes.Hungary, CountryCodes.Romania, CountryCodes.Switzerland]);
18703
19229
  const countriesWithLocalFormat = /* @__PURE__ */ new Set([CountryCodes.Denmark, CountryCodes.Norway, CountryCodes.Poland, CountryCodes.Sweden, CountryCodes.UnitedKingdom]);
18704
19230
  const payoutCurrencySupport = {
@@ -19272,70 +19798,70 @@ function BranchCode(props) {
19272
19798
  }
19273
19799
  const currencyFields = ["currency"];
19274
19800
  const bbanPatternsByCountry = {
19275
- AL: /\d{8}[\dA-Z]{16}/,
19276
- AD: /\d{8}[\dA-Z]{12}/,
19277
- AT: /\d{16}/,
19278
- AZ: /[\dA-Z]{4}\d{20}/,
19279
- BE: /\d{12}/,
19280
- BH: /[A-Z]{4}[\dA-Z]{14}/,
19281
- BA: /\d{16}/,
19282
- BR: /\d{23}[A-Z][\dA-Z]/,
19283
- BG: /[A-Z]{4}\d{6}[\dA-Z]{8}/,
19284
- CR: /\d{17}/,
19285
- HR: /\d{17}/,
19286
- CY: /\d{8}[\dA-Z]{16}/,
19287
- CZ: /\d{20}/,
19288
- DK: /\d{14}/,
19289
- DO: /[A-Z]{4}\d{20}/,
19290
- EE: /\d{16}/,
19291
- FO: /\d{14}/,
19292
- FI: /\d{14}/,
19293
- FR: /\d{10}[\dA-Z]{11}\d{2}/,
19294
- GE: /[\dA-Z]{2}\d{16}/,
19295
- DE: /\d{18}/,
19296
- GI: /[A-Z]{4}[\dA-Z]{15}/,
19297
- GR: /\d{7}[\dA-Z]{16}/,
19298
- GL: /\d{14}/,
19299
- GT: /[\dA-Z]{4}[\dA-Z]{20}/,
19300
- HU: /\d{24}/,
19301
- IS: /\d{22}/,
19302
- IE: /[\dA-Z]{4}\d{14}/,
19303
- IL: /\d{19}/,
19304
- IT: /[A-Z]\d{10}[\dA-Z]{12}/,
19305
- KZ: /\d{3}[\dA-Z]{13}/,
19306
- KW: /[A-Z]{4}[\dA-Z]{22}/,
19307
- LV: /[A-Z]{4}[\dA-Z]{13}/,
19308
- LB: /\d{4}[\dA-Z]{20}/,
19309
- LI: /\d{5}[\dA-Z]{12}/,
19310
- LT: /\d{16}/,
19311
- LU: /\d{3}[\dA-Z]{13}/,
19312
- MK: /\d{3}[\dA-Z]{10}\d{2}/,
19313
- MT: /[A-Z]{4}\d{5}[\dA-Z]{18}/,
19314
- MR: /\d{23}/,
19315
- MU: /[A-Z]{4}\d{19}[A-Z]{3}/,
19316
- MC: /\d{10}[\dA-Z]{11}\d{2}/,
19317
- MD: /[\dA-Z]{2}\d{18}/,
19318
- ME: /\d{18}/,
19319
- NL: /[A-Z]{4}\d{10}/,
19320
- NO: /\d{11}/,
19321
- PK: /[\dA-Z]{4}\d{16}/,
19322
- PS: /[\dA-Z]{4}\d{21}/,
19323
- PL: /\d{24}/,
19324
- PT: /\d{21}/,
19325
- RO: /[A-Z]{4}[\dA-Z]{16}/,
19326
- SM: /[A-Z]\d{10}[\dA-Z]{12}/,
19327
- SA: /\d{2}[\dA-Z]{18}/,
19328
- RS: /\d{18}/,
19329
- SK: /\d{20}/,
19330
- SI: /\d{15}/,
19331
- ES: /\d{20}/,
19332
- SE: /\d{20}/,
19333
- CH: /\d{5}[\dA-Z]{12}/,
19334
- TN: /\d{20}/,
19335
- TR: /\d{5}[\dA-Z]{17}/,
19336
- AE: /\d{3}\d{16}/,
19337
- GB: /[A-Z]{4}\d{14}/,
19338
- VG: /[\dA-Z]{4}\d{16}/
19801
+ [CountryCodes.Albania]: /\d{8}[\dA-Z]{16}/,
19802
+ [CountryCodes.Andorra]: /\d{8}[\dA-Z]{12}/,
19803
+ [CountryCodes.Austria]: /\d{16}/,
19804
+ [CountryCodes.Azerbaijan]: /[\dA-Z]{4}\d{20}/,
19805
+ [CountryCodes.Belgium]: /\d{12}/,
19806
+ [CountryCodes.Bahrain]: /[A-Z]{4}[\dA-Z]{14}/,
19807
+ [CountryCodes.BosniaAndHerzegovina]: /\d{16}/,
19808
+ [CountryCodes.Brazil]: /\d{23}[A-Z][\dA-Z]/,
19809
+ [CountryCodes.Bulgaria]: /[A-Z]{4}\d{6}[\dA-Z]{8}/,
19810
+ [CountryCodes.CostaRica]: /\d{17}/,
19811
+ [CountryCodes.Croatia]: /\d{17}/,
19812
+ [CountryCodes.Cyprus]: /\d{8}[\dA-Z]{16}/,
19813
+ [CountryCodes.CzechRepublic]: /\d{20}/,
19814
+ [CountryCodes.Denmark]: /\d{14}/,
19815
+ [CountryCodes.DominicanRepublic]: /[A-Z]{4}\d{20}/,
19816
+ [CountryCodes.Estonia]: /\d{16}/,
19817
+ [CountryCodes.FaroeIslands]: /\d{14}/,
19818
+ [CountryCodes.Finland]: /\d{14}/,
19819
+ [CountryCodes.France]: /\d{10}[\dA-Z]{11}\d{2}/,
19820
+ [CountryCodes.Georgia]: /[\dA-Z]{2}\d{16}/,
19821
+ [CountryCodes.Germany]: /\d{18}/,
19822
+ [CountryCodes.Gibraltar]: /[A-Z]{4}[\dA-Z]{15}/,
19823
+ [CountryCodes.Greece]: /\d{7}[\dA-Z]{16}/,
19824
+ [CountryCodes.Greenland]: /\d{14}/,
19825
+ [CountryCodes.Guatemala]: /[\dA-Z]{4}[\dA-Z]{20}/,
19826
+ [CountryCodes.Hungary]: /\d{24}/,
19827
+ [CountryCodes.Iceland]: /\d{22}/,
19828
+ [CountryCodes.Ireland]: /[\dA-Z]{4}\d{14}/,
19829
+ [CountryCodes.Israel]: /\d{19}/,
19830
+ [CountryCodes.Italy]: /[A-Z]\d{10}[\dA-Z]{12}/,
19831
+ [CountryCodes.Kazakhstan]: /\d{3}[\dA-Z]{13}/,
19832
+ [CountryCodes.Kuwait]: /[A-Z]{4}[\dA-Z]{22}/,
19833
+ [CountryCodes.Latvia]: /[A-Z]{4}[\dA-Z]{13}/,
19834
+ [CountryCodes.Lebanon]: /\d{4}[\dA-Z]{20}/,
19835
+ [CountryCodes.Liechtenstein]: /\d{5}[\dA-Z]{12}/,
19836
+ [CountryCodes.Lithuania]: /\d{16}/,
19837
+ [CountryCodes.Luxembourg]: /\d{3}[\dA-Z]{13}/,
19838
+ [CountryCodes.Macedonia]: /\d{3}[\dA-Z]{10}\d{2}/,
19839
+ [CountryCodes.Malta]: /[A-Z]{4}\d{5}[\dA-Z]{18}/,
19840
+ [CountryCodes.Mauritania]: /\d{23}/,
19841
+ [CountryCodes.Mauritius]: /[A-Z]{4}\d{19}[A-Z]{3}/,
19842
+ [CountryCodes.Monaco]: /\d{10}[\dA-Z]{11}\d{2}/,
19843
+ [CountryCodes.Moldova]: /[\dA-Z]{2}\d{18}/,
19844
+ [CountryCodes.Montenegro]: /\d{18}/,
19845
+ [CountryCodes.Netherlands]: /[A-Z]{4}\d{10}/,
19846
+ [CountryCodes.Norway]: /\d{11}/,
19847
+ [CountryCodes.Pakistan]: /[\dA-Z]{4}\d{16}/,
19848
+ [CountryCodes.PalestinianTerritory]: /[\dA-Z]{4}\d{21}/,
19849
+ [CountryCodes.Poland]: /\d{24}/,
19850
+ [CountryCodes.Portugal]: /\d{21}/,
19851
+ [CountryCodes.Romania]: /[A-Z]{4}[\dA-Z]{16}/,
19852
+ [CountryCodes.SanMarino]: /[A-Z]\d{10}[\dA-Z]{12}/,
19853
+ [CountryCodes.SaudiArabia]: /\d{2}[\dA-Z]{18}/,
19854
+ [CountryCodes.Serbia]: /\d{18}/,
19855
+ [CountryCodes.Slovakia]: /\d{20}/,
19856
+ [CountryCodes.Slovenia]: /\d{15}/,
19857
+ [CountryCodes.Spain]: /\d{20}/,
19858
+ [CountryCodes.Sweden]: /\d{20}/,
19859
+ [CountryCodes.Switzerland]: /\d{5}[\dA-Z]{12}/,
19860
+ [CountryCodes.Tunisia]: /\d{20}/,
19861
+ [CountryCodes.Turkey]: /\d{5}[\dA-Z]{17}/,
19862
+ [CountryCodes.UnitedArabEmirates]: /\d{3}\d{16}/,
19863
+ [CountryCodes.UnitedKingdom]: /[A-Z]{4}\d{14}/,
19864
+ [CountryCodes.VirginIslandsBritish]: /[\dA-Z]{4}\d{16}/
19339
19865
  };
19340
19866
  const customPrefixByCountry = {
19341
19867
  [CountryCodes.Guernsey]: "GB",
@@ -19394,29 +19920,26 @@ const validateIbanOnBlurAndInput = (country2) => ({
19394
19920
  return typeof result === "boolean" ? void 0 : result;
19395
19921
  }
19396
19922
  });
19397
- const ibanMask = (country2, inputLength, includesBankCode) => {
19923
+ const ibanMask = (country2, inputLength, allowLettersInBban) => {
19398
19924
  const tokens = [];
19399
19925
  tokens.push(...nonInputs(country2, {
19400
19926
  includeInValue: true
19401
19927
  }), ...numericInputs(2));
19402
19928
  inputLength -= 2;
19403
- if (includesBankCode) {
19404
- tokens.push(spacer, ...alphaInputs(4));
19405
- inputLength -= 4;
19406
- }
19929
+ const inputToken = allowLettersInBban ? alphanumericInputs : numericInputs;
19407
19930
  const numGroups = Math.floor(inputLength / 4);
19408
19931
  const remainder = inputLength % 4;
19409
19932
  for (let i = 0; i < numGroups; i += 1) {
19410
- tokens.push(spacer, ...numericInputs(4));
19933
+ tokens.push(spacer, ...inputToken(4));
19411
19934
  }
19412
19935
  if (remainder > 0) {
19413
- tokens.push(spacer, ...numericInputs(remainder));
19936
+ tokens.push(spacer, ...inputToken(remainder));
19414
19937
  }
19415
19938
  return {
19416
19939
  mask: {
19417
19940
  tokens
19418
19941
  },
19419
- transformOnType: includesBankCode ? uppercase : void 0
19942
+ transformOnType: allowLettersInBban ? uppercase : void 0
19420
19943
  };
19421
19944
  };
19422
19945
  const ibanGuidance = (type, numDigitsOrChars, example) => type === "digits" ? {
@@ -19432,11 +19955,11 @@ const ibanGuidance = (type, numDigitsOrChars, example) => type === "digits" ? {
19432
19955
  example
19433
19956
  }
19434
19957
  };
19435
- const ibanMetadata = (country2, inputLength, example, includesBankCode) => ({
19958
+ const ibanMetadata = (country2, inputLength, example, allowLettersInBban) => ({
19436
19959
  label: "iban",
19437
19960
  validators: validateIbanOnBlurAndInput(country2),
19438
- mask: ibanMask(country2, inputLength, includesBankCode),
19439
- guidanceText: ibanGuidance(includesBankCode ? "characters" : "digits", inputLength, example)
19961
+ mask: ibanMask(country2, inputLength, allowLettersInBban),
19962
+ guidanceText: ibanGuidance(allowLettersInBban ? "characters" : "digits", inputLength, example)
19440
19963
  });
19441
19964
  const gbIbanMetadata = ibanMetadata(CountryCodes.UnitedKingdom, 20, "GB09 BARC 2003 9554 8297 59", true);
19442
19965
  const defaultFieldMetadata$1 = {
@@ -19464,65 +19987,24 @@ const defaultFieldConfig$1 = {
19464
19987
  [CountryCodes.Slovenia]: ibanMetadata(CountryCodes.Slovenia, 17, "SI56 1920 0123 4567 892"),
19465
19988
  [CountryCodes.Spain]: ibanMetadata(CountryCodes.Spain, 22, "ES76 1465 5599 9226 7623 2635"),
19466
19989
  [CountryCodes.Sweden]: ibanMetadata(CountryCodes.Sweden, 22, "SE72 8000 0810 3400 0978 3242"),
19467
- [CountryCodes.Switzerland]: ibanMetadata(CountryCodes.Switzerland, 19, "CH56 0483 5012 3456 7800 9"),
19468
- // These include 4-letter bank codes
19990
+ // These include letters in the BBAN (bank account number)
19469
19991
  [CountryCodes.Bulgaria]: ibanMetadata(CountryCodes.Bulgaria, 20, "BG17 BNPA 9440 4432 7749 93", true),
19992
+ [CountryCodes.France]: ibanMetadata(CountryCodes.France, 25, "FR64 1009 6000 4035 3425 9742 Y90", true),
19470
19993
  [CountryCodes.Gibraltar]: ibanMetadata(CountryCodes.Gibraltar, 21, "GI96 JYJT 9899 9587 8655 898", true),
19471
19994
  [CountryCodes.Ireland]: ibanMetadata(CountryCodes.Ireland, 20, "IE64 IRCE 9205 0112 3456 78", true),
19995
+ [CountryCodes.Italy]: ibanMetadata(CountryCodes.Italy, 25, "IT06 L030 0203 2809 8485 8934 882", true),
19472
19996
  [CountryCodes.Latvia]: ibanMetadata(CountryCodes.Latvia, 19, "LV80 BANK 0000 4351 9500 1", true),
19997
+ [CountryCodes.Liechtenstein]: ibanMetadata(CountryCodes.Liechtenstein, 19, "LI21 0881 0000 2324 013A A", true),
19473
19998
  [CountryCodes.Malta]: ibanMetadata(CountryCodes.Malta, 29, "MT03 VIXW 2487 8926 8575 8586 8929 858", true),
19999
+ [CountryCodes.Monaco]: ibanMetadata(CountryCodes.Monaco, 25, "MC58 1122 2000 0101 2345 6789 030", true),
19474
20000
  [CountryCodes.Netherlands]: ibanMetadata(CountryCodes.Netherlands, 16, "NL50 ABNA 4452 7591 49", true),
19475
20001
  [CountryCodes.Romania]: ibanMetadata(CountryCodes.Romania, 22, "RO36 PORL 9596 9966 4965 4284", true),
20002
+ [CountryCodes.Switzerland]: ibanMetadata(CountryCodes.Switzerland, 19, "CH56 0483 5012 3456 7800 9", true),
19476
20003
  [CountryCodes.UnitedKingdom]: gbIbanMetadata,
19477
20004
  // IBANs for Guernsey, Jersey, and Isle of Man also use United Kingdom's format (starting with `GB`)
19478
20005
  [CountryCodes.Guernsey]: gbIbanMetadata,
19479
20006
  [CountryCodes.Jersey]: gbIbanMetadata,
19480
- [CountryCodes.IsleOfMan]: gbIbanMetadata,
19481
- // These are a little bit different
19482
- [CountryCodes.France]: {
19483
- label: "iban",
19484
- validators: validateIbanOnBlurAndInput(CountryCodes.France),
19485
- mask: {
19486
- mask: makeMask(...nonInputs("FR", {
19487
- includeInValue: true
19488
- }), ...numericInputs(2), spacer, ...numericInputs(4), spacer, ...numericInputs(4), spacer, ...numericInputs(2), ...alphanumericInputs(2), spacer, ...alphanumericInputs(4), spacer, ...alphanumericInputs(4), spacer, ...alphanumericInputs(1), ...numericInputs(2)),
19489
- transformOnType: uppercase
19490
- },
19491
- guidanceText: ibanGuidance("characters", 25, "FR64 1009 6000 4035 3425 9742 Y90")
19492
- },
19493
- [CountryCodes.Italy]: {
19494
- label: "iban",
19495
- validators: validateIbanOnBlurAndInput(CountryCodes.Italy),
19496
- mask: {
19497
- mask: makeMask(...nonInputs("IT", {
19498
- includeInValue: true
19499
- }), ...numericInputs(2), spacer, ...alphaInputs(1), ...numericInputs(3), spacer, ...numericInputs(4), spacer, ...numericInputs(4), spacer, ...numericInputs(4), spacer, ...numericInputs(4), spacer, ...numericInputs(3)),
19500
- transformOnType: uppercase
19501
- },
19502
- guidanceText: ibanGuidance("characters", 25, "IT06 L030 0203 2809 8485 8934 882")
19503
- },
19504
- [CountryCodes.Liechtenstein]: {
19505
- label: "iban",
19506
- validators: validateIbanOnBlurAndInput(CountryCodes.Liechtenstein),
19507
- mask: {
19508
- mask: makeMask(...nonInputs("LI", {
19509
- includeInValue: true
19510
- }), ...numericInputs(2), spacer, ...numericInputs(4), spacer, ...numericInputs(1), ...alphanumericInputs(3), spacer, ...alphanumericInputs(4), spacer, ...alphanumericInputs(3), ...alphanumericInputs(1), spacer, ...alphanumericInputs(1)),
19511
- transformOnType: uppercase
19512
- },
19513
- guidanceText: ibanGuidance("characters", 19, "LI21 0881 0000 2324 013A A")
19514
- },
19515
- [CountryCodes.Monaco]: {
19516
- label: "iban",
19517
- validators: validateIbanOnBlurAndInput(CountryCodes.Monaco),
19518
- mask: {
19519
- mask: makeMask(...nonInputs("MC", {
19520
- includeInValue: true
19521
- }), ...numericInputs(2), spacer, ...numericInputs(4), spacer, ...numericInputs(4), spacer, ...numericInputs(2), ...alphanumericInputs(2), spacer, ...alphanumericInputs(4), spacer, ...alphanumericInputs(4), spacer, ...alphanumericInputs(1), ...numericInputs(2)),
19522
- transformOnType: uppercase
19523
- },
19524
- guidanceText: ibanGuidance("characters", 25, "MC58 1122 2000 0101 2345 6789 030")
19525
- }
20007
+ [CountryCodes.IsleOfMan]: gbIbanMetadata
19526
20008
  };
19527
20009
  const ibanFields = ["iban"];
19528
20010
  function Iban(props) {
@@ -19788,432 +20270,6 @@ function PayoutAccountComponent(props) {
19788
20270
  });
19789
20271
  }
19790
20272
  const PayoutAccount = memo(PayoutAccountComponent, (prevProps, nextProps) => objectsDeepEqual(prevProps.requiredFields, nextProps.requiredFields) && objectsDeepEqual(prevProps.optionalFields, nextProps.optionalFields) && objectsDeepEqual(prevProps.data, nextProps.data) && objectsDeepEqual(prevProps.formVerificationErrors, nextProps.formVerificationErrors) && objectsDeepEqual(prevProps.fieldValidationErrors, nextProps.fieldValidationErrors) && prevProps.country === nextProps.country && prevProps.shouldValidate === nextProps.shouldValidate && prevProps.arePayoutAccountDetailsInvalid === nextProps.arePayoutAccountDetailsInvalid && prevProps.invalidFieldNames === nextProps.invalidFieldNames);
19791
- const PayoutBankStatement$1 = "";
19792
- function FilePicker({
19793
- files,
19794
- setFiles,
19795
- isValid,
19796
- errorMessage,
19797
- multiple = false,
19798
- label,
19799
- iconPrefix = "generic-document",
19800
- // file validation options
19801
- allowedFileTypes,
19802
- maxSize,
19803
- isOptional,
19804
- maxNumberOfFiles
19805
- }) {
19806
- const {
19807
- i18n
19808
- } = useI18nContext();
19809
- const fileInput = useRef(null);
19810
- const [dragged, setDragged] = useState(false);
19811
- const hasRequiredError = errorMessage === "fieldIsRequired";
19812
- const showDropzone = files.length < maxNumberOfFiles;
19813
- const openFilePicker = () => {
19814
- var _a;
19815
- return (_a = fileInput.current) == null ? void 0 : _a.click();
19816
- };
19817
- const handleFileDelete = (fileToDelete) => setFiles(files.filter((file) => file !== fileToDelete));
19818
- const handleDragEnter = (e) => {
19819
- e.preventDefault();
19820
- e.stopPropagation();
19821
- };
19822
- const handleDragLeave = (e) => {
19823
- e.preventDefault();
19824
- e.stopPropagation();
19825
- setDragged(false);
19826
- };
19827
- const handleDragOver = (e) => {
19828
- e.preventDefault();
19829
- e.stopPropagation();
19830
- setDragged(true);
19831
- };
19832
- const handleDrop = (e) => {
19833
- e.preventDefault();
19834
- e.stopPropagation();
19835
- if (e.dataTransfer)
19836
- addFiles(e.dataTransfer.files);
19837
- setDragged(false);
19838
- };
19839
- const handleFilesChosen = (e) => {
19840
- const fileInput2 = e.target;
19841
- if (fileInput2.files)
19842
- addFiles(fileInput2.files);
19843
- };
19844
- const addFiles = (newFiles) => {
19845
- setFiles([...newFiles, ...files]);
19846
- };
19847
- const allowedFileTypesString = allowedFileTypes.join(", ");
19848
- return jsxs("div", {
19849
- children: [label && jsx("div", {
19850
- className: cx("adyen-kyc-label__text", {
19851
- "adyen-kyc-label__text--error": hasRequiredError
19852
- }),
19853
- children: label
19854
- }), files.map((file) => jsx(DropzoneFile, {
19855
- file,
19856
- onDelete: () => handleFileDelete(file),
19857
- errorMessage,
19858
- iconPrefix
19859
- }, file)), showDropzone && jsxs("div", {
19860
- role: "region",
19861
- className: cx("adyen-kyc-dropzone", {
19862
- "adyen-kyc-dropzone--dragged": dragged,
19863
- "adyen-kyc-dropzone--error": !dragged && hasRequiredError
19864
- }),
19865
- onDrop: handleDrop,
19866
- onDragOver: handleDragOver,
19867
- onDragEnter: handleDragEnter,
19868
- onDragLeave: handleDragLeave,
19869
- children: [jsx("div", {
19870
- className: "adyen-kyc-dropzone__icon",
19871
- children: jsx("svg", {
19872
- height: "100%",
19873
- width: "100%",
19874
- children: jsx("use", {
19875
- href: `#adl-${iconPrefix}-icon`
19876
- })
19877
- })
19878
- }), jsxs("div", {
19879
- className: "adyen-kyc-dropzone__labels",
19880
- children: [jsxs("div", {
19881
- className: "adyen-kyc-dropzone__drag-text",
19882
- children: [jsxs("span", {
19883
- children: [i18n.get("dragYourFilesHereOr"), " "]
19884
- }), jsx("button", {
19885
- className: "adyen-kyc-dropzone__button",
19886
- type: "button",
19887
- onClick: openFilePicker,
19888
- children: i18n.get("browse")
19889
- })]
19890
- }), jsx("div", {
19891
- className: "adyen-kyc-dropzone__supports-text",
19892
- children: i18n.get("supports", {
19893
- values: {
19894
- fileTypes: allowedFileTypesString,
19895
- maxSize: bytesToSize(maxSize),
19896
- maxFiles: maxNumberOfFiles
19897
- }
19898
- })
19899
- })]
19900
- }), jsx("input", {
19901
- className: "adyen-kyc-dropzone__input",
19902
- ref: fileInput,
19903
- multiple,
19904
- accept: allowedFileTypesString,
19905
- onChange: handleFilesChosen,
19906
- type: "file",
19907
- "aria-required": !isOptional,
19908
- "aria-label": label,
19909
- "aria-invalid": !isValid
19910
- })]
19911
- }), hasRequiredError && jsx("div", {
19912
- className: "adyen-kyc-error-text",
19913
- children: i18n.get("fieldIsRequired")
19914
- })]
19915
- });
19916
- }
19917
- var BankDocumentTypes = /* @__PURE__ */ ((BankDocumentTypes2) => {
19918
- BankDocumentTypes2["BANK_STATEMENT"] = "bankStatement";
19919
- BankDocumentTypes2["DEPOSIT_TICKET"] = "depositTicket";
19920
- BankDocumentTypes2["SCREENSHOT_OF_BANK"] = "screenshotOfOnlineBankingEnviroment";
19921
- BankDocumentTypes2["OFFICIAL_EMAIL"] = "officialEmailOrALetterFromYourBank";
19922
- BankDocumentTypes2["CHEQUES"] = "cheques";
19923
- BankDocumentTypes2["RELEVE_DIDENTITE"] = "releveDidentiteBancaire";
19924
- return BankDocumentTypes2;
19925
- })(BankDocumentTypes || {});
19926
- const bankDocumentOptions = [{
19927
- id: "bankStatement",
19928
- name: "bankStatement"
19929
- }, {
19930
- id: "depositTicket",
19931
- name: "depositTicket"
19932
- }, {
19933
- id: "screenshotOfOnlineBankingEnviroment",
19934
- name: "screenshotOfOnlineBankingEnviroment"
19935
- }, {
19936
- id: "officialEmailOrALetterFromYourBank",
19937
- name: "officialEmailOrALetterFromYourBank"
19938
- }, {
19939
- id: "cheques",
19940
- name: "cheques"
19941
- }, {
19942
- id: "releveDidentiteBancaire",
19943
- name: "releveDidentiteBancaire"
19944
- }];
19945
- var BankDocumentRequirement = /* @__PURE__ */ ((BankDocumentRequirement2) => {
19946
- BankDocumentRequirement2["ACCOUNT_HOLDER"] = "accountHolderNameMatchesWithBusinessOrTradingName";
19947
- BankDocumentRequirement2["ACCOUNT_NUMBER_OR_IBAN"] = "accountNumberOrIbanVisible";
19948
- BankDocumentRequirement2["ACCOUNT_NUMBER"] = "accountNumberVisible";
19949
- BankDocumentRequirement2["ROUTING_NUMBER"] = "routingNumberVisible";
19950
- BankDocumentRequirement2["DATE_ON_DOCUMENT"] = "dateOnDocumentNoOlderThanXMonths";
19951
- BankDocumentRequirement2["COUNTRY_OF_BANK"] = "showsCountryOfBankAccount";
19952
- BankDocumentRequirement2["OFFICIAL_DOCUMENT"] = "hasToBeOfficialDocumentFromBank";
19953
- BankDocumentRequirement2["STAMP_OR_SIGNATURE"] = "hasBankStampOrBankSignature";
19954
- return BankDocumentRequirement2;
19955
- })(BankDocumentRequirement || {});
19956
- const getBankDocumentRequirements = (country2, documentType2) => {
19957
- const requireStampOrSignature = documentType2 === BankDocumentTypes.DEPOSIT_TICKET || documentType2 === BankDocumentTypes.OFFICIAL_EMAIL;
19958
- switch (country2) {
19959
- case CountryCodes.UnitedStates:
19960
- return requireStampOrSignature ? [{
19961
- key: BankDocumentRequirement.ACCOUNT_HOLDER
19962
- }, {
19963
- key: BankDocumentRequirement.ACCOUNT_NUMBER
19964
- }, {
19965
- key: BankDocumentRequirement.ROUTING_NUMBER
19966
- }, {
19967
- key: BankDocumentRequirement.DATE_ON_DOCUMENT,
19968
- options: {
19969
- values: {
19970
- numberOfMonths: 12
19971
- }
19972
- }
19973
- }, {
19974
- key: BankDocumentRequirement.OFFICIAL_DOCUMENT
19975
- }, {
19976
- key: BankDocumentRequirement.STAMP_OR_SIGNATURE
19977
- }] : [{
19978
- key: BankDocumentRequirement.ACCOUNT_HOLDER
19979
- }, {
19980
- key: BankDocumentRequirement.ACCOUNT_NUMBER
19981
- }, {
19982
- key: BankDocumentRequirement.ROUTING_NUMBER
19983
- }, {
19984
- key: BankDocumentRequirement.DATE_ON_DOCUMENT,
19985
- options: {
19986
- values: {
19987
- numberOfMonths: 12
19988
- }
19989
- }
19990
- }, {
19991
- key: BankDocumentRequirement.OFFICIAL_DOCUMENT
19992
- }];
19993
- default:
19994
- return requireStampOrSignature ? [{
19995
- key: BankDocumentRequirement.ACCOUNT_HOLDER
19996
- }, {
19997
- key: BankDocumentRequirement.ACCOUNT_NUMBER_OR_IBAN
19998
- }, {
19999
- key: BankDocumentRequirement.DATE_ON_DOCUMENT,
20000
- options: {
20001
- values: {
20002
- numberOfMonths: 12
20003
- }
20004
- }
20005
- }, {
20006
- key: BankDocumentRequirement.COUNTRY_OF_BANK
20007
- }, {
20008
- key: BankDocumentRequirement.OFFICIAL_DOCUMENT
20009
- }, {
20010
- key: BankDocumentRequirement.STAMP_OR_SIGNATURE
20011
- }] : [{
20012
- key: BankDocumentRequirement.ACCOUNT_HOLDER
20013
- }, {
20014
- key: BankDocumentRequirement.ACCOUNT_NUMBER_OR_IBAN
20015
- }, {
20016
- key: BankDocumentRequirement.DATE_ON_DOCUMENT,
20017
- options: {
20018
- values: {
20019
- numberOfMonths: 12
20020
- }
20021
- }
20022
- }, {
20023
- key: BankDocumentRequirement.COUNTRY_OF_BANK
20024
- }, {
20025
- key: BankDocumentRequirement.OFFICIAL_DOCUMENT
20026
- }];
20027
- }
20028
- };
20029
- const BankDocumentRequirements = ({
20030
- country: country2,
20031
- documentType: documentType2
20032
- }) => {
20033
- const {
20034
- i18n
20035
- } = useI18nContext();
20036
- return jsxs(Fragment, {
20037
- children: [jsxs("div", {
20038
- className: "adyen-kyc-upload-field__subtitle",
20039
- children: [" ", i18n.get("requirements")]
20040
- }), jsx(List, {
20041
- className: "adyen-kyc-upload-field__requirements",
20042
- children: getBankDocumentRequirements(country2, documentType2).map(({
20043
- key,
20044
- options
20045
- }) => jsx(ListItem, {
20046
- children: i18n.get(key, options)
20047
- }, key))
20048
- })]
20049
- });
20050
- };
20051
- const payoutBankStatementValidationRules = {
20052
- description: {
20053
- modes: ["blur"],
20054
- validate: (description2) => description2 ? bankStatementDescriptionPattern.test(description2) : true,
20055
- errorMessage: "invalidFormatBankStatementDescription"
20056
- }
20057
- };
20058
- const CHARACTERS_LIMIT$1 = 200;
20059
- const bankStatementFields = ["bankStatementDocument", "description"];
20060
- function PayoutBankStatementComponent(props) {
20061
- var _a, _b;
20062
- const {
20063
- country: country2,
20064
- optionalFields
20065
- } = props;
20066
- const {
20067
- i18n
20068
- } = useI18nContext();
20069
- const [documentType2, setDocumentType] = useState();
20070
- const stateRef = useRef({
20071
- setState: null
20072
- });
20073
- const isBankStatementOptional = (optionalFields == null ? void 0 : optionalFields.includes("bankStatementDocument")) ?? false;
20074
- const formUtils = formUtilities(props, i18n);
20075
- const bankStatementValidationOptions = useMemo(() => ({
20076
- ...defaultFileValidationOptions,
20077
- isOptional: isBankStatementOptional
20078
- }), [isBankStatementOptional]);
20079
- const rules2 = useMemo(() => ({
20080
- ...props.validators || payoutBankStatementValidationRules,
20081
- bankStatementDocument: fileValidationRules(bankStatementValidationOptions)
20082
- }), [bankStatementValidationOptions, props.validators]);
20083
- const {
20084
- handleChangeFor,
20085
- data,
20086
- setData,
20087
- valid,
20088
- fieldProblems,
20089
- errors,
20090
- triggerValidation
20091
- } = useForm({
20092
- ...props,
20093
- schema: bankStatementFields,
20094
- defaultData: props.data,
20095
- rules: rules2,
20096
- fieldProblems: props == null ? void 0 : props.fieldValidationErrors,
20097
- shouldValidate: props == null ? void 0 : props.shouldValidate
20098
- });
20099
- const alreadyUploadedDocuments = useMemo(() => {
20100
- var _a2;
20101
- return ((_a2 = props.data) == null ? void 0 : _a2.bankStatementDocument) ?? [];
20102
- }, [(_a = props.data) == null ? void 0 : _a.bankStatementDocument]);
20103
- const hasAlreadyUploadedDocuments = alreadyUploadedDocuments.length > 0;
20104
- const usingExistingUploadedDocuments = data.bankStatementDocument && doArraysMatch(alreadyUploadedDocuments, data.bankStatementDocument);
20105
- useEffect(() => {
20106
- var _a2;
20107
- if (hasAlreadyUploadedDocuments) {
20108
- setData("bankStatementDocument", alreadyUploadedDocuments);
20109
- if ((_a2 = props.data) == null ? void 0 : _a2.description)
20110
- setData("description", props.data.description);
20111
- triggerValidation();
20112
- }
20113
- }, [alreadyUploadedDocuments, hasAlreadyUploadedDocuments, (_b = props.data) == null ? void 0 : _b.description, setData, triggerValidation]);
20114
- useEffect(() => {
20115
- var _a2, _b2;
20116
- (_b2 = (_a2 = stateRef.current) == null ? void 0 : _a2.setState) == null ? void 0 : _b2.call(_a2, {
20117
- type: "addToState",
20118
- value: {
20119
- data,
20120
- valid,
20121
- errors,
20122
- fieldProblems,
20123
- caller: props.id,
20124
- dataStoreId: props.id,
20125
- schema: bankStatementFields
20126
- }
20127
- });
20128
- }, [data, valid, errors, fieldProblems]);
20129
- const getBankDocumentOptions = () => {
20130
- let options = bankDocumentOptions;
20131
- if (country2 !== "FR") {
20132
- options = options.filter((option) => option.id !== BankDocumentTypes.RELEVE_DIDENTITE);
20133
- }
20134
- return options.map(({
20135
- id: id2,
20136
- name
20137
- }) => ({
20138
- id: id2,
20139
- name: i18n.get(name)
20140
- }));
20141
- };
20142
- return jsxs("form", {
20143
- className: "adyen-kyc-payout__bank-statement",
20144
- children: [jsx(StateContextSetter, {
20145
- owner: props.id,
20146
- stateRef
20147
- }), jsx(FormHeader, {
20148
- heading: props.heading
20149
- }), jsx(ErrorPanel, {
20150
- verificationErrors: props == null ? void 0 : props.formVerificationErrors,
20151
- validationErrors: props == null ? void 0 : props.fieldValidationErrors,
20152
- formUtils,
20153
- id: "ariaErrorField"
20154
- }), formUtils.isVisibleField("bankStatementDocument") && jsxs(Fragment, {
20155
- children: [jsx("div", {
20156
- className: "adyen-kyc-document-upload__subtitle adl-u-margin-bottom-16",
20157
- children: i18n.get("bankStatementDocumentTypeLabel")
20158
- }), !usingExistingUploadedDocuments && jsx(Field, {
20159
- name: "documentType",
20160
- label: formUtils.getLabel("bankStatementDocument", "selectDocumentType"),
20161
- className: "adyen-kyc-field--bankStatementDocumentType",
20162
- children: (childProps) => jsx(Select, {
20163
- ...childProps,
20164
- onChange: (e) => setDocumentType(e.target.value),
20165
- name: "documentType",
20166
- placeholder: i18n.get("selectDocument"),
20167
- isInvalid: false,
20168
- items: getBankDocumentOptions(),
20169
- selected: documentType2
20170
- })
20171
- }), documentType2 ? jsxs(Fragment, {
20172
- children: [country2 ? jsx(BankDocumentRequirements, {
20173
- country: country2,
20174
- documentType: documentType2
20175
- }) : void 0, jsx(DocumentGuidance, {
20176
- type: DocumentType.BANK_STATEMENT,
20177
- className: "adl-u-margin-y-24"
20178
- })]
20179
- }) : null, documentType2 || usingExistingUploadedDocuments ? jsx(Field, {
20180
- className: "adyen-kyc-field--bankStatementDocument adyen-kyc-upload-field",
20181
- name: "bankStatementDocument",
20182
- isValid: valid.bankStatementDocument,
20183
- children: (childProps) => {
20184
- var _a2;
20185
- return jsx(FilePicker, {
20186
- ...childProps,
20187
- files: data.bankStatementDocument ?? [],
20188
- setFiles: handleChangeFor("bankStatementDocument"),
20189
- isValid: valid.bankStatementDocument ?? isBankStatementOptional,
20190
- errorMessage: (_a2 = errors.bankStatementDocument) == null ? void 0 : _a2.errorMessage,
20191
- iconPrefix: getDocumentGuidancePrefix(DocumentType.BANK_STATEMENT, true),
20192
- ...bankStatementValidationOptions
20193
- });
20194
- }
20195
- }) : null]
20196
- }), documentType2 || usingExistingUploadedDocuments ? jsx(Field, {
20197
- name: "description",
20198
- label: formUtils.getLabel("descriptionOptional"),
20199
- helper: i18n.get("descriptionHelper"),
20200
- errorMessage: formUtils.getErrorMessage("description", errors, fieldProblems),
20201
- isValid: valid.description,
20202
- children: (childProps) => jsx(TextArea, {
20203
- ...childProps,
20204
- name: "description",
20205
- value: data.description,
20206
- classNameModifiers: ["description"],
20207
- maxLength: CHARACTERS_LIMIT$1,
20208
- onInput: handleChangeFor("description"),
20209
- "aria-label": formUtils.getLabel("description"),
20210
- "aria-invalid": !valid.description
20211
- })
20212
- }) : null]
20213
- });
20214
- }
20215
- const PayoutBankStatement = memo(PayoutBankStatementComponent, (prevProps, nextProps) => objectsDeepEqual(prevProps.requiredFields, nextProps.requiredFields) && objectsDeepEqual(prevProps.optionalFields, nextProps.optionalFields) && objectsDeepEqual(prevProps.data, nextProps.data) && objectsDeepEqual(prevProps.formVerificationErrors, nextProps.formVerificationErrors) && objectsDeepEqual(prevProps.fieldValidationErrors, nextProps.fieldValidationErrors) && prevProps.country === nextProps.country && prevProps.shouldValidate === nextProps.shouldValidate && prevProps.heading === nextProps.heading);
20216
- const VerificationMethod = "";
20217
20273
  const hasLoaded = (loadedValue) => loadedValue !== "loading";
20218
20274
  const eeaCountries = [CountryCodes.Austria, CountryCodes.Belgium, CountryCodes.Bulgaria, CountryCodes.Croatia, CountryCodes.Cyprus, CountryCodes.CzechRepublic, CountryCodes.Denmark, CountryCodes.Estonia, CountryCodes.Finland, CountryCodes.France, CountryCodes.Germany, CountryCodes.Greece, CountryCodes.Hungary, CountryCodes.Ireland, CountryCodes.Italy, CountryCodes.Latvia, CountryCodes.Liechtenstein, CountryCodes.Lithuania, CountryCodes.Luxembourg, CountryCodes.Malta, CountryCodes.Netherlands, CountryCodes.Norway, CountryCodes.Poland, CountryCodes.Portugal, CountryCodes.Romania, CountryCodes.Slovakia, CountryCodes.Slovenia, CountryCodes.Spain, CountryCodes.Sweden];
20219
20275
  const regions = {
@@ -20242,7 +20298,7 @@ const makePayoutVerificationMethodsMetadata = (svgPath, instantVerificationProvi
20242
20298
  }
20243
20299
  });
20244
20300
  const payoutVerificationMethods = ["instantVerification", "manualVerification"];
20245
- const logger$h = createLogger("useLocalStorage");
20301
+ const logger$i = createLogger("useLocalStorage");
20246
20302
  const useLocalStorage = (key, defaultValue, options) => {
20247
20303
  const {
20248
20304
  serializer,
@@ -20263,7 +20319,7 @@ const useLocalStorage = (key, defaultValue, options) => {
20263
20319
  const res = rawValueRef.current ? parser(rawValueRef.current) : defaultValue;
20264
20320
  return res;
20265
20321
  } catch (err) {
20266
- logger$h.error(err);
20322
+ logger$i.error(err);
20267
20323
  return defaultValue;
20268
20324
  }
20269
20325
  });
@@ -20295,7 +20351,7 @@ const useLocalStorage = (key, defaultValue, options) => {
20295
20351
  try {
20296
20352
  updateLocalStorage();
20297
20353
  } catch (err) {
20298
- logger$h.error(err);
20354
+ logger$i.error(err);
20299
20355
  }
20300
20356
  }, [value]);
20301
20357
  useEffect(() => {
@@ -20310,7 +20366,7 @@ const useLocalStorage = (key, defaultValue, options) => {
20310
20366
  setValue(event.newValue ? parser(event.newValue) : void 0);
20311
20367
  }
20312
20368
  } catch (err) {
20313
- logger$h.error(err);
20369
+ logger$i.error(err);
20314
20370
  }
20315
20371
  };
20316
20372
  if (typeof window === "undefined")
@@ -20687,8 +20743,10 @@ const payoutSteps = {
20687
20743
  }),
20688
20744
  payoutAccountDocuments: {
20689
20745
  formId: "payoutAccountDocuments",
20690
- formName: "bankStatement",
20691
- fields: bankStatementFields
20746
+ formName: "bankDocument",
20747
+ formHeader: "bankDocumentHeader",
20748
+ formDescription: "bankDocumentDescription",
20749
+ fields: bankDocumentFields
20692
20750
  },
20693
20751
  payoutAccountVerification: {
20694
20752
  formId: "payoutAccountVerification",
@@ -20719,6 +20777,7 @@ function PayoutDetailsComponent(props) {
20719
20777
  activeForm,
20720
20778
  taskType = TaskTypes.PAYOUT,
20721
20779
  legalEntityResponse,
20780
+ associatedLegalArrangement,
20722
20781
  handleGetBankVerificationVendors,
20723
20782
  setHideDropinLayout,
20724
20783
  setHideOnHomeButton,
@@ -20736,9 +20795,9 @@ function PayoutDetailsComponent(props) {
20736
20795
  const verificationMethodFormProps = getFormProps(props, payoutSteps.payoutVerificationMethod.formId);
20737
20796
  const accountVerificationFormProps = getFormProps(props, payoutSteps.payoutAccountVerification.formId);
20738
20797
  const payoutAccountFormProps = getFormProps(props, payoutSteps.payoutAccountDetails(taskType, isExperimentEnabled("EnableNewEntryFlow")).formId);
20739
- const payoutBankStatementFormProps = getFormProps(props, payoutSteps.payoutAccountDocuments.formId);
20798
+ const bankDocumentFormProps = getFormProps(props, payoutSteps.payoutAccountDocuments.formId);
20740
20799
  const taskHeading = isExperimentEnabled("EnableNewEntryFlow") ? i18n.get("addAndVerifyYourBankDetails") : i18n.get(taskType === TaskTypes.PAYOUT ? "payoutAccount" : "payinAccount");
20741
- const isBankStatementDocumentOptional = formUtilities(payoutBankStatementFormProps ?? {}, i18n).isOptionalField("bankStatementDocument");
20800
+ const isBankStatementDocumentOptional = formUtilities(bankDocumentFormProps ?? {}, i18n).isOptionalField("bankStatementDocument");
20742
20801
  const globalData = useGlobalData();
20743
20802
  const data = isEmpty(globalData) ? propData : globalData;
20744
20803
  const resetData = useResetGlobalData();
@@ -20824,10 +20883,13 @@ function PayoutDetailsComponent(props) {
20824
20883
  })
20825
20884
  }), !verifyInstantly && jsx("div", {
20826
20885
  className: (activeForm == null ? void 0 : activeForm.formId) !== payoutSteps.payoutAccountDocuments.formId ? "adyen-kyc-form-wrapper adyen-kyc-form-wrapper--hidden" : "adyen-kyc-form-wrapper",
20827
- children: jsx(PayoutBankStatement, {
20828
- ...payoutBankStatementFormProps,
20829
- heading: i18n.get(isBankStatementDocumentOptional ? "bankStatementOptional" : "bankStatement"),
20886
+ children: jsx(BankDocumentComponent, {
20887
+ ...bankDocumentFormProps,
20888
+ heading: i18n.get(isBankStatementDocumentOptional ? "bankDocumentHeaderOptional" : "bankDocumentHeader"),
20889
+ description: i18n.get("bankDocumentDescription"),
20830
20890
  id: payoutSteps.payoutAccountDocuments.formId,
20891
+ legalEntity: legalEntityResponse,
20892
+ associatedLegalArrangement,
20831
20893
  country: bankCountry2
20832
20894
  })
20833
20895
  })]
@@ -21038,7 +21100,6 @@ function SolePropComponent(props) {
21038
21100
  children: renderActiveForm(props.activeForm || solePropForms.solePropNameAndCountry)
21039
21101
  });
21040
21102
  }
21041
- const Trust = "";
21042
21103
  var TrustTypes = /* @__PURE__ */ ((TrustTypes2) => {
21043
21104
  TrustTypes2["BUSINESS_TRUST"] = "businessTrust";
21044
21105
  TrustTypes2["CASH_MANAGEMENT_TRUST"] = "cashManagementTrust";
@@ -21360,7 +21421,6 @@ const getCountrySpecificTrustTypeOptions = (country2) => {
21360
21421
  return countrySpecificTrustTypeOption;
21361
21422
  });
21362
21423
  };
21363
- const ContextHelper$1 = "";
21364
21424
  const ContextHelper = ({
21365
21425
  content
21366
21426
  }) => jsx("div", {
@@ -21625,6 +21685,14 @@ function TrustComponent(props) {
21625
21685
  children: renderActiveForm(props.activeForm || trustForms.trustRegistrationDetails)
21626
21686
  });
21627
21687
  }
21688
+ var VerificationErrorType = /* @__PURE__ */ ((VerificationErrorType2) => {
21689
+ VerificationErrorType2["DATA_MISSING"] = "dataMissing";
21690
+ VerificationErrorType2["INVALID_INPUT"] = "invalidInput";
21691
+ VerificationErrorType2["PENDING_STATUS"] = "pendingStatus";
21692
+ VerificationErrorType2["DATA_REVIEW"] = "dataReview";
21693
+ VerificationErrorType2["REJECTED"] = "rejected";
21694
+ return VerificationErrorType2;
21695
+ })(VerificationErrorType || {});
21628
21696
  const invalidInputRemediationActionMappings = {
21629
21697
  "1_100": [],
21630
21698
  "1_101": [],
@@ -21705,6 +21773,8 @@ const invalidInputRemediationActionMappings = {
21705
21773
  "1_502": [{
21706
21774
  key: DocumentType.REGISTRATION_DOCUMENT
21707
21775
  }],
21776
+ // '1_503': [{ key: DocumentType.PROOF_OF_ORGANIZATION_TAX_INFO }], // TODO: These are the correct mappings according to the API. We've done various bandaid fixes on both sides for this
21777
+ // '1_504': [{ key: DocumentType.PROOF_OF_ORGANIZATION_TAX_INFO }], // These will be corrected in a later ticket. see https://docs.adyen.com/platforms/kyc-verification-codes/remediating-actions/#1_503
21708
21778
  "1_503": [{
21709
21779
  key: DocumentType.VAT_DOCUMENT
21710
21780
  }],
@@ -21763,6 +21833,8 @@ const invalidInputRemediationActionMappings = {
21763
21833
  };
21764
21834
  const dataMissingRemediationsToFieldsMap = {
21765
21835
  "1_501": [DocumentType.REGISTRATION_DOCUMENT],
21836
+ "1_503": [DocumentType.PROOF_OF_ORGANIZATION_TAX_INFO],
21837
+ "1_512": [DocumentType.VAT_DOCUMENT],
21766
21838
  "2_158": ["vatNumber", "exemptedFromVat", "vatAbsenceReason"]
21767
21839
  };
21768
21840
  const DATA_MISSING_DECISION_MAKER_ERROR_CODE_MAPPING = {
@@ -21775,19 +21847,158 @@ const DATA_MISSING_DECISION_MAKER_ERROR_CODE_MAPPING = {
21775
21847
  "2_8193": "2_185"
21776
21848
  // Director
21777
21849
  };
21850
+ const OVERRIDE_REMEDIATION_CODE = {
21851
+ // 1_501: Upload a registration document
21852
+ "1_501": {
21853
+ code: "1_503",
21854
+ message: "Upload a tax document"
21855
+ },
21856
+ // 1_502: Upload a different registration document
21857
+ "1_502": {
21858
+ code: "1_504",
21859
+ message: "Upload a different tax document"
21860
+ }
21861
+ };
21862
+ const OVERRIDE_SUB_ERROR_REMEDIATING_ACTIONS = {
21863
+ "1_5012": [...[OVERRIDE_REMEDIATION_CODE["1_501"]], {
21864
+ code: "1_500",
21865
+ message: "Update organization details"
21866
+ }],
21867
+ "1_5013": [...[OVERRIDE_REMEDIATION_CODE["1_501"]], {
21868
+ code: "1_500",
21869
+ message: "Update organization details"
21870
+ }],
21871
+ "1_5015": [...[OVERRIDE_REMEDIATION_CODE["1_501"]], {
21872
+ code: "1_500",
21873
+ message: "Update organization details"
21874
+ }],
21875
+ "1_5017": [...[OVERRIDE_REMEDIATION_CODE["1_501"]], {
21876
+ code: "1_500",
21877
+ message: "Update organization details"
21878
+ }],
21879
+ "1_5020": [OVERRIDE_REMEDIATION_CODE["1_501"]],
21880
+ "1_5021": [OVERRIDE_REMEDIATION_CODE["1_502"]],
21881
+ "1_5022": [OVERRIDE_REMEDIATION_CODE["1_502"]],
21882
+ "1_5024": [...[OVERRIDE_REMEDIATION_CODE["1_502"]], {
21883
+ code: "1_500",
21884
+ message: "Update organization details"
21885
+ }],
21886
+ "1_5035": [...[OVERRIDE_REMEDIATION_CODE["1_502"]], {
21887
+ code: "1_500",
21888
+ message: "Update organization details"
21889
+ }]
21890
+ };
21891
+ const OVERRIDE_SUB_ERROR = {
21892
+ // 1_5012: The submitted company type didn't match the one on the registry
21893
+ "1_5012": {
21894
+ code: "1_5012",
21895
+ message: "The submitted company type didn't match the one on the registry",
21896
+ type: VerificationErrorType.INVALID_INPUT,
21897
+ remediatingActions: OVERRIDE_SUB_ERROR_REMEDIATING_ACTIONS["1_5012"]
21898
+ },
21899
+ // 1_5013: The company was not found in the database
21900
+ "1_5013": {
21901
+ code: "1_5013",
21902
+ message: "The company was not found in the database",
21903
+ type: VerificationErrorType.INVALID_INPUT,
21904
+ remediatingActions: OVERRIDE_SUB_ERROR_REMEDIATING_ACTIONS["1_5013"]
21905
+ },
21906
+ // 1_5015: The registration number didn't match the legal business name
21907
+ "1_5015": {
21908
+ code: "1_5017",
21909
+ message: "The tax ID number didn't match the legal business name",
21910
+ type: VerificationErrorType.INVALID_INPUT,
21911
+ remediatingActions: OVERRIDE_SUB_ERROR_REMEDIATING_ACTIONS["1_5015"]
21912
+ },
21913
+ // 1_5017: The tax ID number didn't match the legal business name
21914
+ "1_5017": {
21915
+ code: "1_5017",
21916
+ message: "The tax ID number didn't match the legal business name",
21917
+ type: VerificationErrorType.INVALID_INPUT,
21918
+ remediatingActions: OVERRIDE_SUB_ERROR_REMEDIATING_ACTIONS["1_5017"]
21919
+ },
21920
+ // 1_5020: Registration document is missing.
21921
+ "1_5020": {
21922
+ code: "1_5036",
21923
+ message: "Tax document is missing.",
21924
+ type: VerificationErrorType.INVALID_INPUT,
21925
+ remediatingActions: OVERRIDE_SUB_ERROR_REMEDIATING_ACTIONS["1_5020"]
21926
+ },
21927
+ // 1_5021: The registration document was too low quality.
21928
+ "1_5021": {
21929
+ code: "1_5039",
21930
+ message: "The tax document was too low quality.",
21931
+ type: VerificationErrorType.INVALID_INPUT,
21932
+ remediatingActions: OVERRIDE_SUB_ERROR_REMEDIATING_ACTIONS["1_5021"]
21933
+ },
21934
+ // 1_5022: The registration document was too old.
21935
+ "1_5022": {
21936
+ code: "1_5040",
21937
+ message: "The tax document was too old.",
21938
+ type: VerificationErrorType.INVALID_INPUT,
21939
+ remediatingActions: OVERRIDE_SUB_ERROR_REMEDIATING_ACTIONS["1_5022"]
21940
+ },
21941
+ // 1_5024: The registration document did not show the company type
21942
+ "1_5024": {
21943
+ code: "1_5024",
21944
+ message: "The registration document did not show the company type",
21945
+ type: VerificationErrorType.INVALID_INPUT,
21946
+ remediatingActions: OVERRIDE_SUB_ERROR_REMEDIATING_ACTIONS["1_5024"]
21947
+ },
21948
+ // 1_5035: The company registration document is not supported.
21949
+ "1_5035": {
21950
+ code: "1_5038",
21951
+ message: "The tax document wasn't a supported document type.",
21952
+ type: VerificationErrorType.INVALID_INPUT,
21953
+ remediatingActions: OVERRIDE_SUB_ERROR_REMEDIATING_ACTIONS["1_5035"]
21954
+ }
21955
+ };
21956
+ const OVERRIDE_DATA_MISSING_ERROR = {
21957
+ // "'Registration document' was missing."
21958
+ "2_8141": {
21959
+ code: "2_8162",
21960
+ message: "'proofOfOrganizationTaxInfo' was missing",
21961
+ type: VerificationErrorType.DATA_MISSING,
21962
+ remediatingActions: [OVERRIDE_REMEDIATION_CODE["1_501"]]
21963
+ }
21964
+ };
21965
+ const overrideError = (verificationError) => {
21966
+ var _a, _b, _c;
21967
+ switch (verificationError.type) {
21968
+ case VerificationErrorType.DATA_MISSING:
21969
+ switch (verificationError.code) {
21970
+ case "2_8141":
21971
+ return OVERRIDE_DATA_MISSING_ERROR["2_8141"];
21972
+ default:
21973
+ return verificationError;
21974
+ }
21975
+ case VerificationErrorType.INVALID_INPUT:
21976
+ switch (verificationError.code) {
21977
+ case "1_50":
21978
+ return {
21979
+ ...verificationError,
21980
+ subErrors: (_a = verificationError.subErrors) == null ? void 0 : _a.map((subError) => OVERRIDE_SUB_ERROR[subError.code] ?? subError)
21981
+ };
21982
+ case "1_52":
21983
+ return {
21984
+ ...verificationError,
21985
+ code: "1_53",
21986
+ message: "Tax document didn't meet requirements",
21987
+ remediatingActions: (_b = verificationError.remediatingActions) == null ? void 0 : _b.map((remediation) => OVERRIDE_REMEDIATION_CODE[remediation.code] ?? remediation),
21988
+ subErrors: (_c = verificationError.subErrors) == null ? void 0 : _c.map((subError) => OVERRIDE_SUB_ERROR[subError.code] ?? subError)
21989
+ };
21990
+ default:
21991
+ return verificationError;
21992
+ }
21993
+ default:
21994
+ return verificationError;
21995
+ }
21996
+ };
21778
21997
  var EntityType = /* @__PURE__ */ ((EntityType2) => {
21779
21998
  EntityType2["BANK_ACCOUNT"] = "BankAccount";
21780
21999
  EntityType2["LEGAL_ENTITY"] = "LegalEntity";
21781
22000
  return EntityType2;
21782
22001
  })(EntityType || {});
21783
- var VerificationErrorType = /* @__PURE__ */ ((VerificationErrorType2) => {
21784
- VerificationErrorType2["DATA_MISSING"] = "dataMissing";
21785
- VerificationErrorType2["INVALID_INPUT"] = "invalidInput";
21786
- VerificationErrorType2["PENDING_STATUS"] = "pendingStatus";
21787
- VerificationErrorType2["DATA_REVIEW"] = "dataReview";
21788
- VerificationErrorType2["REJECTED"] = "rejected";
21789
- return VerificationErrorType2;
21790
- })(VerificationErrorType || {});
21791
22002
  const UNRELATED_DATA_MISSING_ERROR_CODES = ["2_8036", "2_8064", "2_8067", "2_8189"];
21792
22003
  const UNRELATED_INVALID_INPUT_ERROR_CODES = ["1_14", "2_901", "2_902"];
21793
22004
  const getComponentMappingFromLEFieldPath = (context, entityType2, isExperimentEnabled) => {
@@ -21992,7 +22203,13 @@ const aggregateProblemsByEntity = (problems, entity) => problems.reduce((errorsB
21992
22203
  return aggregatedErrors;
21993
22204
  }
21994
22205
  }, {});
21995
- function getCapabilityProblems(entity, isExperimentEnabled) {
22206
+ const overrideVerificationErrors = (verificationErrors, country2) => verificationErrors.map((verificationError) => {
22207
+ if (country2 === "US") {
22208
+ return overrideError(verificationError);
22209
+ }
22210
+ return verificationError;
22211
+ });
22212
+ function getCapabilityProblems(entity, country2, isExperimentEnabled) {
21996
22213
  const problems = entity.problems ?? [];
21997
22214
  const aggregatedErrorsByEntity = aggregateProblemsByEntity(problems, entity);
21998
22215
  return entriesOf(aggregatedErrorsByEntity).reduce((capabilityProblems, [entityId, {
@@ -22003,7 +22220,7 @@ function getCapabilityProblems(entity, isExperimentEnabled) {
22003
22220
  ...capabilityProblems,
22004
22221
  [baseEntityType]: {
22005
22222
  ...capabilityProblems[baseEntityType],
22006
- [entityId]: getEntityProblems(verificationErrors, exactEntityType, isExperimentEnabled)
22223
+ [entityId]: getEntityProblems(overrideVerificationErrors(verificationErrors, country2), exactEntityType, isExperimentEnabled)
22007
22224
  }
22008
22225
  }), {});
22009
22226
  }
@@ -22512,7 +22729,7 @@ const defaultPayoutAccountFormat = {
22512
22729
  [CountryCodes.Sweden]: "local",
22513
22730
  [CountryCodes.UnitedKingdom]: "local"
22514
22731
  };
22515
- const logger$g = createLogger("useScenarioConfiguration");
22732
+ const logger$h = createLogger("useScenarioConfiguration");
22516
22733
  const useScenarioConfiguration = ({
22517
22734
  getConfigurationData,
22518
22735
  getPayoutAccountFormatData,
@@ -22535,12 +22752,12 @@ const useScenarioConfiguration = ({
22535
22752
  const response = await getConfigurationData();
22536
22753
  setConfigurationResponse(response);
22537
22754
  } catch (err) {
22538
- logger$g.warn("WARNING: Configuration request failed - error:", err);
22755
+ logger$h.warn("WARNING: Configuration request failed - error:", err);
22539
22756
  } finally {
22540
22757
  setLoadingStatus("success");
22541
22758
  }
22542
22759
  };
22543
- makeConfigCallAndSave().catch(logger$g.error);
22760
+ makeConfigCallAndSave().catch(logger$h.error);
22544
22761
  }, [getConfigurationData, setLoadingStatus]);
22545
22762
  useEffect(() => {
22546
22763
  setLoadingStatus("loading");
@@ -22559,12 +22776,12 @@ const useScenarioConfiguration = ({
22559
22776
  const defaultAccountFormat = defaultPayoutAccountFormat[country2] ?? allowedBankAccountFormats[0];
22560
22777
  setAccountFormat(existingBankAccountFormat ?? defaultAccountFormat);
22561
22778
  } catch (err) {
22562
- logger$g.warn("WARNING: Payout format request failed - error:", err);
22779
+ logger$h.warn("WARNING: Payout format request failed - error:", err);
22563
22780
  } finally {
22564
22781
  setLoadingStatus("success");
22565
22782
  }
22566
22783
  };
22567
- makePayoutFormatCallAndSave().catch(logger$g.error);
22784
+ makePayoutFormatCallAndSave().catch(logger$h.error);
22568
22785
  }, [country2, setAccountFormat, getPayoutAccountFormatData, setLoadingStatus, existingBankAccountFormat]);
22569
22786
  const {
22570
22787
  fieldConfigurations,
@@ -23032,7 +23249,12 @@ const showRemediationField = (field, remediationActions) => remediationActions.s
23032
23249
  var _a;
23033
23250
  return ((_a = rem.fields) == null ? void 0 : _a.includes(field)) && remediationHasFileUploadField(rem);
23034
23251
  });
23035
- const makeTLDSFieldName = (formId, fieldName) => `${formId}.${fieldName}`;
23252
+ const makeTLDSFieldName = (formId, fieldName) => {
23253
+ if (fieldName === DocumentType.PROOF_OF_ORGANIZATION_TAX_INFO) {
23254
+ return `${formId}.taxDocument`;
23255
+ }
23256
+ return `${formId}.${fieldName}`;
23257
+ };
23036
23258
  const isFieldRequiredToRemediateDataMissingError = (formId, field, dataMissingErrors) => {
23037
23259
  const dataMissingRemediations = dataMissingErrors.flatMap((error) => error.remediatingActions).filter((remediatingAction) => remediatingAction.code in dataMissingRemediationsToFieldsMap);
23038
23260
  const missingFields = dataMissingRemediations.flatMap((remediatingAction) => dataMissingRemediationsToFieldsMap[remediatingAction.code]).map((missingField) => makeTLDSFieldName(formId, missingField));
@@ -23169,8 +23391,6 @@ const getFieldsWithExistingData = (legalEntity, isExperimentEnabled) => {
23169
23391
  }
23170
23392
  return nonDocumentFields;
23171
23393
  };
23172
- const _businessTypeSelection_component = "";
23173
- const _heading_component = "";
23174
23394
  const headingTypes = {
23175
23395
  1: ({
23176
23396
  children,
@@ -23220,7 +23440,6 @@ function Heading({
23220
23440
  children
23221
23441
  });
23222
23442
  }
23223
- const _toast = "";
23224
23443
  var ToastType = /* @__PURE__ */ ((ToastType2) => {
23225
23444
  ToastType2["LOADING"] = "loading";
23226
23445
  ToastType2["SUCCESS"] = "success";
@@ -23412,7 +23631,8 @@ const BusinessTypeSelection = ({
23412
23631
  handleUpdateLegalEntity,
23413
23632
  taskHistory,
23414
23633
  setTaskHistory,
23415
- onNavigateTo
23634
+ onNavigateTo,
23635
+ baseTrackingPayload
23416
23636
  }) => {
23417
23637
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
23418
23638
  const {
@@ -23465,6 +23685,26 @@ const BusinessTypeSelection = ({
23465
23685
  var _a2, _b2;
23466
23686
  setFormSchema(getFormSchema(((_a2 = data.businessType) == null ? void 0 : _a2.id) === "legalArrangement" && !!data.legalArrangement || currentStep === 1, ((_b2 = data.legalArrangement) == null ? void 0 : _b2.id) === "aTrust"));
23467
23687
  }, [data.businessType, data.legalArrangement, currentStep]);
23688
+ useEffect(() => {
23689
+ userEvents.addPageView("Entity Selection");
23690
+ const startDropOffTrackingEvent = () => {
23691
+ userEvents.addEvent("Started legal entity selection", {
23692
+ segmentation: baseTrackingPayload
23693
+ });
23694
+ };
23695
+ const stopDropOffTrackingEvent = () => {
23696
+ userEvents.addEvent("Drop off at legal entity selection", {
23697
+ segmentation: baseTrackingPayload
23698
+ });
23699
+ };
23700
+ startDropOffTrackingEvent();
23701
+ window.addEventListener("focus", startDropOffTrackingEvent);
23702
+ window.addEventListener("blur", stopDropOffTrackingEvent);
23703
+ return () => {
23704
+ window.removeEventListener("focus", startDropOffTrackingEvent);
23705
+ window.removeEventListener("blur", stopDropOffTrackingEvent);
23706
+ };
23707
+ }, []);
23468
23708
  const handleNextClick = async () => {
23469
23709
  var _a2;
23470
23710
  if (loadingStatus === "loading")
@@ -23496,11 +23736,17 @@ const BusinessTypeSelection = ({
23496
23736
  return;
23497
23737
  }
23498
23738
  await updateLegalEntityAndSelectAccountHolder();
23739
+ userEvents.addEvent("Saved legal entity selection", {
23740
+ segmentation: baseTrackingPayload
23741
+ });
23499
23742
  } else {
23500
23743
  onAccountHolderSelect(newAccountHolder);
23501
23744
  }
23502
23745
  if (isLegalArrangementChanging) {
23503
23746
  await updateLegalEntityAndSelectAccountHolder();
23747
+ userEvents.addEvent("Saved legal entity selection", {
23748
+ segmentation: baseTrackingPayload
23749
+ });
23504
23750
  }
23505
23751
  }
23506
23752
  };
@@ -23740,8 +23986,7 @@ const getTargetLegalEntityType = (businessType, legalArrangement, trusteeType, c
23740
23986
  }
23741
23987
  return currentLegalEntityType;
23742
23988
  };
23743
- const FormWrapper$1 = "";
23744
- const logger$f = createLogger("FormRouterContextProvider");
23989
+ const logger$g = createLogger("FormRouterContextProvider");
23745
23990
  function FormRouterContextProvider({
23746
23991
  children,
23747
23992
  forms: forms2,
@@ -23761,7 +24006,7 @@ function FormRouterContextProvider({
23761
24006
  if (formIndex > -1) {
23762
24007
  setFormIndex(formIndex);
23763
24008
  } else {
23764
- logger$f.error("No form was found to have that field so form navigation failed.");
24009
+ logger$g.error("No form was found to have that field so form navigation failed.");
23765
24010
  }
23766
24011
  }
23767
24012
  }), [forms2, handleGetIdVerificationToken, setFormIndex]);
@@ -23770,7 +24015,6 @@ function FormRouterContextProvider({
23770
24015
  children
23771
24016
  });
23772
24017
  }
23773
- const DropinLayout$1 = "";
23774
24018
  const DropinLayout = (props) => {
23775
24019
  const {
23776
24020
  content,
@@ -23790,8 +24034,6 @@ const DropinLayout = (props) => {
23790
24034
  })]
23791
24035
  });
23792
24036
  };
23793
- const FormNavigation$1 = "";
23794
- const FormNavigationItem$1 = "";
23795
24037
  const FormNavigationItem = ({
23796
24038
  form,
23797
24039
  isActive,
@@ -24363,9 +24605,7 @@ function CompanyDropinComponent({
24363
24605
  })
24364
24606
  });
24365
24607
  }
24366
- const CompanyBasicsComponent$1 = "";
24367
- const CompanyLookupComponent$1 = "";
24368
- const logger$e = createLogger("useCompanySearch");
24608
+ const logger$f = createLogger("useCompanySearch");
24369
24609
  const LOW_RISK_COMPANY_DATA_COMPLIANCE_WINDOW = 1577664e5;
24370
24610
  function useCompanySearch({
24371
24611
  defaultData,
@@ -24504,7 +24744,7 @@ function useCompanySearch({
24504
24744
  state: companyData.state ?? stateOrProvince2
24505
24745
  });
24506
24746
  } catch (e) {
24507
- logger$e.error(e);
24747
+ logger$f.error(e);
24508
24748
  setError(e);
24509
24749
  setStatus("error");
24510
24750
  } finally {
@@ -24537,7 +24777,7 @@ function useCompanySearch({
24537
24777
  indexSearch: handleCompanyIndexSearch,
24538
24778
  deepSearch: handleCompanyDeepSearch,
24539
24779
  resultsLimit: limit
24540
- })) == null ? void 0 : _a.catch((e) => logger$e.error(e));
24780
+ })) == null ? void 0 : _a.catch((e) => logger$f.error(e));
24541
24781
  }
24542
24782
  }, [legalCompanyName2, country2, stateOrProvince2, taxIdentificationNumber2, verifiedCompany, searchCompanies, handleCompanyIndexSearch, handleCompanyDeepSearch, limit, canVerify]);
24543
24783
  useEffect(() => {
@@ -24638,7 +24878,6 @@ const CompanyLookupResultsHeader = ({
24638
24878
  })]
24639
24879
  });
24640
24880
  };
24641
- const LookupResult$1 = "";
24642
24881
  const LookupResultBody = ({
24643
24882
  registrationNumber: registrationNumber2,
24644
24883
  address: address2
@@ -25274,7 +25513,6 @@ function CompanyBasics({
25274
25513
  });
25275
25514
  }
25276
25515
  const CompanyBasicsComponent = memo(CompanyBasics, (prevProps, nextProps) => objectsDeepEqual(prevProps.data, nextProps.data) && objectsDeepEqual(prevProps.labels, nextProps.labels) && objectsDeepEqual(prevProps.placeholders, nextProps.placeholders) && objectsDeepEqual(prevProps.helperText, nextProps.helperText) && objectsDeepEqual(prevProps.formVerificationErrors, nextProps.formVerificationErrors) && objectsDeepEqual(prevProps.fieldValidationErrors, nextProps.fieldValidationErrors) && prevProps.heading === nextProps.heading && prevProps.description === nextProps.description && prevProps.readOnly === nextProps.readOnly && prevProps.requiredFields === nextProps.requiredFields && prevProps.obscuredFields === nextProps.obscuredFields && prevProps.optionalFields === nextProps.optionalFields && prevProps.readOnlyFields === nextProps.readOnlyFields && prevProps.shouldValidate === nextProps.shouldValidate && objectsDeepEqual(prevProps.kompanyVerifiedData, nextProps.kompanyVerifiedData));
25277
- const CompanyOtherDetailsComponent$1 = "";
25278
25516
  const BUSINESS_REGISTRATION_NUMBER_FIELD = ["registrationNumber", "exemptedFromRegistrationNumber"];
25279
25517
  function BusinessRegistrationNumberField({
25280
25518
  data,
@@ -25841,7 +26079,6 @@ function CompanyOtherDetails({
25841
26079
  });
25842
26080
  }
25843
26081
  const CompanyOtherDetailsComponent = memo(CompanyOtherDetails, (prevProps, nextProps) => objectsDeepEqual(prevProps.data, nextProps.data) && objectsDeepEqual(prevProps.labels, nextProps.labels) && objectsDeepEqual(prevProps.placeholders, nextProps.placeholders) && objectsDeepEqual(prevProps.helperText, nextProps.helperText) && objectsDeepEqual(prevProps.formVerificationErrors, nextProps.formVerificationErrors) && objectsDeepEqual(prevProps.fieldValidationErrors, nextProps.fieldValidationErrors) && prevProps.heading === nextProps.heading && prevProps.description === nextProps.description && prevProps.requiredFields === nextProps.requiredFields && prevProps.obscuredFields === nextProps.obscuredFields && prevProps.optionalFields === nextProps.optionalFields && prevProps.readOnlyFields === nextProps.readOnlyFields && prevProps.shouldValidate === nextProps.shouldValidate && prevProps.readOnly === nextProps.readOnly && prevProps.country === nextProps.country && prevProps.legalCompanyName === nextProps.legalCompanyName && prevProps.companyType === nextProps.companyType && prevProps.kompanyVerifiedData === nextProps.kompanyVerifiedData);
25844
- const CompanyStructureComponent$1 = "";
25845
26082
  const CompanyStructureValidation = {
25846
26083
  entityType: {
25847
26084
  modes: ["blur"],
@@ -26183,7 +26420,7 @@ const mapLegalEntityToCompanySearchSchema = (legalEntity) => {
26183
26420
  }
26184
26421
  }, {});
26185
26422
  };
26186
- const logger$d = createLogger("useFormTaskSubmit");
26423
+ const logger$e = createLogger("useFormTaskSubmit");
26187
26424
  function useCompanySearchTaskSubmit({
26188
26425
  task,
26189
26426
  forms: forms2,
@@ -26229,7 +26466,7 @@ function useCompanySearchTaskSubmit({
26229
26466
  });
26230
26467
  }
26231
26468
  } catch (e) {
26232
- logger$d.error(e);
26469
+ logger$e.error(e);
26233
26470
  }
26234
26471
  }, [baseTrackingPayload, documentUtils]);
26235
26472
  const submit2 = useCallback(async ({
@@ -26273,7 +26510,7 @@ function useCompanySearchTaskSubmit({
26273
26510
  ...trackingPayload
26274
26511
  }
26275
26512
  });
26276
- logger$d.log(submittedLegalEntity);
26513
+ logger$e.log(submittedLegalEntity);
26277
26514
  setAccountHolder(entityTypeToCorrespondingAccountHolderOption[legalEntityResponse.type]);
26278
26515
  clearToasts();
26279
26516
  onExternalSubmit == null ? void 0 : onExternalSubmit(data);
@@ -26298,7 +26535,7 @@ function useCompanySearchTaskSubmit({
26298
26535
  type: ToastType.ERROR
26299
26536
  });
26300
26537
  }
26301
- logger$d.error(e);
26538
+ logger$e.error(e);
26302
26539
  userEvents.addEvent("Encountered error company details", {
26303
26540
  segmentation: {
26304
26541
  ...baseTrackingPayload,
@@ -26435,7 +26672,7 @@ function CompanySearchComponent(props) {
26435
26672
  heading: i18n.get(forms.companyTaxDocument.formName),
26436
26673
  description: i18n.get(forms.companyTaxDocument.formDescription),
26437
26674
  documentField: "taxDocument",
26438
- documentType: country2 !== "US" ? DocumentType.VAT_DOCUMENT : DocumentType.PROOF_OF_ORGANIZATION_TAX_INFO,
26675
+ documentType: country2 === "US" ? DocumentType.PROOF_OF_ORGANIZATION_TAX_INFO : DocumentType.VAT_DOCUMENT,
26439
26676
  guidanceContent: jsxs(Fragment, {
26440
26677
  children: [jsx("div", {
26441
26678
  className: "adyen-kyc-document-upload__subtitle adl-u-margin-bottom-16",
@@ -26510,11 +26747,11 @@ function CompanySearchDropinComponent({
26510
26747
  } = useExperimentsContext();
26511
26748
  const [loadingStatus, setLoadingStatus] = useState("success");
26512
26749
  const [initialData, setInitialData] = useState(mapLegalEntityToCompanySearchSchema(legalEntityResponse));
26513
- const [problems, setProblems] = useState(propProblems ?? ((_b = (_a = getCapabilityProblems(legalEntityResponse, isExperimentEnabled)) == null ? void 0 : _a.LegalEntity) == null ? void 0 : _b[legalEntityResponse.id]));
26514
26750
  const country2 = useMemo(() => {
26515
26751
  var _a2;
26516
26752
  return ((_a2 = currentState.data.companyBasics) == null ? void 0 : _a2.country) ?? parentCountry;
26517
- }, [(_c = currentState.data.companyBasics) == null ? void 0 : _c.country, parentCountry]);
26753
+ }, [(_a = currentState.data.companyBasics) == null ? void 0 : _a.country, parentCountry]);
26754
+ const [problems, setProblems] = useState(propProblems ?? ((_c = (_b = getCapabilityProblems(legalEntityResponse, country2, isExperimentEnabled)) == null ? void 0 : _b.LegalEntity) == null ? void 0 : _c[legalEntityResponse.id]));
26518
26755
  const documentUtils = documentApiUtils(handleCreateDocument, handleGetDocument, handleUpdateDocument);
26519
26756
  useEffect(() => {
26520
26757
  var _a2;
@@ -26727,6 +26964,24 @@ const useShouldShowIntroduction = ({
26727
26964
  });
26728
26965
  return canSeeIntroduction && !hasSeenIntroduction;
26729
26966
  };
26967
+ const logger$d = createLogger("useAssociatedLegalArrangement");
26968
+ function useAssociatedLegalArrangement({
26969
+ rootLegalEntity,
26970
+ getLegalEntity: getLegalEntity2
26971
+ }) {
26972
+ const [associatedLegalArrangement, setAssociatedLegalArrangement] = useState();
26973
+ const getAssociatedEntity = useCallback(async (entityId) => getLegalEntity2 == null ? void 0 : getLegalEntity2(entityId), [getLegalEntity2]);
26974
+ useEffect(() => {
26975
+ var _a;
26976
+ const foundEntity = (_a = rootLegalEntity == null ? void 0 : rootLegalEntity.entityAssociations) == null ? void 0 : _a.find((entity) => entity.type === LegalEntityType.SOLE_PROPRIETORSHIP || entity.type === LegalEntityType.TRUST);
26977
+ if (foundEntity == null ? void 0 : foundEntity.legalEntityId) {
26978
+ getAssociatedEntity(foundEntity == null ? void 0 : foundEntity.legalEntityId).then((res) => setAssociatedLegalArrangement(res)).catch(logger$d.error);
26979
+ }
26980
+ }, [getAssociatedEntity, rootLegalEntity == null ? void 0 : rootLegalEntity.entityAssociations]);
26981
+ return {
26982
+ associatedLegalArrangement
26983
+ };
26984
+ }
26730
26985
  const useShouldShowBusinessTypeSelection = (accountHolder2) => {
26731
26986
  const {
26732
26987
  isExperimentEnabled
@@ -26804,36 +27059,6 @@ const saveBlobAsFile = (fileData, filename) => {
26804
27059
  window.URL.revokeObjectURL(blobUrl);
26805
27060
  }
26806
27061
  };
26807
- const getLegalEntityNameBasedOnType = (legalEntityResponse) => {
26808
- var _a, _b, _c, _d, _e;
26809
- if (legalEntityResponse.type === LegalEntityType.INDIVIDUAL) {
26810
- return `${((_b = (_a = legalEntityResponse.individual) == null ? void 0 : _a.name) == null ? void 0 : _b.firstName) ?? ""} ${((_d = (_c = legalEntityResponse.individual) == null ? void 0 : _c.name) == null ? void 0 : _d.lastName) ?? ""}`;
26811
- }
26812
- return ((_e = legalEntityResponse.organization) == null ? void 0 : _e.legalName) ?? "";
26813
- };
26814
- const getPayoutAccountHolderName = (legalEntity, i18n) => {
26815
- const ownAssociations = getOwnEntityAssociations(legalEntity);
26816
- const trustAssociation = ownAssociations.find(({
26817
- type
26818
- }) => type === LegalEntityType.TRUST);
26819
- if (trustAssociation == null ? void 0 : trustAssociation.name) {
26820
- const trustName = trustAssociation.name;
26821
- const trusteeName = getLegalEntityNameBasedOnType(legalEntity);
26822
- return i18n.get("trusteeAsTrusteeForTrust", {
26823
- values: {
26824
- trustName,
26825
- trusteeName
26826
- }
26827
- });
26828
- }
26829
- const solePropAssociation = ownAssociations.find(({
26830
- type
26831
- }) => type === LegalEntityType.SOLE_PROPRIETORSHIP);
26832
- if (solePropAssociation == null ? void 0 : solePropAssociation.name) {
26833
- return solePropAssociation.name;
26834
- }
26835
- return getLegalEntityNameBasedOnType(legalEntity);
26836
- };
26837
27062
  const isNewEntity = Symbol("isNewEntity");
26838
27063
  const splitAtFirstOccurrence = (str, separator) => {
26839
27064
  const firstOccurrence = str.indexOf(separator);
@@ -27109,7 +27334,6 @@ function AccountSetupRejected() {
27109
27334
  content
27110
27335
  });
27111
27336
  }
27112
- const DecisionMakers = "";
27113
27337
  function useDataMissingRemediations({
27114
27338
  legalEntityId,
27115
27339
  problems
@@ -27153,7 +27377,6 @@ const iconStatus = (current, min, max) => {
27153
27377
  return isWithinConditionalRange ? "conditionalFinished" : "conditionalEmpty";
27154
27378
  };
27155
27379
  const getEntityStatusRuleDescription = (country2, currentTask, entityLabel) => currentTask === TaskTypes.TRUST_MEMBER_OVERVIEW ? TRUST_DEFAULT_DESCRIPTIONS_MAP[entityLabel] : getDecisionMakerDescriptionMap(country2)[entityLabel];
27156
- const _cardGroup_component = "";
27157
27380
  function CardGroup({
27158
27381
  className,
27159
27382
  children
@@ -27163,8 +27386,6 @@ function CardGroup({
27163
27386
  children
27164
27387
  });
27165
27388
  }
27166
- const _entityAssociation_component = "";
27167
- const Status$1 = "";
27168
27389
  const Status = ({
27169
27390
  text,
27170
27391
  className,
@@ -27327,7 +27548,6 @@ const VerificationErrorAlert = ({
27327
27548
  children
27328
27549
  });
27329
27550
  };
27330
- const _card_component = "";
27331
27551
  function Card({
27332
27552
  className,
27333
27553
  children,
@@ -27380,7 +27600,6 @@ function Card({
27380
27600
  })]
27381
27601
  });
27382
27602
  }
27383
- const ActionsMenu$1 = "";
27384
27603
  function useClickAwayListener(ref, onClickAway) {
27385
27604
  const handleClickAway = useCallback((event) => {
27386
27605
  if (ref.current && !ref.current.contains(event.target)) {
@@ -27590,7 +27809,6 @@ const EntityAssociation = ({
27590
27809
  }), infoContent]
27591
27810
  });
27592
27811
  };
27593
- const EntityGuidanceStatus$1 = "";
27594
27812
  const EntityStatusIcon = ({
27595
27813
  status
27596
27814
  }) => {
@@ -27857,7 +28075,6 @@ const DecisionMakersComponent = ({
27857
28075
  })
27858
28076
  });
27859
28077
  };
27860
- const Shimmer$1 = "";
27861
28078
  function Shimmer() {
27862
28079
  return jsxs("div", {
27863
28080
  children: [jsx("div", {
@@ -27871,7 +28088,6 @@ function Shimmer() {
27871
28088
  })]
27872
28089
  });
27873
28090
  }
27874
- const _introduction_component = "";
27875
28091
  var IntroductionScreens = ((IntroductionScreens2) => {
27876
28092
  IntroductionScreens2["PROLOGUE"] = "PROLOGUE";
27877
28093
  IntroductionScreens2[IntroductionScreens2["COMPANY"] = TaskTypes.COMPANY] = "COMPANY";
@@ -27917,7 +28133,6 @@ const useIntroductionScreens = ({
27917
28133
  }) : [], [legalEntityType, tasks]);
27918
28134
  return canSeeIntroduction && (introductionScreens == null ? void 0 : introductionScreens.length) > 0 ? [IntroductionScreens.PROLOGUE, ...introductionScreens, IntroductionScreens.EPILOGUE] : void 0;
27919
28135
  };
27920
- const StepProgressIndicator$1 = "";
27921
28136
  const StepProgressIndicator = ({
27922
28137
  activeStepIndex,
27923
28138
  stepsCount
@@ -28196,7 +28411,6 @@ function ReviewComponent({
28196
28411
  footer
28197
28412
  });
28198
28413
  }
28199
- const TaskList = "";
28200
28414
  const businessTypeMapping = {
28201
28415
  myName: {
28202
28416
  [LegalEntityType.INDIVIDUAL]: "individual"
@@ -28243,7 +28457,6 @@ const hasPayoutAccount = (legalEntityResponse) => {
28243
28457
  var _a;
28244
28458
  return Boolean((_a = legalEntityResponse.transferInstruments) == null ? void 0 : _a.length);
28245
28459
  };
28246
- const TaskListItem$1 = "";
28247
28460
  const TaskListItem = ({
28248
28461
  title,
28249
28462
  tagline,
@@ -28368,7 +28581,6 @@ const PayoutAccountTaskListItem = ({
28368
28581
  handleIsRemoveDisabled: setIsRemoveDisabled
28369
28582
  });
28370
28583
  };
28371
- const TaskListGroup$1 = "";
28372
28584
  const TaskListGroup = ({
28373
28585
  title,
28374
28586
  children
@@ -28392,6 +28604,7 @@ const LEGAL_ENTITY_BASE_TASKS = [TaskTypes.INDIVIDUAL, TaskTypes.COMPANY, TaskTy
28392
28604
  const CONTRACT_TASKS = [TaskTypes.SERVICE_AGREEMENT, TaskTypes.PCI_DSS];
28393
28605
  function TaskListComponent({
28394
28606
  tasks,
28607
+ trackingConfig,
28395
28608
  onNavigateToTask,
28396
28609
  legalEntityResponse,
28397
28610
  capabilityProblems,
@@ -28457,6 +28670,17 @@ function TaskListComponent({
28457
28670
  const handleOnNavigateToServiceAgreement = () => onNavigateToTask(TaskTypes.SERVICE_AGREEMENT);
28458
28671
  const companyTaskDescriptionKey = isReview ? "businessAccountDetailsDescriptionReview" : "businessAccountDetailsDescription";
28459
28672
  const payoutTaskDescriptionKey = isReview ? "payoutAccountsDescriptionReview" : "payoutAccountsDescription";
28673
+ const onEditBusinessSetupClick = () => {
28674
+ const baseTrackingPayload = getBaseTrackingPayload({
28675
+ trackingConfig,
28676
+ legalEntity: legalEntityResponse,
28677
+ task: tasks[tasks.length - 1]
28678
+ });
28679
+ userEvents.addEvent("Clicked back to legal entity selection", {
28680
+ segmentation: baseTrackingPayload
28681
+ });
28682
+ onNavigateToTask(TaskTypes.BUSINESS_TYPE_SELECTION);
28683
+ };
28460
28684
  return jsxs("div", {
28461
28685
  children: [canSeeIntroduction && jsx("div", {
28462
28686
  className: "adyen-task-list__nav",
@@ -28485,7 +28709,7 @@ function TaskListComponent({
28485
28709
  icon: "edit",
28486
28710
  ghost: true,
28487
28711
  circle: true,
28488
- onClick: () => onNavigateToTask(TaskTypes.BUSINESS_TYPE_SELECTION),
28712
+ onClick: onEditBusinessSetupClick,
28489
28713
  className: "adl-u-margin-left-4",
28490
28714
  type: "button"
28491
28715
  })]
@@ -28601,7 +28825,6 @@ function TaskListComponent({
28601
28825
  })]
28602
28826
  });
28603
28827
  }
28604
- const TrustMembersOverview$1 = "";
28605
28828
  const CompanyTrustMemberTaskItem = ({
28606
28829
  companyTrustMember,
28607
28830
  taskStatus,
@@ -29447,7 +29670,7 @@ const useBankConfigurationHandlers = ({
29447
29670
  getBankVerificationVendorsHandler
29448
29671
  };
29449
29672
  };
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") });
29673
+ const accountFormatsImports = /* @__PURE__ */ Object.assign({ "./AD.json": () => import("./AD-rNM7cqE8.mjs"), "./AE.json": () => import("./AE-DoU2c3CQ.mjs"), "./AI.json": () => import("./AI-BQBZ2VVt.mjs"), "./AL.json": () => import("./AL-s4ei1ra4.mjs"), "./AR.json": () => import("./AR-DDR8RTlN.mjs"), "./AS.json": () => import("./AS-CvpjtIPo.mjs"), "./AT.json": () => import("./AT-Du3jf0QK.mjs"), "./AU.json": () => import("./AU-CaRlRNzq.mjs"), "./AX.json": () => import("./AX-DL2IpBlq.mjs"), "./AZ.json": () => import("./AZ-DgnKHqSW.mjs"), "./BA.json": () => import("./BA-DbzAHDbo.mjs"), "./BE.json": () => import("./BE-B8RVrEa-.mjs"), "./BG.json": () => import("./BG-BAU_RbNU.mjs"), "./BH.json": () => import("./BH-zzl3Aicz.mjs"), "./BM.json": () => import("./BM-Bx0QpJE_.mjs"), "./BR.json": () => import("./BR-CcE5GVb_.mjs"), "./BS.json": () => import("./BS-C5xv5epf.mjs"), "./BV.json": () => import("./BV-BO7Uhvet.mjs"), "./BY.json": () => import("./BY-Dn7i3b4O.mjs"), "./CA.json": () => import("./CA-BzjyYlZe.mjs"), "./CH.json": () => import("./CH-BvlOBUqB.mjs"), "./CN.json": () => import("./CN-y0BC6iBw.mjs"), "./CR.json": () => import("./CR-tTzdtq6M.mjs"), "./CY.json": () => import("./CY-Bjyj7q7k.mjs"), "./CZ.json": () => import("./CZ-DdsXQiz6.mjs"), "./DE.json": () => import("./DE-k6sF_Z8P.mjs"), "./DK.json": () => import("./DK-CUWikATU.mjs"), "./DO.json": () => import("./DO-DpDyoh4y.mjs"), "./EC.json": () => import("./EC--TPKDJme.mjs"), "./EE.json": () => import("./EE-o0O1NAuh.mjs"), "./ES.json": () => import("./ES-8DboqUrj.mjs"), "./FI.json": () => import("./FI-CwVBRBBQ.mjs"), "./FJ.json": () => import("./FJ-DkKmOAd6.mjs"), "./FO.json": () => import("./FO-BCZCVxXR.mjs"), "./FR.json": () => import("./FR-NtJ3QSfd.mjs"), "./GB.json": () => import("./GB-BhRiUVO6.mjs"), "./GE.json": () => import("./GE--9n2R8_p.mjs"), "./GF.json": () => import("./GF-BeND08-O.mjs"), "./GG.json": () => import("./GG-DcYzHlYO.mjs"), "./GI.json": () => import("./GI-BWXRySSY.mjs"), "./GL.json": () => import("./GL-Cu7M9Xnx.mjs"), "./GP.json": () => import("./GP-Dm3WhONm.mjs"), "./GR.json": () => import("./GR-C0snveYS.mjs"), "./GT.json": () => import("./GT-BykjfmEK.mjs"), "./GU.json": () => import("./GU-oom5Ehbd.mjs"), "./HK.json": () => import("./HK-Dr5b-SwK.mjs"), "./HR.json": () => import("./HR-DKAQpsSV.mjs"), "./HU.json": () => import("./HU-DJWWX_5P.mjs"), "./ID.json": () => import("./ID-BWJvoyJo.mjs"), "./IE.json": () => import("./IE-BPh0CHaO.mjs"), "./IL.json": () => import("./IL-B8E0HdBj.mjs"), "./IM.json": () => import("./IM-ClrsAYLm.mjs"), "./IN.json": () => import("./IN-CVsYzQzI.mjs"), "./IS.json": () => import("./IS-BkDwjQHz.mjs"), "./IT.json": () => import("./IT-B3cLskCx.mjs"), "./JE.json": () => import("./JE-C8HBNrJn.mjs"), "./JM.json": () => import("./JM-CH_LXMnd.mjs"), "./JO.json": () => import("./JO-CD_uH_Uk.mjs"), "./JP.json": () => import("./JP-DtK_xb_Y.mjs"), "./KR.json": () => import("./KR-DBPY5awJ.mjs"), "./KW.json": () => import("./KW-CiSCIyPm.mjs"), "./KY.json": () => import("./KY-FU9AuEMz.mjs"), "./KZ.json": () => import("./KZ-CMFj-_rM.mjs"), "./LB.json": () => import("./LB-BRGM3Yl3.mjs"), "./LI.json": () => import("./LI-DlCX-3GD.mjs"), "./LT.json": () => import("./LT-XRkygwh8.mjs"), "./LU.json": () => import("./LU-CV14IXAu.mjs"), "./LV.json": () => import("./LV-ByV8yuF8.mjs"), "./MC.json": () => import("./MC-CwHePfdt.mjs"), "./MD.json": () => import("./MD-_IIMR66Q.mjs"), "./ME.json": () => import("./ME-Cfx8llkg.mjs"), "./MK.json": () => import("./MK-CEzz7Z_a.mjs"), "./MP.json": () => import("./MP-C5acK0KC.mjs"), "./MQ.json": () => import("./MQ-BEZo6wPU.mjs"), "./MR.json": () => import("./MR-BoFyF5R-.mjs"), "./MT.json": () => import("./MT-C_-lQGuI.mjs"), "./MU.json": () => import("./MU-_tM1ai_B.mjs"), "./MX.json": () => import("./MX-eayygS1f.mjs"), "./MY.json": () => import("./MY-CsKpuB-w.mjs"), "./NC.json": () => import("./NC-Bel2A-Fk.mjs"), "./NL.json": () => import("./NL-C3LxWTQ7.mjs"), "./NO.json": () => import("./NO-CjZgx8a-.mjs"), "./NZ.json": () => import("./NZ-CG-hMfLg.mjs"), "./PE.json": () => import("./PE-DvMRqGF_.mjs"), "./PF.json": () => import("./PF-f7fSMI_4.mjs"), "./PH.json": () => import("./PH-CjFT8xMY.mjs"), "./PK.json": () => import("./PK-wMg8N3zK.mjs"), "./PL.json": () => import("./PL-WpWUBPgN.mjs"), "./PM.json": () => import("./PM-D4sBI2Px.mjs"), "./PR.json": () => import("./PR-BJ09dEXF.mjs"), "./PS.json": () => import("./PS-CWFZXVi8.mjs"), "./PT.json": () => import("./PT-BarBZmwW.mjs"), "./QA.json": () => import("./QA-CtUmYTKA.mjs"), "./RE.json": () => import("./RE-DfaVzCe-.mjs"), "./RO.json": () => import("./RO-DmWLrUu-.mjs"), "./RS.json": () => import("./RS-DilO913f.mjs"), "./RU.json": () => import("./RU-B83Fu7c3.mjs"), "./SA.json": () => import("./SA-BpimyQxp.mjs"), "./SE.json": () => import("./SE-BXNcwTPQ.mjs"), "./SG.json": () => import("./SG-Uyk6Nl41.mjs"), "./SI.json": () => import("./SI-B5ALffDQ.mjs"), "./SJ.json": () => import("./SJ-BrJofAMz.mjs"), "./SK.json": () => import("./SK-DOE_fS4w.mjs"), "./SM.json": () => import("./SM-BBQZf4DZ.mjs"), "./TF.json": () => import("./TF-BDwH1us-.mjs"), "./TH.json": () => import("./TH-BxFJXEcZ.mjs"), "./TL.json": () => import("./TL-BzbQs-FD.mjs"), "./TN.json": () => import("./TN-Dc91A3rb.mjs"), "./TR.json": () => import("./TR-BBxkpnZQ.mjs"), "./TT.json": () => import("./TT-D-FKOmmE.mjs"), "./TW.json": () => import("./TW-r3G_Qs5B.mjs"), "./UA.json": () => import("./UA-vpfj8SEN.mjs"), "./US.json": () => import("./US-CFOdL8kt.mjs"), "./UY.json": () => import("./UY-CUwq2MHm.mjs"), "./VA.json": () => import("./VA-DlPtJwY9.mjs"), "./VG.json": () => import("./VG-yM0HOg57.mjs"), "./VI.json": () => import("./VI-I7ADXxNd.mjs"), "./VN.json": () => import("./VN-0gy1H7YD.mjs"), "./WF.json": () => import("./WF-BlzFGDgv.mjs"), "./YT.json": () => import("./YT-17mSpzMD.mjs"), "./ZA.json": () => import("./ZA-BcxFTdWL.mjs") });
29451
29674
  const getAccountFormatsForCountry = async (country2) => {
29452
29675
  const importForCountry = accountFormatsImports[`./${country2}.json`];
29453
29676
  if (!importForCountry) {
@@ -29528,6 +29751,7 @@ function PayoutDetailsDropinComponent({
29528
29751
  handleCreateTransferInstrument,
29529
29752
  handleGetBankVerificationVendors,
29530
29753
  legalEntityResponse,
29754
+ associatedLegalArrangement,
29531
29755
  trackingConfig,
29532
29756
  accountHolder: accountHolder2,
29533
29757
  problems: propProblems,
@@ -29593,6 +29817,13 @@ function PayoutDetailsDropinComponent({
29593
29817
  }
29594
29818
  };
29595
29819
  const documentUtils = documentApiUtils(handleCreateDocument, handleGetDocument, handleUpdateDocument);
29820
+ const {
29821
+ state: {
29822
+ currentState
29823
+ }
29824
+ } = useStateContext();
29825
+ const formValidity = currentState.validityByForm;
29826
+ const bankAccountCountry2 = ((_c = (_b = currentState == null ? void 0 : currentState.data) == null ? void 0 : _b.payoutVerificationMethod) == null ? void 0 : _c.bankCountry) ?? defaultPayoutCountry;
29596
29827
  const [hideDropinLayout, setHideDropinLayout] = useState(false);
29597
29828
  const [submitButtonLabel, setSubmitButtonLabel] = useState("submit");
29598
29829
  const [skipSubmit, setSkipSubmit] = useState(false);
@@ -29600,9 +29831,9 @@ function PayoutDetailsDropinComponent({
29600
29831
  const [hideBackButton, setHideBackButton] = useState(false);
29601
29832
  const [loadingStatus, setLoadingStatus] = useState("success");
29602
29833
  const [data, setData] = useState(prefilledData);
29603
- const [problems, setProblems] = useState(propProblems || ((transferInstrument == null ? void 0 : transferInstrument.id) ? (_c = (_b = getCapabilityProblems(legalEntityResponse)) == null ? void 0 : _b.BankAccount) == null ? void 0 : _c[transferInstrument.id] : void 0));
29834
+ const [problems, setProblems] = useState(propProblems || ((transferInstrument == null ? void 0 : transferInstrument.id) ? (_e = (_d = getCapabilityProblems(legalEntityResponse, bankAccountCountry2)) == null ? void 0 : _d.BankAccount) == null ? void 0 : _e[transferInstrument.id] : void 0));
29604
29835
  const [accountDetailsFromInput, setAccountDetailsFromInput] = useState(prefilledData.payoutAccountDetails);
29605
- const existingBankAccountFormat = transferInstrument ? ((_d = existingPayoutDetails == null ? void 0 : existingPayoutDetails.payoutAccountDetails) == null ? void 0 : _d.iban) ? "iban" : "local" : void 0;
29836
+ const existingBankAccountFormat = transferInstrument ? ((_f = existingPayoutDetails == null ? void 0 : existingPayoutDetails.payoutAccountDetails) == null ? void 0 : _f.iban) ? "iban" : "local" : void 0;
29606
29837
  const baseTrackingPayload = getBaseTrackingPayload({
29607
29838
  trackingConfig,
29608
29839
  task: taskType
@@ -29616,13 +29847,6 @@ function PayoutDetailsDropinComponent({
29616
29847
  }
29617
29848
  });
29618
29849
  }, []);
29619
- const {
29620
- state: {
29621
- currentState
29622
- }
29623
- } = useStateContext();
29624
- const formValidity = currentState.validityByForm;
29625
- const bankAccountCountry2 = ((_f = (_e = currentState == null ? void 0 : currentState.data) == null ? void 0 : _e.payoutVerificationMethod) == null ? void 0 : _f.bankCountry) ?? defaultPayoutCountry;
29626
29850
  useEffect(() => {
29627
29851
  var _a2, _b2;
29628
29852
  setData({
@@ -29813,9 +30037,9 @@ function PayoutDetailsDropinComponent({
29813
30037
  }
29814
30038
  };
29815
30039
  const isDocumentsRequired2 = (forms22) => forms22.some((form) => form.formId === payoutDetailsSteps.payoutAccountDocuments.formId);
29816
- const formatFileSummaryData2 = (documents22) => {
30040
+ const formatFileSummaryData2 = (bankDocuments) => {
29817
30041
  var _a2;
29818
- const bankStatementDocument2 = (_a2 = documents22 == null ? void 0 : documents22.bankStatementDocument) == null ? void 0 : _a2[0];
30042
+ const bankStatementDocument2 = (_a2 = bankDocuments == null ? void 0 : bankDocuments.bankStatementDocument) == null ? void 0 : _a2[0];
29819
30043
  return {
29820
30044
  ...bankStatementDocument2 && {
29821
30045
  fileName: bankStatementDocument2.name
@@ -29918,6 +30142,7 @@ function PayoutDetailsDropinComponent({
29918
30142
  setSkipSubmit,
29919
30143
  onChange,
29920
30144
  legalEntityResponse,
30145
+ associatedLegalArrangement,
29921
30146
  handleGetBankVerificationVendors: getBankVerificationVendorsHandler,
29922
30147
  instantVerificationEnabled,
29923
30148
  refreshLegalEntity,
@@ -29929,7 +30154,6 @@ function PayoutDetailsDropinComponent({
29929
30154
  })
29930
30155
  });
29931
30156
  }
29932
- const ContractViewer$1 = "";
29933
30157
  function ContractViewer({
29934
30158
  contract,
29935
30159
  className,
@@ -31755,6 +31979,12 @@ function DropinComposerComponent({
31755
31979
  const [taskHistory, setTaskHistory] = useState([initialTask]);
31756
31980
  const [rootLegalEntity, setRootLegalEntity] = useState(legalEntityResponse);
31757
31981
  const [associatedLegalEntity, setAssociatedLegalEntity] = useState(null);
31982
+ const {
31983
+ associatedLegalArrangement
31984
+ } = useAssociatedLegalArrangement({
31985
+ rootLegalEntity,
31986
+ getLegalEntity: args == null ? void 0 : args.handleGetLegalEntity
31987
+ });
31758
31988
  const [associatedLegalEntityParent, setAssociatedLegalEntityParent] = useState(null);
31759
31989
  const [legalEntityType, setLegalEntityType] = useState(null);
31760
31990
  const [solePropietor, setSolePropietor] = useState(null);
@@ -31769,9 +31999,9 @@ function DropinComposerComponent({
31769
31999
  const [serviceAgreementTypes, setServiceAgreementTypes] = useState([]);
31770
32000
  const [serviceAgreementAcceptanceInfos, setServiceAgreementAcceptanceInfos] = useState([]);
31771
32001
  const [transferInstrument, setTransferInstrument] = useState(null);
31772
- const [capabilityProblems, setCapabilityProblems] = useState(getCapabilityProblems(legalEntityResponse, isExperimentEnabled));
31773
- const [bankVerificationVendors, setBankVerificationVendors] = useState();
31774
32002
  const rootLegalEntityCountry = rootLegalEntity.type === LegalEntityType.INDIVIDUAL ? (_a = rootLegalEntity.individual.residentialAddress) == null ? void 0 : _a.country : (_b = rootLegalEntity.organization.registeredAddress) == null ? void 0 : _b.country;
32003
+ const [capabilityProblems, setCapabilityProblems] = useState(getCapabilityProblems(legalEntityResponse, rootLegalEntityCountry, isExperimentEnabled));
32004
+ const [bankVerificationVendors, setBankVerificationVendors] = useState();
31775
32005
  const hasTrust = accountHolder2 === "aTrust" || isPartOfTrustFromLegalEntity(legalEntityResponse);
31776
32006
  const reviewRequired = (rootLegalEntity == null ? void 0 : rootLegalEntity.id) && ((_d = (_c = capabilityProblems == null ? void 0 : capabilityProblems.LegalEntity) == null ? void 0 : _c[rootLegalEntity.id]) == null ? void 0 : _d.isReviewRequired);
31777
32007
  const additionalSalesChannels = useSalesChannelsSettings();
@@ -31878,7 +32108,7 @@ function DropinComposerComponent({
31878
32108
  try {
31879
32109
  const response = await (args == null ? void 0 : args.handleGetLegalEntity(rootLegalEntity.id));
31880
32110
  setRootLegalEntity(response);
31881
- setCapabilityProblems(getCapabilityProblems(response));
32111
+ setCapabilityProblems(getCapabilityProblems(response, rootLegalEntityCountry, isExperimentEnabled));
31882
32112
  return response;
31883
32113
  } catch (e) {
31884
32114
  logger$a.warn(i18n.get("failedToFetchLegalEntityDetails"));
@@ -32290,7 +32520,11 @@ function DropinComposerComponent({
32290
32520
  },
32291
32521
  taskHistory,
32292
32522
  setTaskHistory,
32293
- onNavigateTo
32523
+ onNavigateTo,
32524
+ trackingConfig: {
32525
+ topLevelLegalEntity: legalEntityResponse
32526
+ },
32527
+ eventEmitter
32294
32528
  })
32295
32529
  });
32296
32530
  case TaskTypes.INTRODUCTION:
@@ -32306,6 +32540,9 @@ function DropinComposerComponent({
32306
32540
  return jsx(AccountSetupRejected, {});
32307
32541
  case TaskTypes.TASKS_OVERVIEW:
32308
32542
  return jsx(TaskListComponent, {
32543
+ trackingConfig: {
32544
+ topLevelLegalEntity: legalEntityResponse
32545
+ },
32309
32546
  onNavigateToTask: navigateTo,
32310
32547
  tasks,
32311
32548
  legalEntityResponse: rootLegalEntity,
@@ -32523,6 +32760,7 @@ function DropinComposerComponent({
32523
32760
  transferInstrument,
32524
32761
  setTransferInstrument,
32525
32762
  legalEntityResponse: rootLegalEntity,
32763
+ associatedLegalArrangement,
32526
32764
  refreshLegalEntity,
32527
32765
  accountHolder: getPayoutAccountHolderName(rootLegalEntity, i18n),
32528
32766
  capabilities: Object.keys((legalEntityResponse == null ? void 0 : legalEntityResponse.capabilities) ?? {}),
@@ -32933,7 +33171,7 @@ const generateOnboardingLink = async (context, config) => {
32933
33171
  loadingContext,
32934
33172
  errorLevel: "warn",
32935
33173
  errorMessage: `Fetching onboarding link was not successful`,
32936
- path: `${legalEntityId}/onboardingStatus/redirectLink`,
33174
+ path: `${legalEntityId}/onboardingStatus`,
32937
33175
  authentication: "jwt",
32938
33176
  headers: {
32939
33177
  "Content-Type": "application/json"
@@ -33196,6 +33434,12 @@ function CreateTransferInstrumentComponent({
33196
33434
  const [legalEntity, setLegalEntity] = useState();
33197
33435
  const [transferInstrument, setTransferInstrument] = useState();
33198
33436
  const [loadingStatus, setLoadingStatus] = useState("success");
33437
+ const {
33438
+ associatedLegalArrangement
33439
+ } = useAssociatedLegalArrangement({
33440
+ rootLegalEntity: legalEntity,
33441
+ getLegalEntity: getLegalEntity2
33442
+ });
33199
33443
  const fetchLegalEntity = useCallback(async () => {
33200
33444
  const le = await getLegalEntity2(legalEntityId);
33201
33445
  setLegalEntity(le);
@@ -33220,6 +33464,7 @@ function CreateTransferInstrumentComponent({
33220
33464
  transferInstrument,
33221
33465
  setTransferInstrument,
33222
33466
  legalEntityResponse: legalEntity,
33467
+ associatedLegalArrangement,
33223
33468
  handleGetBankVerificationVendors: (country2) => getBankVerificationVendor2(country2, openBankingPartnerConfigId),
33224
33469
  handleGetDocument: getDocument2,
33225
33470
  handleCreateDocument: createDocument2,
@@ -33235,7 +33480,6 @@ function CreateTransferInstrumentComponent({
33235
33480
  taskType: TaskTypes.PAYOUT
33236
33481
  });
33237
33482
  }
33238
- const ManageTransferInstrumentComponent$1 = "";
33239
33483
  const DEFAULT_POLLING_INTERVAL = 3e3;
33240
33484
  const DEFAULT_POLLING_INTERVAL_RETRY_COUNT = 3;
33241
33485
  function useInterval(callback, initialDelay = DEFAULT_POLLING_INTERVAL) {
@@ -33292,9 +33536,6 @@ function AddTransferInstrument({
33292
33536
  })]
33293
33537
  });
33294
33538
  }
33295
- const ManageTransferInstrumentOverview$1 = "";
33296
- const ManageTransferInstrumentOverviewItem$1 = "";
33297
- const ManageTransferInstrumentOverviewItemSummary$1 = "";
33298
33539
  function ManageTransferInstrumentOverviewItemSummary({
33299
33540
  transferInstrument,
33300
33541
  accountHolderName,
@@ -33305,7 +33546,7 @@ function ManageTransferInstrumentOverviewItemSummary({
33305
33546
  i18n
33306
33547
  } = useI18nContext();
33307
33548
  const datasetUtils = datasetUtilities(i18n.locale);
33308
- const problems = transferInstrument ? getCapabilityProblems(transferInstrument) : {};
33549
+ const problems = transferInstrument ? getCapabilityProblems(transferInstrument, transferInstrument.bankAccount.countryCode) : {};
33309
33550
  const formatDataForSummary2 = (data) => {
33310
33551
  var _a2, _b2;
33311
33552
  const summaryData = cloneObject(data);
@@ -33541,7 +33782,6 @@ function ManageTransferInstrumentComponent({
33541
33782
  children: render2()
33542
33783
  });
33543
33784
  }
33544
- const OnboardingRedirectComponent$1 = "";
33545
33785
  var OnboardingStatus = /* @__PURE__ */ ((OnboardingStatus2) => {
33546
33786
  OnboardingStatus2["INCOMPLETE"] = "INCOMPLETE";
33547
33787
  OnboardingStatus2["PROCESSING"] = "PROCESSING";
@@ -33574,10 +33814,16 @@ const contentMap = {
33574
33814
  function getContentByStatus(status) {
33575
33815
  return contentMap[status];
33576
33816
  }
33817
+ var OnboardingUrlTarget = /* @__PURE__ */ ((OnboardingUrlTarget2) => {
33818
+ OnboardingUrlTarget2["BLANK"] = "_blank";
33819
+ OnboardingUrlTarget2["SELF"] = "_self";
33820
+ return OnboardingUrlTarget2;
33821
+ })(OnboardingUrlTarget || {});
33577
33822
  const logger$5 = createLogger("OnboardingRedirectComponent");
33578
33823
  function OnboardingRedirectComponent({
33579
33824
  legalEntityId,
33580
- redirectUrl,
33825
+ returnUrl,
33826
+ redirectTarget,
33581
33827
  onStatusChange,
33582
33828
  onError,
33583
33829
  onRedirect,
@@ -33653,13 +33899,13 @@ function OnboardingRedirectComponent({
33653
33899
  setLinkLoadingStatus("loading");
33654
33900
  const config = {
33655
33901
  locale: i18n.locale,
33656
- redirectUrl
33902
+ returnUrl
33657
33903
  };
33658
33904
  try {
33659
33905
  const {
33660
- link
33906
+ redirectUrl
33661
33907
  } = await generateOnboardingLink2(config);
33662
- openLink(link, config);
33908
+ openUrl(redirectUrl, config);
33663
33909
  } catch (error) {
33664
33910
  handleError({
33665
33911
  trKey: "onboardingRedirectLinkError",
@@ -33669,14 +33915,15 @@ function OnboardingRedirectComponent({
33669
33915
  setLinkLoadingStatus("success");
33670
33916
  }
33671
33917
  };
33672
- const openLink = (link, config) => {
33673
- const newTab = window.open("", "_blank");
33918
+ const openUrl = (url, config) => {
33919
+ const target = redirectTarget && Object.values(OnboardingUrlTarget).includes(redirectTarget) ? redirectTarget : OnboardingUrlTarget.BLANK;
33920
+ const newTab = window.open("", target);
33674
33921
  if (newTab) {
33675
- newTab.location.href = link;
33922
+ newTab.location.href = url;
33676
33923
  if (typeof onRedirect === "function") {
33677
33924
  onRedirect({
33678
33925
  ...config,
33679
- redirectTo: link
33926
+ onboardingLink: url
33680
33927
  });
33681
33928
  }
33682
33929
  } else {
@@ -34222,21 +34469,33 @@ const I18nProvider = ({
34222
34469
  });
34223
34470
  };
34224
34471
  const settingsDefaults = {
34472
+ acceptedCountries: void 0,
34473
+ allowBankAccountFormatSelection: false,
34474
+ allowIntraRegionCrossBorderPayout: false,
34225
34475
  changeLegalEntityType: true,
34226
34476
  editPrefilledCountry: true,
34477
+ requirePciSignEcomMoto: false,
34478
+ requirePciSignEcommerce: false,
34479
+ requirePciSignPos: false,
34480
+ requirePciSignPosMoto: false,
34227
34481
  hideOnboardingIntroductionIndividual: true,
34228
34482
  hideOnboardingIntroductionOrganization: true,
34229
34483
  hideOnboardingIntroductionTrust: true,
34230
34484
  hideOnboardingIntroductionSoleProprietor: true,
34231
34485
  viewOnboardingGuidance: false
34232
34486
  };
34233
- function SettingsContextProvider({
34487
+ function SettingsProvider({
34234
34488
  children,
34235
34489
  settings
34236
34490
  }) {
34491
+ const mergedSettings = {
34492
+ ...settingsDefaults,
34493
+ ...settings
34494
+ };
34237
34495
  const contextValue = useMemo(() => ({
34238
34496
  // settings is being returned from the /onboardingLinks call, if a new setting is needed it should be added both in BE and in the SettingName type
34239
- isSettingEnabled: (settingName) => (settings == null ? void 0 : settings[settingName]) ?? settingsDefaults[settingName] ?? false
34497
+ isSettingEnabled: (settingName) => mergedSettings[settingName],
34498
+ getSetting: (settingName) => mergedSettings[settingName]
34240
34499
  }), [settings]);
34241
34500
  return jsx(SettingsContext.Provider, {
34242
34501
  value: contextValue,
@@ -34538,21 +34797,21 @@ class UIElement extends BaseElement {
34538
34797
  this.render = () => {
34539
34798
  var _a;
34540
34799
  const Component = this.props.component;
34541
- return jsx(AuthProvider, {
34542
- sdkToken: this.props.sdkToken,
34543
- getSdkToken: this.props.getSdkToken,
34544
- clientKey: this.props.clientKey,
34545
- loadingContext: this.props.loadingContext,
34546
- children: jsx(ConfigurationApiProvider, {
34547
- rootLegalEntityId: getRootLegalEntityId(this.props.componentProps),
34548
- children: jsx(CoreProvider, {
34549
- contextCountry: this.props.contextCountry,
34550
- enableNewEntryFlowExperiment: (_a = this.props.experiments) == null ? void 0 : _a.EnableNewEntryFlow,
34551
- children: jsx(I18nProvider, {
34552
- locale: this.props.locale,
34553
- customTranslations: this.props.customTranslations,
34554
- children: jsx(SettingsContextProvider, {
34555
- settings: this.props.settings,
34800
+ return jsx(SettingsProvider, {
34801
+ settings: this.props.settings,
34802
+ children: jsx(AuthProvider, {
34803
+ sdkToken: this.props.sdkToken,
34804
+ getSdkToken: this.props.getSdkToken,
34805
+ clientKey: this.props.clientKey,
34806
+ loadingContext: this.props.loadingContext,
34807
+ children: jsx(ConfigurationApiProvider, {
34808
+ rootLegalEntityId: getRootLegalEntityId(this.props.componentProps),
34809
+ children: jsx(CoreProvider, {
34810
+ contextCountry: this.props.contextCountry,
34811
+ enableNewEntryFlowExperiment: (_a = this.props.experiments) == null ? void 0 : _a.EnableNewEntryFlow,
34812
+ children: jsx(I18nProvider, {
34813
+ locale: this.props.locale,
34814
+ customTranslations: this.props.customTranslations,
34556
34815
  children: jsx(ExperimentsContextProvider, {
34557
34816
  experiments: this.props.experiments,
34558
34817
  children: jsx("div", {
@@ -34620,6 +34879,28 @@ const trustPropSchema = {
34620
34879
  }
34621
34880
  }
34622
34881
  };
34882
+ const soleProprietorPropSchema = {
34883
+ type: "object",
34884
+ propertiesSchema: {
34885
+ name: {
34886
+ type: "string",
34887
+ required: true
34888
+ },
34889
+ countryOfGoverningLaw: {
34890
+ type: "string",
34891
+ required: true
34892
+ },
34893
+ registeredAddress: {
34894
+ type: "object",
34895
+ propertiesSchema: {
34896
+ country: {
34897
+ type: "string",
34898
+ required: true
34899
+ }
34900
+ }
34901
+ }
34902
+ }
34903
+ };
34623
34904
  const individualPropSchema = {
34624
34905
  type: "object",
34625
34906
  propertiesSchema: {
@@ -35028,6 +35309,28 @@ const payoutAccountSchema = {
35028
35309
  individual: individualPropSchema,
35029
35310
  organization: organizationPropSchema
35030
35311
  }
35312
+ },
35313
+ associatedLegalArrangement: {
35314
+ type: "object",
35315
+ propertiesSchema: {
35316
+ id: {
35317
+ type: "string",
35318
+ required: true
35319
+ },
35320
+ type: {
35321
+ type: "string",
35322
+ exactValue: [LegalEntityType.SOLE_PROPRIETORSHIP, LegalEntityType.TRUST],
35323
+ required: true
35324
+ },
35325
+ documentDetails: {
35326
+ type: "array"
35327
+ },
35328
+ capabilities: {
35329
+ type: "object"
35330
+ },
35331
+ soleProprietorship: soleProprietorPropSchema,
35332
+ trust: trustPropSchema
35333
+ }
35031
35334
  }
35032
35335
  };
35033
35336
  const taskListSchema = {
@@ -35188,6 +35491,9 @@ const onboardingRedirectComponentSchema = {
35188
35491
  type: "string",
35189
35492
  required: true
35190
35493
  },
35494
+ redirectTarget: {
35495
+ type: "string"
35496
+ },
35191
35497
  onStatusChange: {
35192
35498
  type: "function"
35193
35499
  },
@@ -35197,7 +35503,7 @@ const onboardingRedirectComponentSchema = {
35197
35503
  onRedirect: {
35198
35504
  type: "function"
35199
35505
  },
35200
- redirectUrl: {
35506
+ returnUrl: {
35201
35507
  type: "string"
35202
35508
  }
35203
35509
  };