@adyen/kyc-components 4.0.0 → 4.2.0-beta.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 (1393) hide show
  1. package/README.md +43 -30
  2. package/dist/4-people-BtDi7O9A.js +24 -0
  3. package/dist/AcceptTermsOfServiceComponent-DBf9qvsO.js +650 -0
  4. package/dist/Accordion-CqtzWVjL.js +88 -0
  5. package/dist/AccountSetupRejected-B_bbYtM2.js +26 -0
  6. package/dist/ActionBar-Dnv6j3rc.js +31 -0
  7. package/dist/Address-CbJvGOYV.js +1112 -0
  8. package/dist/Alert-uX8GYjqW.js +169 -0
  9. package/dist/Avatar-Cj2W0_1v.js +60 -0
  10. package/dist/BG-HKzabLqZ.js +27 -0
  11. package/dist/BusinessFinancingComponent-Bx2K8iN3.js +55 -0
  12. package/dist/BusinessFinancingDropin-CKsHfJ2J.js +2235 -0
  13. package/dist/BusinessFinancingPage-DmnaOPvo.js +43 -0
  14. package/dist/BusinessTypeSelectionPage-Bz0czSjO.js +440 -0
  15. package/dist/Card-OQuFzmxm.js +90 -0
  16. package/dist/Checkbox-BSxszx-9.js +74 -0
  17. package/dist/Confirm-DviRmz4e.js +64 -0
  18. package/dist/ConstitutionalDocument-hcS_-kxn.js +2361 -0
  19. package/dist/ContactDetails-BHn4lDFA.js +396 -0
  20. package/dist/ContextGuidance-BgMTeWIT.js +34 -0
  21. package/dist/ContractViewer-DcQHIGMU.js +935 -0
  22. package/dist/CountryField-D-WDIPSz.js +66 -0
  23. package/dist/CreateIndividualComponent-BJnGALzE.js +65 -0
  24. package/dist/CreateTransferInstrumentComponent-BudZmP_i.js +56 -0
  25. package/dist/Currency-BmTfhWzY.js +238 -0
  26. package/dist/CustomerSupport-C5g_pNY4.js +156 -0
  27. package/dist/DebugModal-C46w3DN5.js +416 -0
  28. package/dist/DecisionMakerDetailsPage-CMDK81px.js +104 -0
  29. package/dist/DecisionMakers-BbHkdcWY.js +858 -0
  30. package/dist/Dropzone-DMzbyRRZ.js +224 -0
  31. package/dist/EmbeddedStatus-Cto-qd3u.js +97 -0
  32. package/dist/EndStateLayout-Ds-6EhEu.js +71 -0
  33. package/dist/EntityAssociation-CAyTgh0S.js +178 -0
  34. package/dist/EntityGuidanceStatus-BdYW3yoc.js +106 -0
  35. package/dist/ErrorPanel-Doqj6bY8.js +194 -0
  36. package/dist/Field-CpaVW2RZ.js +141 -0
  37. package/dist/FormNavigation-D8lokOpO.js +144 -0
  38. package/dist/FormWrapper--B4boODe.js +135 -0
  39. package/dist/Header-hKHJmYRN.js +83 -0
  40. package/dist/Image-DIxxTupT.js +27 -0
  41. package/dist/Individual.rules-BAgQIMbK.js +383 -0
  42. package/dist/IndividualDropin-CpAEsMsL.js +5168 -0
  43. package/dist/InputDate-CoQAEyvT.js +43 -0
  44. package/dist/InputGroup-WBfGDV5F.js +32 -0
  45. package/dist/InputText-DmFCHVKa.js +134 -0
  46. package/dist/Introduction-DlnfG2qx.js +256 -0
  47. package/dist/JpAddress-D9wzTLlZ.js +329 -0
  48. package/dist/LandingLayout-pnTFiHf3.js +60 -0
  49. package/dist/LegalCompanyNameField-BOTkQIk6.js +138 -0
  50. package/dist/LegalRepresentativeDetailsPage-CnYE0t7-.js +55 -0
  51. package/dist/Link-B1s8_T7-.js +35 -0
  52. package/dist/List-BAzyC6sw.js +83 -0
  53. package/dist/ListItem-Coa9aGdN.js +69 -0
  54. package/dist/LoaderWrapper-YTarCjI9.js +42 -0
  55. package/dist/ManageIndividualComponent-D_RLxMfQ.js +46 -0
  56. package/dist/ManageTermsOfServiceComponent-VzhHb2cE.js +52 -0
  57. package/dist/ManageTransferInstrumentComponent-DevLP2pk.js +292 -0
  58. package/dist/MaskedInput-DEaltj9a.js +811 -0
  59. package/dist/MaybeModal-BcNIbjko.js +36 -0
  60. package/dist/Modal-sn2wYRN6.js +147 -0
  61. package/dist/Name-0TfRqG2t.js +81 -0
  62. package/dist/OnboardingDropinComponent-xFXjVEe0.js +2672 -0
  63. package/dist/PayoutDetailsDropin-popMzwBb.js +4972 -0
  64. package/dist/ProgressBar-B7gTQncy.js +47 -0
  65. package/dist/Radio-BMtxBpnn.js +39 -0
  66. package/dist/RadioGroup-B7fMJqmd.js +100 -0
  67. package/dist/RadioGroupCard-BqnCzi0b.js +152 -0
  68. package/dist/Review-DiV6r3gZ.js +84 -0
  69. package/dist/RootBusinessDetailsPage-BfQ4Pwdu.js +50 -0
  70. package/dist/RootBusinessLinesPage-CiZs8smP.js +1553 -0
  71. package/dist/RootIndividualDetailsPage-C92QtbjO.js +62 -0
  72. package/dist/Select-Cb77B0ji.js +868 -0
  73. package/dist/SignPCIComponent-B83OWndG.js +307 -0
  74. package/dist/SingpassSelection-Cc-ulD5h.js +132 -0
  75. package/dist/SoleProprietorshipPage-BYZkXtGh.js +50 -0
  76. package/dist/SourceOfFundsPage-DorVNEQ9.js +2162 -0
  77. package/dist/Spacer-BK3jDget.js +18 -0
  78. package/dist/StepProgressIndicator-DJ9FpFXO.js +78 -0
  79. package/dist/StoreProvider-qjyWZhxu.js +4845 -0
  80. package/dist/StructuredList-BNLhk_zV.js +61 -0
  81. package/dist/Summary-Bgq_Kcjg.js +220 -0
  82. package/dist/TaskVerificationStatus-DOZKjK09.js +129 -0
  83. package/dist/TaxInformationField-Dxx36AGr.js +3735 -0
  84. package/dist/TaxReportingDropin-tQf3UTtj.js +503 -0
  85. package/dist/TextArea-B4QNgWAM.js +103 -0
  86. package/dist/TileGroup-Dwrh9ZxO.js +203 -0
  87. package/dist/TrustDetailsPage-CKFlO2Ug.js +2187 -0
  88. package/dist/TrustMemberCompanyPage-BeeQ4TlK.js +68 -0
  89. package/dist/TrustMemberIndividualPage-cPDpa-cf.js +64 -0
  90. package/dist/TrustMemberRoleAndTypePage-C_isMpuS.js +1081 -0
  91. package/dist/TrustMembersOverview-CixBpWbT.js +439 -0
  92. package/dist/UnincorporatedPartnershipIndividualPage-BvVu1mfm.js +63 -0
  93. package/dist/UnincorporatedPartnershipMemberCompanyPage-HFF2AWev.js +71 -0
  94. package/dist/UnincorporatedPartnershipMemberRoleAndTypePage-DWRiDapM.js +292 -0
  95. package/dist/UnincorporatedPartnershipMembersOverview-BgxWBXQP.js +173 -0
  96. package/dist/VerificationErrorAlert-DjNgDy5_.js +60 -0
  97. package/dist/ViewVerificationStatusComponent-BZWz8bMd.js +181 -0
  98. package/dist/accountHolderUtils-dRujT8-D.js +66 -0
  99. package/dist/adyen-business-financing.js +13 -5
  100. package/dist/adyen-individual-configuration.js +8 -4
  101. package/dist/adyen-individual-status.js +5 -4
  102. package/dist/adyen-invited-decision-maker.js +87 -0
  103. package/dist/adyen-kyc-components.js +23 -21
  104. package/dist/adyen-onboarding.js +8 -4
  105. package/dist/adyen-terms-of-service-management.js +8 -4
  106. package/dist/adyen-terms-of-service-status.js +5 -4
  107. package/dist/adyen-transfer-instrument-configuration.js +8 -4
  108. package/dist/adyen-transfer-instrument-management.js +5 -4
  109. package/dist/adyen-verification-status.js +8 -4
  110. package/dist/arrow-right-BoqwUH_d.js +14 -0
  111. package/dist/bafinUtils-CyvEB6AP.js +80 -0
  112. package/dist/bag-BXVWLrwo.js +14 -0
  113. package/dist/bank-1GvaHPAZ.js +14 -0
  114. package/dist/bg-BG-6XzbmxcW.js +13 -0
  115. package/dist/bg-BG-C6kad3Qr.js +61 -0
  116. package/dist/bg-BG-CEipapl4.js +63 -0
  117. package/dist/bg-BG-CFuVZnaC.js +13 -0
  118. package/dist/bg-BG-DAqp35Dx.js +13 -0
  119. package/dist/bg-BG-DMNRRZZE.js +75 -0
  120. package/dist/bg-BG-DyX-yYYI.js +13 -0
  121. package/dist/bg-BG-K7feXvEc.js +38 -0
  122. package/dist/bg-BG-zZhDshGi.js +65 -0
  123. package/dist/bin-Ba-3ll8T.js +18 -0
  124. package/dist/business-lines-BAqTbnBw.js +135 -0
  125. package/dist/capital-9TKHySO7.js +17 -0
  126. package/dist/cash-stack-DwYu4xNy.js +22 -0
  127. package/dist/certificate-N2YFedpI.js +17 -0
  128. package/dist/checkmark-D9dGhGpG.js +14 -0
  129. package/dist/checkmark-circle-CFWClLQ6.js +20 -0
  130. package/dist/checkmark-circle-fill-DEB-tuGl.js +17 -0
  131. package/dist/checkmark-small-D3VNx2lo.js +14 -0
  132. package/dist/chevron-down-C7SUSYfl.js +14 -0
  133. package/dist/chevron-left-BXmd-S46.js +14 -0
  134. package/dist/chevron-right-jE6RwM2B.js +14 -0
  135. package/dist/chevron-up-BdfNcqzq.js +14 -0
  136. package/dist/circle-BJPTMCWB.js +17 -0
  137. package/dist/circle-small-filled-BuO8Vg8j.js +14 -0
  138. package/dist/clock-DAzaBRWk.js +20 -0
  139. package/dist/coins-DYdzG5e_.js +17 -0
  140. package/dist/commonValidators-C9eSN1bv.js +24 -0
  141. package/dist/company-types-value-D_mKv5PT.js +23 -0
  142. package/dist/contract-BfJb1t6M.js +14 -0
  143. package/dist/cross-CDS_eot4.js +14 -0
  144. package/dist/cross-circle-fill-C-EJ57Yn.js +17 -0
  145. package/dist/cross-circle-fill-small-DkPjsuBH.js +14 -0
  146. package/dist/cs-CZ-BD5bYeuJ.js +13 -0
  147. package/dist/cs-CZ-BHbWTH_v.js +63 -0
  148. package/dist/cs-CZ-C6vEQ8P9.js +13 -0
  149. package/dist/cs-CZ-CYQO0o5V.js +38 -0
  150. package/dist/cs-CZ-CYsR__kj.js +13 -0
  151. package/dist/cs-CZ-C_GFp3nV.js +61 -0
  152. package/dist/cs-CZ-Ck22NTT9.js +65 -0
  153. package/dist/cs-CZ-DXSMRqPu.js +75 -0
  154. package/dist/cs-CZ-Ke47w0bj.js +13 -0
  155. package/dist/currency-CrdnaaDu.js +35 -0
  156. package/dist/da-DK-B3Pg-MWO.js +13 -0
  157. package/dist/da-DK-C60mLiV1.js +61 -0
  158. package/dist/da-DK-CGWvmdkq.js +38 -0
  159. package/dist/da-DK-Cd5IQPv3.js +75 -0
  160. package/dist/da-DK-Cx4-hLO1.js +13 -0
  161. package/dist/da-DK-DQ4ZYSea.js +65 -0
  162. package/dist/da-DK-DzcTI92X.js +13 -0
  163. package/dist/da-DK-h8DYQ_Iq.js +13 -0
  164. package/dist/da-DK-vcVNQJbX.js +63 -0
  165. package/dist/datasetUtil-BHQp0-xL.js +58 -0
  166. package/dist/de-DE-C9NH2zMh.js +75 -0
  167. package/dist/de-DE-CL8D8vKZ.js +13 -0
  168. package/dist/de-DE-CWEW2yqg.js +63 -0
  169. package/dist/de-DE-CkbOZ6S_.js +65 -0
  170. package/dist/de-DE-Cvz1TGdB.js +61 -0
  171. package/dist/de-DE-DHDJhahG.js +38 -0
  172. package/dist/de-DE-LQE_LFFL.js +13 -0
  173. package/dist/de-DE-S6qDey1L.js +13 -0
  174. package/dist/de-DE-dPfrbCii.js +13 -0
  175. package/dist/debouncedInputEvent-Cv2S512Y.js +46 -0
  176. package/dist/decision-makers-group-DrvpnEqj.js +1944 -0
  177. package/dist/digital-wallet-Bx5YM1LY.js +46 -0
  178. package/dist/document-1-qlSTF558.js +14 -0
  179. package/dist/document-blurred-BiWap0xs.js +37 -0
  180. package/dist/document-cut-off-aQezqOif.js +32 -0
  181. package/dist/document-expired-BhBXaWWQ.js +38 -0
  182. package/dist/document-front-DYuhZGeQ.js +30 -0
  183. package/dist/document-person-CDbnTOdV.js +20 -0
  184. package/dist/download-BZQB1WkZ.js +17 -0
  185. package/dist/dropinUtils-CAGEedke.js +200 -0
  186. package/dist/edit-1-DAqtnOIx.js +14 -0
  187. package/dist/el-GR-B78b9rSH.js +63 -0
  188. package/dist/el-GR-DGbzdIL0.js +13 -0
  189. package/dist/el-GR-DHNlnOwf.js +38 -0
  190. package/dist/el-GR-DSlgFwLb.js +61 -0
  191. package/dist/el-GR-DTHQslLc.js +75 -0
  192. package/dist/el-GR-Dazirlmt.js +13 -0
  193. package/dist/el-GR-DoS_Va-n.js +13 -0
  194. package/dist/el-GR-DudORw4U.js +65 -0
  195. package/dist/el-GR-Dvv3-Qib.js +13 -0
  196. package/dist/en-US-AgtwE4Fl.js +63 -0
  197. package/dist/en-US-BSQXKu6d.js +54 -0
  198. package/dist/en-US-CjjPhkB5.js +65 -0
  199. package/dist/en-US-D1sB335h.js +61 -0
  200. package/dist/en-US-DLY20x1O.js +13 -0
  201. package/dist/en-US-DoiQhi0j.js +38 -0
  202. package/dist/en-US-G607HIyo.js +75 -0
  203. package/dist/en-US-cVpRgdC8.js +13 -0
  204. package/dist/es-ES--IvNed_Q.js +13 -0
  205. package/dist/es-ES-BAolMrZ0.js +65 -0
  206. package/dist/es-ES-BYl5-PFR.js +13 -0
  207. package/dist/es-ES-CDgjGql5.js +63 -0
  208. package/dist/es-ES-CxnsKEh4.js +38 -0
  209. package/dist/es-ES-DK-7qtDf.js +75 -0
  210. package/dist/es-ES-DdGmXdxO.js +13 -0
  211. package/dist/es-ES-Dj5-YMmZ.js +61 -0
  212. package/dist/es-ES-Vn4AcK9-.js +13 -0
  213. package/dist/et-EE-4fHYOoff.js +13 -0
  214. package/dist/et-EE-BOIrYrz9.js +65 -0
  215. package/dist/et-EE-BQixWUEV.js +38 -0
  216. package/dist/et-EE-BeZJ4Ub1.js +13 -0
  217. package/dist/et-EE-Bij5j-z5.js +61 -0
  218. package/dist/et-EE-CsTXSlnY.js +13 -0
  219. package/dist/et-EE-D0PMC4ie.js +63 -0
  220. package/dist/et-EE-D5SNtVsM.js +13 -0
  221. package/dist/et-EE-DNC4hcxm.js +75 -0
  222. package/dist/external-link-Cg6pJaSJ.js +14 -0
  223. package/dist/fi-FI-57-xkioo.js +38 -0
  224. package/dist/fi-FI-B2xHiSHi.js +61 -0
  225. package/dist/fi-FI-BJLU1JHw.js +75 -0
  226. package/dist/fi-FI-BUixKfXH.js +13 -0
  227. package/dist/fi-FI-CIYa9SyS.js +13 -0
  228. package/dist/fi-FI-CWIaV6Iz.js +13 -0
  229. package/dist/fi-FI-CsZlDJFb.js +63 -0
  230. package/dist/fi-FI-D8WrLxxq.js +65 -0
  231. package/dist/fi-FI-DFxljML-.js +13 -0
  232. package/dist/fieldConfigurations-BUT9DTUH.js +21 -0
  233. package/dist/filterProblemsByTaskForms-Cz7iQtms.js +30 -0
  234. package/dist/form-rules-DhbF2mY4.js +13 -0
  235. package/dist/formUtils-BYIcPMjp.js +107 -0
  236. package/dist/fr-FR-B2je0smB.js +75 -0
  237. package/dist/fr-FR-BM-qNLci.js +13 -0
  238. package/dist/fr-FR-Beljeilc.js +65 -0
  239. package/dist/fr-FR-BxiX8Zfi.js +38 -0
  240. package/dist/fr-FR-CCb4Oux7.js +13 -0
  241. package/dist/fr-FR-CNQtWSXx.js +61 -0
  242. package/dist/fr-FR-DPehHVb6.js +13 -0
  243. package/dist/fr-FR-VoxPkXSc.js +63 -0
  244. package/dist/fr-FR-l5z31r7i.js +13 -0
  245. package/dist/funds-in-CInoUdmG.js +21 -0
  246. package/dist/getName-BIUEu4TI.js +41 -0
  247. package/dist/getProblemsForEntity-BFrbrf8n.js +24 -0
  248. package/dist/getProps-Cc3J2-z9.js +148 -0
  249. package/dist/getTrustedFields-C5-mXl-l.js +64 -0
  250. package/dist/gift-omNInZeB.js +14 -0
  251. package/dist/graph-DunG_uu1.js +21 -0
  252. package/dist/graph-up-BZze4i6m.js +20 -0
  253. package/dist/headquarter-BhpSibFO.js +21 -0
  254. package/dist/hotel-Cp7VgGCJ.js +22 -0
  255. package/dist/house-BhyBQdR3.js +21 -0
  256. package/dist/hr-HR-B6U5Rzzw.js +61 -0
  257. package/dist/hr-HR-BAI0N9bo.js +13 -0
  258. package/dist/hr-HR-BF74vdPD.js +13 -0
  259. package/dist/hr-HR-Bjx-KdVs.js +13 -0
  260. package/dist/hr-HR-BtowKWUi.js +13 -0
  261. package/dist/hr-HR-BynZTNSB.js +38 -0
  262. package/dist/hr-HR-C0NLgF1r.js +75 -0
  263. package/dist/hr-HR-CbdP2tk-.js +63 -0
  264. package/dist/hr-HR-lIHN6Yl2.js +65 -0
  265. package/dist/hu-HU-B-lUkFnQ.js +13 -0
  266. package/dist/hu-HU-BLLoj5CX.js +61 -0
  267. package/dist/hu-HU-BpNDP1I8.js +13 -0
  268. package/dist/hu-HU-BtRIDozk.js +38 -0
  269. package/dist/hu-HU-CWdwNCev.js +65 -0
  270. package/dist/hu-HU-DU-5ujQK.js +75 -0
  271. package/dist/hu-HU-DYhMVR_c.js +13 -0
  272. package/dist/hu-HU-MHIPehPS.js +13 -0
  273. package/dist/hu-HU-pFpTvMiD.js +63 -0
  274. package/dist/id-blurred-B5lHEP8M.js +59 -0
  275. package/dist/id-cut-off-Ba1FRzKO.js +55 -0
  276. package/dist/id-front-CpNWN6nG.js +52 -0
  277. package/dist/id-glare-DgCQON8k.js +49 -0
  278. package/dist/iframeWidget-7rZG5Ja-.js +234 -0
  279. package/dist/image-CmB0ioUM.js +17 -0
  280. package/dist/info-Bb_-xIEK.js +21 -0
  281. package/dist/info-filled-CK8LB339.js +17 -0
  282. package/dist/instant-verification-UrnuHTYn.js +40 -0
  283. package/dist/isEmpty-DhGVlmpA.js +23 -0
  284. package/dist/isNewEntity-7Vw_eQBr.js +13 -0
  285. package/dist/it-IT-5a7NHVFo.js +65 -0
  286. package/dist/it-IT-BAvmkEF8.js +13 -0
  287. package/dist/it-IT-BRO0Hf5X.js +13 -0
  288. package/dist/it-IT-Cr20JO4o.js +61 -0
  289. package/dist/it-IT-D63gRTDc.js +13 -0
  290. package/dist/it-IT-DOBp2-MP.js +13 -0
  291. package/dist/it-IT-DZjw9LNC.js +63 -0
  292. package/dist/it-IT-Dhwa9Ecj.js +75 -0
  293. package/dist/it-IT-masgjk9F.js +38 -0
  294. package/dist/ja-JP-B3Y0VVpN.js +152 -0
  295. package/dist/ja-JP-BZb5ndp9.js +75 -0
  296. package/dist/ja-JP-BeeuQ_LL.js +61 -0
  297. package/dist/ja-JP-BqluCflj.js +63 -0
  298. package/dist/ja-JP-CaUe8KW7.js +27 -0
  299. package/dist/ja-JP-DL0IjTzn.js +13 -0
  300. package/dist/ja-JP-DSvZhFNY.js +65 -0
  301. package/dist/ja-JP-GX3l4yqn.js +125 -0
  302. package/dist/ja-JP-g6VOUGXZ.js +136 -0
  303. package/dist/ja-JP-vv3-YsHU.js +38 -0
  304. package/dist/japanSupportUtils-vwyJ0OrD.js +16 -0
  305. package/dist/jpAddressSchema-DEOyz9Yo.js +26 -0
  306. package/dist/localizeDateString-BjYXf_CF.js +27 -0
  307. package/dist/location-itJfxrDQ.js +17 -0
  308. package/dist/lt-LT-0WbfHH_o.js +61 -0
  309. package/dist/lt-LT-2BMif2Bk.js +38 -0
  310. package/dist/lt-LT-BX8dOAzK.js +13 -0
  311. package/dist/lt-LT-C8n1GZoU.js +75 -0
  312. package/dist/lt-LT-CXw4ywLM.js +63 -0
  313. package/dist/lt-LT-CgalYpUh.js +65 -0
  314. package/dist/lt-LT-DDs3ngzd.js +13 -0
  315. package/dist/lt-LT-DpszrZ9m.js +13 -0
  316. package/dist/lt-LT-WRulV980.js +13 -0
  317. package/dist/lv-LV-B3IqVQos.js +13 -0
  318. package/dist/lv-LV-BZN4-Xat.js +75 -0
  319. package/dist/lv-LV-BuuUUumH.js +61 -0
  320. package/dist/lv-LV-C9Dhkruv.js +13 -0
  321. package/dist/lv-LV-CHdEDRVO.js +38 -0
  322. package/dist/lv-LV-CmB2-IO5.js +13 -0
  323. package/dist/lv-LV-DYqBaW2-.js +63 -0
  324. package/dist/lv-LV-aAd9SEqx.js +65 -0
  325. package/dist/lv-LV-dA8yYdKe.js +13 -0
  326. package/dist/mail-VHTlAusn.js +14 -0
  327. package/dist/manual-verification-BO8zgAYT.js +41 -0
  328. package/dist/mapExistingFile-1MUQJf2c.js +230 -0
  329. package/dist/mapJpAddressSchemaToAddressLocalizations-BCWDaJEu.js +162 -0
  330. package/dist/mapLegalEntityToIndividualSchema-D7Eku9KI.js +206 -0
  331. package/dist/mapTransferInstrumentToPayoutAccount-BYNYjRzc.js +34 -0
  332. package/dist/minus-circle-filled-ZhtJ0GD3.js +17 -0
  333. package/dist/nl-NL-B0fvINJj.js +75 -0
  334. package/dist/nl-NL-CmURERx_.js +65 -0
  335. package/dist/nl-NL-CnvvqAEg.js +13 -0
  336. package/dist/nl-NL-D1b5RUJ0.js +38 -0
  337. package/dist/nl-NL-DV4NqPVW.js +13 -0
  338. package/dist/nl-NL-KQ6bciOb.js +13 -0
  339. package/dist/nl-NL-KsfqCp2v.js +61 -0
  340. package/dist/nl-NL-SjOGmGk5.js +13 -0
  341. package/dist/nl-NL-lcNM54vV.js +63 -0
  342. package/dist/no-NO-B9618F4_.js +13 -0
  343. package/dist/no-NO-BAWVf0GX.js +13 -0
  344. package/dist/no-NO-BdG6WnpB.js +61 -0
  345. package/dist/no-NO-CIKbQbKT.js +13 -0
  346. package/dist/no-NO-CTrVITNu.js +63 -0
  347. package/dist/no-NO-Dkh4SWbB.js +38 -0
  348. package/dist/no-NO-Ds3VioxT.js +13 -0
  349. package/dist/no-NO-Jw7Gae-a.js +75 -0
  350. package/dist/no-NO-qyqWODMp.js +65 -0
  351. package/dist/onfido-logo-BSkKPH10.js +14 -0
  352. package/dist/options-horizontal-GuXvLvV3.js +18 -0
  353. package/dist/partner-QD27Vy4w.js +18 -0
  354. package/dist/passport-blurred-CVG493IJ.js +59 -0
  355. package/dist/passport-cut-off-COzA_TmB.js +56 -0
  356. package/dist/passport-front-WJleLixT.js +52 -0
  357. package/dist/passport-front-green-CZVkCa1n.js +232 -0
  358. package/dist/passport-glare-BP5WnJZj.js +50 -0
  359. package/dist/patternValidators-Ddoxs0Q5.js +83 -0
  360. package/dist/pay-by-link-plane-BpY8Q6-B.js +22 -0
  361. package/dist/payout-DtB68BcZ.js +20 -0
  362. package/dist/payout-verification-instant-BzpfOQLD.js +41 -0
  363. package/dist/payout-verification-manual-gNEoeZkV.js +90 -0
  364. package/dist/person-IVZG3t3_.js +17 -0
  365. package/dist/pl-PL-BgbxWHGE.js +13 -0
  366. package/dist/pl-PL-BkGihn5Q.js +38 -0
  367. package/dist/pl-PL-Bmaq3IC3.js +75 -0
  368. package/dist/pl-PL-CErRPlR2.js +63 -0
  369. package/dist/pl-PL-CTOkaDMG.js +13 -0
  370. package/dist/pl-PL-DEMxxz7h.js +13 -0
  371. package/dist/pl-PL-DW9eaUml.js +61 -0
  372. package/dist/pl-PL-DqzUSnFK.js +13 -0
  373. package/dist/pl-PL-q9azN24o.js +65 -0
  374. package/dist/plaid-logo-FsZ7kfL-.js +14 -0
  375. package/dist/plus-DiALAL8-.js +14 -0
  376. package/dist/plus-circle-filled-BzHtTqEN.js +17 -0
  377. package/dist/process-field-configurations-BgkGx8kj.js +324 -0
  378. package/dist/pt-BR-BRdIEO2O.js +38 -0
  379. package/dist/pt-BR-BaTE6BB_.js +75 -0
  380. package/dist/pt-BR-BdfWE-a1.js +61 -0
  381. package/dist/pt-BR-BfDe_8iW.js +13 -0
  382. package/dist/pt-BR-BxoOF8jB.js +65 -0
  383. package/dist/pt-BR-CLUsrQAl.js +13 -0
  384. package/dist/pt-BR-Ct4s4jXV.js +13 -0
  385. package/dist/pt-BR-DA44Wgbt.js +63 -0
  386. package/dist/pt-BR-zuqB_CBf.js +13 -0
  387. package/dist/pt-PT-BLRgiqFj.js +13 -0
  388. package/dist/pt-PT-BfL7qUzo.js +38 -0
  389. package/dist/pt-PT-CFY1O_K0.js +13 -0
  390. package/dist/pt-PT-DBEsmXQX.js +13 -0
  391. package/dist/pt-PT-F1qPZJ2c.js +13 -0
  392. package/dist/pt-PT-PIiikho9.js +63 -0
  393. package/dist/pt-PT-c0ap84_F.js +75 -0
  394. package/dist/pt-PT-ej54BPbB.js +61 -0
  395. package/dist/pt-PT-pIChDwiI.js +65 -0
  396. package/dist/recurring-DKNs9K3x.js +17 -0
  397. package/dist/reporting-D5ABpLO_.js +16 -0
  398. package/dist/resolveEnvironment-BOoObZUD.js +84 -0
  399. package/dist/revenue-accelerate-D7Sp0V4a.js +17 -0
  400. package/dist/review-D4TUjcWF.js +17 -0
  401. package/dist/ro-RO-0vx6ZLWV.js +13 -0
  402. package/dist/ro-RO-1ZFmLikG.js +61 -0
  403. package/dist/ro-RO-7CJ4F5iB.js +13 -0
  404. package/dist/ro-RO-BPOHV6Wp.js +75 -0
  405. package/dist/ro-RO-BeA_YyJ8.js +13 -0
  406. package/dist/ro-RO-Bv9hZxwD.js +63 -0
  407. package/dist/ro-RO-C00Ig8CL.js +13 -0
  408. package/dist/ro-RO-C2yBVFht.js +38 -0
  409. package/dist/ro-RO-DRsaNX9j.js +65 -0
  410. package/dist/roleMetadata-45H_XXPF.js +66 -0
  411. package/dist/save-BfqO2JBI.js +14 -0
  412. package/dist/search-Cmzbf5zI.js +17 -0
  413. package/dist/show-IdbU1C6P.js +17 -0
  414. package/dist/singpass-logo-wY4xsmTX.js +17 -0
  415. package/dist/singpass-verification-instant-JCqTr7Mv.js +40 -0
  416. package/dist/singpass-verification-manual-DQ7XW6R3.js +34 -0
  417. package/dist/sk-SK-3_SoEn6P.js +75 -0
  418. package/dist/sk-SK-7-enbO1N.js +65 -0
  419. package/dist/sk-SK-BbJWayDh.js +13 -0
  420. package/dist/sk-SK-C74EF23u.js +38 -0
  421. package/dist/sk-SK-ChVwlbp0.js +63 -0
  422. package/dist/sk-SK-Dm-pif_7.js +61 -0
  423. package/dist/sk-SK-DuLm2CVx.js +13 -0
  424. package/dist/sk-SK-DubwJifw.js +13 -0
  425. package/dist/sk-SK-Og9MJXpR.js +13 -0
  426. package/dist/sl-SI-59OQIZ3f.js +13 -0
  427. package/dist/sl-SI-BAIm-qBe.js +13 -0
  428. package/dist/sl-SI-CoI7iOco.js +13 -0
  429. package/dist/sl-SI-CvUzNn9Z.js +38 -0
  430. package/dist/sl-SI-DTvJT7fC.js +65 -0
  431. package/dist/sl-SI-DZHePXbK.js +63 -0
  432. package/dist/sl-SI-DbfswGh0.js +75 -0
  433. package/dist/sl-SI-HO7231cu.js +61 -0
  434. package/dist/sl-SI-hxwQIw_i.js +13 -0
  435. package/dist/solution-payments-DpyE_sdS.js +14 -0
  436. package/dist/store-Btc4GcmU.js +14 -0
  437. package/dist/style.css +2846 -2814
  438. package/dist/styles-CLV89_hH.js +2846 -2814
  439. package/dist/summaryItem-CAQCQSkt.js +18 -0
  440. package/dist/sv-SE-0PQ-U1u6.js +13 -0
  441. package/dist/sv-SE-BZNey_8S.js +13 -0
  442. package/dist/sv-SE-BcJ8p_Tx.js +61 -0
  443. package/dist/sv-SE-BsLkPEzn.js +38 -0
  444. package/dist/sv-SE-CQWBP7n1.js +13 -0
  445. package/dist/sv-SE-ChoPzG_G.js +13 -0
  446. package/dist/sv-SE-D_Efxy3s.js +75 -0
  447. package/dist/sv-SE-Dq56vGlB.js +63 -0
  448. package/dist/sv-SE-N-Hqwcjq.js +65 -0
  449. package/dist/tax-reporting-graph-hgoilCHZ.js +504 -0
  450. package/dist/terminal-1-D1pwXCoi.js +18 -0
  451. package/dist/tink-logo-DDyjz5eJ.js +17 -0
  452. package/dist/types/api/address/useAddressCleanse.d.ts +1 -1
  453. package/dist/types/api/address/useRetrieveAddress.d.ts +1 -1
  454. package/dist/types/api/address/useRetrieveFromPostcodeJp.d.ts +1 -1
  455. package/dist/types/api/address/useSearchAddress.d.ts +1 -2
  456. package/dist/types/api/businessLines/businessLines.types.d.ts +6 -1
  457. package/dist/types/api/businessLines/useBusinessLines.d.ts +3 -3
  458. package/dist/types/api/businessLines/useCreateBusinessLine.d.ts +2 -2
  459. package/dist/types/api/businessLines/useDeleteBusinessLine.d.ts +2 -2
  460. package/dist/types/api/businessLines/useUpdateBusinessLines.d.ts +2 -2
  461. package/dist/types/api/businessLines/useUpdateSourceOfFunds.d.ts +2 -2
  462. package/dist/types/api/check/useCheck.d.ts +1 -2
  463. package/dist/types/api/companyDataSet/companyDataset.types.d.ts +5 -0
  464. package/dist/types/api/companyDataSet/handleCompanyDataset.d.ts +6 -3
  465. package/dist/types/api/companyDataSet/useClearCompanyData.d.ts +2 -2
  466. package/dist/types/api/companySearch/companySearch.types.d.ts +8 -0
  467. package/dist/types/api/companySearch/useCompanySearch.d.ts +9 -4
  468. package/dist/types/api/companySelection/companySelection.types.d.ts +3 -3
  469. package/dist/types/api/companySelection/useCompanySelection.d.ts +2 -18
  470. package/dist/types/api/configurations/useScenarios.d.ts +3 -161
  471. package/dist/types/api/configurations/useSupportedCountries.d.ts +1 -1
  472. package/dist/types/api/configurations/useTaskTypes.d.ts +1 -1
  473. package/dist/types/api/configurations/useVersionConfiguration.d.ts +1 -1
  474. package/dist/types/api/createLegalEntity/useCreateLegalEntity.d.ts +2 -2
  475. package/dist/types/api/datasets/useLegalForms.d.ts +1 -1
  476. package/dist/types/api/datasets/useNaceCodes.d.ts +1 -1
  477. package/dist/types/api/datasets/useSourceOfFundsTypes.d.ts +1 -1
  478. package/dist/types/api/documentValidation/useDocumentValidate.d.ts +2 -4
  479. package/dist/types/api/documents/useCreateDocument.d.ts +2 -2
  480. package/dist/types/api/documents/useDeleteDocument.d.ts +2 -2
  481. package/dist/types/api/documents/useDocument.d.ts +2 -2
  482. package/dist/types/api/documents/useDocuments.d.ts +4 -0
  483. package/dist/types/api/documents/useUpdateDocument.d.ts +2 -2
  484. package/dist/types/api/entityVerifications/useVerifyIdNumber.d.ts +2 -2
  485. package/dist/types/api/idNowProvider/useIdNowProvider.d.ts +3 -4
  486. package/dist/types/api/idVerificationProviders/idVerificationStartCheck.d.ts +2 -2
  487. package/dist/types/api/idVerificationProviders/useExtractDocumentInformation.d.ts +2 -2
  488. package/dist/types/api/idVerificationProviders/useIdVerificationToken.d.ts +3 -3
  489. package/dist/types/api/industryCodes/useIndustryCodes.d.ts +1 -2
  490. package/dist/types/api/legalEntity/useConfirmReview.d.ts +2 -2
  491. package/dist/types/api/legalEntity/useLegalEntity.d.ts +8 -389
  492. package/dist/types/api/legalEntity/useUpdateLegalEntity.d.ts +5 -5
  493. package/dist/types/api/onboardingStatus/useGenerateOnboardingLink.d.ts +2 -2
  494. package/dist/types/api/onboardingStatus/useOnboardingStatus.d.ts +1 -1
  495. package/dist/types/api/openId/useOpenIdAuthorizationLink.d.ts +1 -2
  496. package/dist/types/api/pci/usePciQuestionnaireList.d.ts +1 -1
  497. package/dist/types/api/pci/usePciStatus.d.ts +1 -1
  498. package/dist/types/api/pci/usePciTemplate.d.ts +1 -1
  499. package/dist/types/api/pci/useSignPci.d.ts +2 -3
  500. package/dist/types/api/providersConfiguration/useProviderStatus.d.ts +1 -1
  501. package/dist/types/api/queryKeys.d.ts +4 -2
  502. package/dist/types/api/taskStatus/useTaskStatus.d.ts +2 -2
  503. package/dist/types/api/taxClassification/useTaxClassification.d.ts +1 -1
  504. package/dist/types/api/termsOfService/useAcceptTermsOfService.d.ts +2 -3
  505. package/dist/types/api/termsOfService/useAcceptedTermsOfService.d.ts +1 -7
  506. package/dist/types/api/termsOfService/useTermsOfService.d.ts +1 -1
  507. package/dist/types/api/termsOfService/useTermsOfServiceAcceptanceInfos.d.ts +1 -1
  508. package/dist/types/api/termsOfService/useTermsOfServiceStatus.d.ts +1 -1
  509. package/dist/types/api/tinVerification/useVerifyTin.d.ts +1 -1
  510. package/dist/types/api/transferInstruments/useBankVerificationProviders.d.ts +1 -1
  511. package/dist/types/api/transferInstruments/useCreateTrustedTransferInstrument.d.ts +1 -1
  512. package/dist/types/api/transferInstruments/useDeleteTransferInstrument.d.ts +1 -1
  513. package/dist/types/api/transferInstruments/useHandleBankVerificationError.d.ts +1 -1
  514. package/dist/types/api/transferInstruments/useTransferInstrument.d.ts +2 -2
  515. package/dist/types/api/transferInstruments/useTransferInstruments.d.ts +1 -1
  516. package/dist/types/api/transferInstruments/useUpdateTransferInstrument.d.ts +1 -1
  517. package/dist/types/api/transferInstruments/useUpdateTrustedTransferInstrument.d.ts +15 -0
  518. package/dist/types/api/types.d.ts +3 -2
  519. package/dist/types/api/uiAnalytics/useAnalyticsSession.d.ts +2 -2
  520. package/dist/types/api/uiAnalytics/usePushAnalyticEvent.d.ts +2 -2
  521. package/dist/types/api/validation/useValidateAccountIdentification.d.ts +2 -3
  522. package/dist/types/api/validation/useValidatePhoneNumber.d.ts +1 -1
  523. package/dist/types/components/Apps/tasks/TaskList/utils.d.ts +4 -0
  524. package/dist/types/components/BankAccount/forms/BankDocument/BankDocumentClassification.d.ts +1 -2
  525. package/dist/types/components/BankAccount/forms/BankDocument/types.d.ts +0 -1
  526. package/dist/types/components/BankAccount/forms/BankVerification/types.d.ts +1 -0
  527. package/dist/types/components/BankAccount/forms/BankVerification/verification/overlay/BankVerificationOverlay.d.ts +1 -1
  528. package/dist/types/components/BankAccount/forms/PayoutDetails/rules.d.ts +2 -2
  529. package/dist/types/components/BankAccount/forms/PayoutDetails/types.d.ts +0 -1
  530. package/dist/types/components/BankAccount/mapping/payoutKeyMappings.d.ts +439 -439
  531. package/dist/types/components/BankAccount/pages/PayoutDetailsPage.d.ts +3 -3
  532. package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/PayoutDetailsDropin.d.ts +1 -1
  533. package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/utils.d.ts +1 -1
  534. package/dist/types/components/BankAccount/utils/payoutAccountUtil.d.ts +1 -1
  535. package/dist/types/components/Business/forms/AdditionalInformation/AdditionalInformation.d.ts +1 -4
  536. package/dist/types/components/Business/forms/AdditionalInformation/VerifiedBusinessCard/VerifiedBusinessCard.d.ts +8 -0
  537. package/dist/types/components/Business/forms/AdditionalInformation/types.d.ts +4 -6
  538. package/dist/types/components/Business/forms/AdditionalInformation/utils.d.ts +2 -5
  539. package/dist/types/components/Business/forms/BasicInformation/BasicInformation.d.ts +1 -4
  540. package/dist/types/components/Business/forms/BasicInformation/types.d.ts +5 -18
  541. package/dist/types/components/Business/forms/BusinessDetails/form-ids.d.ts +2 -0
  542. package/dist/types/components/Business/forms/BusinessDetails/forms.d.ts +12 -46
  543. package/dist/types/components/Business/forms/BusinessDetails/types.d.ts +2 -22
  544. package/dist/types/components/Business/forms/BusinessSelection/BusinessInformationCard/BusinessInformationCard.d.ts +8 -9
  545. package/dist/types/components/Business/forms/BusinessSelection/BusinessSelection.d.ts +13 -3
  546. package/dist/types/components/Business/forms/BusinessSelection/types.d.ts +0 -11
  547. package/dist/types/components/Business/forms/CompanyStructure/CompanyStructure.d.ts +3 -4
  548. package/dist/types/components/Business/forms/CompanyStructure/types.d.ts +0 -6
  549. package/dist/types/components/Business/forms/FinancialInformation/formatFinancialInformationSummary.d.ts +4 -0
  550. package/dist/types/components/Business/forms/FinancialInformation/mapping/mapFinancialInformationToFinancialReport.d.ts +3 -0
  551. package/dist/types/components/Business/forms/FinancialInformation/mapping/mapFinancialReportsToFinancialInformation.d.ts +3 -0
  552. package/dist/types/components/Business/forms/ProofOfDirectorDocument/ProofOfDirectorDocument.d.ts +1 -1
  553. package/dist/types/components/Business/forms/ProofOfDirectorDocument/types.d.ts +0 -3
  554. package/dist/types/components/Business/forms/ProofOfOwnershipDocument/ProofOfOwnershipDocument.d.ts +1 -1
  555. package/dist/types/components/Business/forms/ProofOfOwnershipDocument/types.d.ts +0 -3
  556. package/dist/types/components/Business/forms/ProofOfSignatoryDocument/ProofOfSignatoryDocument.d.ts +1 -1
  557. package/dist/types/components/Business/forms/ProofOfSignatoryDocument/types.d.ts +0 -3
  558. package/dist/types/components/Business/forms/RegistrationDocument/RegistrationDocument.d.ts +1 -1
  559. package/dist/types/components/Business/forms/RegistrationDocument/types.d.ts +1 -3
  560. package/dist/types/components/Business/forms/TaxDocument/TaxDocument.d.ts +1 -1
  561. package/dist/types/components/Business/forms/TaxDocument/types.d.ts +1 -3
  562. package/dist/types/components/Business/forms/forms.types.d.ts +0 -3
  563. package/dist/types/components/Business/forms/rules.d.ts +10 -10
  564. package/dist/types/components/Business/mapping/businessDetails/businessBankAccountTaxIdUtils.d.ts +7 -0
  565. package/dist/types/components/Business/mapping/businessDetails/mapBusinessDetailsSchemaToLegalEntity.d.ts +4 -2
  566. package/dist/types/components/Business/mapping/businessDetails/mapLegalEntityToBusinessDetailsSchema.d.ts +8 -2
  567. package/dist/types/components/Business/pages/RootBusinessDetailsPage.d.ts +1 -2
  568. package/dist/types/components/Business/tasks/BusinessDetailsDropin/BusinessDetailsDropin.d.ts +3 -3
  569. package/dist/types/components/Business/tasks/BusinessDetailsDropin/businessDetailsStore.d.ts +0 -2
  570. package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +14 -6
  571. package/dist/types/components/Business/tasks/BusinessDetailsDropin/utils.d.ts +24 -9
  572. package/dist/types/components/Business/utils/applyVerifiedBusinessData.d.ts +1 -1
  573. package/dist/types/components/Business/utils/companyUtil.d.ts +0 -10
  574. package/dist/types/components/Business/utils/formatDataForSummary.d.ts +5 -0
  575. package/dist/types/components/Business/utils/submit.d.ts +2 -0
  576. package/dist/types/components/Business/utils/useBusinessDetailsData.d.ts +21 -0
  577. package/dist/types/components/BusinessLines/constants.d.ts +10 -0
  578. package/dist/types/components/BusinessLines/fields/Carousel/Carousel.d.ts +10 -10
  579. package/dist/types/components/BusinessLines/fields/SctaField/SctaField.d.ts +2 -0
  580. package/dist/types/components/BusinessLines/fields/SctaField/types.d.ts +6 -0
  581. package/dist/types/components/BusinessLines/fields/WebDataField/types.d.ts +1 -1
  582. package/dist/types/components/BusinessLines/forms/IndustryCodesForm/IndustryCodesForm.d.ts +1 -1
  583. package/dist/types/components/BusinessLines/forms/SctaForm/SctaForm.d.ts +2 -0
  584. package/dist/types/components/BusinessLines/forms/SctaForm/SctaInfoModal.d.ts +3 -0
  585. package/dist/types/components/BusinessLines/forms/SctaForm/types.d.ts +2 -0
  586. package/dist/types/components/BusinessLines/forms/rules.d.ts +2 -1
  587. package/dist/types/components/BusinessLines/pages/RootBusinessLinesPage.d.ts +1 -2
  588. package/dist/types/components/BusinessLines/tasks/BusinessLines/BusinessLineModal/BusinessLineModal.d.ts +2 -1
  589. package/dist/types/components/BusinessLines/tasks/BusinessLines/BusinessLinesDropin.d.ts +1 -1
  590. package/dist/types/components/BusinessLines/tasks/types.d.ts +4 -0
  591. package/dist/types/components/BusinessLines/tasks/utils.d.ts +26 -4
  592. package/dist/types/components/BusinessLines/tasks/validate.d.ts +2 -0
  593. package/dist/types/components/Contract/tasks/ServiceAgreementDropin/ServiceAgreementDropin.d.ts +1 -1
  594. package/dist/types/components/Contract/tasks/ServiceAgreementDropin/types.d.ts +3 -3
  595. package/dist/types/components/EFP/fields/LegalFormField/LegalFormField.d.ts +1 -1
  596. package/dist/types/components/EFP/fields/NaceCodeField/NaceCodeField.d.ts +1 -1
  597. package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +5812 -582
  598. package/dist/types/components/EFP/mapping/mapBusinessFinancingToLegalEntity.d.ts +3 -2
  599. package/dist/types/components/EFP/mapping/mapLegalEntityToBusinessFinancing.d.ts +1 -1
  600. package/dist/types/components/EFP/pages/BusinessFinancingPage.d.ts +1 -2
  601. package/dist/types/components/EFP/pages/SourceOfFundsPage.d.ts +1 -2
  602. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/AdditionalFieldsForBusinessFinancingSoleProprietor.d.ts +2 -0
  603. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingSoleProprietorPersonalInformation.d.ts +4 -0
  604. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/types.d.ts +28 -0
  605. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/utils.d.ts +15 -4
  606. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/validate.d.ts +10 -1
  607. package/dist/types/components/EFP/tasks/SourceOfFundsDropin/types.d.ts +20 -21
  608. package/dist/types/components/EFP/tasks/SourceOfFundsDropin/utils.d.ts +6 -4
  609. package/dist/types/components/EFP/tasks/TaxReportingDropin/utils.d.ts +1 -2
  610. package/dist/types/components/EmbeddedDropins/BusinessFinancingComponent/utils.d.ts +2 -1
  611. package/dist/types/components/EmbeddedDropins/CreateIndividualComponent/CreateIndividualComponent.d.ts +2 -2
  612. package/dist/types/components/EmbeddedDropins/InvitedDecisionMakerComponent/InvitedDecisionMakerComponent.d.ts +4 -0
  613. package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/DropinComposer.d.ts +1 -1
  614. package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/RouterDropinComposer.d.ts +4 -0
  615. package/dist/types/components/Individual/fields/DriversLicense/DriversLicense.types.d.ts +1 -1
  616. package/dist/types/components/Individual/fields/IdentityNumber/fieldConfig.d.ts +4 -3
  617. package/dist/types/components/Individual/forms/AdditionalPersonalDetails/AdditionalPersonalDetails.types.d.ts +29 -0
  618. package/dist/types/components/Individual/forms/AdditionalPersonalDetails/Identity/Identity.types.d.ts +13 -0
  619. package/dist/types/components/Individual/forms/AdditionalPersonalDetails/Identity/TypeOfIdentity/index.d.ts +11 -0
  620. package/dist/types/components/Individual/forms/AdditionalPersonalDetails/Identity/validate.d.ts +4 -0
  621. package/dist/types/components/Individual/forms/AdditionalPersonalDetails/validate.d.ts +22 -0
  622. package/dist/types/components/Individual/forms/BasicDetails/BasicDetails.types.d.ts +22 -0
  623. package/dist/types/components/Individual/forms/BasicDetails/validate.d.ts +8 -0
  624. package/dist/types/components/Individual/forms/DataConflictsModal/ConflictRow.d.ts +12 -0
  625. package/dist/types/components/Individual/forms/DataConflictsModal/DataConflictsModal.d.ts +24 -0
  626. package/dist/types/components/Individual/forms/IdDocumentUpload/types.d.ts +43 -0
  627. package/dist/types/components/Individual/forms/IdDocumentUpload/utils.d.ts +3 -0
  628. package/dist/types/components/Individual/forms/IdNowVerificationModal/isIdNowModalOpen.d.ts +18 -0
  629. package/dist/types/components/Individual/forms/IdVerificationMethod/IdVerificationMethod.types.d.ts +21 -0
  630. package/dist/types/components/Individual/forms/IdVerificationMethod/OnfidoVerificationModal/OnfidoVerificationModal.d.ts +7 -0
  631. package/dist/types/components/Individual/forms/IdVerificationMethod/UploadedDocument/UploadedDocument.d.ts +7 -0
  632. package/dist/types/components/Individual/forms/IdVerificationMethod/individualOnfidoConflictsSchema.d.ts +46 -0
  633. package/dist/types/components/Individual/forms/IdVerificationMethod/mapExtractionResultToSchema.d.ts +4 -0
  634. package/dist/types/components/Individual/forms/IdVerificationMethod/validateExtractionResult.d.ts +12 -0
  635. package/dist/types/components/Individual/forms/Individual.d.ts +56 -0
  636. package/dist/types/components/Individual/forms/Individual.rules.d.ts +45 -0
  637. package/dist/types/components/Individual/forms/Individual.types.d.ts +60 -0
  638. package/dist/types/components/Individual/forms/ProofOfRelationship/types.d.ts +14 -0
  639. package/dist/types/components/Individual/forms/ProofOfResidency/types.d.ts +39 -0
  640. package/dist/types/components/Individual/forms/SignatoryQuestionnaire/SignatoryQuestionnaire.types.d.ts +6 -0
  641. package/dist/types/components/Individual/forms/UboQuestionnaire/UboQuestionnaire.types.d.ts +13 -0
  642. package/dist/types/components/Individual/forms/UboQuestionnaire/UboQuestionnaireModalContent.d.ts +7 -0
  643. package/dist/types/components/Individual/forms/form-ids.d.ts +2 -0
  644. package/dist/types/components/Individual/helpers/bafinUtils.d.ts +3 -2
  645. package/dist/types/components/Individual/helpers/mandateIdVerificationForMotionCapture.d.ts +2 -3
  646. package/dist/types/components/Individual/helpers/roleUtils.d.ts +1 -1
  647. package/dist/types/components/Individual/mapping/adjustOnfidoIdentificationData.d.ts +1 -1
  648. package/dist/types/components/Individual/mapping/getOnfidoIdentityTypeToApiIdentityTypeMap.d.ts +1 -1
  649. package/dist/types/components/Individual/mapping/individualKeyMappings.d.ts +6 -12
  650. package/dist/types/components/Individual/mapping/mapApiDocumentToIndividualDocuments.d.ts +2 -2
  651. package/dist/types/components/Individual/mapping/mapIndividualDocumentToApiDocument.d.ts +2 -3
  652. package/dist/types/components/Individual/mapping/mapIndividualSchemaToLegalEntity.d.ts +5 -0
  653. package/dist/types/components/Individual/mapping/mapLegalEntityToIndividualSchema.d.ts +3 -0
  654. package/dist/types/components/Individual/pages/DecisionMakerDetailsPage.d.ts +6 -7
  655. package/dist/types/components/Individual/pages/LegalRepresentativeDetailsPage.d.ts +2 -2
  656. package/dist/types/components/Individual/pages/RootIndividualDetailsPage.d.ts +2 -2
  657. package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerDetails/utils.d.ts +2 -14
  658. package/dist/types/components/Individual/tasks/DecisionMakers/RemediationAlerts/remediation.config.d.ts +0 -2
  659. package/dist/types/components/Individual/tasks/DecisionMakers/types.d.ts +8 -0
  660. package/dist/types/components/Individual/tasks/DecisionMakers/utils.d.ts +1 -1
  661. package/dist/types/components/Individual/tasks/IndividualDropin/IndividualDropin.d.ts +2 -2
  662. package/dist/types/components/Individual/tasks/IndividualDropin/individualFormConfig.d.ts +3 -3
  663. package/dist/types/components/Shared/EntityAssociation/EntityAssociation.d.ts +0 -1
  664. package/dist/types/components/Shared/FormFlow/FormFlow.d.ts +1 -1
  665. package/dist/types/components/Shared/FormFlow/FormFlow.types.d.ts +2 -2
  666. package/dist/types/components/Shared/Introduction/copy.d.ts +3 -3
  667. package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/BusinessRegistrationNumberField.d.ts +1 -1
  668. package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/fieldConfig.d.ts +10 -0
  669. package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/types.d.ts +2 -1
  670. package/dist/types/components/Shared/fields/CountryField/types.d.ts +2 -1
  671. package/dist/types/components/Shared/fields/CountryOfGoverningLawField/CountryOfGoverningLawField.d.ts +1 -1
  672. package/dist/types/components/Shared/fields/CountryOfGoverningLawField/types.d.ts +1 -1
  673. package/dist/types/components/Shared/fields/Currency/Currency.d.ts +1 -1
  674. package/dist/types/components/Shared/fields/Currency/types.d.ts +1 -1
  675. package/dist/types/components/Shared/fields/DBANameField/DBANameField.d.ts +1 -1
  676. package/dist/types/components/Shared/fields/DBANameField/types.d.ts +1 -1
  677. package/dist/types/components/Shared/fields/DateOfIncorporationField/DateOfIncorporationField.d.ts +1 -1
  678. package/dist/types/components/Shared/fields/DateOfIncorporationField/types.d.ts +3 -1
  679. package/dist/types/components/Shared/fields/EInvoicingCodeField/EInvoicingCodeField.d.ts +1 -1
  680. package/dist/types/components/Shared/fields/EInvoicingCodeField/types.d.ts +1 -1
  681. package/dist/types/components/Shared/fields/IdFieldTypeSelector/countryIdNumberTypes.d.ts +117 -1
  682. package/dist/types/components/Shared/fields/IndustryCodeField/IndustryCodeField.d.ts +1 -1
  683. package/dist/types/components/Shared/fields/IndustryCodeField/types.d.ts +1 -1
  684. package/dist/types/components/Shared/fields/LegalCompanyNameField/fieldConfig.d.ts +12 -6
  685. package/dist/types/components/Shared/fields/LegalCompanyNameField/types.d.ts +3 -1
  686. package/dist/types/components/Shared/fields/LocalizedNameFields/types.d.ts +9 -0
  687. package/dist/types/components/Shared/fields/LocalizedNameFields/validate.d.ts +5 -0
  688. package/dist/types/components/Shared/fields/NumberOfEmployees/NumberOfEmployees.d.ts +1 -1
  689. package/dist/types/components/Shared/fields/NumberOfEmployees/types.d.ts +1 -1
  690. package/dist/types/components/Shared/fields/PhoneField/PhoneField.d.ts +1 -1
  691. package/dist/types/components/Shared/fields/PhoneField/fieldConfig.d.ts +5 -0
  692. package/dist/types/components/Shared/fields/PhoneField/types.d.ts +2 -1
  693. package/dist/types/components/Shared/fields/StateField/StateField.d.ts +1 -1
  694. package/dist/types/components/Shared/fields/StateField/fieldConfig.d.ts +8 -0
  695. package/dist/types/components/Shared/fields/StateField/types.d.ts +1 -1
  696. package/dist/types/components/Shared/fields/StockExchangeMICField/StockExchangeMICField.d.ts +1 -1
  697. package/dist/types/components/Shared/fields/StockExchangeMICField/types.d.ts +1 -1
  698. package/dist/types/components/Shared/fields/StockISINField/StockISINField.d.ts +1 -1
  699. package/dist/types/components/Shared/fields/StockISINField/types.d.ts +1 -1
  700. package/dist/types/components/Shared/fields/StockTickerSymbol/StockTickerSymbolField.d.ts +1 -1
  701. package/dist/types/components/Shared/fields/StockTickerSymbol/types.d.ts +1 -1
  702. package/dist/types/components/Shared/fields/TaxInformationField/TaxInformationField.d.ts +1 -1
  703. package/dist/types/components/Shared/fields/TaxInformationField/fieldConfig.d.ts +6 -0
  704. package/dist/types/components/Shared/fields/TaxInformationField/types.d.ts +2 -1
  705. package/dist/types/components/Shared/fields/VatNumberField/VatNumberField.d.ts +1 -1
  706. package/dist/types/components/Shared/fields/VatNumberField/types.d.ts +1 -1
  707. package/dist/types/components/Shared/forms/Address/Address.d.ts +1 -1
  708. package/dist/types/components/Shared/forms/Address/localized/jp/jpAddressSchema.d.ts +3 -1
  709. package/dist/types/components/Shared/forms/Address/types.d.ts +2 -2
  710. package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
  711. package/dist/types/components/Shared/forms/BusinessTypeSelection/utils.d.ts +1 -1
  712. package/dist/types/components/Trust/forms/Trust/rules.d.ts +5 -4
  713. package/dist/types/components/Trust/hooks/useTrustMemberNavigation.hook.d.ts +1 -1
  714. package/dist/types/components/Trust/pages/TrustDetailsPage.d.ts +1 -2
  715. package/dist/types/components/Trust/pages/TrustMemberCompanyPage.d.ts +3 -3
  716. package/dist/types/components/Trust/pages/TrustMemberIndividualPage.d.ts +5 -5
  717. package/dist/types/components/Trust/pages/TrustMemberRoleAndTypePage.d.ts +2 -2
  718. package/dist/types/components/Trust/tasks/RoleAndTypeDropin/formatRoleAndEntityTypeSummary.d.ts +1 -1
  719. package/dist/types/components/Trust/tasks/TrustDropin/TrustMultiform.d.ts +2 -1
  720. package/dist/types/components/Trust/tasks/TrustDropin/TrustMultiformDropin.d.ts +1 -1
  721. package/dist/types/components/Trust/tasks/TrustMembers/TrustMembersOverview.d.ts +1 -2
  722. package/dist/types/components/UnincorporatedPartnership/hooks/useUnincorporatedPartnershipNavigation.d.ts +1 -1
  723. package/dist/types/components/UnincorporatedPartnership/pages/UnincorporatedPartnershipIndividualPage.d.ts +5 -5
  724. package/dist/types/components/UnincorporatedPartnership/pages/UnincorporatedPartnershipMemberCompanyPage.d.ts +3 -3
  725. package/dist/types/components/UnincorporatedPartnership/pages/UnincorporatedPartnershipMemberRoleAndTypePage.d.ts +1 -1
  726. package/dist/types/components/ui/atoms/Card/Card.d.ts +19 -0
  727. package/dist/types/components/ui/atoms/Link/Link.types.d.ts +1 -1
  728. package/dist/types/components/ui/atoms/Loader/Loader.d.ts +11 -5
  729. package/dist/types/components/ui/atoms/Modal/MaybeModal.d.ts +1 -1
  730. package/dist/types/components/ui/atoms/MultiSelectList/MultiSelectList.d.ts +0 -1
  731. package/dist/types/components/ui/atoms/Svg/Svg.d.ts +0 -1
  732. package/dist/types/components/ui/atoms/Svg/svgs.d.ts +4 -0
  733. package/dist/types/components/ui/atoms/Tile/Tile.d.ts +2 -1
  734. package/dist/types/components/ui/molecules/EmbeddedStatus/statusToTag.d.ts +2 -2
  735. package/dist/types/components/ui/molecules/ErrorPanel/ErrorPanel.d.ts +0 -1
  736. package/dist/types/context/ExperimentContext/types.d.ts +28 -50
  737. package/dist/types/context/QueryContext/QueryClient.d.ts +1 -1
  738. package/dist/types/context/StateContext/types.d.ts +2 -3
  739. package/dist/types/core/models/api/individual.d.ts +3 -0
  740. package/dist/types/core/models/api/instant-id-verification.d.ts +1 -1
  741. package/dist/types/core/models/api/legal-arrangement.d.ts +3 -0
  742. package/dist/types/core/models/api/legal-entity-association.d.ts +1 -1
  743. package/dist/types/core/models/api/legal-entity.d.ts +1 -6
  744. package/dist/types/core/process-field-configurations.d.ts +0 -5
  745. package/dist/types/core/services/types.d.ts +1 -1
  746. package/dist/types/core/user-events.d.ts +4 -2
  747. package/dist/types/embeds/baseEmbedProps.d.ts +0 -21
  748. package/dist/types/embeds/business-financing/adyen-business-financing.d.ts +2 -1
  749. package/dist/types/embeds/business-financing/adyen-business-financing.types.d.ts +2 -0
  750. package/dist/types/embeds/individual-configuration/adyen-individual-configuration.d.ts +5 -1
  751. package/dist/types/embeds/individual-configuration/adyen-individual-configuration.types.d.ts +2 -2
  752. package/dist/types/embeds/invited-decision-maker/adyen-invited-decision-maker.d.ts +5 -0
  753. package/dist/types/embeds/invited-decision-maker/adyen-invited-decision-maker.types.d.ts +34 -0
  754. package/dist/types/embeds/onboarding/adyen-onboarding.d.ts +2 -1
  755. package/dist/types/embeds/terms-of-service-management/adyen-terms-of-service-management.d.ts +5 -1
  756. package/dist/types/embeds/transfer-instrument-configuration/adyen-transfer-instrument-configuration.d.ts +2 -1
  757. package/dist/types/embeds/verification-status/adyen-verification-status.d.ts +2 -1
  758. package/dist/types/hooks/useAssociatedLegalEntity.d.ts +1 -1
  759. package/dist/types/hooks/useForm/types.d.ts +0 -8
  760. package/dist/types/hooks/useLegalCompanyNameField/useLegalCompanyNameField.d.ts +4 -2
  761. package/dist/types/hooks/usePageLandedEvent.d.ts +7 -0
  762. package/dist/types/hooks/useUboQuestionnaire.d.ts +2 -2
  763. package/dist/types/language/types.d.ts +7 -2
  764. package/dist/types/language/utils.d.ts +1 -2
  765. package/dist/types/router/DefaultRouteRedirect.d.ts +8 -0
  766. package/dist/types/router/MemoryRouterContext.d.ts +9 -0
  767. package/dist/types/router/OnboardingRouter.d.ts +39 -0
  768. package/dist/types/router/SuspenseRoute.d.ts +7 -0
  769. package/dist/types/router/getDefaultTask.d.ts +16 -0
  770. package/dist/types/router/routeConfig.d.ts +68 -0
  771. package/dist/types/router/useCurrentTask.d.ts +5 -0
  772. package/dist/types/router/useNavigate.d.ts +7 -0
  773. package/dist/types/stores/formState.d.ts +2 -0
  774. package/dist/types/stores/globalStore/get-task-status.d.ts +6 -0
  775. package/dist/types/stores/globalStore/taskStatus.d.ts +5 -3
  776. package/dist/types/types/assert.d.ts +1 -0
  777. package/dist/types/types/datasets/currency.d.ts +0 -1
  778. package/dist/types/types/form.d.ts +0 -2
  779. package/dist/types/utils/addLinkedFields.d.ts +0 -2
  780. package/dist/types/utils/analytics/debouncedInputEvent.d.ts +1 -0
  781. package/dist/types/utils/analytics/getPrefilledDetails.d.ts +28 -0
  782. package/dist/types/utils/api/documentUtils.d.ts +6 -0
  783. package/dist/types/utils/api/processCapabilitites.d.ts +14 -2
  784. package/dist/types/utils/birthDateUtils.d.ts +0 -17
  785. package/dist/types/utils/customerSupportUtils.d.ts +3 -0
  786. package/dist/types/utils/entityAssociationUtil.d.ts +3 -4
  787. package/dist/types/utils/entityStatusUtil.d.ts +1 -1
  788. package/dist/types/utils/fieldConfigurations.d.ts +0 -2
  789. package/dist/types/utils/formUtils.d.ts +1 -6
  790. package/dist/types/utils/getDisplayErrorMessage.d.ts +1 -2
  791. package/dist/types/utils/getFieldsWithExistingData.d.ts +2 -3
  792. package/dist/types/utils/getName.d.ts +1 -1
  793. package/dist/types/utils/japanSupportUtils.d.ts +3 -0
  794. package/dist/types/utils/logger.d.ts +0 -1
  795. package/dist/types/utils/makeSelectItemForRole.d.ts +1 -1
  796. package/dist/types/utils/performance.d.ts +64 -0
  797. package/dist/types/utils/regex/patternValidators.d.ts +1 -1
  798. package/dist/types/utils/translation.d.ts +3 -2
  799. package/dist/types/utils/validatorUtils.d.ts +3 -1
  800. package/dist/types/utils/verification/helpers/verifyIdNumber.d.ts +3 -2
  801. package/dist/types-BW4HQI5X.js +142 -0
  802. package/dist/types-D7ibfssA.js +74 -0
  803. package/dist/types-DRjaiEYd.js +64 -0
  804. package/dist/types-DSsQZPmi.js +34 -0
  805. package/dist/unincorporated-partnership-MeN1dp53.js +97 -0
  806. package/dist/upload-BmUXjsaU.js +17 -0
  807. package/dist/us-check-C1rTBsCY.js +46 -0
  808. package/dist/us-check-account-number-9lI1dXNC.js +48 -0
  809. package/dist/us-check-routing-number-s_KaAGSM.js +49 -0
  810. package/dist/useAssociatedLegalEntity-jaSfQ9rQ.js +34 -0
  811. package/dist/useBusinessDetailsData-5O2km9MB.js +5310 -0
  812. package/dist/useBusinessLines-DuBQrvIQ.js +29 -0
  813. package/dist/useCanSeeIntroduction-Boj-VdF4.js +48 -0
  814. package/dist/useCreateLegalEntity-DQx1byaP.js +32 -0
  815. package/dist/useDataMissingRemediations-Drava4pQ.js +41 -0
  816. package/dist/useDataset-3t4wCptb.js +76 -0
  817. package/dist/useDeleteTransferInstrument-CUjrvIfw.js +32 -0
  818. package/dist/useForm-CsrT0zKF.js +582 -0
  819. package/dist/useFormContext-D1NuWw_2.js +201 -0
  820. package/dist/useGlobalData-vS5GxkpZ.js +68 -0
  821. package/dist/useId-BZ0PA7jP.js +24 -0
  822. package/dist/useMultiForm-82RYFvCF.js +873 -0
  823. package/dist/useNavigate-DLBqtyNN.js +265 -0
  824. package/dist/useOnboardingStatus-B3HSS36K.js +28 -0
  825. package/dist/usePciQuestionnaireList-B2425Wiw.js +29 -0
  826. package/dist/useSalesChannels-B9Z_g_9G.js +65 -0
  827. package/dist/useScenarios-DCRvLaxV.js +48 -0
  828. package/dist/useSetting-C108TWwa.js +19 -0
  829. package/dist/useTaskStatus-DjHWxlNL.js +51 -0
  830. package/dist/useTermsOfServiceStatus-BTLQKn3X.js +43 -0
  831. package/dist/useToastContext-CYdZ2BD2.js +49 -0
  832. package/dist/useTrustMembers-BvFhj1PW.js +163 -0
  833. package/dist/useUnincorporatedPartnershipMembers-wCGUg18Y.js +99 -0
  834. package/dist/useUpdateBusinessLines-DAHY8qXu.js +339 -0
  835. package/dist/useUpdateLegalEntity-B7VJAlhD.js +40 -0
  836. package/dist/utils-BCit-Kzj.js +58 -0
  837. package/dist/utils-BU2KHXr7.js +237 -0
  838. package/dist/utils-BiqRkf5f.js +159 -0
  839. package/dist/utils-C4cwFCf5.js +778 -0
  840. package/dist/utils-Cc8niKnm.js +29 -0
  841. package/dist/validate-BnkIeDb7.js +434 -0
  842. package/dist/validate-fYuz9-yq.js +108 -0
  843. package/dist/validationError-Bod1gd-k.js +86 -0
  844. package/dist/warning-circle-fill-DBvt921B.js +17 -0
  845. package/dist/warning-diamond-filled-Lb2od2ry.js +17 -0
  846. package/dist/webinar-m9nuFZBt.js +22 -0
  847. package/dist/yapily-logo-BduxhNRA.js +17 -0
  848. package/package.json +78 -57
  849. package/dist/4-people-BzyXLUF9.js +0 -24
  850. package/dist/AcceptTermsOfServiceComponent-CmHBNGjM.js +0 -659
  851. package/dist/Accordion-Cp_VkxR6.js +0 -88
  852. package/dist/AccountSetupRejected-CoxWTlar.js +0 -26
  853. package/dist/ActionBar-CxUKVmTE.js +0 -31
  854. package/dist/Address-Db6Q_KUo.js +0 -1348
  855. package/dist/Alert-DEiOX0nw.js +0 -159
  856. package/dist/Avatar-3K6S_tIS.js +0 -60
  857. package/dist/BG-DlvaKo4n.js +0 -27
  858. package/dist/BusinessDetailsMultiformDropin-CYoIN4Fa.js +0 -4220
  859. package/dist/BusinessFinancingComponent-DyvM-fsY.js +0 -54
  860. package/dist/BusinessFinancingDropin-BOvR4LwU.js +0 -1853
  861. package/dist/BusinessFinancingPage-8C0ztBfS.js +0 -43
  862. package/dist/BusinessTypeSelectionPage-DpZAsa8K.js +0 -427
  863. package/dist/Card-CdpPhK9y.js +0 -82
  864. package/dist/ConstitutionalDocument-NLs6ka9K.js +0 -143
  865. package/dist/ContractViewer-Byp71k2e.js +0 -935
  866. package/dist/CountryField-9w8wRZMW.js +0 -843
  867. package/dist/CreateIndividualComponent-zGcoEyq0.js +0 -71
  868. package/dist/CreateTransferInstrumentComponent-Ct_v-IyH.js +0 -63
  869. package/dist/Currency-53s7DEeh.js +0 -183
  870. package/dist/CustomerSupport-BRcUQ4fR.js +0 -153
  871. package/dist/DebugModal-CokbXGK9.js +0 -413
  872. package/dist/DecisionMakerDetailsPage-B5cLY8iP.js +0 -106
  873. package/dist/DecisionMakers-BQ24LfqB.js +0 -830
  874. package/dist/EmbeddedStatus-DB9B_u3L.js +0 -99
  875. package/dist/EndStateLayout-BWC5aqVS.js +0 -71
  876. package/dist/EntityAssociation-gzYdcHoL.js +0 -159
  877. package/dist/EntityGuidanceStatus-BKeZKnbP.js +0 -105
  878. package/dist/FormFlow-Cf3Ff2qw.js +0 -224
  879. package/dist/FormNavigation-CjgZbv9G.js +0 -144
  880. package/dist/FormWrapper-dbBZegkX.js +0 -135
  881. package/dist/IndividualOnfido-Cc7dydKq.js +0 -9594
  882. package/dist/IndividualOnfidoDropin-BpU2cL4E.js +0 -2497
  883. package/dist/InputText-Dsw9kiwL.js +0 -249
  884. package/dist/Introduction-C8mTk4l_.js +0 -300
  885. package/dist/JpAddress-R81eO-aY.js +0 -280
  886. package/dist/LegalRepresentativeDetailsPage-DIQX18v2.js +0 -60
  887. package/dist/ListItem-D3p6EgP_.js +0 -69
  888. package/dist/ManageIndividualComponent-CmM-vP9E.js +0 -46
  889. package/dist/ManageTermsOfServiceComponent-C3hXZJx5.js +0 -52
  890. package/dist/ManageTransferInstrumentComponent-co6LYrVY.js +0 -287
  891. package/dist/MaybeModal-BVQOzETz.js +0 -25
  892. package/dist/Modal-CloeVnNp.js +0 -149
  893. package/dist/OnboardingDropinComponent-CDAK4v1o.js +0 -7908
  894. package/dist/PayoutDetailsDropin-DCrlrNki.js +0 -4841
  895. package/dist/Review-Dqn49vJM.js +0 -83
  896. package/dist/RootBusinessDetailsPage-DSEq3TIn.js +0 -61
  897. package/dist/RootBusinessLinesPage-CbPhOber.js +0 -1118
  898. package/dist/RootIndividualDetailsPage-Bp_7gSIB.js +0 -71
  899. package/dist/SignPCIComponent-B6kYuqT_.js +0 -304
  900. package/dist/SingpassSelection-aDrNTYr3.js +0 -130
  901. package/dist/SoleProprietorshipPage-HnUsyjKp.js +0 -60
  902. package/dist/SourceOfFundsPage-BkMEIV_L.js +0 -2383
  903. package/dist/StepProgressIndicator-BgeMe93n.js +0 -78
  904. package/dist/StoreProvider-BFN15Go9.js +0 -7674
  905. package/dist/Summary-BkE_c8pU.js +0 -204
  906. package/dist/TaxReportingDropin-LG9zvOMN.js +0 -502
  907. package/dist/TrustDetailsPage-C8w8pEvB.js +0 -2149
  908. package/dist/TrustMemberCompanyPage-IDEwpLW3.js +0 -73
  909. package/dist/TrustMemberIndividualPage-rKB3iVFk.js +0 -66
  910. package/dist/TrustMemberRoleAndTypePage-CLtX8V0M.js +0 -985
  911. package/dist/TrustMembersOverview-Bs203hm0.js +0 -438
  912. package/dist/UnincorporatedPartnershipIndividualPage-CBTaUEld.js +0 -65
  913. package/dist/UnincorporatedPartnershipMemberCompanyPage-ZnLe9Uq3.js +0 -76
  914. package/dist/UnincorporatedPartnershipMemberRoleAndTypePage-BXImA2c_.js +0 -281
  915. package/dist/UnincorporatedPartnershipMembersOverview-c7k2JzcO.js +0 -172
  916. package/dist/VerificationErrorAlert-uubpHQGE.js +0 -79
  917. package/dist/ViewVerificationStatusComponent-DO9L2hEO.js +0 -180
  918. package/dist/arrow-right-KxA3SvQj.js +0 -14
  919. package/dist/bag-BPumznWh.js +0 -14
  920. package/dist/bank-D6FiNBhs.js +0 -14
  921. package/dist/bg-BG-B7Xs_t04.js +0 -13
  922. package/dist/bg-BG-CepHap8j.js +0 -68
  923. package/dist/bg-BG-D9J6LnkI.js +0 -57
  924. package/dist/bg-BG-DH45-0B-.js +0 -29
  925. package/dist/bg-BG-DRkMqyL8.js +0 -13
  926. package/dist/bg-BG-Dp4LxSP7.js +0 -37
  927. package/dist/bg-BG-DpIAKQve.js +0 -113
  928. package/dist/bg-BG-mLSjG76Q.js +0 -13
  929. package/dist/bg-BG-wVquMNtT.js +0 -55
  930. package/dist/bin-Bz6KOIeE.js +0 -18
  931. package/dist/business-lines-DboUCbXw.js +0 -135
  932. package/dist/capital-GVQ3svwN.js +0 -17
  933. package/dist/cash-stack-D9AoDDwt.js +0 -22
  934. package/dist/certificate-CdEWgHQf.js +0 -17
  935. package/dist/checkmark-Q7x6tGhy.js +0 -14
  936. package/dist/checkmark-circle-fill-CsvN5_PL.js +0 -17
  937. package/dist/checkmark-circle-x7dzbp3I.js +0 -20
  938. package/dist/checkmark-small-D35myntq.js +0 -14
  939. package/dist/chevron-down-C2iDorpW.js +0 -14
  940. package/dist/chevron-left-ztPO84q-.js +0 -14
  941. package/dist/chevron-right-C_JN0oDt.js +0 -14
  942. package/dist/chevron-up-CgG8n25g.js +0 -14
  943. package/dist/circle-Bt3Nlr3q.js +0 -17
  944. package/dist/circle-small-filled-YMzP6yQU.js +0 -14
  945. package/dist/clock-BZHremOA.js +0 -20
  946. package/dist/coins-fkAk6dCo.js +0 -17
  947. package/dist/contract-BTa4HltT.js +0 -14
  948. package/dist/cross-Cn09MtQ_.js +0 -14
  949. package/dist/cross-circle-fill-small-DCz52AuN.js +0 -14
  950. package/dist/cs-CZ--jOkoHVS.js +0 -55
  951. package/dist/cs-CZ-BDf9m4Rw.js +0 -113
  952. package/dist/cs-CZ-BP7niQM9.js +0 -68
  953. package/dist/cs-CZ-BSWXexr4.js +0 -13
  954. package/dist/cs-CZ-BsV9NiQ2.js +0 -13
  955. package/dist/cs-CZ-CyLqoG1j.js +0 -37
  956. package/dist/cs-CZ-DPVMeRye.js +0 -29
  957. package/dist/cs-CZ-DY_pQqAT.js +0 -57
  958. package/dist/cs-CZ-DalFZigH.js +0 -13
  959. package/dist/da-DK-CI-vfqPo.js +0 -113
  960. package/dist/da-DK-D4Ojw97o.js +0 -13
  961. package/dist/da-DK-DU4dCNEw.js +0 -29
  962. package/dist/da-DK-DYpfNZdP.js +0 -37
  963. package/dist/da-DK-Dc0QYG8m.js +0 -68
  964. package/dist/da-DK-JHZnsI59.js +0 -55
  965. package/dist/da-DK-P3YSaBqs.js +0 -13
  966. package/dist/da-DK-R_y7YwqQ.js +0 -13
  967. package/dist/da-DK-jK7c9UL0.js +0 -57
  968. package/dist/de-DE-BR6CLZw6.js +0 -13
  969. package/dist/de-DE-BXt1K0Tr.js +0 -37
  970. package/dist/de-DE-BcuLmcC8.js +0 -13
  971. package/dist/de-DE-Dz2OsS1F.js +0 -68
  972. package/dist/de-DE-Dz2l6jRl.js +0 -29
  973. package/dist/de-DE-VGGEkxUT.js +0 -55
  974. package/dist/de-DE-nG2MBigU.js +0 -113
  975. package/dist/de-DE-opyC1JO-.js +0 -13
  976. package/dist/de-DE-wmerDL2e.js +0 -57
  977. package/dist/debouncedInputEvent-Dlbc7VjU.js +0 -109
  978. package/dist/decision-makers-group-CgddXgrx.js +0 -1944
  979. package/dist/digital-wallet-D_IpxnkN.js +0 -46
  980. package/dist/document-1-C08ut-Dt.js +0 -14
  981. package/dist/document-blurred-2Zpodj3_.js +0 -37
  982. package/dist/document-cut-off-ClS7RiOp.js +0 -32
  983. package/dist/document-expired-CjksBq-N.js +0 -38
  984. package/dist/document-front-DiAairT3.js +0 -30
  985. package/dist/document-person-vxlA6C5f.js +0 -20
  986. package/dist/documentUtils-CUgKVLK4.js +0 -218
  987. package/dist/download-Drhk9k1f.js +0 -17
  988. package/dist/dropinUtils-D2lBlNWp.js +0 -202
  989. package/dist/edit-1-CFoDTMvQ.js +0 -14
  990. package/dist/el-GR-B3FHqTOX.js +0 -13
  991. package/dist/el-GR-B90M6tcZ.js +0 -37
  992. package/dist/el-GR-BHG69mXl.js +0 -68
  993. package/dist/el-GR-BX-MyQZY.js +0 -113
  994. package/dist/el-GR-Btrk_npt.js +0 -57
  995. package/dist/el-GR-CWd7XYDU.js +0 -13
  996. package/dist/el-GR-CofvCav-.js +0 -13
  997. package/dist/el-GR-MLFY-Gg7.js +0 -29
  998. package/dist/el-GR-gkaKwnln.js +0 -55
  999. package/dist/en-US-BPI4FZwa.js +0 -113
  1000. package/dist/en-US-CzEL6t1W.js +0 -55
  1001. package/dist/en-US-D-B35AoN.js +0 -68
  1002. package/dist/en-US-DYo4OF-P.js +0 -29
  1003. package/dist/en-US-Dg505Oh3.js +0 -37
  1004. package/dist/en-US-fyGPkcqX.js +0 -13
  1005. package/dist/en-US-gsp7CD_E.js +0 -57
  1006. package/dist/es-ES-0ROz-BJh.js +0 -29
  1007. package/dist/es-ES-BAg3NqQO.js +0 -13
  1008. package/dist/es-ES-BI_jdT67.js +0 -68
  1009. package/dist/es-ES-BhINIOee.js +0 -13
  1010. package/dist/es-ES-BhNhIf08.js +0 -37
  1011. package/dist/es-ES-Bn9_0wK0.js +0 -55
  1012. package/dist/es-ES-CEp-ttVJ.js +0 -13
  1013. package/dist/es-ES-Q16q2JJ6.js +0 -113
  1014. package/dist/es-ES-Qnc0Q6JH.js +0 -57
  1015. package/dist/et-EE-BMgFCxds.js +0 -37
  1016. package/dist/et-EE-BYSnV6Iq.js +0 -55
  1017. package/dist/et-EE-Bk2IHQWP.js +0 -13
  1018. package/dist/et-EE-C_PZO2aI.js +0 -68
  1019. package/dist/et-EE-Ci8RU2wg.js +0 -13
  1020. package/dist/et-EE-DmShD6oS.js +0 -113
  1021. package/dist/et-EE-TzXANcP2.js +0 -57
  1022. package/dist/et-EE-esci5847.js +0 -29
  1023. package/dist/et-EE-x29FUaYN.js +0 -118
  1024. package/dist/external-link-DCMYUMfW.js +0 -14
  1025. package/dist/fi-FI-B_P4BAda.js +0 -113
  1026. package/dist/fi-FI-CDISJifz.js +0 -13
  1027. package/dist/fi-FI-DjlB2a7k.js +0 -13
  1028. package/dist/fi-FI-Dn2MC8uW.js +0 -57
  1029. package/dist/fi-FI-MiyuQqH8.js +0 -13
  1030. package/dist/fi-FI-PVFqd5Ra.js +0 -55
  1031. package/dist/fi-FI-hwzizPnr.js +0 -68
  1032. package/dist/fi-FI-xXrvDLFe.js +0 -29
  1033. package/dist/fi-FI-ysUrBilO.js +0 -37
  1034. package/dist/fieldConfigurations-C38LzPl3.js +0 -1402
  1035. package/dist/fr-FR-BSvSKazD.js +0 -37
  1036. package/dist/fr-FR-BWX14yb7.js +0 -57
  1037. package/dist/fr-FR-Bw9O-QAU.js +0 -29
  1038. package/dist/fr-FR-CUdiBCVB.js +0 -113
  1039. package/dist/fr-FR-CYZXbwc9.js +0 -68
  1040. package/dist/fr-FR-DGMVrsJv.js +0 -13
  1041. package/dist/fr-FR-Dx-CiPdB.js +0 -13
  1042. package/dist/fr-FR-aJ3cg4x0.js +0 -13
  1043. package/dist/fr-FR-mJK4hjwD.js +0 -55
  1044. package/dist/funds-in-D8bj0aoE.js +0 -21
  1045. package/dist/getFieldsWithExistingData-B0l_1eCG.js +0 -22
  1046. package/dist/getName-CIw0MR9e.js +0 -48
  1047. package/dist/gift-CQ_DEma7.js +0 -14
  1048. package/dist/graph-BJmqglH2.js +0 -21
  1049. package/dist/graph-up-Bq6adtlX.js +0 -20
  1050. package/dist/hasDataChanged-B-_hLK5I.js +0 -19
  1051. package/dist/headquarter-DNYyuuFq.js +0 -21
  1052. package/dist/hotel-BuNql78Z.js +0 -22
  1053. package/dist/house-B6sNRj-B.js +0 -21
  1054. package/dist/hr-HR-BHt_jklG.js +0 -13
  1055. package/dist/hr-HR-BLpGb4f2.js +0 -37
  1056. package/dist/hr-HR-CXpCIMhI.js +0 -113
  1057. package/dist/hr-HR-CZLSQruE.js +0 -57
  1058. package/dist/hr-HR-D8_yhtIo.js +0 -29
  1059. package/dist/hr-HR-VivDwwdW.js +0 -13
  1060. package/dist/hr-HR-bE6cvRCQ.js +0 -68
  1061. package/dist/hr-HR-n7aMHIpM.js +0 -13
  1062. package/dist/hr-HR-qmYyO-nT.js +0 -55
  1063. package/dist/hu-HU-CS-7iNS4.js +0 -55
  1064. package/dist/hu-HU-Ca9Hex26.js +0 -37
  1065. package/dist/hu-HU-DDsdPI5V.js +0 -13
  1066. package/dist/hu-HU-DG-NUDx4.js +0 -68
  1067. package/dist/hu-HU-D_DvlCMw.js +0 -13
  1068. package/dist/hu-HU-DqEBeq-w.js +0 -113
  1069. package/dist/hu-HU-KliQetm5.js +0 -29
  1070. package/dist/hu-HU-WEtpzb41.js +0 -13
  1071. package/dist/hu-HU-kp8Go5hZ.js +0 -57
  1072. package/dist/id-blurred-9dzBOWCE.js +0 -59
  1073. package/dist/id-cut-off-CohJCI2h.js +0 -55
  1074. package/dist/id-front-CSZfvdRg.js +0 -52
  1075. package/dist/id-glare-Q2JWo5ts.js +0 -49
  1076. package/dist/id-verification-instant-BUVBO4R3.js +0 -58
  1077. package/dist/id-verification-manual-B3YZALYU.js +0 -55
  1078. package/dist/iframeWidget-yBLSAmf8.js +0 -234
  1079. package/dist/image-BSihO8lR.js +0 -17
  1080. package/dist/info-vHTZWoJ7.js +0 -21
  1081. package/dist/instant-verification-Dvvkyfmp.js +0 -40
  1082. package/dist/it-IT-B0YGvVgW.js +0 -57
  1083. package/dist/it-IT-BTWkWSJq.js +0 -55
  1084. package/dist/it-IT-C2MZo4KT.js +0 -13
  1085. package/dist/it-IT-DLm11dH5.js +0 -13
  1086. package/dist/it-IT-Erh1DIlj.js +0 -68
  1087. package/dist/it-IT-MwpjRAG6.js +0 -29
  1088. package/dist/it-IT-NCFAqV1F.js +0 -113
  1089. package/dist/it-IT-Qfzc8jnW.js +0 -37
  1090. package/dist/it-IT-yV7ewjWU.js +0 -13
  1091. package/dist/ja-JP-2u5fqLWF.js +0 -29
  1092. package/dist/ja-JP-Bktpl_2b.js +0 -118
  1093. package/dist/ja-JP-CHQ64lw1.js +0 -37
  1094. package/dist/ja-JP-CSz7fEkn.js +0 -55
  1095. package/dist/ja-JP-CWe8f7m4.js +0 -13
  1096. package/dist/ja-JP-C_-moDrA.js +0 -113
  1097. package/dist/ja-JP-Ctsk4z4q.js +0 -151
  1098. package/dist/ja-JP-Dz9IVH4p.js +0 -57
  1099. package/dist/ja-JP-ThzG9vIo.js +0 -68
  1100. package/dist/ja-JP-bz7ekGnF.js +0 -27
  1101. package/dist/localizeDateString-C-G2nUor.js +0 -27
  1102. package/dist/location-Q4oKvnkl.js +0 -17
  1103. package/dist/lt-LT-0RKZeraM.js +0 -37
  1104. package/dist/lt-LT-B6XmKUXx.js +0 -55
  1105. package/dist/lt-LT-BEsBoIQ9.js +0 -29
  1106. package/dist/lt-LT-CU5qHa7a.js +0 -113
  1107. package/dist/lt-LT-CYiW52tl.js +0 -13
  1108. package/dist/lt-LT-Cg9c0kae.js +0 -13
  1109. package/dist/lt-LT-Nd1uRoIj.js +0 -68
  1110. package/dist/lt-LT-W6fTjwB5.js +0 -13
  1111. package/dist/lt-LT-l9rzkFg9.js +0 -57
  1112. package/dist/lv-LV-Bh-WQp0K.js +0 -37
  1113. package/dist/lv-LV-CgMxfFK8.js +0 -13
  1114. package/dist/lv-LV-CpGkmcLz.js +0 -113
  1115. package/dist/lv-LV-CxUmQHF9.js +0 -13
  1116. package/dist/lv-LV-DKhV24CI.js +0 -68
  1117. package/dist/lv-LV-DYbb5pkt.js +0 -57
  1118. package/dist/lv-LV-DsSpy50n.js +0 -55
  1119. package/dist/lv-LV-DsxFGThp.js +0 -13
  1120. package/dist/lv-LV-Veji7-on.js +0 -29
  1121. package/dist/mail-BOdyoVqB.js +0 -14
  1122. package/dist/manual-verification-BvZWqA00.js +0 -41
  1123. package/dist/mapExistingFile-BhW5UmN9.js +0 -156
  1124. package/dist/mapFinancialReportsToFinancialInformation-Dl-cl9eQ.js +0 -67
  1125. package/dist/mapJpAddressSchemaToAddressLocalizations-KFAvfuC1.js +0 -63
  1126. package/dist/mapLegalEntityToIndividualOnfidoSchema-D51tRiYd.js +0 -143
  1127. package/dist/mapTransferInstrumentToPayoutAccount-CU5wx0wJ.js +0 -33
  1128. package/dist/minus-circle-filled-kC2IUvKz.js +0 -17
  1129. package/dist/nl-NL-BMUYBqlF.js +0 -57
  1130. package/dist/nl-NL-Bk-1-C0e.js +0 -13
  1131. package/dist/nl-NL-BuW3jWdI.js +0 -29
  1132. package/dist/nl-NL-CMw-FwQV.js +0 -13
  1133. package/dist/nl-NL-CTf7zH4M.js +0 -55
  1134. package/dist/nl-NL-D7gBNWEY.js +0 -37
  1135. package/dist/nl-NL-DKMs4pB2.js +0 -13
  1136. package/dist/nl-NL-DMpB18Te.js +0 -113
  1137. package/dist/nl-NL-O9GCHMDA.js +0 -68
  1138. package/dist/no-NO-B-oUwe9q.js +0 -13
  1139. package/dist/no-NO-C-gCYc9q.js +0 -37
  1140. package/dist/no-NO-CA0EizAy.js +0 -29
  1141. package/dist/no-NO-CA1aR6Wh.js +0 -68
  1142. package/dist/no-NO-Ca5qoVaU.js +0 -113
  1143. package/dist/no-NO-DKbWxgF-.js +0 -57
  1144. package/dist/no-NO-DN9qf-_I.js +0 -13
  1145. package/dist/no-NO-Dhj0Fh__.js +0 -13
  1146. package/dist/no-NO-RfTK9KAV.js +0 -55
  1147. package/dist/onfido-logo-BWSv__sQ.js +0 -14
  1148. package/dist/options-horizontal-CBmbNv7R.js +0 -18
  1149. package/dist/partner-CPjsrePY.js +0 -18
  1150. package/dist/passport-blurred-B4UDQfmc.js +0 -59
  1151. package/dist/passport-cut-off-C0N2mgLk.js +0 -56
  1152. package/dist/passport-front-BwA7wR91.js +0 -52
  1153. package/dist/passport-front-green-BL4HmtsB.js +0 -232
  1154. package/dist/passport-glare-Mg2ixsYA.js +0 -50
  1155. package/dist/pay-by-link-plane-BVZndh67.js +0 -22
  1156. package/dist/payout-ChUEoLjt.js +0 -20
  1157. package/dist/payout-verification-instant-5u-wvFKv.js +0 -41
  1158. package/dist/payout-verification-manual-BH2mu0UW.js +0 -90
  1159. package/dist/person-DGjUU4S4.js +0 -17
  1160. package/dist/pl-PL-B0zGy_b4.js +0 -57
  1161. package/dist/pl-PL-BKDK0_G8.js +0 -68
  1162. package/dist/pl-PL-BSI0zHO1.js +0 -113
  1163. package/dist/pl-PL-D7nhdbfR.js +0 -29
  1164. package/dist/pl-PL-DGSYzOx6.js +0 -13
  1165. package/dist/pl-PL-Duj3tncM.js +0 -13
  1166. package/dist/pl-PL-Dy8qWH39.js +0 -55
  1167. package/dist/pl-PL-LnVPufjb.js +0 -37
  1168. package/dist/pl-PL-p8YxqOFg.js +0 -13
  1169. package/dist/plaid-logo-CtActXTN.js +0 -14
  1170. package/dist/plus-CWXA5wdX.js +0 -14
  1171. package/dist/plus-circle-filled-CbC0u2Y1.js +0 -17
  1172. package/dist/process-field-configurations-DoOFQqtn.js +0 -324
  1173. package/dist/pt-BR--kaJvtE6.js +0 -57
  1174. package/dist/pt-BR-BbFJsIVX.js +0 -55
  1175. package/dist/pt-BR-Be5ZycMV.js +0 -13
  1176. package/dist/pt-BR-Cj8MlQyq.js +0 -113
  1177. package/dist/pt-BR-Cm4vZocb.js +0 -13
  1178. package/dist/pt-BR-D1nTSLod.js +0 -29
  1179. package/dist/pt-BR-DKrMpM6v.js +0 -13
  1180. package/dist/pt-BR-NtLaWlnZ.js +0 -68
  1181. package/dist/pt-BR-ur86nRrK.js +0 -37
  1182. package/dist/pt-PT-B4F_5NWi.js +0 -55
  1183. package/dist/pt-PT-B9L50746.js +0 -29
  1184. package/dist/pt-PT-BJjCTMYf.js +0 -13
  1185. package/dist/pt-PT-BJkVzfAJ.js +0 -113
  1186. package/dist/pt-PT-BR-BI5Jn.js +0 -13
  1187. package/dist/pt-PT-BZ5ZZm6G.js +0 -57
  1188. package/dist/pt-PT-Bh7v8xbp.js +0 -13
  1189. package/dist/pt-PT-CVNEcs32.js +0 -37
  1190. package/dist/pt-PT-DSxxVA0f.js +0 -68
  1191. package/dist/recurring-CkL4cCM2.js +0 -17
  1192. package/dist/reporting-DerosUNm.js +0 -16
  1193. package/dist/resolveEnvironment-Dyejukh7.js +0 -164
  1194. package/dist/revenue-accelerate-Dp4Ns_5c.js +0 -17
  1195. package/dist/review-CxIN9azU.js +0 -17
  1196. package/dist/ro-RO-5I4Q_FyK.js +0 -13
  1197. package/dist/ro-RO-B8leE4ZJ.js +0 -13
  1198. package/dist/ro-RO-Bybq8JFn.js +0 -68
  1199. package/dist/ro-RO-CICjAFys.js +0 -55
  1200. package/dist/ro-RO-CdSsgoUG.js +0 -57
  1201. package/dist/ro-RO-DjGku_3y.js +0 -13
  1202. package/dist/ro-RO-DvG65dTt.js +0 -29
  1203. package/dist/ro-RO-RgC5M6CE.js +0 -113
  1204. package/dist/ro-RO-i7lojG2G.js +0 -37
  1205. package/dist/rules-DP604XPJ.js +0 -314
  1206. package/dist/save-Fgy7EDid.js +0 -14
  1207. package/dist/search-C4GZ-Rc1.js +0 -17
  1208. package/dist/show-yPjPmEf8.js +0 -17
  1209. package/dist/singpass-logo-BkMSwiGY.js +0 -17
  1210. package/dist/singpass-verification-instant-hY4eGFwl.js +0 -40
  1211. package/dist/singpass-verification-manual-DwhRpy5Q.js +0 -34
  1212. package/dist/sk-SK-0BVxI7bf.js +0 -113
  1213. package/dist/sk-SK-B5brxU1N.js +0 -37
  1214. package/dist/sk-SK-BMJgOJoa.js +0 -29
  1215. package/dist/sk-SK-BRd5TN22.js +0 -55
  1216. package/dist/sk-SK-BVmoP_EU.js +0 -13
  1217. package/dist/sk-SK-BWwRIx2d.js +0 -13
  1218. package/dist/sk-SK-Bb18qPBw.js +0 -13
  1219. package/dist/sk-SK-BiBWPJUf.js +0 -57
  1220. package/dist/sk-SK-C6rMIxpz.js +0 -68
  1221. package/dist/sl-SI-6s8xycKg.js +0 -13
  1222. package/dist/sl-SI-BMF8YtOm.js +0 -29
  1223. package/dist/sl-SI-BxImW_RL.js +0 -113
  1224. package/dist/sl-SI-CUCrzJQv.js +0 -37
  1225. package/dist/sl-SI-CaJmYb6p.js +0 -13
  1226. package/dist/sl-SI-D8dDckrW.js +0 -55
  1227. package/dist/sl-SI-DtdGMD6i.js +0 -57
  1228. package/dist/sl-SI-ZxyvdgdS.js +0 -13
  1229. package/dist/sl-SI-tPwbFvOI.js +0 -68
  1230. package/dist/solution-payments-CNAat9h7.js +0 -14
  1231. package/dist/store-IuAkDRAp.js +0 -14
  1232. package/dist/sv-SE-B1sbgsnh.js +0 -13
  1233. package/dist/sv-SE-BUq1X9F0.js +0 -113
  1234. package/dist/sv-SE-BYC_f8r7.js +0 -29
  1235. package/dist/sv-SE-C6uPh9g5.js +0 -37
  1236. package/dist/sv-SE-CCFIf86P.js +0 -13
  1237. package/dist/sv-SE-DGpvVvWj.js +0 -55
  1238. package/dist/sv-SE-D_ZnGxiQ.js +0 -13
  1239. package/dist/sv-SE-K1QT1cOt.js +0 -68
  1240. package/dist/sv-SE-kR514dO1.js +0 -57
  1241. package/dist/tax-reporting-graph-DjzwRgE6.js +0 -504
  1242. package/dist/terminal-1-_me9J9h0.js +0 -18
  1243. package/dist/tink-logo-BcIv93ND.js +0 -17
  1244. package/dist/types/components/Business/forms/AdditionalInformation/AdditionalInformationMultiform.d.ts +0 -9
  1245. package/dist/types/components/Business/forms/AdditionalInformation/VerifiedBusinessCard.d.ts +0 -9
  1246. package/dist/types/components/Business/forms/BasicInformation/BasicInformationMultiform.d.ts +0 -11
  1247. package/dist/types/components/Business/forms/BusinessDetails/BusinessDetails.d.ts +0 -3
  1248. package/dist/types/components/Business/forms/BusinessSelection/BusinessSelectionMultiform.d.ts +0 -14
  1249. package/dist/types/components/Business/forms/CompanyStructure/CompanyStructureMultiform.d.ts +0 -4
  1250. package/dist/types/components/Business/tasks/BusinessDetailsDropin/mandatoryFields.d.ts +0 -3
  1251. package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/BusinessDetailsMultiformDropin.d.ts +0 -5
  1252. package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/types.d.ts +0 -2
  1253. package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/utils.d.ts +0 -19
  1254. package/dist/types/components/Individual/fields/DecisionMakerRole/DecisionMakerRole.d.ts +0 -3
  1255. package/dist/types/components/Individual/fields/DecisionMakerRole/NomineeDecisionMakerRole.d.ts +0 -10
  1256. package/dist/types/components/Individual/fields/DecisionMakerRole/types.d.ts +0 -23
  1257. package/dist/types/components/Individual/fields/LocalizedNameFields/types.d.ts +0 -9
  1258. package/dist/types/components/Individual/fields/NameFields/validate.d.ts +0 -4
  1259. package/dist/types/components/Individual/forms/Individual/IdDocumentUpload/IdDocumentAlreadyUpload.d.ts +0 -2
  1260. package/dist/types/components/Individual/forms/Individual/IdDocumentUpload/IdDocumentInstantVerification.d.ts +0 -3
  1261. package/dist/types/components/Individual/forms/Individual/IdDocumentUpload/IdDocumentUpload.d.ts +0 -3
  1262. package/dist/types/components/Individual/forms/Individual/IdDocumentUpload/types.d.ts +0 -53
  1263. package/dist/types/components/Individual/forms/Individual/IdDocumentUpload/utils.d.ts +0 -3
  1264. package/dist/types/components/Individual/forms/Individual/IdVerificationMethod/IdVerificationMethod.d.ts +0 -3
  1265. package/dist/types/components/Individual/forms/Individual/IdVerificationMethod/idVerificationMethodMetadata.d.ts +0 -15
  1266. package/dist/types/components/Individual/forms/Individual/IdVerificationMethod/types.d.ts +0 -14
  1267. package/dist/types/components/Individual/forms/Individual/Individual.d.ts +0 -9
  1268. package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/Identity.d.ts +0 -2
  1269. package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/IdentityAu/IdentityAu.d.ts +0 -2
  1270. package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/IdentityAu/validate.d.ts +0 -3
  1271. package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/IdentityHK/IdentityHK.d.ts +0 -2
  1272. package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/IdentityHK/validate.d.ts +0 -3
  1273. package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/IdentityNZ/IdentityNZ.d.ts +0 -2
  1274. package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/IdentityNZ/validate.d.ts +0 -3
  1275. package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/TypeOfIdentity/index.d.ts +0 -11
  1276. package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/identityUS/IdentityUS.d.ts +0 -4
  1277. package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/types.d.ts +0 -14
  1278. package/dist/types/components/Individual/forms/Individual/PersonalDetails/PersonalDetails.d.ts +0 -3
  1279. package/dist/types/components/Individual/forms/Individual/PersonalDetails/types.d.ts +0 -39
  1280. package/dist/types/components/Individual/forms/Individual/PersonalDetails/validate.d.ts +0 -21
  1281. package/dist/types/components/Individual/forms/Individual/ProofOfRelationship/types.d.ts +0 -14
  1282. package/dist/types/components/Individual/forms/Individual/ProofOfResidency/types.d.ts +0 -39
  1283. package/dist/types/components/Individual/forms/Individual/rules.d.ts +0 -40
  1284. package/dist/types/components/Individual/forms/Individual/types.d.ts +0 -51
  1285. package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/AdditionalPersonalDetails.types.d.ts +0 -29
  1286. package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/Identity/Identity.types.d.ts +0 -13
  1287. package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/Identity/TypeOfIdentity/index.d.ts +0 -11
  1288. package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/Identity/validate.d.ts +0 -4
  1289. package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/validate.d.ts +0 -22
  1290. package/dist/types/components/Individual/forms/IndividualOnfido/BasicDetails/BasicDetails.types.d.ts +0 -22
  1291. package/dist/types/components/Individual/forms/IndividualOnfido/BasicDetails/validate.d.ts +0 -6
  1292. package/dist/types/components/Individual/forms/IndividualOnfido/DataConflictsModal/ConflictRow.d.ts +0 -12
  1293. package/dist/types/components/Individual/forms/IndividualOnfido/DataConflictsModal/DataConflictsModal.d.ts +0 -24
  1294. package/dist/types/components/Individual/forms/IndividualOnfido/IdNowVerificationModal/isIdNowModalOpen.d.ts +0 -17
  1295. package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/IdVerificationMethod.types.d.ts +0 -20
  1296. package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/OnfidoVerificationModal/OnfidoVerificationModal.d.ts +0 -7
  1297. package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/UploadedDocument/UploadedDocument.d.ts +0 -7
  1298. package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/individualOnfidoConflictsSchema.d.ts +0 -46
  1299. package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/mapExtractionResultToSchema.d.ts +0 -4
  1300. package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/validateExtractionResult.d.ts +0 -12
  1301. package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.d.ts +0 -52
  1302. package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.rules.d.ts +0 -46
  1303. package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.types.d.ts +0 -59
  1304. package/dist/types/components/Individual/forms/IndividualOnfido/SignatoryQuestionnaire/SignatoryQuestionnaire.types.d.ts +0 -6
  1305. package/dist/types/components/Individual/forms/IndividualOnfido/UboQuestionnaire/UboQuestionnaire.types.d.ts +0 -13
  1306. package/dist/types/components/Individual/forms/IndividualOnfido/UboQuestionnaire/UboQuestionnaireModalContent.d.ts +0 -7
  1307. package/dist/types/components/Individual/helpers/isOnfidoAutofillFlowEnabled.d.ts +0 -4
  1308. package/dist/types/components/Individual/mapping/adjustIdentificationData.d.ts +0 -3
  1309. package/dist/types/components/Individual/mapping/getIdentityTypeToApiIdentityTypeMap.d.ts +0 -3
  1310. package/dist/types/components/Individual/mapping/individualOnfidoKeyMappings.d.ts +0 -8
  1311. package/dist/types/components/Individual/mapping/mapIndividualOnfidoSchemaToLegalEntity.d.ts +0 -5
  1312. package/dist/types/components/Individual/mapping/mapIndividualToLegalEntity.d.ts +0 -3
  1313. package/dist/types/components/Individual/mapping/mapLegalEntityToIndividual.d.ts +0 -3
  1314. package/dist/types/components/Individual/mapping/mapLegalEntityToIndividualOnfidoSchema.d.ts +0 -3
  1315. package/dist/types/components/Individual/tasks/IndividualOnfidoDropin/IndividualOnfidoDropin.d.ts +0 -2
  1316. package/dist/types/components/Individual/tasks/IndividualOnfidoDropin/individualOnfidoFormConfig.d.ts +0 -4
  1317. package/dist/types/components/Shared/forms/BusinessTypeSelection/EntityTypeRadioGroupCard.d.ts +0 -11
  1318. package/dist/types/components/Shared/forms/FinancialInformation/formatFinancialInformationSummary.d.ts +0 -4
  1319. package/dist/types/components/Shared/forms/FinancialInformation/mapping/mapFinancialInformationToFinancialReport.d.ts +0 -3
  1320. package/dist/types/components/Shared/forms/FinancialInformation/mapping/mapFinancialReportsToFinancialInformation.d.ts +0 -3
  1321. package/dist/types/components/Shared/tasks/TaskList/utils.d.ts +0 -8
  1322. package/dist/types/components/ui/molecules/Card/Card.d.ts +0 -3
  1323. package/dist/types/components/ui/molecules/Card/types.d.ts +0 -26
  1324. package/dist/types/embeds/EmbedBaseElement.d.ts +0 -41
  1325. package/dist/types/embeds/EmbedCore.d.ts +0 -22
  1326. package/dist/types/embeds/business-financing/AdyenBusinessFinancing.d.ts +0 -13
  1327. package/dist/types/embeds/individual-configuration/AdyenIndividual.d.ts +0 -12
  1328. package/dist/types/embeds/individual-status/AdyenManageIndividual.d.ts +0 -12
  1329. package/dist/types/embeds/onboarding/AdyenOnboarding.d.ts +0 -12
  1330. package/dist/types/embeds/terms-of-service-management/AdyenTermsOfService.d.ts +0 -12
  1331. package/dist/types/embeds/terms-of-service-status/AdyenManageTermsOfService.d.ts +0 -12
  1332. package/dist/types/embeds/transfer-instrument-configuration/AdyenTransferInstrument.d.ts +0 -16
  1333. package/dist/types/embeds/transfer-instrument-management/AdyenManageTransferInstrument.d.ts +0 -14
  1334. package/dist/types/embeds/verification-status/AdyenVerificationStatus.d.ts +0 -20
  1335. package/dist/types-C972Lk6s.js +0 -34
  1336. package/dist/types-CLz74bOT.js +0 -88
  1337. package/dist/types-Ctv8hbzY.js +0 -74
  1338. package/dist/types-f66rmUFy.js +0 -164
  1339. package/dist/upload-BF65P4KM.js +0 -17
  1340. package/dist/us-check-CYY6Crhr.js +0 -46
  1341. package/dist/us-check-account-number-C7KE5YzX.js +0 -48
  1342. package/dist/us-check-routing-number-DUbhsYAR.js +0 -49
  1343. package/dist/useAssociatedLegalEntity-DAB1oG6O.js +0 -33
  1344. package/dist/useCreateLegalEntity-BK5YcHA-.js +0 -31
  1345. package/dist/useDataset-BtfHQp4w.js +0 -220
  1346. package/dist/useForm-wQyeWa1b.js +0 -1623
  1347. package/dist/useGlobalData-B33uuhtd.js +0 -68
  1348. package/dist/useMultiForm-rZmCYsI4.js +0 -864
  1349. package/dist/useOnboardingStatus-BbIpiZR4.js +0 -27
  1350. package/dist/useScenarios-DPOodENA.js +0 -46
  1351. package/dist/useTermsOfServiceStatus-DKeMR4Xi.js +0 -42
  1352. package/dist/useToastContext-BK9oGWtb.js +0 -60
  1353. package/dist/useUnincorporatedPartnershipMembers-Cdts5Hbn.js +0 -99
  1354. package/dist/useUpdateBusinessLines-CWYtpMwr.js +0 -46
  1355. package/dist/useUpdateLegalEntity-oa8qEzc4.js +0 -39
  1356. package/dist/utils-AP5TpAhf.js +0 -774
  1357. package/dist/utils-COz1RbbA.js +0 -237
  1358. package/dist/validate-BYwVLb-X.js +0 -41
  1359. package/dist/validate-CBVdP51L.js +0 -100
  1360. package/dist/validationError-CvZLhw5H.js +0 -86
  1361. package/dist/warning-circle-fill-CEN1WL7A.js +0 -17
  1362. package/dist/warning-diamond-filled-BfXMlVrG.js +0 -17
  1363. package/dist/webinar-DqjqrNEv.js +0 -22
  1364. package/dist/yapily-logo-CZ4ywjwA.js +0 -17
  1365. /package/dist/types/components/{Shared → Apps}/tasks/TaskList/PayoutAccountTaskListItem.d.ts +0 -0
  1366. /package/dist/types/components/{Shared → Apps}/tasks/TaskList/TaskList.d.ts +0 -0
  1367. /package/dist/types/components/{Shared → Apps}/tasks/TaskList/TaskListGroup.d.ts +0 -0
  1368. /package/dist/types/components/{Shared → Apps}/tasks/TaskList/TaskListItem.d.ts +0 -0
  1369. /package/dist/types/components/{Shared → Apps}/tasks/TaskList/types.d.ts +0 -0
  1370. /package/dist/types/components/Business/{tasks/BusinessDetailsMultiformDropin → forms/BusinessDetails}/BusinessDetailsMultiform.d.ts +0 -0
  1371. /package/dist/types/components/{Shared → Business}/forms/FinancialInformation/FinancialInformation.d.ts +0 -0
  1372. /package/dist/types/components/{Shared → Business}/forms/FinancialInformation/ReportedValue.d.ts +0 -0
  1373. /package/dist/types/components/{Shared → Business}/forms/FinancialInformation/types.d.ts +0 -0
  1374. /package/dist/types/components/{Shared → Business}/forms/FinancialInformation/validate.d.ts +0 -0
  1375. /package/dist/types/components/Business/tasks/{BusinessDetailsMultiformDropin → BusinessDetailsDropin}/validate.d.ts +0 -0
  1376. /package/dist/types/components/Individual/forms/{IndividualOnfido/AdditionalPersonalDetails → AdditionalPersonalDetails}/AdditionalPersonalDetails.d.ts +0 -0
  1377. /package/dist/types/components/Individual/forms/{IndividualOnfido/AdditionalPersonalDetails → AdditionalPersonalDetails}/Identity/Identity.d.ts +0 -0
  1378. /package/dist/types/components/Individual/forms/{IndividualOnfido/BasicDetails → BasicDetails}/BasicDetails.d.ts +0 -0
  1379. /package/dist/types/components/Individual/forms/{IndividualOnfido/GuidanceQuestion → GuidanceQuestion}/GuidanceQuestion.d.ts +0 -0
  1380. /package/dist/types/components/Individual/forms/{Individual/IdDocumentUpload → IdDocumentUpload}/IdDocumentManualUpload.d.ts +0 -0
  1381. /package/dist/types/components/Individual/forms/{IndividualOnfido/IdNowVerificationModal → IdNowVerificationModal}/IdNowVerificationModal.d.ts +0 -0
  1382. /package/dist/types/components/Individual/forms/{Individual/IdVerification → IdVerification}/IdVerification.d.ts +0 -0
  1383. /package/dist/types/components/Individual/forms/{Individual/IdVerification → IdVerification}/idVerificationProviderId.d.ts +0 -0
  1384. /package/dist/types/components/Individual/forms/{Individual/IdVerification → IdVerification}/types.d.ts +0 -0
  1385. /package/dist/types/components/Individual/forms/{IndividualOnfido/IdVerificationMethod → IdVerificationMethod}/IdVerificationMethod.d.ts +0 -0
  1386. /package/dist/types/components/Individual/forms/{IndividualOnfido/ManualIdUpload → ManualIdUpload}/ManualIdUpload.d.ts +0 -0
  1387. /package/dist/types/components/Individual/forms/{Individual/ProofOfRelationship → ProofOfRelationship}/index.d.ts +0 -0
  1388. /package/dist/types/components/Individual/forms/{Individual/ProofOfResidency → ProofOfResidency}/ProofOfResidency.d.ts +0 -0
  1389. /package/dist/types/components/Individual/forms/{IndividualOnfido/SignatoryQuestionnaire → SignatoryQuestionnaire}/SignatoryQuestionnaire.d.ts +0 -0
  1390. /package/dist/types/components/Individual/forms/{IndividualOnfido/SignatoryQuestionnaire → SignatoryQuestionnaire}/SignatoryQuestionnaireModalContent.d.ts +0 -0
  1391. /package/dist/types/components/Individual/forms/{IndividualOnfido/UboQuestionnaire → UboQuestionnaire}/UboQuestionnaire.d.ts +0 -0
  1392. /package/dist/types/components/Individual/tasks/{IndividualOnfidoDropin/IndividualOnfidoStore.d.ts → IndividualDropin/IndividualStore.d.ts} +0 -0
  1393. /package/dist/types/components/{Individual → Shared}/fields/LocalizedNameFields/LocalizedNameFields.d.ts +0 -0
