@adyen/kyc-components 4.13.0 → 4.14.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 (1363) hide show
  1. package/dist/4-people-Dxu4nHSX.js +35 -0
  2. package/dist/AcceptTermsOfServiceComponent-BEcoPLhK.js +650 -0
  3. package/dist/Accordion-CSpLDvKK.js +111 -0
  4. package/dist/AccountSetupRejected-CKuhuj2C.js +18 -0
  5. package/dist/AdaptiveWorkflow-C9g6vb9X.js +1900 -0
  6. package/dist/AdaptiveWorkflowComponent-Bquocjbq.js +164 -0
  7. package/dist/Address-D5zWC8Kk.js +960 -0
  8. package/dist/Avatar-DqBKHRAr.js +54 -0
  9. package/dist/BusinessFinancingDropin-ChxiPLjD.js +1799 -0
  10. package/dist/BusinessFinancingPage-Du6ZF5bL.js +89 -0
  11. package/dist/BusinessTypeSelectionPage-hcxkY2zl.js +436 -0
  12. package/dist/Button-DBN5gM_d.js +189 -0
  13. package/dist/Card-BCGLpdw7.js +71 -0
  14. package/dist/Checkbox-tUvgt59R.js +55 -0
  15. package/dist/CompanyRegistrationNumberTypeSelector-BF5XC5w0.js +1074 -0
  16. package/dist/Confirm-C4GotFqm.js +75 -0
  17. package/dist/ConstitutionalDocument-C7TXcsUK.js +1124 -0
  18. package/dist/ContactDetails-ugF7Py8x.js +513 -0
  19. package/dist/ContextGuidance-7xygTSEo.js +29 -0
  20. package/dist/CountryField-zsA_yVzc.js +37 -0
  21. package/dist/Currency-C2HN8hvK.js +191 -0
  22. package/dist/CustomerSupport-DUeV56Vm.js +129 -0
  23. package/dist/DebugModal-BZfX15KU.js +451 -0
  24. package/dist/DecisionMakerDetails-B4RIIKw4.js +510 -0
  25. package/dist/DecisionMakerDetailsPage-zms9XVrA.js +104 -0
  26. package/dist/DecisionMakers-DyxOlxTk.js +587 -0
  27. package/dist/DetailViewLayout-DNCGEd7b.js +68 -0
  28. package/dist/Divider-BENvVRnz.js +11 -0
  29. package/dist/Dropzone-ER9yCx09.js +236 -0
  30. package/dist/EmbeddedStatus-BKVqJCeu.js +128 -0
  31. package/dist/EndStateLayout-DfThkkI3.js +82 -0
  32. package/dist/EntityAssociation-6G8Fce4W.js +163 -0
  33. package/dist/ErrorPanel-ct3r_pLg.js +185 -0
  34. package/dist/Field-CQWAWo5U.js +155 -0
  35. package/dist/FormNavigation-BwLxW6W7.js +115 -0
  36. package/dist/Individual.rules-DrC9MYN9.js +295 -0
  37. package/dist/IndividualDropin-BusKTvgU.js +3899 -0
  38. package/dist/InputDate-cTgjAhzm.js +52 -0
  39. package/dist/InputText-8abfNtHh.js +119 -0
  40. package/dist/Introduction-Dqg8SXWH.js +326 -0
  41. package/dist/InvitedDecisionMakerComponent-DDYLBgxY.js +415 -0
  42. package/dist/JpAddress-CCm4vAW3.js +322 -0
  43. package/dist/LandingLayout-Dg0sEASR.js +76 -0
  44. package/dist/LegalCompanyNameField-LcnS0m3Z.js +108 -0
  45. package/dist/LegalRepresentativeDetailsPage-BswNtI-l.js +74 -0
  46. package/dist/Link-DtaYQWb-.js +32 -0
  47. package/dist/List-ywoRPg-q.js +71 -0
  48. package/dist/ListItem-CZWSCEeJ.js +70 -0
  49. package/dist/MaskedInput-C_rP9ADy.js +715 -0
  50. package/dist/MaybeModal-BbUiSkZe.js +24 -0
  51. package/dist/Modal-BgeE7zM2.js +129 -0
  52. package/dist/Name-DtDvWkku.js +61 -0
  53. package/dist/NewSummary-DnJjib28.js +72 -0
  54. package/dist/PayoutDetailsDropinMultiForm-C6m5XRhP.js +4095 -0
  55. package/dist/PayoutDetailsPage-og_7_YXt.js +69 -0
  56. package/dist/ProgressBar-DWFxLMUA.js +38 -0
  57. package/dist/RadioGroup-DlzXLoMN.js +84 -0
  58. package/dist/Review-DF69umo8.js +99 -0
  59. package/dist/RootBusinessDetailsPage-kgWj5sVC.js +69 -0
  60. package/dist/RootBusinessLinesPage-Cq7Zr5j4.js +1449 -0
  61. package/dist/RootIndividualDetailsPage-Be-0uc3i.js +80 -0
  62. package/dist/Select-vMYP9lm8.js +776 -0
  63. package/dist/SignPCIComponent-B2yY79W_.js +369 -0
  64. package/dist/SingpassSelection-5bZQX8hC.js +156 -0
  65. package/dist/SoleProprietorshipPage-CSBb_jpV.js +70 -0
  66. package/dist/SourceOfFundsPage-DRvnw5OW.js +2772 -0
  67. package/dist/Spacer-CEHRO4Ml.js +11 -0
  68. package/dist/StackLayout-IUdNMDgW.js +105 -0
  69. package/dist/StructuredList-CUyo9-3i.js +56 -0
  70. package/dist/Summary-DdatuZ77.js +225 -0
  71. package/dist/Tag-CNeDHqKp.js +39 -0
  72. package/dist/TaskListItem-BywE94Ej.js +169 -0
  73. package/dist/TaskVerificationStatus-gGr34dp5.js +124 -0
  74. package/dist/TaxInformationField-C5s9CTSB.js +472 -0
  75. package/dist/TaxReportingDropin-ucEg1NN9.js +474 -0
  76. package/dist/TextArea-C2DkQ41s.js +87 -0
  77. package/dist/TileGroup-B7-q4NXH.js +170 -0
  78. package/dist/TrustDetailsPage-Bh4izWzj.js +1097 -0
  79. package/dist/TrustMemberCompanyPage-BtEWDCNS.js +109 -0
  80. package/dist/TrustMemberIndividualPage-VB6suiF3.js +109 -0
  81. package/dist/TrustMemberRoleAndTypePage-DRXdmZBo.js +931 -0
  82. package/dist/TrustMembersOverview-yZICrIOc.js +447 -0
  83. package/dist/UnincorporatedPartnershipIndividualPage-CKZflWJL.js +79 -0
  84. package/dist/UnincorporatedPartnershipMemberCompanyPage-BgQ4z0cN.js +79 -0
  85. package/dist/UnincorporatedPartnershipMemberRoleAndTypePage-BD-yaKSD.js +270 -0
  86. package/dist/UnincorporatedPartnershipMembersOverview-cQobQZbw.js +157 -0
  87. package/dist/VerificationErrorAlert-DG1p37BH.js +64 -0
  88. package/dist/accountHolderUtils-TpJnt1z1.js +44 -0
  89. package/dist/adyen-business-financing.js +88 -86
  90. package/dist/adyen-individual-configuration.js +91 -89
  91. package/dist/adyen-individual-status.js +36 -36
  92. package/dist/adyen-invited-decision-maker.js +3 -3
  93. package/dist/adyen-onboarding.js +129 -138
  94. package/dist/adyen-terms-of-service-management.js +4 -4
  95. package/dist/adyen-terms-of-service-status.js +59 -58
  96. package/dist/adyen-transfer-instrument-configuration.js +87 -85
  97. package/dist/adyen-transfer-instrument-management.js +103 -105
  98. package/dist/adyen-verification-status.js +37 -38
  99. package/dist/arrow-right-Bk-ewsex.js +20 -0
  100. package/dist/bafinUtils-BKq-s1Ka.js +112 -0
  101. package/dist/bag-9BNq_QQO.js +20 -0
  102. package/dist/bank-BRbxxVK5.js +20 -0
  103. package/dist/bg-BG-CzXoDIev.js +61 -0
  104. package/dist/bg-BG-DYnhOtaS.js +7 -0
  105. package/dist/bg-BG-FthOeqMs.js +7 -0
  106. package/dist/bg-BG-KjJy4fjZ.js +32 -0
  107. package/dist/bg-BG-L5wKtmmz.js +7 -0
  108. package/dist/bg-BG-VIyyeYUh.js +7 -0
  109. package/dist/bg-BG-uuNDTOoN.js +7 -0
  110. package/dist/bin-DE1613_5.js +30 -0
  111. package/dist/capital-aNk7ragc.js +23 -0
  112. package/dist/cash-stack-DuKKc4Qj.js +33 -0
  113. package/dist/certificate-9gDKvXCm.js +23 -0
  114. package/dist/checkmark-BuqDN4WO.js +20 -0
  115. package/dist/checkmark-circle-OqcwA6N6.js +28 -0
  116. package/dist/checkmark-circle-fill-BfcUovCf.js +30 -0
  117. package/dist/checkmark-small-CBORXg_J.js +20 -0
  118. package/dist/chevron-down-CjRta08O.js +20 -0
  119. package/dist/chevron-left-BEm04mIh.js +20 -0
  120. package/dist/chevron-right-B2GkHG0J.js +20 -0
  121. package/dist/chevron-up-BKfe5Btb.js +20 -0
  122. package/dist/circle-C-uuRI8F.js +30 -0
  123. package/dist/circle-small-filled-Bkh5_ZEu.js +20 -0
  124. package/dist/clock-BWfWiMxz.js +28 -0
  125. package/dist/coins-Cw-jDTUz.js +30 -0
  126. package/dist/constants-CQUBFYB0.js +232 -0
  127. package/dist/constants-DrtMSDfx.js +142 -0
  128. package/dist/contract-PFVBW8xa.js +20 -0
  129. package/dist/countries-CPj8hkLs.js +41 -0
  130. package/dist/country-BxigZW1s.js +13 -0
  131. package/dist/cross-B37j1-r4.js +20 -0
  132. package/dist/cross-circle-fill-CcjwpLj2.js +30 -0
  133. package/dist/cross-circle-fill-small-CJ4fddNo.js +20 -0
  134. package/dist/cs-CZ-Cu1v5FA8.js +7 -0
  135. package/dist/cs-CZ-D4Pt8Gsx.js +7 -0
  136. package/dist/cs-CZ-D8nnXFEh.js +7 -0
  137. package/dist/cs-CZ-DvmlHVW2.js +7 -0
  138. package/dist/cs-CZ-JUprtMsH.js +61 -0
  139. package/dist/cs-CZ-m-2EDC49.js +32 -0
  140. package/dist/cs-CZ-nMdCNolB.js +7 -0
  141. package/dist/da-DK-BF_wiKbj.js +7 -0
  142. package/dist/da-DK-C4wRpqMC.js +7 -0
  143. package/dist/da-DK-C8TyCAru.js +32 -0
  144. package/dist/da-DK-Cq-1LB6T.js +7 -0
  145. package/dist/da-DK-D2RrHm98.js +61 -0
  146. package/dist/da-DK-DDQUbqDb.js +7 -0
  147. package/dist/da-DK-DjAV5d9A.js +7 -0
  148. package/dist/de-DE-B3sSNcDv.js +7 -0
  149. package/dist/de-DE-BOH-YgTt.js +7 -0
  150. package/dist/de-DE-Bc55gBv4.js +7 -0
  151. package/dist/de-DE-DdOrCrMa.js +7 -0
  152. package/dist/de-DE-QoAah1C3.js +32 -0
  153. package/dist/de-DE-o8i-cfnA.js +61 -0
  154. package/dist/de-DE-z8FJw9Yv.js +7 -0
  155. package/dist/decisionMaker-Dt53wKqO.js +146 -0
  156. package/dist/decisionMakerRoles-DIG8zo1C.js +46 -0
  157. package/dist/document-1-B3vw8uuK.js +20 -0
  158. package/dist/document-person-CERdIfH0.js +28 -0
  159. package/dist/download-CthdK4dV.js +23 -0
  160. package/dist/edit-1-BW7NwWP7.js +20 -0
  161. package/dist/el-GR-BAhj1djs.js +61 -0
  162. package/dist/el-GR-Bm9lqjyB.js +7 -0
  163. package/dist/el-GR-C0N0zQ3U.js +32 -0
  164. package/dist/el-GR-C5NDkWDr.js +7 -0
  165. package/dist/el-GR-Cr-3NgPk.js +7 -0
  166. package/dist/el-GR-DHiKsTJQ.js +7 -0
  167. package/dist/el-GR-DaAMIpOR.js +7 -0
  168. package/dist/en-US-COWs58AF.js +61 -0
  169. package/dist/en-US-xwcTnMwf.js +7 -0
  170. package/dist/entityAssociationUtil-C-wflW8q.js +59 -0
  171. package/dist/es-ES-BNjxmV8Q.js +61 -0
  172. package/dist/es-ES-C6Rs-ie9.js +7 -0
  173. package/dist/es-ES-CDFWEg9c.js +7 -0
  174. package/dist/es-ES-D5rPI9Qc.js +32 -0
  175. package/dist/es-ES-_w6Ygc8E.js +7 -0
  176. package/dist/es-ES-tVQDUTJN.js +7 -0
  177. package/dist/es-ES-uVSZu-EQ.js +7 -0
  178. package/dist/es-LA-BDxay2SJ.js +48 -0
  179. package/dist/es-LA-BIPVrwXX.js +61 -0
  180. package/dist/es-LA-BU5Op1kh.js +7 -0
  181. package/dist/es-LA-BvOPmuqM.js +23 -0
  182. package/dist/es-LA-C58S3BbB.js +32 -0
  183. package/dist/es-LA-C7IleXTc.js +7 -0
  184. package/dist/es-LA-C8U1qPSu.js +26 -0
  185. package/dist/es-LA-CJdZb5eY.js +57 -0
  186. package/dist/es-LA-CvOdV_q1.js +18 -0
  187. package/dist/es-LA-Cxk68z4n.js +7 -0
  188. package/dist/es-LA-DMpf5gAW.js +70 -0
  189. package/dist/es-LA-DU9jNyAv.js +69 -0
  190. package/dist/es-LA-DWAiA7Dw.js +7 -0
  191. package/dist/es-LA-xilYCaSd.js +7 -0
  192. package/dist/et-EE-BCWBT8XN.js +7 -0
  193. package/dist/et-EE-BFb0MPqf.js +7 -0
  194. package/dist/et-EE-CG66kNTM.js +7 -0
  195. package/dist/et-EE-DEs2iukD.js +7 -0
  196. package/dist/et-EE-Dl6n-Am8.js +61 -0
  197. package/dist/et-EE-IiaprrVp.js +32 -0
  198. package/dist/et-EE-P4s_U3BI.js +7 -0
  199. package/dist/external-link-CFgynH5A.js +20 -0
  200. package/dist/fi-FI-8eStbIaM.js +7 -0
  201. package/dist/fi-FI-B-7uBAf5.js +7 -0
  202. package/dist/fi-FI-BI9sCCEP.js +7 -0
  203. package/dist/fi-FI-Bed2SzCG.js +7 -0
  204. package/dist/fi-FI-DdF7vjHQ.js +32 -0
  205. package/dist/fi-FI-DpgrKo5I.js +7 -0
  206. package/dist/fi-FI-T33BAikx.js +61 -0
  207. package/dist/formUtils-DVc3a6gf.js +78 -0
  208. package/dist/fr-FR-B8iVi3nn.js +7 -0
  209. package/dist/fr-FR-BN_jrAX4.js +7 -0
  210. package/dist/fr-FR-CDv300-8.js +7 -0
  211. package/dist/fr-FR-CRO4taJU.js +61 -0
  212. package/dist/fr-FR-D_qhjXEC.js +7 -0
  213. package/dist/fr-FR-_TkFnevF.js +7 -0
  214. package/dist/fr-FR-jPc-OwlY.js +32 -0
  215. package/dist/getLegalEntityCountry-BHh7Ux8v.js +17 -0
  216. package/dist/getName-D4ECvzcI.js +35 -0
  217. package/dist/getProblemsForEntity-CogrYbYP.js +16 -0
  218. package/dist/getTrustedDecisionMakers-DUpv5ug2.js +25 -0
  219. package/dist/gift-0jLCte2h.js +20 -0
  220. package/dist/graph-DrxuzQF7.js +32 -0
  221. package/dist/graph-up-4qLbS2Ds.js +38 -0
  222. package/dist/headquarter-3o2GHW5H.js +42 -0
  223. package/dist/hotel-pZlrEAK8.js +33 -0
  224. package/dist/hr-HR-Bt2ZduQN.js +7 -0
  225. package/dist/hr-HR-CXH5M5JZ.js +7 -0
  226. package/dist/hr-HR-CbEXwWeO.js +61 -0
  227. package/dist/hr-HR-DlIGxvkT.js +32 -0
  228. package/dist/hr-HR-DlPm5gxr.js +7 -0
  229. package/dist/hr-HR-DubR_a2h.js +7 -0
  230. package/dist/hr-HR-SwSOMPhJ.js +7 -0
  231. package/dist/http-DYzfwjcs.js +149 -0
  232. package/dist/hu-HU-B9JCbRow.js +61 -0
  233. package/dist/hu-HU-BqW_xlCb.js +7 -0
  234. package/dist/hu-HU-CK6lbZ-D.js +7 -0
  235. package/dist/hu-HU-D1ZZwcl0.js +7 -0
  236. package/dist/hu-HU-DTRbo1IU.js +7 -0
  237. package/dist/hu-HU-DicR116D.js +32 -0
  238. package/dist/hu-HU-NJaOrfnP.js +7 -0
  239. package/dist/image-tfgNnE3G.js +23 -0
  240. package/dist/info-DJW5JooY.js +32 -0
  241. package/dist/info-filled-C5mP6T4Z.js +32 -0
  242. package/dist/invalidateRootLegalEntity-B_H-aJ0s.js +51 -0
  243. package/dist/isEmpty-BVlBH98t.js +14 -0
  244. package/dist/it-IT-BVAe-EX_.js +32 -0
  245. package/dist/it-IT-BwxzsAX1.js +7 -0
  246. package/dist/it-IT-CVVOlFfY.js +7 -0
  247. package/dist/it-IT-Cnk7j_gC.js +7 -0
  248. package/dist/it-IT-DE_Dkl_X.js +61 -0
  249. package/dist/it-IT-DzzajnKQ.js +7 -0
  250. package/dist/it-IT-xc14pqAr.js +7 -0
  251. package/dist/ja-JP-B8sNFjt_.js +7 -0
  252. package/dist/ja-JP-BaD-vLXo.js +61 -0
  253. package/dist/ja-JP-BpNu5KzH.js +7 -0
  254. package/dist/ja-JP-CNCeHdxj.js +7 -0
  255. package/dist/ja-JP-ClFJvhe2.js +7 -0
  256. package/dist/ja-JP-DS8zN3mY.js +7 -0
  257. package/dist/ja-JP-Fu1XFofD.js +32 -0
  258. package/dist/japanSupportUtils-H5Zfox2v.js +11 -0
  259. package/dist/localizeDateString-DB-oTe60.js +35 -0
  260. package/dist/location-Dk0rAiaT.js +23 -0
  261. package/dist/lt-LT-5OY6az4F.js +61 -0
  262. package/dist/lt-LT-BJbA6rDr.js +7 -0
  263. package/dist/lt-LT-C9lXLzZA.js +7 -0
  264. package/dist/lt-LT-CTtqyA86.js +7 -0
  265. package/dist/lt-LT-D3ZUJfjr.js +7 -0
  266. package/dist/lt-LT-DfL5ey_8.js +32 -0
  267. package/dist/lt-LT-VP6qtMAw.js +7 -0
  268. package/dist/lv-LV-2Q8G1u4p.js +7 -0
  269. package/dist/lv-LV-BBbE9hg5.js +7 -0
  270. package/dist/lv-LV-CQI0LxVf.js +7 -0
  271. package/dist/lv-LV-CXifQKfG.js +7 -0
  272. package/dist/lv-LV-CqZT6L9i.js +32 -0
  273. package/dist/lv-LV-D_9V3gBo.js +7 -0
  274. package/dist/lv-LV-DjAUG4pi.js +61 -0
  275. package/dist/mail-DG7MBDNE.js +20 -0
  276. package/dist/mapExistingFile-CZB9JLAV.js +135 -0
  277. package/dist/mapJpAddressSchemaToAddressLocalizations-DUElzaoS.js +109 -0
  278. package/dist/mapLegalEntityToIndividualSchema-BsHNunzQ.js +207 -0
  279. package/dist/mapTransferInstrumentToPayoutAccount-DuqJ08ye.js +44 -0
  280. package/dist/minus-circle-filled-DglqAgJW.js +30 -0
  281. package/dist/nl-NL-7ddo0NCH.js +7 -0
  282. package/dist/nl-NL-BN5WtqQB.js +7 -0
  283. package/dist/nl-NL-Bv8Zk-6e.js +7 -0
  284. package/dist/nl-NL-C3cXv5PD.js +61 -0
  285. package/dist/nl-NL-CmlQQSLp.js +32 -0
  286. package/dist/nl-NL-DMdoFepr.js +7 -0
  287. package/dist/nl-NL-_NV5Dvt9.js +7 -0
  288. package/dist/no-NO-BatbPb3N.js +32 -0
  289. package/dist/no-NO-Bf-QR3EY.js +7 -0
  290. package/dist/no-NO-Chwg5Roi.js +7 -0
  291. package/dist/no-NO-CoDL_uMQ.js +7 -0
  292. package/dist/no-NO-Cor-jWuN.js +7 -0
  293. package/dist/no-NO-CwgewQst.js +7 -0
  294. package/dist/no-NO-DyMlgewS.js +61 -0
  295. package/dist/omitObscuredFieldsIfUnchanged-DDq-TIS9.js +20 -0
  296. package/dist/options-horizontal-CTUn7IEx.js +30 -0
  297. package/dist/partner-1StoI4_W.js +30 -0
  298. package/dist/patternValidators-DWouiOVO.js +73 -0
  299. package/dist/pay-by-link-plane-Sa_qkL8C.js +33 -0
  300. package/dist/payout-BAYSxSqU.js +38 -0
  301. package/dist/pdf-uNYg4Mqz.js +22315 -0
  302. package/dist/pdf.worker.min-gK7UJW5a.js +74644 -0
  303. package/dist/person-Da15_s3G.js +23 -0
  304. package/dist/pl-PL-Bgrz9oPS.js +7 -0
  305. package/dist/pl-PL-BzOubawD.js +7 -0
  306. package/dist/pl-PL-ClUTW9pd.js +61 -0
  307. package/dist/pl-PL-D-TVYshE.js +7 -0
  308. package/dist/pl-PL-DSbuyzBx.js +7 -0
  309. package/dist/pl-PL-Dd9fkdnr.js +7 -0
  310. package/dist/pl-PL-ZyxybmlP.js +32 -0
  311. package/dist/plus-BQccvKkd.js +20 -0
  312. package/dist/plus-circle-filled-CqC30FRL.js +30 -0
  313. package/dist/process-field-configurations-U459c7bG.js +279 -0
  314. package/dist/processCapabilities-hLmRus8U.js +870 -0
  315. package/dist/pt-BR-B2q9Nl16.js +7 -0
  316. package/dist/pt-BR-Bk2xOhdi.js +61 -0
  317. package/dist/pt-BR-DUAQ_vv4.js +7 -0
  318. package/dist/pt-BR-Dq0Sd1h9.js +32 -0
  319. package/dist/pt-BR-DwHag_mp.js +7 -0
  320. package/dist/pt-BR-n0GcsM-Q.js +7 -0
  321. package/dist/pt-BR-uhrvEANO2.js +7 -0
  322. package/dist/pt-PT-5O7ohkQD.js +61 -0
  323. package/dist/pt-PT-B6mC3m94.js +7 -0
  324. package/dist/pt-PT-BVcFY8gr.js +7 -0
  325. package/dist/pt-PT-BuM6Edx0.js +32 -0
  326. package/dist/pt-PT-C-mvV1ZJ.js +7 -0
  327. package/dist/pt-PT-CQQkh5PS.js +7 -0
  328. package/dist/pt-PT-Cz4rJgbi.js +7 -0
  329. package/dist/recurring-DSR1fNMh.js +23 -0
  330. package/dist/resolveEnvironment-Doi5jM7g.js +2500 -0
  331. package/dist/revenue-accelerate-CPhAVpPK.js +30 -0
  332. package/dist/ro-RO-BOV_LMAu.js +61 -0
  333. package/dist/ro-RO-BnZbYPEH.js +7 -0
  334. package/dist/ro-RO-ClCWcOZD.js +7 -0
  335. package/dist/ro-RO-CuooCG3m.js +7 -0
  336. package/dist/ro-RO-D3Yk1KoW.js +7 -0
  337. package/dist/ro-RO-DJjle7nF.js +32 -0
  338. package/dist/ro-RO-_BLhsnIB.js +7 -0
  339. package/dist/roleMetadata-bznvTmh3.js +56 -0
  340. package/dist/save-DQ-mJX8e.js +20 -0
  341. package/dist/search-DWqWTW_K.js +30 -0
  342. package/dist/show-BbhlD3IY.js +23 -0
  343. package/dist/sk-SK-BOc9IqyW.js +7 -0
  344. package/dist/sk-SK-BUGTKkOC.js +61 -0
  345. package/dist/sk-SK-CSPSMUYC.js +32 -0
  346. package/dist/sk-SK-CieZx5AS.js +7 -0
  347. package/dist/sk-SK-D3UYKttr.js +7 -0
  348. package/dist/sk-SK-DBHPBJm4.js +7 -0
  349. package/dist/sk-SK-DSaBObVa.js +7 -0
  350. package/dist/sl-SI-BQc61Sz2.js +7 -0
  351. package/dist/sl-SI-BkcElOhl.js +7 -0
  352. package/dist/sl-SI-C82Kr3vf.js +32 -0
  353. package/dist/sl-SI-DbVFyYEg.js +7 -0
  354. package/dist/sl-SI-DffYWi9P.js +61 -0
  355. package/dist/sl-SI-KEJYXISh.js +7 -0
  356. package/dist/sl-SI-dukW1tgW.js +7 -0
  357. package/dist/solution-payments-D4BORMsX.js +20 -0
  358. package/dist/store-DWaq3ZiC.js +20 -0
  359. package/dist/style.css +1151 -1151
  360. package/dist/styles-DYaAeu4q.js +6678 -0
  361. package/dist/sv-SE-Bhvd0GDr.js +7 -0
  362. package/dist/sv-SE-BlGBkLAA.js +7 -0
  363. package/dist/sv-SE-DT9jLSs2.js +32 -0
  364. package/dist/sv-SE-D_bagacj.js +61 -0
  365. package/dist/sv-SE-DkZ2LyW5.js +7 -0
  366. package/dist/sv-SE-DzsWB30f.js +7 -0
  367. package/dist/sv-SE-WmQ6EnrS.js +7 -0
  368. package/dist/terminal-1-crR-pS_R.js +30 -0
  369. package/dist/translation-ZXpd9jdD.js +915 -0
  370. package/dist/types/adaptiveWorkflow/component-registry.d.ts +6 -2
  371. package/dist/types/adaptiveWorkflow/components/Fields/IdentityNumber/IdentityNumberFieldGroup.d.ts +14 -0
  372. package/dist/types/adaptiveWorkflow/components/Fields/IdentityScreening/IdentityScreeningWorkflow.d.ts +19 -0
  373. package/dist/types/api/adaptive/adaptiveWorkflow.types.d.ts +1 -0
  374. package/dist/types/api/adaptive/useAdaptiveWorkflow.d.ts +1 -1
  375. package/dist/types/api/address/useAddressCleanse.d.ts +3 -3
  376. package/dist/types/api/address/useRetrieveAddress.d.ts +2 -2
  377. package/dist/types/api/address/useRetrieveFromPostcodeJp.d.ts +2 -2
  378. package/dist/types/api/address/useSearchAddress.d.ts +2 -2
  379. package/dist/types/api/businessLines/useBusinessLines.d.ts +1 -1
  380. package/dist/types/api/companyDataSet/companyDataset.types.d.ts +3 -6
  381. package/dist/types/api/companySearch/useCompanySearch.d.ts +2 -2
  382. package/dist/types/api/configurations/useSupportedCountries.d.ts +1 -1
  383. package/dist/types/api/configurations/useTaskTypes.d.ts +1 -1
  384. package/dist/types/api/configurations/useVersionConfiguration.d.ts +2 -2
  385. package/dist/types/api/datasets/useLegalForms.d.ts +1 -1
  386. package/dist/types/api/datasets/useNaceCodes.d.ts +1 -1
  387. package/dist/types/api/datasets/useSourceOfFundsTypes.d.ts +1 -1
  388. package/dist/types/api/documents/useDocument.d.ts +1 -1
  389. package/dist/types/api/documents/useDocuments.d.ts +1 -1
  390. package/dist/types/api/idNowProvider/useIdNowProvider.d.ts +3 -3
  391. package/dist/types/api/idVerificationProviders/useIdVerificationToken.d.ts +1 -1
  392. package/dist/types/api/industryCodes/useIndustryCodes.d.ts +1 -1
  393. package/dist/types/api/invitations/useInvitationStatus.d.ts +5 -2
  394. package/dist/types/api/invitedEntity/useInvitedEntityAssociationData.d.ts +2 -2
  395. package/dist/types/api/invitedEntity/useInvitedEntityRootCapabilities.d.ts +2 -2
  396. package/dist/types/api/legalEntity/useLegalEntity.d.ts +9 -9
  397. package/dist/types/api/onboardingStatus/useOnboardingStatus.d.ts +1 -1
  398. package/dist/types/api/openId/useOpenIdAuthorizationLink.d.ts +1 -1
  399. package/dist/types/api/pci/usePciQuestionnaireList.d.ts +2 -2
  400. package/dist/types/api/pci/usePciStatus.d.ts +2 -2
  401. package/dist/types/api/pci/usePciTemplate.d.ts +2 -2
  402. package/dist/types/api/providersConfiguration/useProviderStatus.d.ts +1 -1
  403. package/dist/types/api/taskStatus/useTaskStatus.d.ts +2 -2
  404. package/dist/types/api/taskStatus/useTaskStatuses.d.ts +2 -2
  405. package/dist/types/api/taxClassification/useTaxClassification.d.ts +2 -2
  406. package/dist/types/api/termsOfService/useAcceptedTermsOfService.d.ts +2 -2
  407. package/dist/types/api/termsOfService/useTermsOfService.d.ts +2 -2
  408. package/dist/types/api/termsOfService/useTermsOfServiceAcceptanceInfos.d.ts +1 -1
  409. package/dist/types/api/termsOfService/useTermsOfServiceStatus.d.ts +2 -2
  410. package/dist/types/api/tinVerification/useVerifyTin.d.ts +2 -2
  411. package/dist/types/api/toggles/useToggles.d.ts +1 -1
  412. package/dist/types/api/transferInstruments/useBankVerificationProviders.d.ts +1 -1
  413. package/dist/types/api/transferInstruments/useTransferInstrument.d.ts +1 -1
  414. package/dist/types/api/transferInstruments/useTransferInstruments.d.ts +1 -1
  415. package/dist/types/api/uiAnalytics/useAnalyticsSession.d.ts +2 -2
  416. package/dist/types/api/validation/useValidatePhoneNumber.d.ts +2 -2
  417. package/dist/types/components/BankAccount/mapping/payoutKeyMappings.d.ts +25 -25
  418. package/dist/types/components/Business/hooks/useSubmitBusinessDetails.d.ts +1 -26
  419. package/dist/types/components/Business/hooks/useSubmitBusinessDetails.types.d.ts +47 -0
  420. package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +0 -55
  421. package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +494 -494
  422. package/dist/types/components/Individual/forms/InviteDetails/validate.d.ts +1 -2
  423. package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerListItem/DecisionMakerListItem.d.ts +3 -2
  424. package/dist/types/components/Shared/TaskVerificationStatus/TaskVerificationStatus.d.ts +1 -1
  425. package/dist/types/components/Shared/fields/Name/validate.d.ts +1 -2
  426. package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
  427. package/dist/types/components/ui/atoms/Tile/Tile.d.ts +2 -1
  428. package/dist/types/context/ToggleContext/types.d.ts +4 -4
  429. package/dist/types/utils/analytics/trackClickHandler.d.ts +11 -0
  430. package/dist/types/utils/entityStatusUtil.d.ts +1 -1
  431. package/dist/types-B4LsyK73.js +19 -0
  432. package/dist/types-Bm4RGrSI.js +66 -0
  433. package/dist/types-Bvp3aTbC.js +58 -0
  434. package/dist/unincorporated-partnership-GaTPaALJ.js +40 -0
  435. package/dist/upload-D85xAAAm.js +23 -0
  436. package/dist/useAssociatedLegalEntity-CQAe7Co6.js +35 -0
  437. package/dist/useBusinessDetailsData-BDxT0mFG.js +4647 -0
  438. package/dist/useBusinessLines-Dshc0pYD.js +27 -0
  439. package/dist/useCanSeeIntroduction-DQyl0Vkk.js +39 -0
  440. package/dist/useCreateLegalEntity-38twl3gB.js +24 -0
  441. package/dist/useDataMissingRemediations-7H0hHxXG.js +39 -0
  442. package/dist/useForm-x1BtFLPw.js +502 -0
  443. package/dist/useFormContext-CyhnFPOt.js +504 -0
  444. package/dist/useLegalEntity-EN5ubX2H.js +48 -0
  445. package/dist/useMultiForm-NwELDSnm.js +817 -0
  446. package/dist/useNavigate-BfWevcN2.js +269 -0
  447. package/dist/useOnboardingStatus-Cf6dZFB2.js +23 -0
  448. package/dist/usePciQuestionnaireList-C3bk4K8n.js +26 -0
  449. package/dist/useSalesChannels-CC-N9vqE.js +47 -0
  450. package/dist/useScenarios-ful0VqQ4.js +55 -0
  451. package/dist/useTaskLandedEvent-CtlV_Bum.js +26 -0
  452. package/dist/useTaskStatus-CLcXCIz7.js +23 -0
  453. package/dist/useTermsOfServiceStatus-DwWvz0vR.js +39 -0
  454. package/dist/useTrustMembers-BZRB9RDn.js +152 -0
  455. package/dist/useUnincorporatedPartnershipMembers-wgiUFuxT.js +70 -0
  456. package/dist/useUpdateBusinessLines-BRxlqBnM.js +68 -0
  457. package/dist/useUpdateLegalEntity-DnkFwUCD.js +29 -0
  458. package/dist/utils-B6a1FGxD.js +2507 -0
  459. package/dist/utils-BgdkZkf5.js +71 -0
  460. package/dist/utils-DcUoR5qG.js +61 -0
  461. package/dist/utils-DwujAUJC.js +46 -0
  462. package/dist/utils-iXMYP5kO.js +188 -0
  463. package/dist/validate-CPz6CHtU.js +109 -0
  464. package/dist/validate-j0h8oux2.js +397 -0
  465. package/dist/validateExtractionResult-CHdmHmkZ.js +1070 -0
  466. package/dist/validationError-tIm9Zzjt.js +68 -0
  467. package/dist/validationResult-CqlLuppx.js +77 -0
  468. package/dist/warning-circle-fill-BDTmKU1s.js +30 -0
  469. package/dist/warning-diamond-filled-BjDL-xa8.js +30 -0
  470. package/dist/webinar-YMbPoCx3.js +33 -0
  471. package/package.json +25 -25
  472. package/dist/4-people-UD6qivNv.js +0 -35
  473. package/dist/AcceptTermsOfServiceComponent-CV0tEsZ8.js +0 -652
  474. package/dist/Accordion-gSHEDtlp.js +0 -111
  475. package/dist/AccountSetupRejected-MS5ucnkH.js +0 -19
  476. package/dist/AdaptiveWorkflow-BRSkDC27.js +0 -1562
  477. package/dist/AdaptiveWorkflowComponent-436q2Z3Q.js +0 -130
  478. package/dist/Address-B1WQZxTA.js +0 -557
  479. package/dist/Alert-BYrDkvk9.js +0 -170
  480. package/dist/Avatar-CuGCWCs9.js +0 -54
  481. package/dist/BusinessFinancingDropin-DrABikQM.js +0 -1800
  482. package/dist/BusinessFinancingPage-CSwjPgIJ.js +0 -87
  483. package/dist/BusinessTypeSelectionPage-D0jjyKgo.js +0 -436
  484. package/dist/Button-BxfzWsRl.js +0 -189
  485. package/dist/Card-BylPFvY4.js +0 -71
  486. package/dist/Checkbox-BRuXJ18x.js +0 -55
  487. package/dist/CompanyRegistrationNumberTypeSelector-DiImGTFe.js +0 -1074
  488. package/dist/Confirm-BEZEArAy.js +0 -76
  489. package/dist/ConstitutionalDocument-CdpVRf0I.js +0 -1125
  490. package/dist/ContactDetails-63BkotMl.js +0 -516
  491. package/dist/ContextGuidance-BRGAWzeW.js +0 -29
  492. package/dist/CountryField-DhNTIfGL.js +0 -38
  493. package/dist/Currency-QVw0PSm6.js +0 -191
  494. package/dist/CustomerSupport-BXin9crY.js +0 -129
  495. package/dist/DebugModal-CESnpE8S.js +0 -454
  496. package/dist/DecisionMakerDetails-B8s07F7D.js +0 -493
  497. package/dist/DecisionMakerDetailsPage-BaOxC2U6.js +0 -103
  498. package/dist/DecisionMakers-Bm-L-q92.js +0 -583
  499. package/dist/DetailViewLayout-Be6cqBDx.js +0 -68
  500. package/dist/Divider-BndbWx4f.js +0 -11
  501. package/dist/Dropzone-BbBVtqN9.js +0 -236
  502. package/dist/EmbeddedStatus-td-3A1DN.js +0 -128
  503. package/dist/EndStateLayout-CnhmrsxA.js +0 -82
  504. package/dist/EntityAssociation-BHvq_AwX.js +0 -163
  505. package/dist/ErrorPanel-CzX5ev6p.js +0 -185
  506. package/dist/Field-Vzlyifk5.js +0 -155
  507. package/dist/FormNavigation-B79CI_Kc.js +0 -116
  508. package/dist/Header-fY8HlUFH.js +0 -93
  509. package/dist/Image-BBLBIviv.js +0 -33
  510. package/dist/Individual.rules-BvJRuxgJ.js +0 -294
  511. package/dist/IndividualDropin-BVMDPYDe.js +0 -4958
  512. package/dist/InputDate--h7l0kcO.js +0 -52
  513. package/dist/InputText-BK_8YUd_.js +0 -119
  514. package/dist/Introduction-p7SxkPvq.js +0 -325
  515. package/dist/InvitedDecisionMakerComponent-B40Lk4i7.js +0 -412
  516. package/dist/JpAddress-msyDs8qO.js +0 -322
  517. package/dist/LandingLayout-BK3kV0FL.js +0 -76
  518. package/dist/LegalCompanyNameField-CQUbvS77.js +0 -108
  519. package/dist/LegalRepresentativeDetailsPage-Csvg_gjL.js +0 -73
  520. package/dist/Link-idX4eEXz.js +0 -32
  521. package/dist/List-DLrcpMVd.js +0 -71
  522. package/dist/ListItem-BzSnYlO1.js +0 -70
  523. package/dist/LoaderWrapper-Tr14IrmG.js +0 -34
  524. package/dist/MaskedInput-WaAdSNPN.js +0 -715
  525. package/dist/MaybeModal-BkoicAOk.js +0 -24
  526. package/dist/Modal-CMKjvMyV.js +0 -109
  527. package/dist/Name-DkBgo3cK.js +0 -61
  528. package/dist/NewSummary-Cf1CesDB.js +0 -72
  529. package/dist/PayoutDetailsDropinMultiForm-CiTh764I.js +0 -4106
  530. package/dist/PayoutDetailsPage-CLt8LJCi.js +0 -68
  531. package/dist/ProgressBar-DrvdkkV2.js +0 -38
  532. package/dist/RadioGroup-Bc8reZVM.js +0 -84
  533. package/dist/Review-GGx4T5lx.js +0 -99
  534. package/dist/RootBusinessDetailsPage-z94WN2fb.js +0 -69
  535. package/dist/RootBusinessLinesPage-B1SNv9er.js +0 -1452
  536. package/dist/RootIndividualDetailsPage-DE704wL6.js +0 -81
  537. package/dist/Select-CRVpXZ1k.js +0 -777
  538. package/dist/SignPCIComponent-BPSj_yuH.js +0 -368
  539. package/dist/SingpassSelection-c3hLW3jo.js +0 -156
  540. package/dist/SoleProprietorshipPage-C2gjJZcb.js +0 -69
  541. package/dist/SourceOfFundsPage-DItR3-Hp.js +0 -2775
  542. package/dist/Spacer-D1yp_1Io.js +0 -11
  543. package/dist/StackLayout-CTLQyVDf.js +0 -105
  544. package/dist/StateContext-BExuJcFK.js +0 -9
  545. package/dist/StructuredList-S4LIZQiJ.js +0 -56
  546. package/dist/Summary-DESUnetK.js +0 -226
  547. package/dist/Tag-BUoDHC4C.js +0 -39
  548. package/dist/TaskListItem-9Kq5rfrA.js +0 -164
  549. package/dist/TaskVerificationStatus-F5lMp5Rx.js +0 -118
  550. package/dist/TaxInformationField-DlmOFIDl.js +0 -474
  551. package/dist/TaxReportingDropin-LOUIhV-w.js +0 -476
  552. package/dist/TextArea-CIgJgN16.js +0 -80
  553. package/dist/TileGroup-irJw9YNz.js +0 -170
  554. package/dist/ToastContext-D7fHw64P.js +0 -13
  555. package/dist/ToastContextProvider-CU6K9Sqo.js +0 -103
  556. package/dist/TrustDetailsPage-B9sH2X7l.js +0 -1103
  557. package/dist/TrustMemberCompanyPage-BnY9tVG7.js +0 -107
  558. package/dist/TrustMemberIndividualPage-B4Iqm4MI.js +0 -107
  559. package/dist/TrustMemberRoleAndTypePage-LlBgvSwW.js +0 -933
  560. package/dist/TrustMembersOverview-BGzdiibd.js +0 -451
  561. package/dist/UnincorporatedPartnershipIndividualPage-CUrCUB2E.js +0 -78
  562. package/dist/UnincorporatedPartnershipMemberCompanyPage-Uzsm5Zo2.js +0 -78
  563. package/dist/UnincorporatedPartnershipMemberRoleAndTypePage-BbQB-s2g.js +0 -271
  564. package/dist/UnincorporatedPartnershipMembersOverview-B-djUG0K.js +0 -159
  565. package/dist/VerificationErrorAlert-D8Peag6l.js +0 -38
  566. package/dist/_rolldown_dynamic_import_helper-C4ugHLZT.js +0 -14
  567. package/dist/accountHolderUtils-mgP2-0Nn.js +0 -44
  568. package/dist/arrow-right-BJTNKb0O.js +0 -20
  569. package/dist/bafinUtils-DJ5gJYKz.js +0 -96
  570. package/dist/bag-DZMiIi7P.js +0 -20
  571. package/dist/bank-CzucQEWZ.js +0 -20
  572. package/dist/bg-BG-BUgREukJ.js +0 -7
  573. package/dist/bg-BG-Bfk35aUM.js +0 -7
  574. package/dist/bg-BG-Bw1uE2hh.js +0 -7
  575. package/dist/bg-BG-C0FkvcA2.js +0 -31
  576. package/dist/bg-BG-CAC3TgzH.js +0 -7
  577. package/dist/bg-BG-DkeEONKT.js +0 -60
  578. package/dist/bg-BG-DszNb4YW.js +0 -7
  579. package/dist/bin-BbC6aL9-.js +0 -30
  580. package/dist/birthDateUtils-BUDlu8wE.js +0 -82
  581. package/dist/capital-B61w2ph0.js +0 -23
  582. package/dist/cash-stack-DrmR4pnT.js +0 -33
  583. package/dist/certificate-_tpSgTGm.js +0 -23
  584. package/dist/checkmark-DnlW1SB-.js +0 -20
  585. package/dist/checkmark-circle-Dixm0aV6.js +0 -28
  586. package/dist/checkmark-circle-fill-dAg9Mn5z.js +0 -30
  587. package/dist/checkmark-small-Di0Lj9EO.js +0 -20
  588. package/dist/chevron-down-CvIokHIR.js +0 -20
  589. package/dist/chevron-left-BNjJxGO4.js +0 -20
  590. package/dist/chevron-right-CeXpOOK6.js +0 -20
  591. package/dist/chevron-up-esJT8bFL.js +0 -20
  592. package/dist/circle-BJtiv6-2.js +0 -30
  593. package/dist/circle-small-filled-BLmJJiLk.js +0 -20
  594. package/dist/clock-Xuw4kh_Y.js +0 -28
  595. package/dist/coins-BeFK6pqR.js +0 -30
  596. package/dist/company-types-value-BYTAKfjo.js +0 -17
  597. package/dist/constants-Cuqk72uG.js +0 -233
  598. package/dist/contract-D4VJIjGm.js +0 -20
  599. package/dist/countries-BLvJ0FJ4.js +0 -41
  600. package/dist/country-Cm0PPJDS.js +0 -13
  601. package/dist/cross-CbSU1xP-.js +0 -20
  602. package/dist/cross-circle-fill-iElIdcZN.js +0 -30
  603. package/dist/cross-circle-fill-small-DyxDVLjN.js +0 -20
  604. package/dist/cs-CZ-3vdI5Jjr.js +0 -31
  605. package/dist/cs-CZ-B1VpAUva.js +0 -7
  606. package/dist/cs-CZ-BCCbEB0j.js +0 -7
  607. package/dist/cs-CZ-BWwYdy4S.js +0 -7
  608. package/dist/cs-CZ-CDBbVGc-.js +0 -60
  609. package/dist/cs-CZ-DC3dWoGV.js +0 -7
  610. package/dist/cs-CZ-DtoIeWYx.js +0 -7
  611. package/dist/da-DK-BCPtwA_c.js +0 -7
  612. package/dist/da-DK-BVAv2vUs.js +0 -7
  613. package/dist/da-DK-BbuiozUl.js +0 -7
  614. package/dist/da-DK-C0KVt06k.js +0 -7
  615. package/dist/da-DK-CrBk2y5x.js +0 -31
  616. package/dist/da-DK-DaA3zK0h.js +0 -60
  617. package/dist/da-DK-klGGwyxv.js +0 -7
  618. package/dist/datasetUtil-uPWEKDf8.js +0 -45
  619. package/dist/de-DE-B8GqI1Sq.js +0 -7
  620. package/dist/de-DE-B_L7jawo.js +0 -7
  621. package/dist/de-DE-CEKqkGeP.js +0 -7
  622. package/dist/de-DE-Cl0fc0U_.js +0 -60
  623. package/dist/de-DE-DXkUC1-N.js +0 -7
  624. package/dist/de-DE-XXqDUm1h.js +0 -31
  625. package/dist/de-DE-uuUOPGHs.js +0 -7
  626. package/dist/decisionMaker-b5wJjUBN.js +0 -146
  627. package/dist/decisionMakerRoles-CCKWKoWd.js +0 -46
  628. package/dist/document-1-Dfu6EDzV.js +0 -20
  629. package/dist/document-person-Dgv26vCh.js +0 -28
  630. package/dist/download-Ct05dQIR.js +0 -23
  631. package/dist/edit-1-m3Xin3vd.js +0 -20
  632. package/dist/el-GR-BP7G1Ka8.js +0 -31
  633. package/dist/el-GR-CEZLeeb3.js +0 -7
  634. package/dist/el-GR-CNoP_at_.js +0 -60
  635. package/dist/el-GR-Ctd3mBAX.js +0 -7
  636. package/dist/el-GR-D4Pmng8T.js +0 -7
  637. package/dist/el-GR-DtpUBNHl.js +0 -7
  638. package/dist/el-GR-WS8xbrFJ.js +0 -7
  639. package/dist/en-US-BqoUncE4.js +0 -7
  640. package/dist/en-US-DQLhkpBE.js +0 -60
  641. package/dist/entityAssociationUtil-D1ledZtc.js +0 -59
  642. package/dist/es-ES-B-x17o8d.js +0 -7
  643. package/dist/es-ES-BPXpnHRY.js +0 -60
  644. package/dist/es-ES-BQyI--wB.js +0 -31
  645. package/dist/es-ES-BrTDtXtR.js +0 -7
  646. package/dist/es-ES-CB4LW8fA.js +0 -7
  647. package/dist/es-ES-DB77kzqT.js +0 -7
  648. package/dist/es-ES-XWHjoMpE.js +0 -7
  649. package/dist/et-EE-BSBN_3SH.js +0 -31
  650. package/dist/et-EE-BiA52MlJ.js +0 -7
  651. package/dist/et-EE-CPykMmP6.js +0 -7
  652. package/dist/et-EE-CfkcHuFD.js +0 -60
  653. package/dist/et-EE-CweZxZJx.js +0 -7
  654. package/dist/et-EE-D5ztjKQA.js +0 -7
  655. package/dist/et-EE-Dj0jysHw.js +0 -7
  656. package/dist/external-link-BxiqXr7-.js +0 -20
  657. package/dist/fi-FI-4ckffUlB.js +0 -7
  658. package/dist/fi-FI-AQc_uafE.js +0 -7
  659. package/dist/fi-FI-BUUV58aZ.js +0 -7
  660. package/dist/fi-FI-BvjOb0Oi.js +0 -7
  661. package/dist/fi-FI-CGqRN2IG.js +0 -60
  662. package/dist/fi-FI-Ci2zcIZj.js +0 -31
  663. package/dist/fi-FI-lFhGznBk2.js +0 -7
  664. package/dist/formFieldsUtils-DGrXBMOZ.js +0 -7
  665. package/dist/formUtils-C7vlzCV-.js +0 -78
  666. package/dist/fr-FR-B95kf8uT2.js +0 -7
  667. package/dist/fr-FR-BuQwZ2oq.js +0 -7
  668. package/dist/fr-FR-BwhO0tqx.js +0 -60
  669. package/dist/fr-FR-CZs4UzUR.js +0 -7
  670. package/dist/fr-FR-Cq7iIftz.js +0 -31
  671. package/dist/fr-FR-CzKTntJm.js +0 -7
  672. package/dist/fr-FR-e7lKrFcK.js +0 -7
  673. package/dist/getLegalEntityCountry-C6bSV6sB.js +0 -17
  674. package/dist/getName-BtgdCWSR.js +0 -35
  675. package/dist/getProblemsForEntity-B9GOFyRX.js +0 -16
  676. package/dist/getTrustedDecisionMakers-D2yayvPr.js +0 -25
  677. package/dist/gift-CX0qVK1O.js +0 -20
  678. package/dist/globalStore-BCeQ8cDF.js +0 -419
  679. package/dist/graph-idneKCfM.js +0 -32
  680. package/dist/graph-up-BZtGbTh8.js +0 -38
  681. package/dist/headquarter-pYPoPBZM.js +0 -42
  682. package/dist/hotel-DcStWscD.js +0 -33
  683. package/dist/hr-HR-BFy27vAx2.js +0 -7
  684. package/dist/hr-HR-BXLWA1xd.js +0 -60
  685. package/dist/hr-HR-CN0us45A.js +0 -7
  686. package/dist/hr-HR-DVJaypbL.js +0 -7
  687. package/dist/hr-HR-Ngyn0CeW.js +0 -7
  688. package/dist/hr-HR-WsApmYld.js +0 -7
  689. package/dist/hr-HR-iC0oTR81.js +0 -31
  690. package/dist/http-D5tz1jGD.js +0 -149
  691. package/dist/hu-HU-BXhdx-ju.js +0 -31
  692. package/dist/hu-HU-Bdjd0HM0.js +0 -7
  693. package/dist/hu-HU-D_5yVmCo.js +0 -7
  694. package/dist/hu-HU-Nb-5azdf.js +0 -60
  695. package/dist/hu-HU-kcQkkxnT2.js +0 -7
  696. package/dist/hu-HU-rbT-Gfxm.js +0 -7
  697. package/dist/hu-HU-xO5SwtyK.js +0 -7
  698. package/dist/image-Cu6NenSs.js +0 -23
  699. package/dist/info-BFv37bQB.js +0 -32
  700. package/dist/info-filled-d8JiHhYQ.js +0 -32
  701. package/dist/invalidateRootLegalEntity-D7_UqU5H.js +0 -45
  702. package/dist/isEmpty-Bi8OJ7I4.js +0 -14
  703. package/dist/isEmptyEntity-CCwgjz_g.js +0 -44
  704. package/dist/it-IT-B0pCVo4V.js +0 -60
  705. package/dist/it-IT-B2zFnv7K.js +0 -7
  706. package/dist/it-IT-BDkY4_D3.js +0 -31
  707. package/dist/it-IT-BUJ6M3KT2.js +0 -7
  708. package/dist/it-IT-DiJG8CVH.js +0 -7
  709. package/dist/it-IT-QMmUeFIw.js +0 -7
  710. package/dist/it-IT-wx2DTjIq.js +0 -7
  711. package/dist/ja-JP-B1AjiTAA2.js +0 -7
  712. package/dist/ja-JP-BchEmvKT.js +0 -7
  713. package/dist/ja-JP-CYNEiARm.js +0 -7
  714. package/dist/ja-JP-CYmySE1y.js +0 -7
  715. package/dist/ja-JP-DOkTs_1m.js +0 -31
  716. package/dist/ja-JP-DoROjKZt.js +0 -60
  717. package/dist/ja-JP-K0GtGc1m.js +0 -7
  718. package/dist/japanSupportUtils-DqvGrGbm.js +0 -11
  719. package/dist/keys-fzUbt2xF.js +0 -20
  720. package/dist/listToRecord-wN5QNS0D.js +0 -10
  721. package/dist/localizeDateString-Bni_Kn5k.js +0 -35
  722. package/dist/location-D--t6qb1.js +0 -23
  723. package/dist/lt-LT-2KIisO4_.js +0 -7
  724. package/dist/lt-LT-BwsC_PRy.js +0 -7
  725. package/dist/lt-LT-CDRKdIqh.js +0 -60
  726. package/dist/lt-LT-CfUZy3Nu.js +0 -7
  727. package/dist/lt-LT-Csda84LY.js +0 -7
  728. package/dist/lt-LT-DKeyLOpW2.js +0 -7
  729. package/dist/lt-LT-DpMT3Dw2.js +0 -31
  730. package/dist/lv-LV-B_twW5aF.js +0 -7
  731. package/dist/lv-LV-BlsECQxr.js +0 -60
  732. package/dist/lv-LV-CIkyBWzC2.js +0 -7
  733. package/dist/lv-LV-CaTht4v3.js +0 -7
  734. package/dist/lv-LV-DeE0FbCk.js +0 -7
  735. package/dist/lv-LV-M8ADb0dX.js +0 -7
  736. package/dist/lv-LV-aPZP5Wh5.js +0 -31
  737. package/dist/mail-CoQ5t6Ml.js +0 -20
  738. package/dist/mapExistingFile-AUOevYJs.js +0 -135
  739. package/dist/mapJpAddressSchemaToAddressLocalizations-DFgQADg8.js +0 -61
  740. package/dist/mapLegalEntityToIndividualSchema-CNdXP4KZ.js +0 -207
  741. package/dist/mapTransferInstrumentToPayoutAccount-DaAa5pOZ.js +0 -44
  742. package/dist/minus-circle-filled-BdvEdxjZ.js +0 -30
  743. package/dist/nl-NL-BPZ4ggwt.js +0 -7
  744. package/dist/nl-NL-BSq1sTYp2.js +0 -7
  745. package/dist/nl-NL-CQ0C9N3m.js +0 -60
  746. package/dist/nl-NL-Ch6Gx-ay.js +0 -7
  747. package/dist/nl-NL-K11VO8LF.js +0 -31
  748. package/dist/nl-NL-kUujSdLA.js +0 -7
  749. package/dist/nl-NL-lkzdYqOX.js +0 -7
  750. package/dist/no-NO-BNGILdWq.js +0 -31
  751. package/dist/no-NO-CRUvKPvc2.js +0 -7
  752. package/dist/no-NO-CSn5Ou1S.js +0 -7
  753. package/dist/no-NO-DAK8yauA.js +0 -7
  754. package/dist/no-NO-DEmXDlJQ.js +0 -7
  755. package/dist/no-NO-DyJlM9HH.js +0 -7
  756. package/dist/no-NO-FfT6jM26.js +0 -60
  757. package/dist/omitObscuredFieldsIfUnchanged-Bl-KmvQB.js +0 -20
  758. package/dist/options-horizontal-p3bn-0YP.js +0 -30
  759. package/dist/partner-DAXf38Tp.js +0 -30
  760. package/dist/patternValidators-DMnU4iGe.js +0 -73
  761. package/dist/pay-by-link-plane-JUQ9G9Rb.js +0 -33
  762. package/dist/payout-Bp5yyaPy.js +0 -38
  763. package/dist/pdf-nzZcuCSf.js +0 -22316
  764. package/dist/pdf.worker.min-DE42kNC_.js +0 -74645
  765. package/dist/person-CBe70ddT.js +0 -23
  766. package/dist/pl-PL-C8O5EIza.js +0 -7
  767. package/dist/pl-PL-CpA94K5Z.js +0 -7
  768. package/dist/pl-PL-D9oajkyF.js +0 -7
  769. package/dist/pl-PL-DQ3obGGK.js +0 -7
  770. package/dist/pl-PL-D_FRhmnE2.js +0 -7
  771. package/dist/pl-PL-DhJQbVhT.js +0 -31
  772. package/dist/pl-PL-vU5_jmwK.js +0 -60
  773. package/dist/plus-DMRvapmz.js +0 -20
  774. package/dist/plus-circle-filled-DUmcjiaH.js +0 -30
  775. package/dist/process-field-configurations-D-i--Py4.js +0 -279
  776. package/dist/processCapabilities-C3-DrzSD.js +0 -869
  777. package/dist/pt-BR-B3IHhi-A.js +0 -31
  778. package/dist/pt-BR-BJXrQjtE2.js +0 -7
  779. package/dist/pt-BR-BM2eCcyF.js +0 -60
  780. package/dist/pt-BR-CHDCegc8.js +0 -7
  781. package/dist/pt-BR-D9hPCc0c.js +0 -7
  782. package/dist/pt-BR-DyTpIjam.js +0 -7
  783. package/dist/pt-BR-u_Sv-NkV.js +0 -7
  784. package/dist/pt-PT-3DrMwWiz.js +0 -31
  785. package/dist/pt-PT-B1k39MuE.js +0 -7
  786. package/dist/pt-PT-BXlxPqah.js +0 -7
  787. package/dist/pt-PT-Bmgh2Wtd.js +0 -60
  788. package/dist/pt-PT-CUSJRIfa2.js +0 -7
  789. package/dist/pt-PT-GnCWUuu_.js +0 -7
  790. package/dist/pt-PT-ne6PkZM_.js +0 -7
  791. package/dist/recurring-DoBaCr6V.js +0 -23
  792. package/dist/resolveEnvironment-CXxQ9uok.js +0 -985
  793. package/dist/revenue-accelerate-BTrH1Kyc.js +0 -30
  794. package/dist/ro-RO-7iyzlI6_.js +0 -60
  795. package/dist/ro-RO-B1HkfIdK.js +0 -31
  796. package/dist/ro-RO-BvYWHJVi.js +0 -7
  797. package/dist/ro-RO-CcQh__lV2.js +0 -7
  798. package/dist/ro-RO-CfsDLBM4.js +0 -7
  799. package/dist/ro-RO-DGzJvIXf.js +0 -7
  800. package/dist/ro-RO-rwkWejS6.js +0 -7
  801. package/dist/roleMetadata-bE5AIBEY.js +0 -56
  802. package/dist/save-DtVvA4bm.js +0 -20
  803. package/dist/search-CwNfiquk.js +0 -30
  804. package/dist/show-mWAebR3W.js +0 -23
  805. package/dist/sk-SK-BQgZ5CQA.js +0 -7
  806. package/dist/sk-SK-BR0l7uzo.js +0 -7
  807. package/dist/sk-SK-BpMbHWuR.js +0 -60
  808. package/dist/sk-SK-C1lm7CTj.js +0 -7
  809. package/dist/sk-SK-Cd48q22c.js +0 -31
  810. package/dist/sk-SK-ChCtHT1F.js +0 -7
  811. package/dist/sk-SK-D6xioiMY2.js +0 -7
  812. package/dist/sl-SI-BZ5Dm_pA.js +0 -7
  813. package/dist/sl-SI-CRk5cPQq2.js +0 -7
  814. package/dist/sl-SI-D5wg7xsZ.js +0 -7
  815. package/dist/sl-SI-DHn8rJ33.js +0 -7
  816. package/dist/sl-SI-DpgW-r5w.js +0 -7
  817. package/dist/sl-SI-DvXrcue1.js +0 -31
  818. package/dist/sl-SI-gUNcHR30.js +0 -60
  819. package/dist/solution-payments-rYk5tB74.js +0 -20
  820. package/dist/store-vKCOvUVJ.js +0 -20
  821. package/dist/styles-DfQtSmqv.js +0 -6678
  822. package/dist/sv-SE-BfLV5o3E.js +0 -7
  823. package/dist/sv-SE-BhwzqPYQ.js +0 -60
  824. package/dist/sv-SE-CMkXS2cO.js +0 -31
  825. package/dist/sv-SE-CRPJUyOE2.js +0 -7
  826. package/dist/sv-SE-CloWnXU5.js +0 -7
  827. package/dist/sv-SE-CzO_XtYz.js +0 -7
  828. package/dist/sv-SE-Iv-yFbrD2.js +0 -7
  829. package/dist/terminal-1-BOv4YorG.js +0 -30
  830. package/dist/toFullWidth-CZdUBEal.js +0 -52
  831. package/dist/translation-BHUZ_WP7.js +0 -915
  832. package/dist/trustUtil-BBkbuta4.js +0 -99
  833. package/dist/types-BEc7vus9.js +0 -58
  834. package/dist/types-CBQZm0Fk.js +0 -150
  835. package/dist/types-CEJyC_Mj.js +0 -66
  836. package/dist/types-DyF8eymA.js +0 -19
  837. package/dist/unincorporated-partnership-CtwHVLzp.js +0 -11
  838. package/dist/upload-StAXlB73.js +0 -23
  839. package/dist/useAccountHolder-aoHH1XJq.js +0 -102
  840. package/dist/useAllowedCountries-Dea38KPz.js +0 -74
  841. package/dist/useAnalyticsContext-pNSIB8AZ.js +0 -12
  842. package/dist/useAssociatedLegalEntity-BOtek2pM.js +0 -35
  843. package/dist/useBusinessDetailsData-Dw8VtZkI.js +0 -4654
  844. package/dist/useBusinessLines-BE_hXjkY.js +0 -27
  845. package/dist/useCanSeeIntroduction-C7a4t7HJ.js +0 -39
  846. package/dist/useCapabilities-Bn6IcCNt.js +0 -12
  847. package/dist/useCreateLegalEntity-DWNHPjAr.js +0 -24
  848. package/dist/useDataMissingRemediations-Dc8p_hCP.js +0 -39
  849. package/dist/useDataset-VrL_8cq1.js +0 -96
  850. package/dist/useDeleteTransferInstrument-Bf3I-lk0.js +0 -31
  851. package/dist/useForm-CbSEaCrl.js +0 -502
  852. package/dist/useFormContext-DGW15-id.js +0 -504
  853. package/dist/useLegalEntity-k2lxoMzW.js +0 -48
  854. package/dist/useMultiForm-DOQ6_HoL.js +0 -817
  855. package/dist/useNavigate-zhguGWRa.js +0 -269
  856. package/dist/useOnboardingStatus-CHBhX5te.js +0 -23
  857. package/dist/usePciQuestionnaireList-Y87h-w4C.js +0 -26
  858. package/dist/useSalesChannels-f8ZEd90X.js +0 -47
  859. package/dist/useScenarios-D2TFpeEU.js +0 -55
  860. package/dist/useTaskLandedEvent-BdO8qSBg.js +0 -26
  861. package/dist/useTaskStatus-DPyTD_Ko.js +0 -23
  862. package/dist/useTermsOfServiceStatus-C04Xyc0M.js +0 -39
  863. package/dist/useToastContext-BIwgSCxA.js +0 -12
  864. package/dist/useToggleContext-B57-85xe.js +0 -21
  865. package/dist/useTrustMembers-DYKQfH8R.js +0 -152
  866. package/dist/useUnincorporatedPartnershipMembers-CtuG_S-a.js +0 -70
  867. package/dist/useUpdateBusinessLines-CaT_-l9v.js +0 -68
  868. package/dist/useUpdateLegalEntity-CfJs-A1X.js +0 -29
  869. package/dist/utils-Bx8jBrij.js +0 -46
  870. package/dist/utils-C1DzW0Hz.js +0 -207
  871. package/dist/utils-Cd8I9QM7.js +0 -2507
  872. package/dist/utils-TlcnGMeG.js +0 -188
  873. package/dist/utils-g_Wl4-9Z.js +0 -24
  874. package/dist/validate-CaRbtwlX.js +0 -411
  875. package/dist/validate-J6U_ulFs.js +0 -397
  876. package/dist/validate-maTmOby_.js +0 -109
  877. package/dist/validationError-CD5jY1NM.js +0 -68
  878. package/dist/validationResult-OLfDDPfY.js +0 -77
  879. package/dist/validatorUtils-Dz6AklT-.js +0 -107
  880. package/dist/warning-circle-fill-BZhgf5Z8.js +0 -30
  881. package/dist/warning-diamond-filled-hJarrWMO.js +0 -30
  882. package/dist/webinar-j4tLxNVB.js +0 -33
  883. /package/dist/{AD-Dz8oe6Pg.js → AD-Clkur2Hx.js} +0 -0
  884. /package/dist/{AE-CTdU1tzb.js → AE-BUOfE-VR.js} +0 -0
  885. /package/dist/{AI-tjrpVbOw.js → AI-BApAOdVW.js} +0 -0
  886. /package/dist/{AL-DvyI05UB.js → AL-DfPgkH9x.js} +0 -0
  887. /package/dist/{AR-DI6rdPa-.js → AR-Bddz61XJ.js} +0 -0
  888. /package/dist/{AS-ByXIuSCx.js → AS-C3xgvOIz.js} +0 -0
  889. /package/dist/{AT-CvSbaCoE.js → AT-BG3-OqzL.js} +0 -0
  890. /package/dist/{AT-DYSevBIw.js → AT-BNvEEyA1.js} +0 -0
  891. /package/dist/{AT-CutjdISu.js → AT-CaB9iU_v.js} +0 -0
  892. /package/dist/{AT-Dt3ZU8Yh.js → AT-DnJdtYnd.js} +0 -0
  893. /package/dist/{AU-EWPyqdHL.js → AU-B7Lwienf.js} +0 -0
  894. /package/dist/{AU-DzJ7QlNR.js → AU-CcGu7r3p.js} +0 -0
  895. /package/dist/{AU-C6u3aod7.js → AU-DL1fsj76.js} +0 -0
  896. /package/dist/{AU-CLU0Xn_D.js → AU-yI1HPsCK.js} +0 -0
  897. /package/dist/{AX-DJ84WiiY.js → AX-BTtRN-MP.js} +0 -0
  898. /package/dist/{AZ-o_CDsMs4.js → AZ-CXVL6e85.js} +0 -0
  899. /package/dist/{AnalyticsContext-CbM5V7Nw.js → AnalyticsContext-BFrJmsp0.js} +0 -0
  900. /package/dist/{BA-DL2O-nPB.js → BA-27B-jpFq.js} +0 -0
  901. /package/dist/{BE-CyRTa5vY.js → BE-BIPb3aCp.js} +0 -0
  902. /package/dist/{BE-CT0bdDbu.js → BE-BSUwgR6_.js} +0 -0
  903. /package/dist/{BE-DgU3CTNg.js → BE-BsQPppoQ.js} +0 -0
  904. /package/dist/{BE-7F1ZOUtb.js → BE-S2mx1KWp.js} +0 -0
  905. /package/dist/{BG-B7VMgZNt.js → BG-ChvSTIBz.js} +0 -0
  906. /package/dist/{BH-Bot1MlCL.js → BH-D1HvWueK.js} +0 -0
  907. /package/dist/{BM-CfbbOZEU.js → BM-bLwVUrnz.js} +0 -0
  908. /package/dist/{BR-DrGkuPBg.js → BR-B6k-5VHk.js} +0 -0
  909. /package/dist/{BR-BikIex5m.js → BR-CZRoZyCm.js} +0 -0
  910. /package/dist/{BR-BaEKrqwp.js → BR-Df_k79xR.js} +0 -0
  911. /package/dist/{BR-PBodf94A.js → BR-nSEEl5uz.js} +0 -0
  912. /package/dist/{BS-CR7QZvMY.js → BS-Bf402NRj.js} +0 -0
  913. /package/dist/{BV-pdJ1HYkg.js → BV-CJwVioP4.js} +0 -0
  914. /package/dist/{BY-RUR9XmBt.js → BY-CYaB1wEE.js} +0 -0
  915. /package/dist/{CA-6iRpP8zm.js → CA-B49VPJKw.js} +0 -0
  916. /package/dist/{CA-CgOysQQa.js → CA-BJlN0jtV.js} +0 -0
  917. /package/dist/{CA-BM1GlX51.js → CA-C_C9nVmL.js} +0 -0
  918. /package/dist/{CA-Bilo42jc.js → CA-Drxrt6ud.js} +0 -0
  919. /package/dist/{CH-HrO9afDv.js → CH-8VbtrnFA.js} +0 -0
  920. /package/dist/{CH-gKI7wttp.js → CH-B0Z9FJR9.js} +0 -0
  921. /package/dist/{CH-BZ2dJJcd.js → CH-BASES6q1.js} +0 -0
  922. /package/dist/{CH-CmSkzRbO.js → CH-C93Zls9o.js} +0 -0
  923. /package/dist/{CN-BUtZk2Mu.js → CN-CEIcYgEd.js} +0 -0
  924. /package/dist/{CR-CnpHHfms.js → CR-CU6MVhAz.js} +0 -0
  925. /package/dist/{CY-Ge_L3SKC.js → CY-DSZIX0eb.js} +0 -0
  926. /package/dist/{CZ-Cxwo_jP6.js → CZ-Bk7V7DHn.js} +0 -0
  927. /package/dist/{CZ-C1HmDbqn.js → CZ-CG9NlpHx.js} +0 -0
  928. /package/dist/{CZ-B8b5P2Or.js → CZ-CUYgGHVo.js} +0 -0
  929. /package/dist/{CZ-I8UM9ti_.js → CZ-DD_9_zGY.js} +0 -0
  930. /package/dist/{ContractViewer-B8CspWV4.js → ContractViewer-JtnAXSDa.js} +0 -0
  931. /package/dist/{DE-HSEDrUfG.js → DE-3Qc-SfVV.js} +0 -0
  932. /package/dist/{DE-pQVkh64s.js → DE-BFenFnWV.js} +0 -0
  933. /package/dist/{DE-C2MEdoRW.js → DE-BX-_ptty.js} +0 -0
  934. /package/dist/{DE-CSMMxMuZ.js → DE-CKGX5CHO.js} +0 -0
  935. /package/dist/{DK-BCcPGFzQ.js → DK--Bs4HfJM.js} +0 -0
  936. /package/dist/{DK-dsRhTFow.js → DK-B9lf0wLy.js} +0 -0
  937. /package/dist/{DK-TyxXs-DV.js → DK-DORnwCWQ.js} +0 -0
  938. /package/dist/{DK-mVm8rtJr.js → DK-EjkKz2GN.js} +0 -0
  939. /package/dist/{DO-B84eOniD.js → DO-D4wgMRWE.js} +0 -0
  940. /package/dist/{EC-BAzODm77.js → EC-B2FGK-mr.js} +0 -0
  941. /package/dist/{EE-D2n6E72J.js → EE-qXeASUC-.js} +0 -0
  942. /package/dist/{ES-CsmTJRIi.js → ES-BBz54aGb.js} +0 -0
  943. /package/dist/{ES-D4WzOTek.js → ES-C89tOy9e.js} +0 -0
  944. /package/dist/{ES-DnRoTFNh.js → ES-IBdkjuIk.js} +0 -0
  945. /package/dist/{ES-BI7auc_D.js → ES-pbBXmvb6.js} +0 -0
  946. /package/dist/{FI-YOhI9TrO.js → FI-C2Ehs0Cl.js} +0 -0
  947. /package/dist/{FI-DJZScc7l.js → FI-DCXniiD4.js} +0 -0
  948. /package/dist/{FI-DhWyH1DT.js → FI-DHkXLS9S.js} +0 -0
  949. /package/dist/{FI-CZ6ep3W_.js → FI-K6KjFCWK.js} +0 -0
  950. /package/dist/{FJ-BcqfFVGi.js → FJ-V_2w3UTO.js} +0 -0
  951. /package/dist/{FO-BuQb8zK_.js → FO-DR-Xnm7u.js} +0 -0
  952. /package/dist/{FR-EX-aYUJ3.js → FR-B5uEo3fD.js} +0 -0
  953. /package/dist/{FR-DYfYAn5S.js → FR-CQw_46PX.js} +0 -0
  954. /package/dist/{FR-SxebWfwR.js → FR-CtpYelsq.js} +0 -0
  955. /package/dist/{FR-CWb0_Fcq.js → FR-CxvXXv-O.js} +0 -0
  956. /package/dist/{GB-CszgE98l.js → GB-BDGKJSiZ.js} +0 -0
  957. /package/dist/{GB-BycqX1ng.js → GB-DCF0Nkem.js} +0 -0
  958. /package/dist/{GB-DlvvuQuQ.js → GB-G_B8HSJg.js} +0 -0
  959. /package/dist/{GB-q2GO1nX8.js → GB-tfbORrua.js} +0 -0
  960. /package/dist/{GE-ChK3V1hi.js → GE-By9lo4py.js} +0 -0
  961. /package/dist/{GF-fTBjIC0q.js → GF-B0xFBl9q.js} +0 -0
  962. /package/dist/{GG-Cppga3Z4.js → GG-bAeosM_i.js} +0 -0
  963. /package/dist/{GI-Cm7N6fbE.js → GI-DfkPsLw0.js} +0 -0
  964. /package/dist/{GL-C75JniJw.js → GL-DhRtJPZY.js} +0 -0
  965. /package/dist/{GP-DhHOAa8k.js → GP-DNyYQvJw.js} +0 -0
  966. /package/dist/{GR-zOZilI5v.js → GR-DK-QrYIO.js} +0 -0
  967. /package/dist/{GT-B6tGLPxx.js → GT-BRuMYK92.js} +0 -0
  968. /package/dist/{GU-DjjJkDVU.js → GU-DAYIt05K.js} +0 -0
  969. /package/dist/{HK-CVaMk2Vl.js → HK-B4jzjZtL.js} +0 -0
  970. /package/dist/{HK-Yj_9Qbs3.js → HK-C1qODiFA.js} +0 -0
  971. /package/dist/{HK-Bs3Wsh4t.js → HK-DDKKwlVK.js} +0 -0
  972. /package/dist/{HK-BXsi3wQZ.js → HK-DeKSh6yq.js} +0 -0
  973. /package/dist/{HR-BR9TaCeP.js → HR-D0EqC8kx.js} +0 -0
  974. /package/dist/{HR-C-NuIOkA.js → HR-DOktpDnh.js} +0 -0
  975. /package/dist/{HR-8jCYyclY.js → HR-DomyNfJ0.js} +0 -0
  976. /package/dist/{HR-DvG9lG0o.js → HR-DxBWHi9K.js} +0 -0
  977. /package/dist/{HU-kkbB9HNQ.js → HU--SKUZPJ2.js} +0 -0
  978. /package/dist/{HU-B4hChLQO.js → HU-BS5tTBem.js} +0 -0
  979. /package/dist/{HU-o4ILK6JM.js → HU-DIT5cG5Z.js} +0 -0
  980. /package/dist/{HU-DF7a_-3t.js → HU-HvuEJeUR.js} +0 -0
  981. /package/dist/{HandlerContext-CIedIvkP.js → HandlerContext-DeMa68z0.js} +0 -0
  982. /package/dist/{ID-CnOsjpEC.js → ID-BBzj2tyK.js} +0 -0
  983. /package/dist/{IE-Dwlg9nat.js → IE-BB2lTAcu.js} +0 -0
  984. /package/dist/{IE-CtesijIU.js → IE-CxtzANSG.js} +0 -0
  985. /package/dist/{IE-dmyHscm0.js → IE-DOtxtX8R.js} +0 -0
  986. /package/dist/{IE-B3ysSG_S.js → IE-DwzVxL1C.js} +0 -0
  987. /package/dist/{IL-B2GfQOoK.js → IL-CgJ0eWPT.js} +0 -0
  988. /package/dist/{IM-D9Hb0nwZ.js → IM-Ca1LRzUz.js} +0 -0
  989. /package/dist/{IN-Qhys3xn2.js → IN--pr2-g7e.js} +0 -0
  990. /package/dist/{IS-DTXiGHYB.js → IS-BZeqGau3.js} +0 -0
  991. /package/dist/{IT-CHV5-m07.js → IT-BioiAQgd.js} +0 -0
  992. /package/dist/{IT-BZGkLCTQ.js → IT-CISIu45c.js} +0 -0
  993. /package/dist/{IT-Dimtibs1.js → IT-CUgNzWLF.js} +0 -0
  994. /package/dist/{IT-DFeNc5UK.js → IT-DwZn8LHj.js} +0 -0
  995. /package/dist/{InputGroup-B8AaetlI.js → InputGroup-B4U3QVEp.js} +0 -0
  996. /package/dist/{JE-D7_0MZEA.js → JE-BCj36onT.js} +0 -0
  997. /package/dist/{JM-CUVKn5To.js → JM-b03xrGTz.js} +0 -0
  998. /package/dist/{JO-B9_bPqbF.js → JO-CA8m_H5N.js} +0 -0
  999. /package/dist/{JP-z_PjepRf.js → JP-DroDT2u3.js} +0 -0
  1000. /package/dist/{KR-DaFOJAbV.js → KR-BkBLDQIT.js} +0 -0
  1001. /package/dist/{KW-BLH4fj8S.js → KW-dB3SXEf8.js} +0 -0
  1002. /package/dist/{KY-DG3Xehmz.js → KY-mZ-zKVkq.js} +0 -0
  1003. /package/dist/{KZ-BjnXKq2l.js → KZ-CcyUPGdv.js} +0 -0
  1004. /package/dist/{LB-CY5c_gqN.js → LB-DmtcVmjU.js} +0 -0
  1005. /package/dist/{LI-BkFK_qrZ.js → LI-haSXATP0.js} +0 -0
  1006. /package/dist/{LT-2wka4qNS.js → LT-BkxAhfJz.js} +0 -0
  1007. /package/dist/{LT--zST1zqj.js → LT-CYlhLD3-.js} +0 -0
  1008. /package/dist/{LT-BV7s3TCv.js → LT-DnvVPVhz.js} +0 -0
  1009. /package/dist/{LT-BxqPzqgf.js → LT-GP546RUy.js} +0 -0
  1010. /package/dist/{LU-Bt4sIWIT.js → LU-CnQilYzI.js} +0 -0
  1011. /package/dist/{LV-B-FeTyBQ.js → LV-BJoOuCmD.js} +0 -0
  1012. /package/dist/{MC-D92BHmGr.js → MC-1OhRuam2.js} +0 -0
  1013. /package/dist/{MD-BzJaxo1n.js → MD-DN7TRpmW.js} +0 -0
  1014. /package/dist/{ME-Iw66DM2s.js → ME-CuMiA40n.js} +0 -0
  1015. /package/dist/{MK-yRjMHvLF.js → MK-DGR-uR66.js} +0 -0
  1016. /package/dist/{MP-CGHoAYPz.js → MP-xhfj0dkC.js} +0 -0
  1017. /package/dist/{MQ-Db73c-TY.js → MQ-CZu5G2-t.js} +0 -0
  1018. /package/dist/{MR-CzGlj8ce.js → MR--V7elAIS.js} +0 -0
  1019. /package/dist/{MT-n0Cp6O8-.js → MT-BmkVDeF2.js} +0 -0
  1020. /package/dist/{MU-C57EyXfP.js → MU-LzgqzZzT.js} +0 -0
  1021. /package/dist/{MX-JSUPc6V8.js → MX-z-WoZkPd.js} +0 -0
  1022. /package/dist/{MY-Bbgpg3w2.js → MY-WsFwWp2U.js} +0 -0
  1023. /package/dist/{NC-BeqCqe7o.js → NC-B9M8cc6C.js} +0 -0
  1024. /package/dist/{NL-C1r7ND7d.js → NL-Bn2QKc20.js} +0 -0
  1025. /package/dist/{NL-KVjpCVaw.js → NL-BosPsuiC.js} +0 -0
  1026. /package/dist/{NL-CIX2R11u.js → NL-CXjh0eXG.js} +0 -0
  1027. /package/dist/{NL-B22K1Zb0.js → NL-DQew6XR-.js} +0 -0
  1028. /package/dist/{NO-CV0UtHqk.js → NO--AQKkHLW.js} +0 -0
  1029. /package/dist/{NO-BhYtIUv1.js → NO-BuWcaqBm.js} +0 -0
  1030. /package/dist/{NO-DLFLW3I8.js → NO-CFh5Lkfr.js} +0 -0
  1031. /package/dist/{NO-CFty2TsC.js → NO-D7BSfuUs.js} +0 -0
  1032. /package/dist/{NZ-DZ75lvmW.js → NZ-BDDXct1F.js} +0 -0
  1033. /package/dist/{NZ-ClQC7uEQ.js → NZ-DyVhIxBu.js} +0 -0
  1034. /package/dist/{PE-BhP-iF08.js → PE-DJZc_8Lk.js} +0 -0
  1035. /package/dist/{PF-DZJu8LvP.js → PF-D593LuXT.js} +0 -0
  1036. /package/dist/{PH-8s_pcD1T.js → PH-CJRjYgx3.js} +0 -0
  1037. /package/dist/{PK-BkHx9Wu7.js → PK-C1TVRYA6.js} +0 -0
  1038. /package/dist/{PL-oVwazamy.js → PL-7-9sJ6je.js} +0 -0
  1039. /package/dist/{PL-CZ0JZlv4.js → PL-C3tudSnw.js} +0 -0
  1040. /package/dist/{PL-DjTZTZqB.js → PL-CtjljK4S.js} +0 -0
  1041. /package/dist/{PL-Db0WKekw.js → PL-DasLrwsx.js} +0 -0
  1042. /package/dist/{PM-Bcq0SkSj.js → PM-CPvVGX_s.js} +0 -0
  1043. /package/dist/{PR-N31WZxLD.js → PR-C6mnN4I1.js} +0 -0
  1044. /package/dist/{PS-DzthwPAx.js → PS-Bqa7HAb6.js} +0 -0
  1045. /package/dist/{PT-ilpiMMVG.js → PT-BHFP2Jx8.js} +0 -0
  1046. /package/dist/{PT-C6fd2w3g.js → PT-C9aMzry5.js} +0 -0
  1047. /package/dist/{PT-C3FlrAqt.js → PT-Ck3Uvmoz.js} +0 -0
  1048. /package/dist/{PT-BVfq_KIl.js → PT-DMEuvIu6.js} +0 -0
  1049. /package/dist/{QA-zn4Gdzbo.js → QA-B2A0rFrR.js} +0 -0
  1050. /package/dist/{RE-dG3KJMMx.js → RE-BSdvJRM5.js} +0 -0
  1051. /package/dist/{RO-Dtlve3hZ.js → RO-BZxtXYEM.js} +0 -0
  1052. /package/dist/{RO-B1UBvxsc.js → RO-CJlQuJqy.js} +0 -0
  1053. /package/dist/{RO-BL-J1_yg.js → RO-C_QrkrYl.js} +0 -0
  1054. /package/dist/{RO-BXtuhVoN.js → RO-CewdEU2z.js} +0 -0
  1055. /package/dist/{RS-DIpTuX70.js → RS-DAtcOeON.js} +0 -0
  1056. /package/dist/{RU-B7YwaezI.js → RU-CDpkuVOX.js} +0 -0
  1057. /package/dist/{SA-yHvpRBBt.js → SA-BoAcP38a.js} +0 -0
  1058. /package/dist/{SE-CccuzUP0.js → SE-Ca_yLiKO.js} +0 -0
  1059. /package/dist/{SE-gXHu0efH.js → SE-DX5R7MEM.js} +0 -0
  1060. /package/dist/{SE-pMhyd7KJ.js → SE-DzRKAJvT.js} +0 -0
  1061. /package/dist/{SE-CfxNbl59.js → SE-U0u4yomj.js} +0 -0
  1062. /package/dist/{SG-DIKkp5VX.js → SG-BR0qm_Lu.js} +0 -0
  1063. /package/dist/{SG-CODE9yV_.js → SG-Dm4nWFwC.js} +0 -0
  1064. /package/dist/{SG-fAOioO1i.js → SG-ljx49JLF.js} +0 -0
  1065. /package/dist/{SG-CGk7k8y6.js → SG-sKZVzzs9.js} +0 -0
  1066. /package/dist/{SI-BpwxzWXI.js → SI-BIBw5Y4Z.js} +0 -0
  1067. /package/dist/{SI-D8ngpNLP.js → SI-BxOiA06G.js} +0 -0
  1068. /package/dist/{SI-DgNZ746W.js → SI-CHQHMWZa.js} +0 -0
  1069. /package/dist/{SI-CtMaFIsz.js → SI-CbzJWJo5.js} +0 -0
  1070. /package/dist/{SJ-SG7xxYUX.js → SJ-C0EiPIY7.js} +0 -0
  1071. /package/dist/{SK-CNT7QVie.js → SK-B-_-RVXx.js} +0 -0
  1072. /package/dist/{SK-D8vU29-x.js → SK-BPuPGFPo.js} +0 -0
  1073. /package/dist/{SK-DssnPaZv.js → SK-Bg9K35hT.js} +0 -0
  1074. /package/dist/{SK-C7ldUW73.js → SK-M9wg6on5.js} +0 -0
  1075. /package/dist/{SM-Ds8vicT5.js → SM-BAP1izca.js} +0 -0
  1076. /package/dist/{TF-Ckf_6iT5.js → TF-BzLXwUD9.js} +0 -0
  1077. /package/dist/{TH-2sIVIZNa.js → TH-wvwE8m03.js} +0 -0
  1078. /package/dist/{TL-OSKwf5cB.js → TL-CAwOhktT.js} +0 -0
  1079. /package/dist/{TN-BcUBhs_y.js → TN-Bs-VE6A_.js} +0 -0
  1080. /package/dist/{TR-nO7zl2t7.js → TR-7uYc2xp7.js} +0 -0
  1081. /package/dist/{TT-uQXIiTh9.js → TT-DbzL2xhJ.js} +0 -0
  1082. /package/dist/{TW-ra8aVP1u.js → TW-BTAvA4FA.js} +0 -0
  1083. /package/dist/{UA-ChP4sFEB.js → UA-BAkAL82L.js} +0 -0
  1084. /package/dist/{US-D6PlTpHk.js → US-BXek71cY.js} +0 -0
  1085. /package/dist/{US-CPcVUQez.js → US-CBUD9sMP.js} +0 -0
  1086. /package/dist/{US-F-OhVaqg.js → US-CyRlJ_CX.js} +0 -0
  1087. /package/dist/{US-amE0CRbB.js → US-D3s6UvEg.js} +0 -0
  1088. /package/dist/{UY-BFN4uNVz.js → UY-Bq43JSIl.js} +0 -0
  1089. /package/dist/{VA-lz_OQgNz.js → VA-CHkQ7jk0.js} +0 -0
  1090. /package/dist/{VG-CUKKrF3h.js → VG-DnUOjTKa.js} +0 -0
  1091. /package/dist/{VI-D1i4Oi0B.js → VI-CjjaTPrq.js} +0 -0
  1092. /package/dist/{VN-DRaYj63j.js → VN-DgqMueJl.js} +0 -0
  1093. /package/dist/{WF-K2TrgrKu.js → WF-Czcwchbb.js} +0 -0
  1094. /package/dist/{YT-CEOdE-OK.js → YT-BTQIBrb1.js} +0 -0
  1095. /package/dist/{ZA-BVXb4Fcr.js → ZA-BAufwt8q.js} +0 -0
  1096. /package/dist/{basePatterns-B0FC-Crd.js → basePatterns-plHFNzgJ.js} +0 -0
  1097. /package/dist/{bg-BG-DqOqFO0A.js → bg-BG-B1zNismI.js} +0 -0
  1098. /package/dist/{bg-BG-DLd3BaDx.js → bg-BG-BVoCVNdz.js} +0 -0
  1099. /package/dist/{bg-BG-B845EAcI.js → bg-BG-BpPjqqen.js} +0 -0
  1100. /package/dist/{bg-BG-BsrzL-U8.js → bg-BG-CQgiIkWL.js} +0 -0
  1101. /package/dist/{bg-BG-CncTIGKT2.js → bg-BG-CmuahJEZ.js} +0 -0
  1102. /package/dist/{bg-BG-CUmjOcpi2.js → bg-BG-DUIc4CjB.js} +0 -0
  1103. /package/dist/{bg-BG-BrYfHU1Y.js → bg-BG-qQc6pN4K.js} +0 -0
  1104. /package/dist/{business-lines-DY5WHePf.js → business-lines-De9DsaVa.js} +0 -0
  1105. /package/dist/{country-code-BjUoKbAN.js → country-code-CJk2hdPu.js} +0 -0
  1106. /package/dist/{cs-CZ-Bl40lHzE.js → cs-CZ-CfiYuMi0.js} +0 -0
  1107. /package/dist/{cs-CZ-n18LpZrJ2.js → cs-CZ-Cl6WgrU6.js} +0 -0
  1108. /package/dist/{cs-CZ-IZhVT21N.js → cs-CZ-DGD5Pulk.js} +0 -0
  1109. /package/dist/{cs-CZ-Is3lue5X2.js → cs-CZ-DUNmRoYr.js} +0 -0
  1110. /package/dist/{cs-CZ-D08FCyDx.js → cs-CZ-Dz8kXdHw.js} +0 -0
  1111. /package/dist/{cs-CZ-HMzN3w9M.js → cs-CZ-Jsmhr_B3.js} +0 -0
  1112. /package/dist/{cs-CZ-C6VkcCUo.js → cs-CZ-fK4LxA1u.js} +0 -0
  1113. /package/dist/{currency-B8-OEAgj.js → currency-DQwXq9Mc.js} +0 -0
  1114. /package/dist/{da-DK-DJ5ddVnr2.js → da-DK-ANBIxDco.js} +0 -0
  1115. /package/dist/{da-DK-CB-sFnhe.js → da-DK-Bwkz0Wxd.js} +0 -0
  1116. /package/dist/{da-DK-CzCkRjoI2.js → da-DK-CWWLFjfT.js} +0 -0
  1117. /package/dist/{da-DK-IX9UQUAb.js → da-DK-CXZXQspY.js} +0 -0
  1118. /package/dist/{da-DK-B576UeqU.js → da-DK-CzyaFVpm.js} +0 -0
  1119. /package/dist/{da-DK-CzFS-0y6.js → da-DK-NCs7m8qy.js} +0 -0
  1120. /package/dist/{da-DK-BwIZqzDw.js → da-DK-SpVsMtf5.js} +0 -0
  1121. /package/dist/{de-DE-DSP4aQRh.js → de-DE-BRJ0jBty.js} +0 -0
  1122. /package/dist/{de-DE-CHdEma9v.js → de-DE-CT8rn19_.js} +0 -0
  1123. /package/dist/{de-DE-BHik7H3o.js → de-DE-CVNJWoQd.js} +0 -0
  1124. /package/dist/{de-DE-CfuejIRq.js → de-DE-DPkZZVMc.js} +0 -0
  1125. /package/dist/{de-DE-CZ4lmioI2.js → de-DE-HdJ5vlQN.js} +0 -0
  1126. /package/dist/{de-DE-Bki8tbcV2.js → de-DE-LLIuFER0.js} +0 -0
  1127. /package/dist/{de-DE-C4PzkDzF.js → de-DE-flvryS_H.js} +0 -0
  1128. /package/dist/{de-DE-C9UIqdWt.js → de-DE-w4l6boYT.js} +0 -0
  1129. /package/dist/{debouncedInputEvent-CUZBv60e.js → debouncedInputEvent-D2-Kctv9.js} +0 -0
  1130. /package/dist/{debugStore-BVjLDPIU.js → debugStore-Dwn1FXrh.js} +0 -0
  1131. /package/dist/{decision-maker-type-CWrppE0k.js → decision-maker-type-NR4GFAeT.js} +0 -0
  1132. /package/dist/{decision-makers-group-D53oFTHn.js → decision-makers-group-DAoxQRJ3.js} +0 -0
  1133. /package/dist/{digital-wallet-CLOVHAow.js → digital-wallet-ByQCwU-K.js} +0 -0
  1134. /package/dist/{document-blurred-DGXvRTC8.js → document-blurred-iJRUsQR5.js} +0 -0
  1135. /package/dist/{document-cut-off-DbVQzqxC.js → document-cut-off-DhZYZ56P.js} +0 -0
  1136. /package/dist/{document-expired-DKnTJ5T9.js → document-expired-CDV5yclN.js} +0 -0
  1137. /package/dist/{document-front-Bn5jsEIh.js → document-front-tg-w81rp.js} +0 -0
  1138. /package/dist/{el-GR-LUFCyvHj.js → el-GR-28yAVKwY.js} +0 -0
  1139. /package/dist/{el-GR-B5dqrdWm.js → el-GR-BMGYrO4V.js} +0 -0
  1140. /package/dist/{el-GR-XuQDipDR.js → el-GR-BfKp5abT.js} +0 -0
  1141. /package/dist/{el-GR-3u6kc4gj.js → el-GR-Ctvm4US3.js} +0 -0
  1142. /package/dist/{el-GR-DocTTdq-2.js → el-GR-D9MFsese.js} +0 -0
  1143. /package/dist/{el-GR-CZs5BPVJ2.js → el-GR-D_JXywE0.js} +0 -0
  1144. /package/dist/{el-GR-BUBdTCMP.js → el-GR-Df7yzbal.js} +0 -0
  1145. /package/dist/{el-GR-Buy5IU8M.js → el-GR-DqTetsjB.js} +0 -0
  1146. /package/dist/{emitEvent-B8K0cb1F.js → emitEvent-CcGIaOut.js} +0 -0
  1147. /package/dist/{en-US-DdArZW-2.js → en-US-B82BbZaB.js} +0 -0
  1148. /package/dist/{en-US-DLIlixDF.js → en-US-BIYEZxZV.js} +0 -0
  1149. /package/dist/{en-US-BpCm0Bvk.js → en-US-BcTbYQei.js} +0 -0
  1150. /package/dist/{en-US-BOJswraw.js → en-US-BqGRsgfO.js} +0 -0
  1151. /package/dist/{en-US-VZ7ytmtB.js → en-US-BqvVH-Pi.js} +0 -0
  1152. /package/dist/{en-US-ccX525iK.js → en-US-C1J9jcVI.js} +0 -0
  1153. /package/dist/{en-US-D_g_DM_a2.js → en-US-C2htqfkP.js} +0 -0
  1154. /package/dist/{en-US-D9vXTqQr.js → en-US-C6sEvgbn.js} +0 -0
  1155. /package/dist/{en-US-CXdfrlM6.js → en-US-CRoNUEFi.js} +0 -0
  1156. /package/dist/{en-US-gwxv5v9w.js → en-US-CWDI7JKT.js} +0 -0
  1157. /package/dist/{en-US-DNQKfkN1.js → en-US-CeiLSh8o.js} +0 -0
  1158. /package/dist/{en-US-CN15rSvL.js → en-US-D0fscfsz.js} +0 -0
  1159. /package/dist/{en-US-Bw9LpxPe.js → en-US-D0pPfuzx.js} +0 -0
  1160. /package/dist/{en-US-B-_7IR6A.js → en-US-D0qNFi4G.js} +0 -0
  1161. /package/dist/{en-US-HW6CoTeP.js → en-US-DLsYeEWI.js} +0 -0
  1162. /package/dist/{en-US-DmDPhSJN.js → en-US-DXLqOZX1.js} +0 -0
  1163. /package/dist/{en-US-1Tznfcwg.js → en-US-DbUXn5BN.js} +0 -0
  1164. /package/dist/{en-US-BEL_lmpv.js → en-US-KKriaTJw.js} +0 -0
  1165. /package/dist/{en-US-Bf6E1v0-2.js → en-US-nYL_eSJ-.js} +0 -0
  1166. /package/dist/{en-US-ZFlMM5v3.js → en-US-t-Z87qeJ.js} +0 -0
  1167. /package/dist/{en-US.instructions-kje2iQeM.js → en-US.instructions-DfgivDPI.js} +0 -0
  1168. /package/dist/{en-US.instructions-CbjjdEDm.js → en-US.instructions-FOYUYA3c.js} +0 -0
  1169. /package/dist/{es-ES-DBxs7iF7.js → es-ES-C14ZT-97.js} +0 -0
  1170. /package/dist/{es-ES-oq21mjwX.js → es-ES-CGEEtFjV.js} +0 -0
  1171. /package/dist/{es-ES-RzKcfNXi.js → es-ES-CJYZG5hn.js} +0 -0
  1172. /package/dist/{es-ES-Cn6TsINc.js → es-ES-DTbydE6J.js} +0 -0
  1173. /package/dist/{es-ES-DFYOkj68.js → es-ES-Dbsez-nt.js} +0 -0
  1174. /package/dist/{es-ES-BMBx28UE2.js → es-ES-DcPwPUlZ.js} +0 -0
  1175. /package/dist/{es-ES-DGmySxC42.js → es-ES-N-uqwvEU.js} +0 -0
  1176. /package/dist/{es-ES-QIbBo_YM.js → es-ES-pt4yy_U2.js} +0 -0
  1177. /package/dist/{et-EE-RpLsFwBS.js → et-EE-BEKmKSGB.js} +0 -0
  1178. /package/dist/{et-EE-D8EAo5UR.js → et-EE-BXGMIGkB.js} +0 -0
  1179. /package/dist/{et-EE-Bq6ySoVT2.js → et-EE-CkJhiCVw.js} +0 -0
  1180. /package/dist/{et-EE-BWE9LBIW.js → et-EE-DZ2fiz66.js} +0 -0
  1181. /package/dist/{et-EE-go_L8yC52.js → et-EE-TIKP7Ec9.js} +0 -0
  1182. /package/dist/{et-EE-CuuT6UiF.js → et-EE-dDMeDiTJ.js} +0 -0
  1183. /package/dist/{et-EE-Clm5xG7H.js → et-EE-naxT4ToX.js} +0 -0
  1184. /package/dist/{fi-FI-BhZIWccP.js → fi-FI-B3azKh_D.js} +0 -0
  1185. /package/dist/{fi-FI-BYm7CUY2.js → fi-FI-BdqoEBfB.js} +0 -0
  1186. /package/dist/{fi-FI-BmXRQB7_2.js → fi-FI-D0ZPYGD3.js} +0 -0
  1187. /package/dist/{fi-FI-DsfVixQ62.js → fi-FI-DJ6-TAV9.js} +0 -0
  1188. /package/dist/{fi-FI-CfmDq95S.js → fi-FI-DZUZ6EuS.js} +0 -0
  1189. /package/dist/{fi-FI-cUN_PaZk.js → fi-FI-iRb7nS7X.js} +0 -0
  1190. /package/dist/{fi-FI-6U5kDy9_.js → fi-FI-o-v0rRih.js} +0 -0
  1191. /package/dist/{fieldConfigurations-B3oqm4GC.js → fieldConfigurations-CZCFghnK.js} +0 -0
  1192. /package/dist/{file-6a0FDVyq.js → file-1IenVoh8.js} +0 -0
  1193. /package/dist/{filterProblemsByTaskForms-DwS9T-_E.js → filterProblemsByTaskForms-CQby20PN.js} +0 -0
  1194. /package/dist/{form-rules-CvdV5rPY.js → form-rules-CUUQGacJ.js} +0 -0
  1195. /package/dist/{formatCurrency-D-m2ri-x.js → formatCurrency-Cq3WFpdZ.js} +0 -0
  1196. /package/dist/{fr-FR-BxnyIkIr.js → fr-FR-5eSOACgc.js} +0 -0
  1197. /package/dist/{fr-FR-D1HpNhTO.js → fr-FR-8a-RK9xd.js} +0 -0
  1198. /package/dist/{fr-FR-CMj16KIu2.js → fr-FR-B7mkWyab.js} +0 -0
  1199. /package/dist/{fr-FR-CTaavJDz.js → fr-FR-BRin5m9T.js} +0 -0
  1200. /package/dist/{fr-FR-BqpAnmif.js → fr-FR-Bsr-Ax2m.js} +0 -0
  1201. /package/dist/{fr-FR-DnX9lTEQ.js → fr-FR-DUrcyeOg.js} +0 -0
  1202. /package/dist/{fr-FR-BdjvbPB62.js → fr-FR-DXXrJUKC.js} +0 -0
  1203. /package/dist/{fr-FR-qy27JGqF.js → fr-FR-DY_6cPBK.js} +0 -0
  1204. /package/dist/{funds-in-DcvC0rG-.js → funds-in-BvQVahzR.js} +0 -0
  1205. /package/dist/{get-scenarios-Bkxtd5jh.js → get-scenarios-Bb-paHmJ.js} +0 -0
  1206. /package/dist/{getNestedPropertyKeys-MEDCcSm2.js → getNestedPropertyKeys-Cd8HKupP.js} +0 -0
  1207. /package/dist/{getProps-DQy_qV_x.js → getProps-1L-urpfA.js} +0 -0
  1208. /package/dist/{getTrustedFields-BF_CmfLe.js → getTrustedFields-BJ88GlM-.js} +0 -0
  1209. /package/dist/{graphical-laptop-xPvp7QKa.js → graphical-laptop-BUntvD51.js} +0 -0
  1210. /package/dist/{house-D2ID8PM-.js → house-DFPq_koC.js} +0 -0
  1211. /package/dist/{hr-HR-mfHZl8tO.js → hr-HR-BHkPwjWG.js} +0 -0
  1212. /package/dist/{hr-HR-O1W0RKHg.js → hr-HR-BcuZOdbx.js} +0 -0
  1213. /package/dist/{hr-HR-CLA4RCOe2.js → hr-HR-BeZ1eUy7.js} +0 -0
  1214. /package/dist/{hr-HR-BzyoDD3o.js → hr-HR-CQVBtolX.js} +0 -0
  1215. /package/dist/{hr-HR-gmt7xTWx2.js → hr-HR-CTVtZrP9.js} +0 -0
  1216. /package/dist/{hr-HR-DwVuRMPc.js → hr-HR-LnDb18bf.js} +0 -0
  1217. /package/dist/{hr-HR-Dgrok1MJ.js → hr-HR-o5FSYlwu.js} +0 -0
  1218. /package/dist/{hu-HU-yAwdJ5xn.js → hu-HU-BWRMWxUx.js} +0 -0
  1219. /package/dist/{hu-HU-Dh9jdb9X2.js → hu-HU-BhliM1LD.js} +0 -0
  1220. /package/dist/{hu-HU-BfD5UZoY2.js → hu-HU-BsyElEv0.js} +0 -0
  1221. /package/dist/{hu-HU-Bxg-cJEy.js → hu-HU-C-Lv58Kx.js} +0 -0
  1222. /package/dist/{hu-HU-BzAy_OWc.js → hu-HU-CaDVfAld.js} +0 -0
  1223. /package/dist/{hu-HU-DceMzb3Y.js → hu-HU-Cc7wqn6A.js} +0 -0
  1224. /package/dist/{hu-HU-BzQoUNaS.js → hu-HU-yAl0nEE3.js} +0 -0
  1225. /package/dist/{id-blurred-CtnwOJmP.js → id-blurred-VxdOFc9Z.js} +0 -0
  1226. /package/dist/{id-cut-off-DTnrMaG3.js → id-cut-off-Lf8yjnWT.js} +0 -0
  1227. /package/dist/{id-front-BArANgYI.js → id-front-C00ss5Ib.js} +0 -0
  1228. /package/dist/{id-glare-g3bnPQ3v.js → id-glare-DyvU9bwI.js} +0 -0
  1229. /package/dist/{isNewEntity-BCb_oxKh.js → isNewEntity-vML86iIM.js} +0 -0
  1230. /package/dist/{it-IT-C82YvJn6.js → it-IT-8FlMolyS.js} +0 -0
  1231. /package/dist/{it-IT-Dns-1Qbf.js → it-IT-BPA_Upt_.js} +0 -0
  1232. /package/dist/{it-IT-BrdXGWpw.js → it-IT-BULBjWDc.js} +0 -0
  1233. /package/dist/{it-IT-BxdBXweN.js → it-IT-C2dB9OJn.js} +0 -0
  1234. /package/dist/{it-IT-BcBkbTJA.js → it-IT-D9vW7SZr.js} +0 -0
  1235. /package/dist/{it-IT-Bnm0ulsw2.js → it-IT-DGgRrlgT.js} +0 -0
  1236. /package/dist/{it-IT-DK30YvbO.js → it-IT-DIIRAF4_.js} +0 -0
  1237. /package/dist/{it-IT-CHuVqZdn.js → it-IT-Dw5XUNAP.js} +0 -0
  1238. /package/dist/{ja-JP-DDT5jvAB.js → ja-JP-7zkrWB8G.js} +0 -0
  1239. /package/dist/{ja-JP-B5SxIdyP2.js → ja-JP-Bgo52-T0.js} +0 -0
  1240. /package/dist/{ja-JP-C_E_4yUn.js → ja-JP-BhoagXJu.js} +0 -0
  1241. /package/dist/{ja-JP-D91Qq9X0.js → ja-JP-ByMh2iUh.js} +0 -0
  1242. /package/dist/{ja-JP-DYccStvn.js → ja-JP-CTJQKAUM.js} +0 -0
  1243. /package/dist/{ja-JP-BzBRpXM1.js → ja-JP-CYb1SAoz.js} +0 -0
  1244. /package/dist/{ja-JP-CwVkOC4Z.js → ja-JP-CyXnoIu3.js} +0 -0
  1245. /package/dist/{ja-JP-CTFB8UKL.js → ja-JP-DqGVC5Ag.js} +0 -0
  1246. /package/dist/{ja-JP-DTqjZ_RP.js → ja-JP-eKLuhutG.js} +0 -0
  1247. /package/dist/{jpAddressSchema-wrMPYgVe.js → jpAddressSchema-pVY2Cqvr.js} +0 -0
  1248. /package/dist/{legal-entity-type-VIfNYnJP.js → legal-entity-type-0MfCGzUf.js} +0 -0
  1249. /package/dist/{lt-LT-IP4Sz8Gn.js → lt-LT-B9Nm7OZQ.js} +0 -0
  1250. /package/dist/{lt-LT-bBBImnIr.js → lt-LT-BX_xCGlf.js} +0 -0
  1251. /package/dist/{lt-LT-OGBNEWvq.js → lt-LT-C96kAeo7.js} +0 -0
  1252. /package/dist/{lt-LT-Dpy8srws.js → lt-LT-CiKIZfk8.js} +0 -0
  1253. /package/dist/{lt-LT-DN-ykSHh.js → lt-LT-CyoO9ova.js} +0 -0
  1254. /package/dist/{lt-LT-QPJqX0US.js → lt-LT-D0eqQspB.js} +0 -0
  1255. /package/dist/{lt-LT-8dDfYsF82.js → lt-LT-DdXY3cAX.js} +0 -0
  1256. /package/dist/{lv-LV-C9zoAq4h.js → lv-LV-Bm8LrJoB.js} +0 -0
  1257. /package/dist/{lv-LV-CcQHxQxD.js → lv-LV-C8Reuc9U.js} +0 -0
  1258. /package/dist/{lv-LV-Cbnl_BTV.js → lv-LV-D_BqPK2J.js} +0 -0
  1259. /package/dist/{lv-LV-DlQGKdqk.js → lv-LV-DkjsE74u.js} +0 -0
  1260. /package/dist/{lv-LV-D4clLiV42.js → lv-LV-Fz2z__sN.js} +0 -0
  1261. /package/dist/{lv-LV-CHzgorrn.js → lv-LV-nsjeQDem.js} +0 -0
  1262. /package/dist/{lv-LV-B34caEFv.js → lv-LV-u-vJn6T3.js} +0 -0
  1263. /package/dist/{mapAddressLocalizationToJpAddressSchema-Cp77VSSB.js → mapAddressLocalizationToJpAddressSchema-CBeBTFmC.js} +0 -0
  1264. /package/dist/{nl-NL-BUzOX91N.js → nl-NL-B8REgP66.js} +0 -0
  1265. /package/dist/{nl-NL-BXTbqvDG.js → nl-NL-BO-bzIOE.js} +0 -0
  1266. /package/dist/{nl-NL-BXVVoxv9.js → nl-NL-BWGCqpWp.js} +0 -0
  1267. /package/dist/{nl-NL-2uvrEI1a.js → nl-NL-BtdPxlFm.js} +0 -0
  1268. /package/dist/{nl-NL-DI_aNYah.js → nl-NL-C678Ydas.js} +0 -0
  1269. /package/dist/{nl-NL-6qgh_ZGA.js → nl-NL-CLL6yaXp.js} +0 -0
  1270. /package/dist/{nl-NL-6DRNI2_h.js → nl-NL-D8u-OQ2Z.js} +0 -0
  1271. /package/dist/{nl-NL-BCCzwWkw2.js → nl-NL-Xubp239B.js} +0 -0
  1272. /package/dist/{no-NO-BNL9v_bl.js → no-NO-0TPifz5u.js} +0 -0
  1273. /package/dist/{no-NO-CCtUTnqP.js → no-NO-BIhMgC99.js} +0 -0
  1274. /package/dist/{no-NO-A9MwJ3y8.js → no-NO-Bgl_00AJ.js} +0 -0
  1275. /package/dist/{no-NO-hgC3Li7e.js → no-NO-BsTJeq1r.js} +0 -0
  1276. /package/dist/{no-NO-DN8WIiN32.js → no-NO-CFu9XENI.js} +0 -0
  1277. /package/dist/{no-NO-Cd0Nf4Kq.js → no-NO-CP59oYE-.js} +0 -0
  1278. /package/dist/{no-NO-C037FAac.js → no-NO-vasSCJdc.js} +0 -0
  1279. /package/dist/{onfido-logo-BXb14yhW.js → onfido-logo-CMRuSr8M.js} +0 -0
  1280. /package/dist/{passport-blurred-DOfrfF0N.js → passport-blurred-0Uw8uYSJ.js} +0 -0
  1281. /package/dist/{passport-cut-off-DwNmCL8v.js → passport-cut-off-BPzI2BwO.js} +0 -0
  1282. /package/dist/{passport-front-DLG09n5u.js → passport-front-D6Nky-ni.js} +0 -0
  1283. /package/dist/{passport-front-green-BB3zGc3y.js → passport-front-green-BWuD3-Fs.js} +0 -0
  1284. /package/dist/{passport-glare-CkhvC36x.js → passport-glare-DFSFxNy9.js} +0 -0
  1285. /package/dist/{payout-bank-accounts-BN3KdVID.js → payout-bank-accounts-CsVPa1AN.js} +0 -0
  1286. /package/dist/{payout-verification-instant-DOCBn9if.js → payout-verification-instant-CSV3GQ4N.js} +0 -0
  1287. /package/dist/{payout-verification-manual-DmhxH6y1.js → payout-verification-manual-BHEF55k8.js} +0 -0
  1288. /package/dist/{pl-PL-BVYFKqiG.js → pl-PL-9di9pq8T.js} +0 -0
  1289. /package/dist/{pl-PL-DYmR6-f32.js → pl-PL-B5FSKIny.js} +0 -0
  1290. /package/dist/{pl-PL-D3NzOQQU.js → pl-PL-BT6NmGgO.js} +0 -0
  1291. /package/dist/{pl-PL-DDxFQhlh.js → pl-PL-C860xjSa.js} +0 -0
  1292. /package/dist/{pl-PL-DeAckp5p.js → pl-PL-DCIKCF5C.js} +0 -0
  1293. /package/dist/{pl-PL-59aMUgvV.js → pl-PL-DszjCCg8.js} +0 -0
  1294. /package/dist/{pl-PL-R2xSHe-z.js → pl-PL-wpXnySZL.js} +0 -0
  1295. /package/dist/{plaid-logo-CjpdjGNT.js → plaid-logo-tibaWEAL.js} +0 -0
  1296. /package/dist/{pt-BR-BdpAz26L.js → pt-BR-B0SUw4uu.js} +0 -0
  1297. /package/dist/{pt-BR-BDEGOFU52.js → pt-BR-BBIWB923.js} +0 -0
  1298. /package/dist/{pt-BR-BjLvBssy.js → pt-BR-BhBu4Wkn.js} +0 -0
  1299. /package/dist/{pt-BR-D8hxPoFJ.js → pt-BR-Bp3xzdX7.js} +0 -0
  1300. /package/dist/{pt-BR-C7pxsNe-.js → pt-BR-C3I_7Mcz.js} +0 -0
  1301. /package/dist/{pt-BR-7qFnlWUK.js → pt-BR-C5d5CGRt.js} +0 -0
  1302. /package/dist/{pt-BR-DGRn2oS9.js → pt-BR-DPA2WUjM.js} +0 -0
  1303. /package/dist/{pt-BR-B5i0TdE9.js → pt-BR-DtyxSlwY.js} +0 -0
  1304. /package/dist/{pt-PT-BTZOJZU6.js → pt-PT-B6OslB_S.js} +0 -0
  1305. /package/dist/{pt-PT-CI47ZET7.js → pt-PT-BZa5DvLf.js} +0 -0
  1306. /package/dist/{pt-PT-CEPDmPY7.js → pt-PT-CYMgik2d.js} +0 -0
  1307. /package/dist/{pt-PT-DFy0vZ_Z2.js → pt-PT-D1Mnwi3B.js} +0 -0
  1308. /package/dist/{pt-PT-BBd1NJRh.js → pt-PT-DdWMchfY.js} +0 -0
  1309. /package/dist/{pt-PT-DBFZcKHi.js → pt-PT-IPhkbQvT.js} +0 -0
  1310. /package/dist/{pt-PT-CJVVRZyV.js → pt-PT-KikTTc5A.js} +0 -0
  1311. /package/dist/{pt-PT-BqRmSpLn.js → pt-PT-MeSSYc0C.js} +0 -0
  1312. /package/dist/{reporting-CuOey349.js → reporting-B084dXT2.js} +0 -0
  1313. /package/dist/{review-CkmDUkhx.js → review-CN-zt9-S.js} +0 -0
  1314. /package/dist/{ro-RO-CA7NoMAg2.js → ro-RO-B72I1ycf.js} +0 -0
  1315. /package/dist/{ro-RO-e45j_CyV.js → ro-RO-BVGWEbO9.js} +0 -0
  1316. /package/dist/{ro-RO-GldC3IcE.js → ro-RO-CsKKl68g.js} +0 -0
  1317. /package/dist/{ro-RO-Bl3OcC_Q.js → ro-RO-DajmyI4j.js} +0 -0
  1318. /package/dist/{ro-RO-C4lcxnWO.js → ro-RO-dG27cZbT.js} +0 -0
  1319. /package/dist/{ro-RO-Bf10OHuY.js → ro-RO-jcGn-sY4.js} +0 -0
  1320. /package/dist/{ro-RO-C3g0pSKU.js → ro-RO-rUQBJ_rV.js} +0 -0
  1321. /package/dist/{singpass-logo-DESKvfOJ.js → singpass-logo-BlBOt-Jg.js} +0 -0
  1322. /package/dist/{singpass-logo-small-CBW6iXWW.js → singpass-logo-small-Dj6yeaQx.js} +0 -0
  1323. /package/dist/{sk-SK-C8d17RvE2.js → sk-SK-BFh-bgKq.js} +0 -0
  1324. /package/dist/{sk-SK-C9Cst_ER.js → sk-SK-CDUWGXfX.js} +0 -0
  1325. /package/dist/{sk-SK-y3Dcsvdc.js → sk-SK-DJWcs0qJ.js} +0 -0
  1326. /package/dist/{sk-SK-DXRluu5W.js → sk-SK-DP6XhEgm.js} +0 -0
  1327. /package/dist/{sk-SK-BSv5VXox.js → sk-SK-TwqCzMtZ.js} +0 -0
  1328. /package/dist/{sk-SK-wzPlUKNj.js → sk-SK-Woc9AmiO.js} +0 -0
  1329. /package/dist/{sk-SK-tk_1fC8g.js → sk-SK-bt84r8cG.js} +0 -0
  1330. /package/dist/{sl-SI-uhzy0HC12.js → sl-SI-Bc7dEjcH.js} +0 -0
  1331. /package/dist/{sl-SI-D6evG9fK.js → sl-SI-BpJHrRwy.js} +0 -0
  1332. /package/dist/{sl-SI-ChCyYnjd.js → sl-SI-C03fXovT.js} +0 -0
  1333. /package/dist/{sl-SI-CX-qAqMO.js → sl-SI-C_QeUL6t.js} +0 -0
  1334. /package/dist/{sl-SI-B-t1nY1x.js → sl-SI-DF6_X7op.js} +0 -0
  1335. /package/dist/{sl-SI-DiLuydaN.js → sl-SI-O8FoUWa8.js} +0 -0
  1336. /package/dist/{sl-SI-Bfdb7gjw.js → sl-SI-orV9B38l.js} +0 -0
  1337. /package/dist/{summaryItem-Dehjwp8D.js → summaryItem-uDWmtYtt.js} +0 -0
  1338. /package/dist/{sv-SE-BoITS9np.js → sv-SE-CLkZV2NG.js} +0 -0
  1339. /package/dist/{sv-SE-Bpo3MgEr.js → sv-SE-CQt2K1X-.js} +0 -0
  1340. /package/dist/{sv-SE-DlYizFz8.js → sv-SE-Cor3sNy0.js} +0 -0
  1341. /package/dist/{sv-SE-BOEa4u9p.js → sv-SE-D05i0X2z.js} +0 -0
  1342. /package/dist/{sv-SE-Bx_Mk5xx.js → sv-SE-D3MOTV-T.js} +0 -0
  1343. /package/dist/{sv-SE-DhNNMEwq.js → sv-SE-D5eIbgkk.js} +0 -0
  1344. /package/dist/{sv-SE-4oyeOi4Y.js → sv-SE-Di8YEdBA.js} +0 -0
  1345. /package/dist/{sv-SE-i9koytKp.js → sv-SE-IBYnJfbW.js} +0 -0
  1346. /package/dist/{taskStatus-DPUG3NS3.js → taskStatus-BtekPA8E.js} +0 -0
  1347. /package/dist/{taskTypes-CDFRB7A4.js → taskTypes-NawDTp5n.js} +0 -0
  1348. /package/dist/{tax-reporting-graph-DNooZCbb.js → tax-reporting-graph-B-x6VG09.js} +0 -0
  1349. /package/dist/{tink-logo-CqXir9XT.js → tink-logo-vN0QKOLM.js} +0 -0
  1350. /package/dist/{trackNavigation-LvCP5Vyc.js → trackNavigation-DR70qR8T.js} +0 -0
  1351. /package/dist/{trustMemberGuidance-2rtnGkMG.js → trustMemberGuidance-CgdU2v0j.js} +0 -0
  1352. /package/dist/{trusted-fields-provider-BXHH-pq0.js → trusted-fields-provider-DLz8KKVf.js} +0 -0
  1353. /package/dist/{types-CNZsK2dZ.js → types-Cwq1JAWT.js} +0 -0
  1354. /package/dist/{uppercase-DKruhEuk.js → uppercase-DvjwUM0n.js} +0 -0
  1355. /package/dist/{us-check-account-number-BME1X1ZC.js → us-check-account-number-6Votaq97.js} +0 -0
  1356. /package/dist/{us-check-BW6K3WxJ.js → us-check-pmEdQwDU.js} +0 -0
  1357. /package/dist/{us-check-routing-number-UatGnO16.js → us-check-routing-number-B87ag0C1.js} +0 -0
  1358. /package/dist/{useId-eJSYfA6i.js → useId-BkDhUta2.js} +0 -0
  1359. /package/dist/{useSettingsContext-DzwVt0W0.js → useSettingsContext-Bpf4UqRT.js} +0 -0
  1360. /package/dist/{utils--gwzjjeS.js → utils-DdHbAadK.js} +0 -0
  1361. /package/dist/{utils-Do5CMPEN.js → utils-K8Z-zRnu.js} +0 -0
  1362. /package/dist/{view-verification-status-CtW_qUMg.js → view-verification-status-XSQs02td.js} +0 -0
  1363. /package/dist/{yapily-logo-upggwl6u.js → yapily-logo-Cp5tK0Uw.js} +0 -0
