@adyen/kyc-components 4.13.0-beta.6 → 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-DjXxE-RN.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-BI384OW7.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,3899 @@
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] = "f2b39d32-832a-4054-9ee9-7dcab061f9f4", e._sentryDebugIdIdentifier = "sentry-dbid-f2b39d32-832a-4054-9ee9-7dcab061f9f4");
4
+ } catch (e) {}
5
+ import { i as Typography, o as createLogger, r as useTranslation, t as Trans } from "./translation-ZXpd9jdD.js";
6
+ import { B as INDIVIDUAL_VALID_CHAR_REGEX, C as useDataset, D as useCapabilities, E as useAllowedCountries, G as SPECIAL_CHARS, H as NO_ALPHABET_REGEX, Q as hasMaximumTwoRepeatedCharacters, T as datasetUtilities, Y as getFormattingRegEx, c as isLegalRepresentativeNeeded, ct as standardKanjiValidator, et as hasText, ft as useAccountHolder, it as isInvalidName, j as useToggleContext, k as Header, lt as standardKatakanaValidator, nt as isEmpty, o as getAgeRangeForLegalRepresentative, s as getAgeToday, st as matchesRegex, w as datasetIdentifier, x as Alert, z as EMOJI_REGEX } from "./resolveEnvironment-Doi5jM7g.js";
7
+ import { 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 { t as LegalEntityTypes } from "./legal-entity-type-0MfCGzUf.js";
10
+ import { t as getLegalEntityCountry } from "./getLegalEntityCountry-BHh7Ux8v.js";
11
+ import { t as useSettingsContext } from "./useSettingsContext-Bpf4UqRT.js";
12
+ import { i as drop, n as cloneObject, o as objectsDeepEqual, r as doArraysMatch } from "./AnalyticsContext-BFrJmsp0.js";
13
+ import { r as euCountries, t as CountryCodes } from "./country-code-CJk2hdPu.js";
14
+ import { l as individualDocumentMapping, s as individualApiKeyMapping, u as individualObscuredFields } from "./processCapabilities-hLmRus8U.js";
15
+ import { t as TaskTypes } from "./taskTypes-NawDTp5n.js";
16
+ import { n as attachNomineeToRole, r as filterOutUnwantedAssociationsIfRootLE, s as getOwnEntityAssociations, u as hasNomineesChanged } from "./entityAssociationUtil-C-wflW8q.js";
17
+ import { t as DecisionMakerTypes } from "./decision-maker-type-NR4GFAeT.js";
18
+ import { t as Scenarios } from "./get-scenarios-Bb-paHmJ.js";
19
+ import { t as getAllowedDecisionMakerRoles } from "./decisionMakerRoles-DIG8zo1C.js";
20
+ import { i as useAnalyticsContext, t as Modal } from "./Modal-BgeE7zM2.js";
21
+ import { t as SettingNames } from "./types-Cwq1JAWT.js";
22
+ import { n as useToastContext } from "./invalidateRootLegalEntity-B_H-aJ0s.js";
23
+ import { a as idNowPostSubmit, i as idNowModalChildEntityId, o as shouldShowIdNowModal, s as showIdNowModal } from "./bafinUtils-BKq-s1Ka.js";
24
+ import { n as translateTranslatable, r as LoaderWrapper } from "./utils-DcUoR5qG.js";
25
+ import { t as Confirm } from "./Confirm-C4GotFqm.js";
26
+ import { t as TrustedFieldsProviders } from "./trusted-fields-provider-DLz8KKVf.js";
27
+ import { n as Image } from "./unincorporated-partnership-GaTPaALJ.js";
28
+ import { t as getIndividualLegalEntityName } from "./getName-D4ECvzcI.js";
29
+ import { t as useScenarios } from "./useScenarios-ful0VqQ4.js";
30
+ import { t as useCreateLegalEntity } from "./useCreateLegalEntity-38twl3gB.js";
31
+ import { a as individualFormDefaultData, i as GuidanceQuestionValues, n as getOnfidoIdentityTypeToApiIdentityTypeMap, o as shouldNavigateToAdditionalPersonalDetailsForMissingData, r as GuidanceQuestion, s as useCreateInvitation, t as mapLegalEntityToIndividualSchema } from "./mapLegalEntityToIndividualSchema-BsHNunzQ.js";
32
+ import { t as useUpdateLegalEntity } from "./useUpdateLegalEntity-DnkFwUCD.js";
33
+ import { c as addressValidators, d as useProviderStatus, t as Address } from "./Address-D5zWC8Kk.js";
34
+ import { a as contactDetailsValidationRules, c as getAsyncPhoneValidationRules, i as phonePrefixes_default, l as getPhonePlaceholder, n as contactDetailFields, o as defaultFieldMetadata, r as PhoneField, s as fieldConfig, t as ContactDetails, u as useValidatePhoneNumberImperatively } from "./ContactDetails-ugF7Py8x.js";
35
+ import { i as FormFlow, n as addValidityToForms, o as useFormComposer, r as getRequiredForms, s as FormContextProvider, t as useFormContext } from "./useFormContext-CyhnFPOt.js";
36
+ import { n as composePerScenarioFormConfigurations, r as getPropsFromConfigurations } from "./process-field-configurations-U459c7bG.js";
37
+ import { n as useFormRouterContext, t as ErrorPanel } from "./ErrorPanel-ct3r_pLg.js";
38
+ import { n as mergeFieldMetadataIntoProps, t as createFormUtils } from "./formUtils-DVc3a6gf.js";
39
+ import { n as preTranslatedSummaryItem } from "./summaryItem-uDWmtYtt.js";
40
+ import { r as isTruthyValidator, t as useMultiForm } from "./useMultiForm-NwELDSnm.js";
41
+ import { i as useScenarioConfiguration, n as getPage, r as getPageName, s as AdyenKycSdkError, t as mapExistingFile } from "./mapExistingFile-CZB9JLAV.js";
42
+ import { t as useTaskLandedEvent } from "./useTaskLandedEvent-CtlV_Bum.js";
43
+ import { n as InputEmail, t as MaskedInput } from "./MaskedInput-C_rP9ADy.js";
44
+ import { t as JP_ADDRESS_REQUIRED_FIELDS } from "./jpAddressSchema-pVY2Cqvr.js";
45
+ import { n as toFullWidth, r as mapJpAddressSummary, t as mapJpAddressSchemaToAddressLocalizations } from "./mapJpAddressSchemaToAddressLocalizations-DUElzaoS.js";
46
+ import { o as addressFields } from "./constants-DrtMSDfx.js";
47
+ import { i as mapAddressLabels, n as getAddressSchemaLabelsByCountry } from "./utils-BgdkZkf5.js";
48
+ import { i as isValidationError, o as processValidationErrors, s as isMaintenanceModeError } from "./validationError-tIm9Zzjt.js";
49
+ import { c as getDocument, d as getIdDocument, f as mergeAttachments, o as createDocumentRequest, s as documentApiUtils, u as getFileExtention } from "./validate-j0h8oux2.js";
50
+ import { t as getLocalizedIdDocumentTypeOptions } from "./utils-DwujAUJC.js";
51
+ import { r as formatObject } from "./utils-DdHbAadK.js";
52
+ import { a as getFieldsWithExistingData, i as DocumentGuidance, n as TaxInformationField, r as MemoizedDocumentUpload } from "./TaxInformationField-C5s9CTSB.js";
53
+ import { t as isJapanLocalizationEnabled } from "./japanSupportUtils-H5Zfox2v.js";
54
+ import { t as localizeDateString } from "./localizeDateString-DB-oTe60.js";
55
+ import { t as omitObscuredFieldsIfUnchanged } from "./omitObscuredFieldsIfUnchanged-DDq-TIS9.js";
56
+ import { _ as getAsyncIdNumberValidationRule, a as fromIndividualConflictSchema, c as DataConflictsModal, d as addressToString, f as useExtractDocumentInformation, g as defaultFieldMetadata$1, h as defaultFieldConfig, i as mapExtractionResultToSchema, l as createAddressConflictRule, m as idNumberFields, n as UploadedDocument, o as toIndividualConflictSchema, p as IdentityNumber, r as useIdVerificationToken, s as IdVerificationMethod_module_default, t as validateExtractionResult, u as useDataConflicts, v as licenseCardNumberDefaultConfig, y as licenseCardNumberDefaultMetadata } from "./validateExtractionResult-CHdmHmkZ.js";
57
+ import { C as taxInformationDefaultFieldConfig, g as getDefaultTaxIdNumberType, w as taxInformationDefaultFieldMetadata, y as taxIdNumberOptions } from "./utils-B6a1FGxD.js";
58
+ import { n as emailPattern } from "./basePatterns-plHFNzgJ.js";
59
+ import { t as resolveFieldMetadata } from "./fieldConfigurations-CZCFghnK.js";
60
+ import { t as Field } from "./Field-CQWAWo5U.js";
61
+ import { t as LandingLayout } from "./LandingLayout-Dg0sEASR.js";
62
+ import { t as Select } from "./Select-vMYP9lm8.js";
63
+ import { n as convertFullToHalf, t as TextArea } from "./TextArea-C2DkQ41s.js";
64
+ import { t as Dropzone } from "./Dropzone-ER9yCx09.js";
65
+ import { n as getFormProps, t as getFieldProps } from "./getProps-1L-urpfA.js";
66
+ import { t as Link } from "./Link-DtaYQWb-.js";
67
+ import { t as InputText } from "./InputText-8abfNtHh.js";
68
+ import { n as formatDateObj, t as InputDate } from "./InputDate-cTgjAhzm.js";
69
+ import { n as CountryField } from "./CountryField-zsA_yVzc.js";
70
+ import { t as RadioGroup } from "./RadioGroup-DlzXLoMN.js";
71
+ import { t as ContextGuidance } from "./ContextGuidance-7xygTSEo.js";
72
+ import { i as individualRules, n as DECISION_MAKER_TYPES_WITH_JOBTITLE, t as COUNTRIES_WHICH_USE_MULTIPLE_IDENTITY_TYPES } from "./Individual.rules-DrC9MYN9.js";
73
+ import { n as nameFields, t as Name } from "./Name-DtDvWkku.js";
74
+ import { t as isEmpty$1 } from "./isEmpty-BVlBH98t.js";
75
+ import { r as mapSchemaFieldsToApiScriptLocalization } from "./mapAddressLocalizationToJpAddressSchema-CBeBTFmC.js";
76
+ import { Suspense, lazy, memo } from "preact/compat";
77
+ import { useCallback as useCallback$1, useEffect as useEffect$1, useMemo as useMemo$1, useRef as useRef$1, useState as useState$1 } from "preact/hooks";
78
+ import { Fragment as Fragment$1, jsx, jsxs } from "preact/jsx-runtime";
79
+ import { signal } from "@preact/signals";
80
+ import { skipToken, useMutation, useQuery, useQueryClient } from "@tanstack/preact-query";
81
+ import { Show } from "@preact/signals/utils";
82
+ import { Onfido } from "onfido-sdk-ui";
83
+ import parsePhoneNumber from "libphonenumber-js/mobile";
84
+ //#region src/api/entityVerifications/useVerifyIdNumber.ts
85
+ var verifyIdNumber = async (legalEntityId, baseUrl, data) => {
86
+ return await httpPost({
87
+ baseUrl,
88
+ path: `legalEntities/${legalEntityId}/verifications/idNumber`,
89
+ errorHandler: async (response) => {
90
+ const responseData = await response;
91
+ if (responseData.status === 422) return {
92
+ status: 422,
93
+ message: responseData.detail,
94
+ errorCode: responseData.errorCode
95
+ };
96
+ if (responseData.status === 500) return {
97
+ status: 500,
98
+ message: "Service did not respond, do not block verification"
99
+ };
100
+ }
101
+ }, data);
102
+ };
103
+ var useVerifyIdNumber = (options) => {
104
+ const { rootLegalEntityId, baseUrl } = useApiContext();
105
+ return useMutation({
106
+ mutationFn: (data) => verifyIdNumber(rootLegalEntityId.value, baseUrl.value, data),
107
+ ...options
108
+ });
109
+ };
110
+ //#endregion
111
+ //#region src/api/idVerificationProviders/idVerificationStartCheck.ts
112
+ var startVerificationCheck = async (rootLegalEntityId, baseUrl, data) => {
113
+ return httpPost({
114
+ baseUrl,
115
+ path: `legalEntities/${rootLegalEntityId}/providers/idVerification/process`
116
+ }, data);
117
+ };
118
+ var useIdVerificationStartCheck = (options) => {
119
+ const { rootLegalEntityId, baseUrl } = useApiContext();
120
+ return useMutation({
121
+ mutationFn: (data) => startVerificationCheck(rootLegalEntityId.value, baseUrl.value, data),
122
+ ...options
123
+ });
124
+ };
125
+ //#endregion
126
+ //#region src/utils/customerSupportUtils.ts
127
+ var customerSupportPresubmitProcess = (legalEntityResponse, legalEntityToSubmit) => {
128
+ if (legalEntityResponse.type === "individual") return processCustomerSupportForIndividual(legalEntityResponse, legalEntityToSubmit);
129
+ if (legalEntityResponse.type === "organization") return processCustomerSupportForOrganization(legalEntityResponse, legalEntityToSubmit);
130
+ };
131
+ var processCustomerSupportForOrganization = (legalEntityResponse, legalEntityToSubmit) => {
132
+ if (!legalEntityResponse.organization?.support) return legalEntityToSubmit.organization?.support ?? void 0;
133
+ if (legalEntityResponse.organization?.countryOfGoverningLaw !== legalEntityToSubmit.organization?.countryOfGoverningLaw) {
134
+ const customerSupport = legalEntityResponse.organization?.support;
135
+ switch (legalEntityToSubmit.organization?.countryOfGoverningLaw) {
136
+ case CountryCodes.Japan: return unsetCustomerSupportNumber(customerSupport);
137
+ default: return customerSupport;
138
+ }
139
+ }
140
+ };
141
+ var processCustomerSupportForIndividual = (legalEntityResponse, legalEntityToSubmit) => {
142
+ if (!legalEntityResponse.individual?.support) return legalEntityToSubmit.individual?.support ?? void 0;
143
+ if (legalEntityResponse.individual?.residentialAddress.country !== legalEntityToSubmit.individual?.residentialAddress.country) {
144
+ const customerSupport = legalEntityResponse.individual?.support;
145
+ switch (legalEntityToSubmit.individual?.residentialAddress.country) {
146
+ case CountryCodes.Japan: return unsetCustomerSupportNumber(customerSupport);
147
+ default: return customerSupport;
148
+ }
149
+ }
150
+ };
151
+ var unsetCustomerSupportNumber = (customerSupport) => {
152
+ return customerSupport ? {
153
+ email: customerSupport.email,
154
+ phone: {
155
+ number: "",
156
+ type: "mobile"
157
+ }
158
+ } : void 0;
159
+ };
160
+ //#endregion
161
+ //#region src/utils/getSSNType.ts
162
+ var ERROR_CODES = {
163
+ SSN_REMEDIATION: "1_316",
164
+ SSN_4_DIGITS_VALIDATION: "1_3062",
165
+ PERSONAL_DETAILS_VALIDATION: "1_30"
166
+ };
167
+ var getSSNType = (formVerifcationErrors, existingIdNumber) => {
168
+ return check4DigitSsnFailed(formVerifcationErrors) || existingIdNumber?.length === 9 ? "ssn" : "ssnLastFour";
169
+ };
170
+ var check4DigitSsnFailed = (formVerifcationErrors) => {
171
+ return (formVerifcationErrors?.[ERROR_CODES.PERSONAL_DETAILS_VALIDATION])?.[ERROR_CODES.SSN_4_DIGITS_VALIDATION]?.some((error) => error.code === ERROR_CODES.SSN_REMEDIATION);
172
+ };
173
+ //#endregion
174
+ //#region src/components/Shared/fields/Name/validate.ts
175
+ var nameValidationRulesV4 = () => {
176
+ return {
177
+ firstName: [{
178
+ modes: ["blur"],
179
+ validate: (input) => !matchesRegex(NO_ALPHABET_REGEX, input),
180
+ errorMessage: "nameMustContainLetters"
181
+ }, {
182
+ modes: ["blur"],
183
+ validate: (input) => !matchesRegex(EMOJI_REGEX, input) && !hasMaximumTwoRepeatedCharacters(input) && !isInvalidName(input) && matchesRegex(INDIVIDUAL_VALID_CHAR_REGEX, input),
184
+ errorMessage: "checkForTypos"
185
+ }],
186
+ lastName: [{
187
+ modes: ["blur"],
188
+ validate: (input) => !matchesRegex(NO_ALPHABET_REGEX, input),
189
+ errorMessage: "nameMustContainLetters"
190
+ }, {
191
+ modes: ["blur"],
192
+ validate: (input) => !matchesRegex(EMOJI_REGEX, input) && !hasMaximumTwoRepeatedCharacters(input) && !isInvalidName(input) && matchesRegex(INDIVIDUAL_VALID_CHAR_REGEX, input),
193
+ errorMessage: "checkForTypos"
194
+ }]
195
+ };
196
+ };
197
+ getFormattingRegEx(SPECIAL_CHARS.replace("-", ""));
198
+ //#endregion
199
+ //#region src/components/Individual/forms/AdditionalPersonalDetails/validate.ts
200
+ var isNotOutOfRangeBirthDateValidatorRule = {
201
+ modes: ["blur"],
202
+ validate: (birthDate) => !isEmpty(birthDate) && new Date(birthDate) < /* @__PURE__ */ new Date(),
203
+ errorMessage: "invalidDateOfBirth"
204
+ };
205
+ var buildMinimumAgeValidationRule = (minimumAge) => ({
206
+ modes: ["blur"],
207
+ validate: (birthDate) => !!birthDate && getAgeToday(birthDate) >= minimumAge,
208
+ errorMessage: {
209
+ key: "youMustXYearsOldToContinue",
210
+ values: { minimumAge: minimumAge.toString() }
211
+ }
212
+ });
213
+ var getCountrySpecificMinimumAgeValidationRule = (country) => {
214
+ if (!country) return buildMinimumAgeValidationRule(13);
215
+ if ([
216
+ ...euCountries,
217
+ CountryCodes.UnitedKingdom,
218
+ CountryCodes.Switzerland
219
+ ].some((c) => c === country)) return buildMinimumAgeValidationRule(16);
220
+ switch (country) {
221
+ case CountryCodes.HongKong:
222
+ case CountryCodes.Singapore: return buildMinimumAgeValidationRule(18);
223
+ default: return buildMinimumAgeValidationRule(13);
224
+ }
225
+ };
226
+ var additionalPersonalDetailsValidators = ({ country, isFeatureEnabled = () => false, isSettingEnabled = () => false, taskType, idNumberType, idNumberExempt, idNumber, existingIdNumber, formVerificationErrors, t, taxIdNumberType }) => ({
227
+ taxInformation: resolveFieldMetadata(taxInformationDefaultFieldConfig[country], {
228
+ taxIdNumberType,
229
+ companyType: LegalEntityTypes.INDIVIDUAL
230
+ }, taxInformationDefaultFieldMetadata)?.validators,
231
+ birthDate: (() => {
232
+ const baseValidators = [isNotOutOfRangeBirthDateValidatorRule];
233
+ if (isSettingEnabled("enforceLegalAge")) return [...baseValidators, buildMinimumAgeValidationRule(18)];
234
+ if (isFeatureEnabled("EnableAgeVerification")) {
235
+ if (taskType === TaskTypes.LEGAL_REPRESENTATIVE_DETAILS) return [...baseValidators, buildMinimumAgeValidationRule(18)];
236
+ return [...baseValidators, getCountrySpecificMinimumAgeValidationRule(country)];
237
+ }
238
+ return baseValidators;
239
+ })(),
240
+ ...isFeatureEnabled("StrictNameAndAddressValidationV4") ? nameValidationRulesV4() : void 0,
241
+ ...contactDetailsValidationRules,
242
+ idNumber: (() => {
243
+ const derivedIdNumberType = country === CountryCodes.UnitedStates || country === CountryCodes.PuertoRico ? getSSNType(formVerificationErrors, existingIdNumber) : idNumberType;
244
+ return idNumberExempt ? {
245
+ validate: () => {
246
+ return idNumberExempt || !isEmpty(idNumber);
247
+ },
248
+ modes: ["blur"]
249
+ } : resolveFieldMetadata(defaultFieldConfig[country], { idNumberType: derivedIdNumberType }, defaultFieldMetadata$1)?.validators;
250
+ })(),
251
+ ...addressValidators({
252
+ isFeatureEnabled,
253
+ country,
254
+ t
255
+ })
256
+ });
257
+ //#endregion
258
+ //#region src/components/Shared/fields/LocalizedNameFields/validate.ts
259
+ var localizedNameValidationRulesV4 = (isFeatureEnabled = () => false, country) => {
260
+ if (isJapanLocalizationEnabled(isFeatureEnabled, country)) return {
261
+ jaHaniFirstName: [{
262
+ modes: ["blur"],
263
+ validate: hasText,
264
+ errorMessage: "fieldIsRequired"
265
+ }, {
266
+ modes: ["blur"],
267
+ validate: (input) => standardKanjiValidator(input),
268
+ errorMessage: "checkForTypos"
269
+ }],
270
+ jaHaniLastName: [{
271
+ modes: ["blur"],
272
+ validate: hasText,
273
+ errorMessage: "fieldIsRequired"
274
+ }, {
275
+ modes: ["blur"],
276
+ validate: (input) => standardKanjiValidator(input),
277
+ errorMessage: "checkForTypos"
278
+ }],
279
+ jaKanaFirstName: [{
280
+ modes: ["blur"],
281
+ validate: hasText,
282
+ errorMessage: "fieldIsRequired"
283
+ }, {
284
+ modes: ["blur"],
285
+ validate: (input) => standardKatakanaValidator(input),
286
+ errorMessage: "ensureValidFullWidthKatakana"
287
+ }],
288
+ jaKanaLastName: [{
289
+ modes: ["blur"],
290
+ validate: hasText,
291
+ errorMessage: "fieldIsRequired"
292
+ }, {
293
+ modes: ["blur"],
294
+ validate: (input) => standardKatakanaValidator(input),
295
+ errorMessage: "ensureValidFullWidthKatakana"
296
+ }]
297
+ };
298
+ return {};
299
+ };
300
+ //#endregion
301
+ //#region src/components/Individual/forms/BasicDetails/validate.ts
302
+ var basicDetailsValidators = ({ isFeatureEnabled = () => false, country }) => ({
303
+ ...contactDetailsValidationRules,
304
+ ...isFeatureEnabled("StrictNameAndAddressValidationV4") ? nameValidationRulesV4() : void 0,
305
+ ...localizedNameValidationRulesV4(isFeatureEnabled, country)
306
+ });
307
+ //#endregion
308
+ //#region src/components/Individual/forms/IdDocumentUpload/types.ts
309
+ var onfidoDocumentTypeMapping = [
310
+ {
311
+ id: "driversLicense",
312
+ name: "driversLicense",
313
+ hasBackPage: true
314
+ },
315
+ {
316
+ id: "identityCard",
317
+ name: "identityCard",
318
+ hasBackPage: true
319
+ },
320
+ {
321
+ id: "passport",
322
+ name: "passport",
323
+ hasBackPage: false
324
+ }
325
+ ];
326
+ //#endregion
327
+ //#region src/api/idNowProvider/useIdNowProvider.ts
328
+ var getIdNowProviderIdentificationStatus = async (rootLegalEntityId, baseUrl, legalEntityId) => {
329
+ return httpGet({
330
+ baseUrl,
331
+ path: `legalEntities/${rootLegalEntityId}/child/${legalEntityId}/provider/idnow/identification/status`,
332
+ errorHandler: async (response) => {
333
+ const responseData = await response;
334
+ if (responseData.status === 404) return {
335
+ status: 404,
336
+ message: responseData.detail,
337
+ errorCode: responseData.errorCode
338
+ };
339
+ }
340
+ });
341
+ };
342
+ var useIdNowIdentificationStatus = (legalEntityId, options) => {
343
+ const { rootLegalEntityId, baseUrl } = useApiContext();
344
+ return useQuery({
345
+ queryKey: legalEntityId === skipToken ? [] : ["idNowProviderIdentificationStatus", legalEntityId],
346
+ queryFn: legalEntityId === skipToken ? skipToken : () => getIdNowProviderIdentificationStatus(rootLegalEntityId.value, baseUrl.value, legalEntityId),
347
+ ...options
348
+ });
349
+ };
350
+ var idNowProviderStartIdentification = async (rootLegalEntityId, baseUrl, legalEntityId) => {
351
+ return httpPost({
352
+ baseUrl,
353
+ path: `legalEntities/${rootLegalEntityId}/child/${legalEntityId}/provider/idnow/identification/start`
354
+ });
355
+ };
356
+ var useIdNowStartIdentification = (legalEntityId, options) => {
357
+ const { rootLegalEntityId, baseUrl } = useApiContext();
358
+ return useQuery({
359
+ queryKey: legalEntityId === skipToken ? [] : ["idNowProviderStartIdentification", legalEntityId],
360
+ queryFn: legalEntityId === skipToken ? skipToken : () => idNowProviderStartIdentification(rootLegalEntityId.value, baseUrl.value, legalEntityId),
361
+ ...options
362
+ });
363
+ };
364
+ var IdNowVerificationModal_module_default = {
365
+ "idnow-header": "_idnow-header_m87oy_1",
366
+ idnowHeader: "_idnow-header_m87oy_1",
367
+ "idnow-verification-header-iframe-container": "_idnow-verification-header-iframe-container_m87oy_7",
368
+ idnowVerificationHeaderIframeContainer: "_idnow-verification-header-iframe-container_m87oy_7",
369
+ "idnow-verification-header-iframe": "_idnow-verification-header-iframe_m87oy_7",
370
+ idnowVerificationHeaderIframe: "_idnow-verification-header-iframe_m87oy_7",
371
+ "idnow-verification-header-image": "_idnow-verification-header-image_m87oy_18",
372
+ idnowVerificationHeaderImage: "_idnow-verification-header-image_m87oy_18"
373
+ };
374
+ //#endregion
375
+ //#region src/components/Individual/forms/IdNowVerificationModal/IFrameWidget.ts
376
+ var MOUNT_TIMEOUT = 10 * 1e3;
377
+ var activeWidget;
378
+ var IFrameWidget = class {
379
+ iframeUrl;
380
+ iframeElement;
381
+ mountInProgress = false;
382
+ constructor(iframeElement, url, _vendor, _sdkToken) {
383
+ try {
384
+ this.iframeUrl = new URL(url);
385
+ } catch (err) {
386
+ throw new AdyenKycSdkError("WIDGET_URL_MALFORMED", err);
387
+ }
388
+ this.iframeElement = iframeElement;
389
+ }
390
+ unmount() {
391
+ if (this.mountInProgress) throw new AdyenKycSdkError("Cannot unmount widget, mounting is still in progress");
392
+ this.iframeElement.remove();
393
+ activeWidget = null;
394
+ }
395
+ async mount() {
396
+ if (activeWidget) throw new AdyenKycSdkError(`You can only have one ${this.constructor.name} mounted at a time`);
397
+ activeWidget = this;
398
+ if (this.mountInProgress) throw new AdyenKycSdkError("Cannot mount widget, mounting is already in progress");
399
+ this.mountInProgress = true;
400
+ try {
401
+ await new Promise((resolve, reject) => {
402
+ const timeoutId = setTimeout(() => {
403
+ this.mountInProgress = false;
404
+ reject(new AdyenKycSdkError("WIDGET_TIMEOUT"));
405
+ }, MOUNT_TIMEOUT);
406
+ const cancelTimeout = () => {
407
+ if (timeoutId) clearTimeout(timeoutId);
408
+ };
409
+ this.iframeElement.addEventListener("load", () => {
410
+ cancelTimeout();
411
+ this.mountInProgress = false;
412
+ resolve();
413
+ });
414
+ requestAnimationFrame(() => {
415
+ try {
416
+ this.iframeElement.setAttribute("src", this.iframeUrl.href);
417
+ } catch (ex) {
418
+ cancelTimeout();
419
+ this.mountInProgress = false;
420
+ reject(ex);
421
+ }
422
+ });
423
+ });
424
+ } catch (err) {
425
+ throw new AdyenKycSdkError("WIDGET_LAUNCH_FAILED", err);
426
+ }
427
+ }
428
+ async mountAndWaitForResponse() {
429
+ await this.mount();
430
+ }
431
+ };
432
+ //#endregion
433
+ //#region src/components/Individual/forms/IdNowVerificationModal/IdNowVerificationModal.tsx
434
+ var passportFrontGreenImage$1 = lazy(() => import("./passport-front-green-BWuD3-Fs.js"));
435
+ /**
436
+ * Checks if the IDnow identification status is considered successful.
437
+ * @param status - The status object from the IDnow provider.
438
+ * @returns True if the provider status is 'SUCCESS', 'SUCCESS_DATA_CHANGED', or 'REVIEW_PENDING'.
439
+ */
440
+ var isIdNowSuccessful = (status) => {
441
+ const providerStatus = status?.providerStatus;
442
+ return providerStatus === "SUCCESS" || providerStatus === "SUCCESS_DATA_CHANGED" || providerStatus === "REVIEW_PENDING";
443
+ };
444
+ var IdNowVerificationModal = ({ handleFinish }) => {
445
+ const { t } = useTranslation(["individual", "common"]);
446
+ const [isConfirmPresented, setIsConfirmPresented] = useState$1(false);
447
+ const [genericError, setGenericError] = useState$1(false);
448
+ const widgetContainerRef = useRef$1(null);
449
+ const iFrameRef = useRef$1(null);
450
+ const iFrameWidgetRef = useRef$1(null);
451
+ const [page, setPage] = useState$1(1);
452
+ const queryClient = useQueryClient();
453
+ const { showToast } = useToastContext();
454
+ const { data: idNowStatus, isLoading: isStatusLoading, isError: isStatusError, refetch: refetchIdNowIdentificationStatus } = useIdNowIdentificationStatus(idNowModalChildEntityId.value?.id ?? skipToken, {
455
+ enabled: !!idNowModalChildEntityId.value?.id,
456
+ refetchOnMount: "always",
457
+ refetchInterval: (query) => {
458
+ if (query.state.status === "error") return false;
459
+ return 1e4;
460
+ },
461
+ retry: (failureCount, error) => {
462
+ if ("status" in error && (error.status === 404 || error.status === 500)) return false;
463
+ return failureCount < 3;
464
+ }
465
+ });
466
+ const { data: idNowStart, isLoading, isError: idNowStartError, refetch: refetchIdNowStartIdentification } = useIdNowStartIdentification(idNowModalChildEntityId.value?.id ?? skipToken, { enabled: !!idNowModalChildEntityId.value?.id && page === 2 });
467
+ const handleDismiss = () => {
468
+ setIsConfirmPresented(true);
469
+ };
470
+ const handleCancelDismiss = () => {
471
+ setIsConfirmPresented(false);
472
+ };
473
+ const handleConfirmDismiss = () => {
474
+ setPage(1);
475
+ setGenericError(false);
476
+ setIsConfirmPresented(false);
477
+ showIdNowModal.value = false;
478
+ if (idNowStartError && idNowModalChildEntityId.value?.id) queryClient.resetQueries({ queryKey: ["idNowProviderStartIdentification", idNowModalChildEntityId.value?.id] });
479
+ idNowModalChildEntityId.value = void 0;
480
+ iFrameWidgetRef.current?.unmount();
481
+ iFrameRef.current?.remove();
482
+ if (idNowPostSubmit.value) handleFinish?.();
483
+ idNowPostSubmit.value = false;
484
+ };
485
+ if (idNowStatus?.status === "finished") {
486
+ if (isIdNowSuccessful(idNowStatus)) {
487
+ idNowPostSubmit.value = true;
488
+ showToast({
489
+ label: t(($) => $["successfullyUpdatedDetails"], { ns: "common" }),
490
+ variant: "success"
491
+ });
492
+ handleConfirmDismiss();
493
+ } else if (page === 2) handleConfirmDismiss();
494
+ }
495
+ if (!isLoading && idNowStartError) {
496
+ setGenericError(true);
497
+ setPage(1);
498
+ }
499
+ const initializeIdNowWidget = useCallback$1(async (url) => {
500
+ const container = widgetContainerRef.current;
501
+ if (!container) return;
502
+ const iFrame = document.createElement("iframe");
503
+ iFrameRef.current = iFrame;
504
+ iFrame.setAttribute("allowFullscreen", "true");
505
+ iFrame.setAttribute("name", "idnow");
506
+ iFrame.classList.add(IdNowVerificationModal_module_default.idnowVerificationHeaderIframe);
507
+ iFrame.setAttribute("height", "800");
508
+ iFrame.setAttribute("allow", "camera *;microphone *;geolocation *;clipboard-read *;clipboard-write *");
509
+ container.appendChild(iFrame);
510
+ try {
511
+ iFrameWidgetRef.current = new IFrameWidget(iFrame, url, "idnow", "");
512
+ await iFrameWidgetRef.current.mountAndWaitForResponse();
513
+ } catch (err) {
514
+ console.error("Error occurred:", err);
515
+ setGenericError(true);
516
+ setPage(1);
517
+ }
518
+ }, []);
519
+ useEffect$1(() => {
520
+ if (page === 2 && !isLoading && idNowStart && idNowStart?.url) (async () => {
521
+ await refetchIdNowIdentificationStatus();
522
+ await initializeIdNowWidget(idNowStart.url);
523
+ })();
524
+ return () => {
525
+ iFrameWidgetRef.current?.unmount();
526
+ iFrameRef.current?.remove();
527
+ };
528
+ }, [
529
+ isLoading,
530
+ page,
531
+ initializeIdNowWidget,
532
+ refetchIdNowIdentificationStatus,
533
+ idNowStart
534
+ ]);
535
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [!isStatusLoading && /* @__PURE__ */ jsxs(Modal, {
536
+ size: page === 2 ? "large" : "medium",
537
+ showCloseButton: !isLoading && !isStatusLoading,
538
+ onClose: handleDismiss,
539
+ ariaLabel: t(($) => $["identityVerification"]),
540
+ children: [page === 1 && /* @__PURE__ */ jsx("div", {
541
+ className: IdNowVerificationModal_module_default.idnowHeader,
542
+ children: /* @__PURE__ */ jsx(LandingLayout, {
543
+ media: /* @__PURE__ */ jsx(Image, {
544
+ className: IdNowVerificationModal_module_default.idnowVerificationHeaderImage,
545
+ lazyLoadedImage: passportFrontGreenImage$1
546
+ }),
547
+ title: t(($) => $["identityVerification"]),
548
+ description: /* @__PURE__ */ jsxs(Fragment$1, { children: [
549
+ t(($) => $["idNowDescription"], { ns: "individual" }),
550
+ /* @__PURE__ */ jsx("br", {}),
551
+ /* @__PURE__ */ jsx("br", {}),
552
+ getIndividualLegalEntityName(idNowModalChildEntityId.value) && t(($) => $["idNowDescriptionName"], {
553
+ ns: "individual",
554
+ name: getIndividualLegalEntityName(idNowModalChildEntityId.value)
555
+ })
556
+ ] }),
557
+ error: !isLoading && (genericError || isStatusError) ? /* @__PURE__ */ jsx(Alert, {
558
+ variant: "error",
559
+ title: t(($) => $["thereWasAnErrorTryAgain"], { ns: "common" })
560
+ }) : void 0,
561
+ actions: /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(Button, {
562
+ onClick: async () => {
563
+ setGenericError(false);
564
+ setPage(2);
565
+ await refetchIdNowStartIdentification();
566
+ },
567
+ disabled: isLoading || isStatusLoading || idNowStatus?.status === "finished" && isIdNowSuccessful(idNowStatus),
568
+ fullWidth: true,
569
+ children: idNowStatus?.status === "pending" ? t(($) => $["continueVerification"], { ns: "common" }) : t(($) => $["startVerification"], { ns: "common" })
570
+ }), /* @__PURE__ */ jsx(Button, {
571
+ disabled: isLoading || isStatusLoading,
572
+ variant: "tertiary",
573
+ onClick: handleConfirmDismiss,
574
+ fullWidth: true,
575
+ children: idNowPostSubmit.value ? t(($) => $["finishLater"], { ns: "common" }) : t(($) => $["editDetails"], { ns: "common" })
576
+ })] })
577
+ })
578
+ }), page === 2 && (isLoading ? /* @__PURE__ */ jsx(Loader, {}) : /* @__PURE__ */ jsx("div", {
579
+ ref: widgetContainerRef,
580
+ className: IdNowVerificationModal_module_default.idnowVerificationHeaderIframeContainer
581
+ }))]
582
+ }), isConfirmPresented && /* @__PURE__ */ jsx(Confirm, {
583
+ confirmText: t(($) => $["leave"], { ns: "common" }),
584
+ onCancel: handleCancelDismiss,
585
+ onConfirm: handleConfirmDismiss,
586
+ title: t(($) => $["unsavedChanges"], { ns: "common" })
587
+ })] });
588
+ };
589
+ //#endregion
590
+ //#region src/components/Individual/forms/IdVerification/idVerificationProviderId.ts
591
+ var idVerificationProviderId = signal();
592
+ //#endregion
593
+ //#region src/utils/areArraysDifferent.ts
594
+ var areArraysDifferent = (a = [], b = []) => {
595
+ if (a.length !== b.length) return true;
596
+ const sortedA = [...a].sort();
597
+ const sortedB = [...b].sort();
598
+ return sortedA.some((item, index) => item !== sortedB[index]);
599
+ };
600
+ //#endregion
601
+ //#region src/utils/useModalAction.ts
602
+ var useModalAction = () => {
603
+ const userEvents = useAnalyticsContext();
604
+ return useCallback$1((label, actionType, setModalState, callback) => {
605
+ userEvents.addPageEvent(actionType === "open" ? "Opened modal" : actionType === "close" ? "Closed modal" : "Clicked button", {
606
+ actionType,
607
+ label
608
+ });
609
+ setModalState(actionType === "open");
610
+ callback?.();
611
+ }, [userEvents]);
612
+ };
613
+ //#endregion
614
+ //#region src/components/Individual/helpers/roleUtils.ts
615
+ var calculateRoles = (data) => {
616
+ return [
617
+ {
618
+ isApplicable: data?.signatoryQuestionnaire?.isSignatory === GuidanceQuestionValues.YES,
619
+ role: DecisionMakerTypes.SIGNATORY
620
+ },
621
+ {
622
+ isApplicable: data?.uboQuestionnaire?.isOwner === GuidanceQuestionValues.YES,
623
+ role: DecisionMakerTypes.OWNER
624
+ },
625
+ {
626
+ isApplicable: data?.uboQuestionnaire?.isControllingPerson === GuidanceQuestionValues.YES,
627
+ role: DecisionMakerTypes.CONTROLLING_PERSON
628
+ },
629
+ {
630
+ isApplicable: data?.uboQuestionnaire?.isDirector === GuidanceQuestionValues.YES,
631
+ role: DecisionMakerTypes.DIRECTOR
632
+ }
633
+ ].filter(({ isApplicable }) => isApplicable).map(({ role }) => role);
634
+ };
635
+ //#endregion
636
+ //#region src/components/Individual/helpers/shouldShowMotionCapture.ts
637
+ var showIndividualMotionCapture = signal(void 0);
638
+ var setShowIndividualMotionCapture = (showMotionCapture) => {
639
+ showIndividualMotionCapture.value = showMotionCapture;
640
+ };
641
+ var hasMotionCaptureScenario = signal(void 0);
642
+ var setHasMotionCaptureScenario = (scenarios) => {
643
+ hasMotionCaptureScenario.value = scenarios?.some((scenario) => scenario === Scenarios.L_MOTION || scenario === Scenarios.L1_ID);
644
+ };
645
+ var allowedRolesForMotionCapture = [DecisionMakerTypes.SIGNATORY];
646
+ var shouldShowMotionCapture = ({ capabilities, userRoles, taskType, hasMotionScenario, hasLiveSelfieError, isInvitedEntity = false }) => {
647
+ if (hasLiveSelfieError) return true;
648
+ if (isInvitedEntity) return shouldShowMotionCaptureForInvitedEntity({
649
+ capabilities,
650
+ userRoles
651
+ });
652
+ if (!hasMotionScenario) return false;
653
+ const isIndividual = taskType === TaskTypes.INDIVIDUAL;
654
+ const hasRequiredRole = userRoles?.some((role) => allowedRolesForMotionCapture.includes(role));
655
+ const hasRequiredCapability = capabilities?.issueBankAccount?.requested ?? false;
656
+ return (isIndividual || hasRequiredRole) && hasRequiredCapability;
657
+ };
658
+ var shouldShowMotionCaptureForInvitedEntity = ({ capabilities, userRoles }) => {
659
+ if (!userRoles || !userRoles.includes("signatory") || capabilities === void 0) return false;
660
+ const rootCapabilitiesToShowMotionCaptureFor = [
661
+ "issueBankAccount",
662
+ "receiveFromThirdParty",
663
+ "sendToThirdParty"
664
+ ];
665
+ return Object.keys(capabilities).some((capabilityName) => rootCapabilitiesToShowMotionCaptureFor.includes(capabilityName) && capabilities[capabilityName]?.requested);
666
+ };
667
+ //#endregion
668
+ //#region src/components/Shared/fields/IdFieldTypeSelector/countryIdNumberTypes.ts
669
+ var individualIdNumberOptions = { [CountryCodes.Spain]: [{
670
+ id: "dni",
671
+ name: "dni"
672
+ }, {
673
+ id: "nie",
674
+ name: "nie"
675
+ }] };
676
+ var additionallIdNumberOptions = {
677
+ [CountryCodes.NewZealand]: [{
678
+ id: "driversLicense",
679
+ name: "driversLicense"
680
+ }, {
681
+ id: "passport",
682
+ name: "passportNumber"
683
+ }],
684
+ [CountryCodes.HongKong]: [
685
+ {
686
+ id: "proofOfIdentityCard",
687
+ name: "stateIssuedProofOfIdentityCard"
688
+ },
689
+ {
690
+ id: "driversLicense",
691
+ name: "driversLicense"
692
+ },
693
+ {
694
+ id: "passport",
695
+ name: "passportNumber"
696
+ }
697
+ ],
698
+ [CountryCodes.Australia]: [{
699
+ id: "driversLicense",
700
+ name: "driversLicense"
701
+ }, {
702
+ id: "passport",
703
+ name: "passportNumber"
704
+ }]
705
+ };
706
+ //#endregion
707
+ //#region src/components/Shared/fields/IdFieldTypeSelector/IndividualIdNumberTypeSelector.tsx
708
+ function IndividualIdNumberTypeSelector({ country, selected, handleFieldChange }) {
709
+ const { t } = useTranslation("common");
710
+ const options = useMemo$1(() => individualIdNumberOptions[country] ?? [], [country]);
711
+ useEffect$1(() => {
712
+ if (!selected && options.length > 0) handleFieldChange(options[0].id);
713
+ }, [
714
+ options,
715
+ selected,
716
+ handleFieldChange
717
+ ]);
718
+ if (options.length <= 1) return null;
719
+ return /* @__PURE__ */ jsx(Field, {
720
+ el: "fieldset",
721
+ name: "individualIdNumberType",
722
+ label: t(($) => $["whichTypeOfIdNumberDoYouHave"]),
723
+ children: (childProps) => /* @__PURE__ */ jsx(RadioGroup, {
724
+ ...childProps,
725
+ name: "individualIdNumberType",
726
+ items: options,
727
+ value: selected,
728
+ onChange: (value) => handleFieldChange(value)
729
+ })
730
+ });
731
+ }
732
+ //#endregion
733
+ //#region src/components/Shared/PatriotActDisclosure/PatriotActDisclosure.tsx
734
+ var PatriotActDisclosure = () => {
735
+ const { t } = useTranslation("common");
736
+ return /* @__PURE__ */ jsx("div", {
737
+ className: "u-margin-bottom-12",
738
+ children: /* @__PURE__ */ jsx(Typography, {
739
+ variant: "caption",
740
+ color: "secondary",
741
+ children: t(($) => $["toHelpTheGovernmentFight"])
742
+ })
743
+ });
744
+ };
745
+ //#endregion
746
+ //#region src/components/Individual/helpers/isDecisionMakerTask.ts
747
+ var isDecisionMakerTask = (taskType) => taskType === TaskTypes.DECISION_MAKER || taskType === TaskTypes.TRUST_MEMBER_COMPANY_OWNER || taskType === TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_COMPANY_OWNER;
748
+ //#endregion
749
+ //#region src/components/Individual/fields/DriversLicense/DriversLicense.tsx
750
+ var DriversLicense = ({ country, driversLicense, onIssuerStateChange, onLicenseNumberInput, onLicenseNumberBlur, onCardNumberInput, onCardNumberBlur, formUtils, isValid, errorMessages, guidanceText, shouldValidate }) => {
751
+ const { t: commonT } = useTranslation("common");
752
+ const { t: individualT } = useTranslation("individual");
753
+ const { dataset: auStates } = useDataset(datasetIdentifier.state("AU"));
754
+ const isCountryAustralia = country === CountryCodes.Australia;
755
+ const isCountryNewZealand = country === CountryCodes.NewZealand;
756
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [
757
+ isCountryAustralia && onIssuerStateChange !== void 0 && /* @__PURE__ */ jsx(Field, {
758
+ name: "issuerState",
759
+ label: formUtils.getLabel("issuerState"),
760
+ isValid: isValid.issuerState,
761
+ errorMessage: errorMessages.issuerState,
762
+ children: (childProps) => /* @__PURE__ */ jsx(Select, {
763
+ ...childProps,
764
+ name: "issuerState",
765
+ onChange: onIssuerStateChange,
766
+ isInvalid: false,
767
+ items: auStates,
768
+ placeholder: commonT(($) => $["selectState"]),
769
+ selected: driversLicense.issuerState
770
+ })
771
+ }),
772
+ /* @__PURE__ */ jsxs("div", {
773
+ className: "adyen-kyc-field-wrapper",
774
+ children: [/* @__PURE__ */ jsx(MaskedInput, {
775
+ name: "idNumber",
776
+ type: "text",
777
+ label: formUtils.getLabel("idNumber", "idNumber"),
778
+ formatGuidance: guidanceText.idNumber,
779
+ errorMessage: errorMessages.idNumber,
780
+ shouldValidate,
781
+ isValid: Boolean(isValid.idNumber),
782
+ "aria-required": formUtils.isRequiredField("idNumber"),
783
+ "aria-invalid": !isValid.idNumber,
784
+ onBlur: onLicenseNumberBlur,
785
+ readonly: formUtils.isReadOnly("idNumber"),
786
+ value: driversLicense.idNumber ?? "",
787
+ onInput: onLicenseNumberInput,
788
+ acceptObscuredValue: formUtils?.isObscured("idNumber"),
789
+ ...formUtils.getMask("idNumber")
790
+ }), /* @__PURE__ */ jsx(MaskedInput, {
791
+ name: "licenseCardNumber",
792
+ type: "text",
793
+ label: formUtils.getLabel("licenseCardNumber", "licenseCardNumber"),
794
+ formatGuidance: guidanceText.licenseCardNumber,
795
+ errorMessage: errorMessages.licenseCardNumber,
796
+ shouldValidate,
797
+ isValid: Boolean(isValid.licenseCardNumber),
798
+ "aria-required": formUtils.isRequiredField("licenseCardNumber"),
799
+ "aria-invalid": !isValid.licenseCardNumber,
800
+ onBlur: onCardNumberBlur,
801
+ readonly: formUtils.isReadOnly("licenseCardNumber"),
802
+ value: driversLicense.licenseCardNumber ?? "",
803
+ onInput: onCardNumberInput,
804
+ acceptObscuredValue: formUtils?.isObscured("licenseCardNumber"),
805
+ ...formUtils.getMask("licenseCardNumber")
806
+ })]
807
+ }),
808
+ (isCountryAustralia || isCountryNewZealand) && /* @__PURE__ */ jsx(ContextGuidance, {
809
+ title: individualT(($) => $["whereCanIFindTheseNumbersOnMyDriversLicense"]),
810
+ content: /* @__PURE__ */ jsxs(Fragment$1, { children: [isCountryAustralia ? `${individualT(($) => $["whereToFindNumbersOnDriversLicense"])}\u00A0` : `${individualT(($) => $["whereToFindNumbersOnDriversLicense__NZ"])}\u00A0`, /* @__PURE__ */ jsx(Link, {
811
+ href: isCountryAustralia ? "https://www.usi.gov.au/about/forms-id/drivers-licence" : "https://www.nzta.govt.nz/driver-licences/getting-a-licence/your-driver-licence-explained/",
812
+ children: individualT(($) => $["iStillCantFindIt"])
813
+ })] }),
814
+ titleId: "whereCanIFindTheseNumbersOnMyDriversLicense",
815
+ contentId: "whereToFindNumbersOnDriversLicense"
816
+ })
817
+ ] });
818
+ };
819
+ //#endregion
820
+ //#region src/components/Individual/forms/AdditionalPersonalDetails/Identity/TypeOfIdentity/index.tsx
821
+ var TypeOfIdentity = ({ availableIdentityTypesOptions, selectedIdentityType, setSelectedIdentityType, label, errorMessage, isValid }) => {
822
+ const { t } = useTranslation(["common", "individual"]);
823
+ return /* @__PURE__ */ jsx(Field, {
824
+ name: "typeOfIdentity",
825
+ label,
826
+ errorMessage,
827
+ isValid,
828
+ helper: t(($) => $["typeOfIdentitySubtitle"], { ns: "individual" }),
829
+ children: (childProps) => /* @__PURE__ */ jsx(Select, {
830
+ ...childProps,
831
+ name: "typeOfIdentity",
832
+ isInvalid: false,
833
+ items: availableIdentityTypesOptions.map(({ id, name }) => ({
834
+ id,
835
+ name: t(($) => $[name])
836
+ })),
837
+ placeholder: t(($) => $["selectOne"]),
838
+ selected: selectedIdentityType,
839
+ onChange: (event) => setSelectedIdentityType(event.target.value)
840
+ })
841
+ });
842
+ };
843
+ //#endregion
844
+ //#region src/components/Individual/forms/AdditionalPersonalDetails/Identity/validate.ts
845
+ var identityValidationRules = (country) => {
846
+ switch (country) {
847
+ case CountryCodes.Australia: return {
848
+ typeOfIdentity: [isTruthyValidator],
849
+ issuerState: [isTruthyValidator]
850
+ };
851
+ case CountryCodes.HongKong:
852
+ case CountryCodes.NewZealand: return { typeOfIdentity: [isTruthyValidator] };
853
+ default: return {};
854
+ }
855
+ };
856
+ //#endregion
857
+ //#region src/components/Individual/forms/AdditionalPersonalDetails/Identity/Identity.tsx
858
+ function Identity(props) {
859
+ const { additionalPersonalDetails, country, idNumberType, handleFieldChange } = props;
860
+ const { data, errors, fieldValidationErrors, formVerificationErrors, id: dataStoreId, labels, obscuredFields, optionalFields, requiredFields, readOnlyFields, shouldValidate, validators, valid } = additionalPersonalDetails;
861
+ const initialFormUtilProps = useMemo$1(() => {
862
+ return {
863
+ validators: {
864
+ ...identityValidationRules(country),
865
+ ...validators
866
+ },
867
+ labels,
868
+ obscuredFields,
869
+ readOnlyFields,
870
+ optionalFields,
871
+ requiredFields
872
+ };
873
+ }, [
874
+ country,
875
+ validators,
876
+ labels,
877
+ obscuredFields,
878
+ readOnlyFields,
879
+ optionalFields,
880
+ requiredFields
881
+ ]);
882
+ const licenseCardNumberMetaData = useMemo$1(() => {
883
+ return resolveFieldMetadata(licenseCardNumberDefaultConfig[country], {}, licenseCardNumberDefaultMetadata);
884
+ }, [country]);
885
+ const idNumberMetadata = useMemo$1(() => {
886
+ return resolveFieldMetadata(defaultFieldConfig[country], { idNumberType: data?.typeOfIdentity }, defaultFieldMetadata$1);
887
+ }, [country, data?.typeOfIdentity]);
888
+ const mergedProps = useMemo$1(() => {
889
+ return mergeFieldMetadataIntoProps("idNumber", idNumberMetadata, mergeFieldMetadataIntoProps("licenseCardNumber", licenseCardNumberMetaData, initialFormUtilProps));
890
+ }, [
891
+ idNumberMetadata,
892
+ initialFormUtilProps,
893
+ licenseCardNumberMetaData
894
+ ]);
895
+ const { t } = useTranslation("common");
896
+ const formUtils = useMemo$1(() => createFormUtils(mergedProps, t), [mergedProps, t]);
897
+ const { form } = useFormContext();
898
+ const defaultIdNumber = form?.defaultData?.additionalPersonalDetails?.idNumber;
899
+ const ssnType = getSSNType(formVerificationErrors, defaultIdNumber);
900
+ const today = /* @__PURE__ */ new Date();
901
+ const maxExpiryDateSelection = new Date((/* @__PURE__ */ new Date()).setFullYear(today.getFullYear() + 10));
902
+ const isCountryAustralia = country === CountryCodes.Australia;
903
+ const isCountryNewZealand = country === CountryCodes.NewZealand;
904
+ useEffect$1(() => {
905
+ if (data?.typeOfIdentity === "nationalIdNumber") handleFieldChange("typeOfIdentity")(void 0);
906
+ }, [data?.typeOfIdentity, handleFieldChange]);
907
+ if (!handleFieldChange) return;
908
+ const identityProps = getFieldProps(additionalPersonalDetails, idNumberFields);
909
+ if (country === CountryCodes.UnitedStates || country === CountryCodes.PuertoRico) return /* @__PURE__ */ jsx(IdentityNumber, {
910
+ ...identityProps,
911
+ errors,
912
+ dataStoreId,
913
+ country,
914
+ formVerificationErrors,
915
+ handleFieldChange,
916
+ idNumberType: ssnType
917
+ });
918
+ return COUNTRIES_WHICH_USE_MULTIPLE_IDENTITY_TYPES.includes(country) ? /* @__PURE__ */ jsxs(Fragment$1, { children: [
919
+ /* @__PURE__ */ jsx(TypeOfIdentity, {
920
+ availableIdentityTypesOptions: additionallIdNumberOptions?.[country],
921
+ selectedIdentityType: data?.typeOfIdentity,
922
+ setSelectedIdentityType: handleFieldChange("typeOfIdentity"),
923
+ label: formUtils.getLabel("typeOfIdentity"),
924
+ isValid: Boolean(valid?.typeOfIdentity),
925
+ errorMessage: formUtils.getErrorMessage("typeOfIdentity", errors, fieldValidationErrors)
926
+ }),
927
+ (isCountryAustralia || isCountryNewZealand) && data?.typeOfIdentity === "passport" && /* @__PURE__ */ jsx(MaskedInput, {
928
+ name: "idNumber",
929
+ type: "text",
930
+ label: formUtils.getLabel("idNumber", "idNumber"),
931
+ formatGuidance: translateTranslatable(t, idNumberMetadata.guidanceText),
932
+ errorMessage: formUtils.getErrorMessage("idNumber", errors, fieldValidationErrors),
933
+ shouldValidate,
934
+ isValid: Boolean(valid?.idNumber),
935
+ "aria-required": formUtils.isRequiredField("idNumber"),
936
+ "aria-invalid": !valid?.idNumber,
937
+ onBlur: handleFieldChange("idNumber", "blur"),
938
+ readonly: formUtils.isReadOnly("idNumber"),
939
+ value: data?.idNumber ?? "",
940
+ onInput: handleFieldChange("idNumber", "input"),
941
+ acceptObscuredValue: formUtils?.isObscured("idNumber"),
942
+ ...formUtils.getMask("idNumber")
943
+ }),
944
+ isCountryNewZealand && data?.typeOfIdentity === "passport" && /* @__PURE__ */ jsx(Field, {
945
+ name: "expiryDate",
946
+ label: formUtils.getLabel("passportExpiryDate"),
947
+ errorMessage: formUtils.getErrorMessage("expiryDate", errors, fieldValidationErrors),
948
+ isValid: valid?.expiryDate,
949
+ children: (childProps) => /* @__PURE__ */ jsx(InputDate, {
950
+ ...childProps,
951
+ name: "expiryDate",
952
+ value: data?.expiryDate,
953
+ placeholder: t(($) => $["datePlaceholder"]),
954
+ readonly: formUtils.isReadOnly("expiryDate"),
955
+ onInput: handleFieldChange("expiryDate", "input"),
956
+ onBlur: handleFieldChange("expiryDate", "blur"),
957
+ "aria-required": true,
958
+ "aria-invalid": !valid?.expiryDate,
959
+ min: formatDateObj(today),
960
+ max: formatDateObj(maxExpiryDateSelection)
961
+ })
962
+ }),
963
+ (isCountryAustralia || isCountryNewZealand) && data?.typeOfIdentity === "driversLicense" && /* @__PURE__ */ jsx(DriversLicense, {
964
+ country,
965
+ driversLicense: data,
966
+ onIssuerStateChange: handleFieldChange("issuerState"),
967
+ onLicenseNumberInput: handleFieldChange("idNumber", "input"),
968
+ onLicenseNumberBlur: handleFieldChange("idNumber", "blur"),
969
+ onCardNumberInput: handleFieldChange("licenseCardNumber", "input"),
970
+ onCardNumberBlur: handleFieldChange("licenseCardNumber", "blur"),
971
+ formUtils,
972
+ isValid: {
973
+ idNumber: Boolean(valid?.idNumber),
974
+ licenseCardNumber: Boolean(valid?.licenseCardNumber),
975
+ issuerState: Boolean(valid?.issuerState)
976
+ },
977
+ guidanceText: {
978
+ idNumber: translateTranslatable(t, idNumberMetadata.guidanceText),
979
+ licenseCardNumber: translateTranslatable(t, licenseCardNumberMetaData.guidanceText)
980
+ },
981
+ errorMessages: {
982
+ idNumber: formUtils.getErrorMessage("idNumber", errors, fieldValidationErrors),
983
+ licenseCardNumber: formUtils.getErrorMessage("licenseCardNumber", errors, fieldValidationErrors),
984
+ issuerState: formUtils.getErrorMessage("issuerState", errors, fieldValidationErrors)
985
+ },
986
+ shouldValidate
987
+ }),
988
+ country === CountryCodes.HongKong && /* @__PURE__ */ jsx(MaskedInput, {
989
+ name: "idNumber",
990
+ type: "text",
991
+ label: formUtils.getLabel("idNumber", "idNumber"),
992
+ formatGuidance: translateTranslatable(t, idNumberMetadata.guidanceText),
993
+ errorMessage: formUtils.getErrorMessage("idNumber", errors, fieldValidationErrors),
994
+ shouldValidate,
995
+ isValid: Boolean(valid?.idNumber),
996
+ "aria-required": formUtils.isRequiredField("idNumber"),
997
+ "aria-invalid": Boolean(!valid?.idNumber),
998
+ onBlur: handleFieldChange("idNumber", "blur"),
999
+ readonly: formUtils.isReadOnly("idNumber"),
1000
+ value: data?.idNumber ?? "",
1001
+ onInput: handleFieldChange("idNumber", "input"),
1002
+ acceptObscuredValue: formUtils?.isObscured("idNumber"),
1003
+ ...formUtils.getMask("idNumber")
1004
+ })
1005
+ ] }) : /* @__PURE__ */ jsx(IdentityNumber, {
1006
+ ...identityProps,
1007
+ errors,
1008
+ country,
1009
+ dataStoreId,
1010
+ idNumberType,
1011
+ handleFieldChange
1012
+ });
1013
+ }
1014
+ //#endregion
1015
+ //#region src/components/Individual/forms/AdditionalPersonalDetails/Identity/Identity.types.ts
1016
+ var additionalIdentityInfoFields = [
1017
+ "typeOfIdentity",
1018
+ "licenseCardNumber",
1019
+ "issuerState",
1020
+ "expiryDate"
1021
+ ];
1022
+ //#endregion
1023
+ //#region src/components/Individual/forms/AdditionalPersonalDetails/AdditionalPersonalDetails.tsx
1024
+ var LazyJpAddress = lazy(async () => (await import("./JpAddress-CCm4vAW3.js")).JpAddress);
1025
+ var additionalPersonalDetailsFields = [
1026
+ "birthDate",
1027
+ ...idNumberFields,
1028
+ ...additionalIdentityInfoFields,
1029
+ "country",
1030
+ "nationality",
1031
+ "placeOfBirth",
1032
+ ...addressFields,
1033
+ ...JP_ADDRESS_REQUIRED_FIELDS,
1034
+ "taxInformation"
1035
+ ];
1036
+ function AdditionalPersonalDetails(props) {
1037
+ const { t } = useTranslation(["common", "individual"]);
1038
+ const allowedCountries = useAllowedCountries();
1039
+ const [showLegalRepresentativePrompt, setShowLegalRepresentativePrompt] = useState$1(false);
1040
+ const { isSettingEnabled } = useSettingsContext();
1041
+ const { isFeatureEnabled } = useToggleContext();
1042
+ const { form } = useFormContext();
1043
+ const isAgeVerificationFeatureEnabled = isFeatureEnabled("EnableAgeVerification");
1044
+ const isSettingsEnforceLegalAgeEnabled = isSettingEnabled(SettingNames.EnforceLegalAge);
1045
+ const { country: defaultCountry, data, formVerificationErrors, heading, shouldValidate, valid, fieldValidationErrors, errors = {}, taskType, handleFieldChange } = props;
1046
+ const country = data?.country ?? defaultCountry;
1047
+ const isIndividual = taskType === TaskTypes.INDIVIDUAL;
1048
+ const taxIdNumberType = getDefaultTaxIdNumberType(form.data?.additionalPersonalDetails?.taxInformation, country, LegalEntityTypes.INDIVIDUAL, isFeatureEnabled("EnableUnifiedCompanySearch"));
1049
+ const showField = (fieldKeys) => fieldKeys.some((field) => formUtils.isRequiredField(field) || formUtils.isOptionalField(field));
1050
+ const formUtils = createFormUtils(mergeFieldMetadataIntoProps("taxInformation", resolveFieldMetadata(taxInformationDefaultFieldConfig[country], {
1051
+ taxIdNumberType,
1052
+ companyType: LegalEntityTypes.INDIVIDUAL
1053
+ }, taxInformationDefaultFieldMetadata), props), t);
1054
+ const birthDateErrorMessage = formUtils.getErrorMessage("birthDate", errors, fieldValidationErrors);
1055
+ const addressProps = getFieldProps(props, addressFields);
1056
+ const jpAddressProps = getFieldProps(props, JP_ADDRESS_REQUIRED_FIELDS);
1057
+ if (!handleFieldChange) return;
1058
+ const handleBirthDateChange = (event) => {
1059
+ handleFieldChange("birthDate", "blur")(event);
1060
+ if (isAgeVerificationFeatureEnabled && !isSettingsEnforceLegalAgeEnabled && isLegalRepresentativeNeeded(event.currentTarget.value, country, taskType)) setShowLegalRepresentativePrompt(true);
1061
+ };
1062
+ const isRootIndividual = taskType === TaskTypes.INDIVIDUAL;
1063
+ const canEditCountry = isSettingEnabled(SettingNames.AllowPrefilledCountryEdit) || isDecisionMakerTask(taskType);
1064
+ return /* @__PURE__ */ jsxs("form", {
1065
+ "aria-describedby": "ariaErrorField",
1066
+ children: [
1067
+ heading && /* @__PURE__ */ jsx(Header, { title: heading }),
1068
+ /* @__PURE__ */ jsx(ErrorPanel, {
1069
+ verificationErrors: formVerificationErrors,
1070
+ validationErrors: fieldValidationErrors,
1071
+ formUtils,
1072
+ id: "ariaErrorField"
1073
+ }),
1074
+ /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx(Typography, {
1075
+ el: "h3",
1076
+ variant: "title",
1077
+ children: t(($) => $["residentialAddress"])
1078
+ }), /* @__PURE__ */ jsx(Typography, {
1079
+ el: "p",
1080
+ variant: "body",
1081
+ children: t(($) => $["thisPersonsPrimaryAddress"], { ns: "individual" })
1082
+ })] }),
1083
+ formUtils.isRequiredField("country") && /* @__PURE__ */ jsx(CountryField, {
1084
+ data: { country },
1085
+ valid: { country: valid?.country },
1086
+ errors: { country: formUtils.getErrorMessage("country", errors, fieldValidationErrors) },
1087
+ labels: { country: formUtils.getLabel("country") },
1088
+ readonly: formUtils.isReadOnly("country") || !canEditCountry,
1089
+ allowedCountries: isRootIndividual ? allowedCountries : void 0,
1090
+ handleChangeFor: handleFieldChange
1091
+ }),
1092
+ isJapanLocalizationEnabled(isFeatureEnabled, country) ? /* @__PURE__ */ jsx(Suspense, {
1093
+ fallback: /* @__PURE__ */ jsx(Loader, {}),
1094
+ children: /* @__PURE__ */ jsx(LazyJpAddress, {
1095
+ ...jpAddressProps,
1096
+ addressType: "residentialAddress",
1097
+ errors,
1098
+ valid,
1099
+ fieldValidationErrors,
1100
+ handleFieldChange
1101
+ })
1102
+ }) : /* @__PURE__ */ jsx(Address, {
1103
+ ...addressProps,
1104
+ addressType: "residentialAddress",
1105
+ errors,
1106
+ valid,
1107
+ fieldValidationErrors,
1108
+ hideCountry: true,
1109
+ labels: getAddressSchemaLabelsByCountry(country),
1110
+ shouldValidate,
1111
+ optionalFields: ["otherAddressInformation"],
1112
+ handleFieldChange
1113
+ }),
1114
+ /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx(Typography, {
1115
+ el: "h3",
1116
+ variant: "title",
1117
+ children: t(($) => $["personalIdentityDetails"], { ns: "individual" })
1118
+ }), /* @__PURE__ */ jsxs(Typography, {
1119
+ el: "p",
1120
+ variant: "body",
1121
+ children: [
1122
+ t(($) => $["weOnlyUseTheseDetailsForIdentityVerification"], { ns: "individual" }),
1123
+ " ",
1124
+ /* @__PURE__ */ jsx(Link, {
1125
+ href: "https://www.adyen.com/privacy-policy",
1126
+ external: true,
1127
+ children: t(($) => $["privacyStatement"])
1128
+ })
1129
+ ]
1130
+ })] }),
1131
+ formUtils.isRequiredField("birthDate") && /* @__PURE__ */ jsx(Field, {
1132
+ name: "birthDate",
1133
+ label: formUtils.getLabel("birthDate"),
1134
+ errorMessage: birthDateErrorMessage,
1135
+ isValid: valid?.birthDate,
1136
+ children: (childProps) => /* @__PURE__ */ jsx(InputDate, {
1137
+ ...childProps,
1138
+ name: "birthDate",
1139
+ value: data?.birthDate,
1140
+ placeholder: t(($) => $["datePlaceholder"]),
1141
+ readonly: formUtils.isReadOnly("birthDate"),
1142
+ onInput: handleFieldChange("birthDate", "input"),
1143
+ onBlur: handleBirthDateChange,
1144
+ "aria-required": true,
1145
+ "aria-invalid": !valid?.birthDate,
1146
+ max: formatDateObj(/* @__PURE__ */ new Date())
1147
+ })
1148
+ }),
1149
+ showLegalRepresentativePrompt && /* @__PURE__ */ jsx(Confirm, {
1150
+ title: t(($) => $["legalRepresentativeForMinorIsRequired"], { ns: "individual" }),
1151
+ description: t(($) => $["becauseThisPersonIsUnderXYearsOld"], {
1152
+ ns: "individual",
1153
+ age: getAgeRangeForLegalRepresentative(country)?.max?.toString() ?? ""
1154
+ }),
1155
+ onCancel: () => {
1156
+ setShowLegalRepresentativePrompt(false);
1157
+ },
1158
+ confirmText: t(($) => $["ok"]),
1159
+ cancelText: t(($) => $["editDetails"]),
1160
+ onConfirm: () => {
1161
+ setShowLegalRepresentativePrompt(false);
1162
+ }
1163
+ }),
1164
+ /* @__PURE__ */ jsx(IndividualIdNumberTypeSelector, {
1165
+ country,
1166
+ handleFieldChange: handleFieldChange("typeOfIdentity", "input"),
1167
+ selected: data?.typeOfIdentity
1168
+ }),
1169
+ /* @__PURE__ */ jsx(Identity, {
1170
+ additionalPersonalDetails: props,
1171
+ country,
1172
+ errors,
1173
+ idNumberType: data?.typeOfIdentity,
1174
+ handleFieldChange
1175
+ }),
1176
+ showField(["taxInformation"]) && /* @__PURE__ */ jsx(TaxInformationField, {
1177
+ data: formUtils.getFieldData(form.data?.additionalPersonalDetails ?? {}, ["taxInformation"]),
1178
+ valid: formUtils.getFieldValid(form.valid?.additionalPersonalDetails ?? {}, ["taxInformation"]),
1179
+ errors: { taxInformation: formUtils.getErrorMessage("taxInformation", errors, fieldValidationErrors) },
1180
+ labels: formUtils.getFieldLabels(["taxInformation"]),
1181
+ mask: formUtils.getMask("taxInformation"),
1182
+ readonly: formUtils.isReadOnly("taxInformation"),
1183
+ shouldValidate,
1184
+ handleChangeFor: handleFieldChange,
1185
+ canExempt: false,
1186
+ country,
1187
+ entityType: LegalEntityTypes.INDIVIDUAL,
1188
+ defaultData: form.defaultData?.additionalPersonalDetails?.taxInformation
1189
+ }),
1190
+ formUtils.isRequiredField("nationality") && /* @__PURE__ */ jsx(CountryField, {
1191
+ data: { country: data?.nationality },
1192
+ valid: { country: valid?.nationality },
1193
+ name: "nationality",
1194
+ errors: { country: formUtils.getErrorMessage("nationality", errors, fieldValidationErrors) },
1195
+ labels: { country: formUtils.getLabel("nationality") },
1196
+ readonly: formUtils.isReadOnly("nationality"),
1197
+ handleChangeFor: () => handleFieldChange("nationality", "input")
1198
+ }),
1199
+ formUtils.isRequiredField("placeOfBirth") && /* @__PURE__ */ jsx(Field, {
1200
+ name: "placeOfBirth",
1201
+ label: formUtils.getLabel("placeOfBirth"),
1202
+ errorMessage: formUtils.getErrorMessage("placeOfBirth", errors, fieldValidationErrors),
1203
+ isValid: valid?.placeOfBirth,
1204
+ children: (childProps) => /* @__PURE__ */ jsx(InputText, {
1205
+ ...childProps,
1206
+ name: "placeOfBirth",
1207
+ value: data?.placeOfBirth,
1208
+ readonly: formUtils.isReadOnly("placeOfBirth"),
1209
+ onInput: handleFieldChange("placeOfBirth", "input"),
1210
+ onBlur: handleFieldChange("placeOfBirth", "blur"),
1211
+ "aria-required": true,
1212
+ "aria-invalid": !valid?.placeOfBirth
1213
+ })
1214
+ }),
1215
+ country === "US" && isIndividual ? /* @__PURE__ */ jsx(PatriotActDisclosure, {}) : void 0
1216
+ ]
1217
+ });
1218
+ }
1219
+ //#endregion
1220
+ //#region src/components/Individual/fields/NameFields/NameFields.tsx
1221
+ function NameFields(props) {
1222
+ const { formProps, fieldConfigs } = props;
1223
+ const { t } = useTranslation("common");
1224
+ const { data, handleFieldChange, errors, fieldValidationErrors } = formProps;
1225
+ if (!handleFieldChange) return;
1226
+ const formUtils = createFormUtils(formProps, t);
1227
+ return /* @__PURE__ */ jsx("div", {
1228
+ className: "adyen-kyc-field-wrapper",
1229
+ children: fieldConfigs.map(({ name, isValid, label, helper, transformInput, transformMode }) => formUtils.isRequiredField(name) && /* @__PURE__ */ jsx(Field, {
1230
+ name,
1231
+ label: formUtils.getLabel(label),
1232
+ errorMessage: formUtils.getErrorMessage(name, errors, fieldValidationErrors),
1233
+ isValid,
1234
+ helper: helper && formUtils.getLabel(helper),
1235
+ children: (childProps) => /* @__PURE__ */ jsx(InputText, {
1236
+ ...childProps,
1237
+ name,
1238
+ value: data?.[name],
1239
+ readonly: formUtils.isReadOnly(name),
1240
+ onInput: handleFieldChange(name, "input"),
1241
+ onBlur: handleFieldChange(name, "blur"),
1242
+ trimOnBlur: true,
1243
+ spellCheck: false,
1244
+ "aria-required": true,
1245
+ "aria-invalid": !isValid,
1246
+ transformInput,
1247
+ transformMode
1248
+ })
1249
+ }, name))
1250
+ });
1251
+ }
1252
+ //#endregion
1253
+ //#region src/components/Individual/fields/NameFields/types.ts
1254
+ var jaHaniNameFields = ["jaHaniFirstName", "jaHaniLastName"];
1255
+ var jaKanaNameFields = ["jaKanaFirstName", "jaKanaLastName"];
1256
+ //#endregion
1257
+ //#region src/components/Shared/fields/LocalizedNameFields/LocalizedNameFields.tsx
1258
+ var LocalizedNameFields = (props) => {
1259
+ const { errors, id, handleFieldChange, country } = props;
1260
+ const jaHaniNameProps = getFieldProps(props, jaHaniNameFields);
1261
+ const jaKanaNameProps = getFieldProps(props, jaKanaNameFields);
1262
+ const nameProps = getFieldProps(props, nameFields);
1263
+ if (country === CountryCodes.Japan) return /* @__PURE__ */ jsxs(Fragment$1, { children: [
1264
+ !!jaHaniNameProps?.requiredFields?.length && /* @__PURE__ */ jsx(NameFields, {
1265
+ fieldConfigs: [{
1266
+ name: "jaHaniLastName",
1267
+ label: "jaHaniLastName",
1268
+ isValid: jaHaniNameProps.valid?.jaHaniLastName,
1269
+ transformInput: toFullWidth,
1270
+ transformMode: "blur"
1271
+ }, {
1272
+ name: "jaHaniFirstName",
1273
+ label: "jaHaniFirstName",
1274
+ isValid: jaHaniNameProps.valid?.jaHaniFirstName,
1275
+ transformInput: toFullWidth,
1276
+ transformMode: "blur"
1277
+ }],
1278
+ formProps: {
1279
+ ...jaHaniNameProps,
1280
+ dataStoreId: id,
1281
+ errors,
1282
+ handleFieldChange
1283
+ }
1284
+ }),
1285
+ !!jaKanaNameProps?.requiredFields?.length && /* @__PURE__ */ jsx(NameFields, {
1286
+ fieldConfigs: [{
1287
+ name: "jaKanaLastName",
1288
+ label: "jaKanaLastName",
1289
+ isValid: jaKanaNameProps.valid?.jaKanaLastName,
1290
+ transformInput: toFullWidth,
1291
+ transformMode: "blur"
1292
+ }, {
1293
+ name: "jaKanaFirstName",
1294
+ label: "jaKanaFirstName",
1295
+ isValid: jaKanaNameProps.valid?.jaKanaFirstName,
1296
+ transformInput: toFullWidth,
1297
+ transformMode: "blur"
1298
+ }],
1299
+ formProps: {
1300
+ ...jaKanaNameProps,
1301
+ dataStoreId: id,
1302
+ errors,
1303
+ handleFieldChange
1304
+ }
1305
+ }),
1306
+ !!nameProps?.requiredFields?.length && /* @__PURE__ */ jsx(NameFields, {
1307
+ fieldConfigs: [{
1308
+ name: "lastName",
1309
+ label: "lastName__JP",
1310
+ isValid: nameProps.valid?.lastName,
1311
+ transformInput: convertFullToHalf,
1312
+ transformMode: "blur"
1313
+ }, {
1314
+ name: "firstName",
1315
+ label: "firstName__JP",
1316
+ isValid: nameProps.valid?.firstName,
1317
+ transformInput: convertFullToHalf,
1318
+ transformMode: "blur"
1319
+ }],
1320
+ formProps: {
1321
+ ...nameProps,
1322
+ dataStoreId: id,
1323
+ errors,
1324
+ handleFieldChange
1325
+ }
1326
+ })
1327
+ ] });
1328
+ return /* @__PURE__ */ jsx(Name, {
1329
+ ...nameProps,
1330
+ dataStoreId: id,
1331
+ errors,
1332
+ handleFieldChange
1333
+ });
1334
+ };
1335
+ //#endregion
1336
+ //#region src/components/Individual/forms/BasicDetails/BasicDetails.tsx
1337
+ var decisionMakerRoleFields = ["role"];
1338
+ var nomineeFields = ["nomineeDirector", "nomineeShareholder"];
1339
+ var basicDetailsFields = [
1340
+ ...nameFields,
1341
+ "jobTitle",
1342
+ ...decisionMakerRoleFields,
1343
+ ...nomineeFields,
1344
+ ...contactDetailFields,
1345
+ "relationship",
1346
+ "jaHaniFirstName",
1347
+ "jaHaniLastName",
1348
+ "jaKanaFirstName",
1349
+ "jaKanaLastName"
1350
+ ];
1351
+ function BasicDetails(props) {
1352
+ const { t: commonT } = useTranslation("common");
1353
+ const { t: individualT } = useTranslation("individual");
1354
+ const { form: { triggerValidation } } = useFormContext();
1355
+ const { country, data, formVerificationErrors, heading, id: basicDetailsId, parentLegalEntity, readOnlyFields, taskType, trustedFieldsProvider, fieldValidationErrors, errors, handleFieldChange } = props;
1356
+ const isLegalRepresentativeDetailsTask = taskType === TaskTypes.LEGAL_REPRESENTATIVE_DETAILS;
1357
+ const formUtils = createFormUtils(props, commonT);
1358
+ const localizedNameProps = getFieldProps(props, [
1359
+ "jaHaniFirstName",
1360
+ "jaHaniLastName",
1361
+ "jaKanaFirstName",
1362
+ "jaKanaLastName",
1363
+ ...nameFields
1364
+ ]);
1365
+ const contactDetailsFormProps = getFieldProps(props, contactDetailFields);
1366
+ if (!handleFieldChange) return;
1367
+ return /* @__PURE__ */ jsxs("form", {
1368
+ "aria-describedby": "ariaErrorField",
1369
+ children: [
1370
+ heading && /* @__PURE__ */ jsx(Header, { title: heading }),
1371
+ /* @__PURE__ */ jsx(ErrorPanel, {
1372
+ verificationErrors: formVerificationErrors,
1373
+ validationErrors: fieldValidationErrors,
1374
+ formUtils,
1375
+ id: "ariaErrorField"
1376
+ }),
1377
+ isLegalRepresentativeDetailsTask && /* @__PURE__ */ jsx(Alert, {
1378
+ variant: "info",
1379
+ title: individualT(($) => $["legalRepresentativeFor"], {
1380
+ firstName: parentLegalEntity?.individual?.name.firstName || "",
1381
+ lastName: parentLegalEntity?.individual?.name.lastName || ""
1382
+ })
1383
+ }),
1384
+ /* @__PURE__ */ jsx(ContextGuidance, {
1385
+ title: commonT(($) => $["whyDoINeedToFillInThisInformation"]),
1386
+ content: individualT(($) => $["reasonForFillingIndividualPersonalDetails"]),
1387
+ titleId: "whyDoINeedToFillInThisInformation",
1388
+ contentId: "reasonForFillingIndividualPersonalDetails"
1389
+ }),
1390
+ isDecisionMakerTask(taskType) && trustedFieldsProvider === TrustedFieldsProviders.SINGPASS && readOnlyFields && /* @__PURE__ */ jsx(Typography, {
1391
+ color: "secondary",
1392
+ variant: "caption",
1393
+ children: individualT(($) => $["weSelectedSomeRolesBasedOnMyinfoBusinessDataAboutYourCompanysAppointmentHoldersAndShareholders"])
1394
+ }),
1395
+ /* @__PURE__ */ jsx(LocalizedNameFields, {
1396
+ ...localizedNameProps,
1397
+ country,
1398
+ handleFieldChange
1399
+ }),
1400
+ formUtils.isRequiredField("jobTitle", false) && /* @__PURE__ */ jsx(Field, {
1401
+ name: "jobTitle",
1402
+ label: formUtils.getLabel("jobTitle"),
1403
+ errorMessage: formUtils.getErrorMessage("jobTitle", errors, fieldValidationErrors),
1404
+ children: (childProps) => /* @__PURE__ */ jsx(InputText, {
1405
+ ...childProps,
1406
+ name: "jobTitle",
1407
+ value: data?.jobTitle,
1408
+ readonly: formUtils.isReadOnly("jobTitle"),
1409
+ onInput: handleFieldChange("jobTitle", "input"),
1410
+ onBlur: handleFieldChange("jobTitle", "blur"),
1411
+ "aria-required": true
1412
+ })
1413
+ }),
1414
+ !!contactDetailsFormProps?.requiredFields?.length && /* @__PURE__ */ jsx(ContactDetails, {
1415
+ ...contactDetailsFormProps,
1416
+ dataStoreId: basicDetailsId,
1417
+ country,
1418
+ handleFieldChange,
1419
+ triggerValidation: () => triggerValidation("basicDetails")
1420
+ })
1421
+ ]
1422
+ });
1423
+ }
1424
+ var IdDocumentUpload_module_default = {
1425
+ "individual-document-upload": "_individual-document-upload_7mw7n_1",
1426
+ individualDocumentUpload: "_individual-document-upload_7mw7n_1",
1427
+ "individual-document-upload-subtitle": "_individual-document-upload-subtitle_7mw7n_5",
1428
+ individualDocumentUploadSubtitle: "_individual-document-upload-subtitle_7mw7n_5"
1429
+ };
1430
+ //#endregion
1431
+ //#region src/components/Individual/forms/IdDocumentUpload/IdDocumentManualUpload.tsx
1432
+ var idDocumentUploadFields = [
1433
+ "idDocumentType",
1434
+ "idFrontPage",
1435
+ "idBackPage",
1436
+ "instantIdVerificationData"
1437
+ ];
1438
+ function IdDocumentManualUpload(props) {
1439
+ const { t } = useTranslation(["common", "individual"]);
1440
+ const { data, id, name, errors, valid, handleFieldChange, country, formVerificationErrors, fieldValidationErrors } = props;
1441
+ if (!handleFieldChange) return;
1442
+ const isOptional = !(formVerificationErrors && Object.keys(formVerificationErrors)?.length === 0);
1443
+ const idDocumentTypeOptions = getLocalizedIdDocumentTypeOptions(country);
1444
+ const hasBackPage = (documentType) => {
1445
+ if (documentType) return idDocumentTypeOptions.find(({ id }) => documentType === id)?.hasBackPage;
1446
+ };
1447
+ const hasBack = hasBackPage(data?.idDocumentType);
1448
+ const formUtils = createFormUtils(props, t);
1449
+ return /* @__PURE__ */ jsxs("div", {
1450
+ className: IdDocumentUpload_module_default.individualDocumentUpload,
1451
+ children: [
1452
+ /* @__PURE__ */ jsx(Header, { title: t(($) => $["idDocument"]) }),
1453
+ /* @__PURE__ */ jsx(ErrorPanel, {
1454
+ verificationErrors: formVerificationErrors,
1455
+ validationErrors: fieldValidationErrors,
1456
+ formUtils,
1457
+ id: "ariaErrorField"
1458
+ }),
1459
+ /* @__PURE__ */ jsx("div", {
1460
+ className: IdDocumentUpload_module_default.individualDocumentUploadSubtitle,
1461
+ children: /* @__PURE__ */ jsx(Trans, {
1462
+ t,
1463
+ i18nKey: ($) => $["idUploadDocumentSubtitle"],
1464
+ values: { name }
1465
+ })
1466
+ }),
1467
+ /* @__PURE__ */ jsx(Field, {
1468
+ name: "idDocumentType",
1469
+ label: t(($) => $["selectDocumentType"]),
1470
+ errorMessage: errors?.idDocumentType?.errorMessage,
1471
+ isValid: valid?.idDocumentType,
1472
+ children: (childProps) => /* @__PURE__ */ jsx(Select, {
1473
+ ...childProps,
1474
+ onChange: handleFieldChange("idDocumentType", "input"),
1475
+ name: "idDocumentType",
1476
+ placeholder: t(($) => $["selectDocument"]),
1477
+ selected: data?.idDocumentType,
1478
+ items: idDocumentTypeOptions.map(({ id, name }) => ({
1479
+ id,
1480
+ name: t(($) => $[name])
1481
+ }))
1482
+ })
1483
+ }),
1484
+ /* @__PURE__ */ jsxs("div", {
1485
+ className: IdDocumentUpload_module_default.individualDocumentUploadSubtitle,
1486
+ children: [" ", t(($) => $["requirements"])]
1487
+ }),
1488
+ /* @__PURE__ */ jsxs("ul", { children: [
1489
+ /* @__PURE__ */ jsx("li", { children: t(($) => $["documentNotExpiredOrDamaged"], { ns: "individual" }) }),
1490
+ /* @__PURE__ */ jsx("li", { children: hasBackPage(data?.idDocumentType) ? t(($) => $["includeFrontAndBack"], { ns: "individual" }) : t(($) => $["providePageWithPhotoAndCode"], { ns: "individual" }) }),
1491
+ /* @__PURE__ */ jsx("li", { children: t(($) => $["fullDocumentVisible"], { ns: "individual" }) }),
1492
+ /* @__PURE__ */ jsx("li", { children: t(($) => $["imagesInColor"], { ns: "individual" }) })
1493
+ ] }),
1494
+ data?.idDocumentType && /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(DocumentGuidance, {
1495
+ type: data?.idDocumentType,
1496
+ className: "u-margin-y-16"
1497
+ }), /* @__PURE__ */ jsx(Dropzone, {
1498
+ name: "idFrontPage",
1499
+ label: t(($) => $["frontPage"], { ns: "individual" }),
1500
+ defaultData: data,
1501
+ id,
1502
+ isOptional,
1503
+ shouldValidate: true,
1504
+ handleFieldChange,
1505
+ errors,
1506
+ valid
1507
+ })] }),
1508
+ data?.idDocumentType && hasBack && /* @__PURE__ */ jsx("div", {
1509
+ className: "u-margin-top-16",
1510
+ children: /* @__PURE__ */ jsx(Dropzone, {
1511
+ name: "idBackPage",
1512
+ label: t(($) => $["backPage"], { ns: "individual" }),
1513
+ defaultData: data,
1514
+ id,
1515
+ isOptional,
1516
+ shouldValidate: true,
1517
+ handleFieldChange,
1518
+ errors,
1519
+ valid
1520
+ })
1521
+ })
1522
+ ]
1523
+ });
1524
+ }
1525
+ //#endregion
1526
+ //#region src/components/Individual/tasks/IndividualDropin/IndividualStore.tsx
1527
+ /**
1528
+ * A global signal to control the disabled state of the 'Next' button in the `FormFlow`.
1529
+ * This is imported and updated by child components (e.g., `IdVerificationMethod`)
1530
+ * to disable navigation from the parent, avoiding the need for prop drilling callbacks.
1531
+ */
1532
+ var isNextStepDisabled = signal(false);
1533
+ //#endregion
1534
+ //#region src/components/Individual/forms/IdVerification/IdVerification.tsx
1535
+ var containerId = "adyen-kyc-id-verification";
1536
+ var getOnfidoLocaleConfig = (locale, t) => {
1537
+ const language = locale.substring(0, 2);
1538
+ /**
1539
+ * We need to do this right now because if we provide language overrides via
1540
+ * {@link LocaleConfig.phrases} then {@link LocaleConfig.locale} is ignored. Therefore
1541
+ * we can't currently override language within Onfido's SDK for other locales.
1542
+ *
1543
+ * TODO simplify once Onfido has fixed their SDK to respect the value of `locale`.
1544
+ */
1545
+ return language === "en" ? {
1546
+ locale: language,
1547
+ phrases: {
1548
+ "country_select.button_primary": t(($) => $["continue"]),
1549
+ "doc_submit.title_id_back": t(($) => $["identityCardBack"]),
1550
+ "doc_submit.title_id_front": t(($) => $["identityCardFront"]),
1551
+ "doc_submit.title_license_back": t(($) => $["drivinglicenseBack"]),
1552
+ "doc_submit.title_license_front": t(($) => $["drivinglicenseFront"]),
1553
+ "doc_submit.title_passport": t(($) => $["passportPhotoPage"]),
1554
+ "doc_submit.title_permit_back": t(($) => $["residencePermitBack"]),
1555
+ "doc_submit.title_permit_front": t(($) => $["residencePermitFront"])
1556
+ }
1557
+ } : language;
1558
+ };
1559
+ var initOnfido = async ({ containerEl, token, t, locale, onIdVerificationComplete, onIdVerificationError, showMotionCapture }) => {
1560
+ const steps = [{
1561
+ type: "document",
1562
+ options: { documentTypes: {
1563
+ passport: true,
1564
+ driving_licence: true,
1565
+ national_identity_card: true,
1566
+ residence_permit: false
1567
+ } }
1568
+ }, showMotionCapture ? {
1569
+ type: "face",
1570
+ options: { requestedVariant: "motion" }
1571
+ } : void 0].filter(Boolean);
1572
+ return Onfido.init({
1573
+ token,
1574
+ containerEl,
1575
+ disableAnalytics: false,
1576
+ onComplete: onIdVerificationComplete,
1577
+ onError: onIdVerificationError,
1578
+ steps,
1579
+ language: getOnfidoLocaleConfig(locale, t)
1580
+ });
1581
+ };
1582
+ var logger$3 = createLogger();
1583
+ function IdVerification({ minimumApplicantDetails, legalEntityId, onIdVerificationError, onIdVerificationComplete }) {
1584
+ const containerRef = useRef$1(null);
1585
+ const { t, i18n } = useTranslation("individual");
1586
+ const { data: tokenResponse, isLoading, isError } = useIdVerificationToken(minimumApplicantDetails, legalEntityId);
1587
+ const onfidoSdk = useRef$1();
1588
+ useEffect$1(() => {
1589
+ (async () => {
1590
+ if (!tokenResponse) return;
1591
+ const { sdkToken, id: providerId } = tokenResponse;
1592
+ if (!containerRef.current) throw new Error("No container for Onfido found");
1593
+ idVerificationProviderId.value = providerId;
1594
+ onfidoSdk.current = await initOnfido({
1595
+ containerEl: containerRef.current,
1596
+ token: sdkToken,
1597
+ t,
1598
+ locale: i18n.language,
1599
+ onIdVerificationError,
1600
+ onIdVerificationComplete,
1601
+ showMotionCapture: showIndividualMotionCapture.value
1602
+ });
1603
+ })().catch(logger$3.error);
1604
+ return async () => {
1605
+ if (onfidoSdk.current) await onfidoSdk.current.tearDown();
1606
+ };
1607
+ }, [tokenResponse, i18n]);
1608
+ return /* @__PURE__ */ jsx(LoaderWrapper, {
1609
+ status: tokenResponse ? "success" : isLoading ? "loading" : isError ? "error" : "pending",
1610
+ children: /* @__PURE__ */ jsx("div", {
1611
+ ref: containerRef,
1612
+ className: containerId
1613
+ })
1614
+ });
1615
+ }
1616
+ //#endregion
1617
+ //#region src/components/Individual/forms/IdVerificationMethod/OnfidoVerificationModal/OnfidoVerificationModal.tsx
1618
+ var OnfidoVerificationModal = ({ closeModal, minimumApplicantDetails, legalEntityId, onError, onComplete }) => {
1619
+ const { t } = useTranslation("individual");
1620
+ return /* @__PURE__ */ jsx(Modal, {
1621
+ size: "medium",
1622
+ onClose: closeModal,
1623
+ ariaLabel: t(($) => $["identityVerification"]),
1624
+ children: minimumApplicantDetails && /* @__PURE__ */ jsx(IdVerification, {
1625
+ minimumApplicantDetails,
1626
+ legalEntityId,
1627
+ onIdVerificationComplete: onComplete,
1628
+ onIdVerificationError: onError
1629
+ })
1630
+ });
1631
+ };
1632
+ //#endregion
1633
+ //#region src/components/Individual/forms/IdVerificationMethod/IdVerificationMethod.tsx
1634
+ var logger$2 = createLogger();
1635
+ var passportFrontGreenImage = lazy(() => import("./passport-front-green-BWuD3-Fs.js"));
1636
+ var idVerificationMethodFields = ["idVerificationMethod", "idDocument"];
1637
+ function IdVerificationMethod(props) {
1638
+ const { legalEntityId, taskType, handlers, formVerificationErrors, fieldValidationErrors, hasLiveSelfieErrorCode, isInvitedEntity } = props;
1639
+ const { t: individualT, i18n } = useTranslation("individual");
1640
+ const { t: commonT } = useTranslation("common");
1641
+ const userEvents = useAnalyticsContext();
1642
+ const { isFeatureEnabled } = useToggleContext();
1643
+ const extractDocumentInformation = useExtractDocumentInformation();
1644
+ const { form: { data, handleChangeFor, setFormData, setValid, valid } } = useFormContext();
1645
+ const datasetUtils = datasetUtilities(i18n.language);
1646
+ const existingDocument = data.idVerificationMethod?.idDocument;
1647
+ const hasExistingDocument = !isEmpty$1(existingDocument);
1648
+ const handleFieldChange = useCallback$1((fieldName, mode = "input") => handleChangeFor(fieldName, "idVerificationMethod", mode), [handleChangeFor]);
1649
+ useDataset(datasetIdentifier.country);
1650
+ const [status, setStatus] = useState$1("ready");
1651
+ const [error, setError] = useState$1();
1652
+ const [showLoadingSpinner, setShowLoadingSpinner] = useState$1(false);
1653
+ const clearError = () => setError(void 0);
1654
+ const [ocrExtractedData, setOcrExtractedData] = useState$1(void 0);
1655
+ const allowedCountries = useAllowedCountries();
1656
+ const { isSettingEnabled } = useSettingsContext();
1657
+ const canEditPrefilledCountry = isSettingEnabled(SettingNames.AllowPrefilledCountryEdit);
1658
+ const restrictCountryOfResidenceTo = useMemo$1(() => {
1659
+ if (isDecisionMakerTask(taskType)) return;
1660
+ if (!canEditPrefilledCountry) return [data.additionalPersonalDetails.country];
1661
+ return allowedCountries;
1662
+ }, [
1663
+ allowedCountries,
1664
+ canEditPrefilledCountry,
1665
+ data.additionalPersonalDetails,
1666
+ taskType
1667
+ ]);
1668
+ const extractedData = useMemo$1(() => ocrExtractedData ? mapExtractionResultToSchema(ocrExtractedData, restrictCountryOfResidenceTo) : void 0, [ocrExtractedData, restrictCountryOfResidenceTo]);
1669
+ const comparableExistingData = useMemo$1(() => toIndividualConflictSchema(data), [data]);
1670
+ const comparableExtractedData = useMemo$1(() => extractedData ? toIndividualConflictSchema(extractedData) : void 0, [extractedData]);
1671
+ const conflictRules = useMemo$1(() => ({ address: createAddressConflictRule(datasetUtils) }), [datasetUtils]);
1672
+ const onAutoResolve = (resolvedData) => {
1673
+ const resolvedSchema = fromIndividualConflictSchema(resolvedData);
1674
+ setFormData("basicDetails", {
1675
+ ...data.basicDetails,
1676
+ ...resolvedSchema.basicDetails
1677
+ });
1678
+ setFormData("additionalPersonalDetails", resolvedSchema.additionalPersonalDetails);
1679
+ setOcrExtractedData(void 0);
1680
+ handlers.handleContinueToAdditionalDetails();
1681
+ };
1682
+ const { hasConflicts, conflictingProperties, resolvedData } = useDataConflicts(comparableExistingData, comparableExtractedData, conflictRules, onAutoResolve);
1683
+ const minimumApplicantDetails = {
1684
+ firstName: data.basicDetails?.firstName,
1685
+ lastName: data.basicDetails?.lastName,
1686
+ residencyCountry: data.additionalPersonalDetails?.country
1687
+ };
1688
+ const { registerFieldAction, unregisterFieldAction } = useFormRouterContext();
1689
+ const launchOnfido = useCallback$1(() => {
1690
+ clearError();
1691
+ userEvents.addPageEvent("Clicked button", {
1692
+ actionType: "add",
1693
+ label: "instantVerification",
1694
+ returnValue: "launchingOnfido"
1695
+ });
1696
+ setStatus("onfidoModal");
1697
+ handleFieldChange("idVerificationMethod")("instantVerification");
1698
+ }, [userEvents, handleFieldChange]);
1699
+ useEffect$1(() => {
1700
+ if (hasLiveSelfieErrorCode) {
1701
+ registerFieldAction("idDocument", launchOnfido);
1702
+ return () => unregisterFieldAction("idDocument");
1703
+ }
1704
+ }, [
1705
+ registerFieldAction,
1706
+ unregisterFieldAction,
1707
+ launchOnfido,
1708
+ hasLiveSelfieErrorCode
1709
+ ]);
1710
+ const handleOnfidoComplete = async (onfidoResult) => {
1711
+ clearError();
1712
+ setShowLoadingSpinner(true);
1713
+ setStatus("extractionLoading");
1714
+ const documentIds = [onfidoResult.document_front.id];
1715
+ if (onfidoResult.document_back) documentIds.push(onfidoResult.document_back.id);
1716
+ try {
1717
+ const extractionResult = await extractDocumentInformation.mutateAsync({ documents: documentIds.map((documentId) => ({ documentId })) });
1718
+ const validationError = validateExtractionResult(extractionResult);
1719
+ if (validationError) {
1720
+ setError(validationError);
1721
+ setStatus("ready");
1722
+ return;
1723
+ }
1724
+ setOcrExtractedData(extractionResult);
1725
+ handleFieldChange("idDocument")({
1726
+ instantIdVerificationData: onfidoResult,
1727
+ idDocumentType: onfidoResult.document_front.type,
1728
+ modificationDate: (/* @__PURE__ */ new Date()).toISOString(),
1729
+ documentCountry: extractionResult.issuingCountry
1730
+ });
1731
+ setStatus("ready");
1732
+ } catch (err) {
1733
+ handleOnfidoExtractionError(err);
1734
+ handleFieldChange("idDocument")({
1735
+ instantIdVerificationData: onfidoResult,
1736
+ idDocumentType: onfidoResult.document_front.type,
1737
+ modificationDate: (/* @__PURE__ */ new Date()).toISOString()
1738
+ });
1739
+ } finally {
1740
+ setShowLoadingSpinner(false);
1741
+ }
1742
+ };
1743
+ const handleOnfidoExtractionError = (error) => {
1744
+ logger$2.error("Onfido extraction error", error);
1745
+ userEvents.addPageEvent("Encountered error", {
1746
+ actionType: "submit",
1747
+ returnType: "onfido",
1748
+ returnValue: "weCouldNotExtractDocumentInformation"
1749
+ });
1750
+ setStatus("ready");
1751
+ };
1752
+ const handleOnfidoError = (error) => {
1753
+ logger$2.error("Onfido error", error);
1754
+ setError({ key: "weCouldNotReachOnfido" });
1755
+ userEvents.addPageEvent("Encountered error", {
1756
+ actionType: "submit",
1757
+ returnType: "onfido",
1758
+ returnValue: "weCouldNotReachOnfido"
1759
+ });
1760
+ setStatus("ready");
1761
+ };
1762
+ const handleDataConflictsResolved = (resolved) => {
1763
+ const resolvedSchema = fromIndividualConflictSchema(resolved);
1764
+ setFormData("basicDetails", {
1765
+ ...data.basicDetails,
1766
+ ...resolvedSchema.basicDetails
1767
+ });
1768
+ setFormData("additionalPersonalDetails", resolvedSchema.additionalPersonalDetails);
1769
+ setOcrExtractedData(void 0);
1770
+ setStatus("ready");
1771
+ userEvents.addPageEvent("Success", {
1772
+ actionType: "submit",
1773
+ returnType: "ocrExtraction",
1774
+ returnValue: "resolvedConflictsAfterOcrExtraction"
1775
+ });
1776
+ handlers.handleContinueToAdditionalDetails();
1777
+ };
1778
+ const handleContinueViaManualEntryFlow = () => {
1779
+ handleFieldChange("idVerificationMethod")("manualVerification");
1780
+ userEvents.addPageEvent("Clicked button", {
1781
+ actionType: "submit",
1782
+ label: "addDetailsManually"
1783
+ });
1784
+ handlers.handleContinueToAdditionalDetails();
1785
+ };
1786
+ const handleVerifyByInvite = () => {
1787
+ handleFieldChange("idVerificationMethod")("verifyByInvite");
1788
+ userEvents.addPageEvent("Clicked button", {
1789
+ actionType: "add",
1790
+ label: "verifyByInvite"
1791
+ });
1792
+ handlers.handleContinueToInviteDetails?.();
1793
+ };
1794
+ const handleDeleteDocument = () => {
1795
+ setStatus("ready");
1796
+ if (hasExistingDocument) {
1797
+ handlers.handleDeleteDocument();
1798
+ userEvents.addPageEvent("Clicked button", {
1799
+ actionType: "remove",
1800
+ label: "deleteDocument"
1801
+ });
1802
+ handleFieldChange("idDocument")(void 0);
1803
+ }
1804
+ };
1805
+ if (hasLiveSelfieErrorCode && (data.idVerificationMethod?.idVerificationMethod !== "instantVerification" || !data.idVerificationMethod?.idDocument?.instantIdVerificationData) && valid.idVerificationMethod?.idVerificationMethod) setValid("idVerificationMethod", false, "idVerificationMethod");
1806
+ const doesUserHaveExistingDocument = hasLiveSelfieErrorCode && (data.idVerificationMethod?.idVerificationMethod !== "instantVerification" || !data.idVerificationMethod?.idDocument?.instantIdVerificationData) ? false : hasExistingDocument;
1807
+ const handleCancelDeleteDocument = () => {
1808
+ setStatus("ready");
1809
+ userEvents.addPageEvent("Clicked button", {
1810
+ actionType: "cancel",
1811
+ label: "cancelDeleteDocument"
1812
+ });
1813
+ };
1814
+ const handleCancelAddDetailsManually = () => {
1815
+ setStatus("ready");
1816
+ userEvents.addPageEvent("Clicked button", {
1817
+ actionType: "cancel",
1818
+ label: "cancelAddDetailsManually"
1819
+ });
1820
+ };
1821
+ const handleUpdateExistingDocument = () => {
1822
+ userEvents.addPageEvent("Clicked button", {
1823
+ actionType: "change",
1824
+ label: "updateExistingDocument"
1825
+ });
1826
+ launchOnfido();
1827
+ handlers.handleUpdateDocument();
1828
+ };
1829
+ const modalProvidedData = resolvedData || comparableExistingData;
1830
+ const formUtils = createFormUtils(props, commonT);
1831
+ const showInviteOption = isFeatureEnabled("EnableVerifyByInvite") && isDecisionMakerTask(taskType) && !isInvitedEntity;
1832
+ const verifyIdentityDescription = showInviteOption ? individualT(($) => $["weNeedToVerifyTheDecisionMakersIdentity"]) : showIndividualMotionCapture?.value ? individualT(($) => $["toHelpProtectAgainstFraudAndKeepOurServices"]) : /* @__PURE__ */ jsxs(Fragment$1, { children: [
1833
+ commonT(($) => $["takeOrUploadAPhoto"]),
1834
+ " ",
1835
+ /* @__PURE__ */ jsx(Link, {
1836
+ href: "https://onfido.com",
1837
+ external: true,
1838
+ inline: true,
1839
+ children: commonT(($) => $["onfido"])
1840
+ })
1841
+ ] });
1842
+ isNextStepDisabled.value = showLoadingSpinner;
1843
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [
1844
+ /* @__PURE__ */ jsx(ErrorPanel, {
1845
+ verificationErrors: formVerificationErrors,
1846
+ validationErrors: fieldValidationErrors,
1847
+ formUtils,
1848
+ id: "ariaErrorField"
1849
+ }),
1850
+ /* @__PURE__ */ jsx(LandingLayout, {
1851
+ media: /* @__PURE__ */ jsx(Image, {
1852
+ className: IdVerificationMethod_module_default.verificationHeaderImage,
1853
+ lazyLoadedImage: passportFrontGreenImage
1854
+ }),
1855
+ title: individualT(($) => $["verifyIdentity"]),
1856
+ description: verifyIdentityDescription,
1857
+ error: error ? /* @__PURE__ */ jsx(Alert, {
1858
+ variant: "error",
1859
+ title: commonT(($) => $[error.key], { ...error.options?.values })
1860
+ }) : void 0,
1861
+ actions: /* @__PURE__ */ jsx(Fragment$1, { children: showLoadingSpinner ? /* @__PURE__ */ jsx(Loader, { size: "large" }) : !doesUserHaveExistingDocument && /* @__PURE__ */ jsxs(Fragment$1, { children: [
1862
+ /* @__PURE__ */ jsx(Button, {
1863
+ fullWidth: true,
1864
+ onClick: launchOnfido,
1865
+ disabled: status === "extractionLoading",
1866
+ loading: status === "extractionLoading",
1867
+ children: individualT(($) => $["getVerifiedInstantly"])
1868
+ }),
1869
+ !showIndividualMotionCapture?.value && /* @__PURE__ */ jsx(Button, {
1870
+ onClick: () => setStatus("confirmManualFlowModal"),
1871
+ variant: "secondary",
1872
+ fullWidth: true,
1873
+ children: commonT(($) => $["addDetailsManually"])
1874
+ }),
1875
+ showInviteOption && /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("span", {
1876
+ className: IdVerificationMethod_module_default.orSeparator,
1877
+ children: individualT(($) => $["or"])
1878
+ }), /* @__PURE__ */ jsx(Button, {
1879
+ onClick: handleVerifyByInvite,
1880
+ variant: "secondary",
1881
+ fullWidth: true,
1882
+ children: individualT(($) => $["inviteDecisionMaker"])
1883
+ })] })
1884
+ ] }) }),
1885
+ content: !showLoadingSpinner && doesUserHaveExistingDocument && /* @__PURE__ */ jsx(UploadedDocument, {
1886
+ document: existingDocument,
1887
+ onDelete: () => setStatus("confirmDeleteDocumentModal"),
1888
+ onUpdate: handleUpdateExistingDocument
1889
+ }),
1890
+ disclaimer: !doesUserHaveExistingDocument && /* @__PURE__ */ jsx(Trans, {
1891
+ t: individualT,
1892
+ ns: "individual",
1893
+ i18nKey: ($) => $["byContinuingWithInstantVerification"],
1894
+ components: {
1895
+ facialScanLink: /* @__PURE__ */ jsx(Link, {
1896
+ href: "https://onfido.com/facial-scan-policy-and-release/",
1897
+ external: true,
1898
+ inline: true
1899
+ }),
1900
+ privacyLink: /* @__PURE__ */ jsx(Link, {
1901
+ href: "https://onfido.com/privacy/",
1902
+ external: true,
1903
+ inline: true
1904
+ }),
1905
+ termsLink: /* @__PURE__ */ jsx(Link, {
1906
+ href: "https://onfido.com/terms-of-service/",
1907
+ external: true,
1908
+ inline: true
1909
+ })
1910
+ }
1911
+ })
1912
+ }),
1913
+ status === "onfidoModal" && /* @__PURE__ */ jsx(OnfidoVerificationModal, {
1914
+ closeModal: () => setStatus("ready"),
1915
+ onError: handleOnfidoError,
1916
+ onComplete: handleOnfidoComplete,
1917
+ minimumApplicantDetails,
1918
+ legalEntityId
1919
+ }),
1920
+ status === "confirmManualFlowModal" && /* @__PURE__ */ jsx(Confirm, {
1921
+ title: individualT(($) => $["addDetailsManuallyQuestion"]),
1922
+ description: individualT(($) => $["itCanTakeUpTo"]),
1923
+ onCancel: handleCancelAddDetailsManually,
1924
+ confirmText: individualT(($) => $["yesAddManually"]),
1925
+ onConfirm: handleContinueViaManualEntryFlow
1926
+ }),
1927
+ status === "confirmDeleteDocumentModal" && /* @__PURE__ */ jsx(Confirm, {
1928
+ title: individualT(($) => $["deleteIdDocument"]),
1929
+ description: individualT(($) => $["youMayBeAskedToReUpload"]),
1930
+ confirmText: commonT(($) => $["deleteDocument"]),
1931
+ onCancel: handleCancelDeleteDocument,
1932
+ onConfirm: handleDeleteDocument,
1933
+ critical: true
1934
+ }),
1935
+ hasConflicts && comparableExtractedData ? /* @__PURE__ */ jsx(DataConflictsModal, {
1936
+ providedData: modalProvidedData,
1937
+ detectedData: comparableExtractedData,
1938
+ conflictingProperties,
1939
+ formatters: { address: (val) => addressToString(val, datasetUtils) },
1940
+ title: "confirmPersonalDetails",
1941
+ explanation: "theDetailsYouEnteredDontMatch",
1942
+ onContinue: handleDataConflictsResolved,
1943
+ onCancel: () => {
1944
+ handleFieldChange("idDocument")(void 0);
1945
+ setOcrExtractedData(void 0);
1946
+ handleFieldChange("idVerificationMethod")(void 0);
1947
+ }
1948
+ }) : void 0
1949
+ ] });
1950
+ }
1951
+ //#endregion
1952
+ //#region src/components/Individual/forms/InviteDetails/utils.ts
1953
+ var isPhoneNumberMobile = (phoneNumber) => {
1954
+ const phoneCountryCode = phoneNumber?.phoneCountryCode ? phoneNumber?.phoneCountryCode : void 0;
1955
+ const parsedPhoneNumber = parsePhoneNumber(phoneNumber.number, phoneCountryCode);
1956
+ return Boolean(parsedPhoneNumber && (parsedPhoneNumber.getType() === "MOBILE" || parsedPhoneNumber.getType() === "FIXED_LINE_OR_MOBILE"));
1957
+ };
1958
+ var inviteDetailsFields = [
1959
+ "senderName",
1960
+ "message",
1961
+ "email",
1962
+ "phoneNumber"
1963
+ ];
1964
+ function InviteDetails(props) {
1965
+ const { t } = useTranslation("individual");
1966
+ const { t: commonT } = useTranslation("common");
1967
+ const { form: { data: formData, handleChangeFor: handleBasicDetailsChangeFor } } = useFormContext();
1968
+ const { country, data, errors = {}, fieldValidationErrors, handleFieldChange, heading, recipientFirstName, valid = {} } = props;
1969
+ const phoneMetadata = resolveFieldMetadata(fieldConfig[data?.phoneNumber?.phoneCountryCode ?? country], {}, defaultFieldMetadata);
1970
+ const formUtils = createFormUtils(mergeFieldMetadataIntoProps("phoneNumber", {
1971
+ label: phoneMetadata.label,
1972
+ mask: phoneMetadata.mask
1973
+ }, props), commonT);
1974
+ const basicDetails = formData.basicDetails ?? {};
1975
+ const handleEmailChange = useCallback$1((mode) => (e) => {
1976
+ handleFieldChange?.("email", mode)(e);
1977
+ handleBasicDetailsChangeFor("email", "basicDetails", mode)(e);
1978
+ }, [handleFieldChange, handleBasicDetailsChangeFor]);
1979
+ const handlePhoneChange = useCallback$1((key, mode) => (e) => {
1980
+ handleFieldChange?.(key, mode)(e);
1981
+ handleBasicDetailsChangeFor(key, "basicDetails", mode)(e);
1982
+ }, [handleFieldChange, handleBasicDetailsChangeFor]);
1983
+ useEffect$1(() => {
1984
+ if (!handleFieldChange) return;
1985
+ handleFieldChange("email", "input")(data?.email);
1986
+ if (!data?.phoneNumber || !isPhoneNumberMobile(data.phoneNumber)) {
1987
+ handleFieldChange("phoneNumber", "input")({
1988
+ number: "",
1989
+ phoneCountryCode: country,
1990
+ type: "mobile"
1991
+ });
1992
+ handleBasicDetailsChangeFor("phoneNumber", "basicDetails", "input")({
1993
+ number: "",
1994
+ phoneCountryCode: country,
1995
+ type: "mobile"
1996
+ });
1997
+ } else handleFieldChange("phoneNumber", "input")(data?.phoneNumber);
1998
+ }, []);
1999
+ const emailValue = data?.email ?? basicDetails.email ?? "";
2000
+ const phoneValue = data?.phoneNumber ?? basicDetails?.phoneNumber;
2001
+ if (!handleFieldChange) return null;
2002
+ return /* @__PURE__ */ jsxs("form", { children: [
2003
+ /* @__PURE__ */ jsx(Header, {
2004
+ title: heading ?? t(($) => $["inviteDetails"]),
2005
+ description: t(($) => $["checkThatContactInfoIsCorrect"], { name: recipientFirstName })
2006
+ }),
2007
+ /* @__PURE__ */ jsx(Field, {
2008
+ name: "email",
2009
+ label: commonT(($) => $["email"]),
2010
+ errorMessage: formUtils.getErrorMessage("email", errors, fieldValidationErrors),
2011
+ helper: t(($) => $.wellSendTheInvitationToThisAddress),
2012
+ helperPosition: "below",
2013
+ isValid: valid.email,
2014
+ children: (childProps) => /* @__PURE__ */ jsx(InputEmail, {
2015
+ ...childProps,
2016
+ name: "email",
2017
+ value: emailValue,
2018
+ onInput: handleEmailChange("input"),
2019
+ onBlur: handleEmailChange("blur"),
2020
+ "aria-required": true,
2021
+ "aria-invalid": valid.email === false
2022
+ })
2023
+ }),
2024
+ /* @__PURE__ */ jsx(PhoneField, {
2025
+ country,
2026
+ data: { phoneNumber: phoneValue },
2027
+ valid: { phoneNumber: valid.phoneNumber ?? true },
2028
+ errors: { phoneNumber: errors.phoneNumber?.errorMessage },
2029
+ label: t(($) => $["mobileNumber"]),
2030
+ placeholder: getPhonePlaceholder(country),
2031
+ optional: false,
2032
+ readonly: false,
2033
+ handleChangeFor: handlePhoneChange,
2034
+ mask: formUtils.getMask("phoneNumber"),
2035
+ helper: t(($) => $["wellUseThisNumberToSendAOneTimeVerificationCode"]),
2036
+ helperPosition: "below"
2037
+ }),
2038
+ /* @__PURE__ */ jsx(Field, {
2039
+ name: "senderName",
2040
+ label: t(($) => $["sender"]),
2041
+ errorMessage: formUtils.getErrorMessage("senderName", errors, fieldValidationErrors),
2042
+ isValid: valid.senderName,
2043
+ children: (childProps) => /* @__PURE__ */ jsx(InputText, {
2044
+ ...childProps,
2045
+ name: "senderName",
2046
+ value: data?.senderName,
2047
+ placeholder: t(($) => $["name"]),
2048
+ maxLength: 30,
2049
+ onInput: handleFieldChange("senderName", "input"),
2050
+ onBlur: handleFieldChange("senderName", "blur"),
2051
+ "aria-required": true,
2052
+ "aria-invalid": !valid.senderName
2053
+ })
2054
+ }),
2055
+ /* @__PURE__ */ jsx(Field, {
2056
+ name: "message",
2057
+ errorMessage: formUtils.getErrorMessage("message", errors, fieldValidationErrors),
2058
+ isValid: valid.message,
2059
+ helper: t(($) => $["thisMessageAppearsInTheEmail"]),
2060
+ helperPosition: "below",
2061
+ children: (childProps) => /* @__PURE__ */ jsx(TextArea, {
2062
+ ...childProps,
2063
+ name: "message",
2064
+ value: data?.message,
2065
+ placeholder: t(($) => $["message"]),
2066
+ maxLength: 200,
2067
+ onInput: handleFieldChange("message", "input"),
2068
+ onBlur: handleFieldChange("message", "blur"),
2069
+ "aria-required": true,
2070
+ "aria-invalid": !valid.message
2071
+ })
2072
+ })
2073
+ ] });
2074
+ }
2075
+ //#endregion
2076
+ //#region src/components/Individual/forms/ManualIdUpload/ManualIdUpload.tsx
2077
+ var ManualIdUpload = () => {
2078
+ const { form } = useFormContext();
2079
+ const { handleChangeFor } = form;
2080
+ const data = form.data.manualIdUpload;
2081
+ const valid = form.valid.manualIdUpload;
2082
+ const errors = form.errors.manualIdUpload;
2083
+ const name = `${form.data.basicDetails?.firstName} ${form.data.basicDetails?.lastName}`;
2084
+ const country = form.data.additionalPersonalDetails?.country;
2085
+ const handleFieldChange = (fieldName, mode) => handleChangeFor(fieldName, "manualIdUpload", mode);
2086
+ return /* @__PURE__ */ jsx(IdDocumentManualUpload, {
2087
+ data,
2088
+ valid,
2089
+ errors,
2090
+ name,
2091
+ handleFieldChange,
2092
+ country
2093
+ });
2094
+ };
2095
+ //#endregion
2096
+ //#region src/components/Individual/forms/ProofOfRelationship/types.ts
2097
+ var ProofOfRelationshipDocumentTypes = {
2098
+ BIRTH_CERTIFICATE: "birthCertificate",
2099
+ GUARDIANSHIP_CERTIFICATE: "guardianshipCertificate",
2100
+ ADOPTION_CERTIFICATE: "adoptionCertificate"
2101
+ };
2102
+ var proofOfRelationshipDocumentOptions = [
2103
+ {
2104
+ id: ProofOfRelationshipDocumentTypes.BIRTH_CERTIFICATE,
2105
+ name: "birthCertificate"
2106
+ },
2107
+ {
2108
+ id: ProofOfRelationshipDocumentTypes.GUARDIANSHIP_CERTIFICATE,
2109
+ name: "guardianshipCertificate"
2110
+ },
2111
+ {
2112
+ id: ProofOfRelationshipDocumentTypes.ADOPTION_CERTIFICATE,
2113
+ name: "adoptionCertificate"
2114
+ }
2115
+ ];
2116
+ //#endregion
2117
+ //#region src/components/Individual/forms/ProofOfRelationship/index.tsx
2118
+ function ProofOfRelationship({ id, ...props }) {
2119
+ const { t } = useTranslation(["individual", "common"]);
2120
+ const [proofOfRelationshipDocumentType, setProofOfRelationshipDocumentType] = useState$1(proofOfRelationshipDocumentOptions[0].id);
2121
+ const proofOfResidencyGuidanceContent = /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsxs("div", {
2122
+ className: "adyen-kyc-upload-field__subtitle",
2123
+ children: [" ", t(($) => $["requirements"], { ns: "common" })]
2124
+ }), /* @__PURE__ */ jsxs("ul", { children: [
2125
+ /* @__PURE__ */ jsx("li", { children: t(($) => $["documentAddressedToName"], { name: props.name }) }),
2126
+ /* @__PURE__ */ jsx("li", { children: t(($) => $["showAddressStateCountry"]) }),
2127
+ /* @__PURE__ */ jsx("li", { children: t(($) => $["fullDocumentVisibleWithReadableText"]) }),
2128
+ /* @__PURE__ */ jsx("li", { children: t(($) => $["documentCannotBeDamaged"]) })
2129
+ ] })] });
2130
+ return /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(MemoizedDocumentUpload, {
2131
+ ...props,
2132
+ documentField: "proofOfRelationship",
2133
+ documentType: "proofOfRelationship",
2134
+ heading: t(($) => $["proofOfRelationship"], { ns: "common" }),
2135
+ guidanceHeader: /* @__PURE__ */ jsx("div", {
2136
+ className: "u-margin-bottom-16",
2137
+ children: t(($) => $["proofOfResidenceDocumentTypeLabel"], { name: props.name })
2138
+ }),
2139
+ documentTypeSelect: {
2140
+ selectedType: proofOfRelationshipDocumentType,
2141
+ setSelectedType: setProofOfRelationshipDocumentType,
2142
+ options: proofOfRelationshipDocumentOptions
2143
+ },
2144
+ guidanceContent: proofOfResidencyGuidanceContent,
2145
+ id
2146
+ }) });
2147
+ }
2148
+ var MemoizedProofOfRelationship = memo(ProofOfRelationship, (prevProps, nextProps) => objectsDeepEqual(prevProps.data, nextProps.data) && objectsDeepEqual(prevProps.formVerificationErrors, nextProps.formVerificationErrors) && objectsDeepEqual(prevProps.fieldValidationErrors, nextProps.fieldValidationErrors) && objectsDeepEqual(prevProps.requiredFields, nextProps.requiredFields) && prevProps.shouldValidate === nextProps.shouldValidate && prevProps.name === nextProps.name);
2149
+ //#endregion
2150
+ //#region src/components/Individual/forms/ProofOfResidency/types.ts
2151
+ var ProofOfResidenceDocumentTypes = {
2152
+ BANK_STATEMENT: "bankStatement",
2153
+ UTILITY_BILL: "utilityBill",
2154
+ GOVERNMENT_ISSUED_CORRESPONDENCE: "governmentIssuedCorrespondence",
2155
+ TAXATION_DOCUMENT: "taxationDocument",
2156
+ EXTRACT_FROM_MUNICIPAL_PERSONAL_RECORDS_DATABASE: "extractFromMunicipalPersonalRecordsDatabase",
2157
+ SALARY_SLIP: "salarySlip",
2158
+ MORTGAGE_STATEMENT: "mortgageStatement",
2159
+ CERTIFICATE_OF_VOTER_REGISTRATION: "certificateOfVoterRegistration"
2160
+ };
2161
+ var proofOfResidenceDocumentOptions = [
2162
+ {
2163
+ id: ProofOfResidenceDocumentTypes.BANK_STATEMENT,
2164
+ name: "bankStatementDocument"
2165
+ },
2166
+ {
2167
+ id: ProofOfResidenceDocumentTypes.UTILITY_BILL,
2168
+ name: "utilityBill"
2169
+ },
2170
+ {
2171
+ id: ProofOfResidenceDocumentTypes.GOVERNMENT_ISSUED_CORRESPONDENCE,
2172
+ name: "governmentIssuedCorrespondence"
2173
+ },
2174
+ {
2175
+ id: ProofOfResidenceDocumentTypes.TAXATION_DOCUMENT,
2176
+ name: "taxationDocument"
2177
+ },
2178
+ {
2179
+ id: ProofOfResidenceDocumentTypes.EXTRACT_FROM_MUNICIPAL_PERSONAL_RECORDS_DATABASE,
2180
+ name: "extractFromMunicipalPersonalRecordsDatabase"
2181
+ },
2182
+ {
2183
+ id: ProofOfResidenceDocumentTypes.SALARY_SLIP,
2184
+ name: "salarySlip"
2185
+ },
2186
+ {
2187
+ id: ProofOfResidenceDocumentTypes.MORTGAGE_STATEMENT,
2188
+ name: "mortgageStatement"
2189
+ },
2190
+ {
2191
+ id: ProofOfResidenceDocumentTypes.CERTIFICATE_OF_VOTER_REGISTRATION,
2192
+ name: "certificateOfVoterRegistration"
2193
+ }
2194
+ ];
2195
+ //#endregion
2196
+ //#region src/components/Individual/forms/ProofOfResidency/ProofOfResidency.tsx
2197
+ function ProofOfResidency({ id, ...props }) {
2198
+ const { t } = useTranslation(["individual", "common"]);
2199
+ const [proofOfResidenceDocumentType, setProofOfResidenceDocumentType] = useState$1(proofOfResidenceDocumentOptions[0].id);
2200
+ const isMortgageOrVoterRegistration = proofOfResidenceDocumentType === ProofOfResidenceDocumentTypes.MORTGAGE_STATEMENT || proofOfResidenceDocumentType === ProofOfResidenceDocumentTypes.CERTIFICATE_OF_VOTER_REGISTRATION;
2201
+ const proofOfResidencyGuidanceContent = /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsxs("div", {
2202
+ className: "adyen-kyc-upload-field__subtitle",
2203
+ children: [" ", t(($) => $["requirements"], { ns: "common" })]
2204
+ }), /* @__PURE__ */ jsxs("ul", { children: [
2205
+ /* @__PURE__ */ jsx("li", { children: t(($) => $["documentAddressedToName"], { name: props.name }) }),
2206
+ /* @__PURE__ */ jsx("li", { children: t(($) => $["showAddressStateCountry"]) }),
2207
+ /* @__PURE__ */ jsx("li", { children: isMortgageOrVoterRegistration ? t(($) => $["dateOnDocumentNoOlderThanXMonths"], { numberOfMonths: 12 }) : t(($) => $["dateOnDocumentNoOlderThanXMonths"], { numberOfMonths: 3 }) }),
2208
+ /* @__PURE__ */ jsx("li", { children: t(($) => $["fullDocumentVisibleWithReadableText"]) }),
2209
+ /* @__PURE__ */ jsx("li", { children: t(($) => $["documentCannotBeDamaged"]) })
2210
+ ] })] });
2211
+ return /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(MemoizedDocumentUpload, {
2212
+ ...props,
2213
+ documentField: "proofOfResidency",
2214
+ documentType: "proofOfResidency",
2215
+ heading: t(($) => $["proofOfResidency"], { ns: "common" }),
2216
+ guidanceHeader: /* @__PURE__ */ jsx("div", {
2217
+ className: "u-margin-bottom-16",
2218
+ children: t(($) => $["proofOfResidenceDocumentTypeLabel"], { name: props.name })
2219
+ }),
2220
+ documentTypeSelect: {
2221
+ selectedType: proofOfResidenceDocumentType,
2222
+ setSelectedType: setProofOfResidenceDocumentType,
2223
+ options: proofOfResidenceDocumentOptions
2224
+ },
2225
+ guidanceContent: proofOfResidencyGuidanceContent,
2226
+ id
2227
+ }) });
2228
+ }
2229
+ var MemoizedProofOfResidencyUpload = memo(ProofOfResidency, (prevProps, nextProps) => objectsDeepEqual(prevProps.data, nextProps.data) && objectsDeepEqual(prevProps.formVerificationErrors, nextProps.formVerificationErrors) && objectsDeepEqual(prevProps.fieldValidationErrors, nextProps.fieldValidationErrors) && objectsDeepEqual(prevProps.requiredFields, nextProps.requiredFields) && prevProps.shouldValidate === nextProps.shouldValidate && prevProps.name === nextProps.name);
2230
+ //#endregion
2231
+ //#region src/utils/getDisplayErrorMessage.ts
2232
+ var getDisplayErrorMessage = (errorMessage, t) => {
2233
+ return typeof errorMessage !== "boolean" ? translateTranslatable(t, errorMessage) : errorMessage;
2234
+ };
2235
+ //#endregion
2236
+ //#region src/components/Individual/forms/SignatoryQuestionnaire/SignatoryQuestionnaireModalContent.tsx
2237
+ var SignatoryQuestionnaireModalContent = () => {
2238
+ const { t } = useTranslation("individual");
2239
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [
2240
+ /* @__PURE__ */ jsx(Typography, {
2241
+ variant: "title-l",
2242
+ el: "h3",
2243
+ className: "u-margin-bottom-40",
2244
+ children: t(($) => $["moreAboutAuthorizedSignatories"])
2245
+ }),
2246
+ /* @__PURE__ */ jsx(Typography, {
2247
+ variant: "body-strongest",
2248
+ el: "h4",
2249
+ className: "u-margin-bottom-12",
2250
+ children: t(($) => $["signatoryDescriptionQ1"])
2251
+ }),
2252
+ /* @__PURE__ */ jsx(Typography, {
2253
+ el: "p",
2254
+ className: "u-margin-bottom-32",
2255
+ children: t(($) => $["signatoryDescriptionA1"])
2256
+ }),
2257
+ /* @__PURE__ */ jsx(Typography, {
2258
+ variant: "body-strongest",
2259
+ el: "h4",
2260
+ className: "u-margin-bottom-12",
2261
+ children: t(($) => $["signatoryDescriptionQ2"])
2262
+ }),
2263
+ /* @__PURE__ */ jsx(Typography, {
2264
+ el: "p",
2265
+ children: t(($) => $["signatoryDescriptionA2"])
2266
+ })
2267
+ ] });
2268
+ };
2269
+ //#endregion
2270
+ //#region src/components/Individual/forms/SignatoryQuestionnaire/SignatoryQuestionnaire.tsx
2271
+ function SignatoryQuestionnaire(props) {
2272
+ const { t } = useTranslation(["common", "individual"]);
2273
+ const handleModalAction = useModalAction();
2274
+ const [isModalOpen, setIsModalOpen] = useState$1(false);
2275
+ const { data, errors, formVerificationErrors, heading, fieldValidationErrors, handleFieldChange } = props;
2276
+ const formUtils = createFormUtils(props, t);
2277
+ if (!handleFieldChange) return;
2278
+ const openModal = () => handleModalAction("isSignatoryModal", "open", setIsModalOpen);
2279
+ const closeModal = () => handleModalAction("isSignatoryModal", "close", setIsModalOpen);
2280
+ const errorMessage = formUtils.getErrorMessage("isSignatory", errors, fieldValidationErrors);
2281
+ return /* @__PURE__ */ jsxs("form", {
2282
+ "aria-describedby": "ariaErrorField",
2283
+ children: [
2284
+ heading && /* @__PURE__ */ jsx(Header, { title: heading }),
2285
+ /* @__PURE__ */ jsx(ErrorPanel, {
2286
+ verificationErrors: formVerificationErrors,
2287
+ validationErrors: fieldValidationErrors,
2288
+ formUtils,
2289
+ id: "ariaErrorField"
2290
+ }),
2291
+ /* @__PURE__ */ jsx(GuidanceQuestion, {
2292
+ name: "isSignatory",
2293
+ value: data?.isSignatory,
2294
+ onChange: handleFieldChange("isSignatory"),
2295
+ onDescriptionLinkClick: openModal,
2296
+ question: t(($) => $["doesThisPersonHaveTheAuthority"], { ns: "individual" }),
2297
+ descriptionLinkText: t(($) => $["whatDoesThisMean"]),
2298
+ errorMessage: getDisplayErrorMessage(errorMessage, t)
2299
+ }),
2300
+ isModalOpen && /* @__PURE__ */ jsx(Modal, {
2301
+ onClose: closeModal,
2302
+ ariaLabel: t(($) => $["moreAboutAuthorizedSignatories"], { ns: "individual" }),
2303
+ inset: true,
2304
+ children: /* @__PURE__ */ jsx(SignatoryQuestionnaireModalContent, {})
2305
+ })
2306
+ ]
2307
+ });
2308
+ }
2309
+ //#endregion
2310
+ //#region src/hooks/useUboQuestionnaire.ts
2311
+ var useGuidanceQuestionnaire = ({ data, handleFieldChange, openModal, formUtils, errors, fieldValidationErrors, country }) => {
2312
+ const { t } = useTranslation(["individual"]);
2313
+ const { t: commonT } = useTranslation(["common"]);
2314
+ const defaultQuestions = useMemo$1(() => ({
2315
+ isDirector: t(($) => {
2316
+ return $["isThisPersonListedAsADirector"];
2317
+ }, { ns: "individual" }),
2318
+ isOwner: t(($) => $["doesThisPersonOwn25PercentOrMoreOfBusiness"], { ns: "individual" }),
2319
+ isControllingPerson: t(($) => $["doesThisPersonHaveSignificantResponsibility"], { ns: "individual" }),
2320
+ isNomineeDirector: t(($) => $["isThisPersonANomineeDirectorAppointed"], { ns: "individual" }),
2321
+ isNomineeShareholder: t(($) => $["isThisPersonANomineeShareholderAppointedToHold"], { ns: "individual" })
2322
+ }), [t]);
2323
+ const defaultDescriptionLinkTextByField = useMemo$1(() => ({
2324
+ isDirector: t(($) => $["whatDoesThisMean"]),
2325
+ isNomineeDirector: t(($) => $["whatDoesThisMean"]),
2326
+ isOwner: t(($) => $["whatDoesThisMean"]),
2327
+ isNomineeShareholder: void 0,
2328
+ isControllingPerson: t(($) => $["whatDoesThisMean"])
2329
+ }), [t]);
2330
+ const questionsMap = useMemo$1(() => {
2331
+ return { JP: {
2332
+ isDirector: t(($) => $["isThisPersonARegisteredRepresentativeDirector"], { ns: "individual" }),
2333
+ isOwner: t(($) => $["doesThisPersonOwn25PercentOrMoreOfBusiness"], { ns: "individual" }),
2334
+ isControllingPerson: t(($) => $["doesThisPersonHaveSignificantResponsibility"], { ns: "individual" })
2335
+ } }[country] ?? {};
2336
+ }, [t, country]);
2337
+ return { registerGuidanceQuestion: useCallback$1((fieldName) => {
2338
+ return {
2339
+ name: fieldName,
2340
+ value: data?.[fieldName],
2341
+ onChange: handleFieldChange ? handleFieldChange(fieldName) : () => {},
2342
+ onDescriptionLinkClick: fieldName !== "isNomineeShareholder" ? openModal(fieldName) : void 0,
2343
+ question: questionsMap[fieldName] || defaultQuestions[fieldName],
2344
+ descriptionLinkText: defaultDescriptionLinkTextByField[fieldName],
2345
+ errorMessage: getDisplayErrorMessage(formUtils.getErrorMessage(fieldName, errors, fieldValidationErrors), commonT)
2346
+ };
2347
+ }, [
2348
+ commonT,
2349
+ data,
2350
+ defaultDescriptionLinkTextByField,
2351
+ defaultQuestions,
2352
+ errors,
2353
+ fieldValidationErrors,
2354
+ formUtils,
2355
+ handleFieldChange,
2356
+ openModal,
2357
+ questionsMap
2358
+ ]) };
2359
+ };
2360
+ //#endregion
2361
+ //#region src/components/Individual/forms/UboQuestionnaire/UboQuestionnaireModalContent.tsx
2362
+ var UboQuestionnaireModalContent = ({ modalType, country }) => {
2363
+ const { t } = useTranslation("individual");
2364
+ switch (modalType) {
2365
+ case "isOwner": return /* @__PURE__ */ jsxs(Fragment$1, { children: [
2366
+ /* @__PURE__ */ jsx(Typography, {
2367
+ variant: "title-l",
2368
+ el: "h3",
2369
+ className: "u-margin-bottom-40",
2370
+ children: t(($) => $["moreAboutOwners"])
2371
+ }),
2372
+ /* @__PURE__ */ jsx(Typography, {
2373
+ variant: "body-strongest",
2374
+ el: "h4",
2375
+ className: "u-margin-bottom-12",
2376
+ children: t(($) => $["ownersDescriptionQ1"])
2377
+ }),
2378
+ /* @__PURE__ */ jsx(Typography, {
2379
+ el: "p",
2380
+ children: t(($) => $["ownersDescriptionA1P1"])
2381
+ }),
2382
+ /* @__PURE__ */ jsx(Typography, {
2383
+ el: "p",
2384
+ className: "u-margin-bottom-32",
2385
+ children: t(($) => $["ownersDescriptionA1P2"])
2386
+ }),
2387
+ /* @__PURE__ */ jsx(Alert, {
2388
+ title: t(($) => $["ownersDescriptionAlertTitle"]),
2389
+ icon: false,
2390
+ className: "u-margin-bottom-32",
2391
+ children: t(($) => $["ownersDescriptionAlertContent"])
2392
+ }),
2393
+ /* @__PURE__ */ jsx(Typography, {
2394
+ variant: "body-strongest",
2395
+ el: "h4",
2396
+ className: "u-margin-bottom-12",
2397
+ children: t(($) => $["ownersDescriptionQ2"])
2398
+ }),
2399
+ /* @__PURE__ */ jsx(Typography, {
2400
+ el: "p",
2401
+ children: t(($) => $["ownersDescriptionA2P1"])
2402
+ }),
2403
+ /* @__PURE__ */ jsx(Typography, {
2404
+ el: "p",
2405
+ className: "u-margin-bottom-32",
2406
+ children: t(($) => $["ownersDescriptionA2P2"])
2407
+ }),
2408
+ /* @__PURE__ */ jsx(Typography, {
2409
+ variant: "body-strongest",
2410
+ el: "h4",
2411
+ className: "u-margin-bottom-12",
2412
+ children: t(($) => $["ownersDescriptionQ3"])
2413
+ }),
2414
+ /* @__PURE__ */ jsx(Typography, {
2415
+ el: "p",
2416
+ className: "u-margin-bottom-32",
2417
+ children: t(($) => $["ownersDescriptionA3"])
2418
+ }),
2419
+ /* @__PURE__ */ jsx(Typography, {
2420
+ variant: "body-strongest",
2421
+ el: "h4",
2422
+ className: "u-margin-bottom-12",
2423
+ children: t(($) => $["ownersDescriptionQ4"])
2424
+ }),
2425
+ /* @__PURE__ */ jsx(Typography, {
2426
+ el: "p",
2427
+ className: "u-margin-bottom-32",
2428
+ children: t(($) => $["ownersDescriptionA4"])
2429
+ })
2430
+ ] });
2431
+ case "isControllingPerson": return /* @__PURE__ */ jsxs(Fragment$1, { children: [
2432
+ /* @__PURE__ */ jsx(Typography, {
2433
+ variant: "title-l",
2434
+ el: "h3",
2435
+ className: "u-margin-bottom-40",
2436
+ children: t(($) => $["moreAboutOwnershipThroughControl"])
2437
+ }),
2438
+ /* @__PURE__ */ jsx(Typography, {
2439
+ variant: "body-strongest",
2440
+ el: "h4",
2441
+ className: "u-margin-bottom-12",
2442
+ children: t(($) => $["controllingPersonDescriptionQ1"])
2443
+ }),
2444
+ /* @__PURE__ */ jsx(Typography, {
2445
+ el: "p",
2446
+ className: "u-margin-bottom-32",
2447
+ children: t(($) => $["controllingPersonDescriptionA1P1"])
2448
+ }),
2449
+ /* @__PURE__ */ jsxs("ul", { children: [
2450
+ /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(Trans, {
2451
+ t,
2452
+ i18nKey: ($) => $["controllingPersonDescriptionA1L1"]
2453
+ }) }),
2454
+ /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(Trans, {
2455
+ t,
2456
+ i18nKey: ($) => $["controllingPersonDescriptionA1L2"]
2457
+ }) }),
2458
+ /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(Trans, {
2459
+ t,
2460
+ i18nKey: ($) => $["controllingPersonDescriptionA1L3"]
2461
+ }) }),
2462
+ /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(Trans, {
2463
+ t,
2464
+ i18nKey: ($) => $["controllingPersonDescriptionA1L4"]
2465
+ }) })
2466
+ ] }),
2467
+ /* @__PURE__ */ jsx(Alert, {
2468
+ title: t(($) => $["ownersDescriptionAlertTitle"]),
2469
+ icon: false,
2470
+ className: "u-margin-bottom-32",
2471
+ children: t(($) => $["controllingPersonDescriptionAlertContent"])
2472
+ }),
2473
+ /* @__PURE__ */ jsx(Typography, {
2474
+ variant: "body-strongest",
2475
+ el: "h4",
2476
+ className: "u-margin-bottom-12",
2477
+ children: t(($) => $["ownersDescriptionQ4"])
2478
+ }),
2479
+ /* @__PURE__ */ jsx(Typography, {
2480
+ el: "p",
2481
+ children: t(($) => $["ownersDescriptionA4"])
2482
+ }),
2483
+ /* @__PURE__ */ jsx(Typography, {
2484
+ variant: "body-strongest",
2485
+ el: "h4",
2486
+ className: "u-margin-bottom-12",
2487
+ children: t(($) => $["controllingPersonDescriptionQ2"])
2488
+ }),
2489
+ /* @__PURE__ */ jsx(Typography, {
2490
+ el: "p",
2491
+ className: "u-margin-bottom-32",
2492
+ children: t(($) => $["controllingPersonDescriptionA2"])
2493
+ })
2494
+ ] });
2495
+ case "isDirector":
2496
+ if (country === "JP") return /* @__PURE__ */ jsxs(Fragment$1, { children: [
2497
+ /* @__PURE__ */ jsx(Typography, {
2498
+ variant: "title-l",
2499
+ el: "h3",
2500
+ className: "u-margin-bottom-40",
2501
+ children: t(($) => $["moreAboutRegisteredRepresentativeDirectors"])
2502
+ }),
2503
+ /* @__PURE__ */ jsx(Typography, {
2504
+ variant: "body-strongest",
2505
+ el: "h4",
2506
+ className: "u-margin-bottom-12",
2507
+ children: t(($) => $["whatIsARegisteredRepresentativeDirector"])
2508
+ }),
2509
+ /* @__PURE__ */ jsx(Typography, {
2510
+ el: "p",
2511
+ className: "u-margin-bottom-32",
2512
+ children: t(($) => $["directorIsANaturalPerson"])
2513
+ }),
2514
+ /* @__PURE__ */ jsx(Typography, {
2515
+ variant: "body-strongest",
2516
+ el: "h4",
2517
+ className: "u-margin-bottom-12",
2518
+ children: t(($) => $["canABusinessHaveMultipleRegisteredRepresentativeDirectors"])
2519
+ }),
2520
+ /* @__PURE__ */ jsx(Typography, {
2521
+ el: "p",
2522
+ children: t(($) => $["aBusinessCanHaveManyDirectors"])
2523
+ })
2524
+ ] });
2525
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [
2526
+ /* @__PURE__ */ jsx(Typography, {
2527
+ variant: "title-l",
2528
+ el: "h3",
2529
+ className: "u-margin-bottom-40",
2530
+ children: t(($) => $["moreAboutDirectors"])
2531
+ }),
2532
+ /* @__PURE__ */ jsx(Typography, {
2533
+ variant: "body-strongest",
2534
+ el: "h4",
2535
+ className: "u-margin-bottom-12",
2536
+ children: t(($) => $["directorDescriptionQ1"])
2537
+ }),
2538
+ /* @__PURE__ */ jsx(Typography, {
2539
+ el: "p",
2540
+ className: "u-margin-bottom-32",
2541
+ children: t(($) => $["directorDescriptionA1"])
2542
+ }),
2543
+ /* @__PURE__ */ jsx(Typography, {
2544
+ variant: "body-strongest",
2545
+ el: "h4",
2546
+ className: "u-margin-bottom-12",
2547
+ children: t(($) => $["directorDescriptionQ2"])
2548
+ }),
2549
+ /* @__PURE__ */ jsx(Typography, {
2550
+ el: "p",
2551
+ children: t(($) => $["directorDescriptionA2"])
2552
+ })
2553
+ ] });
2554
+ default: return null;
2555
+ }
2556
+ };
2557
+ //#endregion
2558
+ //#region src/components/Individual/forms/UboQuestionnaire/UboQuestionnaire.tsx
2559
+ var uboQuestionnaireFields = [
2560
+ "isOwner",
2561
+ "isControllingPerson",
2562
+ "isDirector",
2563
+ "isNomineeDirector",
2564
+ "isNomineeShareholder"
2565
+ ];
2566
+ function UboQuestionnaire(props) {
2567
+ const { t } = useTranslation(["common"]);
2568
+ const { t: individualT } = useTranslation(["individual"]);
2569
+ const handleModalAction = useModalAction();
2570
+ const { data, description, errors, formVerificationErrors, heading, fieldValidationErrors, handleFieldChange, country } = props;
2571
+ const formUtils = createFormUtils(props, t);
2572
+ const [activeModal, setActiveModal] = useState$1(null);
2573
+ const openModal = (modalType) => () => {
2574
+ handleModalAction(`${modalType}Modal`, "open", (isOpen) => setActiveModal(isOpen ? modalType : null));
2575
+ };
2576
+ const closeModal = () => {
2577
+ if (activeModal) handleModalAction(`${activeModal}Modal`, "close", () => setActiveModal(null));
2578
+ };
2579
+ const { registerGuidanceQuestion } = useGuidanceQuestionnaire({
2580
+ data,
2581
+ handleFieldChange,
2582
+ openModal,
2583
+ country,
2584
+ formUtils,
2585
+ errors,
2586
+ fieldValidationErrors
2587
+ });
2588
+ if (!handleFieldChange) return;
2589
+ const modalAriaLabelMap = {
2590
+ isOwner: individualT(($) => $["moreAboutOwners"]),
2591
+ isControllingPerson: individualT(($) => $["moreAboutOwnershipThroughControl"]),
2592
+ isDirector: individualT(($) => $["moreAboutDirectors"]),
2593
+ isNomineeDirector: "",
2594
+ isNomineeShareholder: ""
2595
+ };
2596
+ return /* @__PURE__ */ jsxs("form", {
2597
+ "aria-describedby": "ariaErrorField",
2598
+ children: [
2599
+ heading && /* @__PURE__ */ jsx(Header, {
2600
+ title: heading,
2601
+ description
2602
+ }),
2603
+ /* @__PURE__ */ jsx(ErrorPanel, {
2604
+ verificationErrors: formVerificationErrors,
2605
+ validationErrors: fieldValidationErrors,
2606
+ formUtils,
2607
+ id: "ariaErrorField"
2608
+ }),
2609
+ formUtils.isRequiredField("isDirector") && /* @__PURE__ */ jsx(GuidanceQuestion, { ...registerGuidanceQuestion("isDirector") }),
2610
+ formUtils.isRequiredField("isNomineeDirector") && data?.isDirector === GuidanceQuestionValues.YES && /* @__PURE__ */ jsx(GuidanceQuestion, { ...registerGuidanceQuestion("isNomineeDirector") }),
2611
+ formUtils.isRequiredField("isOwner") && /* @__PURE__ */ jsx(GuidanceQuestion, { ...registerGuidanceQuestion("isOwner") }),
2612
+ formUtils.isRequiredField("isNomineeShareholder") && data?.isOwner === GuidanceQuestionValues.YES && /* @__PURE__ */ jsx(GuidanceQuestion, { ...registerGuidanceQuestion("isNomineeShareholder") }),
2613
+ formUtils.isRequiredField("isControllingPerson") && /* @__PURE__ */ jsx(GuidanceQuestion, { ...registerGuidanceQuestion("isControllingPerson") }),
2614
+ activeModal && /* @__PURE__ */ jsx(Modal, {
2615
+ onClose: closeModal,
2616
+ ariaLabel: modalAriaLabelMap[activeModal],
2617
+ inset: true,
2618
+ children: /* @__PURE__ */ jsx(UboQuestionnaireModalContent, {
2619
+ modalType: activeModal,
2620
+ country
2621
+ })
2622
+ })
2623
+ ]
2624
+ });
2625
+ }
2626
+ //#endregion
2627
+ //#region src/components/Individual/forms/Individual.tsx
2628
+ var logger$1 = createLogger();
2629
+ var individualForms = {
2630
+ signatoryQuestionnaire: {
2631
+ formId: "signatoryQuestionnaire",
2632
+ formName: "authorizedSignatory",
2633
+ fields: ["isSignatory"]
2634
+ },
2635
+ uboQuestionnaire: {
2636
+ formId: "uboQuestionnaire",
2637
+ formName: "beneficialOwnership",
2638
+ fields: uboQuestionnaireFields
2639
+ },
2640
+ basicDetails: {
2641
+ formId: "basicDetails",
2642
+ formName: "basicInformationFormName",
2643
+ fields: basicDetailsFields
2644
+ },
2645
+ idVerificationMethod: {
2646
+ formId: "idVerificationMethod",
2647
+ formName: "verificationMethod",
2648
+ fields: idVerificationMethodFields
2649
+ },
2650
+ inviteDetails: {
2651
+ formId: "inviteDetails",
2652
+ formName: "inviteDetails",
2653
+ fields: inviteDetailsFields
2654
+ },
2655
+ additionalPersonalDetails: {
2656
+ formId: "additionalPersonalDetails",
2657
+ formName: "additionalPersonalDetails",
2658
+ fields: additionalPersonalDetailsFields
2659
+ },
2660
+ manualIdUpload: {
2661
+ formId: "manualIdUpload",
2662
+ formName: "idDocument",
2663
+ fields: idDocumentUploadFields
2664
+ },
2665
+ proofOfResidency: {
2666
+ formId: "proofOfResidency",
2667
+ formName: "proofOfResidency",
2668
+ fields: ["proofOfResidency"]
2669
+ },
2670
+ proofOfNationalId: {
2671
+ formId: "proofOfNationalId",
2672
+ formName: "proofOfNationalId",
2673
+ fields: ["proofOfNationalId"]
2674
+ },
2675
+ proofOfRelationship: {
2676
+ formId: "proofOfRelationship",
2677
+ formName: "proofOfRelationship",
2678
+ fields: ["proofOfRelationship"]
2679
+ }
2680
+ };
2681
+ var signatoryQuestionnaireFormID = individualForms.signatoryQuestionnaire.formId;
2682
+ var uboQuestionnaireFormID = individualForms.uboQuestionnaire.formId;
2683
+ var basicDetailsFormID = individualForms.basicDetails.formId;
2684
+ var additionalPersonalDetailsFormID = individualForms.additionalPersonalDetails.formId;
2685
+ var inviteDetailsFormID = individualForms.inviteDetails.formId;
2686
+ var idVerificationMethodFormID = individualForms.idVerificationMethod.formId;
2687
+ var manualIdUploadFormID = individualForms.manualIdUpload.formId;
2688
+ var proofOfResidencyFormID = individualForms.proofOfResidency.formId;
2689
+ var proofOfNationalIdFormID = individualForms.proofOfNationalId.formId;
2690
+ var proofOfRelationshipFormID = individualForms.proofOfRelationship.formId;
2691
+ var LIVE_SELFIE_ERROR_CODE$1 = "2_8210";
2692
+ function Individual(props) {
2693
+ const { t: commonT } = useTranslation("common");
2694
+ const { t: individualT } = useTranslation("individual");
2695
+ const { form: { errors, valid, fieldProblems: fieldValidationErrors, handleChangeFor, setFormData } } = useFormContext();
2696
+ const { goToFormByFormId } = useFormRouterContext();
2697
+ const [isDecisionMakerNotRequiredModalOpen, setIsDecisionMakerNotRequiredModalOpen] = useState$1(false);
2698
+ const [isDuplicateNameModalOpen, setIsDuplicateNameModalOpen] = useState$1(false);
2699
+ const { activeForm: propActiveForm, defaultCountry, data, taskType, allowedRoles, parentLegalEntity, trustedFieldsProvider, trustedRoles, legalEntityId, problems, onNext, setNextHandler, handleHomeClick, scenarios, isInvitedEntity, invitedEntityDetails } = props;
2700
+ const basicDetailsFormProps = getFormProps(props, basicDetailsFormID);
2701
+ const signatoryQuestionnaireFormProps = getFormProps(props, signatoryQuestionnaireFormID);
2702
+ const uboQuestionnaireFormProps = getFormProps(props, uboQuestionnaireFormID);
2703
+ const additionalPersonalDetailsFormProps = getFormProps(props, additionalPersonalDetailsFormID);
2704
+ const proofOfResidencyFormProps = getFormProps(props, proofOfResidencyFormID);
2705
+ const proofOfNationalIdFormProps = getFormProps(props, proofOfNationalIdFormID);
2706
+ const proofOfRelationshipFormProps = getFormProps(props, proofOfRelationshipFormID);
2707
+ const countryOfResidence = data?.additionalPersonalDetails?.country ?? defaultCountry;
2708
+ const handleModalAction = useModalAction();
2709
+ const handleNextForPersonNotRequired = () => {
2710
+ if (!data?.signatoryQuestionnaire && !data?.uboQuestionnaire) return;
2711
+ const { signatoryQuestionnaire, uboQuestionnaire } = data;
2712
+ const isDirectorApplicable = uboQuestionnaireFormProps?.requiredFields?.includes("isDirector");
2713
+ if (signatoryQuestionnaire && uboQuestionnaire && signatoryQuestionnaire?.isSignatory === GuidanceQuestionValues.NO && uboQuestionnaire?.isOwner === GuidanceQuestionValues.NO && uboQuestionnaire?.isControllingPerson === GuidanceQuestionValues.NO && (!isDirectorApplicable || uboQuestionnaire?.isDirector === GuidanceQuestionValues.NO)) handleModalAction("personalInfoNotNeeded", "open", setIsDecisionMakerNotRequiredModalOpen);
2714
+ else onNext?.();
2715
+ };
2716
+ const { firstName, lastName } = data?.basicDetails ?? {};
2717
+ const enteredFullName = useMemo$1(() => {
2718
+ if (firstName && lastName) return `${firstName} ${lastName}`;
2719
+ return null;
2720
+ }, [firstName, lastName]);
2721
+ const existingNames = useMemo$1(() => {
2722
+ const associations = parentLegalEntity?.entityAssociations ?? [];
2723
+ return new Set(associations.flatMap((entity) => entity.name ? [entity.name.toLowerCase()] : []));
2724
+ }, [parentLegalEntity]);
2725
+ const handleBasicDetailsNext = useCallback$1(() => {
2726
+ if (legalEntityId) {
2727
+ onNext?.();
2728
+ return;
2729
+ }
2730
+ if (enteredFullName === null) {
2731
+ onNext?.();
2732
+ return;
2733
+ }
2734
+ if (existingNames.has(enteredFullName.toLowerCase())) setIsDuplicateNameModalOpen(true);
2735
+ else onNext?.();
2736
+ }, [
2737
+ enteredFullName,
2738
+ existingNames,
2739
+ onNext,
2740
+ legalEntityId
2741
+ ]);
2742
+ useEffect$1(() => {
2743
+ if (propActiveForm.formId === uboQuestionnaireFormID) setNextHandler?.(() => handleNextForPersonNotRequired);
2744
+ else if (propActiveForm.formId === basicDetailsFormID) setNextHandler?.(() => handleBasicDetailsNext);
2745
+ else setNextHandler?.(void 0);
2746
+ }, [
2747
+ propActiveForm,
2748
+ setNextHandler,
2749
+ data
2750
+ ]);
2751
+ const handleCloseModalAndGoBack = useCallback$1(() => handleModalAction("personalInfoNotNeeded", "close", setIsDecisionMakerNotRequiredModalOpen, handleHomeClick), [handleModalAction, handleHomeClick]);
2752
+ const handleCloseModalAndChangeAnswers = useCallback$1(() => handleModalAction("personalInfoNotNeeded", "cancel", setIsDecisionMakerNotRequiredModalOpen), [handleModalAction]);
2753
+ const handleCloseModalAndGoToOverview = useCallback$1(() => handleModalAction("thisPersonAlreadyExists", "close", setIsDuplicateNameModalOpen, handleHomeClick), [handleModalAction, handleHomeClick]);
2754
+ const handleCloseModalAndContinue = useCallback$1(() => handleModalAction("thisPersonAlreadyExists", "cancel", setIsDuplicateNameModalOpen, onNext), [handleModalAction, onNext]);
2755
+ const handleContinueToAdditionalDetails = () => {
2756
+ goToFormByFormId(additionalPersonalDetailsFormID);
2757
+ };
2758
+ const handleContinueToInviteDetails = () => {
2759
+ goToFormByFormId(inviteDetailsFormID);
2760
+ };
2761
+ const handleDeleteDocument = () => {
2762
+ logger$1.info("handle delete document");
2763
+ };
2764
+ const handleUpdateDocument = () => {
2765
+ logger$1.info("handle update document");
2766
+ };
2767
+ const capabilities = useCapabilities();
2768
+ const newRoles = useMemo$1(() => isInvitedEntity ? invitedEntityDetails?.roles : calculateRoles(data), [
2769
+ data,
2770
+ invitedEntityDetails,
2771
+ isInvitedEntity
2772
+ ]);
2773
+ useEffect$1(() => {
2774
+ if (areArraysDifferent(newRoles, data?.basicDetails?.role ?? [])) setFormData("basicDetails", {
2775
+ ...data?.basicDetails ?? {},
2776
+ role: newRoles
2777
+ });
2778
+ }, [
2779
+ newRoles,
2780
+ data?.basicDetails?.role,
2781
+ setFormData
2782
+ ]);
2783
+ const hasLiveSelfieErrorCode = problems?.missingData?.some((problem) => problem.code === LIVE_SELFIE_ERROR_CODE$1 && problem.type === "dataMissing");
2784
+ const hasMotionCaptureScenarioValue = hasMotionCaptureScenario?.value;
2785
+ useEffect$1(() => {
2786
+ setShowIndividualMotionCapture(shouldShowMotionCapture({
2787
+ capabilities: isInvitedEntity ? invitedEntityDetails?.rootCapabilities : capabilities,
2788
+ userRoles: data?.basicDetails?.role,
2789
+ taskType,
2790
+ hasLiveSelfieError: hasLiveSelfieErrorCode,
2791
+ hasMotionScenario: data?.basicDetails?.role?.includes(DecisionMakerTypes.SIGNATORY) && scenarios?.includes(Scenarios.L_BAFIN) ? false : hasMotionCaptureScenarioValue,
2792
+ isInvitedEntity
2793
+ }));
2794
+ }, [
2795
+ data?.basicDetails?.role,
2796
+ scenarios,
2797
+ taskType,
2798
+ capabilities,
2799
+ hasMotionCaptureScenarioValue,
2800
+ hasLiveSelfieErrorCode,
2801
+ isInvitedEntity,
2802
+ invitedEntityDetails?.rootCapabilities
2803
+ ]);
2804
+ const fullName = `${data?.basicDetails?.firstName} ${data?.basicDetails?.lastName}`;
2805
+ const handleFieldChange = (formName) => (fieldName, mode) => handleChangeFor(fieldName, formName, mode);
2806
+ const renderActiveForm = (activeForm) => {
2807
+ switch (activeForm.formId) {
2808
+ case signatoryQuestionnaireFormID: return /* @__PURE__ */ jsx(SignatoryQuestionnaire, {
2809
+ ...signatoryQuestionnaireFormProps,
2810
+ heading: individualT(($) => $["signatoryQuestionnaireHeader"]),
2811
+ id: signatoryQuestionnaireFormID,
2812
+ handleFieldChange: handleFieldChange("signatoryQuestionnaire"),
2813
+ errors: errors?.signatoryQuestionnaire,
2814
+ fieldValidationErrors: fieldValidationErrors?.signatoryQuestionnaire
2815
+ });
2816
+ case uboQuestionnaireFormID: return /* @__PURE__ */ jsx(UboQuestionnaire, {
2817
+ ...uboQuestionnaireFormProps,
2818
+ heading: individualT(($) => $["uboQuestionnaireHeader"]),
2819
+ description: individualT(($) => countryOfResidence === CountryCodes.Japan ? $["registeringTheLegalRepresentativeAsRequiredByLaw"] : $["thisIsImportantBecauseItIsARegulatoryRequirement"]),
2820
+ id: uboQuestionnaireFormID,
2821
+ handleFieldChange: handleFieldChange("uboQuestionnaire"),
2822
+ errors: errors?.uboQuestionnaire,
2823
+ fieldValidationErrors: fieldValidationErrors?.uboQuestionnaire,
2824
+ country: countryOfResidence
2825
+ });
2826
+ case basicDetailsFormID: return /* @__PURE__ */ jsx(BasicDetails, {
2827
+ ...basicDetailsFormProps,
2828
+ data: data?.basicDetails ?? {},
2829
+ heading: commonT(($) => $["basicInformationFormName"]),
2830
+ taskType,
2831
+ id: basicDetailsFormID,
2832
+ allowedRoles,
2833
+ country: countryOfResidence,
2834
+ parentLegalEntity,
2835
+ trustedFieldsProvider,
2836
+ trustedRoles,
2837
+ errors: errors?.basicDetails,
2838
+ fieldValidationErrors: fieldValidationErrors?.basicDetails,
2839
+ valid: valid?.basicDetails,
2840
+ handleFieldChange: handleFieldChange("basicDetails")
2841
+ });
2842
+ case idVerificationMethodFormID: return /* @__PURE__ */ jsx(IdVerificationMethod, {
2843
+ legalEntityId,
2844
+ taskType,
2845
+ handlers: {
2846
+ handleContinueToAdditionalDetails,
2847
+ handleContinueToInviteDetails,
2848
+ handleDeleteDocument,
2849
+ handleUpdateDocument
2850
+ },
2851
+ formVerificationErrors: problems?.verificationErrors?.idVerificationMethod,
2852
+ fieldValidationErrors: problems?.validationErrors?.idVerificationMethod,
2853
+ hasLiveSelfieErrorCode,
2854
+ isInvitedEntity
2855
+ });
2856
+ case inviteDetailsFormID: return /* @__PURE__ */ jsx(InviteDetails, {
2857
+ country: countryOfResidence,
2858
+ data: {
2859
+ email: data?.basicDetails?.email ?? "",
2860
+ phoneNumber: data?.basicDetails?.phoneNumber,
2861
+ senderName: data?.inviteDetails?.senderName ?? "",
2862
+ message: data?.inviteDetails?.message ?? ""
2863
+ },
2864
+ errors: errors?.inviteDetails,
2865
+ fieldValidationErrors: fieldValidationErrors?.inviteDetails,
2866
+ handleFieldChange: handleFieldChange("inviteDetails"),
2867
+ heading: individualT(($) => $["inviteDetails"]),
2868
+ id: inviteDetailsFormID,
2869
+ recipientFirstName: data?.basicDetails?.firstName ?? "",
2870
+ valid: valid?.inviteDetails
2871
+ });
2872
+ case additionalPersonalDetailsFormID: return /* @__PURE__ */ jsx(AdditionalPersonalDetails, {
2873
+ ...additionalPersonalDetailsFormProps,
2874
+ country: countryOfResidence,
2875
+ data: data?.additionalPersonalDetails ?? {},
2876
+ heading: individualT(($) => $["additionalPersonalDetails"]),
2877
+ id: additionalPersonalDetailsFormID,
2878
+ errors: errors?.additionalPersonalDetails,
2879
+ fieldValidationErrors: fieldValidationErrors?.additionalPersonalDetails,
2880
+ valid: valid?.additionalPersonalDetails,
2881
+ taskType,
2882
+ handleFieldChange: handleFieldChange("additionalPersonalDetails")
2883
+ });
2884
+ case manualIdUploadFormID: return /* @__PURE__ */ jsx(ManualIdUpload, {});
2885
+ case proofOfResidencyFormID: return /* @__PURE__ */ jsx(MemoizedProofOfResidencyUpload, {
2886
+ ...proofOfResidencyFormProps,
2887
+ data: data?.proofOfResidency,
2888
+ id: proofOfResidencyFormID,
2889
+ name: fullName,
2890
+ errors: errors.proofOfResidency,
2891
+ fieldValidationErrors: fieldValidationErrors.proofOfResidency,
2892
+ valid: valid.proofOfResidency,
2893
+ handleFieldChange: handleFieldChange("proofOfResidency")
2894
+ });
2895
+ case proofOfNationalIdFormID: return /* @__PURE__ */ jsx(MemoizedDocumentUpload, {
2896
+ ...proofOfNationalIdFormProps,
2897
+ data: data?.proofOfNationalId,
2898
+ documentField: "proofOfNationalId",
2899
+ documentType: "registrationDocument",
2900
+ heading: commonT(($) => $["proofOfNationalId"]),
2901
+ id: proofOfNationalIdFormID,
2902
+ errors: errors.proofOfNationalId,
2903
+ fieldValidationErrors: fieldValidationErrors.proofOfNationalId,
2904
+ valid: valid.proofOfNationalId,
2905
+ handleFieldChange: handleFieldChange("proofOfNationalId")
2906
+ });
2907
+ case proofOfRelationshipFormID: return /* @__PURE__ */ jsx(MemoizedProofOfRelationship, {
2908
+ ...proofOfRelationshipFormProps,
2909
+ data: data?.proofOfRelationship,
2910
+ id: proofOfRelationshipFormID,
2911
+ name: fullName,
2912
+ errors: errors.proofOfRelationship,
2913
+ fieldValidationErrors: fieldValidationErrors.proofOfRelationship,
2914
+ valid: valid.proofOfRelationship,
2915
+ handleFieldChange: handleFieldChange("proofOfRelationship")
2916
+ });
2917
+ default: logger$1.warn(`Active form (${activeForm.formId}) is not supported'`);
2918
+ }
2919
+ };
2920
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [
2921
+ renderActiveForm(propActiveForm),
2922
+ isDecisionMakerNotRequiredModalOpen && /* @__PURE__ */ jsx(Confirm, {
2923
+ title: individualT(($) => $["personalInfoNotNeeded"]),
2924
+ description: individualT(($) => $["weWontCollectAnyInfoAboutThisPerson"]),
2925
+ onConfirm: handleCloseModalAndGoBack,
2926
+ confirmText: individualT(($) => $["backToOverview"]),
2927
+ onCancel: handleCloseModalAndChangeAnswers,
2928
+ cancelText: individualT(($) => $["changeAnswers"])
2929
+ }),
2930
+ isDuplicateNameModalOpen && /* @__PURE__ */ jsx(Confirm, {
2931
+ title: individualT(($) => $["thisPersonAlreadyExists"]),
2932
+ description: individualT(($) => $["doYouWantToUpdateTheirExistingDetails"], { name: enteredFullName ?? "" }),
2933
+ onConfirm: handleCloseModalAndGoToOverview,
2934
+ confirmText: individualT(($) => $["updateExistingDetails"]),
2935
+ onCancel: handleCloseModalAndContinue,
2936
+ cancelText: commonT(($) => $["continue"])
2937
+ })
2938
+ ] });
2939
+ }
2940
+ //#endregion
2941
+ //#region src/components/Individual/forms/InviteDetails/validate.ts
2942
+ var validateSenderNameNotEmpty = {
2943
+ modes: ["blur"],
2944
+ validate: (senderName) => !isEmpty(senderName),
2945
+ errorMessage: "fieldIsRequired"
2946
+ };
2947
+ var senderNameRules = () => {
2948
+ const v4NameRules = nameValidationRulesV4().firstName ?? [];
2949
+ return Array.isArray(v4NameRules) ? v4NameRules : [v4NameRules];
2950
+ };
2951
+ var validateMessageNotEmpty = {
2952
+ modes: ["blur"],
2953
+ validate: (message) => !isEmpty(message),
2954
+ errorMessage: "fieldIsRequired"
2955
+ };
2956
+ var validateEmailNotEmpty = {
2957
+ modes: ["blur"],
2958
+ validate: (email) => !isEmpty(email),
2959
+ errorMessage: "fieldIsRequired"
2960
+ };
2961
+ var validateEmailFormat = {
2962
+ modes: ["blur"],
2963
+ validate: (email) => email ? emailPattern.test(email) : true,
2964
+ errorMessage: "invalidEmail"
2965
+ };
2966
+ var validateMobilePhoneNumberNotEmpty = {
2967
+ modes: ["blur"],
2968
+ validate: (phone) => {
2969
+ if (phone?.number && phone?.phoneCountryCode) {
2970
+ const prefix = phonePrefixes_default[phone?.phoneCountryCode];
2971
+ return Boolean(phone.number.replace(prefix, "").trim().length);
2972
+ }
2973
+ return false;
2974
+ },
2975
+ errorMessage: "fieldIsRequired"
2976
+ };
2977
+ var validateMobilePhoneNumber = {
2978
+ modes: ["blur"],
2979
+ validate: (phone) => Boolean(phone?.number && isPhoneNumberMobile(phone)),
2980
+ errorMessage: "invalidPhoneNumber"
2981
+ };
2982
+ var inviteDetailsValidators = () => ({
2983
+ senderName: [validateSenderNameNotEmpty, ...senderNameRules()],
2984
+ message: [validateMessageNotEmpty],
2985
+ email: [validateEmailNotEmpty, validateEmailFormat],
2986
+ phoneNumber: [validateMobilePhoneNumberNotEmpty, validateMobilePhoneNumber]
2987
+ });
2988
+ //#endregion
2989
+ //#region src/components/Individual/helpers/mandateIdVerificationForMotionCapture.ts
2990
+ var mandateIdVerificationForMotionCapture = (showMotionCapture, derivedProps) => {
2991
+ if (!derivedProps) return;
2992
+ const copiedDerivedProps = { ...derivedProps };
2993
+ if (showMotionCapture) {
2994
+ const idVerificationFields = [...derivedProps.requiredFields.idVerificationMethod ?? [], "idVerificationMethod"];
2995
+ copiedDerivedProps.allFields.idVerificationMethod = idVerificationFields;
2996
+ copiedDerivedProps.requiredFields.idVerificationMethod = idVerificationFields;
2997
+ }
2998
+ return copiedDerivedProps;
2999
+ };
3000
+ //#endregion
3001
+ //#region src/components/Individual/mapping/mapApiDocumentToIndividualDocuments.ts
3002
+ var mapApiDocumentToIndividualDocuments = (entityId) => {
3003
+ const idDocument = getIdDocument(entityId);
3004
+ const proofOfResidency = getDocument(entityId, "proofOfResidency");
3005
+ const proofOfNationalId = getDocument(entityId, "proofOfNationalIdNumber");
3006
+ const proofOfRelationship = getDocument(entityId, "proofOfRelationship");
3007
+ return {
3008
+ manualIdUpload: idDocument ? mapApiIdDocumentToSchema(idDocument) : void 0,
3009
+ proofOfResidency: proofOfResidency ? { proofOfResidency: [mapExistingFile(getPageName(proofOfResidency))] } : void 0,
3010
+ proofOfNationalId: proofOfNationalId ? { proofOfNationalId: [mapExistingFile(getPageName(proofOfNationalId))] } : void 0,
3011
+ proofOfRelationship: proofOfRelationship ? { proofOfRelationship: [mapExistingFile(getPageName(proofOfRelationship))] } : void 0
3012
+ };
3013
+ };
3014
+ var mapApiIdDocumentToSchema = (idDocument) => {
3015
+ const { type, attachments, modificationDate } = idDocument;
3016
+ const { hasBackPage } = getLocalizedIdDocumentTypeOptions().find(({ id }) => id === type);
3017
+ let frontPage;
3018
+ let backPage;
3019
+ if (attachments?.length === 1) frontPage = getPage(idDocument);
3020
+ else {
3021
+ frontPage = hasBackPage ? getPage(idDocument, "front") : getPage(idDocument);
3022
+ backPage = hasBackPage ? getPage(idDocument, "back") : void 0;
3023
+ }
3024
+ return {
3025
+ ...frontPage ? { idFrontPage: [mapExistingFile(frontPage.pageName ?? "")] } : {},
3026
+ ...backPage ? { idBackPage: [mapExistingFile(backPage.pageName ?? "")] } : {},
3027
+ idDocumentType: type,
3028
+ modificationDate
3029
+ };
3030
+ };
3031
+ //#endregion
3032
+ //#region src/components/Individual/mapping/mapIndividualDocumentToApiDocument.ts
3033
+ var mapIndividualDocumentToApiDocument = async (data, entityId) => {
3034
+ if (!data) return void 0;
3035
+ const { proofOfNationalId, proofOfResidency, proofOfRelationship, manualIdUpload } = data;
3036
+ const entityType = "legalEntity";
3037
+ return (await Promise.all([
3038
+ manualIdUpload?.idFrontPage ? createDocumentRequest({
3039
+ entityId,
3040
+ entityType,
3041
+ documentType: manualIdUpload.idDocumentType,
3042
+ page1: manualIdUpload?.idFrontPage?.[0],
3043
+ page2: manualIdUpload?.idBackPage?.[0]
3044
+ }) : void 0,
3045
+ proofOfNationalId?.proofOfNationalId ? createDocumentRequest({
3046
+ entityId,
3047
+ entityType,
3048
+ documentType: "proofOfNationalIdNumber",
3049
+ page1: proofOfNationalId.proofOfNationalId[0]
3050
+ }) : void 0,
3051
+ proofOfResidency?.proofOfResidency ? createDocumentRequest({
3052
+ entityId,
3053
+ entityType,
3054
+ documentType: "proofOfResidency",
3055
+ description: proofOfResidency?.description,
3056
+ page1: proofOfResidency.proofOfResidency[0]
3057
+ }) : void 0,
3058
+ proofOfRelationship?.proofOfRelationship ? createDocumentRequest({
3059
+ entityId,
3060
+ entityType,
3061
+ documentType: "proofOfRelationship",
3062
+ description: proofOfRelationship?.description,
3063
+ page1: proofOfRelationship.proofOfRelationship[0]
3064
+ }) : void 0
3065
+ ])).filter(Boolean);
3066
+ };
3067
+ //#endregion
3068
+ //#region src/components/Individual/mapping/adjustOnfidoIdentificationData.ts
3069
+ var adjustOnfidoIdentificationData = (data, apiData) => {
3070
+ const { typeOfIdentity, idNumber, idNumberExempt } = data;
3071
+ const identificationData = {
3072
+ ...apiData,
3073
+ number: idNumber,
3074
+ type: getOnfidoIdentityTypeToApiIdentityTypeMap(data)[typeOfIdentity] ?? "nationalIdNumber"
3075
+ };
3076
+ switch (typeOfIdentity) {
3077
+ case "passport": return {
3078
+ ...identificationData,
3079
+ cardNumber: ""
3080
+ };
3081
+ case "driversLicense": return {
3082
+ ...identificationData,
3083
+ expiryDate: ""
3084
+ };
3085
+ default: return idNumber === void 0 && idNumberExempt === void 0 ? void 0 : {
3086
+ ...identificationData,
3087
+ expiryDate: "",
3088
+ cardNumber: "",
3089
+ nationalIdExempt: apiData?.nationalIdExempt ?? !idNumber
3090
+ };
3091
+ }
3092
+ };
3093
+ //#endregion
3094
+ //#region src/components/Individual/mapping/mapIndividualSchemaToLegalEntity.ts
3095
+ var mapIndividualSchemaToLegalEntity = (individual, isFeatureEnabled, matchingScenario) => {
3096
+ const legalEntity = {
3097
+ ...formatObject(individual, individualApiKeyMapping),
3098
+ type: LegalEntityTypes.INDIVIDUAL
3099
+ };
3100
+ if (individual.additionalPersonalDetails) {
3101
+ if (matchingScenario?.includes(Scenarios.L_TAXINFO) && individual.additionalPersonalDetails?.idNumber && (individual.additionalPersonalDetails?.country === CountryCodes.Spain || individual.additionalPersonalDetails?.country === CountryCodes.Italy)) {
3102
+ const taxCountry = individual.additionalPersonalDetails?.country;
3103
+ const taxType = taxCountry === CountryCodes.Spain && individual.additionalPersonalDetails?.typeOfIdentity ? individual.additionalPersonalDetails?.typeOfIdentity.toUpperCase() : taxIdNumberOptions[taxCountry][0]["id"];
3104
+ legalEntity.individual.taxInformation = [{
3105
+ country: taxCountry,
3106
+ number: individual.additionalPersonalDetails.idNumber,
3107
+ type: taxType
3108
+ }];
3109
+ }
3110
+ legalEntity.individual.identificationData = adjustOnfidoIdentificationData(individual.additionalPersonalDetails, legalEntity.individual.identificationData);
3111
+ }
3112
+ const nameLocalization = [mapSchemaFieldsToApiScriptLocalization(individual.basicDetails ?? {}, "jaHani"), mapSchemaFieldsToApiScriptLocalization(individual.basicDetails ?? {}, "jaKana")].filter(({ fields }) => !isEmpty$1(fields));
3113
+ if (nameLocalization.length) legalEntity.individual.name.localization = nameLocalization;
3114
+ const addressLocalizations = mapJpAddressSchemaToAddressLocalizations(individual.additionalPersonalDetails);
3115
+ if (addressLocalizations.length > 0) legalEntity.individual.residentialAddress.localization = addressLocalizations;
3116
+ if (individual.basicDetails?.phoneNumber) {
3117
+ const phone = {
3118
+ number: individual.basicDetails.phoneNumber.number,
3119
+ type: "mobile"
3120
+ };
3121
+ if (phone.number && legalEntity.individual) legalEntity.individual.phone = phone;
3122
+ else delete legalEntity?.individual?.phone;
3123
+ }
3124
+ return legalEntity;
3125
+ };
3126
+ //#endregion
3127
+ //#region src/components/Individual/tasks/IndividualDropin/individualFormConfig.ts
3128
+ var identityOnfidoBase = {
3129
+ role: { rule: "requiredIfDecisionMakerTask" },
3130
+ firstName: { rule: "REQUIRED" },
3131
+ lastName: { rule: "REQUIRED" },
3132
+ birthDate: { rule: "REQUIRED" },
3133
+ phoneNumber: { rules: ["requiredIfPhoneScenarioDisabled", "contactsIfRequiredForRole"] },
3134
+ email: { rule: "contactsIfRequiredForRole" },
3135
+ jobTitle: { rule: "jobTitleIfRequiredForRole" },
3136
+ placeOfBirth: { rule: "isPlaceOfBirthRequired" },
3137
+ nationality: { rule: "nationalityIfRequiredForRole" },
3138
+ address: { rule: "addressIfRequiredForCountry" },
3139
+ otherAddressInformation: { rule: "otherAddressInfoIfRequiredForCountry" },
3140
+ country: { rule: "REQUIRED" },
3141
+ postalCode: { rule: "postalCodeIfRequiredForCountry" },
3142
+ city: { rule: "cityIfRequiredForCountry" },
3143
+ stateOrProvince: { rule: "stateOrProvinceIfRequiredForCountry" },
3144
+ proofOfResidency: { rule: "isProofOfResidencyRequired" },
3145
+ proofOfNationalId: { rule: "isProofOfNationalIdRequired" },
3146
+ relationship: { rule: "legalRepresentativeRelationshipRequired" },
3147
+ proofOfRelationship: { rule: "isProofOfRelationshipRequired" },
3148
+ idVerificationMethod: { rule: "isIdVerificationMethodRequired" },
3149
+ idDocument: { rule: "isUsingInstantVerificationOrHasExistingDocument" },
3150
+ idDocumentType: { rule: "isManualIdFlowAndHasMissingData" },
3151
+ /**
3152
+ * Below fields only relevant if manual ID is needed
3153
+ * @see identityNumber
3154
+ * @see idDocRequired
3155
+ */
3156
+ idFrontPage: { rule: "hasChosenIdType" },
3157
+ idBackPage: { rule: "backPageIfRequiredForIdType" },
3158
+ isSignatory: { rules: ["requiredIfDecisionMakerTask"] },
3159
+ isOwner: { rules: ["requiredIfDecisionMakerTask"] },
3160
+ isControllingPerson: { rules: ["requiredIfDecisionMakerTask"] },
3161
+ isDirector: { rules: ["requiredIfDecisionMakerTask", "isDirectorRequiredForCountry"] },
3162
+ isNomineeDirector: { rules: ["requiredIfDecisionMakerTask", "nomineeDirectorRequiredForCountry"] },
3163
+ isNomineeShareholder: { rules: ["requiredIfDecisionMakerTask", "nomineeShareHolderRequiredForCountry"] },
3164
+ jaHaniFirstName: { rule: "japanSpecificField" },
3165
+ jaHaniLastName: { rule: "japanSpecificField" },
3166
+ jaKanaFirstName: { rule: "japanSpecificField" },
3167
+ jaKanaLastName: { rule: "japanSpecificField" },
3168
+ jaHaniAddress: { rule: "japanSpecificField" },
3169
+ jaHaniCity: { rule: "japanSpecificField" },
3170
+ jaHaniStateOrProvince: { rule: "japanSpecificField" },
3171
+ jaKanaCity: { rule: "japanSpecificField" },
3172
+ jaKanaStateOrProvince: { rule: "japanSpecificField" }
3173
+ };
3174
+ var identityNumber = {
3175
+ idNumber: {
3176
+ rule: "idNumberRules",
3177
+ obscured: true
3178
+ },
3179
+ idNumberExempt: { rules: ["idNumberExemptIfApplicableCountry", "isDirectorIdNumberRequiredForCountry"] },
3180
+ idDocumentType: { rule: "isManualIdFlowAndNotProvidingIdNumber" }
3181
+ };
3182
+ var additionalIdentityInfo = {
3183
+ typeOfIdentity: { rules: ["requiredIfCountryUsesMultipleTypesOfIdentity", "isDirectorIdNumberRequiredForCountry"] },
3184
+ issuerState: { rule: "issuerStateRequired" },
3185
+ licenseCardNumber: { rule: "licenseCardNumberRules" },
3186
+ expiryDate: { rule: "expiryDateRequired" }
3187
+ };
3188
+ var idDocRequired = { idDocumentType: { rule: "isManualIdFlow" } };
3189
+ var nationality = { nationality: { rule: "REQUIRED" } };
3190
+ var phoneNumberBase = { phoneNumber: { rule: "contactsIfRequiredForRole" } };
3191
+ var inviteDetails = {
3192
+ senderName: { rule: "isVerifyByInviteSelected" },
3193
+ message: { rule: "isVerifyByInviteSelected" }
3194
+ };
3195
+ var taxInformationBase = { taxInformation: { rule: "countryUsesTaxId" } };
3196
+ var individualFieldsPerScenario = {
3197
+ L0: {
3198
+ ...drop("address", "birthDate").from(identityOnfidoBase),
3199
+ ...inviteDetails
3200
+ },
3201
+ L1: {
3202
+ ...identityOnfidoBase,
3203
+ ...inviteDetails
3204
+ },
3205
+ L1_ID: {
3206
+ ...identityOnfidoBase,
3207
+ ...identityNumber,
3208
+ ...additionalIdentityInfo,
3209
+ ...inviteDetails
3210
+ },
3211
+ L1_IDO: {
3212
+ ...identityOnfidoBase,
3213
+ ...identityNumber,
3214
+ ...additionalIdentityInfo,
3215
+ ...inviteDetails
3216
+ },
3217
+ L1_NAT: {
3218
+ ...identityOnfidoBase,
3219
+ ...identityNumber,
3220
+ ...additionalIdentityInfo,
3221
+ ...nationality,
3222
+ ...inviteDetails
3223
+ },
3224
+ L_TAXINFO: {
3225
+ ...identityOnfidoBase,
3226
+ ...taxInformationBase,
3227
+ ...inviteDetails
3228
+ },
3229
+ L1_IDDOC: idDocRequired,
3230
+ L_PH: phoneNumberBase
3231
+ };
3232
+ //#endregion
3233
+ //#region src/components/Individual/tasks/IndividualDropin/IndividualDropin.tsx
3234
+ var LIVE_SELFIE_ERROR_CODE = "2_8210";
3235
+ var parseIndividualScenarios = (scenarios) => composePerScenarioFormConfigurations(scenarios, individualFieldsPerScenario);
3236
+ var parseConfiguration = ({ scenarios }) => parseIndividualScenarios(scenarios);
3237
+ var logger = createLogger();
3238
+ function IndividualDropin({ taskType = TaskTypes.INDIVIDUAL, parentLegalEntity, legalEntityResponse, handleHomeClick, isTargetLegalEntityType, country: parentCountry, problems: propProblems, trustMember, onSubmit: externalOnSubmit, asModal = false, handleBackClick: externalBackClick, trustedFields, trustedFieldsProvider, trustedRoles, isInvitedEntity, invitedEntityDetails }) {
3239
+ const { baseUrl, rootLegalEntityId } = useApiContext();
3240
+ const { accountHolder, setAccountHolder } = useAccountHolder();
3241
+ const { t, i18n } = useTranslation(["common", "individual"]);
3242
+ const userEvents = useAnalyticsContext();
3243
+ const { showToast, clearToasts } = useToastContext();
3244
+ const { isFeatureEnabled } = useToggleContext();
3245
+ const { isSettingEnabled } = useSettingsContext();
3246
+ const queryClient = useQueryClient();
3247
+ const { data: providerStatus } = useProviderStatus({
3248
+ providers: ["idDocument"],
3249
+ country: legalEntityResponse ? getLegalEntityCountry(legalEntityResponse) : "NL"
3250
+ });
3251
+ const isInstantVerificationEnabled = providerStatus?.statuses?.idDocument?.enabled ?? true;
3252
+ const { mutateAsync: updateLegalEntity } = useUpdateLegalEntity();
3253
+ const isRoleFieldNeeded = taskType === TaskTypes.DECISION_MAKER || taskType === TaskTypes.TRUST_MEMBER_COMPANY_OWNER || taskType === TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_COMPANY_OWNER;
3254
+ const dataFromResponse = useMemo$1(() => {
3255
+ const formStateData = individualFormDefaultData.value;
3256
+ individualFormDefaultData.value = null;
3257
+ if (legalEntityResponse) {
3258
+ const mappedData = mapLegalEntityToIndividualSchema(legalEntityResponse, isTargetLegalEntityType, isRoleFieldNeeded, parentLegalEntity);
3259
+ return {
3260
+ ...mappedData,
3261
+ ...isInvitedEntity && invitedEntityDetails?.jobTitle && { basicDetails: {
3262
+ ...mappedData.basicDetails,
3263
+ jobTitle: invitedEntityDetails.jobTitle
3264
+ } },
3265
+ ...formStateData
3266
+ };
3267
+ }
3268
+ return {
3269
+ additionalPersonalDetails: { country: parentCountry },
3270
+ ...formStateData
3271
+ };
3272
+ }, [
3273
+ legalEntityResponse,
3274
+ parentCountry,
3275
+ isTargetLegalEntityType,
3276
+ isRoleFieldNeeded,
3277
+ parentLegalEntity,
3278
+ isInvitedEntity,
3279
+ invitedEntityDetails
3280
+ ]);
3281
+ const [matchingScenario, setMatchingScenario] = useState$1();
3282
+ const [validationErrors, setValidationErrors] = useState$1();
3283
+ const [loadingStatus, setLoadingStatus] = useState$1("success");
3284
+ const [existingAttachments, setExistingAttachments] = useState$1();
3285
+ const [documents, setDocuments] = useState$1();
3286
+ const [country, setCountry] = useState$1(dataFromResponse?.additionalPersonalDetails?.country ?? parentCountry);
3287
+ const [derivedProps, setDerivedProps] = useState$1();
3288
+ const [nextHandler, setNextHandler] = useState$1();
3289
+ const [hasBafinNavigated, setHasBafinNavigated] = useState$1(false);
3290
+ const problems = useMemo$1(() => ({
3291
+ ...propProblems,
3292
+ validationErrors
3293
+ }), [propProblems, validationErrors]);
3294
+ const hasVerificationErrors = propProblems?.verificationErrors && Object.keys(propProblems.verificationErrors).length > 0;
3295
+ /**
3296
+ * Analytics
3297
+ */
3298
+ useTaskLandedEvent("DECISION_MAKER_OVERVIEW");
3299
+ const individualFieldValidations = useCallback$1((data) => ({
3300
+ basicDetails: basicDetailsValidators({
3301
+ isFeatureEnabled,
3302
+ country
3303
+ }),
3304
+ additionalPersonalDetails: additionalPersonalDetailsValidators({
3305
+ country: data?.additionalPersonalDetails?.country ?? country,
3306
+ isFeatureEnabled,
3307
+ isSettingEnabled,
3308
+ taskType,
3309
+ idNumberType: data?.additionalPersonalDetails?.typeOfIdentity,
3310
+ idNumberExempt: data?.additionalPersonalDetails?.idNumberExempt,
3311
+ idNumber: data?.additionalPersonalDetails?.idNumber,
3312
+ existingIdNumber: dataFromResponse.additionalPersonalDetails?.idNumber,
3313
+ formVerificationErrors: problems?.verificationErrors?.additionalPersonalDetails,
3314
+ t,
3315
+ taxIdNumberType: data?.additionalPersonalDetails?.taxInformation?.length ? data?.additionalPersonalDetails?.taxInformation[0]?.type : void 0
3316
+ }),
3317
+ inviteDetails: inviteDetailsValidators()
3318
+ }), [
3319
+ country,
3320
+ dataFromResponse.additionalPersonalDetails?.idNumber,
3321
+ t,
3322
+ isFeatureEnabled,
3323
+ isSettingEnabled,
3324
+ problems?.verificationErrors?.additionalPersonalDetails,
3325
+ taskType
3326
+ ]);
3327
+ const validatePhoneNumber = useValidatePhoneNumberImperatively();
3328
+ const { mutateAsync: verifyIdNumber } = useVerifyIdNumber();
3329
+ const individualFieldAsyncValidations = useCallback$1((data) => ({
3330
+ basicDetails: { phoneNumber: getAsyncPhoneValidationRules(validatePhoneNumber).phoneNumber },
3331
+ additionalPersonalDetails: { idNumber: getAsyncIdNumberValidationRule(verifyIdNumber, data?.additionalPersonalDetails, data?.basicDetails).idNumber }
3332
+ }), [verifyIdNumber, validatePhoneNumber]);
3333
+ const defaultData = useMemo$1(() => {
3334
+ if (!documents) return dataFromResponse;
3335
+ return {
3336
+ ...dataFromResponse,
3337
+ ...drop("manualIdUpload").from(documents),
3338
+ idVerificationMethod: {
3339
+ idDocument: documents.manualIdUpload,
3340
+ idVerificationMethod: "existingDocument"
3341
+ }
3342
+ };
3343
+ }, [documents, dataFromResponse]);
3344
+ const form = useMultiForm({
3345
+ requiredFields: derivedProps?.requiredFields,
3346
+ defaultData,
3347
+ rules: individualFieldValidations,
3348
+ asyncRules: individualFieldAsyncValidations,
3349
+ optionalFields: derivedProps?.optionalFields,
3350
+ obscuredFields: {
3351
+ /**takes care of scenario when the 4 digit provided is wrong based on verification errors and
3352
+ * we need to show validation error for defaultData which is already saved
3353
+ **/
3354
+ additionalPersonalDetails: check4DigitSsnFailed(problems?.verificationErrors?.additionalPersonalDetails) ? [] : ["idNumber"] }
3355
+ });
3356
+ const documentUtils = documentApiUtils({
3357
+ baseUrl: baseUrl.value,
3358
+ rootLegalEntityId: rootLegalEntityId.value
3359
+ });
3360
+ const { data, requiredFields } = form;
3361
+ useEffect$1(() => {
3362
+ setCountry(data?.additionalPersonalDetails?.country ?? parentCountry);
3363
+ }, [data?.additionalPersonalDetails?.country, parentCountry]);
3364
+ const { data: scenarios } = useScenarios(country, LegalEntityTypes.INDIVIDUAL);
3365
+ useEffect$1(() => {
3366
+ if (!scenarios) return;
3367
+ setHasMotionCaptureScenario(scenarios);
3368
+ setMatchingScenario(scenarios);
3369
+ }, [scenarios]);
3370
+ /**
3371
+ * Fetch Configurations
3372
+ */
3373
+ const { fieldConfigurations } = useScenarioConfiguration({
3374
+ parseConfiguration,
3375
+ legalEntityType: LegalEntityTypes.INDIVIDUAL,
3376
+ setLoadingStatus,
3377
+ country
3378
+ });
3379
+ /**
3380
+ * parse configuration and create component props
3381
+ */
3382
+ const fieldsFromCustomRules = useMemo$1(() => individualRules({
3383
+ matchingScenario,
3384
+ data,
3385
+ country: data?.additionalPersonalDetails?.country ?? country,
3386
+ taskType,
3387
+ isFeatureEnabled,
3388
+ rootLegalEntity: parentLegalEntity,
3389
+ problems
3390
+ }), [
3391
+ country,
3392
+ matchingScenario,
3393
+ data,
3394
+ isFeatureEnabled,
3395
+ parentLegalEntity,
3396
+ taskType,
3397
+ problems
3398
+ ]);
3399
+ const hasLiveSelfieErrorCode = problems?.missingData?.some((problem) => problem.code === LIVE_SELFIE_ERROR_CODE && problem.type === "dataMissing");
3400
+ useEffect$1(() => {
3401
+ const derivedProps = getPropsFromConfigurations({
3402
+ scenarioConfiguration: fieldConfigurations,
3403
+ forms: individualForms,
3404
+ remediationActions: problems?.remediationActions ? Object.values(problems?.remediationActions) : [],
3405
+ dataMissingErrors: problems?.missingData ?? [],
3406
+ fieldsWithExistingData: legalEntityResponse ? getFieldsWithExistingData(legalEntityResponse, individualApiKeyMapping, individualDocumentMapping, [
3407
+ "additionalPersonalDetails.typeOfIdentity",
3408
+ "additionalPersonalDetails.idNumber",
3409
+ "additionalPersonalDetails.stateOrProvince",
3410
+ "additionalPersonalDetails.issuerState"
3411
+ ]) : [],
3412
+ customRules: fieldsFromCustomRules,
3413
+ legalEntityType: legalEntityResponse?.type,
3414
+ legalEntityTrustedFields: [],
3415
+ remediationFieldAsOptional: true
3416
+ });
3417
+ /**
3418
+ * For invited entities, if they already have data for certain basic details (jobTitle, email, phoneNumber),
3419
+ * we do not want to prompt them to enter or edit these details again.
3420
+ * By calculating these 'hidden' fields and removing them from required/optional fields,
3421
+ * the BasicDetails form will not render them.
3422
+ */
3423
+ if (isInvitedEntity && derivedProps && dataFromResponse?.basicDetails) {
3424
+ const basicDetailsData = dataFromResponse.basicDetails;
3425
+ const hiddenFields = new Set([
3426
+ "jobTitle",
3427
+ "email",
3428
+ "phoneNumber"
3429
+ ].filter((field) => Boolean(basicDetailsData[field])));
3430
+ if (hiddenFields.size > 0) {
3431
+ const filterFields = (fields) => fields?.filter((field) => !hiddenFields.has(field));
3432
+ if (derivedProps.requiredFields?.basicDetails) derivedProps.requiredFields.basicDetails = filterFields(derivedProps.requiredFields.basicDetails);
3433
+ if (derivedProps.optionalFields?.basicDetails) derivedProps.optionalFields.basicDetails = filterFields(derivedProps.optionalFields.basicDetails);
3434
+ }
3435
+ }
3436
+ const updatedDerivedProps = mandateIdVerificationForMotionCapture(hasLiveSelfieErrorCode || showIndividualMotionCapture?.value, derivedProps);
3437
+ if (updatedDerivedProps) setDerivedProps(updatedDerivedProps);
3438
+ }, [
3439
+ fieldConfigurations,
3440
+ legalEntityResponse,
3441
+ fieldsFromCustomRules,
3442
+ problems?.remediationActions,
3443
+ problems?.missingData,
3444
+ hasLiveSelfieErrorCode,
3445
+ isInvitedEntity,
3446
+ dataFromResponse?.basicDetails
3447
+ ]);
3448
+ /**
3449
+ * Fetch the documents of the legal entity
3450
+ */
3451
+ useEffect$1(() => {
3452
+ if (!legalEntityResponse?.documentDetails?.length) return;
3453
+ documentUtils.fetchDocuments(legalEntityResponse.documentDetails, legalEntityResponse?.id).then((res) => {
3454
+ setExistingAttachments(res[0].attachments);
3455
+ setDocuments(mapApiDocumentToIndividualDocuments(legalEntityResponse?.id));
3456
+ }).catch(() => {
3457
+ showToast({
3458
+ label: t(($) => $["failedToFetchRelevantDocuments"]),
3459
+ variant: "error"
3460
+ });
3461
+ });
3462
+ }, []);
3463
+ /**
3464
+ * Configure forms based on obtained props
3465
+ */
3466
+ const forms = useMemo$1(() => {
3467
+ return addValidityToForms(getRequiredForms(individualForms, derivedProps?.requiredFields, derivedProps?.optionalFields).filter((form) => {
3468
+ const { formId } = form;
3469
+ if (!isInstantVerificationEnabled && formId === individualForms.idVerificationMethod.formId) return false;
3470
+ if (data.idVerificationMethod?.idVerificationMethod === "verifyByInvite" && ![
3471
+ individualForms.uboQuestionnaire.formId,
3472
+ individualForms.signatoryQuestionnaire.formId,
3473
+ individualForms.basicDetails.formId,
3474
+ individualForms.idVerificationMethod.formId,
3475
+ individualForms.inviteDetails.formId,
3476
+ "summary"
3477
+ ].includes(formId)) return false;
3478
+ if (isInvitedEntity && (formId === individualForms.signatoryQuestionnaire.formId || formId === individualForms.uboQuestionnaire.formId)) return false;
3479
+ if (formId === individualForms.inviteDetails.formId) return data.idVerificationMethod?.idVerificationMethod === "verifyByInvite";
3480
+ return true;
3481
+ }), form.isValid, problems);
3482
+ }, [
3483
+ derivedProps,
3484
+ form.isValid,
3485
+ isInstantVerificationEnabled,
3486
+ problems,
3487
+ isInvitedEntity,
3488
+ data.idVerificationMethod?.idVerificationMethod
3489
+ ]);
3490
+ const { mutateAsync: getIdVerificationStartCheck } = useIdVerificationStartCheck();
3491
+ const handleInstantIdVerificationStartCheck = async (onfidoResponse, legalEntityId) => {
3492
+ const providerId = idVerificationProviderId.value;
3493
+ if (!providerId) throw Error("idVerificationProviderId not yet set");
3494
+ await getIdVerificationStartCheck({
3495
+ providerId,
3496
+ legalEntityId,
3497
+ captureMetadata: onfidoResponse
3498
+ });
3499
+ };
3500
+ const roleTypes = isRoleFieldNeeded && parentLegalEntity ? getAllowedDecisionMakerRoles(parentLegalEntity, taskType, matchingScenario) : [];
3501
+ const { mutateAsync: createLegalEntity } = useCreateLegalEntity();
3502
+ const { mutateAsync: createInvitationMutation } = useCreateInvitation();
3503
+ const idDocumentTypeOptions = getLocalizedIdDocumentTypeOptions(country);
3504
+ const submitLegalEntity = async ({ dataSubmitted, legalEntity, idDocumentType }) => {
3505
+ let updatedLegalEntity;
3506
+ /**
3507
+ * Check whether the individual was already created. Can happen when the individual got created,
3508
+ * but a subsequent call (POSTing documents or PATCHing parent LE) failed.
3509
+ */
3510
+ const existingLeId = legalEntityResponse?.id;
3511
+ if (legalEntity.individual && legalEntityResponse?.individual?.support) legalEntity.individual.support = customerSupportPresubmitProcess(legalEntityResponse, legalEntity);
3512
+ if (!existingLeId) {
3513
+ updatedLegalEntity = await createLegalEntity(legalEntity);
3514
+ userEvents.addTaskEvent("Success", {
3515
+ actionType: "submit",
3516
+ countryOfRegistration: dataSubmitted.additionalPersonalDetails?.country,
3517
+ roles: dataSubmitted.basicDetails?.role
3518
+ });
3519
+ } else {
3520
+ updatedLegalEntity = await updateLegalEntity({
3521
+ ...drop("type").from(legalEntity),
3522
+ id: existingLeId
3523
+ });
3524
+ userEvents.addTaskEvent("Success", {
3525
+ actionType: "submit",
3526
+ countryOfRegistration: dataSubmitted.additionalPersonalDetails?.country,
3527
+ documentType: idDocumentType
3528
+ });
3529
+ }
3530
+ return updatedLegalEntity;
3531
+ };
3532
+ const createInvite = async ({ inviteeLegalEntityId, inviteDetails }) => {
3533
+ if (!parentLegalEntity?.id || !inviteDetails?.senderName || !inviteDetails?.message) {
3534
+ logger.warn("createInvite: Missing required data", {
3535
+ hasParentLegalEntity: !!parentLegalEntity?.id,
3536
+ hasSenderName: !!inviteDetails?.senderName,
3537
+ hasMessage: !!inviteDetails?.message
3538
+ });
3539
+ showToast({
3540
+ label: t(($) => $["provideAllRequiredDetails"]),
3541
+ variant: "error"
3542
+ });
3543
+ throw new Error("createInvite: Missing required data");
3544
+ }
3545
+ try {
3546
+ const { url } = await createInvitationMutation({
3547
+ organizationLegalEntityId: parentLegalEntity.id,
3548
+ inviteeLegalEntityId,
3549
+ data: {
3550
+ facilitatorName: inviteDetails.senderName,
3551
+ facilitatorMessage: inviteDetails.message,
3552
+ sendEmail: true,
3553
+ locale: i18n.language
3554
+ }
3555
+ });
3556
+ logger.log("Invitation created successfully", {
3557
+ inviteeLegalEntityId,
3558
+ inviteLink: url
3559
+ });
3560
+ showToast({
3561
+ label: t(($) => $["invitationSent"], { ns: "individual" }),
3562
+ variant: "success"
3563
+ });
3564
+ } catch (error) {
3565
+ logger.error("Failed to create invitation", {
3566
+ error,
3567
+ inviteeLegalEntityId
3568
+ });
3569
+ showToast({
3570
+ label: t(($) => $["failedToUpdateDetails"]),
3571
+ variant: "error"
3572
+ });
3573
+ throw error;
3574
+ }
3575
+ };
3576
+ const submitDocuments = async ({ legalEntity, dataSubmitted }) => {
3577
+ const idDocument = dataSubmitted.idVerificationMethod?.idDocument;
3578
+ if (idDocument?.instantIdVerificationData) {
3579
+ if (providerStatus?.statuses?.idDocument?.enabled === false) throw new Error("Provider unexpectedly disabled instant verification flow");
3580
+ await handleInstantIdVerificationStartCheck(idDocument.instantIdVerificationData, legalEntity.id);
3581
+ } else {
3582
+ const formattedDocuments = await mapIndividualDocumentToApiDocument(dataSubmitted, legalEntity.id);
3583
+ if (!formattedDocuments || formattedDocuments?.length === 0) {
3584
+ if (existingAttachments?.length) logger.log("User has already uploaded documents and is not changing them, nothing needs to be done");
3585
+ else logger.error(`formattedDocuments is empty, but there are no existing documents. Something has gone wrong`);
3586
+ return;
3587
+ }
3588
+ formattedDocuments[0].attachments = mergeAttachments(existingAttachments ?? [], formattedDocuments[0]?.attachments ?? []).filter((attachment) => attachment.content);
3589
+ (await documentUtils.uploadDocuments(formattedDocuments, legalEntity.id))?.forEach((doc) => {
3590
+ userEvents.addTaskEvent("Success", {
3591
+ actionType: "upload",
3592
+ documentType: doc.type,
3593
+ fileExtention: doc?.attachments?.map((item) => getFileExtention(item.pageName ?? "")).filter((item) => item !== void 0) ?? void 0
3594
+ });
3595
+ });
3596
+ }
3597
+ };
3598
+ /**
3599
+ * Compares an entity's existing roles with a new set of roles to see if they have changed.
3600
+ * @param legalEntityId - The ID of the legal entity whose roles are being checked.
3601
+ * @param existingEntityAssociations - The array of existing legal entity associations.
3602
+ * @param newRoles - The array of new roles.
3603
+ * @returns `true` if the roles have changed, `false` otherwise.
3604
+ */
3605
+ const hasRolesChanged = (legalEntityId, existingEntityAssociations, newRoles) => {
3606
+ const existingRoles = existingEntityAssociations?.filter((association) => association.legalEntityId === legalEntityId).map(({ type }) => type);
3607
+ return !doArraysMatch(existingRoles, newRoles);
3608
+ };
3609
+ const attachAssociationToParentLegalEntity = async ({ legalEntity, parentLE, dataSubmitted }) => {
3610
+ let newRoles = null;
3611
+ switch (taskType) {
3612
+ case TaskTypes.DECISION_MAKER:
3613
+ case TaskTypes.TRUST_MEMBER_COMPANY_OWNER:
3614
+ case TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_COMPANY_OWNER:
3615
+ newRoles = dataSubmitted?.basicDetails?.role;
3616
+ break;
3617
+ case TaskTypes.TRUST_MEMBER_INDIVIDUAL:
3618
+ case TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_INDIVIDUAL:
3619
+ newRoles = trustMember?.roles;
3620
+ break;
3621
+ }
3622
+ const existingEntityAssociations = getOwnEntityAssociations(parentLE);
3623
+ if (newRoles && (hasRolesChanged(legalEntity?.id, existingEntityAssociations, newRoles) || dataFromResponse.basicDetails?.jobTitle !== dataSubmitted?.basicDetails?.jobTitle || hasNomineesChanged(dataFromResponse.basicDetails, dataSubmitted.basicDetails))) {
3624
+ const updatedParentLegalEntity = { entityAssociations: [...newRoles.map((role) => ({
3625
+ type: role,
3626
+ legalEntityId: legalEntity.id,
3627
+ ...DECISION_MAKER_TYPES_WITH_JOBTITLE.some((type) => type === role) && { jobTitle: dataSubmitted?.basicDetails?.jobTitle }
3628
+ })) || [], ...existingEntityAssociations.filter((ea) => ea.legalEntityId !== legalEntity.id) || []] };
3629
+ const nomineeDataSource = dataSubmitted?.uboQuestionnaire;
3630
+ if (nomineeDataSource && updatedParentLegalEntity.entityAssociations) updatedParentLegalEntity.entityAssociations = updatedParentLegalEntity.entityAssociations.map((ea) => attachNomineeToRole(ea, country, nomineeDataSource));
3631
+ await updateLegalEntity({
3632
+ ...updatedParentLegalEntity,
3633
+ id: parentLE.id
3634
+ });
3635
+ }
3636
+ };
3637
+ async function rollbackAttachingAssociation(legalEntityId, parentLE) {
3638
+ try {
3639
+ await updateLegalEntity({
3640
+ entityAssociations: (parentLE.entityAssociations ?? []).filter((entityAssociation) => entityAssociation.legalEntityId !== legalEntityId),
3641
+ id: parentLE.id
3642
+ });
3643
+ } catch (err) {
3644
+ logger.error(`Could not roll back attaching association ${legalEntityId} to ${parentLE.id}`, err);
3645
+ }
3646
+ }
3647
+ /**
3648
+ * OnSubmit will handle the creation and updating of Legal Entities (individuals)
3649
+ * 1) Format component data to legal API data
3650
+ * 2) Create/Update depending on legalEntity?.id
3651
+ */
3652
+ const onSubmit = async () => {
3653
+ setLoadingStatus("loading");
3654
+ const dataSubmitted = omitObscuredFieldsIfUnchanged(individualObscuredFields, data, dataFromResponse);
3655
+ if (!dataSubmitted) return;
3656
+ try {
3657
+ const legalEntity = mapIndividualSchemaToLegalEntity(dataSubmitted, isFeatureEnabled, matchingScenario);
3658
+ const idDocumentType = idDocumentTypeOptions.find(({ id }) => dataSubmitted?.idVerificationMethod?.idDocument?.idDocumentType === id)?.id;
3659
+ legalEntity.entityAssociations = filterOutUnwantedAssociationsIfRootLE(taskType, legalEntityResponse, accountHolder || void 0);
3660
+ clearToasts();
3661
+ const submittedLegalEntity = await submitLegalEntity({
3662
+ dataSubmitted,
3663
+ legalEntity,
3664
+ idDocumentType
3665
+ });
3666
+ setAccountHolder(accountHolder);
3667
+ if (dataSubmitted.idVerificationMethod && dataSubmitted.idVerificationMethod?.idVerificationMethod !== "existingDocument" || hasVerificationErrors) {
3668
+ if (!(dataSubmitted?.basicDetails?.role?.includes(DecisionMakerTypes.SIGNATORY) && matchingScenario?.includes(Scenarios.L_BAFIN))) await submitDocuments({
3669
+ legalEntity: submittedLegalEntity,
3670
+ dataSubmitted
3671
+ });
3672
+ }
3673
+ if (parentLegalEntity) {
3674
+ await attachAssociationToParentLegalEntity({
3675
+ legalEntity: submittedLegalEntity,
3676
+ parentLE: parentLegalEntity,
3677
+ dataSubmitted
3678
+ });
3679
+ queryClient.invalidateQueries({
3680
+ queryKey: ["legalEntity", parentLegalEntity.id],
3681
+ refetchType: "all"
3682
+ });
3683
+ }
3684
+ if (parentLegalEntity && dataSubmitted.idVerificationMethod?.idVerificationMethod === "verifyByInvite") try {
3685
+ await createInvite({
3686
+ inviteeLegalEntityId: submittedLegalEntity.id,
3687
+ inviteDetails: dataSubmitted.inviteDetails
3688
+ });
3689
+ } catch (err) {
3690
+ logger.error("An error occurred when creating invite, rolling back association of this LE");
3691
+ await rollbackAttachingAssociation(submittedLegalEntity.id, parentLegalEntity);
3692
+ throw err;
3693
+ }
3694
+ idNowModalChildEntityId.value = submittedLegalEntity;
3695
+ setLoadingStatus("success");
3696
+ externalOnSubmit?.(dataSubmitted, matchingScenario);
3697
+ } catch (e) {
3698
+ const eventsAdditionalData = {};
3699
+ logger.error("Failed to update individual", e);
3700
+ if (isValidationError(e)) {
3701
+ const getErrors = processValidationErrors(e, TaskTypes.INDIVIDUAL);
3702
+ if (getErrors && !Object.keys(getErrors).length) {
3703
+ showToast({
3704
+ label: t(($) => $["failedToUpdateDetails"]),
3705
+ variant: "error"
3706
+ });
3707
+ eventsAdditionalData.unmappedErrorNames = e.invalidFields?.map((field) => field.name).filter(Boolean);
3708
+ } else setValidationErrors(getErrors);
3709
+ } else if (isMaintenanceModeError(e)) showToast({
3710
+ label: t(($) => $["maintenanceModeMessage"]),
3711
+ variant: "error",
3712
+ duration: "indefinite"
3713
+ });
3714
+ else showToast({
3715
+ label: t(($) => $["failedToUpdateDetails"]),
3716
+ variant: "error"
3717
+ });
3718
+ setLoadingStatus("success");
3719
+ userEvents.addTaskEvent("Encountered error", {
3720
+ actionType: "submit",
3721
+ additionalData: eventsAdditionalData,
3722
+ returnType: e?.errorCode,
3723
+ returnValue: e?.title || "backend"
3724
+ });
3725
+ }
3726
+ };
3727
+ const datasetUtils = datasetUtilities(i18n.language);
3728
+ const formatIdDocument = (idDocument) => {
3729
+ if (!idDocument) return void 0;
3730
+ const documentType = idDocument?.instantIdVerificationData ? onfidoDocumentTypeMapping.find((document) => idDocument.instantIdVerificationData?.document_front.type === document.id) : idDocumentTypeOptions.find(({ id }) => idDocument.idDocumentType === id);
3731
+ if (!documentType) return void 0;
3732
+ const frontPage = idDocument.idFrontPage?.[0];
3733
+ const backPage = idDocument.idBackPage?.[0];
3734
+ if (!frontPage) return void 0;
3735
+ return {
3736
+ documentType: t(($) => $[documentType.name]),
3737
+ ...backPage && documentType.hasBackPage ? {
3738
+ frontPage: frontPage.name,
3739
+ backPage: backPage.name
3740
+ } : { fileName: frontPage.name }
3741
+ };
3742
+ };
3743
+ const formatFileSummaryData = ({ idVerificationMethod, manualIdUpload, proofOfNationalId, proofOfResidency, proofOfRelationship }) => {
3744
+ const proofOfNationalIdFile = proofOfNationalId?.proofOfNationalId?.[0];
3745
+ const proofOfResidencyFile = proofOfResidency?.proofOfResidency?.[0];
3746
+ const proofOfRelationshipFile = proofOfRelationship?.proofOfRelationship?.[0];
3747
+ const idDocument = idVerificationMethod?.idVerificationMethod === "manualVerification" ? manualIdUpload : idVerificationMethod?.idDocument;
3748
+ return {
3749
+ ...(idDocument?.idDocumentType || idDocument?.instantIdVerificationData) && { idDocument: formatIdDocument(idDocument) },
3750
+ ...proofOfNationalIdFile && { proofOfNationalId: { fileName: proofOfNationalIdFile.name } },
3751
+ ...proofOfResidencyFile && { proofOfResidency: {
3752
+ fileName: proofOfResidencyFile.name,
3753
+ description: proofOfResidency?.description
3754
+ } },
3755
+ ...proofOfRelationshipFile && { proofOfRelationship: {
3756
+ fileName: proofOfRelationshipFile.name,
3757
+ description: proofOfRelationship?.description
3758
+ } }
3759
+ };
3760
+ };
3761
+ const isManualVerificationOrExistingDoc = (idVerificationMethod) => idVerificationMethod === "manualVerification" || idVerificationMethod === "existingDocument";
3762
+ const formatDataForSummary = () => {
3763
+ let summaryData = cloneObject(data);
3764
+ if (summaryData?.basicDetails?.phoneNumber) summaryData.basicDetails.phoneNumber = summaryData.basicDetails.phoneNumber.number;
3765
+ if (summaryData.additionalPersonalDetails?.nationality) summaryData.additionalPersonalDetails.nationality = datasetUtils.getCountryName(summaryData.additionalPersonalDetails.nationality);
3766
+ if (data.additionalPersonalDetails) if (isJapanLocalizationEnabled(isFeatureEnabled, country)) summaryData.additionalPersonalDetails = {
3767
+ ...drop(...JP_ADDRESS_REQUIRED_FIELDS).from(summaryData.additionalPersonalDetails),
3768
+ ...mapJpAddressSummary(data.additionalPersonalDetails, datasetUtils)
3769
+ };
3770
+ else summaryData.additionalPersonalDetails = {
3771
+ ...summaryData.additionalPersonalDetails,
3772
+ ...mapAddressLabels(data.additionalPersonalDetails, datasetUtils)
3773
+ };
3774
+ if (summaryData.basicDetails?.accountHolder) summaryData.basicDetails.accountHolder = t(($) => $[summaryData.basicDetails.accountHolder]);
3775
+ if (summaryData.additionalPersonalDetails?.birthDate) summaryData.additionalPersonalDetails.birthDate = localizeDateString(summaryData.additionalPersonalDetails.birthDate, i18n.language);
3776
+ if (summaryData.idVerificationMethod?.idVerificationMethod === "verifyByInvite") summaryData.idVerificationMethod = {
3777
+ idVerificationMethod: preTranslatedSummaryItem(t(($) => $["type"], { ns: "individual" }), t(($) => $["inviteDecisionMaker"], { ns: "individual" })),
3778
+ sender: preTranslatedSummaryItem(t(($) => $["sender"], { ns: "individual" }), data?.inviteDetails?.senderName ?? null),
3779
+ message: preTranslatedSummaryItem(t(($) => $["message"], { ns: "individual" }), data?.inviteDetails?.message ?? null)
3780
+ };
3781
+ if (isManualVerificationOrExistingDoc(summaryData.idVerificationMethod?.idVerificationMethod) || summaryData.proofOfResidency) {
3782
+ const fileSummaryData = formatFileSummaryData(data);
3783
+ summaryData = {
3784
+ ...summaryData,
3785
+ ...fileSummaryData
3786
+ };
3787
+ summaryData.manualIdUpload = { ...summaryData.idDocument };
3788
+ summaryData.idVerificationMethod.idDocument = { ...summaryData.idDocument };
3789
+ }
3790
+ if (summaryData.additionalPersonalDetails?.taxInformation) {
3791
+ const taxInformationByNationality = summaryData.additionalPersonalDetails.taxInformation.find((taxId) => taxId.country === data.additionalPersonalDetails?.nationality);
3792
+ if (taxInformationByNationality) {
3793
+ delete summaryData.additionalPersonalDetails.taxInformation;
3794
+ summaryData.additionalPersonalDetails[taxInformationByNationality.type] = taxInformationByNationality.number;
3795
+ }
3796
+ if (!taxInformationByNationality) {
3797
+ const taxInformationByCountry = summaryData.additionalPersonalDetails.taxInformation.find((taxId) => taxId.country === data.additionalPersonalDetails?.country);
3798
+ if (taxInformationByCountry) {
3799
+ delete summaryData.additionalPersonalDetails.taxInformation;
3800
+ summaryData.additionalPersonalDetails[taxInformationByCountry.type] = taxInformationByCountry.number;
3801
+ }
3802
+ }
3803
+ }
3804
+ if (summaryData?.signatoryQuestionnaire) summaryData.signatoryQuestionnaire = data?.signatoryQuestionnaire?.isSignatory === GuidanceQuestionValues.YES ? [t(($) => $["signatorySummaryLabel"])] : [];
3805
+ if (summaryData?.uboQuestionnaire) {
3806
+ const roleFieldToLabelMap = {
3807
+ isOwner: "ownerSummaryLabel",
3808
+ isControllingPerson: "controllingPersonSummaryLabel",
3809
+ isDirector: "directorSummaryLabel"
3810
+ };
3811
+ summaryData.uboQuestionnaire = Object.keys(roleFieldToLabelMap).flatMap((field) => data?.uboQuestionnaire?.[field] === GuidanceQuestionValues.YES ? [t(($) => $[roleFieldToLabelMap[field]], { ns: "individual" })] : []);
3812
+ }
3813
+ return summaryData;
3814
+ };
3815
+ const omittedKeysForSummary = [
3816
+ ...taskType === TaskTypes.DECISION_MAKER ? ["role"] : [],
3817
+ ...data?.additionalPersonalDetails?.idNumberExempt ? ["idNumber"] : [],
3818
+ ...isManualVerificationOrExistingDoc(data?.idVerificationMethod?.idVerificationMethod) ? ["idVerificationMethod", "modificationDate"] : []
3819
+ ];
3820
+ const isUploadEmpty = !data?.manualIdUpload || Object.keys(data?.manualIdUpload).length === 0;
3821
+ const omittedFormsForSummary = [...data?.idVerificationMethod?.idVerificationMethod === "instantVerification" || isManualVerificationOrExistingDoc(data?.idVerificationMethod?.idVerificationMethod) && isUploadEmpty || data?.idVerificationMethod?.idVerificationMethod === "verifyByInvite" ? ["idDocument", "inviteDetails"] : [], ...isManualVerificationOrExistingDoc(data?.idVerificationMethod?.idVerificationMethod) ? ["idVerificationMethod", "inviteDetails"] : []];
3822
+ const customLabelsForSummary = { idVerificationMethod: {
3823
+ instantVerification: "idVerificationMethod",
3824
+ manualVerification: "idDocument",
3825
+ existingDocument: "idDocument",
3826
+ verifyByInvite: "idVerificationMethod"
3827
+ }[data?.idVerificationMethod?.idVerificationMethod ?? ""] ?? "idDocument" };
3828
+ const { handleNextClick, handleBackClick, activeForm, shouldValidate, gotoFormByFormIndex, gotoFormByFormId, steps } = useFormComposer({
3829
+ problems,
3830
+ externalBackClick,
3831
+ forms,
3832
+ onSubmit,
3833
+ triggerValidation: form.triggerValidation
3834
+ });
3835
+ const isBafinSignatory = data?.basicDetails?.role?.includes(DecisionMakerTypes.SIGNATORY) && scenarios?.includes(Scenarios.L_BAFIN);
3836
+ const shouldNavigateToAdditionalPersonalDetails = isBafinSignatory && shouldNavigateToAdditionalPersonalDetailsForMissingData.value && Boolean(legalEntityResponse?.id) && (!data?.additionalPersonalDetails?.placeOfBirth || !data?.additionalPersonalDetails?.nationality);
3837
+ if (isBafinSignatory && !hasBafinNavigated) {
3838
+ setHasBafinNavigated(true);
3839
+ shouldNavigateToAdditionalPersonalDetailsForMissingData.value = false;
3840
+ gotoFormByFormId(shouldNavigateToAdditionalPersonalDetails ? individualForms.additionalPersonalDetails.formId : individualForms.signatoryQuestionnaire.formId);
3841
+ }
3842
+ const disableNextButton = activeForm?.formId === "idVerificationMethod" && !activeForm?.isValid || isNextStepDisabled.value;
3843
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(Show, {
3844
+ when: shouldShowIdNowModal,
3845
+ children: /* @__PURE__ */ jsx(IdNowVerificationModal, { handleFinish: handleHomeClick })
3846
+ }), /* @__PURE__ */ jsx(FormContextProvider, {
3847
+ form,
3848
+ children: /* @__PURE__ */ jsx(FormFlow, {
3849
+ summary: {
3850
+ data: formatDataForSummary(),
3851
+ omitted: {
3852
+ keys: omittedKeysForSummary,
3853
+ forms: omittedFormsForSummary
3854
+ },
3855
+ problems,
3856
+ labels: customLabelsForSummary
3857
+ },
3858
+ asModal,
3859
+ currentStep: steps.current,
3860
+ disableNextButton,
3861
+ forms,
3862
+ activeForm,
3863
+ gotoFormByFormIndex,
3864
+ gotoFormByFormId,
3865
+ handleBackClick,
3866
+ handleCancelClick: handleHomeClick,
3867
+ handleNextClick: nextHandler || handleNextClick,
3868
+ loadingStatus,
3869
+ totalSteps: steps.total,
3870
+ children: /* @__PURE__ */ jsx(Individual, {
3871
+ ...derivedProps,
3872
+ requiredFields,
3873
+ data,
3874
+ defaultCountry: country,
3875
+ activeForm,
3876
+ forms,
3877
+ scenarios,
3878
+ taskType,
3879
+ problems,
3880
+ onNext: handleNextClick,
3881
+ onBack: handleBackClick,
3882
+ legalEntityId: legalEntityResponse?.id,
3883
+ allowedRoles: roleTypes,
3884
+ shouldValidate,
3885
+ accountHolder,
3886
+ parentLegalEntity,
3887
+ trustedFields,
3888
+ trustedFieldsProvider,
3889
+ trustedRoles,
3890
+ setNextHandler,
3891
+ handleHomeClick,
3892
+ isInvitedEntity,
3893
+ invitedEntityDetails
3894
+ })
3895
+ })
3896
+ })] });
3897
+ }
3898
+ //#endregion
3899
+ export { individualForms as n, IndividualDropin as t };