@@ -0,0 +1,2162 @@
1
+ ;
2
+ {
3
+ try {
4
+ let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "aa3170e0-8f2c-4ef4-8c3a-65ad3f3362a3", e._sentryDebugIdIdentifier = "sentry-dbid-aa3170e0-8f2c-4ef4-8c3a-65ad3f3362a3");
6
+ } catch (e) {
7
+ }
8
+ }
9
+ ;
10
+ import { b as useApiContext, $ as httpPost, k as httpGet, u as useTranslation, z as Typography, V as Button, aa as useI18nContext, L as Loader, r as Icon, t as IconButton, H as TASK_STATUS_POLLING_INTERVAL_MS, a3 as createLogger, c as useLegalEntity, R as ROOT_LE, p as useAnalyticsContext, bF as useLegalEntities, a as addResourceBundles, a8 as EntityTypes, g as getLegalEntityCountry, _ as __variableDynamicImportRuntimeHelper } from "./StoreProvider-qjyWZhxu.js";
11
+ import { jsxs, Fragment, jsx } from "preact/jsx-runtime";
12
+ import { u as useCapabilityProblems, g as getProblemsForEntity } from "./getProblemsForEntity-BFrbrf8n.js";
13
+ import { useState, useMemo, useCallback, useEffect } from "preact/hooks";
14
+ import { u as useBusinessLines } from "./useBusinessLines-DuBQrvIQ.js";
15
+ import { useMutation, useQuery, useQueryClient } from "@tanstack/preact-query";
16
+ import { a as useInvalidateRootLegalEntity, u as useToastContext } from "./useToastContext-CYdZ2BD2.js";
17
+ import { u as useCreateLegalEntity } from "./useCreateLegalEntity-DQx1byaP.js";
18
+ import { u as useUpdateLegalEntity } from "./useUpdateLegalEntity-B7VJAlhD.js";
19
+ import { u as useFormContext, F as FormContextProvider, a as FormFlow } from "./useFormContext-D1NuWw_2.js";
20
+ import { g as getRequiredForms, a as addValidityToForms, u as useFormComposer } from "./dropinUtils-CAGEedke.js";
21
+ import { u as useMultiForm } from "./useMultiForm-82RYFvCF.js";
22
+ import { c as createDocumentRequest, d as documentApiUtils } from "./validate-BnkIeDb7.js";
23
+ import { f as formatObject } from "./utils-DNSfZiio.js";
24
+ import { signal } from "@preact/signals";
25
+ import { E as ErrorPanel } from "./ErrorPanel-Doqj6bY8.js";
26
+ import { c as createFormUtils } from "./formUtils-BYIcPMjp.js";
27
+ import { F as Field } from "./Field-CpaVW2RZ.js";
28
+ import { S as Select } from "./Select-Cb77B0ji.js";
29
+ import { T as TextArea } from "./TextArea-B4QNgWAM.js";
30
+ import { I as InputDate } from "./InputDate-CoQAEyvT.js";
31
+ import { I as InputGroup } from "./InputGroup-WBfGDV5F.js";
32
+ import { I as InputText } from "./InputText-DmFCHVKa.js";
33
+ import { a as allowedCurrencies, T as TODAY_DATE, S as SOF_CHARACTERS_LIMIT, b as formatDateForInput, g as getInputErrors, c as formatAmountWithCurrency, s as sofCategoryItemMapper, d as getPageHeadings, e as getServiceTranslationSelectTitle, h as getSofCardDetails, i as getGettingStartedCardDetails, j as getAdditionalDataSchemaKeys, k as getServiceTranslation, p as parseSOFDocumentDescription, l as getRelevantErrors, m as getUniqueRemediationActions, n as SOF_INVALID_INPUT_ERROR_CODES, o as getServiceTranslationKey, q as getDocumentRequirements, r as getDocumentLists, t as getSourceOfFundsRequiredFields, M as MISSING_DATA_SOF_UPLOAD_CODE, u as parseOriginatorDetails, v as getSourceOfFundsRequiredForms, w as getSourceOfFundsPayload, A as ALLOWED_SOF_SERVICES, x as parseSofOriginatorPayload } from "./utils-C4cwFCf5.js";
34
+ import { R as RadioGroup } from "./RadioGroup-B7fMJqmd.js";
35
+ import { C as CountryField } from "./CountryField-D-WDIPSz.js";
36
+ import { A as Avatar } from "./Avatar-Cj2W0_1v.js";
37
+ import { a as Alert } from "./Alert-uX8GYjqW.js";
38
+ import { M as Modal } from "./Modal-sn2wYRN6.js";
39
+ import { C as Confirm } from "./Confirm-DviRmz4e.js";
40
+ import { T as TileGroup } from "./TileGroup-Dwrh9ZxO.js";
41
+ import { lazy } from "preact/compat";
42
+ import { u as useTaskStatus } from "./useTaskStatus-DjHWxlNL.js";
43
+ import { H as Header } from "./Header-hKHJmYRN.js";
44
+ import { I as Image } from "./Image-DIxxTupT.js";
45
+ import { L as LandingLayout } from "./LandingLayout-pnTFiHf3.js";
46
+ import { S as StackLayout } from "./unincorporated-partnership-MeN1dp53.js";
47
+ import { i as isEmpty } from "./isEmpty-DhGVlmpA.js";
48
+ import { C as Card } from "./Card-OQuFzmxm.js";
49
+ import { S as StructuredList } from "./StructuredList-BNLhk_zV.js";
50
+ import { D as Dropzone } from "./Dropzone-DMzbyRRZ.js";
51
+ import { v as validateDateNotInTheFuture } from "./validate-fYuz9-yq.js";
52
+ const updateSourceOfFunds = async (businessLineId, legalEntityId, baseUrl, data) => {
53
+ return httpPost(
54
+ {
55
+ baseUrl,
56
+ path: `legalEntities/${legalEntityId}/businessLines/${businessLineId}/sourceOfFunds`
57
+ },
58
+ data
59
+ );
60
+ };
61
+ const useUpdateSourceOfFunds = (options) => {
62
+ const { rootLegalEntityId, baseUrl } = useApiContext();
63
+ const invalidateRootLegalEntity = useInvalidateRootLegalEntity();
64
+ return useMutation({
65
+ mutationFn: ({ businessLineId, ...requestData }) => updateSourceOfFunds(businessLineId, rootLegalEntityId.value, baseUrl.value, requestData),
66
+ onSuccess: async () => {
67
+ await invalidateRootLegalEntity();
68
+ },
69
+ ...options
70
+ });
71
+ };
72
+ const sourceOfFundsBaseMapping = {
73
+ "sourceOfFundsType.type": "sourceOfFunds.type",
74
+ "additionalData.description": "sourceOfFunds.description",
75
+ "additionalData.amount": "sourceOfFunds.amount",
76
+ "additionalData.dateOfFundsReceived": "sourceOfFunds.dateOfFundsReceived",
77
+ "additionalData.purpose": "sourceOfFunds.purpose",
78
+ "additionalData.relationship": "sourceOfFunds.relationship",
79
+ "additionalData.originatorLegalEntityId": "sourceOfFunds.originatorLegalEntityId",
80
+ "additionalData.financiers": "sourceOfFunds.financiers",
81
+ "additionalData.cryptocurrencyExchange": "sourceOfFunds.cryptocurrencyExchange",
82
+ "additionalData.dateOfSourceEvent": "sourceOfFunds.dateOfSourceEvent",
83
+ "additionalData.website": "sourceOfFunds.website",
84
+ "additionalData.legalName": "sourceOfFunds.legalName",
85
+ "additionalData.firstName": "sourceOfFunds.firstName",
86
+ "additionalData.lastName": "sourceOfFunds.lastName",
87
+ "additionalData.country": "sourceOfFunds.country",
88
+ "additionalData.originatorType": "sourceOfFunds.originatorType"
89
+ };
90
+ const sourceOfFundsComponentsKeyMapping = {
91
+ ...sourceOfFundsBaseMapping
92
+ };
93
+ const mapSourceOfFundToSourceOfFundsSchema = (businessLine) => formatObject(businessLine, sourceOfFundsComponentsKeyMapping);
94
+ const sofErrorMessage = signal(void 0);
95
+ const setSofErrorMessage = (message) => {
96
+ sofErrorMessage.value = message;
97
+ };
98
+ const clearSofErrorMessage = () => {
99
+ sofErrorMessage.value = void 0;
100
+ };
101
+ const getSourceOfFundsTypes = async (baseUrl) => {
102
+ return httpGet({
103
+ baseUrl,
104
+ path: `datasets/sourceOfFundsTypes`
105
+ });
106
+ };
107
+ const useSourceOfFundsTypes = (options) => {
108
+ const { baseUrl } = useApiContext();
109
+ return useQuery({
110
+ queryKey: ["sourceOfFundsTypes"],
111
+ queryFn: () => getSourceOfFundsTypes(baseUrl.value),
112
+ ...options
113
+ });
114
+ };
115
+ const sourceOfFunds = "adyen-kyc-source-of-funds";
116
+ const sourceOfFundsWrapperLoading = "adyen-kyc-source-of-funds-wrapper-loading";
117
+ const sourceOfFundsWrapperHeading = "adyen-kyc-source-of-funds-wrapper-heading";
118
+ const sourceOfFundsWrapperDescription = "adyen-kyc-source-of-funds-wrapper-description";
119
+ const sourceOfFundsGettingStarted = "adyen-kyc-source-of-funds-getting-started";
120
+ const sourceOfFundsGettingStartedError = "adyen-kyc-source-of-funds-getting-started-error";
121
+ const sourceOfFundsGettingStartedErrorActions = "adyen-kyc-source-of-funds-getting-started-error-actions";
122
+ const sourceOfFundsGettingStartedCards = "adyen-kyc-source-of-funds-getting-started-cards";
123
+ const sourceOfFundsGettingStartedCardsCardHeader = "adyen-kyc-source-of-funds-getting-started-cards-card-header";
124
+ const sourceOfFundsGettingStartedCardsCardBody = "adyen-kyc-source-of-funds-getting-started-cards-card-body";
125
+ const sourceOfFundsGettingStartedActions = "adyen-kyc-source-of-funds-getting-started-actions";
126
+ const sourceOfFundsAdditionalDataForm = "adyen-kyc-source-of-funds-additional-data-form";
127
+ const sourceOfFundsThirdPartyFundingFinancierGroup = "adyen-kyc-source-of-funds-third-party-funding-financier-group";
128
+ const sourceOfFundsThirdPartyFundingNameAvatarGroup = "adyen-kyc-source-of-funds-third-party-funding-name-avatar-group";
129
+ const sourceOfFundsThirdPartyFundingNameAddressGroup = "adyen-kyc-source-of-funds-third-party-funding-name-address-group";
130
+ const sourceOfFundsSofFinancierFormError = "adyen-kyc-source-of-funds-sof-financier-form-error";
131
+ const sourceOfFundsSofFinancierFormNameGroup = "adyen-kyc-source-of-funds-sof-financier-form-name-group";
132
+ const sourceOfFundsFinancierFooter = "adyen-kyc-source-of-funds-financier-footer";
133
+ const sourceOfFundsGridContainer = "adyen-kyc-source-of-funds-grid-container";
134
+ const sourceOfFundsUploadModalContentField = "adyen-kyc-source-of-funds-upload-modal-content-field";
135
+ const sourceOfFundsUploadModalContentFieldRadioGroup = "adyen-kyc-source-of-funds-upload-modal-content-field-radio-group";
136
+ const sourceOfFundsUploadModalContentRequirementsContainer = "adyen-kyc-source-of-funds-upload-modal-content-requirements-container";
137
+ const sourceOfFundsUploadListHeading = "adyen-kyc-source-of-funds-upload-list-heading";
138
+ const sourceOfFundsModal = "adyen-kyc-source-of-funds-modal";
139
+ const styles = {
140
+ sourceOfFunds,
141
+ sourceOfFundsWrapperLoading,
142
+ sourceOfFundsWrapperHeading,
143
+ sourceOfFundsWrapperDescription,
144
+ sourceOfFundsGettingStarted,
145
+ sourceOfFundsGettingStartedError,
146
+ sourceOfFundsGettingStartedErrorActions,
147
+ sourceOfFundsGettingStartedCards,
148
+ sourceOfFundsGettingStartedCardsCardHeader,
149
+ sourceOfFundsGettingStartedCardsCardBody,
150
+ sourceOfFundsGettingStartedActions,
151
+ sourceOfFundsAdditionalDataForm,
152
+ sourceOfFundsThirdPartyFundingFinancierGroup,
153
+ sourceOfFundsThirdPartyFundingNameAvatarGroup,
154
+ sourceOfFundsThirdPartyFundingNameAddressGroup,
155
+ sourceOfFundsSofFinancierFormError,
156
+ sourceOfFundsSofFinancierFormNameGroup,
157
+ sourceOfFundsFinancierFooter,
158
+ sourceOfFundsGridContainer,
159
+ sourceOfFundsUploadModalContentField,
160
+ sourceOfFundsUploadModalContentFieldRadioGroup,
161
+ sourceOfFundsUploadModalContentRequirementsContainer,
162
+ sourceOfFundsUploadListHeading,
163
+ sourceOfFundsModal
164
+ };
165
+ function AdditionalDataForAssetSale(props) {
166
+ const [isFocused, setIsFocused] = useState(false);
167
+ const { formUtils, data, errors, valid, fieldProblems, handleChangeFor, handleAmountChange } = props;
168
+ const { t: commonT } = useTranslation("common");
169
+ const handleOnAmountBlur = () => {
170
+ setIsFocused(false);
171
+ handleAmountChange("amount");
172
+ };
173
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
174
+ /* @__PURE__ */ jsxs("div", { className: styles.sourceOfFundsGridContainer, children: [
175
+ /* @__PURE__ */ jsx(
176
+ Field,
177
+ {
178
+ el: "fieldset",
179
+ name: "amount",
180
+ label: formUtils.getLabel("amount", "saleAmount"),
181
+ errorMessage: formUtils.getErrorMessage("amount", errors, fieldProblems),
182
+ children: (childProps) => /* @__PURE__ */ jsxs(
183
+ InputGroup,
184
+ {
185
+ ...childProps,
186
+ id: "currencyGroup",
187
+ isFocused,
188
+ isInvalid: Boolean(!valid.amount && errors.amount),
189
+ children: [
190
+ /* @__PURE__ */ jsx(
191
+ Select,
192
+ {
193
+ name: "currency",
194
+ "aria-label": commonT(($) => $["currency"]),
195
+ isMulti: false,
196
+ items: allowedCurrencies,
197
+ selected: data.amount?.currency,
198
+ placeholder: commonT(($) => $["select"]),
199
+ onChange: handleAmountChange("currency"),
200
+ minimal: true
201
+ }
202
+ ),
203
+ /* @__PURE__ */ jsx(
204
+ InputText,
205
+ {
206
+ ...childProps,
207
+ name: "amount",
208
+ value: data.amount?.value,
209
+ readonly: formUtils.isReadOnly("amount"),
210
+ onInput: handleAmountChange("amount"),
211
+ onBlur: handleOnAmountBlur,
212
+ "aria-required": true,
213
+ "aria-invalid": !valid.amount,
214
+ isValid: valid.amount,
215
+ onFocusHandler: () => setIsFocused(true)
216
+ }
217
+ )
218
+ ]
219
+ }
220
+ )
221
+ }
222
+ ),
223
+ /* @__PURE__ */ jsx(
224
+ Field,
225
+ {
226
+ name: "dateOfSourceEvent",
227
+ label: formUtils.getLabel("dateOfSourceEvent", "dateOfSale"),
228
+ errorMessage: formUtils.getErrorMessage("dateOfSourceEvent", errors, fieldProblems),
229
+ isValid: valid.dateOfSourceEvent,
230
+ children: (childProps) => /* @__PURE__ */ jsx(
231
+ InputDate,
232
+ {
233
+ ...childProps,
234
+ name: "dateOfSourceEvent",
235
+ value: data.dateOfSourceEvent,
236
+ onInput: handleChangeFor("dateOfSourceEvent", "input"),
237
+ onBlur: handleChangeFor("dateOfSourceEvent", "blur"),
238
+ "aria-required": true,
239
+ "aria-invalid": !valid.dateOfSourceEvent,
240
+ max: TODAY_DATE
241
+ }
242
+ )
243
+ }
244
+ )
245
+ ] }),
246
+ /* @__PURE__ */ jsx(
247
+ Field,
248
+ {
249
+ name: "description",
250
+ label: formUtils.getLabel("description", "propertyDescription"),
251
+ errorMessage: formUtils.getErrorMessage("description", errors, fieldProblems),
252
+ isValid: valid.description,
253
+ children: (childProps) => /* @__PURE__ */ jsx(
254
+ TextArea,
255
+ {
256
+ ...childProps,
257
+ name: "description",
258
+ value: data.description,
259
+ maxLength: SOF_CHARACTERS_LIMIT,
260
+ onInput: handleChangeFor("description"),
261
+ onBlur: handleChangeFor("description"),
262
+ "aria-invalid": !valid.description
263
+ }
264
+ )
265
+ }
266
+ )
267
+ ] });
268
+ }
269
+ function AdditionalDataForBusiness(props) {
270
+ const [isFocused, setIsFocused] = useState(false);
271
+ const { formUtils, data, errors, valid, fieldProblems, handleChangeFor, handleAmountChange } = props;
272
+ const { t: commonT } = useTranslation("common");
273
+ const handleOnAmountBlur = () => {
274
+ setIsFocused(false);
275
+ handleAmountChange("amount");
276
+ };
277
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
278
+ /* @__PURE__ */ jsx(
279
+ Field,
280
+ {
281
+ el: "fieldset",
282
+ name: "amount",
283
+ label: formUtils.getLabel("amount", "annualTurnover"),
284
+ errorMessage: formUtils.getErrorMessage("amount", errors, fieldProblems),
285
+ helper: commonT(($) => $["useFiguresFromTheMostRecentYearAvailable"]),
286
+ helperPosition: "below",
287
+ children: (childProps) => /* @__PURE__ */ jsxs(
288
+ InputGroup,
289
+ {
290
+ ...childProps,
291
+ id: "currencyGroup",
292
+ isFocused,
293
+ isInvalid: Boolean(!valid.amount && errors.amount),
294
+ children: [
295
+ /* @__PURE__ */ jsx(
296
+ Select,
297
+ {
298
+ name: "currency",
299
+ "aria-label": commonT(($) => $["currency"]),
300
+ isMulti: false,
301
+ items: allowedCurrencies,
302
+ selected: data.amount?.currency,
303
+ placeholder: commonT(($) => $["select"]),
304
+ onChange: handleAmountChange("currency"),
305
+ minimal: true
306
+ }
307
+ ),
308
+ /* @__PURE__ */ jsx(
309
+ InputText,
310
+ {
311
+ ...childProps,
312
+ name: "amount",
313
+ value: data.amount?.value,
314
+ readonly: formUtils.isReadOnly("amount"),
315
+ onInput: handleAmountChange("amount"),
316
+ onBlur: handleOnAmountBlur,
317
+ "aria-required": true,
318
+ "aria-invalid": !valid.amount,
319
+ isValid: valid.amount,
320
+ onFocusHandler: () => setIsFocused(true)
321
+ }
322
+ )
323
+ ]
324
+ }
325
+ )
326
+ }
327
+ ),
328
+ /* @__PURE__ */ jsx(
329
+ Field,
330
+ {
331
+ name: "description",
332
+ label: formUtils.getLabel("description", "businessDescription"),
333
+ errorMessage: formUtils.getErrorMessage("description", errors, fieldProblems),
334
+ isValid: valid.description,
335
+ children: (childProps) => /* @__PURE__ */ jsx(
336
+ TextArea,
337
+ {
338
+ ...childProps,
339
+ name: "description",
340
+ value: data.description,
341
+ maxLength: SOF_CHARACTERS_LIMIT,
342
+ onInput: handleChangeFor("description"),
343
+ onBlur: handleChangeFor("description"),
344
+ "aria-invalid": !valid.description
345
+ }
346
+ )
347
+ }
348
+ )
349
+ ] });
350
+ }
351
+ function AdditionalDataForCryptocurrency(props) {
352
+ const { t: sofT } = useTranslation("sof");
353
+ const { formUtils, data, errors, valid, fieldProblems, handleChangeFor } = props;
354
+ return /* @__PURE__ */ jsx(
355
+ Field,
356
+ {
357
+ name: "cryptocurrencyExchange",
358
+ label: formUtils.getLabel("cryptocurrencyExchange", "cryptocurrencyExchange"),
359
+ errorMessage: formUtils.getErrorMessage("cryptocurrencyExchange", errors, fieldProblems),
360
+ isValid: valid.cryptocurrencyExchange,
361
+ helper: sofT(($) => $["nameOfTheExchangeWhereTheCryptocurrencyWasHeldPriorToSale"]),
362
+ helperPosition: "below",
363
+ children: (childProps) => /* @__PURE__ */ jsx(
364
+ InputText,
365
+ {
366
+ ...childProps,
367
+ name: "cryptocurrencyExchange",
368
+ value: data.cryptocurrencyExchange,
369
+ readonly: formUtils.isReadOnly("cryptocurrencyExchange"),
370
+ onInput: handleChangeFor("cryptocurrencyExchange", "input"),
371
+ onBlur: handleChangeFor("cryptocurrencyExchange", "blur"),
372
+ "aria-required": true,
373
+ "aria-invalid": !valid.cryptocurrencyExchange,
374
+ isValid: valid.cryptocurrencyExchange
375
+ }
376
+ )
377
+ }
378
+ );
379
+ }
380
+ const radioItems = [
381
+ {
382
+ id: "individual",
383
+ name: "individual"
384
+ },
385
+ {
386
+ id: "organization",
387
+ name: "organization"
388
+ }
389
+ ];
390
+ function AdditionalDataOriginatorLegalEntity(props) {
391
+ const { t: sofT } = useTranslation("sof");
392
+ const { formUtils, data, errors, valid, fieldProblems, handleChangeFor, sourceOfFundsType } = props;
393
+ const isDonations = useMemo(() => sourceOfFundsType === "donations", [sourceOfFundsType]);
394
+ const countryTranslationKey = isDonations && data?.originatorType === "individual" ? "donorsCountryOfResidence" : data?.originatorType === "organization" ? "organizationsCountryOfOperation" : "decedentsCountryOfDeath";
395
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
396
+ /* @__PURE__ */ jsx(
397
+ Field,
398
+ {
399
+ el: "fieldset",
400
+ name: "originatorType",
401
+ className: styles.sourceOfFundsUploadModalContentField,
402
+ label: sofT(
403
+ ($) => $[isDonations ? "whereDidThisGiftOrDonationComeFrom" : "whereDidThisInheritanceComeFrom"]
404
+ ),
405
+ errorMessage: formUtils.getErrorMessage("originatorType", errors, fieldProblems),
406
+ isValid: valid.originatorType,
407
+ children: (childProps) => /* @__PURE__ */ jsx(
408
+ RadioGroup,
409
+ {
410
+ ...childProps,
411
+ name: "originatorType",
412
+ className: styles.sourceOfFundsUploadModalContentFieldRadioGroup,
413
+ items: radioItems,
414
+ value: data.originatorType,
415
+ disabled: false,
416
+ onChange: handleChangeFor("originatorType", "input"),
417
+ "aria-required": true
418
+ }
419
+ )
420
+ }
421
+ ),
422
+ data?.originatorType === "organization" && /* @__PURE__ */ jsx(
423
+ Field,
424
+ {
425
+ name: "legalName",
426
+ label: formUtils.getLabel("legalName", "organizationsLegalName"),
427
+ errorMessage: formUtils.getErrorMessage("legalName", errors, fieldProblems),
428
+ isValid: valid.legalName,
429
+ children: (childProps) => /* @__PURE__ */ jsx(
430
+ InputText,
431
+ {
432
+ ...childProps,
433
+ name: "legalName",
434
+ value: data.legalName,
435
+ readonly: formUtils.isReadOnly("legalName"),
436
+ onInput: handleChangeFor("legalName", "input"),
437
+ onBlur: handleChangeFor("legalName", "blur"),
438
+ "aria-required": true,
439
+ "aria-invalid": !valid.legalName,
440
+ isValid: valid.legalName
441
+ }
442
+ )
443
+ }
444
+ ),
445
+ data?.originatorType === "individual" && /* @__PURE__ */ jsxs(Fragment, { children: [
446
+ /* @__PURE__ */ jsx(
447
+ Field,
448
+ {
449
+ name: "firstName",
450
+ label: formUtils.getLabel(
451
+ "firstName",
452
+ isDonations ? "donorsLegalFirstName" : "decedentsLegalFirstName"
453
+ ),
454
+ errorMessage: formUtils.getErrorMessage("firstName", errors, fieldProblems),
455
+ isValid: valid.firstName,
456
+ children: (childProps) => /* @__PURE__ */ jsx(
457
+ InputText,
458
+ {
459
+ ...childProps,
460
+ name: "firstName",
461
+ value: data.firstName,
462
+ readonly: formUtils.isReadOnly("firstName"),
463
+ onInput: handleChangeFor("firstName", "input"),
464
+ onBlur: handleChangeFor("firstName", "blur"),
465
+ "aria-required": true,
466
+ "aria-invalid": !valid.firstName,
467
+ isValid: valid.firstName
468
+ }
469
+ )
470
+ }
471
+ ),
472
+ /* @__PURE__ */ jsx(
473
+ Field,
474
+ {
475
+ name: "lastName",
476
+ label: formUtils.getLabel(
477
+ "lastName",
478
+ isDonations ? "donorsLegalLastName" : "decedentsLegalLastName"
479
+ ),
480
+ errorMessage: formUtils.getErrorMessage("lastName", errors, fieldProblems),
481
+ isValid: valid.lastName,
482
+ children: (childProps) => /* @__PURE__ */ jsx(
483
+ InputText,
484
+ {
485
+ ...childProps,
486
+ name: "lastName",
487
+ value: data.lastName,
488
+ readonly: formUtils.isReadOnly("lastName"),
489
+ onInput: handleChangeFor("lastName", "input"),
490
+ onBlur: handleChangeFor("lastName", "blur"),
491
+ "aria-required": true,
492
+ "aria-invalid": !valid.lastName,
493
+ isValid: valid.lastName
494
+ }
495
+ )
496
+ }
497
+ )
498
+ ] }),
499
+ data?.originatorType && /* @__PURE__ */ jsxs(Fragment, { children: [
500
+ /* @__PURE__ */ jsx(
501
+ Field,
502
+ {
503
+ name: "relationship",
504
+ label: formUtils.getLabel(
505
+ "relationship",
506
+ isDonations && data?.originatorType === "individual" ? "yourRelationshipToDonor" : data?.originatorType === "organization" ? "yourRelationshipToOrganization" : "yourRelationshipToDecedent"
507
+ ),
508
+ errorMessage: formUtils.getErrorMessage("relationship", errors, fieldProblems),
509
+ isValid: valid.relationship,
510
+ children: (childProps) => /* @__PURE__ */ jsx(
511
+ InputText,
512
+ {
513
+ ...childProps,
514
+ name: "relationship",
515
+ value: data.relationship,
516
+ readonly: formUtils.isReadOnly("relationship"),
517
+ onInput: handleChangeFor("relationship", "input"),
518
+ onBlur: handleChangeFor("relationship", "blur"),
519
+ "aria-required": true,
520
+ "aria-invalid": !valid.relationship,
521
+ isValid: valid.relationship
522
+ }
523
+ )
524
+ }
525
+ ),
526
+ /* @__PURE__ */ jsx(
527
+ CountryField,
528
+ {
529
+ data: { country: data.country },
530
+ valid: { country: valid.country },
531
+ errors: {
532
+ country: formUtils.getErrorMessage("country", errors, fieldProblems)
533
+ },
534
+ labels: {
535
+ country: sofT(($) => $[countryTranslationKey])
536
+ },
537
+ readonly: formUtils.isReadOnly("country"),
538
+ handleChangeFor
539
+ }
540
+ )
541
+ ] })
542
+ ] });
543
+ }
544
+ function AdditionalDataForDonation(props) {
545
+ const { formUtils, data, errors, valid, fieldProblems, handleChangeFor } = props;
546
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
547
+ /* @__PURE__ */ jsx(
548
+ AdditionalDataOriginatorLegalEntity,
549
+ {
550
+ formUtils,
551
+ handleChangeFor,
552
+ data,
553
+ errors,
554
+ valid,
555
+ fieldProblems,
556
+ sourceOfFundsType: "donations"
557
+ }
558
+ ),
559
+ /* @__PURE__ */ jsxs("div", { className: styles.sourceOfFundsGridContainer, children: [
560
+ /* @__PURE__ */ jsx(
561
+ Field,
562
+ {
563
+ name: "purpose",
564
+ label: formUtils.getLabel("purpose", "reason"),
565
+ errorMessage: formUtils.getErrorMessage("purpose", errors, fieldProblems),
566
+ isValid: valid.purpose,
567
+ children: (childProps) => /* @__PURE__ */ jsx(
568
+ InputText,
569
+ {
570
+ ...childProps,
571
+ name: "purpose",
572
+ value: data.purpose,
573
+ readonly: formUtils.isReadOnly("purpose"),
574
+ onInput: handleChangeFor("purpose", "input"),
575
+ onBlur: handleChangeFor("purpose", "blur"),
576
+ "aria-required": true,
577
+ "aria-invalid": !valid.purpose,
578
+ isValid: valid.purpose
579
+ }
580
+ )
581
+ }
582
+ ),
583
+ /* @__PURE__ */ jsx(
584
+ Field,
585
+ {
586
+ name: "dateOfFundsReceived",
587
+ label: formUtils.getLabel("dateOfFundsReceived", "date"),
588
+ errorMessage: formUtils.getErrorMessage("dateOfFundsReceived", errors, fieldProblems),
589
+ isValid: valid.dateOfFundsReceived,
590
+ children: (childProps) => /* @__PURE__ */ jsx(
591
+ InputDate,
592
+ {
593
+ ...childProps,
594
+ name: "dateOfFundsReceived",
595
+ value: formatDateForInput(data.dateOfFundsReceived),
596
+ onInput: handleChangeFor("dateOfFundsReceived", "input"),
597
+ onBlur: handleChangeFor("dateOfFundsReceived", "blur"),
598
+ "aria-required": true,
599
+ "aria-invalid": !valid.dateOfFundsReceived,
600
+ max: TODAY_DATE
601
+ }
602
+ )
603
+ }
604
+ )
605
+ ] })
606
+ ] });
607
+ }
608
+ function AdditionalDataForGambling(props) {
609
+ const { t: commonT } = useTranslation("common");
610
+ const [focusedInput, setFocusedInput] = useState();
611
+ const { formUtils, data, errors, valid, fieldProblems, handleChangeFor, handleAmountChange } = props;
612
+ const handleOnAmountBlur = () => {
613
+ setFocusedInput(void 0);
614
+ handleAmountChange("amount");
615
+ };
616
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
617
+ /* @__PURE__ */ jsx(
618
+ Field,
619
+ {
620
+ el: "fieldset",
621
+ name: "amount",
622
+ label: formUtils.getLabel("amount", "totalAmountWon"),
623
+ errorMessage: formUtils.getErrorMessage("amount", errors, fieldProblems),
624
+ children: (childProps) => /* @__PURE__ */ jsxs(
625
+ InputGroup,
626
+ {
627
+ ...childProps,
628
+ id: "currencyGroup",
629
+ isFocused: focusedInput === "amount",
630
+ isInvalid: Boolean(!valid.amount && errors.amount),
631
+ children: [
632
+ /* @__PURE__ */ jsx(
633
+ Select,
634
+ {
635
+ name: "currency",
636
+ "aria-label": commonT(($) => $["currency"]),
637
+ isMulti: false,
638
+ items: allowedCurrencies,
639
+ selected: data.amount?.currency,
640
+ placeholder: commonT(($) => $["select"]),
641
+ onChange: handleAmountChange("currency"),
642
+ minimal: true
643
+ }
644
+ ),
645
+ /* @__PURE__ */ jsx(
646
+ InputText,
647
+ {
648
+ ...childProps,
649
+ name: "amount",
650
+ value: data.amount?.value,
651
+ readonly: formUtils.isReadOnly("amount"),
652
+ onInput: handleAmountChange("amount"),
653
+ onBlur: handleOnAmountBlur,
654
+ "aria-required": true,
655
+ "aria-invalid": !valid.amount,
656
+ isValid: valid.amount,
657
+ onFocusHandler: () => setFocusedInput("amount")
658
+ }
659
+ )
660
+ ]
661
+ }
662
+ )
663
+ }
664
+ ),
665
+ /* @__PURE__ */ jsx(
666
+ Field,
667
+ {
668
+ name: "dateOfSourceEvent",
669
+ label: formUtils.getLabel("dateOfSourceEvent", "dateOfWinning"),
670
+ errorMessage: formUtils.getErrorMessage("dateOfSourceEvent", errors, fieldProblems),
671
+ isValid: valid.dateOfSourceEvent,
672
+ children: (childProps) => /* @__PURE__ */ jsx(
673
+ InputDate,
674
+ {
675
+ ...childProps,
676
+ name: "dateOfSourceEvent",
677
+ value: formatDateForInput(data.dateOfSourceEvent),
678
+ onInput: handleChangeFor("dateOfSourceEvent", "input"),
679
+ onBlur: handleChangeFor("dateOfSourceEvent", "blur"),
680
+ "aria-required": true,
681
+ "aria-invalid": !valid.dateOfSourceEvent,
682
+ max: TODAY_DATE
683
+ }
684
+ )
685
+ }
686
+ ),
687
+ /* @__PURE__ */ jsx(
688
+ Field,
689
+ {
690
+ name: "website",
691
+ label: formUtils.getLabel("website", "gamblingEstablishmentWebsite"),
692
+ errorMessage: formUtils.getErrorMessage("website", errors, fieldProblems),
693
+ children: (childProps) => /* @__PURE__ */ jsx(
694
+ InputGroup,
695
+ {
696
+ ...childProps,
697
+ id: "websiteGroup",
698
+ isFocused: focusedInput === "website",
699
+ isInvalid: Boolean(!valid.website && errors.website),
700
+ children: /* @__PURE__ */ jsx(
701
+ InputText,
702
+ {
703
+ ...childProps,
704
+ placeholder: "https://",
705
+ name: "website",
706
+ value: data.website,
707
+ readonly: formUtils.isReadOnly("website"),
708
+ onInput: handleChangeFor("website", "input"),
709
+ onBlur: handleChangeFor("website", "blur"),
710
+ "aria-required": true,
711
+ "aria-invalid": !valid.website,
712
+ isValid: valid.website,
713
+ onFocusHandler: () => setFocusedInput("website")
714
+ }
715
+ )
716
+ }
717
+ )
718
+ }
719
+ )
720
+ ] });
721
+ }
722
+ function AdditionalDataForInheritance(props) {
723
+ const [isFocused, setIsFocused] = useState(false);
724
+ const { formUtils, data, errors, valid, fieldProblems, handleChangeFor, handleAmountChange } = props;
725
+ const { t: commonT } = useTranslation("common");
726
+ const handleOnAmountBlur = () => {
727
+ setIsFocused(false);
728
+ handleAmountChange("amount");
729
+ };
730
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
731
+ /* @__PURE__ */ jsx(
732
+ AdditionalDataOriginatorLegalEntity,
733
+ {
734
+ formUtils,
735
+ handleChangeFor,
736
+ data,
737
+ errors,
738
+ valid,
739
+ fieldProblems,
740
+ sourceOfFundsType: "inheritance"
741
+ }
742
+ ),
743
+ /* @__PURE__ */ jsxs("div", { className: styles.sourceOfFundsGridContainer, children: [
744
+ /* @__PURE__ */ jsx(
745
+ Field,
746
+ {
747
+ el: "fieldset",
748
+ name: "amount",
749
+ label: formUtils.getLabel("amount", "inheritanceAmount"),
750
+ errorMessage: formUtils.getErrorMessage("amount", errors, fieldProblems),
751
+ children: (childProps) => /* @__PURE__ */ jsxs(
752
+ InputGroup,
753
+ {
754
+ ...childProps,
755
+ id: "currencyGroup",
756
+ isFocused,
757
+ isInvalid: Boolean(!valid.amount && errors.amount),
758
+ children: [
759
+ /* @__PURE__ */ jsx(
760
+ Select,
761
+ {
762
+ name: "currency",
763
+ "aria-label": commonT(($) => $["currency"]),
764
+ isMulti: false,
765
+ items: allowedCurrencies ?? [],
766
+ selected: data.amount?.currency,
767
+ placeholder: commonT(($) => $["select"]),
768
+ onChange: handleAmountChange("currency"),
769
+ minimal: true
770
+ }
771
+ ),
772
+ /* @__PURE__ */ jsx(
773
+ InputText,
774
+ {
775
+ ...childProps,
776
+ name: "amount",
777
+ value: data.amount?.value,
778
+ readonly: formUtils.isReadOnly("amount"),
779
+ onInput: handleAmountChange("amount"),
780
+ onBlur: handleOnAmountBlur,
781
+ "aria-required": true,
782
+ "aria-invalid": !valid.amount,
783
+ isValid: valid.amount,
784
+ onFocusHandler: () => setIsFocused(true)
785
+ }
786
+ )
787
+ ]
788
+ }
789
+ )
790
+ }
791
+ ),
792
+ /* @__PURE__ */ jsx(
793
+ Field,
794
+ {
795
+ name: "dateOfFundsReceived",
796
+ label: formUtils.getLabel("dateOfFundsReceived", "inheritanceReceivedOn"),
797
+ errorMessage: formUtils.getErrorMessage("dateOfFundsReceived", errors, fieldProblems),
798
+ isValid: valid.dateOfFundsReceived,
799
+ children: (childProps) => /* @__PURE__ */ jsx(
800
+ InputDate,
801
+ {
802
+ ...childProps,
803
+ name: "dateOfFundsReceived",
804
+ value: formatDateForInput(data.dateOfFundsReceived),
805
+ onInput: handleChangeFor("dateOfFundsReceived", "input"),
806
+ onBlur: handleChangeFor("dateOfFundsReceived", "blur"),
807
+ "aria-required": true,
808
+ "aria-invalid": !valid.dateOfFundsReceived,
809
+ max: TODAY_DATE
810
+ }
811
+ )
812
+ }
813
+ )
814
+ ] })
815
+ ] });
816
+ }
817
+ const SOFFinancierModal = (props) => {
818
+ const { t: sofT } = useTranslation("sof");
819
+ const { t: commonT } = useTranslation("common");
820
+ const { financier, handleModalClose, indexNumber, handleFinancierUpdate } = props;
821
+ const [formData, setFormData] = useState(financier);
822
+ const [formErrors, setFormErrors] = useState({});
823
+ const [confirmOpen, setConfirmOpen] = useState(false);
824
+ const [isFocused, setIsFocused] = useState(false);
825
+ const [errorMessage, setErrorMessage] = useState("");
826
+ const handleInputUpdate = (key, e) => {
827
+ const inputEl = e.target;
828
+ setErrorMessage("");
829
+ const value = inputEl?.value;
830
+ let inputData = {
831
+ [key]: value
832
+ };
833
+ if (["amount", "currency"].includes(key)) {
834
+ const amountValue = {
835
+ currency: key === "currency" ? value : formData?.amount?.currency,
836
+ value: key === "currency" ? formData?.amount?.value : value
837
+ };
838
+ inputData = { amount: amountValue };
839
+ }
840
+ const data = {
841
+ ...formData,
842
+ ...inputData
843
+ };
844
+ setFormData(data);
845
+ const errors = getInputErrors({ formErrors, data, key, value });
846
+ setFormErrors(errors);
847
+ };
848
+ const handleOnAmountBlur = () => {
849
+ setIsFocused(false);
850
+ const errors = getInputErrors({
851
+ formErrors,
852
+ data: formData,
853
+ key: "amount",
854
+ value: formData?.amount?.value
855
+ });
856
+ setFormErrors(errors);
857
+ };
858
+ const allFieldsFilled = (data) => {
859
+ return data?.firstName && data?.lastName && data?.location && data?.amount?.currency && !Number.isNaN(Number(data?.amount?.value));
860
+ };
861
+ const handleFinancierSave = () => {
862
+ if (formData && allFieldsFilled(formData)) {
863
+ handleFinancierUpdate({ formData, indexNumber });
864
+ handleModalClose();
865
+ } else {
866
+ const fields = [
867
+ "firstName",
868
+ "lastName",
869
+ "location",
870
+ "amount"
871
+ ];
872
+ const errors = fields.reduce((acc, key) => {
873
+ const value = key === "amount" ? formData?.amount?.value : formData?.[key];
874
+ return {
875
+ ...acc,
876
+ ...getInputErrors({
877
+ formErrors: void 0,
878
+ data: formData,
879
+ key,
880
+ value
881
+ })
882
+ };
883
+ }, {});
884
+ setFormErrors(errors);
885
+ setErrorMessage(sofT(($) => $["pleaseFillInAllFields"]));
886
+ }
887
+ };
888
+ const handleFinancierDelete = async () => {
889
+ handleFinancierUpdate({ indexNumber });
890
+ handleModalClose();
891
+ };
892
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
893
+ /* @__PURE__ */ jsx(Modal, { onClose: handleModalClose, ariaLabel: sofT(($) => $["investorDetails"]), inset: true, children: /* @__PURE__ */ jsxs("div", { className: styles.sourceOfFundsModal, children: [
894
+ /* @__PURE__ */ jsx(
895
+ Typography,
896
+ {
897
+ variant: "title-l",
898
+ el: "h3",
899
+ className: styles.sourceOfFundsGettingStartedHelpHeader,
900
+ children: sofT(($) => $["investorDetails"])
901
+ }
902
+ ),
903
+ /* @__PURE__ */ jsxs("div", { className: styles.sourceOfFundsSofFinancierForm, children: [
904
+ errorMessage && /* @__PURE__ */ jsx(
905
+ Alert,
906
+ {
907
+ title: sofT(($) => $["errorSubmittingData"]),
908
+ variant: "error",
909
+ className: styles.sourceOfFundsSofFinancierFormError,
910
+ children: errorMessage
911
+ }
912
+ ),
913
+ /* @__PURE__ */ jsxs("div", { className: styles.sourceOfFundsSofFinancierFormNameGroup, children: [
914
+ /* @__PURE__ */ jsx(
915
+ Field,
916
+ {
917
+ name: "firstName",
918
+ label: commonT(($) => $["firstName"]),
919
+ errorMessage: formErrors.firstName,
920
+ isValid: !formErrors.firstName,
921
+ children: (childProps) => /* @__PURE__ */ jsx(
922
+ InputText,
923
+ {
924
+ ...childProps,
925
+ name: "firstName",
926
+ value: formData?.firstName,
927
+ onInput: (e) => handleInputUpdate("firstName", e),
928
+ onBlur: (e) => handleInputUpdate("firstName", e),
929
+ "aria-required": true,
930
+ "aria-invalid": Boolean(formErrors.firstName),
931
+ isValid: !formErrors.firstName
932
+ }
933
+ )
934
+ }
935
+ ),
936
+ /* @__PURE__ */ jsx(
937
+ Field,
938
+ {
939
+ name: "lastName",
940
+ label: commonT(($) => $["lastName"]),
941
+ errorMessage: formErrors.lastName,
942
+ isValid: !formErrors.lastName,
943
+ children: (childProps) => /* @__PURE__ */ jsx(
944
+ InputText,
945
+ {
946
+ ...childProps,
947
+ name: "lastName",
948
+ value: formData?.lastName,
949
+ onInput: (e) => handleInputUpdate("lastName", e),
950
+ onBlur: (e) => handleInputUpdate("lastName", e),
951
+ "aria-required": true,
952
+ "aria-invalid": Boolean(formErrors.lastName),
953
+ isValid: !formErrors.lastName
954
+ }
955
+ )
956
+ }
957
+ )
958
+ ] }),
959
+ /* @__PURE__ */ jsx(
960
+ Field,
961
+ {
962
+ name: "location",
963
+ label: sofT(($) => $["investorLocation"]),
964
+ errorMessage: formErrors.location,
965
+ isValid: !formErrors.location,
966
+ helperPosition: "below",
967
+ showErrorIconBottom: true,
968
+ helper: sofT(($) => $["theCityAndCountryRegion"]),
969
+ children: (childProps) => /* @__PURE__ */ jsx(
970
+ InputText,
971
+ {
972
+ ...childProps,
973
+ name: "location",
974
+ value: formData?.location,
975
+ onInput: (e) => handleInputUpdate("location", e),
976
+ onBlur: (e) => handleInputUpdate("location", e),
977
+ "aria-required": true,
978
+ "aria-invalid": Boolean(formErrors.location),
979
+ isValid: !formErrors.location
980
+ }
981
+ )
982
+ }
983
+ ),
984
+ /* @__PURE__ */ jsx(
985
+ Field,
986
+ {
987
+ el: "fieldset",
988
+ name: "amount",
989
+ label: sofT(($) => $["investmentAmount"]),
990
+ errorMessage: formErrors.amount,
991
+ isValid: !formErrors.amount,
992
+ children: (childProps) => /* @__PURE__ */ jsxs(InputGroup, { ...childProps, id: "currencyGroup", isFocused, children: [
993
+ /* @__PURE__ */ jsx(
994
+ Select,
995
+ {
996
+ minimal: true,
997
+ name: "currency",
998
+ "aria-label": commonT(($) => $["currency"]),
999
+ isMulti: false,
1000
+ items: allowedCurrencies,
1001
+ selected: formData?.amount?.currency,
1002
+ placeholder: commonT(($) => $["select"]),
1003
+ onChange: (e) => handleInputUpdate("currency", e)
1004
+ }
1005
+ ),
1006
+ /* @__PURE__ */ jsx(
1007
+ InputText,
1008
+ {
1009
+ ...childProps,
1010
+ name: "amount",
1011
+ value: formData?.amount?.value,
1012
+ onInput: (e) => handleInputUpdate("amount", e),
1013
+ onBlur: handleOnAmountBlur,
1014
+ "aria-required": true,
1015
+ onFocusHandler: () => setIsFocused(true)
1016
+ }
1017
+ )
1018
+ ] })
1019
+ }
1020
+ )
1021
+ ] }),
1022
+ /* @__PURE__ */ jsxs("div", { className: styles.sourceOfFundsFinancierFooter, children: [
1023
+ /* @__PURE__ */ jsx(Button, { onClick: handleFinancierSave, children: commonT(($) => $["save"]) }),
1024
+ Number.isFinite(indexNumber) && /* @__PURE__ */ jsx(Button, { variant: "tertiary", onClick: () => setConfirmOpen(true), children: sofT(($) => $["deleteInvestorDetails"]) })
1025
+ ] })
1026
+ ] }) }),
1027
+ confirmOpen && /* @__PURE__ */ jsx(
1028
+ Confirm,
1029
+ {
1030
+ title: sofT(($) => $["areYouSureYouWantToDeleteThisInvestorDetails"]),
1031
+ confirmText: commonT(($) => $["delete"]),
1032
+ onConfirm: handleFinancierDelete,
1033
+ onCancel: () => setConfirmOpen(false),
1034
+ critical: true
1035
+ }
1036
+ )
1037
+ ] });
1038
+ };
1039
+ function AdditionalDataForThirdParty(props) {
1040
+ const [showFinancierModal, setShowFinancierModal] = useState(false);
1041
+ const [activeFinancier, setActiveFinancier] = useState();
1042
+ const [activeIndex, setActiveIndex] = useState();
1043
+ const { data, fieldProblems, errors, handleChangeFor, formUtils, valid } = props;
1044
+ const { t: sofT } = useTranslation("sof");
1045
+ const { i18n } = useI18nContext();
1046
+ const handleToggleFinancierModal = () => {
1047
+ setActiveFinancier(void 0);
1048
+ setActiveIndex(void 0);
1049
+ setShowFinancierModal(!showFinancierModal);
1050
+ };
1051
+ const handleShowUpdateFinancierModal = (index) => {
1052
+ if (!data.financiers) {
1053
+ return;
1054
+ }
1055
+ const financier = data.financiers[index];
1056
+ setActiveFinancier(financier);
1057
+ setActiveIndex(index);
1058
+ setShowFinancierModal(true);
1059
+ };
1060
+ const handleFinancierUpdate = ({
1061
+ formData,
1062
+ indexNumber
1063
+ }) => {
1064
+ const existingFinanciers = data.financiers || [];
1065
+ let newFinanciers = [];
1066
+ if (!formData) {
1067
+ if (indexNumber !== void 0) {
1068
+ newFinanciers = existingFinanciers.filter((_, index) => index !== indexNumber);
1069
+ }
1070
+ } else {
1071
+ newFinanciers = [...existingFinanciers, formData];
1072
+ if (Number.isFinite(indexNumber)) {
1073
+ newFinanciers = existingFinanciers.map(
1074
+ (existingFinancier, i) => i === indexNumber ? formData : existingFinancier
1075
+ );
1076
+ }
1077
+ }
1078
+ const financierEvent = {
1079
+ target: {
1080
+ name: "financiers",
1081
+ value: newFinanciers
1082
+ }
1083
+ };
1084
+ handleChangeFor("financiers")(financierEvent);
1085
+ };
1086
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
1087
+ errors.financiers && !valid.financiers && /* @__PURE__ */ jsx(
1088
+ Alert,
1089
+ {
1090
+ title: i18n.get(
1091
+ formUtils.getErrorMessage("financiers", errors, fieldProblems)
1092
+ ),
1093
+ variant: "error",
1094
+ className: styles.sourceOfFundsSofFinancierFormError,
1095
+ children: sofT(($) => $["addAtLeastOneInvestor"])
1096
+ }
1097
+ ),
1098
+ data.financiers?.map((financier, index) => /* @__PURE__ */ jsxs(
1099
+ "button",
1100
+ {
1101
+ type: "button",
1102
+ onClick: () => handleShowUpdateFinancierModal(index),
1103
+ className: styles.sourceOfFundsThirdPartyFundingFinancierGroup,
1104
+ children: [
1105
+ /* @__PURE__ */ jsxs("div", { className: styles.sourceOfFundsThirdPartyFundingNameAvatarGroup, children: [
1106
+ /* @__PURE__ */ jsx(Avatar, { iconName: "user", circle: true }),
1107
+ /* @__PURE__ */ jsxs("div", { className: styles.sourceOfFundsThirdPartyFundingNameAddressGroup, children: [
1108
+ /* @__PURE__ */ jsxs(Typography, { el: "div", variant: "body-strongest", children: [
1109
+ financier.firstName,
1110
+ " ",
1111
+ financier.lastName
1112
+ ] }),
1113
+ /* @__PURE__ */ jsx(Typography, { el: "div", variant: "caption", children: financier.location })
1114
+ ] })
1115
+ ] }),
1116
+ /* @__PURE__ */ jsx("div", { children: financier.amount?.currency && financier.amount?.value ? formatAmountWithCurrency(
1117
+ financier.amount.value,
1118
+ financier.amount?.currency
1119
+ ) : "" })
1120
+ ]
1121
+ },
1122
+ index
1123
+ )),
1124
+ /* @__PURE__ */ jsx(
1125
+ "button",
1126
+ {
1127
+ type: "button",
1128
+ className: styles.sourceOfFundsThirdPartyFundingFinancierGroup,
1129
+ onClick: handleToggleFinancierModal,
1130
+ children: /* @__PURE__ */ jsxs("div", { className: styles.sourceOfFundsThirdPartyFundingNameAvatarGroup, children: [
1131
+ /* @__PURE__ */ jsx(Avatar, { iconName: "plus", variant: "tertiary", circle: true }),
1132
+ /* @__PURE__ */ jsx(Typography, { el: "div", variant: "body-strongest", children: sofT(($) => $["addInvestor"]) })
1133
+ ] })
1134
+ }
1135
+ ),
1136
+ showFinancierModal && /* @__PURE__ */ jsx(
1137
+ SOFFinancierModal,
1138
+ {
1139
+ financier: activeFinancier,
1140
+ indexNumber: activeIndex,
1141
+ handleModalClose: handleToggleFinancierModal,
1142
+ handleFinancierUpdate
1143
+ }
1144
+ )
1145
+ ] });
1146
+ }
1147
+ function SourceOfFundsAdditionalData(props) {
1148
+ const { t } = useTranslation("common");
1149
+ const { form } = useFormContext();
1150
+ const {
1151
+ handleChangeFor: multiFormHandleChangeFor,
1152
+ data: { additionalData: data, sourceOfFundsType },
1153
+ errors: { additionalData: errors },
1154
+ valid: { additionalData: valid },
1155
+ fieldProblems: { additionalData: fieldProblems }
1156
+ } = form;
1157
+ const handleChangeFor = useMemo(
1158
+ () => (key, mode) => multiFormHandleChangeFor(key, "additionalData", mode),
1159
+ [multiFormHandleChangeFor]
1160
+ );
1161
+ const handleAmountChange = (key) => (e) => {
1162
+ const rawValue = e.target.value;
1163
+ const updatedAmount = {
1164
+ ...data?.amount,
1165
+ ...key === "currency" ? { currency: rawValue } : { value: rawValue === "" ? void 0 : Number(rawValue) }
1166
+ };
1167
+ handleChangeFor("amount")({ target: { name: "amount", value: updatedAmount } });
1168
+ };
1169
+ const formUtils = createFormUtils(props, t);
1170
+ const additionalDataProps = {
1171
+ formUtils,
1172
+ handleChangeFor,
1173
+ data,
1174
+ errors,
1175
+ valid,
1176
+ fieldProblems,
1177
+ handleAmountChange
1178
+ };
1179
+ const renderSubForms = () => {
1180
+ switch (sourceOfFundsType?.type) {
1181
+ case "gamblingWinnings":
1182
+ return /* @__PURE__ */ jsx(AdditionalDataForGambling, { ...additionalDataProps });
1183
+ case "cryptocurrencyIncome":
1184
+ return /* @__PURE__ */ jsx(AdditionalDataForCryptocurrency, { ...additionalDataProps });
1185
+ case "business":
1186
+ return /* @__PURE__ */ jsx(AdditionalDataForBusiness, { ...additionalDataProps });
1187
+ case "assetSale":
1188
+ return /* @__PURE__ */ jsx(AdditionalDataForAssetSale, { ...additionalDataProps });
1189
+ case "thirdPartyFunding":
1190
+ return /* @__PURE__ */ jsx(AdditionalDataForThirdParty, { ...additionalDataProps });
1191
+ case "inheritance":
1192
+ return /* @__PURE__ */ jsx(AdditionalDataForInheritance, { ...additionalDataProps });
1193
+ case "donations":
1194
+ return /* @__PURE__ */ jsx(AdditionalDataForDonation, { ...additionalDataProps });
1195
+ default:
1196
+ return null;
1197
+ }
1198
+ };
1199
+ return /* @__PURE__ */ jsxs("form", { className: styles.sourceOfFundsAdditionalDataForm, children: [
1200
+ /* @__PURE__ */ jsx(
1201
+ ErrorPanel,
1202
+ {
1203
+ verificationErrors: props?.formVerificationErrors,
1204
+ validationErrors: props?.fieldValidationErrors,
1205
+ formUtils,
1206
+ id: "ariaErrorField"
1207
+ }
1208
+ ),
1209
+ renderSubForms()
1210
+ ] });
1211
+ }
1212
+ function SourceOfFundsType(props) {
1213
+ const { t } = useTranslation(["common", "sof"]);
1214
+ const { i18n } = useI18nContext();
1215
+ const {
1216
+ data: formData,
1217
+ categories,
1218
+ errors: formErrors,
1219
+ fieldValidationErrors: formFieldProblems
1220
+ } = props;
1221
+ const { form } = useFormContext();
1222
+ const { handleChangeFor } = form;
1223
+ const handleFieldChange = (fieldName, mode) => handleChangeFor(fieldName, "sourceOfFundsType", mode);
1224
+ const formUtils = createFormUtils(props, t);
1225
+ const categoryItems = [
1226
+ {
1227
+ value: "adyen",
1228
+ label: t(($) => $["transactionsOnThisPlatform"], { ns: "sof" }),
1229
+ icon: getIconById("adyen")
1230
+ },
1231
+ ...categories?.map((item) => ({
1232
+ value: item.id,
1233
+ label: t(($) => $[sofCategoryItemMapper[item.name]], { ns: "sof" }),
1234
+ icon: getIconById(item.id)
1235
+ })) ?? []
1236
+ ];
1237
+ const errorMessage = formUtils.getErrorMessage("type", formErrors, formFieldProblems);
1238
+ return /* @__PURE__ */ jsx(Field, { el: "fieldset", name: "type", children: () => /* @__PURE__ */ jsx(
1239
+ TileGroup,
1240
+ {
1241
+ name: "type",
1242
+ tiles: categoryItems,
1243
+ errorMessage: typeof errorMessage !== "boolean" ? i18n.get(errorMessage) : errorMessage,
1244
+ selected: formData?.type ? formData.type : [],
1245
+ onChange: handleFieldChange("type", "input")
1246
+ }
1247
+ ) });
1248
+ }
1249
+ function getIconById(id) {
1250
+ switch (id) {
1251
+ case "adyen":
1252
+ return "store";
1253
+ case "business":
1254
+ return "revenue-accelerate";
1255
+ case "assetSale":
1256
+ return "house";
1257
+ case "dividendIncome":
1258
+ return "graph-up";
1259
+ case "thirdPartyFunding":
1260
+ return "graph";
1261
+ case "employment":
1262
+ return "headquarter";
1263
+ case "donations":
1264
+ return "gift";
1265
+ case "inheritance":
1266
+ return "certificate";
1267
+ case "financialAid":
1268
+ return "capital";
1269
+ case "rentalIncome":
1270
+ return "house";
1271
+ case "royaltyIncome":
1272
+ return "cash-stack";
1273
+ case "pensionIncome":
1274
+ return "bank";
1275
+ case "insuranceSettlement":
1276
+ return "funds-in";
1277
+ case "cryptocurrencyIncome":
1278
+ return "coins";
1279
+ case "loans":
1280
+ return "capital";
1281
+ case "gamblingWinnings":
1282
+ return "cash-stack";
1283
+ default:
1284
+ return "contract";
1285
+ }
1286
+ }
1287
+ function SourceOfFunds(props) {
1288
+ const { activeForm, activeBusinessLine, sourceOfFundsType } = props;
1289
+ const { form } = useFormContext();
1290
+ const { data: formData, errors, valid, fieldProblems: fieldValidationErrors } = form;
1291
+ const { data: sourceOfFundsTypesData, isLoading } = useSourceOfFundsTypes();
1292
+ const { t: sofT } = useTranslation("sof");
1293
+ const pageHeadings = useMemo(
1294
+ () => getPageHeadings(sourceOfFundsType ?? "adyen"),
1295
+ [sourceOfFundsType]
1296
+ );
1297
+ return isLoading || !activeBusinessLine ? /* @__PURE__ */ jsx("div", { className: styles.sourceOfFundsWrapperLoading, children: /* @__PURE__ */ jsx(Loader, {}) }) : /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-form-wrapper", children: [
1298
+ /* @__PURE__ */ jsxs("div", { className: styles.sourceOfFundsWrapperHeading, children: [
1299
+ /* @__PURE__ */ jsx(Typography, { el: "h1", variant: "title-l", children: activeForm?.formId === "additionalData" ? sofT(($) => $[pageHeadings.heading]) : sofT(($) => $["selectASourceOfFunding"], {
1300
+ type: getServiceTranslationSelectTitle(
1301
+ sofT,
1302
+ activeBusinessLine?.service || ""
1303
+ ).toLowerCase()
1304
+ }) }),
1305
+ /* @__PURE__ */ jsxs(Typography, { className: styles.sourceOfFundsWrapperDescription, children: [
1306
+ activeForm?.formId === "additionalData" && pageHeadings.description && sofT(($) => $[pageHeadings.description]),
1307
+ sourceOfFundsTypesData?.length === 0 && sofT(($) => $["noCategoriesAvailable"])
1308
+ ] })
1309
+ ] }),
1310
+ sofErrorMessage.value && /* @__PURE__ */ jsxs(
1311
+ Typography,
1312
+ {
1313
+ variant: "caption",
1314
+ color: "critical",
1315
+ "aria-live": "polite",
1316
+ className: "adyen-kyc-u-justify-content-center adyen-kyc-u-display-flex",
1317
+ children: [
1318
+ /* @__PURE__ */ jsx(Icon, { name: "field-error", className: "adyen-kyc-u-margin-right-2" }),
1319
+ /* @__PURE__ */ jsx("span", { children: sofErrorMessage.value })
1320
+ ]
1321
+ }
1322
+ ),
1323
+ activeForm?.formId === "sourceOfFundsType" && /* @__PURE__ */ jsx(
1324
+ SourceOfFundsType,
1325
+ {
1326
+ categories: sourceOfFundsTypesData,
1327
+ data: formData?.sourceOfFundsType,
1328
+ errors: errors?.sourceOfFundsType,
1329
+ valid: valid?.sourceOfFundsType,
1330
+ fieldValidationErrors: fieldValidationErrors?.sourceOfFundsType
1331
+ }
1332
+ ),
1333
+ activeForm?.formId === "additionalData" && /* @__PURE__ */ jsx(
1334
+ SourceOfFundsAdditionalData,
1335
+ {
1336
+ fieldValidationErrors: fieldValidationErrors?.additionalData
1337
+ }
1338
+ ),
1339
+ activeForm?.formId === "companySourceOfFunds" && /* @__PURE__ */ jsx("div", { children: sofT(($) => $["uploadADocument"]) })
1340
+ ] });
1341
+ }
1342
+ function SourceOfFundsGettingStartedCard(props) {
1343
+ const { id, title, onClick, isEdit, meta } = props;
1344
+ const { t: commonT } = useTranslation("common");
1345
+ return /* @__PURE__ */ jsxs(Card, { variant: "secondary", children: [
1346
+ /* @__PURE__ */ jsxs("div", { className: styles.sourceOfFundsGettingStartedCardsCardHeader, children: [
1347
+ /* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", children: title }),
1348
+ isEdit ? /* @__PURE__ */ jsx(IconButton, { ariaLabel: "edit", icon: "edit", onClick, variant: "tertiary" }) : /* @__PURE__ */ jsx(
1349
+ Button,
1350
+ {
1351
+ variant: "primary",
1352
+ testId: "source-of-funds-getting-card-secondary-button",
1353
+ onClick,
1354
+ children: commonT(($) => $["start"])
1355
+ }
1356
+ )
1357
+ ] }),
1358
+ isEdit && meta?.length && /* @__PURE__ */ jsx("div", { className: styles.sourceOfFundsGettingStartedCardsCardBody, children: /* @__PURE__ */ jsx(
1359
+ StructuredList,
1360
+ {
1361
+ className: styles.sourceOfFundsGettingStartedCardsCardDescription,
1362
+ items: meta
1363
+ }
1364
+ ) })
1365
+ ] }, id);
1366
+ }
1367
+ const digitalWallet = lazy(() => import("./digital-wallet-Bx5YM1LY.js"));
1368
+ const SourceOfFundsGettingStarted = ({
1369
+ handleGettingStartedClick,
1370
+ handleCancelClick,
1371
+ handleSourceOfFundsClick,
1372
+ businessLines,
1373
+ handleNavigateToUploadPage,
1374
+ problems,
1375
+ legalEntity,
1376
+ isSoFDocumentMissing
1377
+ }) => {
1378
+ const { t: sofT } = useTranslation("sof");
1379
+ const { t: commonT } = useTranslation("common");
1380
+ const { i18n } = useI18nContext();
1381
+ const hasSourceOfFunds = businessLines?.some(
1382
+ (businessLine) => !isEmpty(businessLine.sourceOfFunds)
1383
+ );
1384
+ const { data: normalizedTasks } = useTaskStatus({
1385
+ refetchInterval: TASK_STATUS_POLLING_INTERVAL_MS
1386
+ });
1387
+ const sofDocuments = useMemo(
1388
+ () => legalEntity?.documentDetails?.filter((doc) => doc.type === "proofOfFundingOrWealthSource") ?? [],
1389
+ [legalEntity]
1390
+ );
1391
+ const mapBusinessLines = useCallback(
1392
+ (lines) => {
1393
+ const completedBusinessLines = businessLines.every((line) => line?.sourceOfFunds?.type);
1394
+ const cards = lines.map((line) => {
1395
+ const SoF = mapSourceOfFundToSourceOfFundsSchema(line);
1396
+ return {
1397
+ title: getServiceTranslation(sofT, line.service || ""),
1398
+ type: line?.sourceOfFunds?.type,
1399
+ isEdit: !!line?.sourceOfFunds?.type || !!line?.sourceOfFunds?.adyenProcessedFunds,
1400
+ onClick: () => handleSourceOfFundsClick(SoF, line),
1401
+ meta: [
1402
+ {
1403
+ term: sofT(($) => $["sourceOfFunds"]),
1404
+ details: getSofCardDetails(sofT, line?.sourceOfFunds)
1405
+ },
1406
+ ...getGettingStartedCardDetails(
1407
+ getAdditionalDataSchemaKeys(
1408
+ line?.sourceOfFunds?.type || "adyen",
1409
+ line?.sourceOfFunds?.originatorType
1410
+ ),
1411
+ sofT,
1412
+ line?.sourceOfFunds
1413
+ )
1414
+ ]
1415
+ };
1416
+ }).sort((a) => a?.type ? 1 : -1);
1417
+ const uploadCard = {
1418
+ title: getServiceTranslation(sofT),
1419
+ type: "",
1420
+ isEdit: !!sofDocuments?.length,
1421
+ onClick: handleNavigateToUploadPage,
1422
+ meta: sofDocuments?.length ? sofDocuments.map((doc) => ({
1423
+ term: sofT(($) => $["fileName"]),
1424
+ details: [
1425
+ doc?.fileName,
1426
+ /* @__PURE__ */ jsx(Typography, { color: "secondary", children: parseSOFDocumentDescription(sofT, doc?.description) || "" }, "docDescription")
1427
+ ]
1428
+ })) : []
1429
+ };
1430
+ if (completedBusinessLines && (isSoFDocumentMissing || sofDocuments?.length)) {
1431
+ if (uploadCard.meta?.length) {
1432
+ cards.push(uploadCard);
1433
+ } else {
1434
+ cards.unshift(uploadCard);
1435
+ }
1436
+ }
1437
+ return cards.map((item, index) => {
1438
+ return /* @__PURE__ */ jsx(
1439
+ SourceOfFundsGettingStartedCard,
1440
+ {
1441
+ id: index,
1442
+ isEdit: !!item.isEdit,
1443
+ title: item.title,
1444
+ onClick: item.onClick,
1445
+ meta: item.meta
1446
+ },
1447
+ index
1448
+ );
1449
+ });
1450
+ },
1451
+ [handleSourceOfFundsClick, i18n, sofDocuments]
1452
+ );
1453
+ const errorObjects = useMemo(
1454
+ () => getRelevantErrors(problems, SOF_INVALID_INPUT_ERROR_CODES),
1455
+ [problems]
1456
+ );
1457
+ return /* @__PURE__ */ jsxs(
1458
+ "div",
1459
+ {
1460
+ className: styles.sourceOfFundsGettingStarted,
1461
+ "data-testid": "source-of-funds-getting-started",
1462
+ children: [
1463
+ !hasSourceOfFunds && /* @__PURE__ */ jsx(
1464
+ LandingLayout,
1465
+ {
1466
+ media: /* @__PURE__ */ jsx(Image, { lazyLoadedImage: digitalWallet }),
1467
+ title: sofT(($) => $["fundingSourcesForFinancialProducts"]),
1468
+ description: sofT(($) => $["inTheNextStepWellCollectInformation"]),
1469
+ actions: /* @__PURE__ */ jsxs(Fragment, { children: [
1470
+ /* @__PURE__ */ jsx(
1471
+ Button,
1472
+ {
1473
+ fullWidth: true,
1474
+ testId: "source-of-funds-getting-primary-button",
1475
+ onClick: handleGettingStartedClick,
1476
+ children: sofT(($) => $["getStarted"])
1477
+ }
1478
+ ),
1479
+ handleCancelClick && /* @__PURE__ */ jsx(
1480
+ Button,
1481
+ {
1482
+ variant: "tertiary",
1483
+ fullWidth: true,
1484
+ testId: "source-of-funds-getting-cancel-button",
1485
+ onClick: handleCancelClick,
1486
+ children: commonT(($) => $["backToTaskList"])
1487
+ }
1488
+ )
1489
+ ] })
1490
+ }
1491
+ ),
1492
+ hasSourceOfFunds && /* @__PURE__ */ jsxs(Fragment, { children: [
1493
+ /* @__PURE__ */ jsx(
1494
+ Header,
1495
+ {
1496
+ title: sofT(($) => $["fundingSourcesForFinancialProducts"]),
1497
+ description: sofT(($) => $["addAllSourcesOfFundsBeingUsed"]),
1498
+ status: normalizedTasks?.SOURCE_OF_FUNDS?.status,
1499
+ align: "center"
1500
+ }
1501
+ ),
1502
+ errorObjects && errorObjects.map((errorObj, index) => {
1503
+ const uniqueActions = getUniqueRemediationActions(errorObj);
1504
+ const errorItems = errorObj.subErrors?.map((subError) => subError.message) || [];
1505
+ return /* @__PURE__ */ jsxs(
1506
+ Alert,
1507
+ {
1508
+ title: errorObj.message,
1509
+ className: styles.sourceOfFundsGettingStartedError,
1510
+ variant: "error",
1511
+ children: [
1512
+ errorObj?.subErrors?.length && /* @__PURE__ */ jsx("ul", { children: errorItems.map((item, i) => /* @__PURE__ */ jsx("li", { children: item }, i)) }),
1513
+ uniqueActions.length > 0 && /* @__PURE__ */ jsx("div", { className: styles.sourceOfFundsGettingStartedErrorActions, children: uniqueActions.filter((action) => action.code !== "1_519").map((action, i) => /* @__PURE__ */ jsx(
1514
+ Button,
1515
+ {
1516
+ variant: "tertiary",
1517
+ testId: `remediate-action-${i}`,
1518
+ onClick: handleNavigateToUploadPage,
1519
+ children: action.message
1520
+ },
1521
+ `action-${i}`
1522
+ )) })
1523
+ ]
1524
+ },
1525
+ `error-${index}`
1526
+ );
1527
+ }),
1528
+ /* @__PURE__ */ jsx("div", { className: styles.sourceOfFundsGettingStartedCards, children: /* @__PURE__ */ jsx(StackLayout, { children: mapBusinessLines(businessLines) }) }),
1529
+ handleCancelClick && /* @__PURE__ */ jsx(
1530
+ Button,
1531
+ {
1532
+ variant: "secondary",
1533
+ testId: "source-of-funds-getting-return-button",
1534
+ onClick: handleCancelClick,
1535
+ children: commonT(($) => $["backToTaskList"])
1536
+ }
1537
+ )
1538
+ ] })
1539
+ ]
1540
+ }
1541
+ );
1542
+ };
1543
+ const SOFUploadModal = (props) => {
1544
+ const { showToast } = useToastContext();
1545
+ const logger2 = createLogger();
1546
+ const { t: sofT } = useTranslation("sof");
1547
+ const { t: commonT } = useTranslation("common");
1548
+ const { businessLines, handleModalClose, documentUtils } = props;
1549
+ const firstService = businessLines?.length === 1 ? businessLines?.[0]?.service : void 0;
1550
+ const [selectedService, setSelectedService] = useState(
1551
+ firstService
1552
+ );
1553
+ const [documentType, setDocumentType] = useState();
1554
+ const onRadioChange = (selectedId) => {
1555
+ setSelectedService(selectedId);
1556
+ setDocumentType(void 0);
1557
+ };
1558
+ const onDocumentTypeChange = (e) => {
1559
+ setDocumentType(e.target.value);
1560
+ };
1561
+ const serviceRadioItems = useMemo(() => {
1562
+ return businessLines.map((businessLine) => ({
1563
+ id: businessLine.service,
1564
+ name: sofT(($) => $[getServiceTranslationKey(businessLine?.service || "")])
1565
+ }));
1566
+ }, [businessLines, sofT]);
1567
+ const canUpload = useMemo(() => selectedService && documentType, [selectedService, documentType]);
1568
+ const selectedBusinessLineId = businessLines?.find((businessLine) => businessLine.service === selectedService)?.id || "";
1569
+ const documentLists = useMemo(() => {
1570
+ const selectedType = businessLines?.find(
1571
+ (businessLine) => businessLine.service === selectedService
1572
+ )?.sourceOfFunds?.type;
1573
+ if (selectedType) {
1574
+ const lists = getDocumentLists(selectedType);
1575
+ const items = lists.map((list) => ({
1576
+ id: list,
1577
+ name: sofT(($) => $[list])
1578
+ }));
1579
+ return items;
1580
+ }
1581
+ return [];
1582
+ }, [businessLines, sofT, selectedService]);
1583
+ const documentRequirements = useMemo(() => {
1584
+ return documentType ? getDocumentRequirements[documentType] : [];
1585
+ }, [documentType]);
1586
+ const onFileUpload = async (files) => {
1587
+ if (!canUpload) {
1588
+ showToast({ label: sofT(($) => $["unableToUploadDocument"]), variant: "error" });
1589
+ return;
1590
+ }
1591
+ const formattedDocument = await createDocumentRequest({
1592
+ entityId: selectedBusinessLineId,
1593
+ entityType: "businessLine",
1594
+ documentType: "proofOfFundingOrWealthSource",
1595
+ page1: files[0],
1596
+ description: `$SERVICE_NAME:${selectedService}--TYPE_NAME:${documentType}`
1597
+ });
1598
+ if (formattedDocument) {
1599
+ try {
1600
+ await documentUtils.uploadDocuments([formattedDocument], selectedBusinessLineId);
1601
+ showToast({
1602
+ label: sofT(($) => $["documentUploadedSuccessfully"]),
1603
+ variant: "success",
1604
+ duration: 1e4
1605
+ });
1606
+ handleModalClose();
1607
+ } catch (e) {
1608
+ logger2.log(e);
1609
+ showToast({ label: sofT(($) => $["unableToUploadDocument"]), variant: "error" });
1610
+ }
1611
+ }
1612
+ };
1613
+ return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(
1614
+ Modal,
1615
+ {
1616
+ onClose: handleModalClose,
1617
+ ariaLabel: sofT(($) => $["uploadASupportingDocument"]),
1618
+ inset: true,
1619
+ children: /* @__PURE__ */ jsxs("div", { className: styles.sourceOfFundsModal, children: [
1620
+ /* @__PURE__ */ jsx(Typography, { variant: "title-l", el: "h2", children: sofT(($) => $["uploadASupportingDocument"]) }),
1621
+ /* @__PURE__ */ jsxs("div", { className: styles.sourceOfFundsUploadModalContent, children: [
1622
+ businessLines?.length > 1 ? /* @__PURE__ */ jsx(
1623
+ Field,
1624
+ {
1625
+ el: "fieldset",
1626
+ name: "service",
1627
+ className: styles.sourceOfFundsUploadModalContentField,
1628
+ label: sofT(($) => $["whatFinancialProductIsThisFor"]),
1629
+ children: (childProps) => /* @__PURE__ */ jsx(
1630
+ RadioGroup,
1631
+ {
1632
+ ...childProps,
1633
+ name: "service",
1634
+ className: styles.sourceOfFundsUploadModalContentFieldRadioGroup,
1635
+ items: serviceRadioItems,
1636
+ value: selectedService,
1637
+ disabled: false,
1638
+ onChange: onRadioChange,
1639
+ "aria-required": true
1640
+ }
1641
+ )
1642
+ }
1643
+ ) : null,
1644
+ selectedService && /* @__PURE__ */ jsx(
1645
+ Field,
1646
+ {
1647
+ name: "documentType",
1648
+ label: commonT(($) => $["documentType"]),
1649
+ "data-testid": "documentType",
1650
+ className: styles.sourceOfFundsUploadModalContentField,
1651
+ children: (childProps) => /* @__PURE__ */ jsx(
1652
+ Select,
1653
+ {
1654
+ ...childProps,
1655
+ name: "documentType",
1656
+ placeholder: commonT(($) => $["selectOne"]),
1657
+ selected: documentType,
1658
+ items: documentLists,
1659
+ onChange: onDocumentTypeChange
1660
+ }
1661
+ )
1662
+ }
1663
+ ),
1664
+ documentRequirements?.length ? /* @__PURE__ */ jsxs("div", { className: styles.sourceOfFundsUploadModalContentRequirementsContainer, children: [
1665
+ /* @__PURE__ */ jsx(Typography, { variant: "body-strongest", el: "div", children: sofT(($) => $["documentShouldShow"]) }),
1666
+ /* @__PURE__ */ jsx("ul", { children: documentRequirements?.map((requirement) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(Typography, { variant: "body-stronger", el: "div", children: sofT(($) => $[requirement]) }) }, requirement)) })
1667
+ ] }) : null,
1668
+ canUpload && /* @__PURE__ */ jsx(
1669
+ Dropzone,
1670
+ {
1671
+ disabled: !canUpload,
1672
+ onChange: onFileUpload,
1673
+ showMinimal: true,
1674
+ hidePageCount: true,
1675
+ maxSize: 4194304,
1676
+ enableTracking: true,
1677
+ name: "documentField",
1678
+ allowedFileTypes: ["JPG", "JPEG", "PNG", "PDF"]
1679
+ }
1680
+ )
1681
+ ] })
1682
+ ] })
1683
+ }
1684
+ ) });
1685
+ };
1686
+ const SourceOfFundsUpload = ({
1687
+ businessLines,
1688
+ documentUtils,
1689
+ legalEntity,
1690
+ handleNavigateToSummary
1691
+ }) => {
1692
+ const [showUploadModal, setShowUploadModal] = useState(false);
1693
+ const [docToDelete, setDocToDelete] = useState(void 0);
1694
+ const { showToast } = useToastContext();
1695
+ const logger2 = createLogger();
1696
+ const queryClient = useQueryClient();
1697
+ const { t: sofT } = useTranslation("sof");
1698
+ const { t: commonT } = useTranslation("common");
1699
+ const handleModalClose = async () => {
1700
+ setShowUploadModal(false);
1701
+ await queryClient.invalidateQueries({
1702
+ queryKey: ["legalEntity", legalEntity.id]
1703
+ });
1704
+ };
1705
+ const openUploadModal = () => {
1706
+ setShowUploadModal(true);
1707
+ };
1708
+ const documents = useMemo(
1709
+ () => legalEntity.documentDetails?.filter((doc) => doc.type === "proofOfFundingOrWealthSource") ?? [],
1710
+ [legalEntity]
1711
+ );
1712
+ const sourceOfFundsCategories = businessLines?.map((line) => line.sourceOfFunds?.type)?.filter(Boolean);
1713
+ const getTranslatedCategoryName = (categoryKey) => {
1714
+ const translationKey2 = sofCategoryItemMapper[categoryKey];
1715
+ if (!categoryKey || !translationKey2) {
1716
+ return "";
1717
+ }
1718
+ return sofT(($) => $[translationKey2]).toLowerCase();
1719
+ };
1720
+ let translationKey;
1721
+ let translationParams;
1722
+ if (sourceOfFundsCategories?.length > 1) {
1723
+ translationKey = "weNeedProofOfFundingForMultipleCategories";
1724
+ translationParams = {
1725
+ category1_name: getTranslatedCategoryName(sourceOfFundsCategories[0]),
1726
+ category2_name: getTranslatedCategoryName(sourceOfFundsCategories[1])
1727
+ };
1728
+ } else if (sourceOfFundsCategories?.length === 1) {
1729
+ translationKey = "weNeedProofOfFunding";
1730
+ translationParams = {
1731
+ category_name: getTranslatedCategoryName(sourceOfFundsCategories[0])
1732
+ };
1733
+ } else {
1734
+ translationKey = "weNeedProofOfFundingForNoCategory";
1735
+ }
1736
+ const handleFileDelete = async (documentId) => {
1737
+ if (documentUtils.deleteDocument) {
1738
+ try {
1739
+ await documentUtils.deleteDocument(documentId, legalEntity.id);
1740
+ await queryClient.invalidateQueries({
1741
+ queryKey: ["legalEntity", legalEntity.id]
1742
+ });
1743
+ showToast({
1744
+ label: sofT(($) => $["documentDeletedSuccessfully"]),
1745
+ variant: "success",
1746
+ duration: 1e4
1747
+ });
1748
+ } catch (e) {
1749
+ logger2.log(e);
1750
+ showToast({ label: sofT(($) => $["unableToDeleteDocument"]), variant: "error" });
1751
+ }
1752
+ }
1753
+ };
1754
+ return /* @__PURE__ */ jsxs("div", { className: styles.sourceOfFundsUploadList, children: [
1755
+ /* @__PURE__ */ jsxs("div", { className: styles.sourceOfFundsUploadListHeading, children: [
1756
+ /* @__PURE__ */ jsx(Typography, { el: "h1", variant: "title-l", children: sofT(($) => $["supportingDocuments"]) }),
1757
+ /* @__PURE__ */ jsx(Typography, { className: styles.sourceOfFundsWrapperDescription, children: sofT(($) => $[translationKey], translationParams) })
1758
+ ] }),
1759
+ documents?.map((document) => /* @__PURE__ */ jsxs("div", { className: styles.sourceOfFundsThirdPartyFundingFinancierGroup, children: [
1760
+ /* @__PURE__ */ jsxs("div", { className: styles.sourceOfFundsThirdPartyFundingNameAvatarGroup, children: [
1761
+ /* @__PURE__ */ jsx(Avatar, { iconName: "document", circle: true }),
1762
+ /* @__PURE__ */ jsxs("div", { className: styles.sourceOfFundsThirdPartyFundingNameAddressGroup, children: [
1763
+ /* @__PURE__ */ jsx(Typography, { el: "div", variant: "body-strongest", children: document.fileName }),
1764
+ /* @__PURE__ */ jsx(Typography, { el: "div", variant: "caption", children: parseSOFDocumentDescription(sofT, document.description) })
1765
+ ] })
1766
+ ] }),
1767
+ /* @__PURE__ */ jsx(
1768
+ IconButton,
1769
+ {
1770
+ ariaLabel: commonT(($) => $["deleteDocument"]),
1771
+ variant: "tertiary",
1772
+ icon: "cross",
1773
+ onClick: () => setDocToDelete(document),
1774
+ testId: "source-of-funds-remove-button"
1775
+ }
1776
+ )
1777
+ ] }, document.id)),
1778
+ /* @__PURE__ */ jsx(
1779
+ "button",
1780
+ {
1781
+ type: "button",
1782
+ className: styles.sourceOfFundsThirdPartyFundingFinancierGroup,
1783
+ onClick: openUploadModal,
1784
+ "data-testId": "source-of-funds-upload-button",
1785
+ children: /* @__PURE__ */ jsxs("div", { className: styles.sourceOfFundsThirdPartyFundingNameAvatarGroup, children: [
1786
+ /* @__PURE__ */ jsx(Avatar, { label: sofT(($) => $["addDocument"]), iconName: "plus", circle: true }),
1787
+ /* @__PURE__ */ jsx(Typography, { el: "div", variant: "body-strongest", children: sofT(($) => $["addDocument"]) })
1788
+ ] })
1789
+ }
1790
+ ),
1791
+ handleNavigateToSummary && /* @__PURE__ */ jsx("div", { className: styles.sourceOfFundsGettingStartedActions, children: /* @__PURE__ */ jsx(Button, { variant: "secondary", onClick: handleNavigateToSummary, children: documents?.length > 0 ? commonT(($) => $["finish"]) : commonT(($) => $["cancel"]) }) }),
1792
+ !!docToDelete && /* @__PURE__ */ jsx(
1793
+ Confirm,
1794
+ {
1795
+ title: sofT(($) => $["areYouSureYouWantToDeleteThisDocument"], {
1796
+ documentName: docToDelete?.fileName || ""
1797
+ }),
1798
+ confirmText: commonT(($) => $["delete"]),
1799
+ onConfirm: () => handleFileDelete(docToDelete?.id),
1800
+ onCancel: () => setDocToDelete(void 0),
1801
+ critical: true
1802
+ }
1803
+ ),
1804
+ showUploadModal && /* @__PURE__ */ jsx(
1805
+ SOFUploadModal,
1806
+ {
1807
+ documentUtils,
1808
+ handleModalClose,
1809
+ businessLines
1810
+ }
1811
+ )
1812
+ ] });
1813
+ };
1814
+ function canParseUrl(url) {
1815
+ if (URL.canParse) {
1816
+ return URL.canParse(url);
1817
+ }
1818
+ try {
1819
+ new URL(url);
1820
+ return true;
1821
+ } catch {
1822
+ return false;
1823
+ }
1824
+ }
1825
+ const sourceOfFundsTypeValidations = {};
1826
+ const HAS_PROTOCOL_REGEX = /^https?:\/\//i;
1827
+ const sourceOfFundsAdditionalDataValidations = {
1828
+ website: {
1829
+ modes: ["blur"],
1830
+ validate: (val) => !!val && canParseUrl(val),
1831
+ errorMessage: (val) => {
1832
+ if (val && !HAS_PROTOCOL_REGEX.test(val)) return "validationUrlMustStartWithHttpOrHttps";
1833
+ return "validationPleaseEnterAValidUrl";
1834
+ }
1835
+ },
1836
+ amount: {
1837
+ modes: ["blur"],
1838
+ validate: (amount) => amount?.value != null && !Number.isNaN(Number(amount.value)),
1839
+ errorMessage: "pleaseEnterAValidAmount"
1840
+ },
1841
+ dateOfSourceEvent: {
1842
+ modes: ["blur"],
1843
+ validate: (dateOfSourceEvent) => validateDateNotInTheFuture(dateOfSourceEvent),
1844
+ errorMessage: "dateCannotBeInTheFuture"
1845
+ },
1846
+ dateOfFundsReceived: {
1847
+ modes: ["blur"],
1848
+ validate: (dateOfFundsReceived) => validateDateNotInTheFuture(dateOfFundsReceived),
1849
+ errorMessage: "dateCannotBeInTheFuture"
1850
+ }
1851
+ };
1852
+ const logger = createLogger();
1853
+ function SourceOfFundsDropin({
1854
+ country,
1855
+ problems,
1856
+ handleHomeClick
1857
+ }) {
1858
+ const { data: legalEntity, isLoading: isLoadingRootLegalEntity } = useLegalEntity(ROOT_LE);
1859
+ const [loadingStatus, setLoadingStatus] = useState("success");
1860
+ const [activeBusinessLine, setActiveBusinessLine] = useState();
1861
+ const [activeSourceOfFund, setActiveSourceOfFund] = useState({
1862
+ sourceOfFundsType: {},
1863
+ additionalData: {}
1864
+ });
1865
+ const [allBusinessLines, setAllBusinessLines] = useState([]);
1866
+ const [gettingStarted, setGettingStarted] = useState(true);
1867
+ const [showUploadPage, setShowUploadPage] = useState(false);
1868
+ const [loading, setLoading] = useState(false);
1869
+ const { baseUrl, rootLegalEntityId } = useApiContext();
1870
+ const { t: sofT } = useTranslation("sof");
1871
+ const userEvents = useAnalyticsContext();
1872
+ const { showToast } = useToastContext();
1873
+ const { data: sofBusinessLines, isLoading: isLoadingBusinessLines } = useBusinessLines(ALLOWED_SOF_SERVICES);
1874
+ const { mutateAsync: createLegalEntity } = useCreateLegalEntity();
1875
+ const { mutateAsync: updateLegalEntity } = useUpdateLegalEntity();
1876
+ const { mutateAsync: updateSoFMutation } = useUpdateSourceOfFunds();
1877
+ const form = useMultiForm({
1878
+ requiredFields: getSourceOfFundsRequiredFields,
1879
+ rules: {
1880
+ sourceOfFundsType: sourceOfFundsTypeValidations,
1881
+ additionalData: sourceOfFundsAdditionalDataValidations
1882
+ },
1883
+ defaultData: activeSourceOfFund
1884
+ });
1885
+ const {
1886
+ data = activeSourceOfFund,
1887
+ setFormData,
1888
+ requiredFields,
1889
+ isValid,
1890
+ triggerValidation
1891
+ } = form;
1892
+ const isSoFDocumentMissing = useMemo(
1893
+ () => legalEntity?.problems?.some(
1894
+ (problem) => problem?.verificationErrors?.some(
1895
+ (verificationError) => verificationError?.code === MISSING_DATA_SOF_UPLOAD_CODE
1896
+ )
1897
+ ) ?? false,
1898
+ [legalEntity?.problems]
1899
+ );
1900
+ const idsToFetch = sofBusinessLines?.map((businessLine) => businessLine.sourceOfFunds?.originatorLegalEntityId).filter((id) => Boolean(id)) ?? [];
1901
+ const legalEntityResults = useLegalEntities(idsToFetch, {
1902
+ staleTime: 5 * 60 * 1e3
1903
+ // 5 minutes
1904
+ });
1905
+ const areLegalEntitiesLoading = legalEntityResults.some((result) => result.isLoading);
1906
+ const normalizedBusinessLines = useMemo(() => {
1907
+ if (!sofBusinessLines) {
1908
+ return null;
1909
+ }
1910
+ return sofBusinessLines.map((businessLine, index) => {
1911
+ const result = legalEntityResults[index];
1912
+ let updatedBusinessLine = { ...businessLine };
1913
+ if (result && result.data) {
1914
+ updatedBusinessLine = parseOriginatorDetails(result.data, updatedBusinessLine);
1915
+ } else if (result && result.isError) {
1916
+ logger.error(`Error fetching legal entity for BL ${businessLine.id}:`, result.error);
1917
+ showToast({ label: sofT(($) => $["unableToLoadRelatedEntity"]), variant: "error" });
1918
+ }
1919
+ if (updatedBusinessLine.sourceOfFunds?.adyenProcessedFunds) {
1920
+ updatedBusinessLine.sourceOfFunds.type = "adyen";
1921
+ }
1922
+ return updatedBusinessLine;
1923
+ });
1924
+ }, [
1925
+ sofBusinessLines,
1926
+ // This is because the result of useQueries is not referentially stable, even though the individual query results are, so eslint complains
1927
+ // Also, this is generally safe, since this is typically what React Query returns
1928
+ JSON.stringify(
1929
+ legalEntityResults.map((r) => ({
1930
+ data: r.data,
1931
+ isError: r.isError,
1932
+ error: r.error,
1933
+ isLoading: r.isLoading
1934
+ }))
1935
+ )
1936
+ ]);
1937
+ useEffect(() => {
1938
+ if (sofBusinessLines && !areLegalEntitiesLoading && normalizedBusinessLines) {
1939
+ clearSofErrorMessage();
1940
+ setLoading(true);
1941
+ try {
1942
+ if (normalizedBusinessLines.length) {
1943
+ const firstBusinessLine = normalizedBusinessLines[0];
1944
+ const sourceOfFundsMap = normalizedBusinessLines.map(
1945
+ (businessLine) => mapSourceOfFundToSourceOfFundsSchema(businessLine)
1946
+ );
1947
+ if (firstBusinessLine) {
1948
+ setActiveBusinessLine(firstBusinessLine);
1949
+ const mappedSof = sourceOfFundsMap[0];
1950
+ setActiveSourceOfFund(mappedSof);
1951
+ setAllBusinessLines(normalizedBusinessLines);
1952
+ if (mappedSof?.sourceOfFundsType) {
1953
+ setFormData("sourceOfFundsType", mappedSof.sourceOfFundsType);
1954
+ }
1955
+ if (mappedSof?.additionalData) {
1956
+ setFormData("additionalData", mappedSof.additionalData);
1957
+ }
1958
+ }
1959
+ }
1960
+ } catch (error) {
1961
+ showToast({ label: sofT(($) => $["unableToLoadRelatedEntity"]), variant: "error" });
1962
+ logger.error(error);
1963
+ } finally {
1964
+ setLoading(false);
1965
+ }
1966
+ }
1967
+ }, [sofBusinessLines, areLegalEntitiesLoading, normalizedBusinessLines, sofT, logger]);
1968
+ useEffect(() => {
1969
+ userEvents.addTaskEvent("Landed on page", {
1970
+ actionType: "start"
1971
+ });
1972
+ }, [userEvents]);
1973
+ const sourceOfFundsRequiredForms = useMemo(
1974
+ () => getSourceOfFundsRequiredForms(data?.sourceOfFundsType),
1975
+ [data?.sourceOfFundsType]
1976
+ );
1977
+ const forms = useMemo(() => {
1978
+ const requiredForms = getRequiredForms(
1979
+ sourceOfFundsRequiredForms,
1980
+ requiredFields,
1981
+ void 0,
1982
+ true
1983
+ );
1984
+ return addValidityToForms(requiredForms, isValid, problems);
1985
+ }, [sourceOfFundsRequiredForms, requiredFields, isValid, problems]);
1986
+ const createOrUpdateOriginator = async (additionalData, prevAdditionalData) => {
1987
+ let originatorLegalEntityId;
1988
+ const sofOriginator = parseSofOriginatorPayload(additionalData);
1989
+ if (additionalData?.originatorLegalEntityId && additionalData?.originatorType === prevAdditionalData?.originatorType) {
1990
+ try {
1991
+ sofOriginator.id = additionalData?.originatorLegalEntityId;
1992
+ if (sofOriginator.type) {
1993
+ delete sofOriginator.type;
1994
+ }
1995
+ const patchLegalEntity = {
1996
+ ...sofOriginator,
1997
+ id: sofOriginator.id
1998
+ };
1999
+ const le = await updateLegalEntity(patchLegalEntity);
2000
+ originatorLegalEntityId = le?.id;
2001
+ } catch (e) {
2002
+ logger.log("Error updating originator legal entity", e);
2003
+ }
2004
+ } else {
2005
+ try {
2006
+ const le = await createLegalEntity(sofOriginator);
2007
+ originatorLegalEntityId = le?.id;
2008
+ } catch (e) {
2009
+ logger.log("Error creating originator legal entity", e);
2010
+ }
2011
+ }
2012
+ return originatorLegalEntityId;
2013
+ };
2014
+ const handleSubmit = useCallback(async () => {
2015
+ const sofData = { ...data };
2016
+ const sofType = sofData?.sourceOfFundsType?.type;
2017
+ if (!sofType || !activeBusinessLine?.id) {
2018
+ return;
2019
+ }
2020
+ const eventsAdditionalData = {};
2021
+ setLoadingStatus("loading");
2022
+ const { additionalData } = sofData;
2023
+ const sofPayload = getSourceOfFundsPayload(sofType, additionalData);
2024
+ if (sofType === "donations" || sofType === "inheritance") {
2025
+ try {
2026
+ sofPayload.originatorLegalEntityId = await createOrUpdateOriginator(
2027
+ additionalData,
2028
+ activeSourceOfFund?.additionalData
2029
+ );
2030
+ } catch (e) {
2031
+ setSofErrorMessage(e?.message || sofT(($) => $["errorUpdatingSourceOfFunds"]));
2032
+ logger.log("Error updating source of funds", e);
2033
+ }
2034
+ eventsAdditionalData.originatorType = additionalData?.originatorType ?? "";
2035
+ }
2036
+ if (sofType === "thirdPartyFunding") {
2037
+ eventsAdditionalData.financiers = `${additionalData?.financiers?.length || 0} investor(s)`;
2038
+ }
2039
+ const sofMutationPayload = {
2040
+ ...sofPayload,
2041
+ businessLineId: activeBusinessLine.id
2042
+ };
2043
+ try {
2044
+ await updateSoFMutation(sofMutationPayload);
2045
+ userEvents.addTaskEvent("Success", {
2046
+ actionType: "submit",
2047
+ returnValue: sofType,
2048
+ additionalData: eventsAdditionalData
2049
+ });
2050
+ setGettingStarted(true);
2051
+ setShowUploadPage(false);
2052
+ setActiveSourceOfFund({ sourceOfFundsType: {}, additionalData: {} });
2053
+ gotoFormByFormIndex(0);
2054
+ setSofErrorMessage("");
2055
+ showToast({ label: sofT(($) => $["successAddedFundingSources"]), variant: "success" });
2056
+ handleHomeClick?.();
2057
+ } catch (e) {
2058
+ setSofErrorMessage(sofT(($) => $["errorUpdatingSourceOfFunds"]));
2059
+ logger.log("Error updating source of funds", e);
2060
+ }
2061
+ setLoadingStatus("success");
2062
+ }, [data, activeSourceOfFund, handleHomeClick]);
2063
+ const handleGettingStarted = useCallback(() => {
2064
+ setGettingStarted(!gettingStarted);
2065
+ }, [gettingStarted]);
2066
+ const handleSourceOfFundsClick = (SoF, businessLine) => {
2067
+ setActiveBusinessLine(businessLine);
2068
+ setActiveSourceOfFund(SoF);
2069
+ setGettingStarted(false);
2070
+ };
2071
+ const { handleNextClick, activeForm, gotoFormByFormIndex, steps, handleBackClick } = useFormComposer({
2072
+ problems,
2073
+ forms,
2074
+ onSubmit: handleSubmit,
2075
+ triggerValidation
2076
+ });
2077
+ const documentUtils = documentApiUtils({
2078
+ baseUrl: baseUrl.value,
2079
+ rootLegalEntityId: rootLegalEntityId.value
2080
+ });
2081
+ const handleNavigateToSummary = async () => {
2082
+ setShowUploadPage(false);
2083
+ setGettingStarted(true);
2084
+ };
2085
+ const handleNavigateToUploadPage = () => {
2086
+ setShowUploadPage(true);
2087
+ };
2088
+ return /* @__PURE__ */ jsx("div", { className: styles.sourceOfFunds, children: loading || isLoadingRootLegalEntity || isLoadingBusinessLines || areLegalEntitiesLoading ? /* @__PURE__ */ jsx(Loader, {}) : /* @__PURE__ */ jsxs(Fragment, { children: [
2089
+ gettingStarted && !showUploadPage && legalEntity && /* @__PURE__ */ jsx(
2090
+ SourceOfFundsGettingStarted,
2091
+ {
2092
+ handleCancelClick: handleHomeClick,
2093
+ handleGettingStartedClick: handleGettingStarted,
2094
+ businessLines: allBusinessLines,
2095
+ problems: legalEntity?.problems,
2096
+ handleSourceOfFundsClick,
2097
+ handleNavigateToUploadPage,
2098
+ legalEntity,
2099
+ isSoFDocumentMissing
2100
+ }
2101
+ ),
2102
+ showUploadPage && legalEntity && /* @__PURE__ */ jsx(
2103
+ SourceOfFundsUpload,
2104
+ {
2105
+ businessLines: allBusinessLines,
2106
+ documentUtils,
2107
+ legalEntity,
2108
+ handleNavigateToSummary
2109
+ }
2110
+ ),
2111
+ !gettingStarted && !showUploadPage && /* @__PURE__ */ jsx(FormContextProvider, { form, children: /* @__PURE__ */ jsx(
2112
+ FormFlow,
2113
+ {
2114
+ forms,
2115
+ disableNextButton: !activeForm.isValid,
2116
+ activeForm,
2117
+ gotoFormByFormIndex,
2118
+ handleBackClick: steps.current === 0 ? handleGettingStarted : handleBackClick,
2119
+ handleCancelClick: handleHomeClick,
2120
+ handleNextClick,
2121
+ loadingStatus,
2122
+ currentStep: steps.current,
2123
+ totalSteps: steps.total,
2124
+ children: /* @__PURE__ */ jsx(
2125
+ SourceOfFunds,
2126
+ {
2127
+ country,
2128
+ activeForm,
2129
+ activeBusinessLine,
2130
+ sourceOfFundsType: data?.sourceOfFundsType?.type,
2131
+ data: activeSourceOfFund
2132
+ }
2133
+ )
2134
+ }
2135
+ ) })
2136
+ ] }) });
2137
+ }
2138
+ const SourceOfFundsPage = ({ onSubmit, handleHomeClick }) => {
2139
+ const { data: rootLe } = useLegalEntity(ROOT_LE);
2140
+ const capabilityProblems = useCapabilityProblems();
2141
+ const { i18n } = useTranslation();
2142
+ addResourceBundles(i18n, [
2143
+ { ns: "sof", importFn: (lang) => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../tasks/SourceOfFundsDropin/language/bg-BG.json": () => import("./bg-BG-BvLl6gaB.js"), "../tasks/SourceOfFundsDropin/language/cs-CZ.json": () => import("./cs-CZ-hT5w5It6.js"), "../tasks/SourceOfFundsDropin/language/da-DK.json": () => import("./da-DK-DZwlENGe.js"), "../tasks/SourceOfFundsDropin/language/de-DE.json": () => import("./de-DE-DXR3EpEc.js"), "../tasks/SourceOfFundsDropin/language/el-GR.json": () => import("./el-GR-DtFE64KX.js"), "../tasks/SourceOfFundsDropin/language/en-US.json": () => import("./en-US-CozY33On.js"), "../tasks/SourceOfFundsDropin/language/es-ES.json": () => import("./es-ES-yMXcOjDL.js"), "../tasks/SourceOfFundsDropin/language/et-EE.json": () => import("./et-EE-C8RrUpLm.js"), "../tasks/SourceOfFundsDropin/language/fi-FI.json": () => import("./fi-FI-xqnQ38yC.js"), "../tasks/SourceOfFundsDropin/language/fr-FR.json": () => import("./fr-FR-BSynpexF.js"), "../tasks/SourceOfFundsDropin/language/hr-HR.json": () => import("./hr-HR-D5V7g9H2.js"), "../tasks/SourceOfFundsDropin/language/hu-HU.json": () => import("./hu-HU-hbVM6tMS.js"), "../tasks/SourceOfFundsDropin/language/it-IT.json": () => import("./it-IT-C_651bEP.js"), "../tasks/SourceOfFundsDropin/language/ja-JP.json": () => import("./ja-JP-CvNJvxkQ.js"), "../tasks/SourceOfFundsDropin/language/lt-LT.json": () => import("./lt-LT-Ci357QYQ.js"), "../tasks/SourceOfFundsDropin/language/lv-LV.json": () => import("./lv-LV-Dxe-A5vo.js"), "../tasks/SourceOfFundsDropin/language/nl-NL.json": () => import("./nl-NL-JChnFdCY.js"), "../tasks/SourceOfFundsDropin/language/no-NO.json": () => import("./no-NO--OoWld_l.js"), "../tasks/SourceOfFundsDropin/language/pl-PL.json": () => import("./pl-PL-DtJ3sgVO.js"), "../tasks/SourceOfFundsDropin/language/pt-BR.json": () => import("./pt-BR-C0I_kTQ6.js"), "../tasks/SourceOfFundsDropin/language/pt-PT.json": () => import("./pt-PT-Bf4IV7wp.js"), "../tasks/SourceOfFundsDropin/language/ro-RO.json": () => import("./ro-RO-4j2I7YM7.js"), "../tasks/SourceOfFundsDropin/language/sk-SK.json": () => import("./sk-SK-C5Qmv4E6.js"), "../tasks/SourceOfFundsDropin/language/sl-SI.json": () => import("./sl-SI-BZpXMHiG.js"), "../tasks/SourceOfFundsDropin/language/sv-SE.json": () => import("./sv-SE-DsPdegWB.js") }), `../tasks/SourceOfFundsDropin/language/${lang}.json`, 5) }
2144
+ ]);
2145
+ if (!rootLe) {
2146
+ return /* @__PURE__ */ jsx(Loader, {});
2147
+ }
2148
+ const problems = capabilityProblems ? getProblemsForEntity(capabilityProblems, EntityTypes.LEGAL_ENTITY, rootLe.id) : void 0;
2149
+ return /* @__PURE__ */ jsx(
2150
+ SourceOfFundsDropin,
2151
+ {
2152
+ legalEntityResponse: rootLe,
2153
+ country: getLegalEntityCountry(rootLe),
2154
+ problems,
2155
+ onSubmit,
2156
+ handleHomeClick
2157
+ }
2158
+ );
2159
+ };
2160
+ export {
2161
+ SourceOfFundsPage
2162
+ };