@@ -0,0 +1,2772 @@
1
+ try {
2
+ let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
3
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "6be317dc-fe89-44d1-8b3d-25087b889ca2", e._sentryDebugIdIdentifier = "sentry-dbid-6be317dc-fe89-44d1-8b3d-25087b889ca2");
4
+ } catch (e) {}
5
+ import { a as Icon, c as __exportAll, i as Typography, n as addResourceBundles, o as createLogger, r as useTranslation } from "./translation-ZXpd9jdD.js";
6
+ import { A as _rolldown_dynamic_import_helper_default, k as Header, x as Alert } from "./resolveEnvironment-Doi5jM7g.js";
7
+ import { n as IconButton, r as Loader, t as Button } from "./Button-DBN5gM_d.js";
8
+ import { n as httpGet, r as httpPost, s as useApiContext } from "./http-DYzfwjcs.js";
9
+ import { n as useLegalEntities, r as useLegalEntity, t as ROOT_LE } from "./useLegalEntity-EN5ubX2H.js";
10
+ import { t as LegalEntityTypes } from "./legal-entity-type-0MfCGzUf.js";
11
+ import { t as getLegalEntityCountry } from "./getLegalEntityCountry-BHh7Ux8v.js";
12
+ import { o as objectsDeepEqual } from "./AnalyticsContext-BFrJmsp0.js";
13
+ import { t as StackLayout } from "./StackLayout-IUdNMDgW.js";
14
+ import { n as TASK_STATUS_POLLING_INTERVAL_MS } from "./taskStatus-BtekPA8E.js";
15
+ import { C as EntityTypes } from "./processCapabilities-hLmRus8U.js";
16
+ import { t as TaskTypes } from "./taskTypes-NawDTp5n.js";
17
+ import { t as useBusinessLines } from "./useBusinessLines-Dshc0pYD.js";
18
+ import { t as Card } from "./Card-BCGLpdw7.js";
19
+ import { i as useAnalyticsContext, t as Modal } from "./Modal-BgeE7zM2.js";
20
+ import { n as useToastContext, t as useInvalidateRootLegalEntity } from "./invalidateRootLegalEntity-B_H-aJ0s.js";
21
+ import { n as useCapabilityProblems, t as getProblemsForEntity } from "./getProblemsForEntity-CogrYbYP.js";
22
+ import { t as Avatar } from "./Avatar-DqBKHRAr.js";
23
+ import { n as translateTranslatable } from "./utils-DcUoR5qG.js";
24
+ import { t as Confirm } from "./Confirm-C4GotFqm.js";
25
+ import { n as Image } from "./unincorporated-partnership-GaTPaALJ.js";
26
+ import { t as useCreateLegalEntity } from "./useCreateLegalEntity-38twl3gB.js";
27
+ import { t as useUpdateLegalEntity } from "./useUpdateLegalEntity-DnkFwUCD.js";
28
+ import { i as FormFlow, n as addValidityToForms, o as useFormComposer, r as getRequiredForms, s as FormContextProvider, t as useFormContext } from "./useFormContext-CyhnFPOt.js";
29
+ import { t as StructuredList } from "./StructuredList-CUyo9-3i.js";
30
+ import { t as ErrorPanel } from "./ErrorPanel-ct3r_pLg.js";
31
+ import { t as createFormUtils } from "./formUtils-DVc3a6gf.js";
32
+ import { t as useMultiForm } from "./useMultiForm-NwELDSnm.js";
33
+ import { t as useTaskLandedEvent } from "./useTaskLandedEvent-CtlV_Bum.js";
34
+ import { o as createDocumentRequest, s as documentApiUtils } from "./validate-j0h8oux2.js";
35
+ import { r as formatObject } from "./utils-DdHbAadK.js";
36
+ import { t as localizeDateString } from "./localizeDateString-DB-oTe60.js";
37
+ import { t as Field } from "./Field-CQWAWo5U.js";
38
+ import { t as TileGroup } from "./TileGroup-B7-q4NXH.js";
39
+ import { t as LandingLayout } from "./LandingLayout-Dg0sEASR.js";
40
+ import { t as Select } from "./Select-vMYP9lm8.js";
41
+ import { t as Checkbox } from "./Checkbox-tUvgt59R.js";
42
+ import { t as TextArea } from "./TextArea-C2DkQ41s.js";
43
+ import { t as Dropzone } from "./Dropzone-ER9yCx09.js";
44
+ import { t as InputText } from "./InputText-8abfNtHh.js";
45
+ import { t as InputDate } from "./InputDate-cTgjAhzm.js";
46
+ import { n as CountryField } from "./CountryField-zsA_yVzc.js";
47
+ import { t as RadioGroup } from "./RadioGroup-DlzXLoMN.js";
48
+ import { t as InputGroup } from "./InputGroup-B4U3QVEp.js";
49
+ import { t as isEmpty } from "./isEmpty-BVlBH98t.js";
50
+ import { t as Currencies } from "./currency-DQwXq9Mc.js";
51
+ import { n as validateDateNotInTheFuture } from "./validate-CPz6CHtU.js";
52
+ import { t as useTaskStatus } from "./useTaskStatus-CLcXCIz7.js";
53
+ import { t as formatAmountWithCurrency } from "./formatCurrency-Cq3WFpdZ.js";
54
+ import { lazy } from "preact/compat";
55
+ import { useCallback as useCallback$1, useEffect as useEffect$1, useMemo as useMemo$1, useState as useState$1 } from "preact/hooks";
56
+ import { Fragment as Fragment$1, jsx, jsxs } from "preact/jsx-runtime";
57
+ import { signal } from "@preact/signals";
58
+ import { useMutation, useQuery, useQueryClient } from "@tanstack/preact-query";
59
+ //#region src/api/businessLines/useUpdateSourceOfFunds.ts
60
+ var updateSourceOfFunds = async (businessLineId, legalEntityId, baseUrl, data) => {
61
+ return httpPost({
62
+ baseUrl,
63
+ path: `legalEntities/${legalEntityId}/businessLines/${businessLineId}/sourceOfFunds`
64
+ }, data);
65
+ };
66
+ var useUpdateSourceOfFunds = (options) => {
67
+ const { rootLegalEntityId, baseUrl } = useApiContext();
68
+ const invalidateRootLegalEntity = useInvalidateRootLegalEntity();
69
+ return useMutation({
70
+ mutationFn: ({ businessLineId, ...requestData }) => updateSourceOfFunds(businessLineId, rootLegalEntityId.value, baseUrl.value, requestData),
71
+ onSuccess: async () => {
72
+ await invalidateRootLegalEntity();
73
+ },
74
+ ...options
75
+ });
76
+ };
77
+ var sourceOfFundsComponentsKeyMapping = {
78
+ "sourceOfFundsType.type": "sourceOfFunds.type",
79
+ "additionalData.description": "sourceOfFunds.description",
80
+ "additionalData.amount": "sourceOfFunds.amount",
81
+ "additionalData.dateOfFundsReceived": "sourceOfFunds.dateOfFundsReceived",
82
+ "additionalData.purpose": "sourceOfFunds.purpose",
83
+ "additionalData.relationship": "sourceOfFunds.relationship",
84
+ "additionalData.originatorLegalEntityId": "sourceOfFunds.originatorLegalEntityId",
85
+ "additionalData.financiers": "sourceOfFunds.financiers",
86
+ "additionalData.cryptocurrencyExchange": "sourceOfFunds.cryptocurrencyExchange",
87
+ "additionalData.dateOfSourceEvent": "sourceOfFunds.dateOfSourceEvent",
88
+ "additionalData.website": "sourceOfFunds.website",
89
+ "additionalData.legalName": "sourceOfFunds.legalName",
90
+ "additionalData.firstName": "sourceOfFunds.firstName",
91
+ "additionalData.lastName": "sourceOfFunds.lastName",
92
+ "additionalData.country": "sourceOfFunds.country",
93
+ "additionalData.originatorType": "sourceOfFunds.originatorType"
94
+ };
95
+ //#endregion
96
+ //#region src/components/EFP/mapping/mapSourceOfFundToSourceOfFundsSchema.ts
97
+ var mapSourceOfFundToSourceOfFundsSchema = (businessLine) => formatObject(businessLine, sourceOfFundsComponentsKeyMapping);
98
+ //#endregion
99
+ //#region src/components/EFP/tasks/SourceOfFundsDropin/sofStore.ts
100
+ var sofErrorMessage = signal(void 0);
101
+ var setSofErrorMessage = (message) => {
102
+ sofErrorMessage.value = message;
103
+ };
104
+ var clearSofErrorMessage = () => {
105
+ sofErrorMessage.value = void 0;
106
+ };
107
+ //#endregion
108
+ //#region src/api/datasets/useSourceOfFundsTypes.ts
109
+ var getSourceOfFundsTypes = async (baseUrl) => {
110
+ return httpGet({
111
+ baseUrl,
112
+ path: `datasets/sourceOfFundsTypes`
113
+ });
114
+ };
115
+ var useSourceOfFundsTypes = (options) => {
116
+ const { baseUrl } = useApiContext();
117
+ return useQuery({
118
+ queryKey: ["sourceOfFundsTypes"],
119
+ queryFn: () => getSourceOfFundsTypes(baseUrl.value),
120
+ ...options
121
+ });
122
+ };
123
+ var SourceOfFunds_module_default = {
124
+ "source-of-funds": "_source-of-funds_1lnfv_1",
125
+ sourceOfFunds: "_source-of-funds_1lnfv_1",
126
+ "source-of-funds-awe": "_source-of-funds-awe_1lnfv_10",
127
+ sourceOfFundsAwe: "_source-of-funds-awe_1lnfv_10",
128
+ "source-of-funds-wrapper-loading": "_source-of-funds-wrapper-loading_1lnfv_17",
129
+ sourceOfFundsWrapperLoading: "_source-of-funds-wrapper-loading_1lnfv_17",
130
+ "source-of-funds-wrapper-heading": "_source-of-funds-wrapper-heading_1lnfv_24",
131
+ sourceOfFundsWrapperHeading: "_source-of-funds-wrapper-heading_1lnfv_24",
132
+ "source-of-funds-wrapper-description": "_source-of-funds-wrapper-description_1lnfv_29",
133
+ sourceOfFundsWrapperDescription: "_source-of-funds-wrapper-description_1lnfv_29",
134
+ "source-of-funds-same-as-checkbox": "_source-of-funds-same-as-checkbox_1lnfv_33",
135
+ sourceOfFundsSameAsCheckbox: "_source-of-funds-same-as-checkbox_1lnfv_33",
136
+ "source-of-funds-getting-started": "_source-of-funds-getting-started_1lnfv_37",
137
+ sourceOfFundsGettingStarted: "_source-of-funds-getting-started_1lnfv_37",
138
+ "source-of-funds-getting-started-awe": "_source-of-funds-getting-started-awe_1lnfv_42",
139
+ sourceOfFundsGettingStartedAwe: "_source-of-funds-getting-started-awe_1lnfv_42",
140
+ "source-of-funds-getting-started-heading": "_source-of-funds-getting-started-heading_1lnfv_48",
141
+ sourceOfFundsGettingStartedHeading: "_source-of-funds-getting-started-heading_1lnfv_48",
142
+ "source-of-funds-getting-started-body": "_source-of-funds-getting-started-body_1lnfv_52",
143
+ sourceOfFundsGettingStartedBody: "_source-of-funds-getting-started-body_1lnfv_52",
144
+ "source-of-funds-getting-started-error": "_source-of-funds-getting-started-error_1lnfv_56",
145
+ sourceOfFundsGettingStartedError: "_source-of-funds-getting-started-error_1lnfv_56",
146
+ "source-of-funds-getting-started-error-actions": "_source-of-funds-getting-started-error-actions_1lnfv_60",
147
+ sourceOfFundsGettingStartedErrorActions: "_source-of-funds-getting-started-error-actions_1lnfv_60",
148
+ "source-of-funds-getting-started-cards": "_source-of-funds-getting-started-cards_1lnfv_64",
149
+ sourceOfFundsGettingStartedCards: "_source-of-funds-getting-started-cards_1lnfv_64",
150
+ "source-of-funds-getting-started-cards-card": "_source-of-funds-getting-started-cards-card_1lnfv_70",
151
+ sourceOfFundsGettingStartedCardsCard: "_source-of-funds-getting-started-cards-card_1lnfv_70",
152
+ "source-of-funds-getting-started-cards-card-header": "_source-of-funds-getting-started-cards-card-header_1lnfv_76",
153
+ sourceOfFundsGettingStartedCardsCardHeader: "_source-of-funds-getting-started-cards-card-header_1lnfv_76",
154
+ "source-of-funds-getting-started-cards-card-body": "_source-of-funds-getting-started-cards-card-body_1lnfv_82",
155
+ sourceOfFundsGettingStartedCardsCardBody: "_source-of-funds-getting-started-cards-card-body_1lnfv_82",
156
+ "source-of-funds-getting-started-actions": "_source-of-funds-getting-started-actions_1lnfv_88",
157
+ sourceOfFundsGettingStartedActions: "_source-of-funds-getting-started-actions_1lnfv_88",
158
+ "source-of-funds-additional-data-form": "_source-of-funds-additional-data-form_1lnfv_96",
159
+ sourceOfFundsAdditionalDataForm: "_source-of-funds-additional-data-form_1lnfv_96",
160
+ "source-of-funds-third-party-funding-financier-group": "_source-of-funds-third-party-funding-financier-group_1lnfv_100",
161
+ sourceOfFundsThirdPartyFundingFinancierGroup: "_source-of-funds-third-party-funding-financier-group_1lnfv_100",
162
+ "source-of-funds-third-party-funding-name-avatar-group": "_source-of-funds-third-party-funding-name-avatar-group_1lnfv_117",
163
+ sourceOfFundsThirdPartyFundingNameAvatarGroup: "_source-of-funds-third-party-funding-name-avatar-group_1lnfv_117",
164
+ "source-of-funds-third-party-funding-name-address-group": "_source-of-funds-third-party-funding-name-address-group_1lnfv_123",
165
+ sourceOfFundsThirdPartyFundingNameAddressGroup: "_source-of-funds-third-party-funding-name-address-group_1lnfv_123",
166
+ "source-of-funds-sof-financier-form-error": "_source-of-funds-sof-financier-form-error_1lnfv_129",
167
+ sourceOfFundsSofFinancierFormError: "_source-of-funds-sof-financier-form-error_1lnfv_129",
168
+ "source-of-funds-sof-financier-form-name-group": "_source-of-funds-sof-financier-form-name-group_1lnfv_133",
169
+ sourceOfFundsSofFinancierFormNameGroup: "_source-of-funds-sof-financier-form-name-group_1lnfv_133",
170
+ "source-of-funds-financier-footer": "_source-of-funds-financier-footer_1lnfv_138",
171
+ sourceOfFundsFinancierFooter: "_source-of-funds-financier-footer_1lnfv_138",
172
+ "source-of-funds-grid-container": "_source-of-funds-grid-container_1lnfv_144",
173
+ sourceOfFundsGridContainer: "_source-of-funds-grid-container_1lnfv_144",
174
+ "source-of-funds-sub-heading": "_source-of-funds-sub-heading_1lnfv_150",
175
+ sourceOfFundsSubHeading: "_source-of-funds-sub-heading_1lnfv_150",
176
+ "source-of-funds-upload-modal-content-field": "_source-of-funds-upload-modal-content-field_1lnfv_154",
177
+ sourceOfFundsUploadModalContentField: "_source-of-funds-upload-modal-content-field_1lnfv_154",
178
+ "source-of-funds-upload-modal-content-field-radio-group": "_source-of-funds-upload-modal-content-field-radio-group_1lnfv_162",
179
+ sourceOfFundsUploadModalContentFieldRadioGroup: "_source-of-funds-upload-modal-content-field-radio-group_1lnfv_162",
180
+ "source-of-funds-upload-modal-content-requirements-container": "_source-of-funds-upload-modal-content-requirements-container_1lnfv_167",
181
+ sourceOfFundsUploadModalContentRequirementsContainer: "_source-of-funds-upload-modal-content-requirements-container_1lnfv_167",
182
+ "source-of-funds-upload-list-heading": "_source-of-funds-upload-list-heading_1lnfv_175",
183
+ sourceOfFundsUploadListHeading: "_source-of-funds-upload-list-heading_1lnfv_175",
184
+ "source-of-funds-modal": "_source-of-funds-modal_1lnfv_180",
185
+ sourceOfFundsModal: "_source-of-funds-modal_1lnfv_180"
186
+ };
187
+ //#endregion
188
+ //#region src/components/EFP/tasks/SourceOfFundsDropin/types.ts
189
+ var additionalDataSchemaKeys = [
190
+ "description",
191
+ "dateOfFundsReceived",
192
+ "purpose",
193
+ "relationship",
194
+ "originatorLegalEntityId",
195
+ "amount",
196
+ "financiers",
197
+ "cryptocurrencyExchange",
198
+ "dateOfSourceEvent",
199
+ "website"
200
+ ];
201
+ //#endregion
202
+ //#region src/components/EFP/tasks/SourceOfFundsDropin/utils.tsx
203
+ var allowedCurrencies = Object.entries(Currencies).map(([key]) => ({
204
+ name: key,
205
+ id: key
206
+ }));
207
+ var TODAY_DATE = (/* @__PURE__ */ new Date()).toISOString().split("T")[0];
208
+ var getSchemaForOriginator = (baseSchema, originatorType) => {
209
+ if (originatorType === "organization") return [...baseSchema, "legalName"];
210
+ if (originatorType === "individual") return [
211
+ ...baseSchema,
212
+ "firstName",
213
+ "lastName"
214
+ ];
215
+ return baseSchema;
216
+ };
217
+ var getAdditionalDataSchemaKeys = (sourceOfFundsType, originatorType) => {
218
+ switch (sourceOfFundsType) {
219
+ case "business": return ["amount", "description"];
220
+ case "donations": return getSchemaForOriginator([
221
+ "dateOfFundsReceived",
222
+ "purpose",
223
+ "relationship",
224
+ "country",
225
+ "originatorType"
226
+ ], originatorType);
227
+ case "inheritance": return getSchemaForOriginator([
228
+ "dateOfFundsReceived",
229
+ "amount",
230
+ "relationship",
231
+ "country",
232
+ "originatorType"
233
+ ], originatorType);
234
+ case "thirdPartyFunding": return ["financiers"];
235
+ case "cryptocurrencyIncome": return ["cryptocurrencyExchange"];
236
+ case "assetSale": return [
237
+ "dateOfSourceEvent",
238
+ "description",
239
+ "amount"
240
+ ];
241
+ case "gamblingWinnings": return [
242
+ "dateOfSourceEvent",
243
+ "website",
244
+ "amount"
245
+ ];
246
+ default: return [];
247
+ }
248
+ };
249
+ var getServiceTranslation = (t, service) => {
250
+ switch (service) {
251
+ case "banking": return t(($) => $["businessBankAccounts"]);
252
+ case "issuing": return t(($) => $["paymentCards"]);
253
+ case "paymentProcessing": return t(($) => $["acceptingPayments"]);
254
+ default: return t(($) => $["supportingDocuments"]);
255
+ }
256
+ };
257
+ var getServiceTranslationSelectTitle = (t, service) => {
258
+ switch (service) {
259
+ case "banking": return t(($) => $["forYourBusinessBankAccounts"]);
260
+ case "issuing": return t(($) => $["forYourPaymentCards"]);
261
+ case "paymentProcessing": return t(($) => $["whenAcceptingPayments"]);
262
+ default: return t(($) => $["supportingDocuments"]);
263
+ }
264
+ };
265
+ var getServiceTranslationKey = (service) => {
266
+ switch (service) {
267
+ case "banking": return "bankingService";
268
+ case "issuing": return "issuingService";
269
+ case "paymentProcessing": return "paymentService";
270
+ default: return "supportingDocuments";
271
+ }
272
+ };
273
+ var getGettingStartedCardDetails = (sourceOfFundsType, t, data) => {
274
+ const details = [];
275
+ sourceOfFundsType?.forEach((type) => {
276
+ switch (type) {
277
+ case "amount":
278
+ details.push({
279
+ term: t(($) => $["amount"]),
280
+ details: data?.amount?.currency && data?.amount?.value ? formatAmountWithCurrency(data.amount.value, data.amount.currency) : ""
281
+ });
282
+ break;
283
+ case "description":
284
+ details.push({
285
+ term: t(($) => $["description"]),
286
+ details: data?.description || ""
287
+ });
288
+ break;
289
+ case "dateOfFundsReceived":
290
+ details.push({
291
+ term: t(($) => $["date"]),
292
+ details: localizeDateString(data?.dateOfFundsReceived || "", navigator.language)
293
+ });
294
+ break;
295
+ case "purpose":
296
+ details.push({
297
+ term: t(($) => $["reason"]),
298
+ details: data?.purpose || ""
299
+ });
300
+ break;
301
+ case "relationship":
302
+ details.push({
303
+ term: t(($) => $["relationship"]),
304
+ details: data?.relationship || ""
305
+ });
306
+ break;
307
+ case "originatorLegalEntityId":
308
+ details.push({
309
+ term: t(($) => $["benefactorDetails"]),
310
+ details: [data?.legalName ? `${data?.legalName}` : `${data?.firstName} ${data?.lastName}`, /* @__PURE__ */ jsx(Typography, {
311
+ color: "secondary",
312
+ children: data?.country || ""
313
+ }, "location")]
314
+ });
315
+ break;
316
+ case "financiers":
317
+ data?.financiers?.map((financier) => {
318
+ return details.push({
319
+ term: t(($) => $["investor"]),
320
+ details: [
321
+ `${financier?.firstName} ${financier?.lastName}`,
322
+ /* @__PURE__ */ jsx(Typography, {
323
+ color: "secondary",
324
+ children: financier?.location || ""
325
+ }, "location"),
326
+ /* @__PURE__ */ jsx(Typography, {
327
+ color: "secondary",
328
+ children: financier?.amount?.currency && financier?.amount?.value ? formatAmountWithCurrency(financier.amount.value, financier.amount.currency) || "" : ""
329
+ }, "value")
330
+ ]
331
+ });
332
+ });
333
+ break;
334
+ case "cryptocurrencyExchange":
335
+ details.push({
336
+ term: t(($) => $["cryptocurrencyExchange"]),
337
+ details: data?.cryptocurrencyExchange || ""
338
+ });
339
+ break;
340
+ case "dateOfSourceEvent":
341
+ details.push({
342
+ term: t(($) => $["dateOfSourceEvent"]),
343
+ details: localizeDateString(data?.dateOfSourceEvent || "", navigator.language)
344
+ });
345
+ break;
346
+ case "website":
347
+ details.push({
348
+ term: t(($) => $["website"]),
349
+ details: data?.website || ""
350
+ });
351
+ break;
352
+ default: break;
353
+ }
354
+ });
355
+ return details;
356
+ };
357
+ var sourceOfFundsForms = {
358
+ sourceOfFundsType: {
359
+ formId: "sourceOfFundsType",
360
+ formName: "selectASourceOfFunding",
361
+ fields: ["type"]
362
+ },
363
+ additionalData: {
364
+ formId: "additionalData",
365
+ formName: "tellUsMoreAboutThisSource",
366
+ fields: [...additionalDataSchemaKeys]
367
+ }
368
+ };
369
+ var getSourceOfFundsRequiredFields = (data) => {
370
+ const sourceOfFundsType = data?.sourceOfFundsType?.type;
371
+ const originatorType = data?.additionalData?.originatorType;
372
+ return {
373
+ sourceOfFundsType: ["type"],
374
+ additionalData: getAdditionalDataSchemaKeys(sourceOfFundsType, originatorType)
375
+ };
376
+ };
377
+ var typesRequiringAdditionalData = [
378
+ "business",
379
+ "donations",
380
+ "inheritance",
381
+ "thirdPartyFunding",
382
+ "cryptocurrencyIncome",
383
+ "assetSale",
384
+ "gamblingWinnings"
385
+ ];
386
+ var getSourceOfFundsRequiredForms = (data) => {
387
+ return Object.fromEntries(Object.entries(sourceOfFundsForms).filter(([form]) => {
388
+ if (!data?.type || !typesRequiringAdditionalData.includes(data?.type)) return form !== sourceOfFundsForms.additionalData.formId;
389
+ return form;
390
+ }));
391
+ };
392
+ var getInputErrors = ({ formErrors, data, key, value }) => {
393
+ const isEmpty = value === "" || value === null || value === void 0;
394
+ let errors = { ...formErrors };
395
+ if (isEmpty) errors = {
396
+ ...formErrors,
397
+ [key]: "fieldIsRequired"
398
+ };
399
+ else errors = {
400
+ ...formErrors,
401
+ [key]: void 0
402
+ };
403
+ if (["amount", "currency"].includes(key)) {
404
+ if (data?.amount?.value && data?.amount?.currency) errors = {
405
+ ...formErrors,
406
+ amount: void 0
407
+ };
408
+ if (!data?.amount?.currency) errors = {
409
+ ...formErrors,
410
+ amount: "currencyIsRequired"
411
+ };
412
+ if (!data?.amount?.value) errors = {
413
+ ...formErrors,
414
+ amount: "amountIsRequired"
415
+ };
416
+ else if (isNaN(data?.amount.value)) errors = {
417
+ ...formErrors,
418
+ amount: "pleaseEnterAValidAmount"
419
+ };
420
+ }
421
+ return errors;
422
+ };
423
+ var getPageHeadings = (type) => {
424
+ switch (type) {
425
+ case "cryptocurrencyIncome": return {
426
+ heading: "cryptocurrencyProceedDetails",
427
+ description: "tellUsMoreAboutTheCryptocurrency"
428
+ };
429
+ case "assetSale": return {
430
+ heading: "propertySaleDetails",
431
+ description: "tellUsMoreAboutTheProperty"
432
+ };
433
+ case "gamblingWinnings": return {
434
+ heading: "gamblingProceedDetails",
435
+ description: "tellUsMoreAboutTheGamblingProceeds"
436
+ };
437
+ case "business": return {
438
+ heading: "businessEarningDetails",
439
+ description: "tellUsMoreAboutThePreviousBusinessEarnings"
440
+ };
441
+ case "thirdPartyFunding": return {
442
+ heading: "thirdPartyInvestmentDetails",
443
+ description: "tellUsMoreAboutTheInvestors"
444
+ };
445
+ case "inheritance": return {
446
+ heading: "inheritanceDetails",
447
+ description: "tellUsMoreAboutTheInheritanceProceeds"
448
+ };
449
+ case "donations": return {
450
+ heading: "giftOrDonationDetails",
451
+ description: "tellUsMoreAboutTheGiftOrDonationProceeds"
452
+ };
453
+ default: return { heading: "tellUsMoreAboutThisSource" };
454
+ }
455
+ };
456
+ var getDocumentRequirements = {
457
+ loanAgreement: [
458
+ "yourBusinessName",
459
+ "lendersNameAndAddress",
460
+ "principalAmount",
461
+ "loanDate",
462
+ "purposeOfLoan"
463
+ ],
464
+ loanStatement: [
465
+ "yourBusinessName",
466
+ "lendersNameAndAddress",
467
+ "principalAmount",
468
+ "loanDate",
469
+ "purposeOfLoan"
470
+ ],
471
+ proofOfWalletOwnership: [
472
+ "yourBusinessName",
473
+ "nameOfTheCryptocurrencyExchange",
474
+ "nameOfTheCoins",
475
+ "issueDateWithinTheLast12Months"
476
+ ],
477
+ transactionStatement: [
478
+ "showsYourBusinessName",
479
+ "showsTheNameOfTheCryptocurrencyExchange",
480
+ "showsTheNameOfTheCoins",
481
+ "issueDateWithinTheLast12Months"
482
+ ],
483
+ taxFiling: [
484
+ "showsYourBusinessName",
485
+ "showsTheNameOfTheCryptocurrencyExchange",
486
+ "showsTheNameOfTheCoins",
487
+ "issueDateWithinTheLast12Months"
488
+ ],
489
+ proofOfWinnings: [
490
+ "winningProceedAmount",
491
+ "dateOfWinning",
492
+ "nameOfCasinoLottery"
493
+ ],
494
+ winReport: [
495
+ "winningProceedAmount",
496
+ "dateOfWinning",
497
+ "nameOfCasinoLottery"
498
+ ],
499
+ winLossStatement: [
500
+ "winningProceedAmount",
501
+ "dateOfWinning",
502
+ "nameOfCasinoLottery"
503
+ ],
504
+ taxDeclaration: ["winningProceedAmount", "issuedWithinTheLast12Months"],
505
+ annualStatements: [
506
+ "yourBusinessName",
507
+ "proofOfAnnualTurnoverAmount",
508
+ "issueDateWithinTheLast12Months"
509
+ ],
510
+ latestTaxFiling: [
511
+ "yourBusinessName",
512
+ "proofOfAnnualTurnoverAmount",
513
+ "issueDateWithinTheLast12Months"
514
+ ],
515
+ letterFromAccountant: [
516
+ "yourBusinessName",
517
+ "proofOfAnnualTurnoverAmount",
518
+ "signatureAndDateWithinTheLast12Months"
519
+ ],
520
+ recentInvoices: ["yourBusinessName", "invoicesFromThe3MostRecentMonths"],
521
+ bankStatements: [
522
+ "yourBusinessName",
523
+ "issueDate",
524
+ "banksLogoAndName",
525
+ "allStatementsFrom3MostRecentMonths"
526
+ ],
527
+ payslips: [
528
+ "employersName",
529
+ "issueDate",
530
+ "banksLogoAndName",
531
+ "allPayslipsFrom3MostRecentMonths"
532
+ ],
533
+ contractSpecifyingDividends: [
534
+ "theBusinessName",
535
+ "termLengthAndDividendYield",
536
+ "namesOfInvolvedParties"
537
+ ],
538
+ latestTaxReturn: ["theBusinessName", "reportedDividendAmount"],
539
+ investmentCertificate: ["theBusinessName", "termLengthAndDividendYield"],
540
+ brokerStatements: [
541
+ "theBrokerageName",
542
+ "dividendAmount",
543
+ "issueDateWithinTheLast3Months",
544
+ "namesOfInvolvedParties"
545
+ ],
546
+ investorContract: [
547
+ "yourBusinessName",
548
+ "nameAddressSignatureOfAllInvestors",
549
+ "investmentAmount",
550
+ "fundDepositDate"
551
+ ],
552
+ investorMemo: [
553
+ "yourBusinessName",
554
+ "nameAddressSignatureOfAllInvestors",
555
+ "investmentAmount",
556
+ "fundDepositDate"
557
+ ],
558
+ notarizedStatement: [
559
+ "yourBusinessName",
560
+ "nameAddressSignatureOfAllInvestors",
561
+ "investmentAmount",
562
+ "fundDepositDate"
563
+ ],
564
+ partnershipAgreement: [
565
+ "yourBusinessName",
566
+ "nameAddressSignatureOfAllInvestors",
567
+ "investmentAmount",
568
+ "fundDepositDate"
569
+ ],
570
+ proofOfOwnership: [
571
+ "descriptionOfProperty",
572
+ "netProceedAmount",
573
+ "fundDepositDate",
574
+ "propertyAddress"
575
+ ],
576
+ letterFromAttorney: [
577
+ "descriptionOfProperty",
578
+ "netProceedAmount",
579
+ "fundDepositDate",
580
+ "propertyAddress"
581
+ ],
582
+ saleContract: [
583
+ "descriptionOfProperty",
584
+ "netProceedAmount",
585
+ "fundDepositDate",
586
+ "propertyAddress"
587
+ ],
588
+ taxDeclarationProperty: [
589
+ "descriptionOfProperty",
590
+ "netProceedAmount",
591
+ "fundDepositDate",
592
+ "propertyAddress"
593
+ ],
594
+ titleDeed: [
595
+ "descriptionOfProperty",
596
+ "netProceedAmount",
597
+ "fundDepositDate",
598
+ "propertyAddress"
599
+ ],
600
+ rentalAgreementOrLease: [
601
+ "namesOfLandlordAndTenant",
602
+ "propertyAddress",
603
+ "rentAmount"
604
+ ],
605
+ proofOfOwnershipRent: ["yourName", "propertyAddress"],
606
+ giftOrDonationAgreement: [
607
+ "donorsName",
608
+ "fundTransferDate",
609
+ "fundDepositAmount"
610
+ ],
611
+ royaltyAgreement: [
612
+ "descriptionOfIntellectualProperty",
613
+ "royaltyAmount",
614
+ "agreementPeriod"
615
+ ],
616
+ taxDocuments: ["royaltyAmount", "provideMostRecentYearAvailable"],
617
+ certificateOfInheritance: [
618
+ "decedentsName",
619
+ "inheritanceAmount",
620
+ "fundDepositDate",
621
+ "estateAttorneysName"
622
+ ],
623
+ grantOfProbate: [
624
+ "decedentsName",
625
+ "inheritanceAmount",
626
+ "fundDepositDate",
627
+ "estateAttorneysName"
628
+ ],
629
+ letterFromAttorneyOrNotary: [
630
+ "decedentsName",
631
+ "inheritanceAmount",
632
+ "fundDepositDate",
633
+ "estateAttorneysName"
634
+ ],
635
+ signedCopyOfTheWill: [
636
+ "decedentsName",
637
+ "inheritanceAmount",
638
+ "fundDepositDate",
639
+ "estateAttorneysName"
640
+ ],
641
+ pensionSlip: [
642
+ "yourFullName",
643
+ "previousEmployersName",
644
+ "pensionPaymentAmount"
645
+ ],
646
+ letterFromPreviousEmployer: [
647
+ "yourFullName",
648
+ "previousEmployersName",
649
+ "pensionPaymentAmountOrTotalValue"
650
+ ],
651
+ pensionStatement: [
652
+ "yourFullName",
653
+ "previousEmployersName",
654
+ "pensionPaymentAmountOrTotalValue"
655
+ ],
656
+ courtOrder: [
657
+ "yourFullName",
658
+ "totalSettlementAmount",
659
+ "fundDepositDate"
660
+ ],
661
+ letterFromAttorneyInsurance: [
662
+ "yourFullName",
663
+ "totalSettlementAmount",
664
+ "fundDepositDate"
665
+ ],
666
+ letterFromInsurer: [
667
+ "yourFullName",
668
+ "totalSettlementAmount",
669
+ "fundDepositDate"
670
+ ],
671
+ confirmationOfGrantOrSubsidy: [
672
+ "benefactorsName",
673
+ "subsidyOrGrantAmount",
674
+ "timePeriodIfApplicable"
675
+ ]
676
+ };
677
+ var getDocumentLists = (sourceOfFundsType) => {
678
+ switch (sourceOfFundsType) {
679
+ case "loans": return ["loanAgreement", "loanStatement"];
680
+ case "gamblingWinnings": return [
681
+ "proofOfWinnings",
682
+ "winReport",
683
+ "winLossStatement",
684
+ "taxDeclaration"
685
+ ];
686
+ case "cryptocurrencyIncome": return [
687
+ "proofOfWalletOwnership",
688
+ "transactionStatement",
689
+ "taxFiling"
690
+ ];
691
+ case "business": return [
692
+ "annualStatements",
693
+ "latestTaxFiling",
694
+ "letterFromAccountant",
695
+ "recentInvoices"
696
+ ];
697
+ case "employment": return ["bankStatements", "payslips"];
698
+ case "dividendIncome": return [
699
+ "contractSpecifyingDividends",
700
+ "latestTaxReturn",
701
+ "investmentCertificate",
702
+ "brokerStatements"
703
+ ];
704
+ case "thirdPartyFunding": return [
705
+ "investorContract",
706
+ "investorMemo",
707
+ "notarizedStatement",
708
+ "partnershipAgreement"
709
+ ];
710
+ case "assetSale": return [
711
+ "proofOfOwnership",
712
+ "letterFromAttorney",
713
+ "saleContract",
714
+ "taxDeclarationProperty",
715
+ "titleDeed"
716
+ ];
717
+ case "rentalIncome": return ["rentalAgreementOrLease", "proofOfOwnership"];
718
+ case "donations": return ["giftOrDonationAgreement"];
719
+ case "royaltyIncome": return ["royaltyAgreement", "taxDocuments"];
720
+ case "inheritance": return [
721
+ "certificateOfInheritance",
722
+ "grantOfProbate",
723
+ "letterFromAttorneyOrNotary",
724
+ "signedCopyOfTheWill"
725
+ ];
726
+ case "pensionIncome": return [
727
+ "pensionSlip",
728
+ "letterFromPreviousEmployer",
729
+ "pensionStatement"
730
+ ];
731
+ case "insuranceSettlement": return [
732
+ "courtOrder",
733
+ "letterFromAttorneyInsurance",
734
+ "letterFromInsurer"
735
+ ];
736
+ case "financialAid": return ["confirmationOfGrantOrSubsidy"];
737
+ default: return [];
738
+ }
739
+ };
740
+ var parseSOFDocumentDescription = (t, documentDescription) => {
741
+ if (!documentDescription || documentDescription.trim() === "" || !documentDescription.startsWith("$")) return;
742
+ const [servicePart, typePart] = documentDescription.split("--");
743
+ const selectedService = servicePart.split(":")[1];
744
+ const documentType = typePart.split(":")[1];
745
+ const parsed = {
746
+ selectedService: getServiceTranslation(t, selectedService || ""),
747
+ documentType: t(($) => $[documentType])
748
+ };
749
+ return `${parsed.selectedService} (${parsed.documentType})`;
750
+ };
751
+ var parseOriginatorDetails = (originatorDetails, businessLine) => {
752
+ const copiedBusinessLine = { ...businessLine };
753
+ if (copiedBusinessLine.sourceOfFunds) {
754
+ if (originatorDetails.organization) {
755
+ copiedBusinessLine.sourceOfFunds.legalName = originatorDetails.organization.legalName;
756
+ copiedBusinessLine.sourceOfFunds.country = originatorDetails.organization?.registeredAddress?.country;
757
+ copiedBusinessLine.sourceOfFunds.originatorType = "organization";
758
+ }
759
+ if (originatorDetails.individual) {
760
+ copiedBusinessLine.sourceOfFunds.firstName = originatorDetails.individual.name?.firstName;
761
+ copiedBusinessLine.sourceOfFunds.lastName = originatorDetails.individual.name?.lastName;
762
+ copiedBusinessLine.sourceOfFunds.country = originatorDetails.individual.residentialAddress?.country;
763
+ copiedBusinessLine.sourceOfFunds.originatorType = "individual";
764
+ }
765
+ }
766
+ return copiedBusinessLine;
767
+ };
768
+ var getSourceOfFundsPayload = (sofType, additionalData) => {
769
+ switch (sofType) {
770
+ case "business": return {
771
+ adyenProcessedFunds: false,
772
+ type: "business",
773
+ description: additionalData?.description,
774
+ amount: {
775
+ currency: additionalData?.amount?.currency ?? "USD",
776
+ value: additionalData?.amount?.value ?? 0
777
+ }
778
+ };
779
+ case "employment": return {
780
+ adyenProcessedFunds: false,
781
+ type: "employment"
782
+ };
783
+ case "donations": return {
784
+ adyenProcessedFunds: false,
785
+ type: "donations",
786
+ dateOfFundsReceived: additionalData?.dateOfFundsReceived,
787
+ purpose: additionalData?.purpose,
788
+ relationship: additionalData?.relationship,
789
+ originatorLegalEntityId: additionalData?.originatorLegalEntityId
790
+ };
791
+ case "inheritance": return {
792
+ adyenProcessedFunds: false,
793
+ type: "inheritance",
794
+ dateOfFundsReceived: additionalData?.dateOfFundsReceived,
795
+ amount: additionalData?.amount,
796
+ relationship: additionalData?.relationship,
797
+ originatorLegalEntityId: additionalData?.originatorLegalEntityId
798
+ };
799
+ case "financialAid": return {
800
+ adyenProcessedFunds: false,
801
+ type: "financialAid"
802
+ };
803
+ case "rentalIncome": return {
804
+ adyenProcessedFunds: false,
805
+ type: "rentalIncome"
806
+ };
807
+ case "dividendIncome": return {
808
+ adyenProcessedFunds: false,
809
+ type: "dividendIncome"
810
+ };
811
+ case "royaltyIncome": return {
812
+ adyenProcessedFunds: false,
813
+ type: "royaltyIncome"
814
+ };
815
+ case "pensionIncome": return {
816
+ adyenProcessedFunds: false,
817
+ type: "pensionIncome"
818
+ };
819
+ case "insuranceSettlement": return {
820
+ adyenProcessedFunds: false,
821
+ type: "insuranceSettlement"
822
+ };
823
+ case "thirdPartyFunding": return {
824
+ adyenProcessedFunds: false,
825
+ type: "thirdPartyFunding",
826
+ financiers: additionalData?.financiers
827
+ };
828
+ case "cryptocurrencyIncome": return {
829
+ adyenProcessedFunds: false,
830
+ type: "cryptocurrencyIncome",
831
+ cryptocurrencyExchange: additionalData?.cryptocurrencyExchange
832
+ };
833
+ case "assetSale": return {
834
+ adyenProcessedFunds: false,
835
+ type: "assetSale",
836
+ cryptocurrencyExchange: additionalData?.cryptocurrencyExchange,
837
+ dateOfSourceEvent: additionalData?.dateOfSourceEvent,
838
+ description: additionalData?.description,
839
+ amount: additionalData?.amount
840
+ };
841
+ case "loans": return {
842
+ adyenProcessedFunds: false,
843
+ type: "loans"
844
+ };
845
+ case "gamblingWinnings": return {
846
+ adyenProcessedFunds: false,
847
+ type: "gamblingWinnings",
848
+ dateOfSourceEvent: additionalData?.dateOfSourceEvent,
849
+ website: additionalData?.website && !additionalData.website.startsWith("http://") && !additionalData.website.startsWith("https://") ? `https://${additionalData.website}` : additionalData?.website,
850
+ amount: additionalData?.amount
851
+ };
852
+ default: return { adyenProcessedFunds: true };
853
+ }
854
+ };
855
+ var parseSofOriginatorPayload = (additionalData) => {
856
+ let sofOriginator;
857
+ if (additionalData?.originatorType === "individual") sofOriginator = {
858
+ type: LegalEntityTypes.INDIVIDUAL,
859
+ individual: {
860
+ name: {
861
+ firstName: additionalData?.firstName ?? "",
862
+ lastName: additionalData?.lastName ?? ""
863
+ },
864
+ residentialAddress: { country: additionalData?.country }
865
+ }
866
+ };
867
+ else sofOriginator = {
868
+ type: LegalEntityTypes.ORGANIZATION,
869
+ organization: {
870
+ legalName: additionalData?.legalName ?? "",
871
+ registeredAddress: { country: additionalData?.country }
872
+ }
873
+ };
874
+ return sofOriginator;
875
+ };
876
+ var formatDateForInput = (isoDateString) => {
877
+ if (!isoDateString) return "";
878
+ try {
879
+ const datePart = isoDateString.split("T")[0];
880
+ if (/^\d{4}-\d{2}-\d{2}$/.test(datePart)) return datePart;
881
+ return "";
882
+ } catch {
883
+ return "";
884
+ }
885
+ };
886
+ var getSofCardDetails = (t, sourceOfFunds) => {
887
+ if (!sourceOfFunds) return "";
888
+ if (sourceOfFunds?.adyenProcessedFunds) return t(($) => $["transactionsOnThisPlatform"]);
889
+ if (sourceOfFunds?.type) return sourceOfFunds?.type ? t(($) => $[sofCategoryItemMapper[sourceOfFunds.type]]) : "";
890
+ return "";
891
+ };
892
+ var ALLOWED_SOF_SERVICES = ["issuing", "banking"];
893
+ /**
894
+ * Returns business lines that require SoF (based on ALLOWED_SOF_SERVICES)
895
+ */
896
+ var getApplicableBusinessLines = (businessLines) => {
897
+ return businessLines.filter((bl) => ALLOWED_SOF_SERVICES.includes(bl.service));
898
+ };
899
+ /**
900
+ * Deep comparison of SoF data.
901
+ * Returns true if all business-relevant fields are identical.
902
+ */
903
+ var areSourceOfFundsEqual = (sof1, sof2) => {
904
+ const type1 = sof1.sourceOfFundsType?.type;
905
+ if (type1 !== sof2.sourceOfFundsType?.type) return false;
906
+ if (type1 === "donations" || type1 === "inheritance") {
907
+ const ad1 = sof1.additionalData || {};
908
+ const ad2 = sof2.additionalData || {};
909
+ if (ad1.originatorType !== ad2.originatorType) return false;
910
+ if (ad1.originatorType === "individual") return ad1.firstName === ad2.firstName && ad1.lastName === ad2.lastName && ad1.country === ad2.country && ad1.relationship === ad2.relationship && ad1.purpose === ad2.purpose && ad1.dateOfFundsReceived === ad2.dateOfFundsReceived;
911
+ else if (ad1.originatorType === "organization") return ad1.legalName === ad2.legalName && ad1.country === ad2.country && ad1.relationship === ad2.relationship && ad1.purpose === ad2.purpose && ad1.dateOfFundsReceived === ad2.dateOfFundsReceived;
912
+ return false;
913
+ }
914
+ const ad1 = sof1.additionalData || {};
915
+ const ad2 = sof2.additionalData || {};
916
+ const keys1 = Object.keys(ad1);
917
+ const keys2 = Object.keys(ad2);
918
+ if (keys1.length !== keys2.length) return false;
919
+ return keys1.every((key) => {
920
+ const val1 = ad1[key];
921
+ const val2 = ad2[key];
922
+ return JSON.stringify(val1) === JSON.stringify(val2);
923
+ });
924
+ };
925
+ var SOF_INVALID_INPUT_ERROR_CODES = ["1_93", "1_94"];
926
+ var getRelevantErrors = (problems, targetCodes) => {
927
+ if (!problems) return false;
928
+ return problems.flatMap((problem) => (problem.verificationErrors || []).filter((error) => targetCodes.includes(error.code) || (error.subErrors || []).some((sub) => targetCodes.includes(sub.code))));
929
+ };
930
+ var getUniqueRemediationActions = (error) => {
931
+ return [...error.remediatingActions || [], ...error.subErrors?.flatMap((sub) => sub.remediatingActions || []) || []].filter((action, i, arr) => arr.findIndex((a) => a.code === action.code) === i);
932
+ };
933
+ var sofCategoryItemMapper = {
934
+ business: "otherBusinessEarnings",
935
+ employment: "employmentWages",
936
+ cryptocurrencyIncome: "cryptocurrency",
937
+ dividendIncome: "dividends",
938
+ loans: "loans",
939
+ financialAid: "financialAid",
940
+ thirdPartyFunding: "thirdPartyFunding",
941
+ rentalIncome: "rentalIncome",
942
+ royaltyIncome: "royaltyIncome",
943
+ gamblingWinnings: "gambling",
944
+ inheritance: "inheritance",
945
+ pensionIncome: "pensionIncome",
946
+ insuranceSettlement: "insuranceSettlement",
947
+ assetSale: "propertySale",
948
+ donations: "giftOrDonation"
949
+ };
950
+ /**
951
+ * Prepares additional data for originator creation/update.
952
+ * When useSameAs is true, appends the originatorLegalEntityId from the source
953
+ * so that createOrUpdateOriginator can update the existing LE instead of creating a new one.
954
+ */
955
+ var getAdditionalDataForOriginator = (additionalData, sourceAdditionalData, useSameAs) => {
956
+ if (useSameAs) return {
957
+ ...additionalData,
958
+ originatorLegalEntityId: sourceAdditionalData?.originatorLegalEntityId
959
+ };
960
+ return additionalData;
961
+ };
962
+ //#endregion
963
+ //#region src/components/EFP/tasks/SourceOfFundsDropin/SOFAdditionalData/AdditionalDataForAssetSale.tsx
964
+ function AdditionalDataForAssetSale(props) {
965
+ const [isFocused, setIsFocused] = useState$1(false);
966
+ const { formUtils, data, errors, valid, fieldProblems, handleChangeFor, handleAmountChange } = props;
967
+ const { t: commonT } = useTranslation("common");
968
+ const handleOnAmountBlur = () => {
969
+ setIsFocused(false);
970
+ handleAmountChange("amount");
971
+ };
972
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsxs("div", {
973
+ className: SourceOfFunds_module_default.sourceOfFundsGridContainer,
974
+ children: [/* @__PURE__ */ jsx(Field, {
975
+ el: "fieldset",
976
+ name: "amount",
977
+ label: formUtils.getLabel("amount", "saleAmount"),
978
+ errorMessage: formUtils.getErrorMessage("amount", errors, fieldProblems),
979
+ children: (childProps) => /* @__PURE__ */ jsxs(InputGroup, {
980
+ ...childProps,
981
+ id: "currencyGroup",
982
+ isFocused,
983
+ isInvalid: Boolean(!valid.amount && errors.amount),
984
+ children: [/* @__PURE__ */ jsx(Select, {
985
+ name: "currency",
986
+ "aria-label": commonT(($) => $["currency"]),
987
+ isMulti: false,
988
+ items: allowedCurrencies,
989
+ selected: data.amount?.currency,
990
+ placeholder: commonT(($) => $["select"]),
991
+ onChange: handleAmountChange("currency"),
992
+ minimal: true
993
+ }), /* @__PURE__ */ jsx(InputText, {
994
+ ...childProps,
995
+ name: "amount",
996
+ value: data.amount?.value,
997
+ readonly: formUtils.isReadOnly("amount"),
998
+ onInput: handleAmountChange("amount"),
999
+ onBlur: handleOnAmountBlur,
1000
+ "aria-required": true,
1001
+ "aria-invalid": !valid.amount,
1002
+ isValid: valid.amount,
1003
+ onFocusHandler: () => setIsFocused(true)
1004
+ })]
1005
+ })
1006
+ }), /* @__PURE__ */ jsx(Field, {
1007
+ name: "dateOfSourceEvent",
1008
+ label: formUtils.getLabel("dateOfSourceEvent", "dateOfSale"),
1009
+ errorMessage: formUtils.getErrorMessage("dateOfSourceEvent", errors, fieldProblems),
1010
+ isValid: valid.dateOfSourceEvent,
1011
+ children: (childProps) => /* @__PURE__ */ jsx(InputDate, {
1012
+ ...childProps,
1013
+ name: "dateOfSourceEvent",
1014
+ value: formatDateForInput(data.dateOfSourceEvent),
1015
+ onInput: handleChangeFor("dateOfSourceEvent", "input"),
1016
+ onBlur: handleChangeFor("dateOfSourceEvent", "blur"),
1017
+ "aria-required": true,
1018
+ "aria-invalid": !valid.dateOfSourceEvent,
1019
+ max: TODAY_DATE
1020
+ })
1021
+ })]
1022
+ }), /* @__PURE__ */ jsx(Field, {
1023
+ name: "description",
1024
+ label: formUtils.getLabel("description", "propertyDescription"),
1025
+ errorMessage: formUtils.getErrorMessage("description", errors, fieldProblems),
1026
+ isValid: valid.description,
1027
+ children: (childProps) => /* @__PURE__ */ jsx(TextArea, {
1028
+ ...childProps,
1029
+ name: "description",
1030
+ value: data.description,
1031
+ maxLength: 200,
1032
+ onInput: handleChangeFor("description"),
1033
+ onBlur: handleChangeFor("description"),
1034
+ "aria-invalid": !valid.description
1035
+ })
1036
+ })] });
1037
+ }
1038
+ //#endregion
1039
+ //#region src/components/EFP/tasks/SourceOfFundsDropin/SOFAdditionalData/AdditionalDataForBusiness.tsx
1040
+ function AdditionalDataForBusiness(props) {
1041
+ const [isFocused, setIsFocused] = useState$1(false);
1042
+ const { formUtils, data, errors, valid, fieldProblems, handleChangeFor, handleAmountChange } = props;
1043
+ const { t: commonT } = useTranslation("common");
1044
+ const handleOnAmountBlur = () => {
1045
+ setIsFocused(false);
1046
+ handleAmountChange("amount");
1047
+ };
1048
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(Field, {
1049
+ el: "fieldset",
1050
+ name: "amount",
1051
+ label: formUtils.getLabel("amount", "annualTurnover"),
1052
+ errorMessage: formUtils.getErrorMessage("amount", errors, fieldProblems),
1053
+ helper: commonT(($) => $["useFiguresFromTheMostRecentYearAvailable"]),
1054
+ helperPosition: "below",
1055
+ children: (childProps) => /* @__PURE__ */ jsxs(InputGroup, {
1056
+ ...childProps,
1057
+ id: "currencyGroup",
1058
+ isFocused,
1059
+ isInvalid: Boolean(!valid.amount && errors.amount),
1060
+ children: [/* @__PURE__ */ jsx(Select, {
1061
+ name: "currency",
1062
+ "aria-label": commonT(($) => $["currency"]),
1063
+ isMulti: false,
1064
+ items: allowedCurrencies,
1065
+ selected: data.amount?.currency,
1066
+ placeholder: commonT(($) => $["select"]),
1067
+ onChange: handleAmountChange("currency"),
1068
+ minimal: true
1069
+ }), /* @__PURE__ */ jsx(InputText, {
1070
+ ...childProps,
1071
+ name: "amount",
1072
+ value: data.amount?.value,
1073
+ readonly: formUtils.isReadOnly("amount"),
1074
+ onInput: handleAmountChange("amount"),
1075
+ onBlur: handleOnAmountBlur,
1076
+ "aria-required": true,
1077
+ "aria-invalid": !valid.amount,
1078
+ isValid: valid.amount,
1079
+ onFocusHandler: () => setIsFocused(true)
1080
+ })]
1081
+ })
1082
+ }), /* @__PURE__ */ jsx(Field, {
1083
+ name: "description",
1084
+ label: formUtils.getLabel("description", "businessDescription"),
1085
+ errorMessage: formUtils.getErrorMessage("description", errors, fieldProblems),
1086
+ isValid: valid.description,
1087
+ children: (childProps) => /* @__PURE__ */ jsx(TextArea, {
1088
+ ...childProps,
1089
+ name: "description",
1090
+ value: data.description,
1091
+ maxLength: 200,
1092
+ onInput: handleChangeFor("description"),
1093
+ onBlur: handleChangeFor("description"),
1094
+ "aria-invalid": !valid.description
1095
+ })
1096
+ })] });
1097
+ }
1098
+ //#endregion
1099
+ //#region src/components/EFP/tasks/SourceOfFundsDropin/SOFAdditionalData/AdditionalDataForCryptocurrency.tsx
1100
+ function AdditionalDataForCryptocurrency(props) {
1101
+ const { t: sofT } = useTranslation("sof");
1102
+ const { formUtils, data, errors, valid, fieldProblems, handleChangeFor } = props;
1103
+ return /* @__PURE__ */ jsx(Field, {
1104
+ name: "cryptocurrencyExchange",
1105
+ label: formUtils.getLabel("cryptocurrencyExchange", "cryptocurrencyExchange"),
1106
+ errorMessage: formUtils.getErrorMessage("cryptocurrencyExchange", errors, fieldProblems),
1107
+ isValid: valid.cryptocurrencyExchange,
1108
+ helper: sofT(($) => $["nameOfTheExchangeWhereTheCryptocurrencyWasHeldPriorToSale"]),
1109
+ helperPosition: "below",
1110
+ children: (childProps) => /* @__PURE__ */ jsx(InputText, {
1111
+ ...childProps,
1112
+ name: "cryptocurrencyExchange",
1113
+ value: data.cryptocurrencyExchange,
1114
+ readonly: formUtils.isReadOnly("cryptocurrencyExchange"),
1115
+ onInput: handleChangeFor("cryptocurrencyExchange", "input"),
1116
+ onBlur: handleChangeFor("cryptocurrencyExchange", "blur"),
1117
+ "aria-required": true,
1118
+ "aria-invalid": !valid.cryptocurrencyExchange,
1119
+ isValid: valid.cryptocurrencyExchange
1120
+ })
1121
+ });
1122
+ }
1123
+ //#endregion
1124
+ //#region src/components/EFP/tasks/SourceOfFundsDropin/SOFAdditionalData/AdditionalDataOriginatorLegalEntity.tsx
1125
+ var radioItems = [{
1126
+ id: "individual",
1127
+ name: "individual"
1128
+ }, {
1129
+ id: "organization",
1130
+ name: "organization"
1131
+ }];
1132
+ function AdditionalDataOriginatorLegalEntity(props) {
1133
+ const { t: sofT } = useTranslation("sof");
1134
+ const { formUtils, data, errors, valid, fieldProblems, handleChangeFor, sourceOfFundsType } = props;
1135
+ const isDonations = sourceOfFundsType === "donations";
1136
+ const countryTranslationKey = isDonations && data?.originatorType === "individual" ? "donorsCountryOfResidence" : data?.originatorType === "organization" ? "organizationsCountryOfOperation" : "decedentsCountryOfDeath";
1137
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [
1138
+ /* @__PURE__ */ jsx(Field, {
1139
+ el: "fieldset",
1140
+ name: "originatorType",
1141
+ className: SourceOfFunds_module_default.sourceOfFundsUploadModalContentField,
1142
+ label: sofT(($) => $[isDonations ? "whereDidThisGiftOrDonationComeFrom" : "whereDidThisInheritanceComeFrom"]),
1143
+ errorMessage: formUtils.getErrorMessage("originatorType", errors, fieldProblems),
1144
+ isValid: valid.originatorType,
1145
+ children: (childProps) => /* @__PURE__ */ jsx(RadioGroup, {
1146
+ ...childProps,
1147
+ name: "originatorType",
1148
+ className: SourceOfFunds_module_default.sourceOfFundsUploadModalContentFieldRadioGroup,
1149
+ items: radioItems,
1150
+ value: data.originatorType,
1151
+ disabled: false,
1152
+ onChange: handleChangeFor("originatorType", "input"),
1153
+ "aria-required": true
1154
+ })
1155
+ }),
1156
+ data?.originatorType === "organization" && /* @__PURE__ */ jsx(Field, {
1157
+ name: "legalName",
1158
+ label: formUtils.getLabel("legalName", "organizationsLegalName"),
1159
+ errorMessage: formUtils.getErrorMessage("legalName", errors, fieldProblems),
1160
+ isValid: valid.legalName,
1161
+ children: (childProps) => /* @__PURE__ */ jsx(InputText, {
1162
+ ...childProps,
1163
+ name: "legalName",
1164
+ value: data.legalName,
1165
+ readonly: formUtils.isReadOnly("legalName"),
1166
+ onInput: handleChangeFor("legalName", "input"),
1167
+ onBlur: handleChangeFor("legalName", "blur"),
1168
+ "aria-required": true,
1169
+ "aria-invalid": !valid.legalName,
1170
+ isValid: valid.legalName
1171
+ })
1172
+ }),
1173
+ data?.originatorType === "individual" && /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(Field, {
1174
+ name: "firstName",
1175
+ label: formUtils.getLabel("firstName", isDonations ? "donorsLegalFirstName" : "decedentsLegalFirstName"),
1176
+ errorMessage: formUtils.getErrorMessage("firstName", errors, fieldProblems),
1177
+ isValid: valid.firstName,
1178
+ children: (childProps) => /* @__PURE__ */ jsx(InputText, {
1179
+ ...childProps,
1180
+ name: "firstName",
1181
+ value: data.firstName,
1182
+ readonly: formUtils.isReadOnly("firstName"),
1183
+ onInput: handleChangeFor("firstName", "input"),
1184
+ onBlur: handleChangeFor("firstName", "blur"),
1185
+ "aria-required": true,
1186
+ "aria-invalid": !valid.firstName,
1187
+ isValid: valid.firstName
1188
+ })
1189
+ }), /* @__PURE__ */ jsx(Field, {
1190
+ name: "lastName",
1191
+ label: formUtils.getLabel("lastName", isDonations ? "donorsLegalLastName" : "decedentsLegalLastName"),
1192
+ errorMessage: formUtils.getErrorMessage("lastName", errors, fieldProblems),
1193
+ isValid: valid.lastName,
1194
+ children: (childProps) => /* @__PURE__ */ jsx(InputText, {
1195
+ ...childProps,
1196
+ name: "lastName",
1197
+ value: data.lastName,
1198
+ readonly: formUtils.isReadOnly("lastName"),
1199
+ onInput: handleChangeFor("lastName", "input"),
1200
+ onBlur: handleChangeFor("lastName", "blur"),
1201
+ "aria-required": true,
1202
+ "aria-invalid": !valid.lastName,
1203
+ isValid: valid.lastName
1204
+ })
1205
+ })] }),
1206
+ data?.originatorType && /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(Field, {
1207
+ name: "relationship",
1208
+ label: formUtils.getLabel("relationship", isDonations && data?.originatorType === "individual" ? "yourRelationshipToDonor" : data?.originatorType === "organization" ? "yourRelationshipToOrganization" : "yourRelationshipToDecedent"),
1209
+ errorMessage: formUtils.getErrorMessage("relationship", errors, fieldProblems),
1210
+ isValid: valid.relationship,
1211
+ children: (childProps) => /* @__PURE__ */ jsx(InputText, {
1212
+ ...childProps,
1213
+ name: "relationship",
1214
+ value: data.relationship,
1215
+ readonly: formUtils.isReadOnly("relationship"),
1216
+ onInput: handleChangeFor("relationship", "input"),
1217
+ onBlur: handleChangeFor("relationship", "blur"),
1218
+ "aria-required": true,
1219
+ "aria-invalid": !valid.relationship,
1220
+ isValid: valid.relationship
1221
+ })
1222
+ }), /* @__PURE__ */ jsx(CountryField, {
1223
+ data: { country: data.country },
1224
+ valid: { country: valid.country },
1225
+ errors: { country: formUtils.getErrorMessage("country", errors, fieldProblems) },
1226
+ labels: { country: sofT(($) => $[countryTranslationKey]) },
1227
+ readonly: formUtils.isReadOnly("country"),
1228
+ handleChangeFor
1229
+ })] })
1230
+ ] });
1231
+ }
1232
+ //#endregion
1233
+ //#region src/components/EFP/tasks/SourceOfFundsDropin/SOFAdditionalData/AdditionalDataForDonation.tsx
1234
+ function AdditionalDataForDonation(props) {
1235
+ const { formUtils, data, errors, valid, fieldProblems, handleChangeFor } = props;
1236
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(AdditionalDataOriginatorLegalEntity, {
1237
+ formUtils,
1238
+ handleChangeFor,
1239
+ data,
1240
+ errors,
1241
+ valid,
1242
+ fieldProblems,
1243
+ sourceOfFundsType: "donations"
1244
+ }), /* @__PURE__ */ jsxs("div", {
1245
+ className: SourceOfFunds_module_default.sourceOfFundsGridContainer,
1246
+ children: [/* @__PURE__ */ jsx(Field, {
1247
+ name: "purpose",
1248
+ label: formUtils.getLabel("purpose", "reason"),
1249
+ errorMessage: formUtils.getErrorMessage("purpose", errors, fieldProblems),
1250
+ isValid: valid.purpose,
1251
+ children: (childProps) => /* @__PURE__ */ jsx(InputText, {
1252
+ ...childProps,
1253
+ name: "purpose",
1254
+ value: data.purpose,
1255
+ readonly: formUtils.isReadOnly("purpose"),
1256
+ onInput: handleChangeFor("purpose", "input"),
1257
+ onBlur: handleChangeFor("purpose", "blur"),
1258
+ "aria-required": true,
1259
+ "aria-invalid": !valid.purpose,
1260
+ isValid: valid.purpose
1261
+ })
1262
+ }), /* @__PURE__ */ jsx(Field, {
1263
+ name: "dateOfFundsReceived",
1264
+ label: formUtils.getLabel("dateOfFundsReceived", "date"),
1265
+ errorMessage: formUtils.getErrorMessage("dateOfFundsReceived", errors, fieldProblems),
1266
+ isValid: valid.dateOfFundsReceived,
1267
+ children: (childProps) => /* @__PURE__ */ jsx(InputDate, {
1268
+ ...childProps,
1269
+ name: "dateOfFundsReceived",
1270
+ value: formatDateForInput(data.dateOfFundsReceived),
1271
+ onInput: handleChangeFor("dateOfFundsReceived", "input"),
1272
+ onBlur: handleChangeFor("dateOfFundsReceived", "blur"),
1273
+ "aria-required": true,
1274
+ "aria-invalid": !valid.dateOfFundsReceived,
1275
+ max: TODAY_DATE
1276
+ })
1277
+ })]
1278
+ })] });
1279
+ }
1280
+ //#endregion
1281
+ //#region src/components/EFP/tasks/SourceOfFundsDropin/SOFAdditionalData/AdditionalDataForGambling.tsx
1282
+ function AdditionalDataForGambling(props) {
1283
+ const { t: commonT } = useTranslation("common");
1284
+ const [focusedInput, setFocusedInput] = useState$1();
1285
+ const { formUtils, data, errors, valid, fieldProblems, handleChangeFor, handleAmountChange } = props;
1286
+ const handleOnAmountBlur = () => {
1287
+ setFocusedInput(void 0);
1288
+ handleAmountChange("amount");
1289
+ };
1290
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [
1291
+ /* @__PURE__ */ jsx(Field, {
1292
+ el: "fieldset",
1293
+ name: "amount",
1294
+ label: formUtils.getLabel("amount", "totalAmountWon"),
1295
+ errorMessage: formUtils.getErrorMessage("amount", errors, fieldProblems),
1296
+ children: (childProps) => /* @__PURE__ */ jsxs(InputGroup, {
1297
+ ...childProps,
1298
+ id: "currencyGroup",
1299
+ isFocused: focusedInput === "amount",
1300
+ isInvalid: Boolean(!valid.amount && errors.amount),
1301
+ children: [/* @__PURE__ */ jsx(Select, {
1302
+ name: "currency",
1303
+ "aria-label": commonT(($) => $["currency"]),
1304
+ isMulti: false,
1305
+ items: allowedCurrencies,
1306
+ selected: data.amount?.currency,
1307
+ placeholder: commonT(($) => $["select"]),
1308
+ onChange: handleAmountChange("currency"),
1309
+ minimal: true
1310
+ }), /* @__PURE__ */ jsx(InputText, {
1311
+ ...childProps,
1312
+ name: "amount",
1313
+ value: data.amount?.value,
1314
+ readonly: formUtils.isReadOnly("amount"),
1315
+ onInput: handleAmountChange("amount"),
1316
+ onBlur: handleOnAmountBlur,
1317
+ "aria-required": true,
1318
+ "aria-invalid": !valid.amount,
1319
+ isValid: valid.amount,
1320
+ onFocusHandler: () => setFocusedInput("amount")
1321
+ })]
1322
+ })
1323
+ }),
1324
+ /* @__PURE__ */ jsx(Field, {
1325
+ name: "dateOfSourceEvent",
1326
+ label: formUtils.getLabel("dateOfSourceEvent", "dateOfWinning"),
1327
+ errorMessage: formUtils.getErrorMessage("dateOfSourceEvent", errors, fieldProblems),
1328
+ isValid: valid.dateOfSourceEvent,
1329
+ children: (childProps) => /* @__PURE__ */ jsx(InputDate, {
1330
+ ...childProps,
1331
+ name: "dateOfSourceEvent",
1332
+ value: formatDateForInput(data.dateOfSourceEvent),
1333
+ onInput: handleChangeFor("dateOfSourceEvent", "input"),
1334
+ onBlur: handleChangeFor("dateOfSourceEvent", "blur"),
1335
+ "aria-required": true,
1336
+ "aria-invalid": !valid.dateOfSourceEvent,
1337
+ max: TODAY_DATE
1338
+ })
1339
+ }),
1340
+ /* @__PURE__ */ jsx(Field, {
1341
+ name: "website",
1342
+ label: formUtils.getLabel("website", "gamblingEstablishmentWebsite"),
1343
+ errorMessage: formUtils.getErrorMessage("website", errors, fieldProblems),
1344
+ children: (childProps) => /* @__PURE__ */ jsx(InputGroup, {
1345
+ ...childProps,
1346
+ id: "websiteGroup",
1347
+ isFocused: focusedInput === "website",
1348
+ isInvalid: Boolean(!valid.website && errors.website),
1349
+ children: /* @__PURE__ */ jsx(InputText, {
1350
+ ...childProps,
1351
+ placeholder: "https://",
1352
+ name: "website",
1353
+ value: data.website,
1354
+ readonly: formUtils.isReadOnly("website"),
1355
+ onInput: handleChangeFor("website", "input"),
1356
+ onBlur: handleChangeFor("website", "blur"),
1357
+ "aria-required": true,
1358
+ "aria-invalid": !valid.website,
1359
+ isValid: valid.website,
1360
+ onFocusHandler: () => setFocusedInput("website")
1361
+ })
1362
+ })
1363
+ })
1364
+ ] });
1365
+ }
1366
+ //#endregion
1367
+ //#region src/components/EFP/tasks/SourceOfFundsDropin/SOFAdditionalData/AdditionalDataForInheritance.tsx
1368
+ function AdditionalDataForInheritance(props) {
1369
+ const [isFocused, setIsFocused] = useState$1(false);
1370
+ const { formUtils, data, errors, valid, fieldProblems, handleChangeFor, handleAmountChange } = props;
1371
+ const { t: commonT } = useTranslation("common");
1372
+ const handleOnAmountBlur = () => {
1373
+ setIsFocused(false);
1374
+ handleAmountChange("amount");
1375
+ };
1376
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(AdditionalDataOriginatorLegalEntity, {
1377
+ formUtils,
1378
+ handleChangeFor,
1379
+ data,
1380
+ errors,
1381
+ valid,
1382
+ fieldProblems,
1383
+ sourceOfFundsType: "inheritance"
1384
+ }), /* @__PURE__ */ jsxs("div", {
1385
+ className: SourceOfFunds_module_default.sourceOfFundsGridContainer,
1386
+ children: [/* @__PURE__ */ jsx(Field, {
1387
+ el: "fieldset",
1388
+ name: "amount",
1389
+ label: formUtils.getLabel("amount", "inheritanceAmount"),
1390
+ errorMessage: formUtils.getErrorMessage("amount", errors, fieldProblems),
1391
+ children: (childProps) => /* @__PURE__ */ jsxs(InputGroup, {
1392
+ ...childProps,
1393
+ id: "currencyGroup",
1394
+ isFocused,
1395
+ isInvalid: Boolean(!valid.amount && errors.amount),
1396
+ children: [/* @__PURE__ */ jsx(Select, {
1397
+ name: "currency",
1398
+ "aria-label": commonT(($) => $["currency"]),
1399
+ isMulti: false,
1400
+ items: allowedCurrencies ?? [],
1401
+ selected: data.amount?.currency,
1402
+ placeholder: commonT(($) => $["select"]),
1403
+ onChange: handleAmountChange("currency"),
1404
+ minimal: true
1405
+ }), /* @__PURE__ */ jsx(InputText, {
1406
+ ...childProps,
1407
+ name: "amount",
1408
+ value: data.amount?.value,
1409
+ readonly: formUtils.isReadOnly("amount"),
1410
+ onInput: handleAmountChange("amount"),
1411
+ onBlur: handleOnAmountBlur,
1412
+ "aria-required": true,
1413
+ "aria-invalid": !valid.amount,
1414
+ isValid: valid.amount,
1415
+ onFocusHandler: () => setIsFocused(true)
1416
+ })]
1417
+ })
1418
+ }), /* @__PURE__ */ jsx(Field, {
1419
+ name: "dateOfFundsReceived",
1420
+ label: formUtils.getLabel("dateOfFundsReceived", "inheritanceReceivedOn"),
1421
+ errorMessage: formUtils.getErrorMessage("dateOfFundsReceived", errors, fieldProblems),
1422
+ isValid: valid.dateOfFundsReceived,
1423
+ children: (childProps) => /* @__PURE__ */ jsx(InputDate, {
1424
+ ...childProps,
1425
+ name: "dateOfFundsReceived",
1426
+ value: formatDateForInput(data.dateOfFundsReceived),
1427
+ onInput: handleChangeFor("dateOfFundsReceived", "input"),
1428
+ onBlur: handleChangeFor("dateOfFundsReceived", "blur"),
1429
+ "aria-required": true,
1430
+ "aria-invalid": !valid.dateOfFundsReceived,
1431
+ max: TODAY_DATE
1432
+ })
1433
+ })]
1434
+ })] });
1435
+ }
1436
+ //#endregion
1437
+ //#region src/components/EFP/tasks/SourceOfFundsDropin/SOFAdditionalData/SOFFinancierModal.tsx
1438
+ var SOFFinancierModal = (props) => {
1439
+ const { t: sofT } = useTranslation("sof");
1440
+ const { t: commonT } = useTranslation("common");
1441
+ const { financier, handleModalClose, indexNumber, handleFinancierUpdate } = props;
1442
+ const [formData, setFormData] = useState$1(financier);
1443
+ const [formErrors, setFormErrors] = useState$1({});
1444
+ const [confirmOpen, setConfirmOpen] = useState$1(false);
1445
+ const [isFocused, setIsFocused] = useState$1(false);
1446
+ const [errorMessage, setErrorMessage] = useState$1("");
1447
+ const handleInputUpdate = (key, e) => {
1448
+ const inputEl = e.target;
1449
+ setErrorMessage("");
1450
+ const value = inputEl?.value;
1451
+ let inputData = { [key]: value };
1452
+ if (["amount", "currency"].includes(key)) inputData = { amount: {
1453
+ currency: key === "currency" ? value : formData?.amount?.currency,
1454
+ value: key === "currency" ? formData?.amount?.value : value
1455
+ } };
1456
+ const data = {
1457
+ ...formData,
1458
+ ...inputData
1459
+ };
1460
+ setFormData(data);
1461
+ setFormErrors(getInputErrors({
1462
+ formErrors,
1463
+ data,
1464
+ key,
1465
+ value
1466
+ }));
1467
+ };
1468
+ const handleOnAmountBlur = () => {
1469
+ setIsFocused(false);
1470
+ setFormErrors(getInputErrors({
1471
+ formErrors,
1472
+ data: formData,
1473
+ key: "amount",
1474
+ value: formData?.amount?.value
1475
+ }));
1476
+ };
1477
+ const allFieldsFilled = (data) => {
1478
+ return data?.firstName && data?.lastName && data?.location && data?.amount?.currency && !Number.isNaN(Number(data?.amount?.value));
1479
+ };
1480
+ const handleFinancierSave = () => {
1481
+ if (formData && allFieldsFilled(formData)) {
1482
+ handleFinancierUpdate({
1483
+ formData,
1484
+ indexNumber
1485
+ });
1486
+ handleModalClose();
1487
+ } else {
1488
+ setFormErrors([
1489
+ "firstName",
1490
+ "lastName",
1491
+ "location",
1492
+ "amount"
1493
+ ].reduce((acc, key) => {
1494
+ const value = key === "amount" ? formData?.amount?.value : formData?.[key];
1495
+ return {
1496
+ ...acc,
1497
+ ...getInputErrors({
1498
+ formErrors: void 0,
1499
+ data: formData,
1500
+ key,
1501
+ value
1502
+ })
1503
+ };
1504
+ }, {}));
1505
+ setErrorMessage(sofT(($) => $["pleaseFillInAllFields"]));
1506
+ }
1507
+ };
1508
+ const handleFinancierDelete = async () => {
1509
+ handleFinancierUpdate({ indexNumber });
1510
+ handleModalClose();
1511
+ };
1512
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(Modal, {
1513
+ onClose: handleModalClose,
1514
+ ariaLabel: sofT(($) => $["investorDetails"]),
1515
+ inset: true,
1516
+ children: /* @__PURE__ */ jsxs("div", {
1517
+ className: SourceOfFunds_module_default.sourceOfFundsModal,
1518
+ children: [
1519
+ /* @__PURE__ */ jsx(Typography, {
1520
+ variant: "title-l",
1521
+ el: "h3",
1522
+ className: SourceOfFunds_module_default.sourceOfFundsGettingStartedHelpHeader,
1523
+ children: sofT(($) => $["investorDetails"])
1524
+ }),
1525
+ /* @__PURE__ */ jsxs("div", {
1526
+ className: SourceOfFunds_module_default.sourceOfFundsSofFinancierForm,
1527
+ children: [
1528
+ errorMessage && /* @__PURE__ */ jsx(Alert, {
1529
+ title: sofT(($) => $["errorSubmittingData"]),
1530
+ variant: "error",
1531
+ className: SourceOfFunds_module_default.sourceOfFundsSofFinancierFormError,
1532
+ children: errorMessage
1533
+ }),
1534
+ /* @__PURE__ */ jsxs("div", {
1535
+ className: SourceOfFunds_module_default.sourceOfFundsSofFinancierFormNameGroup,
1536
+ children: [/* @__PURE__ */ jsx(Field, {
1537
+ name: "firstName",
1538
+ label: commonT(($) => $["firstName"]),
1539
+ errorMessage: formErrors.firstName,
1540
+ isValid: !formErrors.firstName,
1541
+ children: (childProps) => /* @__PURE__ */ jsx(InputText, {
1542
+ ...childProps,
1543
+ name: "firstName",
1544
+ value: formData?.firstName,
1545
+ onInput: (e) => handleInputUpdate("firstName", e),
1546
+ onBlur: (e) => handleInputUpdate("firstName", e),
1547
+ "aria-required": true,
1548
+ "aria-invalid": Boolean(formErrors.firstName),
1549
+ isValid: !formErrors.firstName
1550
+ })
1551
+ }), /* @__PURE__ */ jsx(Field, {
1552
+ name: "lastName",
1553
+ label: commonT(($) => $["lastName"]),
1554
+ errorMessage: formErrors.lastName,
1555
+ isValid: !formErrors.lastName,
1556
+ children: (childProps) => /* @__PURE__ */ jsx(InputText, {
1557
+ ...childProps,
1558
+ name: "lastName",
1559
+ value: formData?.lastName,
1560
+ onInput: (e) => handleInputUpdate("lastName", e),
1561
+ onBlur: (e) => handleInputUpdate("lastName", e),
1562
+ "aria-required": true,
1563
+ "aria-invalid": Boolean(formErrors.lastName),
1564
+ isValid: !formErrors.lastName
1565
+ })
1566
+ })]
1567
+ }),
1568
+ /* @__PURE__ */ jsx(Field, {
1569
+ name: "location",
1570
+ label: sofT(($) => $["investorLocation"]),
1571
+ errorMessage: formErrors.location,
1572
+ isValid: !formErrors.location,
1573
+ helperPosition: "below",
1574
+ showErrorIconBottom: true,
1575
+ helper: sofT(($) => $["theCityAndCountryRegion"]),
1576
+ children: (childProps) => /* @__PURE__ */ jsx(InputText, {
1577
+ ...childProps,
1578
+ name: "location",
1579
+ value: formData?.location,
1580
+ onInput: (e) => handleInputUpdate("location", e),
1581
+ onBlur: (e) => handleInputUpdate("location", e),
1582
+ "aria-required": true,
1583
+ "aria-invalid": Boolean(formErrors.location),
1584
+ isValid: !formErrors.location
1585
+ })
1586
+ }),
1587
+ /* @__PURE__ */ jsx(Field, {
1588
+ el: "fieldset",
1589
+ name: "amount",
1590
+ label: sofT(($) => $["investmentAmount"]),
1591
+ errorMessage: formErrors.amount,
1592
+ isValid: !formErrors.amount,
1593
+ children: (childProps) => /* @__PURE__ */ jsxs(InputGroup, {
1594
+ ...childProps,
1595
+ id: "currencyGroup",
1596
+ isFocused,
1597
+ children: [/* @__PURE__ */ jsx(Select, {
1598
+ minimal: true,
1599
+ name: "currency",
1600
+ "aria-label": commonT(($) => $["currency"]),
1601
+ isMulti: false,
1602
+ items: allowedCurrencies,
1603
+ selected: formData?.amount?.currency,
1604
+ placeholder: commonT(($) => $["select"]),
1605
+ onChange: (e) => handleInputUpdate("currency", e)
1606
+ }), /* @__PURE__ */ jsx(InputText, {
1607
+ ...childProps,
1608
+ name: "amount",
1609
+ value: formData?.amount?.value,
1610
+ onInput: (e) => handleInputUpdate("amount", e),
1611
+ onBlur: handleOnAmountBlur,
1612
+ "aria-required": true,
1613
+ onFocusHandler: () => setIsFocused(true)
1614
+ })]
1615
+ })
1616
+ })
1617
+ ]
1618
+ }),
1619
+ /* @__PURE__ */ jsxs("div", {
1620
+ className: SourceOfFunds_module_default.sourceOfFundsFinancierFooter,
1621
+ children: [/* @__PURE__ */ jsx(Button, {
1622
+ onClick: handleFinancierSave,
1623
+ children: commonT(($) => $["save"])
1624
+ }), Number.isFinite(indexNumber) && /* @__PURE__ */ jsx(Button, {
1625
+ variant: "tertiary",
1626
+ onClick: () => setConfirmOpen(true),
1627
+ children: sofT(($) => $["deleteInvestorDetails"])
1628
+ })]
1629
+ })
1630
+ ]
1631
+ })
1632
+ }), confirmOpen && /* @__PURE__ */ jsx(Confirm, {
1633
+ title: sofT(($) => $["areYouSureYouWantToDeleteThisInvestorDetails"]),
1634
+ confirmText: commonT(($) => $["delete"]),
1635
+ onConfirm: handleFinancierDelete,
1636
+ onCancel: () => setConfirmOpen(false),
1637
+ critical: true
1638
+ })] });
1639
+ };
1640
+ //#endregion
1641
+ //#region src/components/EFP/tasks/SourceOfFundsDropin/SOFAdditionalData/AdditionalDataForThirdParty.tsx
1642
+ function AdditionalDataForThirdParty(props) {
1643
+ const [showFinancierModal, setShowFinancierModal] = useState$1(false);
1644
+ const [activeFinancier, setActiveFinancier] = useState$1();
1645
+ const [activeIndex, setActiveIndex] = useState$1();
1646
+ const { data, fieldProblems, errors, handleChangeFor, formUtils, valid } = props;
1647
+ const { t: commonT } = useTranslation("common");
1648
+ const { t: sofT } = useTranslation("sof");
1649
+ const handleToggleFinancierModal = () => {
1650
+ setActiveFinancier(void 0);
1651
+ setActiveIndex(void 0);
1652
+ setShowFinancierModal((prev) => !prev);
1653
+ };
1654
+ const handleShowUpdateFinancierModal = (index) => {
1655
+ if (!data.financiers) return;
1656
+ const financier = data.financiers[index];
1657
+ setActiveFinancier(financier);
1658
+ setActiveIndex(index);
1659
+ setShowFinancierModal(true);
1660
+ };
1661
+ const handleFinancierUpdate = ({ formData, indexNumber }) => {
1662
+ const existingFinanciers = data.financiers || [];
1663
+ let newFinanciers = [];
1664
+ if (!formData) {
1665
+ if (indexNumber !== void 0) newFinanciers = existingFinanciers.filter((_, index) => index !== indexNumber);
1666
+ } else {
1667
+ newFinanciers = [...existingFinanciers, formData];
1668
+ if (Number.isFinite(indexNumber)) newFinanciers = existingFinanciers.map((existingFinancier, i) => i === indexNumber ? formData : existingFinancier);
1669
+ }
1670
+ const financierEvent = { target: {
1671
+ name: "financiers",
1672
+ value: newFinanciers
1673
+ } };
1674
+ handleChangeFor("financiers")(financierEvent);
1675
+ };
1676
+ const errorMessage = formUtils.getErrorMessage("financiers", errors, fieldProblems);
1677
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [
1678
+ errors.financiers && !valid.financiers && /* @__PURE__ */ jsx(Alert, {
1679
+ title: typeof errorMessage == "boolean" ? void 0 : translateTranslatable(commonT, errorMessage),
1680
+ variant: "error",
1681
+ className: SourceOfFunds_module_default.sourceOfFundsSofFinancierFormError,
1682
+ children: sofT(($) => $["addAtLeastOneInvestor"])
1683
+ }),
1684
+ data.financiers?.map((financier, index) => /* @__PURE__ */ jsxs("button", {
1685
+ type: "button",
1686
+ onClick: () => handleShowUpdateFinancierModal(index),
1687
+ className: SourceOfFunds_module_default.sourceOfFundsThirdPartyFundingFinancierGroup,
1688
+ children: [/* @__PURE__ */ jsxs("div", {
1689
+ className: SourceOfFunds_module_default.sourceOfFundsThirdPartyFundingNameAvatarGroup,
1690
+ children: [/* @__PURE__ */ jsx(Avatar, {
1691
+ iconName: "user",
1692
+ circle: true
1693
+ }), /* @__PURE__ */ jsxs("div", {
1694
+ className: SourceOfFunds_module_default.sourceOfFundsThirdPartyFundingNameAddressGroup,
1695
+ children: [/* @__PURE__ */ jsxs(Typography, {
1696
+ el: "div",
1697
+ variant: "body-strongest",
1698
+ children: [
1699
+ financier.firstName,
1700
+ " ",
1701
+ financier.lastName
1702
+ ]
1703
+ }), /* @__PURE__ */ jsx(Typography, {
1704
+ el: "div",
1705
+ variant: "caption",
1706
+ children: financier.location
1707
+ })]
1708
+ })]
1709
+ }), /* @__PURE__ */ jsx("div", { children: financier.amount?.currency && financier.amount?.value ? formatAmountWithCurrency(financier.amount.value, financier.amount?.currency) : "" })]
1710
+ }, index)),
1711
+ /* @__PURE__ */ jsx("button", {
1712
+ type: "button",
1713
+ className: SourceOfFunds_module_default.sourceOfFundsThirdPartyFundingFinancierGroup,
1714
+ onClick: handleToggleFinancierModal,
1715
+ children: /* @__PURE__ */ jsxs("div", {
1716
+ className: SourceOfFunds_module_default.sourceOfFundsThirdPartyFundingNameAvatarGroup,
1717
+ children: [/* @__PURE__ */ jsx(Avatar, {
1718
+ iconName: "plus",
1719
+ variant: "tertiary",
1720
+ circle: true
1721
+ }), /* @__PURE__ */ jsx(Typography, {
1722
+ el: "div",
1723
+ variant: "body-strongest",
1724
+ children: sofT(($) => $["addInvestor"])
1725
+ })]
1726
+ })
1727
+ }),
1728
+ showFinancierModal && /* @__PURE__ */ jsx(SOFFinancierModal, {
1729
+ financier: activeFinancier,
1730
+ indexNumber: activeIndex,
1731
+ handleModalClose: handleToggleFinancierModal,
1732
+ handleFinancierUpdate
1733
+ })
1734
+ ] });
1735
+ }
1736
+ //#endregion
1737
+ //#region src/components/EFP/tasks/SourceOfFundsDropin/SourceOfFundsAdditionalData.tsx
1738
+ function SourceOfFundsAdditionalData(props) {
1739
+ const { t } = useTranslation("common");
1740
+ const { form } = useFormContext();
1741
+ const { handleChangeFor: multiFormHandleChangeFor, data: { additionalData: data, sourceOfFundsType }, errors: { additionalData: errors }, valid: { additionalData: valid }, fieldProblems: { additionalData: fieldProblems } } = form;
1742
+ const handleChangeFor = useMemo$1(() => (key, mode) => multiFormHandleChangeFor(key, "additionalData", mode), [multiFormHandleChangeFor]);
1743
+ const handleAmountChange = (key) => (e) => {
1744
+ const rawValue = e.target.value;
1745
+ const updatedAmount = {
1746
+ ...data?.amount,
1747
+ ...key === "currency" ? { currency: rawValue } : { value: rawValue === "" ? void 0 : Number(rawValue) }
1748
+ };
1749
+ handleChangeFor("amount")({ target: {
1750
+ name: "amount",
1751
+ value: updatedAmount
1752
+ } });
1753
+ };
1754
+ const formUtils = createFormUtils(props, t);
1755
+ const additionalDataProps = {
1756
+ formUtils,
1757
+ handleChangeFor,
1758
+ data,
1759
+ errors,
1760
+ valid,
1761
+ fieldProblems,
1762
+ handleAmountChange
1763
+ };
1764
+ const renderSubForms = () => {
1765
+ switch (sourceOfFundsType?.type) {
1766
+ case "gamblingWinnings": return /* @__PURE__ */ jsx(AdditionalDataForGambling, { ...additionalDataProps });
1767
+ case "cryptocurrencyIncome": return /* @__PURE__ */ jsx(AdditionalDataForCryptocurrency, { ...additionalDataProps });
1768
+ case "business": return /* @__PURE__ */ jsx(AdditionalDataForBusiness, { ...additionalDataProps });
1769
+ case "assetSale": return /* @__PURE__ */ jsx(AdditionalDataForAssetSale, { ...additionalDataProps });
1770
+ case "thirdPartyFunding": return /* @__PURE__ */ jsx(AdditionalDataForThirdParty, { ...additionalDataProps });
1771
+ case "inheritance": return /* @__PURE__ */ jsx(AdditionalDataForInheritance, { ...additionalDataProps });
1772
+ case "donations": return /* @__PURE__ */ jsx(AdditionalDataForDonation, { ...additionalDataProps });
1773
+ default: return null;
1774
+ }
1775
+ };
1776
+ return /* @__PURE__ */ jsxs("form", {
1777
+ className: SourceOfFunds_module_default.sourceOfFundsAdditionalDataForm,
1778
+ children: [/* @__PURE__ */ jsx(ErrorPanel, {
1779
+ verificationErrors: props?.formVerificationErrors,
1780
+ validationErrors: props?.fieldValidationErrors,
1781
+ formUtils,
1782
+ id: "ariaErrorField"
1783
+ }), renderSubForms()]
1784
+ });
1785
+ }
1786
+ //#endregion
1787
+ //#region src/components/EFP/tasks/SourceOfFundsDropin/SourceOfFundsType.tsx
1788
+ function SourceOfFundsType(props) {
1789
+ const { t } = useTranslation(["common", "sof"]);
1790
+ const { data: formData, categories, errors: formErrors, fieldValidationErrors: formFieldProblems, sameAsOption, useSameAs, onUseSameAsChange } = props;
1791
+ const { form } = useFormContext();
1792
+ const { handleChangeFor } = form;
1793
+ const handleFieldChange = (fieldName, mode) => handleChangeFor(fieldName, "sourceOfFundsType", mode);
1794
+ const handleUseSameAsChange = (isChecked) => {
1795
+ onUseSameAsChange?.(isChecked);
1796
+ };
1797
+ const formUtils = createFormUtils(props, t);
1798
+ const categoryItems = [{
1799
+ value: "adyen",
1800
+ label: t(($) => $["transactionsOnThisPlatform"], { ns: "sof" }),
1801
+ icon: getIconById("adyen")
1802
+ }, ...categories?.map((item) => ({
1803
+ value: item.id,
1804
+ label: t(($) => $[sofCategoryItemMapper[item.name]], { ns: "sof" }),
1805
+ icon: getIconById(item.id)
1806
+ })) ?? []];
1807
+ const errorMessage = formUtils.getErrorMessage("type", formErrors, formFieldProblems);
1808
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [sameAsOption && /* @__PURE__ */ jsx("div", {
1809
+ className: SourceOfFunds_module_default.sourceOfFundsSameAsCheckbox,
1810
+ children: /* @__PURE__ */ jsx(Field, {
1811
+ name: "useSameAs",
1812
+ children: (childProps) => /* @__PURE__ */ jsx(Checkbox, {
1813
+ ...childProps,
1814
+ "aria-required": false,
1815
+ "aria-invalid": false,
1816
+ name: "useSameAs",
1817
+ label: t(($) => $["alwaysUseThisFundingSource"], { ns: "sof" }),
1818
+ checked: Boolean(useSameAs),
1819
+ onChange: handleUseSameAsChange
1820
+ })
1821
+ })
1822
+ }), /* @__PURE__ */ jsx(Field, {
1823
+ el: "fieldset",
1824
+ name: "type",
1825
+ children: () => /* @__PURE__ */ jsx(TileGroup, {
1826
+ name: "type",
1827
+ tiles: categoryItems,
1828
+ errorMessage: typeof errorMessage !== "boolean" ? translateTranslatable(t, errorMessage) : void 0,
1829
+ selected: formData?.type ? formData.type : [],
1830
+ onChange: handleFieldChange("type", "input")
1831
+ })
1832
+ })] });
1833
+ }
1834
+ function getIconById(id) {
1835
+ switch (id) {
1836
+ case "adyen": return "store";
1837
+ case "business": return "revenue-accelerate";
1838
+ case "assetSale": return "house";
1839
+ case "dividendIncome": return "graph-up";
1840
+ case "thirdPartyFunding": return "graph";
1841
+ case "employment": return "headquarter";
1842
+ case "donations": return "gift";
1843
+ case "inheritance": return "certificate";
1844
+ case "financialAid": return "capital";
1845
+ case "rentalIncome": return "house";
1846
+ case "royaltyIncome": return "cash-stack";
1847
+ case "pensionIncome": return "bank";
1848
+ case "insuranceSettlement": return "funds-in";
1849
+ case "cryptocurrencyIncome": return "coins";
1850
+ case "loans": return "capital";
1851
+ case "gamblingWinnings": return "cash-stack";
1852
+ default: return "contract";
1853
+ }
1854
+ }
1855
+ //#endregion
1856
+ //#region src/components/EFP/tasks/SourceOfFundsDropin/SourceOfFunds.tsx
1857
+ function SourceOfFunds(props) {
1858
+ const { activeForm, activeBusinessLine, sourceOfFundsType, sameAsOption, useSameAs, onUseSameAsChange } = props;
1859
+ const { form } = useFormContext();
1860
+ const { data: formData, errors, valid, fieldProblems: fieldValidationErrors } = form;
1861
+ const { data: sourceOfFundsTypesData, isLoading } = useSourceOfFundsTypes();
1862
+ const { t: sofT } = useTranslation("sof");
1863
+ const pageHeadings = useMemo$1(() => getPageHeadings(sourceOfFundsType ?? "adyen"), [sourceOfFundsType]);
1864
+ return isLoading || !activeBusinessLine ? /* @__PURE__ */ jsx("div", {
1865
+ className: SourceOfFunds_module_default.sourceOfFundsWrapperLoading,
1866
+ children: /* @__PURE__ */ jsx(Loader, {})
1867
+ }) : /* @__PURE__ */ jsxs("div", { children: [
1868
+ /* @__PURE__ */ jsxs("div", {
1869
+ className: SourceOfFunds_module_default.sourceOfFundsWrapperHeading,
1870
+ children: [/* @__PURE__ */ jsx(Typography, {
1871
+ el: "h1",
1872
+ variant: "title-l",
1873
+ children: activeForm?.formId === "additionalData" ? sofT(($) => $[pageHeadings.heading]) : sofT(($) => $["selectASourceOfFunding"], { type: getServiceTranslationSelectTitle(sofT, activeBusinessLine?.service || "").toLowerCase() })
1874
+ }), /* @__PURE__ */ jsxs(Typography, {
1875
+ className: SourceOfFunds_module_default.sourceOfFundsWrapperDescription,
1876
+ children: [activeForm?.formId === "additionalData" && pageHeadings.description && sofT(($) => $[pageHeadings.description]), sourceOfFundsTypesData?.length === 0 && sofT(($) => $["noCategoriesAvailable"])]
1877
+ })]
1878
+ }),
1879
+ sofErrorMessage.value && /* @__PURE__ */ jsxs(Typography, {
1880
+ variant: "caption",
1881
+ color: "critical",
1882
+ "aria-live": "polite",
1883
+ className: "u-justify-content-center u-display-flex",
1884
+ children: [/* @__PURE__ */ jsx(Icon, {
1885
+ name: "field-error",
1886
+ className: "u-margin-right-2"
1887
+ }), /* @__PURE__ */ jsx("span", { children: sofErrorMessage.value })]
1888
+ }),
1889
+ activeForm?.formId === "sourceOfFundsType" && /* @__PURE__ */ jsx(SourceOfFundsType, {
1890
+ categories: sourceOfFundsTypesData,
1891
+ data: formData?.sourceOfFundsType,
1892
+ errors: errors?.sourceOfFundsType,
1893
+ valid: valid?.sourceOfFundsType,
1894
+ fieldValidationErrors: fieldValidationErrors?.sourceOfFundsType,
1895
+ sameAsOption,
1896
+ useSameAs,
1897
+ onUseSameAsChange
1898
+ }),
1899
+ activeForm?.formId === "additionalData" && /* @__PURE__ */ jsx(SourceOfFundsAdditionalData, { fieldValidationErrors: fieldValidationErrors?.additionalData }),
1900
+ activeForm?.formId === "companySourceOfFunds" && /* @__PURE__ */ jsx("div", { children: sofT(($) => $["uploadADocument"]) })
1901
+ ] });
1902
+ }
1903
+ //#endregion
1904
+ //#region src/components/EFP/tasks/SourceOfFundsDropin/SourceOfFundsGettingStarted/SourceOfFundsGettingStartedCard.tsx
1905
+ function SourceOfFundsGettingStartedCard(props) {
1906
+ const { id, title, onClick, isEdit, meta } = props;
1907
+ const { t: commonT } = useTranslation("common");
1908
+ return /* @__PURE__ */ jsxs(Card, {
1909
+ variant: "secondary",
1910
+ children: [/* @__PURE__ */ jsxs("div", {
1911
+ className: SourceOfFunds_module_default.sourceOfFundsGettingStartedCardsCardHeader,
1912
+ children: [/* @__PURE__ */ jsx(Typography, {
1913
+ el: "h3",
1914
+ variant: "title",
1915
+ children: title
1916
+ }), isEdit ? /* @__PURE__ */ jsx(IconButton, {
1917
+ ariaLabel: "edit",
1918
+ icon: "edit",
1919
+ onClick,
1920
+ variant: "tertiary"
1921
+ }) : /* @__PURE__ */ jsx(Button, {
1922
+ variant: "primary",
1923
+ testId: "source-of-funds-getting-card-secondary-button",
1924
+ onClick,
1925
+ children: commonT(($) => $["start"])
1926
+ })]
1927
+ }), isEdit && meta?.length && /* @__PURE__ */ jsx("div", {
1928
+ className: SourceOfFunds_module_default.sourceOfFundsGettingStartedCardsCardBody,
1929
+ children: /* @__PURE__ */ jsx(StructuredList, {
1930
+ className: SourceOfFunds_module_default.sourceOfFundsGettingStartedCardsCardDescription,
1931
+ items: meta
1932
+ })
1933
+ })]
1934
+ }, id);
1935
+ }
1936
+ //#endregion
1937
+ //#region src/components/EFP/tasks/SourceOfFundsDropin/SourceOfFundsGettingStarted/SourceOfFundsGettingStarted.tsx
1938
+ var digitalWallet = lazy(() => import("./digital-wallet-ByQCwU-K.js"));
1939
+ var SourceOfFundsGettingStarted = ({ handleGettingStartedClick, handleCancelClick, handleSourceOfFundsClick, businessLines, handleNavigateToUploadPage, problems, legalEntity, asAwe, isSoFDocumentMissing }) => {
1940
+ const { t: sofT } = useTranslation("sof");
1941
+ const { t: commonT } = useTranslation("common");
1942
+ const hasSourceOfFunds = businessLines?.some((businessLine) => !isEmpty(businessLine.sourceOfFunds));
1943
+ const { data: taskStatusResponse } = useTaskStatus(TaskTypes.SOURCE_OF_FUNDS, { refetchInterval: TASK_STATUS_POLLING_INTERVAL_MS });
1944
+ const sofDocuments = useMemo$1(() => legalEntity?.documentDetails?.filter((doc) => doc.type === "proofOfFundingOrWealthSource") ?? [], [legalEntity]);
1945
+ const mapBusinessLines = useCallback$1((lines) => {
1946
+ const completedBusinessLines = businessLines.every((line) => line?.sourceOfFunds?.type);
1947
+ const cards = lines.map((line) => {
1948
+ const SoF = mapSourceOfFundToSourceOfFundsSchema(line);
1949
+ return {
1950
+ title: getServiceTranslation(sofT, line.service || ""),
1951
+ type: line?.sourceOfFunds?.type,
1952
+ isEdit: !!line?.sourceOfFunds?.type || !!line?.sourceOfFunds?.adyenProcessedFunds,
1953
+ onClick: () => handleSourceOfFundsClick(SoF, line),
1954
+ meta: [{
1955
+ term: sofT(($) => $["sourceOfFunds"]),
1956
+ details: getSofCardDetails(sofT, line?.sourceOfFunds)
1957
+ }, ...getGettingStartedCardDetails(getAdditionalDataSchemaKeys(line?.sourceOfFunds?.type || "adyen", line?.sourceOfFunds?.originatorType), sofT, line?.sourceOfFunds)]
1958
+ };
1959
+ }).sort((a) => a?.type ? 1 : -1);
1960
+ const uploadCard = {
1961
+ title: getServiceTranslation(sofT),
1962
+ type: "",
1963
+ isEdit: !!sofDocuments?.length,
1964
+ onClick: handleNavigateToUploadPage,
1965
+ meta: sofDocuments?.length ? sofDocuments.map((doc) => ({
1966
+ term: sofT(($) => $["fileName"]),
1967
+ details: [doc?.fileName, /* @__PURE__ */ jsx(Typography, {
1968
+ color: "secondary",
1969
+ children: parseSOFDocumentDescription(sofT, doc?.description) || ""
1970
+ }, "docDescription")]
1971
+ })) : []
1972
+ };
1973
+ if (completedBusinessLines && (isSoFDocumentMissing || sofDocuments?.length)) if (uploadCard.meta?.length) cards.push(uploadCard);
1974
+ else cards.unshift(uploadCard);
1975
+ return cards.map((item, index) => {
1976
+ return /* @__PURE__ */ jsx(SourceOfFundsGettingStartedCard, {
1977
+ id: index,
1978
+ isEdit: !!item.isEdit,
1979
+ title: item.title,
1980
+ onClick: item.onClick,
1981
+ meta: item.meta
1982
+ }, index);
1983
+ });
1984
+ }, [handleSourceOfFundsClick, sofDocuments]);
1985
+ const errorObjects = useMemo$1(() => getRelevantErrors(problems, SOF_INVALID_INPUT_ERROR_CODES), [problems]);
1986
+ return /* @__PURE__ */ jsxs("div", {
1987
+ className: asAwe ? SourceOfFunds_module_default.sourceOfFundsGettingStartedAwe : SourceOfFunds_module_default.sourceOfFundsGettingStarted,
1988
+ "data-testid": "source-of-funds-getting-started",
1989
+ children: [!hasSourceOfFunds && /* @__PURE__ */ jsx(LandingLayout, {
1990
+ media: /* @__PURE__ */ jsx(Image, { lazyLoadedImage: digitalWallet }),
1991
+ title: sofT(($) => $["fundingSourcesForFinancialProducts"]),
1992
+ description: sofT(($) => $["inTheNextStepWellCollectInformation"]),
1993
+ actions: /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(Button, {
1994
+ fullWidth: true,
1995
+ testId: "source-of-funds-getting-primary-button",
1996
+ onClick: handleGettingStartedClick,
1997
+ children: commonT(($) => $["getStarted"])
1998
+ }), handleCancelClick && /* @__PURE__ */ jsx(Button, {
1999
+ variant: "tertiary",
2000
+ fullWidth: true,
2001
+ testId: "source-of-funds-getting-cancel-button",
2002
+ onClick: handleCancelClick,
2003
+ children: commonT(($) => $["backToTaskList"])
2004
+ })] })
2005
+ }), hasSourceOfFunds && /* @__PURE__ */ jsxs(Fragment$1, { children: [
2006
+ /* @__PURE__ */ jsx(Header, {
2007
+ title: sofT(($) => $["fundingSourcesForFinancialProducts"]),
2008
+ description: sofT(($) => $["addAllSourcesOfFundsBeingUsed"]),
2009
+ status: asAwe ? void 0 : taskStatusResponse?.status,
2010
+ align: "center"
2011
+ }),
2012
+ errorObjects && errorObjects.map((errorObj, index) => {
2013
+ const uniqueActions = getUniqueRemediationActions(errorObj);
2014
+ const errorItems = errorObj.subErrors?.map((subError) => subError.message) || [];
2015
+ return /* @__PURE__ */ jsxs(Alert, {
2016
+ title: errorObj.message,
2017
+ className: SourceOfFunds_module_default.sourceOfFundsGettingStartedError,
2018
+ variant: "error",
2019
+ children: [errorObj?.subErrors?.length && /* @__PURE__ */ jsx("ul", { children: errorItems.map((item, i) => /* @__PURE__ */ jsx("li", { children: item }, i)) }), uniqueActions.length > 0 && /* @__PURE__ */ jsx("div", {
2020
+ className: SourceOfFunds_module_default.sourceOfFundsGettingStartedErrorActions,
2021
+ children: uniqueActions.filter((action) => action.code !== "1_519").map((action, i) => /* @__PURE__ */ jsx(Button, {
2022
+ variant: "tertiary",
2023
+ testId: `remediate-action-${i}`,
2024
+ onClick: handleNavigateToUploadPage,
2025
+ children: action.message
2026
+ }, `action-${i}`))
2027
+ })]
2028
+ }, `error-${index}`);
2029
+ }),
2030
+ /* @__PURE__ */ jsx("div", {
2031
+ className: SourceOfFunds_module_default.sourceOfFundsGettingStartedCards,
2032
+ children: /* @__PURE__ */ jsx(StackLayout, { children: mapBusinessLines(businessLines) })
2033
+ }),
2034
+ handleCancelClick && /* @__PURE__ */ jsx(Button, {
2035
+ variant: "secondary",
2036
+ testId: "source-of-funds-getting-return-button",
2037
+ onClick: handleCancelClick,
2038
+ children: commonT(($) => $["backToTaskList"])
2039
+ })
2040
+ ] })]
2041
+ });
2042
+ };
2043
+ //#endregion
2044
+ //#region src/components/EFP/tasks/SourceOfFundsDropin/SourceOfFundsUploader/SOFUploadModal.tsx
2045
+ var SOFUploadModal = (props) => {
2046
+ const { showToast } = useToastContext();
2047
+ const logger = createLogger();
2048
+ const { t: sofT } = useTranslation("sof");
2049
+ const { t: commonT } = useTranslation("common");
2050
+ const { businessLines, handleModalClose, documentUtils } = props;
2051
+ const [selectedService, setSelectedService] = useState$1(businessLines?.length === 1 ? businessLines?.[0]?.service : void 0);
2052
+ const [documentType, setDocumentType] = useState$1();
2053
+ const onRadioChange = (selectedId) => {
2054
+ setSelectedService(selectedId);
2055
+ setDocumentType(void 0);
2056
+ };
2057
+ const onDocumentTypeChange = (e) => {
2058
+ setDocumentType(e.target.value);
2059
+ };
2060
+ const serviceRadioItems = useMemo$1(() => {
2061
+ return Array.from(new Map(businessLines.map((businessLine) => [businessLine.service, businessLine])).values()).map((businessLine) => ({
2062
+ id: businessLine.service,
2063
+ name: sofT(($) => $[getServiceTranslationKey(businessLine?.service || "")])
2064
+ }));
2065
+ }, [businessLines, sofT]);
2066
+ const canUpload = useMemo$1(() => selectedService && documentType, [selectedService, documentType]);
2067
+ const selectedBusinessLineId = businessLines?.find((businessLine) => businessLine.service === selectedService)?.id || "";
2068
+ const documentLists = useMemo$1(() => {
2069
+ const selectedType = businessLines?.find((businessLine) => businessLine.service === selectedService)?.sourceOfFunds?.type;
2070
+ if (selectedType) return getDocumentLists(selectedType).map((list) => ({
2071
+ id: list,
2072
+ name: sofT(($) => $[list])
2073
+ }));
2074
+ return [];
2075
+ }, [
2076
+ businessLines,
2077
+ sofT,
2078
+ selectedService
2079
+ ]);
2080
+ const documentRequirements = useMemo$1(() => {
2081
+ return documentType ? getDocumentRequirements[documentType] : [];
2082
+ }, [documentType]);
2083
+ const onFileUpload = async (files) => {
2084
+ if (!canUpload) {
2085
+ showToast({
2086
+ label: sofT(($) => $["unableToUploadDocument"]),
2087
+ variant: "error"
2088
+ });
2089
+ return;
2090
+ }
2091
+ const formattedDocument = await createDocumentRequest({
2092
+ entityId: selectedBusinessLineId,
2093
+ entityType: "businessLine",
2094
+ documentType: "proofOfFundingOrWealthSource",
2095
+ page1: files[0],
2096
+ description: `$SERVICE_NAME:${selectedService}--TYPE_NAME:${documentType}`
2097
+ });
2098
+ if (formattedDocument) try {
2099
+ await documentUtils.uploadDocuments([formattedDocument], selectedBusinessLineId);
2100
+ showToast({
2101
+ label: sofT(($) => $["documentUploadedSuccessfully"]),
2102
+ variant: "success",
2103
+ duration: 1e4
2104
+ });
2105
+ handleModalClose();
2106
+ } catch (e) {
2107
+ logger.log(e);
2108
+ showToast({
2109
+ label: sofT(($) => $["unableToUploadDocument"]),
2110
+ variant: "error"
2111
+ });
2112
+ }
2113
+ };
2114
+ return /* @__PURE__ */ jsx(Fragment$1, { children: /* @__PURE__ */ jsx(Modal, {
2115
+ onClose: handleModalClose,
2116
+ ariaLabel: sofT(($) => $["uploadASupportingDocument"]),
2117
+ inset: true,
2118
+ children: /* @__PURE__ */ jsxs("div", {
2119
+ className: SourceOfFunds_module_default.sourceOfFundsModal,
2120
+ children: [/* @__PURE__ */ jsx(Typography, {
2121
+ variant: "title-l",
2122
+ el: "h2",
2123
+ children: sofT(($) => $["uploadASupportingDocument"])
2124
+ }), /* @__PURE__ */ jsxs("div", {
2125
+ className: SourceOfFunds_module_default.sourceOfFundsUploadModalContent,
2126
+ children: [
2127
+ businessLines?.length > 1 ? /* @__PURE__ */ jsx(Field, {
2128
+ el: "fieldset",
2129
+ name: "service",
2130
+ className: SourceOfFunds_module_default.sourceOfFundsUploadModalContentField,
2131
+ label: sofT(($) => $["whatFinancialProductIsThisFor"]),
2132
+ children: (childProps) => /* @__PURE__ */ jsx(RadioGroup, {
2133
+ ...childProps,
2134
+ name: "service",
2135
+ className: SourceOfFunds_module_default.sourceOfFundsUploadModalContentFieldRadioGroup,
2136
+ items: serviceRadioItems,
2137
+ value: selectedService,
2138
+ disabled: false,
2139
+ onChange: onRadioChange,
2140
+ "aria-required": true
2141
+ })
2142
+ }) : null,
2143
+ selectedService && /* @__PURE__ */ jsx(Field, {
2144
+ name: "documentType",
2145
+ label: commonT(($) => $["documentType"]),
2146
+ "data-testid": "documentType",
2147
+ className: SourceOfFunds_module_default.sourceOfFundsUploadModalContentField,
2148
+ children: (childProps) => /* @__PURE__ */ jsx(Select, {
2149
+ ...childProps,
2150
+ name: "documentType",
2151
+ placeholder: commonT(($) => $["selectOne"]),
2152
+ selected: documentType,
2153
+ items: documentLists,
2154
+ onChange: onDocumentTypeChange
2155
+ })
2156
+ }),
2157
+ documentRequirements?.length ? /* @__PURE__ */ jsxs("div", {
2158
+ className: SourceOfFunds_module_default.sourceOfFundsUploadModalContentRequirementsContainer,
2159
+ children: [/* @__PURE__ */ jsx(Typography, {
2160
+ variant: "body-strongest",
2161
+ el: "div",
2162
+ children: sofT(($) => $["documentShouldShow"])
2163
+ }), /* @__PURE__ */ jsx("ul", { children: documentRequirements?.map((requirement) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(Typography, {
2164
+ variant: "body-stronger",
2165
+ el: "div",
2166
+ children: sofT(($) => $[requirement])
2167
+ }) }, requirement)) })]
2168
+ }) : null,
2169
+ canUpload && /* @__PURE__ */ jsx(Dropzone, {
2170
+ disabled: !canUpload,
2171
+ onChange: onFileUpload,
2172
+ showMinimal: true,
2173
+ hidePageCount: true,
2174
+ maxSize: 4194304,
2175
+ enableTracking: true,
2176
+ name: "documentField",
2177
+ allowedFileTypes: [
2178
+ "JPG",
2179
+ "JPEG",
2180
+ "PNG",
2181
+ "PDF"
2182
+ ]
2183
+ })
2184
+ ]
2185
+ })]
2186
+ })
2187
+ }) });
2188
+ };
2189
+ //#endregion
2190
+ //#region src/components/EFP/tasks/SourceOfFundsDropin/SourceOfFundsUploader/SourceOfFundsUpload.tsx
2191
+ var SourceOfFundsUpload = ({ businessLines, documentUtils, legalEntity, handleNavigateToSummary }) => {
2192
+ const [showUploadModal, setShowUploadModal] = useState$1(false);
2193
+ const [docToDelete, setDocToDelete] = useState$1(void 0);
2194
+ const { showToast } = useToastContext();
2195
+ const logger = createLogger();
2196
+ const queryClient = useQueryClient();
2197
+ const { t: sofT } = useTranslation("sof");
2198
+ const { t: commonT } = useTranslation("common");
2199
+ const handleModalClose = async () => {
2200
+ setShowUploadModal(false);
2201
+ await queryClient.invalidateQueries({ queryKey: ["legalEntity", legalEntity.id] });
2202
+ };
2203
+ const openUploadModal = () => {
2204
+ setShowUploadModal(true);
2205
+ };
2206
+ const documents = useMemo$1(() => legalEntity.documentDetails?.filter((doc) => doc.type === "proofOfFundingOrWealthSource") ?? [], [legalEntity]);
2207
+ const sourceOfFundsCategories = businessLines?.map((line) => line.sourceOfFunds?.type)?.filter(Boolean);
2208
+ const getTranslatedCategoryName = (categoryKey) => {
2209
+ const translationKey = sofCategoryItemMapper[categoryKey];
2210
+ if (!categoryKey || !translationKey) return "";
2211
+ return sofT(($) => $[translationKey]).toLowerCase();
2212
+ };
2213
+ let translationKey;
2214
+ let translationParams;
2215
+ if (sourceOfFundsCategories?.length > 1) {
2216
+ translationKey = "weNeedProofOfFundingForMultipleCategories";
2217
+ translationParams = {
2218
+ category1_name: getTranslatedCategoryName(sourceOfFundsCategories[0]),
2219
+ category2_name: getTranslatedCategoryName(sourceOfFundsCategories[1])
2220
+ };
2221
+ } else if (sourceOfFundsCategories?.length === 1) {
2222
+ translationKey = "weNeedProofOfFunding";
2223
+ translationParams = { category_name: getTranslatedCategoryName(sourceOfFundsCategories[0]) };
2224
+ } else translationKey = "weNeedProofOfFundingForNoCategory";
2225
+ const handleFileDelete = async (documentId) => {
2226
+ if (documentUtils.deleteDocument) try {
2227
+ await documentUtils.deleteDocument(documentId, legalEntity.id);
2228
+ await queryClient.invalidateQueries({ queryKey: ["legalEntity", legalEntity.id] });
2229
+ showToast({
2230
+ label: sofT(($) => $["documentDeletedSuccessfully"]),
2231
+ variant: "success",
2232
+ duration: 1e4
2233
+ });
2234
+ } catch (e) {
2235
+ logger.log(e);
2236
+ showToast({
2237
+ label: sofT(($) => $["unableToDeleteDocument"]),
2238
+ variant: "error"
2239
+ });
2240
+ }
2241
+ };
2242
+ return /* @__PURE__ */ jsxs("div", {
2243
+ className: SourceOfFunds_module_default.sourceOfFundsUploadList,
2244
+ children: [
2245
+ /* @__PURE__ */ jsxs("div", {
2246
+ className: SourceOfFunds_module_default.sourceOfFundsUploadListHeading,
2247
+ children: [/* @__PURE__ */ jsx(Typography, {
2248
+ el: "h1",
2249
+ variant: "title-l",
2250
+ children: sofT(($) => $["supportingDocuments"])
2251
+ }), /* @__PURE__ */ jsx(Typography, {
2252
+ className: SourceOfFunds_module_default.sourceOfFundsWrapperDescription,
2253
+ children: sofT(($) => $[translationKey], translationParams)
2254
+ })]
2255
+ }),
2256
+ documents?.map((document) => /* @__PURE__ */ jsxs("div", {
2257
+ className: SourceOfFunds_module_default.sourceOfFundsThirdPartyFundingFinancierGroup,
2258
+ children: [/* @__PURE__ */ jsxs("div", {
2259
+ className: SourceOfFunds_module_default.sourceOfFundsThirdPartyFundingNameAvatarGroup,
2260
+ children: [/* @__PURE__ */ jsx(Avatar, {
2261
+ iconName: "document",
2262
+ circle: true
2263
+ }), /* @__PURE__ */ jsxs("div", {
2264
+ className: SourceOfFunds_module_default.sourceOfFundsThirdPartyFundingNameAddressGroup,
2265
+ children: [/* @__PURE__ */ jsx(Typography, {
2266
+ el: "div",
2267
+ variant: "body-strongest",
2268
+ children: document.fileName
2269
+ }), /* @__PURE__ */ jsx(Typography, {
2270
+ el: "div",
2271
+ variant: "caption",
2272
+ children: parseSOFDocumentDescription(sofT, document.description)
2273
+ })]
2274
+ })]
2275
+ }), /* @__PURE__ */ jsx(IconButton, {
2276
+ ariaLabel: commonT(($) => $["deleteDocument"]),
2277
+ variant: "tertiary",
2278
+ icon: "cross",
2279
+ onClick: () => setDocToDelete(document),
2280
+ testId: "source-of-funds-remove-button"
2281
+ })]
2282
+ }, document.id)),
2283
+ /* @__PURE__ */ jsx("button", {
2284
+ type: "button",
2285
+ className: SourceOfFunds_module_default.sourceOfFundsThirdPartyFundingFinancierGroup,
2286
+ onClick: openUploadModal,
2287
+ "data-testId": "source-of-funds-upload-button",
2288
+ children: /* @__PURE__ */ jsxs("div", {
2289
+ className: SourceOfFunds_module_default.sourceOfFundsThirdPartyFundingNameAvatarGroup,
2290
+ children: [/* @__PURE__ */ jsx(Avatar, {
2291
+ label: sofT(($) => $["addDocument"]),
2292
+ iconName: "plus",
2293
+ circle: true
2294
+ }), /* @__PURE__ */ jsx(Typography, {
2295
+ el: "div",
2296
+ variant: "body-strongest",
2297
+ children: sofT(($) => $["addDocument"])
2298
+ })]
2299
+ })
2300
+ }),
2301
+ handleNavigateToSummary && /* @__PURE__ */ jsx("div", {
2302
+ className: SourceOfFunds_module_default.sourceOfFundsGettingStartedActions,
2303
+ children: /* @__PURE__ */ jsx(Button, {
2304
+ variant: "secondary",
2305
+ onClick: handleNavigateToSummary,
2306
+ children: documents?.length > 0 ? commonT(($) => $["finish"]) : commonT(($) => $["cancel"])
2307
+ })
2308
+ }),
2309
+ !!docToDelete && /* @__PURE__ */ jsx(Confirm, {
2310
+ title: sofT(($) => $["areYouSureYouWantToDeleteThisDocument"], { documentName: docToDelete?.fileName || "" }),
2311
+ confirmText: commonT(($) => $["delete"]),
2312
+ onConfirm: () => handleFileDelete(docToDelete?.id),
2313
+ onCancel: () => setDocToDelete(void 0),
2314
+ critical: true
2315
+ }),
2316
+ showUploadModal && /* @__PURE__ */ jsx(SOFUploadModal, {
2317
+ documentUtils,
2318
+ handleModalClose,
2319
+ businessLines
2320
+ })
2321
+ ]
2322
+ });
2323
+ };
2324
+ //#endregion
2325
+ //#region src/utils/urlUtils.ts
2326
+ function canParseUrl(url) {
2327
+ if (URL.canParse) return URL.canParse(url);
2328
+ try {
2329
+ new URL(url);
2330
+ return true;
2331
+ } catch {
2332
+ return false;
2333
+ }
2334
+ }
2335
+ //#endregion
2336
+ //#region src/components/EFP/tasks/SourceOfFundsDropin/validate.ts
2337
+ var sourceOfFundsTypeValidations = {};
2338
+ var HAS_PROTOCOL_REGEX = /^https?:\/\//i;
2339
+ var sourceOfFundsAdditionalDataValidations = {
2340
+ website: {
2341
+ modes: ["blur"],
2342
+ validate: (val) => !!val && canParseUrl(val),
2343
+ errorMessage: (val) => {
2344
+ if (val && !HAS_PROTOCOL_REGEX.test(val)) return "validationUrlMustStartWithHttpOrHttps";
2345
+ return "validationPleaseEnterAValidUrl";
2346
+ }
2347
+ },
2348
+ amount: {
2349
+ modes: ["blur"],
2350
+ validate: (amount) => amount?.value != null && !Number.isNaN(Number(amount.value)),
2351
+ errorMessage: "pleaseEnterAValidAmount"
2352
+ },
2353
+ dateOfSourceEvent: {
2354
+ modes: ["blur"],
2355
+ validate: (dateOfSourceEvent) => validateDateNotInTheFuture(dateOfSourceEvent),
2356
+ errorMessage: "dateCannotBeInTheFuture"
2357
+ },
2358
+ dateOfFundsReceived: {
2359
+ modes: ["blur"],
2360
+ validate: (dateOfFundsReceived) => validateDateNotInTheFuture(dateOfFundsReceived),
2361
+ errorMessage: "dateCannotBeInTheFuture"
2362
+ }
2363
+ };
2364
+ //#endregion
2365
+ //#region src/components/EFP/tasks/SourceOfFundsDropin/SourceOfFundsDropin.tsx
2366
+ var logger = createLogger();
2367
+ function SourceOfFundsDropin({ country, problems, handleHomeClick, onSubmit, asAwe }) {
2368
+ const { data: legalEntity, isLoading: isLoadingRootLegalEntity } = useLegalEntity(ROOT_LE);
2369
+ const [loadingStatus, setLoadingStatus] = useState$1("success");
2370
+ const [activeBusinessLine, setActiveBusinessLine] = useState$1();
2371
+ const [activeSourceOfFund, setActiveSourceOfFund] = useState$1({
2372
+ sourceOfFundsType: {},
2373
+ additionalData: {}
2374
+ });
2375
+ const [allBusinessLines, setAllBusinessLines] = useState$1([]);
2376
+ const [gettingStarted, setGettingStarted] = useState$1(true);
2377
+ const [showUploadPage, setShowUploadPage] = useState$1(false);
2378
+ const [loading, setLoading] = useState$1(false);
2379
+ const [useSameAs, setUseSameAs] = useState$1(true);
2380
+ const { baseUrl, rootLegalEntityId } = useApiContext();
2381
+ const { t: sofT } = useTranslation("sof");
2382
+ const userEvents = useAnalyticsContext();
2383
+ const { showToast } = useToastContext();
2384
+ const { data: sofBusinessLines, isLoading: isLoadingBusinessLines } = useBusinessLines(ALLOWED_SOF_SERVICES);
2385
+ const { mutateAsync: createLegalEntity } = useCreateLegalEntity();
2386
+ const { mutateAsync: updateLegalEntity } = useUpdateLegalEntity();
2387
+ const { mutateAsync: updateSoFMutation } = useUpdateSourceOfFunds();
2388
+ const form = useMultiForm({
2389
+ requiredFields: getSourceOfFundsRequiredFields,
2390
+ rules: {
2391
+ sourceOfFundsType: sourceOfFundsTypeValidations,
2392
+ additionalData: sourceOfFundsAdditionalDataValidations
2393
+ },
2394
+ defaultData: activeSourceOfFund
2395
+ });
2396
+ const { data = activeSourceOfFund, setFormData, setData, requiredFields, isValid, triggerValidation } = form;
2397
+ const isSoFDocumentMissing = useMemo$1(() => legalEntity?.problems?.some((problem) => problem?.verificationErrors?.some((verificationError) => verificationError?.code === "2_8224")) ?? false, [legalEntity?.problems]);
2398
+ const legalEntityResults = useLegalEntities(sofBusinessLines?.map((businessLine) => businessLine.sourceOfFunds?.originatorLegalEntityId).filter((id) => Boolean(id)) ?? [], { staleTime: 300 * 1e3 });
2399
+ const areLegalEntitiesLoading = legalEntityResults.some((result) => result.isLoading);
2400
+ const normalizedBusinessLines = useMemo$1(() => {
2401
+ if (!sofBusinessLines) return null;
2402
+ return sofBusinessLines.map((businessLine, index) => {
2403
+ const result = legalEntityResults[index];
2404
+ let updatedBusinessLine = { ...businessLine };
2405
+ if (result && result.data) updatedBusinessLine = parseOriginatorDetails(result.data, updatedBusinessLine);
2406
+ else if (result && result.isError) {
2407
+ logger.error(`Error fetching legal entity for BL ${businessLine.id}:`, result.error);
2408
+ showToast({
2409
+ label: sofT(($) => $["unableToLoadRelatedEntity"]),
2410
+ variant: "error"
2411
+ });
2412
+ }
2413
+ if (updatedBusinessLine.sourceOfFunds?.adyenProcessedFunds) updatedBusinessLine.sourceOfFunds.type = "adyen";
2414
+ return updatedBusinessLine;
2415
+ });
2416
+ }, [sofBusinessLines, JSON.stringify(legalEntityResults.map((r) => ({
2417
+ data: r.data,
2418
+ isError: r.isError,
2419
+ error: r.error,
2420
+ isLoading: r.isLoading
2421
+ })))]);
2422
+ useEffect$1(() => {
2423
+ if (sofBusinessLines && !areLegalEntitiesLoading && normalizedBusinessLines) {
2424
+ clearSofErrorMessage();
2425
+ setLoading(true);
2426
+ try {
2427
+ if (normalizedBusinessLines.length) {
2428
+ setAllBusinessLines((prev) => objectsDeepEqual(prev, normalizedBusinessLines) ? prev : normalizedBusinessLines);
2429
+ if (!activeBusinessLine) {
2430
+ const firstBusinessLine = normalizedBusinessLines[0];
2431
+ if (firstBusinessLine) {
2432
+ const mappedSof = mapSourceOfFundToSourceOfFundsSchema(firstBusinessLine);
2433
+ setActiveBusinessLine(firstBusinessLine);
2434
+ setActiveSourceOfFund(mappedSof);
2435
+ if (mappedSof?.sourceOfFundsType) setFormData("sourceOfFundsType", mappedSof.sourceOfFundsType);
2436
+ if (mappedSof?.additionalData) setFormData("additionalData", mappedSof.additionalData);
2437
+ }
2438
+ }
2439
+ }
2440
+ } catch (error) {
2441
+ showToast({
2442
+ label: sofT(($) => $["unableToLoadRelatedEntity"]),
2443
+ variant: "error"
2444
+ });
2445
+ logger.error(error);
2446
+ } finally {
2447
+ setLoading(false);
2448
+ }
2449
+ }
2450
+ }, [
2451
+ sofBusinessLines,
2452
+ areLegalEntitiesLoading,
2453
+ normalizedBusinessLines,
2454
+ activeBusinessLine,
2455
+ sofT,
2456
+ logger
2457
+ ]);
2458
+ /**
2459
+ * Analytics
2460
+ */
2461
+ useTaskLandedEvent("SOURCE_OF_FUNDS");
2462
+ useEffect$1(() => {
2463
+ if (!gettingStarted && activeBusinessLine && allBusinessLines.length > 1) {
2464
+ const applicableBusinessLines = getApplicableBusinessLines(allBusinessLines);
2465
+ if (applicableBusinessLines.length > 1) {
2466
+ if (applicableBusinessLines.every((bl) => bl.sourceOfFunds?.type)) {
2467
+ const currentSoF = mapSourceOfFundToSourceOfFundsSchema(activeBusinessLine);
2468
+ setUseSameAs(applicableBusinessLines.filter((bl) => bl.id !== activeBusinessLine.id).every((bl) => {
2469
+ return areSourceOfFundsEqual(currentSoF, mapSourceOfFundToSourceOfFundsSchema(bl));
2470
+ }));
2471
+ }
2472
+ }
2473
+ }
2474
+ }, [
2475
+ gettingStarted,
2476
+ activeBusinessLine,
2477
+ allBusinessLines
2478
+ ]);
2479
+ const sourceOfFundsRequiredForms = useMemo$1(() => getSourceOfFundsRequiredForms(data?.sourceOfFundsType), [data?.sourceOfFundsType]);
2480
+ const forms = useMemo$1(() => {
2481
+ return addValidityToForms(getRequiredForms(sourceOfFundsRequiredForms, requiredFields, void 0, true), isValid, problems);
2482
+ }, [
2483
+ sourceOfFundsRequiredForms,
2484
+ requiredFields,
2485
+ isValid,
2486
+ problems
2487
+ ]);
2488
+ const createOrUpdateOriginator = async (additionalData, prevAdditionalData) => {
2489
+ let originatorLegalEntityId;
2490
+ const sofOriginator = parseSofOriginatorPayload(additionalData);
2491
+ if (additionalData?.originatorLegalEntityId && additionalData?.originatorType === prevAdditionalData?.originatorType) try {
2492
+ sofOriginator.id = additionalData?.originatorLegalEntityId;
2493
+ if (sofOriginator.type) delete sofOriginator.type;
2494
+ originatorLegalEntityId = (await updateLegalEntity({
2495
+ ...sofOriginator,
2496
+ id: sofOriginator.id
2497
+ }))?.id;
2498
+ } catch (e) {
2499
+ logger.log("Error updating originator legal entity", e);
2500
+ }
2501
+ else try {
2502
+ originatorLegalEntityId = (await createLegalEntity(sofOriginator))?.id;
2503
+ } catch (e) {
2504
+ logger.log("Error creating originator legal entity", e);
2505
+ }
2506
+ return originatorLegalEntityId;
2507
+ };
2508
+ const handleSubmit = useCallback$1(async () => {
2509
+ const sofData = { ...data };
2510
+ const sofType = sofData?.sourceOfFundsType?.type;
2511
+ if (!sofType || !activeBusinessLine?.id) return;
2512
+ const eventsAdditionalData = {};
2513
+ setLoadingStatus("loading");
2514
+ const { additionalData } = sofData;
2515
+ const sofPayload = getSourceOfFundsPayload(sofType, additionalData);
2516
+ if (sofType === "thirdPartyFunding") eventsAdditionalData.financiers = `${additionalData?.financiers?.length || 0} investor(s)`;
2517
+ if (sofType === "donations" || sofType === "inheritance") eventsAdditionalData.originatorType = additionalData?.originatorType ?? "";
2518
+ const targetBusinessLines = useSameAs ? getApplicableBusinessLines(allBusinessLines) : [activeBusinessLine];
2519
+ const savePromises = targetBusinessLines.filter((bl) => bl.id).map(async (bl) => {
2520
+ const payload = { ...sofPayload };
2521
+ if (sofType === "donations" || sofType === "inheritance") try {
2522
+ const blAdditionalData = mapSourceOfFundToSourceOfFundsSchema(bl)?.additionalData;
2523
+ payload.originatorLegalEntityId = await createOrUpdateOriginator(useSameAs ? {
2524
+ ...additionalData,
2525
+ originatorLegalEntityId: blAdditionalData?.originatorLegalEntityId
2526
+ } : getAdditionalDataForOriginator(additionalData, activeSourceOfFund?.additionalData, useSameAs), blAdditionalData);
2527
+ } catch (e) {
2528
+ logger.log("Error creating originator legal entity for business line", e);
2529
+ throw e;
2530
+ }
2531
+ return updateSoFMutation({
2532
+ ...payload,
2533
+ businessLineId: bl.id
2534
+ });
2535
+ });
2536
+ try {
2537
+ const results = await Promise.allSettled(savePromises);
2538
+ const failures = results.filter((r) => r.status === "rejected");
2539
+ if (failures.length > 0) {
2540
+ setSofErrorMessage(sofT(($) => $["errorUpdatingMultipleSourceOfFunds"], { count: failures.length }));
2541
+ logger.error("Failed to update SoF for some business lines", failures);
2542
+ }
2543
+ const successes = results.filter((r) => r.status === "fulfilled");
2544
+ if (successes.length > 0) {
2545
+ userEvents.addTaskEvent("Success", {
2546
+ actionType: "submit",
2547
+ returnValue: sofType,
2548
+ additionalData: {
2549
+ ...eventsAdditionalData,
2550
+ appliedToMultiple: useSameAs,
2551
+ successCount: successes.length,
2552
+ failureCount: failures.length,
2553
+ businessLinesCount: allBusinessLines.length,
2554
+ activeBusinessLineType: activeBusinessLine?.service,
2555
+ activeBusinessLineCode: activeBusinessLine?.industryCode
2556
+ }
2557
+ });
2558
+ setGettingStarted(true);
2559
+ setShowUploadPage(false);
2560
+ setActiveSourceOfFund({
2561
+ sourceOfFundsType: {},
2562
+ additionalData: {}
2563
+ });
2564
+ gotoFormByFormIndex(0);
2565
+ setUseSameAs(true);
2566
+ if (failures.length === 0) {
2567
+ showToast({
2568
+ label: sofT(($) => $["successAddedFundingSources"]),
2569
+ variant: "success"
2570
+ });
2571
+ setSofErrorMessage("");
2572
+ } else showToast({
2573
+ label: sofT(($) => $["successAddedFundingSources"]),
2574
+ variant: "success"
2575
+ });
2576
+ if (useSameAs) {
2577
+ if (asAwe) onSubmit?.(data);
2578
+ } else {
2579
+ const applicableBusinessLines = getApplicableBusinessLines(allBusinessLines);
2580
+ if (applicableBusinessLines.filter((bl) => {
2581
+ return targetBusinessLines.some((target) => target.id === bl.id) || !isEmpty(bl.sourceOfFunds);
2582
+ }).length === applicableBusinessLines.length) {
2583
+ handleHomeClick?.();
2584
+ if (asAwe) onSubmit?.(data);
2585
+ }
2586
+ }
2587
+ } else setSofErrorMessage(sofT(($) => $["errorUpdatingSourceOfFunds"]));
2588
+ } catch (e) {
2589
+ setSofErrorMessage(sofT(($) => $["errorUpdatingSourceOfFunds"]));
2590
+ logger.log("Error updating source of funds", e);
2591
+ }
2592
+ setLoadingStatus("success");
2593
+ }, [
2594
+ data,
2595
+ activeSourceOfFund,
2596
+ activeBusinessLine,
2597
+ allBusinessLines,
2598
+ useSameAs,
2599
+ updateSoFMutation,
2600
+ createOrUpdateOriginator,
2601
+ userEvents,
2602
+ showToast,
2603
+ sofT,
2604
+ logger
2605
+ ]);
2606
+ const handleGettingStarted = useCallback$1(() => {
2607
+ setGettingStarted(!gettingStarted);
2608
+ }, [gettingStarted]);
2609
+ const handleSourceOfFundsClick = (SoF, businessLine) => {
2610
+ setActiveBusinessLine(businessLine);
2611
+ setActiveSourceOfFund(SoF);
2612
+ setGettingStarted(false);
2613
+ setUseSameAs(false);
2614
+ };
2615
+ const sameAsOption = useMemo$1(() => {
2616
+ if (!activeBusinessLine || !allBusinessLines.length) return;
2617
+ if (getApplicableBusinessLines(allBusinessLines).length <= 1) return;
2618
+ return {
2619
+ businessLineId: "",
2620
+ productName: sofT(($) => $["alwaysUseThisFundingSource"]),
2621
+ sourceOfFunds: activeSourceOfFund
2622
+ };
2623
+ }, [
2624
+ activeBusinessLine,
2625
+ allBusinessLines,
2626
+ activeSourceOfFund,
2627
+ sofT
2628
+ ]);
2629
+ const setAdditionalDataFields = useCallback$1((additionalData) => {
2630
+ if (!additionalData) return;
2631
+ Object.keys(additionalData).forEach((key) => {
2632
+ const fieldKey = key;
2633
+ const value = additionalData[fieldKey];
2634
+ if (value !== void 0) setData(fieldKey, value, "additionalData");
2635
+ });
2636
+ }, [setData]);
2637
+ const handleUseSameAsChange = useCallback$1((checked) => {
2638
+ setUseSameAs(checked);
2639
+ if (checked && sameAsOption) {
2640
+ const { sourceOfFunds } = sameAsOption;
2641
+ setActiveSourceOfFund(sourceOfFunds);
2642
+ setFormData("sourceOfFundsType", sourceOfFunds.sourceOfFundsType);
2643
+ setAdditionalDataFields(sourceOfFunds.additionalData);
2644
+ } else if (!checked && activeBusinessLine) {
2645
+ const currentSoF = mapSourceOfFundToSourceOfFundsSchema(activeBusinessLine);
2646
+ setActiveSourceOfFund(currentSoF);
2647
+ setFormData("sourceOfFundsType", currentSoF.sourceOfFundsType);
2648
+ setAdditionalDataFields(currentSoF.additionalData);
2649
+ }
2650
+ }, [
2651
+ sameAsOption,
2652
+ activeBusinessLine,
2653
+ setFormData,
2654
+ setAdditionalDataFields
2655
+ ]);
2656
+ const { handleNextClick, activeForm, gotoFormByFormIndex, gotoFormByFormId, steps, handleBackClick } = useFormComposer({
2657
+ problems,
2658
+ forms,
2659
+ onSubmit: handleSubmit,
2660
+ triggerValidation
2661
+ });
2662
+ const documentUtils = documentApiUtils({
2663
+ baseUrl: baseUrl.value,
2664
+ rootLegalEntityId: rootLegalEntityId.value
2665
+ });
2666
+ const handleNavigateToSummary = async () => {
2667
+ setShowUploadPage(false);
2668
+ setGettingStarted(true);
2669
+ };
2670
+ const handleNavigateToUploadPage = () => {
2671
+ setShowUploadPage(true);
2672
+ };
2673
+ return /* @__PURE__ */ jsx("div", {
2674
+ className: asAwe ? SourceOfFunds_module_default.sourceOfFundsAwe : SourceOfFunds_module_default.sourceOfFunds,
2675
+ children: loading || isLoadingRootLegalEntity || isLoadingBusinessLines || areLegalEntitiesLoading ? /* @__PURE__ */ jsx(Loader, {}) : /* @__PURE__ */ jsxs(Fragment$1, { children: [
2676
+ gettingStarted && !showUploadPage && legalEntity && /* @__PURE__ */ jsx(SourceOfFundsGettingStarted, {
2677
+ asAwe,
2678
+ handleCancelClick: handleHomeClick,
2679
+ handleGettingStartedClick: handleGettingStarted,
2680
+ businessLines: allBusinessLines,
2681
+ problems: legalEntity?.problems,
2682
+ handleSourceOfFundsClick,
2683
+ handleNavigateToUploadPage,
2684
+ legalEntity,
2685
+ isSoFDocumentMissing
2686
+ }),
2687
+ showUploadPage && legalEntity && /* @__PURE__ */ jsx(SourceOfFundsUpload, {
2688
+ businessLines: allBusinessLines,
2689
+ documentUtils,
2690
+ legalEntity,
2691
+ handleNavigateToSummary
2692
+ }),
2693
+ !gettingStarted && !showUploadPage && /* @__PURE__ */ jsx(FormContextProvider, {
2694
+ form,
2695
+ children: /* @__PURE__ */ jsx(FormFlow, {
2696
+ forms,
2697
+ disableNextButton: !activeForm.isValid,
2698
+ activeForm,
2699
+ gotoFormByFormIndex,
2700
+ gotoFormByFormId,
2701
+ handleBackClick: steps.current === 0 ? handleGettingStarted : handleBackClick,
2702
+ handleCancelClick: handleHomeClick,
2703
+ handleNextClick,
2704
+ loadingStatus,
2705
+ currentStep: steps.current,
2706
+ totalSteps: steps.total,
2707
+ children: /* @__PURE__ */ jsx(SourceOfFunds, {
2708
+ country,
2709
+ activeForm,
2710
+ activeBusinessLine,
2711
+ sourceOfFundsType: data?.sourceOfFundsType?.type,
2712
+ data: activeSourceOfFund,
2713
+ sameAsOption,
2714
+ useSameAs,
2715
+ onUseSameAsChange: handleUseSameAsChange
2716
+ })
2717
+ })
2718
+ })
2719
+ ] })
2720
+ });
2721
+ }
2722
+ //#endregion
2723
+ //#region src/components/EFP/pages/SourceOfFundsPage.tsx
2724
+ var SourceOfFundsPage_exports = /* @__PURE__ */ __exportAll({ SourceOfFundsPage: () => SourceOfFundsPage });
2725
+ var SourceOfFundsPage = ({ onSubmit, handleHomeClick, asAwe }) => {
2726
+ const { data: rootLe } = useLegalEntity(ROOT_LE);
2727
+ const capabilityProblems = useCapabilityProblems();
2728
+ const { i18n } = useTranslation();
2729
+ addResourceBundles(i18n, [{
2730
+ ns: "sof",
2731
+ importFn: (lang) => _rolldown_dynamic_import_helper_default(/* @__PURE__ */ Object.assign({
2732
+ "../tasks/SourceOfFundsDropin/language/bg-BG.json": () => import("./bg-BG-uuNDTOoN.js"),
2733
+ "../tasks/SourceOfFundsDropin/language/cs-CZ.json": () => import("./cs-CZ-Cu1v5FA8.js"),
2734
+ "../tasks/SourceOfFundsDropin/language/da-DK.json": () => import("./da-DK-DjAV5d9A.js"),
2735
+ "../tasks/SourceOfFundsDropin/language/de-DE.json": () => import("./de-DE-B3sSNcDv.js"),
2736
+ "../tasks/SourceOfFundsDropin/language/el-GR.json": () => import("./el-GR-DaAMIpOR.js"),
2737
+ "../tasks/SourceOfFundsDropin/language/en-US.json": () => import("./en-US-D0fscfsz.js"),
2738
+ "../tasks/SourceOfFundsDropin/language/es-ES.json": () => import("./es-ES-tVQDUTJN.js"),
2739
+ "../tasks/SourceOfFundsDropin/language/es-LA.json": () => import("./es-LA-DWAiA7Dw.js"),
2740
+ "../tasks/SourceOfFundsDropin/language/et-EE.json": () => import("./et-EE-BCWBT8XN.js"),
2741
+ "../tasks/SourceOfFundsDropin/language/fi-FI.json": () => import("./fi-FI-B-7uBAf5.js"),
2742
+ "../tasks/SourceOfFundsDropin/language/fr-FR.json": () => import("./fr-FR-CDv300-8.js"),
2743
+ "../tasks/SourceOfFundsDropin/language/hr-HR.json": () => import("./hr-HR-CXH5M5JZ.js"),
2744
+ "../tasks/SourceOfFundsDropin/language/hu-HU.json": () => import("./hu-HU-D1ZZwcl0.js"),
2745
+ "../tasks/SourceOfFundsDropin/language/it-IT.json": () => import("./it-IT-Cnk7j_gC.js"),
2746
+ "../tasks/SourceOfFundsDropin/language/ja-JP.json": () => import("./ja-JP-DS8zN3mY.js"),
2747
+ "../tasks/SourceOfFundsDropin/language/lt-LT.json": () => import("./lt-LT-D3ZUJfjr.js"),
2748
+ "../tasks/SourceOfFundsDropin/language/lv-LV.json": () => import("./lv-LV-CXifQKfG.js"),
2749
+ "../tasks/SourceOfFundsDropin/language/nl-NL.json": () => import("./nl-NL-Bv8Zk-6e.js"),
2750
+ "../tasks/SourceOfFundsDropin/language/no-NO.json": () => import("./no-NO-Chwg5Roi.js"),
2751
+ "../tasks/SourceOfFundsDropin/language/pl-PL.json": () => import("./pl-PL-DSbuyzBx.js"),
2752
+ "../tasks/SourceOfFundsDropin/language/pt-BR.json": () => import("./pt-BR-B2q9Nl16.js"),
2753
+ "../tasks/SourceOfFundsDropin/language/pt-PT.json": () => import("./pt-PT-CQQkh5PS.js"),
2754
+ "../tasks/SourceOfFundsDropin/language/ro-RO.json": () => import("./ro-RO-_BLhsnIB.js"),
2755
+ "../tasks/SourceOfFundsDropin/language/sk-SK.json": () => import("./sk-SK-BOc9IqyW.js"),
2756
+ "../tasks/SourceOfFundsDropin/language/sl-SI.json": () => import("./sl-SI-BQc61Sz2.js"),
2757
+ "../tasks/SourceOfFundsDropin/language/sv-SE.json": () => import("./sv-SE-DzsWB30f.js")
2758
+ }), `../tasks/SourceOfFundsDropin/language/${lang}.json`, 5)
2759
+ }]);
2760
+ if (!rootLe) return /* @__PURE__ */ jsx(Loader, {});
2761
+ const problems = capabilityProblems ? getProblemsForEntity(capabilityProblems, EntityTypes.LEGAL_ENTITY, rootLe.id) : void 0;
2762
+ return /* @__PURE__ */ jsx(SourceOfFundsDropin, {
2763
+ legalEntityResponse: rootLe,
2764
+ country: getLegalEntityCountry(rootLe),
2765
+ problems,
2766
+ asAwe,
2767
+ onSubmit,
2768
+ handleHomeClick
2769
+ });
2770
+ };
2771
+ //#endregion
2772
+ export { SourceOfFundsPage_exports as n, SourceOfFundsPage as t };