@adyen/kyc-components 3.86.0 → 3.87.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 (397) hide show
  1. package/dist/{AcceptTermsOfServiceComponent-CfKATf4g.js → AcceptTermsOfServiceComponent-DbuTZ2lm.js} +16 -15
  2. package/dist/{Accordion-Dnp7WhUx.js → Accordion-BCelMUrf.js} +2 -2
  3. package/dist/{AccountSetupRejected-BSJJfRWV.js → AccountSetupRejected-Bs86BOhb.js} +5 -5
  4. package/dist/ActionBar-CVuUP-mY.js +31 -0
  5. package/dist/{Address-Bl_bd5Lp.js → Address-CaKnB-Qo.js} +20 -65
  6. package/dist/{Alert-B9R4X_XM.js → Alert-CzqTssej.js} +3 -3
  7. package/dist/{Avatar-DZ9JX3Cp.js → Avatar-cNQKhH0z.js} +2 -2
  8. package/dist/{BusinessDetailsMultiformDropin-BjGT2ZQS.js → BusinessDetailsMultiformDropin-gT_3bL0O.js} +168 -78
  9. package/dist/BusinessFinancingComponent-Cqz7nO9n.js +54 -0
  10. package/dist/{BusinessFinancingDropin-DGpBmbBn.js → BusinessFinancingDropin-hsJXX1Va.js} +23 -20
  11. package/dist/BusinessFinancingPage-CieDJbKg.js +46 -0
  12. package/dist/{BusinessTypeSelectionPage-BCe-2fB6.js → BusinessTypeSelectionPage-C19-xs5o.js} +9 -9
  13. package/dist/{Card-TkGAmjC5.js → Card-Cka2XXoj.js} +3 -3
  14. package/dist/{ConstitutionalDocument-CalFzHjn.js → ConstitutionalDocument-CHj8X6eV.js} +3 -3
  15. package/dist/{CountryField-mxgVAmFp.js → CountryField-B79la7c-.js} +57 -297
  16. package/dist/CreateIndividualComponent-CyfCWgeB.js +71 -0
  17. package/dist/CreateTransferInstrumentComponent-D_jnlFw3.js +66 -0
  18. package/dist/{Currency-DSYdE9Qs.js → Currency-DRUn9oxx.js} +5 -5
  19. package/dist/{CustomerSupport-DRLtpWUp.js → CustomerSupport-abRYvXsD.js} +10 -10
  20. package/dist/{DebugModal-BI1D0dD9.js → DebugModal-CAuPuyh6.js} +9 -10
  21. package/dist/{DecisionMakerDetailsPage-D3CS4w0h.js → DecisionMakerDetailsPage-Dc6W9XHr.js} +17 -17
  22. package/dist/{DecisionMakers-q__qndMm.js → DecisionMakers-CqAa7vi_.js} +52 -51
  23. package/dist/DropinLayout-CBP_cHLC.js +17 -0
  24. package/dist/{EmbeddedStatus-5OzDMQUR.js → EmbeddedStatus-CPowYGBw.js} +3 -3
  25. package/dist/{EndStateLayout-BmWri3S5.js → EndStateLayout-Cj472JTf.js} +2 -2
  26. package/dist/EntityAssociation-BSjw-KJ2.js +159 -0
  27. package/dist/EntityGuidanceStatus-CM6gQcz1.js +105 -0
  28. package/dist/{FormFlow-8pfRbKmA.js → FormFlow-m1k7xInJ.js} +16 -8
  29. package/dist/{FormNavigation-C2KywHXa.js → FormNavigation-9G1WKPrp.js} +5 -23
  30. package/dist/{FormWrapper-CZhSGUa3.js → FormWrapper-DzAkc4KF.js} +10 -10
  31. package/dist/{IndividualOnfido-n3WaW67J.js → IndividualOnfido-hThSjqMs.js} +128 -228
  32. package/dist/{IndividualOnfidoDropin-DZrlWtK6.js → IndividualOnfidoDropin--MwUJcV4.js} +50 -55
  33. package/dist/{InputText-BIySwrmu.js → InputText-DJn5nzG0.js} +95 -5
  34. package/dist/{Introduction-Bt9gH0G5.js → Introduction-CCY9D_nE.js} +4 -4
  35. package/dist/{JpAddress-bHP50zUD.js → JpAddress-yRO24Dme.js} +8 -8
  36. package/dist/{LegalRepresentativeDetailsPage-D4aN-DTv.js → LegalRepresentativeDetailsPage-V5u54a-v.js} +5 -5
  37. package/dist/{ListItem-CILPfTHI.js → ListItem-q98tz21u.js} +3 -3
  38. package/dist/{ManageIndividualComponent-CbiGSFJ_.js → ManageIndividualComponent-CTpMCTKm.js} +5 -5
  39. package/dist/{ManageTermsOfServiceComponent-rvk5MSmL.js → ManageTermsOfServiceComponent-2aq2OxaP.js} +5 -5
  40. package/dist/{ManageTransferInstrumentComponent-D2GUV6zp.js → ManageTransferInstrumentComponent-ChwwZS2D.js} +14 -14
  41. package/dist/{MaybeModal-CZ-qmMqV.js → MaybeModal-BI4OTKmk.js} +3 -3
  42. package/dist/{Modal-GSjDUwX-.js → Modal-C89D3p56.js} +3 -3
  43. package/dist/{OnboardingDropinComponent-BGpgGBrU.js → OnboardingDropinComponent-CVwgW17T.js} +444 -2353
  44. package/dist/{PayoutDetailsDropin-kdkNvTHM.js → PayoutDetailsDropin-BzqbUVzH.js} +666 -159
  45. package/dist/{Review-CN-S9UCT.js → Review-BjDT0xaU.js} +8 -8
  46. package/dist/{RootBusinessDetailsPage-CyQjjBhL.js → RootBusinessDetailsPage-nEpccfkc.js} +6 -6
  47. package/dist/{RootBusinessLinesPage-BhiDzu7x.js → RootBusinessLinesPage-CzUBQFT1.js} +120 -118
  48. package/dist/RootIndividualDetailsPage-DV1z-BQY.js +71 -0
  49. package/dist/{SignPCIComponent-o50WXRbZ.js → SignPCIComponent-C5e1Z52Y.js} +12 -12
  50. package/dist/{SingpassSelection-L1vBg267.js → SingpassSelection-D35jRIBN.js} +4 -4
  51. package/dist/{SoleProprietorshipPage-Cz21B5bv.js → SoleProprietorshipPage-nrrTlQSU.js} +5 -5
  52. package/dist/{SourceOfFundsPage-OPzX7pfM.js → SourceOfFundsPage-YkBw6Xpi.js} +26 -24
  53. package/dist/{StepProgressIndicator-C26xG3ak.js → StepProgressIndicator-Bc_wca9O.js} +2 -2
  54. package/dist/{StoreProvider-Cvqvt7fn.js → StoreProvider-_QQynxk0.js} +248 -241
  55. package/dist/Summary-jCIFPrTE.js +204 -0
  56. package/dist/{TaxReportingDropin-9nQHRCS4.js → TaxReportingDropin-BTeXoX9D.js} +16 -15
  57. package/dist/{TrustDetailsPage-Bx_Pm5Sl.js → TrustDetailsPage-_UPW7Y6f.js} +25 -23
  58. package/dist/{TrustMemberCompanyPage-BoxMy_a_.js → TrustMemberCompanyPage-BzlxQ7Kd.js} +6 -6
  59. package/dist/{TrustMemberIndividualPage-D6n7VhnN.js → TrustMemberIndividualPage-COgsefCp.js} +5 -5
  60. package/dist/TrustMemberRoleAndTypePage-CKL-7ZaB.js +985 -0
  61. package/dist/TrustMembersOverview-CVYKxSoD.js +438 -0
  62. package/dist/{UnincorporatedPartnershipIndividualPage-ZQG0A9HG.js → UnincorporatedPartnershipIndividualPage-DuLh_-Q4.js} +5 -5
  63. package/dist/{UnincorporatedPartnershipMemberCompanyPage-D9n1kJdM.js → UnincorporatedPartnershipMemberCompanyPage-D7A-CuwC.js} +6 -6
  64. package/dist/UnincorporatedPartnershipMemberRoleAndTypePage-BqYHGCCj.js +284 -0
  65. package/dist/UnincorporatedPartnershipMembersOverview-B2dSYLfZ.js +175 -0
  66. package/dist/{VerificationErrorAlert-D18WmRyf.js → VerificationErrorAlert-Bl4kwjzn.js} +4 -4
  67. package/dist/{ViewVerificationStatusComponent-Fc0L-JN4.js → ViewVerificationStatusComponent-DYdW0Gsi.js} +4 -4
  68. package/dist/adyen-business-financing.js +3 -3
  69. package/dist/adyen-individual-configuration.js +3 -3
  70. package/dist/adyen-individual-status.js +3 -3
  71. package/dist/adyen-kyc-components.js +22 -21
  72. package/dist/adyen-onboarding.js +3 -3
  73. package/dist/adyen-terms-of-service-management.js +3 -3
  74. package/dist/adyen-terms-of-service-status.js +3 -3
  75. package/dist/adyen-transfer-instrument-configuration.js +3 -3
  76. package/dist/adyen-transfer-instrument-management.js +3 -3
  77. package/dist/adyen-verification-status.js +3 -3
  78. package/dist/bg-BG-B7Xs_t04.js +13 -0
  79. package/dist/{bg-BG-D8qq7TQJ.js → bg-BG-D26PyOmu.js} +2 -4
  80. package/dist/{bg-BG-e6Rs6yz_.js → bg-BG-D9J6LnkI.js} +2 -1
  81. package/dist/{bg-BG-BC1dwNN2.js → bg-BG-DH45-0B-.js} +8 -3
  82. package/dist/bg-BG-oWrzmmWF.js +13 -0
  83. package/dist/bg-BG-wVquMNtT.js +55 -0
  84. package/dist/circle-small-filled-YMzP6yQU.js +14 -0
  85. package/dist/clock-BZHremOA.js +20 -0
  86. package/dist/cs-CZ--jOkoHVS.js +55 -0
  87. package/dist/cs-CZ-7urd96Kr.js +13 -0
  88. package/dist/cs-CZ-BSWXexr4.js +13 -0
  89. package/dist/{cs-CZ-ChGeQ9s0.js → cs-CZ-C3WsXodG.js} +2 -4
  90. package/dist/{cs-CZ-2foXfkBk.js → cs-CZ-DPVMeRye.js} +8 -3
  91. package/dist/{cs-CZ-Q6NVYK-k.js → cs-CZ-DY_pQqAT.js} +2 -1
  92. package/dist/{da-DK-CyHH8kX3.js → da-DK-BRCRHbdD.js} +2 -4
  93. package/dist/da-DK-D-CIc3Wp.js +13 -0
  94. package/dist/{da-DK-DU3_xdWg.js → da-DK-DU4dCNEw.js} +8 -3
  95. package/dist/da-DK-JHZnsI59.js +55 -0
  96. package/dist/da-DK-R_y7YwqQ.js +13 -0
  97. package/dist/{da-DK-DSYEF7Q1.js → da-DK-jK7c9UL0.js} +2 -1
  98. package/dist/de-DE-BR6CLZw6.js +13 -0
  99. package/dist/{de-DE-DL6SrIBE.js → de-DE-DhwZpGcF.js} +2 -4
  100. package/dist/{de-DE-BODG29hR.js → de-DE-Dz2l6jRl.js} +8 -3
  101. package/dist/de-DE-VGGEkxUT.js +55 -0
  102. package/dist/de-DE-itf47wPh.js +13 -0
  103. package/dist/{de-DE-B9-ILIdw.js → de-DE-wmerDL2e.js} +2 -1
  104. package/dist/{debouncedInputEvent-BDf19z5H.js → debouncedInputEvent-BZv9kA9Q.js} +2 -2
  105. package/dist/{documentUtils-DahfSV2D.js → documentUtils-feD3RgJ6.js} +4 -3
  106. package/dist/{dropinUtils-DFscjCzE.js → dropinUtils-L0ggRI0e.js} +5 -4
  107. package/dist/el-GR-B09xC5IM.js +13 -0
  108. package/dist/el-GR-B3FHqTOX.js +13 -0
  109. package/dist/{el-GR-DYjcbiSc.js → el-GR-Btrk_npt.js} +2 -1
  110. package/dist/{el-GR-l0JeDNPy.js → el-GR-CPvcb2_O.js} +2 -4
  111. package/dist/{el-GR-DcIdm3iK.js → el-GR-MLFY-Gg7.js} +8 -3
  112. package/dist/el-GR-gkaKwnln.js +55 -0
  113. package/dist/{en-US-C5WyUweF.js → en-US-BPI4FZwa.js} +2 -1
  114. package/dist/{en-US-BxEW5N6f.js → en-US-DwpcyeTb.js} +34 -8
  115. package/dist/{es-ES-CMQqgMEJ.js → es-ES-0ROz-BJh.js} +8 -3
  116. package/dist/es-ES-Bn9_0wK0.js +55 -0
  117. package/dist/es-ES-CEp-ttVJ.js +13 -0
  118. package/dist/{es-ES-C-tTuMLH.js → es-ES-Qnc0Q6JH.js} +2 -1
  119. package/dist/{es-ES-C1ClJ2XE.js → es-ES-p03wSF0j.js} +2 -4
  120. package/dist/es-ES-u77uTVet.js +13 -0
  121. package/dist/et-EE-B4Qtq50U.js +13 -0
  122. package/dist/et-EE-BYSnV6Iq.js +55 -0
  123. package/dist/et-EE-Ci8RU2wg.js +13 -0
  124. package/dist/{et-EE-BG_Y29oV.js → et-EE-DwU9PpSw.js} +2 -4
  125. package/dist/{et-EE-BzLAp08F.js → et-EE-TzXANcP2.js} +2 -1
  126. package/dist/{et-EE-DcpuYQwB.js → et-EE-esci5847.js} +8 -3
  127. package/dist/fi-FI-CoeShwM8.js +13 -0
  128. package/dist/{fi-FI-bIhXiQPL.js → fi-FI-D6UZTiLe.js} +2 -4
  129. package/dist/fi-FI-DjlB2a7k.js +13 -0
  130. package/dist/{fi-FI-pyHLbmel.js → fi-FI-Dn2MC8uW.js} +2 -1
  131. package/dist/fi-FI-PVFqd5Ra.js +55 -0
  132. package/dist/{fi-FI-4GTHkwOL.js → fi-FI-xXrvDLFe.js} +8 -3
  133. package/dist/{fieldConfigurations-BCj1wotL.js → fieldConfigurations-Bor1NtgA.js} +19 -18
  134. package/dist/{fr-FR-DG3tEkdN.js → fr-FR-BWX14yb7.js} +2 -1
  135. package/dist/{fr-FR-Ba-HRBQ7.js → fr-FR-Bw9O-QAU.js} +8 -3
  136. package/dist/fr-FR-C4ldMaqM.js +13 -0
  137. package/dist/fr-FR-Dx-CiPdB.js +13 -0
  138. package/dist/{fr-FR-Bj275MRb.js → fr-FR-jXToKR-E.js} +2 -4
  139. package/dist/fr-FR-mJK4hjwD.js +55 -0
  140. package/dist/{getFieldsWithExistingData-C_5HXg3J.js → getFieldsWithExistingData-JYFQVAcY.js} +2 -2
  141. package/dist/{getName-B1o2b2LX.js → getName-DftHbR4I.js} +2 -2
  142. package/dist/{hasDataChanged-Bn31Z0Rf.js → hasDataChanged-DU3vtQG1.js} +2 -2
  143. package/dist/hr-HR-BXG_ZAJm.js +13 -0
  144. package/dist/{hr-HR-BRFErTkv.js → hr-HR-CZLSQruE.js} +2 -1
  145. package/dist/{hr-HR-BFx1T11G.js → hr-HR-D8_yhtIo.js} +8 -3
  146. package/dist/{hr-HR-CL0q_D2U.js → hr-HR-Dcv0VrbJ.js} +2 -4
  147. package/dist/hr-HR-n7aMHIpM.js +13 -0
  148. package/dist/hr-HR-qmYyO-nT.js +55 -0
  149. package/dist/hu-HU-CMGzeEXp.js +13 -0
  150. package/dist/hu-HU-CS-7iNS4.js +55 -0
  151. package/dist/hu-HU-D_DvlCMw.js +13 -0
  152. package/dist/{hu-HU-GXvzHwu9.js → hu-HU-KliQetm5.js} +8 -3
  153. package/dist/{hu-HU-cLqGFTTR.js → hu-HU-KqfViqRG.js} +2 -4
  154. package/dist/{hu-HU-CJA8w351.js → hu-HU-kp8Go5hZ.js} +2 -1
  155. package/dist/{iframeWidget-DtoLjCYK.js → iframeWidget-C8wyKuCq.js} +4 -4
  156. package/dist/{it-IT-mhNjrQZn.js → it-IT-B0YGvVgW.js} +2 -1
  157. package/dist/it-IT-BTWkWSJq.js +55 -0
  158. package/dist/it-IT-Cz3V93Xk.js +13 -0
  159. package/dist/{it-IT-C0Qk47kh.js → it-IT-DgGk7YK7.js} +2 -4
  160. package/dist/{it-IT-Bw3VIHJB.js → it-IT-MwpjRAG6.js} +8 -3
  161. package/dist/it-IT-yV7ewjWU.js +13 -0
  162. package/dist/{ja-JP-DI7lRfpI.js → ja-JP-2u5fqLWF.js} +8 -3
  163. package/dist/ja-JP-B4mHwijO.js +13 -0
  164. package/dist/ja-JP-CSz7fEkn.js +55 -0
  165. package/dist/{ja-JP-DSdZj-it.js → ja-JP-CY2oljJM.js} +2 -4
  166. package/dist/{ja-JP-BxEWI56P.js → ja-JP-Ctsk4z4q.js} +4 -1
  167. package/dist/{ja-JP-CfrHlRGC.js → ja-JP-Dz9IVH4p.js} +2 -1
  168. package/dist/{localizeDateString-4aQPK6sB.js → localizeDateString-BJbsiJ-b.js} +2 -2
  169. package/dist/lt-LT-B6XmKUXx.js +55 -0
  170. package/dist/{lt-LT-ewVNPhQN.js → lt-LT-BEsBoIQ9.js} +8 -3
  171. package/dist/lt-LT-BuALzmEO.js +13 -0
  172. package/dist/lt-LT-CYiW52tl.js +13 -0
  173. package/dist/{lt-LT-C-dKiExL.js → lt-LT-D8cex0eq.js} +2 -4
  174. package/dist/{lt-LT-C0Acftnm.js → lt-LT-l9rzkFg9.js} +2 -1
  175. package/dist/{lv-LV-UkEOuqFz.js → lv-LV-BUGQrsDw.js} +2 -4
  176. package/dist/lv-LV-CgMxfFK8.js +13 -0
  177. package/dist/{lv-LV-Bnq61WAt.js → lv-LV-DYbb5pkt.js} +2 -1
  178. package/dist/lv-LV-DsSpy50n.js +55 -0
  179. package/dist/{lv-LV-JqXvRt4T.js → lv-LV-Veji7-on.js} +8 -3
  180. package/dist/lv-LV-nDWqwoYo.js +13 -0
  181. package/dist/{mapExistingFile-lDnF81cv.js → mapExistingFile-lCDb_PhK.js} +3 -3
  182. package/dist/{mapFinancialReportsToFinancialInformation-5skum6Qk.js → mapFinancialReportsToFinancialInformation-CnMpcLxg.js} +3 -3
  183. package/dist/{mapJpAddressSchemaToAddressLocalizations-iYMAONXA.js → mapJpAddressSchemaToAddressLocalizations-DkpasBLv.js} +3 -3
  184. package/dist/{mapLegalEntityToIndividualOnfidoSchema-CZ8Op1Il.js → mapLegalEntityToIndividualOnfidoSchema-MeTFyeE4.js} +3 -3
  185. package/dist/{mapTransferInstrumentToPayoutAccount-l-kGyc4S.js → mapTransferInstrumentToPayoutAccount-Bvh9p_HS.js} +2 -2
  186. package/dist/{nl-NL-donw5yvS.js → nl-NL-BMUYBqlF.js} +2 -1
  187. package/dist/{nl-NL-DR1wVqQC.js → nl-NL-BuW3jWdI.js} +8 -3
  188. package/dist/nl-NL-CTf7zH4M.js +55 -0
  189. package/dist/{nl-NL-Cfr5hMtI.js → nl-NL-CagNun1T.js} +2 -4
  190. package/dist/nl-NL-CcUU-KmX.js +13 -0
  191. package/dist/nl-NL-DKMs4pB2.js +13 -0
  192. package/dist/no-NO-B-oUwe9q.js +13 -0
  193. package/dist/no-NO-BplX8KGW.js +13 -0
  194. package/dist/{no-NO-BZmigu6-.js → no-NO-CA0EizAy.js} +8 -3
  195. package/dist/{no-NO-ASO8Je2l.js → no-NO-D4q0sOO5.js} +2 -4
  196. package/dist/{no-NO-Dev7r3VA.js → no-NO-DKbWxgF-.js} +2 -1
  197. package/dist/no-NO-RfTK9KAV.js +55 -0
  198. package/dist/payout-verification-manual-BH2mu0UW.js +90 -0
  199. package/dist/{pl-PL-DU_Xulyu.js → pl-PL-B0zGy_b4.js} +2 -1
  200. package/dist/pl-PL-BmCZYCoD.js +13 -0
  201. package/dist/{pl-PL-BKxhMICw.js → pl-PL-D7nhdbfR.js} +8 -3
  202. package/dist/pl-PL-Dy8qWH39.js +55 -0
  203. package/dist/{pl-PL-CG4rvgUo.js → pl-PL-LSqjGZHp.js} +2 -4
  204. package/dist/pl-PL-p8YxqOFg.js +13 -0
  205. package/dist/{process-field-configurations-Dt6THVwE.js → process-field-configurations-C41JKZZ6.js} +3 -3
  206. package/dist/{pt-BR-DeXo4rsi.js → pt-BR--kaJvtE6.js} +2 -1
  207. package/dist/pt-BR-BbFJsIVX.js +55 -0
  208. package/dist/pt-BR-BkPUtBM9.js +13 -0
  209. package/dist/{pt-BR-wAIdhUru.js → pt-BR-D1nTSLod.js} +8 -3
  210. package/dist/pt-BR-DKrMpM6v.js +13 -0
  211. package/dist/{pt-BR-IWTcYKu9.js → pt-BR-FCK1QNOs.js} +2 -4
  212. package/dist/pt-PT-B4F_5NWi.js +55 -0
  213. package/dist/{pt-PT-C1qHVe7L.js → pt-PT-B9L50746.js} +8 -3
  214. package/dist/{pt-PT-DkJdR6SS.js → pt-PT-BZ5ZZm6G.js} +2 -1
  215. package/dist/pt-PT-Bh7v8xbp.js +13 -0
  216. package/dist/pt-PT-D_F3JxYu.js +13 -0
  217. package/dist/{pt-PT-LZZYQKaC.js → pt-PT-U2s6koli.js} +2 -4
  218. package/dist/recurring-CkL4cCM2.js +17 -0
  219. package/dist/{resolveEnvironment-9sxvxhUS.js → resolveEnvironment-DalWYmHj.js} +3 -3
  220. package/dist/{ro-RO-nVSeNtIQ.js → ro-RO-BvP4CrrF.js} +2 -4
  221. package/dist/ro-RO-CICjAFys.js +55 -0
  222. package/dist/ro-RO-CJoz8E5K.js +13 -0
  223. package/dist/{ro-RO-BDjHimxe.js → ro-RO-CdSsgoUG.js} +2 -1
  224. package/dist/ro-RO-DjGku_3y.js +13 -0
  225. package/dist/{ro-RO-juw6hKRk.js → ro-RO-DvG65dTt.js} +8 -3
  226. package/dist/{rules-BjmEJdfD.js → rules-DFgTcf5L.js} +4 -4
  227. package/dist/{sk-SK-BM57awWi.js → sk-SK-BMJgOJoa.js} +8 -3
  228. package/dist/sk-SK-BRd5TN22.js +55 -0
  229. package/dist/sk-SK-Bb18qPBw.js +13 -0
  230. package/dist/{sk-SK-atqQJid1.js → sk-SK-BiBWPJUf.js} +2 -1
  231. package/dist/{sk-SK-BX0wsQH4.js → sk-SK-DFvk5ao5.js} +2 -4
  232. package/dist/sk-SK-DgdScFiv.js +13 -0
  233. package/dist/{sl-SI-g2WSP0Tj.js → sl-SI-BMF8YtOm.js} +8 -3
  234. package/dist/{sl-SI-Dt7rovIT.js → sl-SI-Bj-INVFz.js} +2 -4
  235. package/dist/sl-SI-CZt2QlBD.js +13 -0
  236. package/dist/sl-SI-D8dDckrW.js +55 -0
  237. package/dist/{sl-SI-CwKpXVCh.js → sl-SI-DtdGMD6i.js} +2 -1
  238. package/dist/sl-SI-ZxyvdgdS.js +13 -0
  239. package/dist/style.css +719 -597
  240. package/dist/styles-CLV89_hH.js +719 -597
  241. package/dist/sv-SE-BPD3xI_7.js +13 -0
  242. package/dist/{sv-SE-Cfs0NHgG.js → sv-SE-BYC_f8r7.js} +8 -3
  243. package/dist/sv-SE-CCFIf86P.js +13 -0
  244. package/dist/sv-SE-DGpvVvWj.js +55 -0
  245. package/dist/{sv-SE-DqzH809e.js → sv-SE-Dg9DC29v.js} +2 -4
  246. package/dist/{sv-SE-CGCP_6VE.js → sv-SE-kR514dO1.js} +2 -1
  247. package/dist/trackNavigation-db_h46BT.js +28 -0
  248. package/dist/types/api/businessLines/businessLines.types.d.ts +2 -2
  249. package/dist/types/api/documentValidation/useDocumentValidate.d.ts +14 -0
  250. package/dist/types/api/industryCodes/industryCodes.types.d.ts +2 -1
  251. package/dist/types/api/{pciTemplate/pciTemplate.types.d.ts → pci/pci.types.d.ts} +9 -1
  252. package/dist/types/api/{pciTemplate → pci}/usePciQuestionnaire.d.ts +1 -1
  253. package/dist/types/api/{pciTemplate → pci}/usePciQuestionnaireList.d.ts +1 -1
  254. package/dist/types/api/{pciTemplate → pci}/usePciStatus.d.ts +1 -1
  255. package/dist/types/api/pci/usePciTemplate.d.ts +8 -0
  256. package/dist/types/api/queryKeys.d.ts +5 -4
  257. package/dist/types/components/BankAccount/forms/BankDocument/BankDocumentClassification.d.ts +5 -0
  258. package/dist/types/components/BankAccount/forms/BankDocument/validate.d.ts +3 -0
  259. package/dist/types/components/BankAccount/forms/PayoutCountryDetails/PayoutCountryDetails.d.ts +1 -1
  260. package/dist/types/components/BankAccount/forms/PayoutCountryDetails/PayoutRequirementsModal.d.ts +8 -0
  261. package/dist/types/components/BankAccount/forms/PayoutCountryDetails/types.d.ts +2 -0
  262. package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +6 -0
  263. package/dist/types/components/Business/tasks/BusinessDetailsDropin/utils.d.ts +1 -1
  264. package/dist/types/components/BusinessLines/tasks/BusinessLines/BusinessLinesStore.d.ts +1 -0
  265. package/dist/types/components/Contract/hooks/useSalesChannels.d.ts +2 -0
  266. package/dist/types/components/Individual/pages/DecisionMakerDetailsPage.d.ts +2 -8
  267. package/dist/types/components/Individual/pages/RootIndividualDetailsPage.d.ts +2 -6
  268. package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerDetails/utils.d.ts +1 -0
  269. package/dist/types/components/Individual/tasks/DecisionMakers/types.d.ts +0 -2
  270. package/dist/types/components/Shared/TaskVerificationStatus/TaskVerificationStatus.d.ts +18 -0
  271. package/dist/types/components/Shared/fields/IndustryCodeField/IndustryCodeField.d.ts +1 -1
  272. package/dist/types/components/Shared/fields/IndustryCodeField/types.d.ts +4 -0
  273. package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
  274. package/dist/types/components/Shared/tasks/TaskList/TaskListItem.d.ts +1 -1
  275. package/dist/types/components/Shared/tasks/TaskList/types.d.ts +3 -8
  276. package/dist/types/components/ui/atoms/Status/Status.d.ts +9 -3
  277. package/dist/types/components/ui/atoms/Svg/svgs.d.ts +6 -0
  278. package/dist/types/components/ui/molecules/Dropzone/FilePicker.d.ts +2 -1
  279. package/dist/types/components/ui/molecules/Dropzone/types.d.ts +1 -0
  280. package/dist/types/context/ExperimentContext/types.d.ts +4 -0
  281. package/dist/types/core/user-events.d.ts +15 -2
  282. package/dist/types/hooks/singpass/useSingpassMyInfoLogin.d.ts +2 -6
  283. package/dist/types/utils/analytics/debouncedInputEvent.d.ts +12 -1
  284. package/dist/types/utils/api/documentUtils.d.ts +1 -0
  285. package/dist/types/utils/entityStatusUtil.d.ts +1 -1
  286. package/dist/types/utils/getTrustedFields.d.ts +9 -0
  287. package/dist/types/utils/validatorUtils.d.ts +1 -0
  288. package/dist/{types-DQVZ5BSQ.js → types-B93Ai-fO.js} +6 -2
  289. package/dist/{types-BQTi6XU4.js → types-BG06cR9w.js} +2 -2
  290. package/dist/{types-Db4qB5S5.js → types-E18sv3fQ.js} +2 -2
  291. package/dist/types-nbahNdbR.js +34 -0
  292. package/dist/{useAssociatedLegalEntity-D9WaVhuE.js → useAssociatedLegalEntity-CDCwVlgp.js} +2 -2
  293. package/dist/useCreateLegalEntity-Dr1EtZC9.js +31 -0
  294. package/dist/{useDataset-CKGFlO8U.js → useDataset-BHoDL5D6.js} +30 -7
  295. package/dist/{trackNavigation-DYYVv6_y.js → useForm-SCWu19rh.js} +8 -36
  296. package/dist/useGlobalData-C2odacHA.js +68 -0
  297. package/dist/{useMultiForm-DfGnG4oT.js → useMultiForm-7AeF_Lma.js} +4 -4
  298. package/dist/{useOnboardingStatus-CIPOAtmO.js → useOnboardingStatus-D8ldbwoJ.js} +2 -2
  299. package/dist/{useScenarios-CpiyRA2D.js → useScenarios-CGvgBfO2.js} +2 -2
  300. package/dist/{useTermsOfServiceStatus-DYF8KAVC.js → useTermsOfServiceStatus-D7rXsMOk.js} +2 -2
  301. package/dist/{useToastContext-lvmkWAhW.js → useToastContext-BGkxz2AI.js} +17 -5
  302. package/dist/{useUnincorporatedPartnershipMembers-BVLE8Ovp.js → useUnincorporatedPartnershipMembers-CTtyjp6h.js} +7 -62
  303. package/dist/useUpdateBusinessLines-C4B4uUP4.js +46 -0
  304. package/dist/useUpdateLegalEntity-DPVG51Eo.js +39 -0
  305. package/dist/{utils-CgVxixWT.js → utils-R-gix6HO.js} +6 -6
  306. package/dist/{validate-g4LgLk_u.js → validate-B6JagCTI.js} +2 -2
  307. package/dist/{validate-DusGGHsF.js → validate-C0bVNNOM.js} +2 -2
  308. package/dist/{validationError-C0UYDiYL.js → validationError-BY8rwcKJ.js} +2 -2
  309. package/dist/warning-diamond-filled-BfXMlVrG.js +17 -0
  310. package/package.json +1 -1
  311. package/dist/BusinessFinancingComponent-C9ugIBel.js +0 -54
  312. package/dist/BusinessFinancingPage-zaSDXCpl.js +0 -46
  313. package/dist/CreateIndividualComponent-DS6uGwYF.js +0 -71
  314. package/dist/CreateTransferInstrumentComponent-CQ00ZVZa.js +0 -66
  315. package/dist/RootIndividualDetailsPage-BsagBZYZ.js +0 -80
  316. package/dist/TaskItemStatus-BAtPrryh.js +0 -114
  317. package/dist/bg-BG-BJo9yIYj.js +0 -13
  318. package/dist/bg-BG-D5C7Gq2o.js +0 -35
  319. package/dist/bg-BG-a6CQ0hKw.js +0 -13
  320. package/dist/cs-CZ-BAr1-JAS.js +0 -13
  321. package/dist/cs-CZ-C9FuJCsg.js +0 -35
  322. package/dist/cs-CZ-LGBI1w0Z.js +0 -13
  323. package/dist/da-DK-914Viqia.js +0 -13
  324. package/dist/da-DK-BeSNTO9k.js +0 -35
  325. package/dist/da-DK-DoHb4ssx.js +0 -13
  326. package/dist/de-DE-BXKZNAA1.js +0 -13
  327. package/dist/de-DE-Dp-2BAWQ.js +0 -35
  328. package/dist/de-DE-R6YgDOo5.js +0 -13
  329. package/dist/el-GR-5WvkRyW5.js +0 -35
  330. package/dist/el-GR-BnMw4HQ7.js +0 -13
  331. package/dist/el-GR-DgaUGjyJ.js +0 -13
  332. package/dist/es-ES-BWAlCq7R.js +0 -13
  333. package/dist/es-ES-C9oDOVSQ.js +0 -35
  334. package/dist/es-ES-dMSfTLXF.js +0 -13
  335. package/dist/et-EE-B1KmQWmI.js +0 -35
  336. package/dist/et-EE-D9SV0taO.js +0 -13
  337. package/dist/et-EE-l977xCZ_.js +0 -13
  338. package/dist/fi-FI-0ScajGUB.js +0 -13
  339. package/dist/fi-FI-C7GrKbXx.js +0 -13
  340. package/dist/fi-FI-DV1etLPT.js +0 -35
  341. package/dist/fr-FR-CqCcxkgA.js +0 -13
  342. package/dist/fr-FR-DZICoAHV.js +0 -35
  343. package/dist/fr-FR-o45TzYMp.js +0 -13
  344. package/dist/hr-HR-CoCrArfg.js +0 -13
  345. package/dist/hr-HR-D9bzCN_d.js +0 -35
  346. package/dist/hr-HR-YG9hvMMj.js +0 -13
  347. package/dist/hu-HU-BrxUJuJh.js +0 -13
  348. package/dist/hu-HU-C5p7RWWD.js +0 -35
  349. package/dist/hu-HU-DIurnBC3.js +0 -13
  350. package/dist/it-IT-CNS4NmYX.js +0 -13
  351. package/dist/it-IT-Cztl5jRY.js +0 -13
  352. package/dist/it-IT-mYyg3XGz.js +0 -35
  353. package/dist/ja-JP-BSYrPZsE.js +0 -35
  354. package/dist/ja-JP-DXkV1ta4.js +0 -13
  355. package/dist/lt-LT-BJTBEa5D.js +0 -13
  356. package/dist/lt-LT-D1viSP-v.js +0 -13
  357. package/dist/lt-LT-i-T_HQ42.js +0 -35
  358. package/dist/lv-LV-AkiOewnL.js +0 -13
  359. package/dist/lv-LV-BtX12dHJ.js +0 -35
  360. package/dist/lv-LV-GI-ZDM0K.js +0 -13
  361. package/dist/nl-NL-B6B4Z_tr.js +0 -13
  362. package/dist/nl-NL-PUQGh3Rp.js +0 -35
  363. package/dist/nl-NL-VneIcgWO.js +0 -13
  364. package/dist/no-NO-Dn1LUbDp.js +0 -13
  365. package/dist/no-NO-Dqp598Ox.js +0 -13
  366. package/dist/no-NO-kPnbGnBM.js +0 -35
  367. package/dist/payout-verification-manual-BJsf7QPE.js +0 -90
  368. package/dist/pl-PL-C-MmQaeR.js +0 -35
  369. package/dist/pl-PL-C1cP4Qpn.js +0 -13
  370. package/dist/pl-PL-Zdh_Xu43.js +0 -13
  371. package/dist/pt-BR-DkzLiK7Y.js +0 -13
  372. package/dist/pt-BR-DqLaaG4L.js +0 -13
  373. package/dist/pt-BR-Dw0UZ-Od.js +0 -35
  374. package/dist/pt-PT-CoTUf3zo.js +0 -13
  375. package/dist/pt-PT-DfVjLaAU.js +0 -35
  376. package/dist/pt-PT-uiREjC_e.js +0 -13
  377. package/dist/ro-RO-C835aMET.js +0 -13
  378. package/dist/ro-RO-ECJHARCT.js +0 -35
  379. package/dist/ro-RO-_HSYnLLu.js +0 -13
  380. package/dist/sk-SK-D6KtBU3q.js +0 -13
  381. package/dist/sk-SK-K03EHmJF.js +0 -13
  382. package/dist/sk-SK-rSmwmSCa.js +0 -35
  383. package/dist/sl-SI-CedEO3kf.js +0 -35
  384. package/dist/sl-SI-gM40Ay3W.js +0 -13
  385. package/dist/sl-SI-wYYQibM-.js +0 -13
  386. package/dist/sv-SE-BYUoi-08.js +0 -35
  387. package/dist/sv-SE-Bnhsdw8c.js +0 -13
  388. package/dist/sv-SE-uisfAT9L.js +0 -13
  389. package/dist/types/api/pciTemplate/usePciTemplate.d.ts +0 -14
  390. package/dist/types/components/Contract/hooks/useSalesChannelsSettings.d.ts +0 -3
  391. package/dist/types/components/Shared/tasks/TaskList/TaskItemStatus.d.ts +0 -2
  392. package/dist/types/components/ui/atoms/Status/Status.types.d.ts +0 -8
  393. package/dist/types/components/ui/atoms/TaskStatusIndicator/TaskStatusIndicator.d.ts +0 -11
  394. package/dist/warning-filled-F54KIN6Z.js +0 -14
  395. /package/dist/types/api/{pciTemplate → pci}/useSignPci.d.ts +0 -0
  396. /package/dist/types/components/{ui/atoms → BusinessLines/fields}/Carousel/Carousel.d.ts +0 -0
  397. /package/dist/types/components/BusinessLines/tasks/BusinessLines/{ExistingBusinessLines → BusinessLineModal}/BusinessLineModal.d.ts +0 -0
@@ -2,42 +2,39 @@
2
2
  {
3
3
  try {
4
4
  let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
5
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "ed44c1e5-e4b6-4fb7-9293-14b373386858", e._sentryDebugIdIdentifier = "sentry-dbid-ed44c1e5-e4b6-4fb7-9293-14b373386858");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "5f1e3383-b366-4b07-bbc5-bbedbd6fab60", e._sentryDebugIdIdentifier = "sentry-dbid-5f1e3383-b366-4b07-bbc5-bbedbd6fab60");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
- import { b as useApiContext, j as useQuery, k as httpPost, m as useSettingsContext, o as httpGet, p as useLocalStorage, q as getLegalRepresentative, c as useLegalEntity, r as skipToken, t as doesLegalEntityRequiresLegalRepresentative, u as useTranslation, B as Button, v as Svg, w as Skeleton, x as translateStringOrObject, y as Typography, z as LegalEntityTypes, C as isPartOfTrustFromLegalEntity, G as hasSolePropInLegalEntity, H as hasOwnEntityAssociationOfType, J as isEmptyEntity, K as useAccountHolder, M as EntityTypes, N as DATA_MISSING_DECISION_MAKER_ERROR_CODE_MAPPING, O as TaskTypes, P as createLogger, U as TaskStatuses, V as CountryCodes, W as useI18nContext, X as isEmpty, i as isUndefinedOrNull, Y as IconButton, Z as isISIN, $ as useExperimentsContext, R as ROOT_LE, L as Loader, a0 as entriesOf, a1 as useAnalyticsContext, a2 as useMutation, a3 as useQueryClient, a4 as Icon, a5 as noop, a6 as isInstantVerifiedAccount, a7 as getObscuredAccountNumber, a8 as useGetTaskStatus, a9 as useGlobalStore, aa as isPartOfUnincorporatedPartnership, ab as getOwnSignatories, g as getLegalEntityCountry, ac as getOwnDecisionMakersLegalEntityIds, ad as getOwnSolePropProblems, ae as getOwnTrustProblems, af as getOwnUnincorporatedPartnershipProblems, ag as getOwnEntityAssociations, ah as TrustMemberTypes, a as addResourceBundles, _ as __variableDynamicImportRuntimeHelper, ai as getDecisionMakerDescriptionMap, aj as TRUST_DEFAULT_DESCRIPTIONS_MAP, ak as Trans, al as DEFAULT_TRUST_MEMBER_REQUIREMENTS, am as hasAllCapabilitiesResolved, an as hasRejectedCapabilities, ao as objectsDeepEqual } from "./StoreProvider-Cvqvt7fn.js";
10
+ import { b as useApiContext, j as useQuery, k as httpPost, m as httpGet, o as useSettingsContext, p as useExperimentsContext, q as useLocalStorage, g as getLegalEntityCountry, C as CountryCodes, r as isPartOfTrustFromLegalEntity, t as LegalEntityTypes, v as hasSolePropInLegalEntity, w as getLegalRepresentative, c as useLegalEntity, x as skipToken, y as doesLegalEntityRequiresLegalRepresentative, u as useTranslation, B as Button, z as Skeleton, G as translateStringOrObject, H as Typography, J as hasOwnEntityAssociationOfType, K as isEmptyEntity, M as useAccountHolder, N as EntityTypes, O as DATA_MISSING_DECISION_MAKER_ERROR_CODE_MAPPING, P as TaskTypes, U as createLogger, V as TaskStatuses, W as useI18nContext, X as isEmpty, i as isUndefinedOrNull, Y as IconButton, Z as isISIN, R as ROOT_LE, L as Loader, $ as entriesOf, a0 as useAnalyticsContext, a1 as useMutation, a2 as useQueryClient, a3 as Icon, a4 as noop, a5 as isInstantVerifiedAccount, a6 as getObscuredAccountNumber, a7 as useGetTaskStatus, a8 as useGlobalStore, a9 as isPartOfUnincorporatedPartnership, aa as getOwnSignatories, ab as getOwnDecisionMakersLegalEntityIds, ac as getOwnSolePropProblems, ad as getOwnTrustProblems, ae as getOwnUnincorporatedPartnershipProblems, af as getOwnEntityAssociations, ag as TrustMemberTypes, ah as hasAllCapabilitiesResolved, ai as hasRejectedCapabilities, aj as objectsDeepEqual, a as addResourceBundles, _ as __variableDynamicImportRuntimeHelper } from "./StoreProvider-_QQynxk0.js";
11
11
  import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
12
12
  import { lazy, Suspense } from "preact/compat";
13
- import { useMemo, useCallback, useEffect, useState, useRef } from "preact/hooks";
14
- import { S as SettingNames, I as InputText } from "./InputText-BIySwrmu.js";
15
- import { v as validatePatternOnBlur, a as validateNotEmptyOnBlur, m as makeMask, n as numericInputs, s as spacer, M as MaskedInput, b as alphanumericInputs, u as uppercase, c as nonInputs, d as alphaInputs, S as StateContextSetter, C as ContextGuidance, r as resolveFieldMetadata, e as validateLegalCompanyName, f as validateLatinSpaceMarkPunctuationOnlyOnBlur, g as validateJaKanaLegalCompanyName, h as validateJaHaniLegalCompanyName, R as RadioGroupCard, i as useCapabilityProblems, T as TextArea, j as TrustedFieldsProviders } from "./fieldConfigurations-BCj1wotL.js";
16
- import { C as CompanyTypesValues, g as getCompanyRegistrationNumberOptions, s as stateFormatGuidanceText, b as businessRegistrationNumberMasks, a as businessRegistrationNumberPatterns, v as vatNumberOptions, c as getVatNumberOptions, T as TAX_INFORMATION_FIELD, r as requestingBanking, d as requestingIssuing, e as exemptedFromTaxDefaultFieldMetadata, f as exemptedFromTaxDefaultFieldConfig, t as taxInformationDefaultFieldMetadata, h as taxInformationDefaultFieldConfig, i as TaxInformationField, j as toFullWidth, S as StateCodesUS, k as handleKeys, u as useAllowedCountries, l as COUNTRY_OF_GOVERNING_LAW_POSSIBLE, m as COUNTRIES_USING_COMPANY_SEARCH, n as useSetting, o as individualOnfidoForms, p as individualForms, q as nameFields, M as MultiSelectList, w as makeSelectItemForRole, N as Name, x as useSingpassMyInfoLogin, y as isBafinSignatoryFlow, z as showIdNowModal } from "./IndividualOnfido-n3WaW67J.js";
17
- import { u as useAssociatedLegalEntity } from "./useAssociatedLegalEntity-D9WaVhuE.js";
13
+ import { useMemo, useReducer, useCallback, useEffect, useState, useRef } from "preact/hooks";
14
+ import { S as SettingNames, I as InputText, T as TaskVerificationStatus } from "./InputText-DJn5nzG0.js";
15
+ import { T as TrustedFieldsProviders, I as Image, v as validatePatternOnBlur, a as validateNotEmptyOnBlur, m as makeMask, n as numericInputs, s as spacer, M as MaskedInput, b as alphanumericInputs, u as uppercase, c as nonInputs, d as alphaInputs, S as StateContextSetter, C as ContextGuidance, r as resolveFieldMetadata, e as validateLegalCompanyName, f as validateLatinSpaceMarkPunctuationOnlyOnBlur, g as validateJaKanaLegalCompanyName, h as validateJaHaniLegalCompanyName, R as RadioGroupCard, i as useCapabilityProblems } from "./fieldConfigurations-Bor1NtgA.js";
16
+ import { g as getTrustedFieldsProvider, C as CompanyTypesValues, a as getCompanyRegistrationNumberOptions, s as stateFormatGuidanceText, b as businessRegistrationNumberMasks, c as businessRegistrationNumberPatterns, v as vatNumberOptions, d as getVatNumberOptions, T as TAX_INFORMATION_FIELD, r as requestingBanking, e as requestingIssuing, f as exemptedFromTaxDefaultFieldMetadata, h as exemptedFromTaxDefaultFieldConfig, t as taxInformationDefaultFieldMetadata, i as taxInformationDefaultFieldConfig, j as TaxInformationField, k as toFullWidth, S as StateCodesUS, l as handleKeys, u as useAllowedCountries, m as COUNTRY_OF_GOVERNING_LAW_POSSIBLE, n as COUNTRIES_USING_COMPANY_SEARCH, o as useSetting, p as individualOnfidoForms, q as individualForms, w as isBafinSignatoryFlow, x as showIdNowModal } from "./IndividualOnfido-hThSjqMs.js";
17
+ import { u as useAssociatedLegalEntity } from "./useAssociatedLegalEntity-CDCwVlgp.js";
18
18
  import cx from "classnames";
19
- import { a as Alert } from "./Alert-B9R4X_XM.js";
20
- import { u as useTermsOfServiceStatus, a as useTermsOfServiceAcceptanceInfos } from "./useTermsOfServiceStatus-DYF8KAVC.js";
21
- import { u as useToastContext } from "./useToastContext-lvmkWAhW.js";
22
- import { c as createFormUtils, H as Header, L as List, g as getFormProps, E as ErrorPanel, a as Link, m as mergeFieldMetadataIntoProps, C as CountryField, S as StackLayout, b as COUNTRY_FIELD, d as getFieldProps, s as summaryItem, e as getRoleName, f as summaryStep, h as Summary, U as UnincorporatedPartnershipMemberTypes, i as getRoleTagVariant } from "./CountryField-mxgVAmFp.js";
23
- import { C as Card } from "./Card-TkGAmjC5.js";
19
+ import { a as Alert } from "./Alert-CzqTssej.js";
20
+ import { u as useTermsOfServiceStatus, a as useTermsOfServiceAcceptanceInfos } from "./useTermsOfServiceStatus-D7rXsMOk.js";
21
+ import { a as useToastContext } from "./useToastContext-BGkxz2AI.js";
22
+ import { c as createFormUtils, H as Header, L as List, g as getFormProps, E as ErrorPanel, a as Link, m as mergeFieldMetadataIntoProps, C as CountryField, S as StackLayout, b as COUNTRY_FIELD, U as UnincorporatedPartnershipMemberTypes } from "./CountryField-B79la7c-.js";
23
+ import { C as Card } from "./Card-Cka2XXoj.js";
24
24
  import { signal } from "@preact/signals";
25
25
  import { d as downloadFile } from "./file-CiG1D0zy.js";
26
- import { C as Checkbox, u as useDebouncedCallback } from "./debouncedInputEvent-BDf19z5H.js";
27
- import { F as Field, a as useForm, S as Select, L as LoaderWrapper } from "./trackNavigation-DYYVv6_y.js";
28
- import { R as RadioGroup, I as InputDate, f as formatDateObj, o as operationalAddressIsSameIds, A as Address, a as operationalAddressIsSameItems, g as getAddressSchemaForCountry, C as COUNTRIES_WITH_STATES_DATASET, u as useAddressCleanse, b as formatAddressForCleanse, m as mapAddressData, c as applyVerifiedBusinessData$1, d as getNestedTrustedFields, e as getAddressSchemaLabelsByCountry, S as STATE_FIELD, h as StateField, i as useFormContext, j as useCreateLegalEntity, k as useUpdateLegalEntity } from "./Address-Bl_bd5Lp.js";
29
- import { u as useGlobalDataSlice, a as useGlobalData, b as useStateContext, c as useUnincorporatedPartnershipMembers, d as deleteUnincorporatedPartnershipMember } from "./useUnincorporatedPartnershipMembers-BVLE8Ovp.js";
30
- import { I as InputNumber, a as InputCurrency, C as CURRENCY_FIELD, b as Currency, L as LegalFormField } from "./Currency-DSYdE9Qs.js";
31
- import { c as currencyByCountry } from "./types-Db4qB5S5.js";
26
+ import { C as Checkbox, u as useDebouncedCallback } from "./debouncedInputEvent-BZv9kA9Q.js";
27
+ import { F as Field, u as useForm, S as Select, L as LoaderWrapper } from "./useForm-SCWu19rh.js";
28
+ import { R as RadioGroup, I as InputDate, f as formatDateObj, o as operationalAddressIsSameIds, A as Address, a as operationalAddressIsSameItems, g as getAddressSchemaForCountry, C as COUNTRIES_WITH_STATES_DATASET, u as useAddressCleanse, b as formatAddressForCleanse, m as mapAddressData, c as applyVerifiedBusinessData$1, d as getNestedTrustedFields, e as getAddressSchemaLabelsByCountry, S as STATE_FIELD, h as StateField, i as useFormContext } from "./Address-CaKnB-Qo.js";
29
+ import { u as useGlobalDataSlice, a as useGlobalData, b as useStateContext } from "./useGlobalData-C2odacHA.js";
30
+ import { I as InputNumber, a as InputCurrency, C as CURRENCY_FIELD, b as Currency, L as LegalFormField } from "./Currency-DRUn9oxx.js";
31
+ import { c as currencyByCountry } from "./types-E18sv3fQ.js";
32
32
  import { createElement } from "preact";
33
- import { S as StructuredList, a as datasetUtilities, C as Confirm } from "./useDataset-CKGFlO8U.js";
34
- import { K as KEYBOARD_KEYS } from "./Modal-GSjDUwX-.js";
35
- import { V as VerificationErrorAlert, u as useDeleteTransferInstrument } from "./VerificationErrorAlert-D18WmRyf.js";
36
- import { A as Avatar } from "./Avatar-DZ9JX3Cp.js";
37
- import { T as TaskItemStatus } from "./TaskItemStatus-BAtPrryh.js";
38
- import { g as getLegalEntityNameBasedOnType } from "./getName-B1o2b2LX.js";
39
- import { F as FormNavigation, A as ActionBar } from "./FormNavigation-C2KywHXa.js";
40
- import { T as Tag } from "./Tag-DdkVScyr.js";
33
+ import { S as StructuredList, a as datasetUtilities, C as Confirm } from "./useDataset-BHoDL5D6.js";
34
+ import { K as KEYBOARD_KEYS } from "./Modal-C89D3p56.js";
35
+ import { V as VerificationErrorAlert, u as useDeleteTransferInstrument } from "./VerificationErrorAlert-Bl4kwjzn.js";
36
+ import { A as Avatar } from "./Avatar-cNQKhH0z.js";
37
+ import { g as getLegalEntityNameBasedOnType } from "./getName-DftHbR4I.js";
41
38
  const getPciStatus = async (legalEntityId, baseUrl, data) => {
42
39
  return httpPost(
43
40
  {
@@ -52,13 +49,35 @@ const usePciStatus = (data, options) => {
52
49
  return useQuery({
53
50
  queryKey: ["pciStatus", data],
54
51
  queryFn: () => getPciStatus(rootLegalEntityId.value, baseUrl.value, data),
52
+ staleTime: 0,
55
53
  ...options
56
54
  });
57
55
  };
58
- function useSalesChannelsSettings() {
56
+ const getBusinessLines = async (legalEntityId, baseUrl) => {
57
+ return httpGet({
58
+ baseUrl,
59
+ path: `legalEntities/${legalEntityId}/businessLines`
60
+ });
61
+ };
62
+ const useBusinessLines = (options) => {
63
+ const { rootLegalEntityId, baseUrl } = useApiContext();
64
+ return useQuery({
65
+ queryKey: ["businessLines"],
66
+ queryFn: () => getBusinessLines(rootLegalEntityId.value, baseUrl.value),
67
+ ...options
68
+ });
69
+ };
70
+ function useSalesChannels() {
59
71
  const { isSettingEnabled } = useSettingsContext();
72
+ const { isExperimentEnabled } = useExperimentsContext();
73
+ const { data: existingBusinessLines } = useBusinessLines({
74
+ enabled: isExperimentEnabled("EnableModifyBusinessLines") && isSettingEnabled("allowBusinessLines")
75
+ });
60
76
  return useMemo(() => {
61
77
  const settings = [];
78
+ const businessLinesSalesChannels = [
79
+ ...new Set(existingBusinessLines?.flatMap((item) => item.salesChannels ?? []))
80
+ ];
62
81
  if (isSettingEnabled(SettingNames.RequirePciSignEcommerce)) {
63
82
  settings.push("eCommerce");
64
83
  }
@@ -71,8 +90,8 @@ function useSalesChannelsSettings() {
71
90
  if (isSettingEnabled(SettingNames.RequirePciSignPosMoto)) {
72
91
  settings.push("posMoto");
73
92
  }
74
- return settings;
75
- }, [isSettingEnabled]);
93
+ return isExperimentEnabled("EnableModifyBusinessLines") ? businessLinesSalesChannels : settings;
94
+ }, [existingBusinessLines, isExperimentEnabled, isSettingEnabled]);
76
95
  }
77
96
  const getTaskTypes = async (id, baseUrl) => {
78
97
  return httpGet({
@@ -106,6 +125,102 @@ const useHasSeenSingpassSelection = ({
106
125
  );
107
126
  return { hasSeenSingpassSelection, setHasSeenSingpassSelection };
108
127
  };
128
+ async function convertToSingpassLinkResponse(openIdInitiateResponse) {
129
+ const response = await Promise.resolve(openIdInitiateResponse);
130
+ const item = { authUrl: response.authUrl, success: true };
131
+ return { item };
132
+ }
133
+ const useOpenIdAuthorizationLink = (options) => {
134
+ const { rootLegalEntityId, baseUrl } = useApiContext();
135
+ return useQuery({
136
+ queryKey: ["openIdAuthorizationLink"],
137
+ queryFn: () => getOpenIdAuthorizationLink(rootLegalEntityId.value, baseUrl.value),
138
+ ...options
139
+ });
140
+ };
141
+ const getOpenIdAuthorizationLink = async (legalEntityId, baseUrl) => {
142
+ return convertToSingpassLinkResponse(
143
+ httpPost({
144
+ baseUrl,
145
+ path: `/legalEntities/${legalEntityId}/openid/initiate`
146
+ })
147
+ );
148
+ };
149
+ const SingpassMyInfoLoginActionTypes = {
150
+ LOADING: "LOADING",
151
+ SUCCESS: "SUCCESS",
152
+ FAILURE: "FAILURE",
153
+ RESET: "RESET"
154
+ };
155
+ const defaultSingpassState = { isLoading: false, isSuccess: false };
156
+ const singpassReducer = (state, action) => {
157
+ switch (action.type) {
158
+ case SingpassMyInfoLoginActionTypes.LOADING:
159
+ return { ...state, isLoading: true };
160
+ case SingpassMyInfoLoginActionTypes.SUCCESS:
161
+ return { isLoading: false, isSuccess: true };
162
+ case SingpassMyInfoLoginActionTypes.FAILURE:
163
+ return { isLoading: false, isSuccess: false, errorMessage: action.errorMessage };
164
+ case SingpassMyInfoLoginActionTypes.RESET:
165
+ return defaultSingpassState;
166
+ default:
167
+ return state;
168
+ }
169
+ };
170
+ const useSingpassMyInfoLogin = ({
171
+ legalEntity,
172
+ accountHolder
173
+ }) => {
174
+ const existingProvider = getTrustedFieldsProvider(legalEntity);
175
+ const defaultState = {
176
+ isLoading: false,
177
+ isSuccess: existingProvider === TrustedFieldsProviders.SINGPASS
178
+ };
179
+ const [state, dispatch] = useReducer(
180
+ singpassReducer,
181
+ defaultState
182
+ );
183
+ const { refetch: fetchOpenIdAuthorizationLink } = useOpenIdAuthorizationLink({ enabled: false });
184
+ const isEligibleForSingpass = useMemo(() => {
185
+ if (!legalEntity) {
186
+ return false;
187
+ }
188
+ if (getLegalEntityCountry(legalEntity) !== CountryCodes.Singapore) {
189
+ return false;
190
+ }
191
+ if (accountHolder) {
192
+ return accountHolder === "theCompanyIWorkFor" || accountHolder === "myName";
193
+ }
194
+ const legalEntityType = legalEntity.type;
195
+ const isPartOfTrust = isPartOfTrustFromLegalEntity(legalEntity);
196
+ const isVanillaOrganization = legalEntityType === LegalEntityTypes.ORGANIZATION && !isPartOfTrust;
197
+ const hasSoleProprietor = hasSolePropInLegalEntity(legalEntity);
198
+ const isVanillaIndividual = legalEntityType === LegalEntityTypes.INDIVIDUAL && !hasSoleProprietor;
199
+ return isVanillaOrganization || isVanillaIndividual;
200
+ }, [legalEntity, accountHolder]);
201
+ const handleInitiateSingpassMyInfoLogin = async () => {
202
+ dispatch({ ...state, type: SingpassMyInfoLoginActionTypes.LOADING });
203
+ const { data } = await fetchOpenIdAuthorizationLink();
204
+ return data?.item.authUrl;
205
+ };
206
+ const handleSingpassMyInfoLoginSuccess = () => {
207
+ dispatch({ ...state, type: SingpassMyInfoLoginActionTypes.SUCCESS });
208
+ };
209
+ const handleSingpassMyInfoLoginFailure = (errorMessage) => {
210
+ dispatch({ ...state, errorMessage, type: SingpassMyInfoLoginActionTypes.FAILURE });
211
+ };
212
+ const handleSingpassMyInfoLoginReset = () => {
213
+ dispatch({ ...state, type: SingpassMyInfoLoginActionTypes.RESET });
214
+ };
215
+ return {
216
+ isEligibleForSingpass,
217
+ state,
218
+ handleInitiateSingpassMyInfoLogin,
219
+ handleSingpassMyInfoLoginSuccess,
220
+ handleSingpassMyInfoLoginFailure,
221
+ handleSingpassMyInfoLoginReset
222
+ };
223
+ };
109
224
  const useAssociatedLegalRepresentative = (legalEntity) => {
110
225
  const matchingAssociation = useMemo(() => {
111
226
  if (!legalEntity) return void 0;
@@ -126,16 +241,15 @@ const useCanSeeEntitySelection = (legalEntityId) => {
126
241
  };
127
242
  const providerButton = "adyen-kyc-provider-button";
128
243
  const providerButtonDisplayName = "adyen-kyc-provider-button-display-name";
129
- const styles$8 = {
244
+ const styles$4 = {
130
245
  providerButton,
131
246
  providerButtonDisplayName
132
247
  };
248
+ const singpassLogo = lazy(
249
+ () => import("./singpass-logo-BkMSwiGY.js")
250
+ );
133
251
  const ProviderButton = ({ provider, onClick }) => {
134
252
  const { t } = useTranslation("ui");
135
- const providerLogo = {
136
- singpassMyInfo: "singpass-logo",
137
- singpassMyInfoBusiness: "singpass-logo"
138
- };
139
253
  const providerDisplayName = {
140
254
  singpassMyInfo: "Singpass",
141
255
  singpassMyInfoBusiness: "Singpass"
@@ -144,10 +258,10 @@ const ProviderButton = ({ provider, onClick }) => {
144
258
  singpassMyInfo: t(($) => $["retrieveMyinfo"]),
145
259
  singpassMyInfoBusiness: t(($) => $["retrieveMyinfoBusiness"])
146
260
  };
147
- return /* @__PURE__ */ jsx(Button, { onClick, fullWidth: true, variant: "secondary", children: /* @__PURE__ */ jsxs("div", { className: styles$8.providerButton, children: [
261
+ return /* @__PURE__ */ jsx(Button, { onClick, fullWidth: true, variant: "secondary", children: /* @__PURE__ */ jsxs("div", { className: styles$4.providerButton, children: [
148
262
  buttonLabel[provider],
149
- /* @__PURE__ */ jsx("span", { className: styles$8.providerButtonDisplayName, children: providerDisplayName[provider] }),
150
- /* @__PURE__ */ jsx(Svg, { name: providerLogo[provider], type: "image" })
263
+ /* @__PURE__ */ jsx("span", { className: styles$4.providerButtonDisplayName, children: providerDisplayName[provider] }),
264
+ /* @__PURE__ */ jsx(Image, { lazyLoadedImage: singpassLogo })
151
265
  ] }) });
152
266
  };
153
267
  const legalEntityTypeToSubtitleTranslationKey = {
@@ -176,23 +290,19 @@ const SingpassBanner = ({
176
290
  legalEntityType
177
291
  }) => {
178
292
  const { t } = useTranslation("common");
179
- const { baseUrl } = useApiContext();
293
+ const { baseUrl, rootLegalEntityId } = useApiContext();
180
294
  const singpassEventListener = useCallback(
181
295
  (event) => {
182
296
  if (event.origin !== new URL(baseUrl.value).origin) return;
297
+ if (event.data.legalEntityReference !== rootLegalEntityId.value) return;
183
298
  onMessage({ data: { isSuccessful: event.data.isSuccessful } });
184
299
  },
185
- [baseUrl.value, onMessage]
300
+ [baseUrl.value, rootLegalEntityId.value, onMessage]
186
301
  );
187
302
  useEffect(() => {
188
303
  window.addEventListener("message", singpassEventListener);
189
304
  return () => window.removeEventListener("message", singpassEventListener);
190
305
  }, [singpassEventListener]);
191
- const channel = new BroadcastChannel("sgidprovider");
192
- useEffect(() => {
193
- channel.onmessage = onMessage;
194
- return () => channel.close();
195
- }, [channel, onMessage]);
196
306
  if (isLoading) {
197
307
  return /* @__PURE__ */ jsx(Skeleton, {});
198
308
  }
@@ -238,20 +348,6 @@ const SingpassBanner = ({
238
348
  }
239
349
  );
240
350
  };
241
- const getBusinessLines = async (legalEntityId, baseUrl) => {
242
- return httpGet({
243
- baseUrl,
244
- path: `legalEntities/${legalEntityId}/businessLines`
245
- });
246
- };
247
- const useBusinessLines = (options) => {
248
- const { rootLegalEntityId, baseUrl } = useApiContext();
249
- return useQuery({
250
- queryKey: ["businessLines"],
251
- queryFn: () => getBusinessLines(rootLegalEntityId.value, baseUrl.value),
252
- ...options
253
- });
254
- };
255
351
  const getPciQuestionnaire = async (legalEntityId, baseUrl, documentId) => {
256
352
  return httpGet({
257
353
  baseUrl,
@@ -444,7 +540,7 @@ function useDataMissingRemediations({
444
540
  }
445
541
  };
446
542
  }
447
- const logger$3 = createLogger();
543
+ const logger$2 = createLogger();
448
544
  const normalizeTaskStatuses = (taskStatuses) => {
449
545
  return taskStatuses?.statuses?.reduce((acc, currentTask) => {
450
546
  const status = TaskStatuses[currentTask.status];
@@ -462,7 +558,7 @@ const getAccountTaskStatus = (accountId, payinPayoutTaskStatus) => {
462
558
  const taskStatusEntries = payinPayoutTaskStatus?.taskStatusEntries;
463
559
  const taskStatusEntry = taskStatusEntries?.find((entry) => entry.id.includes(accountId));
464
560
  if (!taskStatusEntry) {
465
- logger$3.warn(`No task status for this account: ${accountId}`);
561
+ logger$2.warn(`No task status for this account: ${accountId}`);
466
562
  return payinPayoutTaskStatus?.status ?? TaskStatuses.PROCESSING;
467
563
  }
468
564
  return TaskStatuses[taskStatusEntry.status];
@@ -1643,12 +1739,12 @@ function NumberOfEmployees({
1643
1739
  ) });
1644
1740
  }
1645
1741
  const financialInformationReportedValueOptions = "adyen-kyc-financial-information-reported-value-options";
1646
- const styles$7 = {
1742
+ const styles$3 = {
1647
1743
  financialInformationReportedValueOptions
1648
1744
  };
1649
1745
  const reportedValue = "adyen-kyc-reported-value";
1650
1746
  const reportedValueInput = "adyen-kyc-reported-value-input";
1651
- const styles$6 = {
1747
+ const styles$2 = {
1652
1748
  reportedValue,
1653
1749
  reportedValueInput
1654
1750
  };
@@ -1663,7 +1759,7 @@ const ReportedValue = ({
1663
1759
  isValid
1664
1760
  }) => {
1665
1761
  const { i18n } = useI18nContext();
1666
- return /* @__PURE__ */ jsx("div", { className: styles$6.reportedValue, children: /* @__PURE__ */ jsx(Field, { name: fieldName, errorMessage, isValid, helper, children: (childProps) => /* @__PURE__ */ jsx(
1762
+ return /* @__PURE__ */ jsx("div", { className: styles$2.reportedValue, children: /* @__PURE__ */ jsx(Field, { name: fieldName, errorMessage, isValid, helper, children: (childProps) => /* @__PURE__ */ jsx(
1667
1763
  InputCurrency,
1668
1764
  {
1669
1765
  ...childProps,
@@ -1671,7 +1767,7 @@ const ReportedValue = ({
1671
1767
  currency,
1672
1768
  amount,
1673
1769
  onAmountChanged,
1674
- className: styles$6.reportedValueInput,
1770
+ className: styles$2.reportedValueInput,
1675
1771
  "aria-label": label
1676
1772
  }
1677
1773
  ) }) });
@@ -1907,7 +2003,7 @@ function FinancialInformation(props) {
1907
2003
  ],
1908
2004
  onChange: updateReportedValueOption,
1909
2005
  showContentOnlyOnSelected: true,
1910
- className: styles$7.financialInformationReportedValueOptions
2006
+ className: styles$3.financialInformationReportedValueOptions
1911
2007
  }
1912
2008
  )
1913
2009
  }
@@ -1915,6 +2011,34 @@ function FinancialInformation(props) {
1915
2011
  ] })
1916
2012
  ] });
1917
2013
  }
2014
+ const fetchIndustryCodes = async (legalEntityId, baseUrl, businessLineTypes) => {
2015
+ const results = await Promise.all(
2016
+ businessLineTypes.map((businessLineType) => {
2017
+ return httpGet({
2018
+ baseUrl,
2019
+ path: `legalEntities/${legalEntityId}/businessLines/${businessLineType}/industryCodes`
2020
+ });
2021
+ })
2022
+ );
2023
+ const deduped = [];
2024
+ for (const result of results) {
2025
+ for (const industryCodeDTO of result) {
2026
+ const found = deduped.find((item) => item.code === industryCodeDTO.code);
2027
+ if (!found) {
2028
+ deduped.push(industryCodeDTO);
2029
+ }
2030
+ }
2031
+ }
2032
+ return deduped;
2033
+ };
2034
+ const useIndustryCodes = (businessLineTypes, options) => {
2035
+ const { rootLegalEntityId, baseUrl } = useApiContext();
2036
+ return useQuery({
2037
+ queryKey: ["industryCodes", businessLineTypes.join(",")],
2038
+ queryFn: () => fetchIndustryCodes(rootLegalEntityId.value, baseUrl.value, businessLineTypes),
2039
+ ...options
2040
+ });
2041
+ };
1918
2042
  const DATE_OF_INCORPORATION_FIELD = [
1919
2043
  "dateOfIncorporation"
1920
2044
  ];
@@ -2794,38 +2918,11 @@ const industryCodeFieldMetadata = {
2794
2918
  industryCodeFieldValidation().industryCodes
2795
2919
  ]
2796
2920
  };
2797
- const fetchIndustryCodes = async (legalEntityId, baseUrl, businessLineTypes) => {
2798
- const results = await Promise.all(
2799
- businessLineTypes.map((businessLineType) => {
2800
- return httpGet({
2801
- baseUrl,
2802
- path: `legalEntities/${legalEntityId}/businessLines/${businessLineType}/industryCodes`
2803
- });
2804
- })
2805
- );
2806
- const deduped = [];
2807
- for (const result of results) {
2808
- for (const industryCodeDTO of result) {
2809
- const found = deduped.find((item) => item.code === industryCodeDTO.code);
2810
- if (!found) {
2811
- deduped.push(industryCodeDTO);
2812
- }
2813
- }
2814
- }
2815
- return deduped;
2816
- };
2817
- const useIndustryCodes = (businessLineTypes, options) => {
2818
- const { rootLegalEntityId, baseUrl } = useApiContext();
2819
- return useQuery({
2820
- queryKey: ["industryCodes", businessLineTypes.join(",")],
2821
- queryFn: () => fetchIndustryCodes(rootLegalEntityId.value, baseUrl.value, businessLineTypes),
2822
- ...options
2823
- });
2824
- };
2825
2921
  const selectedBusinessLine = signal(void 0);
2922
+ const shouldSignNewPci = signal(false);
2826
2923
  const industryCodesContent = "adyen-kyc-industry-codes-content";
2827
2924
  const industryCodesSelection = "adyen-kyc-industry-codes-selection";
2828
- const styles$5 = {
2925
+ const styles$1 = {
2829
2926
  industryCodesContent,
2830
2927
  industryCodesSelection
2831
2928
  };
@@ -2852,13 +2949,13 @@ function IndustryCodeField({
2852
2949
  setValid,
2853
2950
  // need to manually set validation due to nested select components
2854
2951
  businessLineTypes,
2855
- single = false
2952
+ single = false,
2953
+ industryCodes,
2954
+ existingBusinessLines
2856
2955
  }) {
2857
2956
  const { t } = useTranslation("ui");
2858
2957
  const industryCodesRef = useRef(null);
2859
2958
  const singleIndustryCode = single || !!selectedBusinessLine.value;
2860
- const { data: industryCodes } = useIndustryCodes(businessLineTypes);
2861
- const { data: existingBusinessLines } = useBusinessLines();
2862
2959
  const allIndustryCodeSelectItems = useMemo(
2863
2960
  () => industryCodes?.map((entry) => ({
2864
2961
  id: entry.code,
@@ -2867,13 +2964,14 @@ function IndustryCodeField({
2867
2964
  [industryCodes]
2868
2965
  );
2869
2966
  const selectableIndustryCodes = useMemo(() => {
2967
+ if (!businessLineTypes.includes("acquiring")) return allIndustryCodeSelectItems;
2870
2968
  const selectedIds = data.industryCodes?.map((c) => c.id);
2871
2969
  const existingIds = (existingBusinessLines ?? []).map((b) => b.industryCode);
2872
2970
  return allIndustryCodeSelectItems.filter((item) => {
2873
2971
  const isDuplicate = selectedIds?.includes(item.id) || existingIds?.includes(item.id);
2874
2972
  return !isDuplicate;
2875
2973
  });
2876
- }, [allIndustryCodeSelectItems, data.industryCodes, existingBusinessLines]);
2974
+ }, [allIndustryCodeSelectItems, businessLineTypes, data.industryCodes, existingBusinessLines]);
2877
2975
  const selectedCodes = data.industryCodes;
2878
2976
  const [items, setItems] = useState(mapSelectedCodes(selectedCodes));
2879
2977
  useEffect(() => {
@@ -2954,9 +3052,9 @@ function IndustryCodeField({
2954
3052
  isValid: valid.industryCodes,
2955
3053
  formatGuidance: guidanceText.industryCodes,
2956
3054
  showErrorIcon: false,
2957
- children: (childProps) => /* @__PURE__ */ jsx(Wrapper, { single: singleIndustryCode, children: /* @__PURE__ */ jsx("div", { className: styles$5.industryCodesContent, ref: industryCodesRef, children: items.map((code, index) => {
3055
+ children: (childProps) => /* @__PURE__ */ jsx(Wrapper, { single: singleIndustryCode, children: /* @__PURE__ */ jsx("div", { className: styles$1.industryCodesContent, ref: industryCodesRef, children: items.map((code, index) => {
2958
3056
  const isInvalid = code.touched && code.value.id === "";
2959
- return /* @__PURE__ */ jsxs("div", { className: styles$5.industryCodesSelection, children: [
3057
+ return /* @__PURE__ */ jsxs("div", { className: styles$1.industryCodesSelection, children: [
2960
3058
  /* @__PURE__ */ jsx(
2961
3059
  Select,
2962
3060
  {
@@ -3528,10 +3626,10 @@ const setVerifiedBusiness = (company) => {
3528
3626
  verifiedBusiness.value = company;
3529
3627
  };
3530
3628
  const divider = "adyen-kyc-divider";
3531
- const styles$4 = {
3629
+ const styles = {
3532
3630
  divider
3533
3631
  };
3534
- const Divider = () => /* @__PURE__ */ jsx("hr", { className: styles$4.divider });
3632
+ const Divider = () => /* @__PURE__ */ jsx("hr", { className: styles.divider });
3535
3633
  function VerifiedBusinessCard({
3536
3634
  verifiedBusiness: verifiedBusiness2,
3537
3635
  verifiedAddress
@@ -3587,7 +3685,7 @@ function VerifiedBusinessCard({
3587
3685
  ] });
3588
3686
  }
3589
3687
  const LazyJpAddress = lazy(
3590
- async () => (await import("./JpAddress-bHP50zUD.js")).JpAddress
3688
+ async () => (await import("./JpAddress-yRO24Dme.js")).JpAddress
3591
3689
  );
3592
3690
  const ADDITIONAL_INFORMATION_FORM_ID = "additionalInformation";
3593
3691
  const ADDITIONAL_INFORMATION_FIELDS = [
@@ -3648,6 +3746,7 @@ function AdditionalInformation({
3648
3746
  if (requestingIssuing(rootLegalEntity)) {
3649
3747
  businessLineTypes.push("issuing");
3650
3748
  }
3749
+ const { data: industryCodes } = useIndustryCodes(businessLineTypes);
3651
3750
  const initialFormUtilsProps = useMemo(
3652
3751
  () => ({
3653
3752
  data,
@@ -4105,7 +4204,8 @@ function AdditionalInformation({
4105
4204
  readonly: formUtils.isReadOnly("industryCodes"),
4106
4205
  handleChangeFor,
4107
4206
  businessLineTypes,
4108
- single: true
4207
+ single: true,
4208
+ industryCodes: industryCodes ?? []
4109
4209
  }
4110
4210
  ) }),
4111
4211
  showField(DATE_OF_INCORPORATION_FIELD) && /* @__PURE__ */ jsx("div", { className: "adyen-kyc-field-wrapper", children: /* @__PURE__ */ jsx(
@@ -5691,11 +5791,11 @@ function BusinessSelectionMultiform({
5691
5791
  ] }) });
5692
5792
  }
5693
5793
  const companyTypeExamples = /* @__PURE__ */ Object.assign({ "../localized/companyTypeExamples/AT.json": () => import("./AT-TzG2NGTc.js"), "../localized/companyTypeExamples/AU.json": () => import("./AU-CdwbD1qm.js"), "../localized/companyTypeExamples/BE.json": () => import("./BE-CLggPbli.js"), "../localized/companyTypeExamples/BR.json": () => import("./BR-BEHEZpeV.js"), "../localized/companyTypeExamples/CA.json": () => import("./CA-BD18g8mh.js"), "../localized/companyTypeExamples/CH.json": () => import("./CH-BmabUdOH.js"), "../localized/companyTypeExamples/CZ.json": () => import("./CZ-DlzxobtN.js"), "../localized/companyTypeExamples/DE.json": () => import("./DE-C_Lc7NP5.js"), "../localized/companyTypeExamples/DK.json": () => import("./DK-CVF9z_0t.js"), "../localized/companyTypeExamples/ES.json": () => import("./ES-BlWV7xvh.js"), "../localized/companyTypeExamples/FI.json": () => import("./FI-CF0teHDu.js"), "../localized/companyTypeExamples/FR.json": () => import("./FR-3wQ9FMtt.js"), "../localized/companyTypeExamples/GB.json": () => import("./GB-C_AXeEDs.js"), "../localized/companyTypeExamples/HK.json": () => import("./HK-B16JHR8k.js"), "../localized/companyTypeExamples/HR.json": () => import("./HR-BRAjQoOH.js"), "../localized/companyTypeExamples/HU.json": () => import("./HU-DuWGRPke.js"), "../localized/companyTypeExamples/IE.json": () => import("./IE-BCDIfZoA.js"), "../localized/companyTypeExamples/IT.json": () => import("./IT-C1-PEPAb.js"), "../localized/companyTypeExamples/LT.json": () => import("./LT-V-VsHKlY.js"), "../localized/companyTypeExamples/NL.json": () => import("./NL-4Y7A2IJp.js"), "../localized/companyTypeExamples/NO.json": () => import("./NO-Div5P6IZ.js"), "../localized/companyTypeExamples/PL.json": () => import("./PL-DKgMtNxx.js"), "../localized/companyTypeExamples/PT.json": () => import("./PT-CpKb15My.js"), "../localized/companyTypeExamples/RO.json": () => import("./RO-Bmsg2YGZ.js"), "../localized/companyTypeExamples/SE.json": () => import("./SE-Br1yrUhV.js"), "../localized/companyTypeExamples/SG.json": () => import("./SG-d-PTZAoA.js"), "../localized/companyTypeExamples/SI.json": () => import("./SI-BPx_gt1n.js"), "../localized/companyTypeExamples/SK.json": () => import("./SK-DeSZ6Sa9.js"), "../localized/companyTypeExamples/US.json": () => import("./US-CZw-MX1-.js") });
5694
- const logger$2 = createLogger();
5794
+ const logger$1 = createLogger();
5695
5795
  const getCompanyTypeExamplesForCountry = async (country) => {
5696
5796
  const importForCountry = companyTypeExamples[`../localized/companyTypeExamples/${country}.json`];
5697
5797
  if (!importForCountry) {
5698
- logger$2.warn(`No company type examples available for ${country}`);
5798
+ logger$1.warn(`No company type examples available for ${country}`);
5699
5799
  return {};
5700
5800
  }
5701
5801
  return (await importForCountry()).default;
@@ -6014,7 +6114,6 @@ const TaskListItem = ({
6014
6114
  title,
6015
6115
  icon,
6016
6116
  status,
6017
- statusLabel,
6018
6117
  onNavigateToTask,
6019
6118
  disabled = false,
6020
6119
  problems,
@@ -6032,6 +6131,7 @@ const TaskListItem = ({
6032
6131
  const userEvents = useAnalyticsContext();
6033
6132
  const [isConfirmShown, setIsConfirmShown] = useState(false);
6034
6133
  const isDeletable = !!deleteEntity;
6134
+ const isDownloadable = !!downloadHandler && status === TaskStatuses.DOWNLOAD;
6035
6135
  const shouldShowErrorAlert = showErrorAlerts === "always" || showErrorAlerts === "onErrorStatus" && status === TaskStatuses.ERROR || !!problems?.verificationErrors;
6036
6136
  const handleNavigateToTask = () => {
6037
6137
  if (enableTracking) {
@@ -6051,6 +6151,17 @@ const TaskListItem = ({
6051
6151
  const dismissConfirm = () => {
6052
6152
  setIsConfirmShown(false);
6053
6153
  };
6154
+ const getTaskAccessory = () => {
6155
+ switch (status) {
6156
+ case TaskStatuses.SIGN:
6157
+ return t(($) => $["sign"]);
6158
+ case TaskStatuses.DETAILS_REQUIRED:
6159
+ case TaskStatuses.EMPTY:
6160
+ return t(($) => $["add"]);
6161
+ default:
6162
+ return /* @__PURE__ */ jsx(TaskVerificationStatus, { status });
6163
+ }
6164
+ };
6054
6165
  return /* @__PURE__ */ jsxs(Fragment, { children: [
6055
6166
  /* @__PURE__ */ jsx(
6056
6167
  Card,
@@ -6080,15 +6191,17 @@ const TaskListItem = ({
6080
6191
  ] })
6081
6192
  ] }),
6082
6193
  /* @__PURE__ */ jsxs("aside", { className: "adyen-task-item__status", children: [
6083
- /* @__PURE__ */ jsx(
6084
- TaskItemStatus,
6194
+ getTaskAccessory(),
6195
+ isDownloadable && /* @__PURE__ */ jsx(
6196
+ IconButton,
6085
6197
  {
6086
- status,
6087
- statusLabel,
6088
- downloadHandler
6198
+ ariaLabel: t(($) => $["download"]),
6199
+ icon: "download",
6200
+ onClick: downloadHandler,
6201
+ variant: "tertiary"
6089
6202
  }
6090
6203
  ),
6091
- isDeletable ? /* @__PURE__ */ jsx(
6204
+ isDeletable && /* @__PURE__ */ jsx(
6092
6205
  IconButton,
6093
6206
  {
6094
6207
  ariaLabel: t(($) => $["delete"]),
@@ -6097,7 +6210,8 @@ const TaskListItem = ({
6097
6210
  onClick: handleRemoveIntent,
6098
6211
  disabled: isConfirmShown
6099
6212
  }
6100
- ) : /* @__PURE__ */ jsx(Icon, { name: "chevron-right" })
6213
+ ),
6214
+ !isDownloadable && !isDeletable && /* @__PURE__ */ jsx(Icon, { name: "chevron-right" })
6101
6215
  ] })
6102
6216
  ] }),
6103
6217
  shouldShowErrorAlert && /* @__PURE__ */ jsx(
@@ -6175,7 +6289,10 @@ const LEGAL_ENTITY_BASE_TASKS = [
6175
6289
  const CONTRACT_TASKS = [TaskTypes.SERVICE_AGREEMENT, TaskTypes.PCI_DSS];
6176
6290
  function TaskList({ onNavigateToTask, singpassComponent }) {
6177
6291
  const { data: rootLe, isLoading } = useLegalEntity(ROOT_LE);
6178
- const { data: existingBusinessLines, isLoading: isLoadingBl } = useBusinessLines();
6292
+ const { isSettingEnabled } = useSettingsContext();
6293
+ const { data: existingBusinessLines, isLoading: isLoadingBl } = useBusinessLines({
6294
+ enabled: isSettingEnabled("allowBusinessLines")
6295
+ });
6179
6296
  const capabilityProblems = useCapabilityProblems() ?? {};
6180
6297
  if (isLoading || !rootLe || isLoadingBl) {
6181
6298
  return /* @__PURE__ */ jsx(Loader, { size: "large" });
@@ -6209,7 +6326,7 @@ function TaskListInner({
6209
6326
  const getTaskStatus2 = useGetTaskStatus();
6210
6327
  const businessSetup = useBusinessSetup(legalEntityResponse);
6211
6328
  const canSeeIntroduction = useCanSeeIntroduction({ legalEntity: legalEntityResponse });
6212
- const additionalSalesChannels = useSalesChannelsSettings();
6329
+ const additionalSalesChannels = useSalesChannels();
6213
6330
  const { remediationMessages } = useDataMissingRemediations({
6214
6331
  legalEntityId: legalEntityResponse.id,
6215
6332
  problems: capabilityProblems
@@ -6571,7 +6688,6 @@ function TaskListInner({
6571
6688
  icon: "pci",
6572
6689
  titleKey: "pciDssQuestionnaire",
6573
6690
  status: canDownloadPci ? TaskStatuses.DOWNLOAD : TaskStatuses.SIGN,
6574
- statusLabel: canDownloadPci ? t(($) => $["downloadACopy"]) : void 0,
6575
6691
  downloadHandler: onPciDownload,
6576
6692
  disabled: isPciTaskDisabled,
6577
6693
  info: isPciTaskDisabled && !canDownloadPci ? t(($) => $["requiresDecisionMakers"]) : void 0
@@ -6795,2120 +6911,91 @@ const useTrustMemberNavigation = ({ navigateTo, trust }) => {
6795
6911
  onNavigateToTrustMemberEditDetails
6796
6912
  };
6797
6913
  };
6798
- const DropinLayout = ({ content, footer }) => /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-dropin", children: [
6799
- /* @__PURE__ */ jsx("div", { className: "adyen-kyc-dropin__content", children: /* @__PURE__ */ jsx("div", { className: "adyen-kyc-dropin__content-main", children: content }) }),
6800
- footer && /* @__PURE__ */ jsx("div", { className: "adyen-kyc-dropin__footer-container", children: footer })
6801
- ] });
6802
- const convertExistingSettlorExemptionReasons = (existingReasons) => {
6803
- if (!existingReasons || !existingReasons.length) return ["noneOfTheAbove"];
6804
- return existingReasons;
6805
- };
6806
- const convertExistingTrustMember = (trustMember) => {
6807
- switch (trustMember.trustMemberType) {
6808
- case "undefinedBeneficiary":
6809
- return {
6810
- entityType: LegalEntityTypes.INDIVIDUAL,
6811
- role: ["undefinedBeneficiary"],
6812
- descriptionUndefinedBeneficiary: trustMember.description
6813
- };
6814
- case "regular":
6815
- case "company":
6816
- return {
6817
- entityType: trustMember.legalEntityType,
6818
- role: trustMember.roles,
6819
- settlorExemptionReason: ["noneOfTheAbove"],
6820
- country: trustMember.trustMemberType === "company" ? trustMember.country : void 0,
6821
- legalCompanyName: trustMember.trustMemberType === "company" ? trustMember.name : void 0
6822
- };
6823
- case "rootTrustee":
6824
- return {
6825
- trustMemberType: trustMember.trustMemberType,
6826
- entityType: trustMember.legalEntityType,
6827
- role: trustMember.roles,
6828
- settlorExemptionReason: ["noneOfTheAbove"]
6829
- };
6830
- case "exemptSettlor":
6831
- return {
6832
- entityType: trustMember.legalEntityType,
6833
- role: ["settlor"],
6834
- settlorExemptionReason: convertExistingSettlorExemptionReasons(
6835
- trustMember.settlorExemptionReason
6836
- ),
6837
- firstName: trustMember.exemptSettlorName?.firstName,
6838
- lastName: trustMember.exemptSettlorName?.lastName,
6839
- legalCompanyName: trustMember.name,
6840
- country: trustMember.country
6841
- };
6842
- }
6843
- };
6844
- const convertRootTrusteeTrustMember = (trustMember) => ({
6845
- trustMemberType: trustMember.trustMemberType,
6846
- entityType: trustMember.legalEntityType,
6847
- role: trustMember.roles,
6848
- settlorExemptionReason: ["noneOfTheAbove"]
6849
- });
6850
- const allowedCrossoverRolesMatrix = {
6851
- settlor: ["secondaryTrustee", "protector"],
6852
- secondaryTrustee: ["settlor", "protector", "definedBeneficiary"],
6853
- protector: ["settlor", "secondaryTrustee", "definedBeneficiary"],
6854
- definedBeneficiary: ["secondaryTrustee", "protector"],
6855
- undefinedBeneficiary: []
6914
+ const createDefaultMember = (selectedMember, selectedEntityType, selectedRoles) => {
6915
+ const firstRole = selectedRoles?.[0];
6916
+ return {
6917
+ memberType: selectedMember?.memberType || firstRole,
6918
+ roles: selectedRoles || selectedMember?.roles || [UnincorporatedPartnershipMemberTypes.SECONDARY_PARTNER],
6919
+ legalEntityType: selectedEntityType,
6920
+ legalEntityId: selectedMember?.legalEntityId || "",
6921
+ name: selectedMember?.name || ""
6922
+ };
6856
6923
  };
6857
- const allowedCrossoverRolesMatrixByTrustMemberAndLegalEntityType = {
6858
- rootTrustee: {
6859
- [LegalEntityTypes.INDIVIDUAL]: {
6860
- settlor: ["secondaryTrustee", "protector"],
6861
- secondaryTrustee: ["settlor", "protector", "definedBeneficiary"],
6862
- protector: ["settlor", "secondaryTrustee", "definedBeneficiary"],
6863
- definedBeneficiary: ["secondaryTrustee", "protector"],
6864
- undefinedBeneficiary: []
6865
- },
6866
- [LegalEntityTypes.ORGANIZATION]: {
6867
- settlor: ["secondaryTrustee", "protector"],
6868
- secondaryTrustee: ["settlor", "protector"],
6869
- protector: ["settlor", "secondaryTrustee"],
6870
- definedBeneficiary: [],
6871
- undefinedBeneficiary: []
6924
+ const useUnincorporatedPartnershipNavigation = ({ navigateTo }) => {
6925
+ const [activeMember, setActiveMember] = useState();
6926
+ const { rootLegalEntityId } = useApiContext();
6927
+ const onNavigateToMember = async ({
6928
+ selectedMember,
6929
+ selectedRoles,
6930
+ selectedEntityType,
6931
+ roleAndType
6932
+ }) => {
6933
+ const createdMember = createDefaultMember(selectedMember, selectedEntityType, selectedRoles);
6934
+ setActiveMember(createdMember);
6935
+ if (rootLegalEntityId.value === createdMember?.legalEntityId) {
6936
+ navigateTo(
6937
+ createdMember.legalEntityType === LegalEntityTypes.INDIVIDUAL ? TaskTypes.INDIVIDUAL : TaskTypes.BUSINESS_DETAILS
6938
+ );
6939
+ return;
6872
6940
  }
6873
- }
6874
- };
6875
- const getAllowedCrossoverRolesMatrixByTrustMemberAndLegalEntityType = (trustMember) => {
6876
- const { trustMemberType } = trustMember;
6877
- if (trustMemberType === "undefinedBeneficiary") {
6878
- return allowedCrossoverRolesMatrix;
6879
- }
6880
- const crossoverRolesByTrustMember = allowedCrossoverRolesMatrixByTrustMemberAndLegalEntityType[trustMemberType];
6881
- if (!crossoverRolesByTrustMember) {
6882
- return allowedCrossoverRolesMatrix;
6883
- }
6884
- const crossoverRoles = crossoverRolesByTrustMember[trustMember.legalEntityType];
6885
- if (!crossoverRoles) {
6886
- return allowedCrossoverRolesMatrix;
6887
- }
6888
- return crossoverRoles;
6941
+ if (roleAndType) {
6942
+ navigateTo(TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_ROLE_AND_TYPE);
6943
+ return;
6944
+ }
6945
+ navigateTo(
6946
+ createdMember?.legalEntityType === LegalEntityTypes.ORGANIZATION ? TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_COMPANY : TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_INDIVIDUAL
6947
+ );
6948
+ };
6949
+ return {
6950
+ onNavigateToMember,
6951
+ activeMember,
6952
+ setActiveMember
6953
+ };
6889
6954
  };
6890
- const availablesRolesByTrustMemberTypeAndLegalEntityType = {
6891
- rootTrustee: {
6892
- [LegalEntityTypes.INDIVIDUAL]: ["settlor", "protector", "definedBeneficiary"],
6893
- [LegalEntityTypes.ORGANIZATION]: ["settlor", "protector"]
6894
- }
6955
+ const useShouldShowIntroduction = ({
6956
+ legalEntity
6957
+ }) => {
6958
+ const canSeeIntroduction = useCanSeeIntroduction({ legalEntity });
6959
+ const { hasSeenIntroduction } = useHasSeenIntroduction({ legalEntityId: legalEntity.id });
6960
+ return canSeeIntroduction && !hasSeenIntroduction;
6895
6961
  };
6896
- const getAvailableRolesByTrustMemberTypeAndLegalEntityType = (currentRoles, trustMember) => {
6897
- if (!currentRoles?.length) {
6898
- const { trustMemberType, legalEntityType } = trustMember;
6899
- const availableRolesByTrustMemberType = availablesRolesByTrustMemberTypeAndLegalEntityType[trustMemberType];
6900
- if (!availableRolesByTrustMemberType) {
6901
- return Object.values(TrustMemberTypes);
6902
- }
6903
- const availableRoles = availableRolesByTrustMemberType[legalEntityType];
6904
- if (!availableRoles) {
6905
- return Object.values(TrustMemberTypes);
6906
- }
6907
- return availableRoles;
6908
- }
6909
- const crossoverRolesMatrix = trustMember ? getAllowedCrossoverRolesMatrixByTrustMemberAndLegalEntityType(trustMember) : allowedCrossoverRolesMatrix;
6910
- const roles = currentRoles.map((role) => [role, ...crossoverRolesMatrix[role]]).reduce(
6911
- (existingAllowed, allowedForRole) => existingAllowed.filter((role) => allowedForRole.includes(role))
6962
+ const useNavigation = ({ legalEntity, onNavigate }) => {
6963
+ const { isSettingEnabled } = useSettingsContext();
6964
+ const userEvents = useAnalyticsContext();
6965
+ const showServiceAgreementsFirst = isSettingEnabled(SettingNames.ShowServiceAgreementsFirst);
6966
+ const showBusinessFinancingFirst = isSettingEnabled(SettingNames.ShowBusinessFinancingFirst);
6967
+ const canChangeEntityType = isSettingEnabled(SettingNames.AllowLegalEntityTypeChange);
6968
+ const showIntroduction = useShouldShowIntroduction({ legalEntity });
6969
+ const { hasSeenSingpassSelection } = useHasSeenSingpassSelection({
6970
+ legalEntityId: legalEntity.id
6971
+ });
6972
+ const { accountHolder } = useAccountHolder();
6973
+ const { canSeeEntitySelection } = useCanSeeEntitySelection(legalEntity.id);
6974
+ const { isEligibleForSingpass } = useSingpassMyInfoLogin({
6975
+ legalEntity,
6976
+ accountHolder
6977
+ });
6978
+ const shouldShowSingpassSelection = isEligibleForSingpass && !hasSeenSingpassSelection;
6979
+ const [taskHistory, setTaskHistory] = useState(["default"]);
6980
+ const actualTasks = taskHistory.filter((task) => task !== "default");
6981
+ const handleNavigation = useCallback(
6982
+ (task) => {
6983
+ userEvents.updateBaseTrackingPayload({ task });
6984
+ onNavigate?.(task);
6985
+ },
6986
+ [onNavigate]
6912
6987
  );
6913
- return roles.filter((r) => r !== "secondaryTrustee");
6914
- };
6915
- const getAvailableRoles = (currentRoles) => {
6916
- if (!currentRoles?.length) return Object.values(TrustMemberTypes);
6917
- return currentRoles.map((role) => [role, ...allowedCrossoverRolesMatrix[role]]).reduce(
6918
- (existingAllowed, allowedForRole) => existingAllowed.filter((role) => allowedForRole.includes(role))
6919
- );
6920
- };
6921
- const trustMemberLegalEntityTypes = [
6922
- LegalEntityTypes.INDIVIDUAL,
6923
- LegalEntityTypes.ORGANIZATION
6924
- ];
6925
- const countriesWhereSettlorExemptionReasonNotApplicable = [CountryCodes.NewZealand];
6926
- const settlorExemptionReasons = [
6927
- "contributionBelowThreshold",
6928
- "professionalServiceProvider",
6929
- "deceased"
6930
- ];
6931
- const settlorExemptionReasonWithNoneOfTheAbove = [
6932
- ...settlorExemptionReasons,
6933
- "noneOfTheAbove"
6934
- ];
6935
- const couldBeExemptSettlor = (data, country) => data.entityType === LegalEntityTypes.INDIVIDUAL && data.role !== void 0 && data.role.includes("settlor") && !data.role.some((role) => role !== "settlor") && (!country || !countriesWhereSettlorExemptionReasonNotApplicable.includes(country));
6936
- const isExemptSettlor = (data) => data.settlorExemptionReason?.some((reason) => reason !== "noneOfTheAbove") ?? false;
6937
- const isOrganizationAndSettlor = (data) => data.entityType === LegalEntityTypes.ORGANIZATION && data.role?.length === 1 && data.role[0] === "settlor";
6938
- const roleAndTypeValidationRules = {
6939
- entityType: {
6940
- modes: ["blur"],
6941
- validate: (entityType) => !isEmpty(entityType),
6942
- errorMessage: "fieldIsRequired"
6943
- },
6944
- role: {
6945
- modes: ["blur"],
6946
- validate: (role) => !!role?.length,
6947
- errorMessage: "fieldIsRequired"
6948
- },
6949
- descriptionUndefinedBeneficiary: {
6950
- modes: ["blur"],
6951
- validate: (description) => !isEmpty(description),
6952
- errorMessage: "fieldIsRequired"
6953
- },
6954
- settlorExemptionReason: {
6955
- modes: ["blur"],
6956
- validate: (reasons) => Boolean(reasons?.length),
6957
- errorMessage: "fieldIsRequired"
6958
- },
6959
- country: {
6960
- modes: ["blur"],
6961
- validate: (country) => !!country,
6962
- errorMessage: "fieldIsRequired"
6963
- },
6964
- legalCompanyName: {
6965
- modes: ["blur"],
6966
- validate: (name) => !!name,
6967
- errorMessage: "fieldIsRequired"
6968
- }
6969
- };
6970
- const CHARACTERS_LIMIT = 256;
6971
- const leTypeCardDetails$1 = {
6972
- [LegalEntityTypes.INDIVIDUAL]: {
6973
- id: "individual",
6974
- name: "naturalPersonTitle",
6975
- description: "naturalPersonDescription"
6976
- },
6977
- [LegalEntityTypes.ORGANIZATION]: {
6978
- id: "organization",
6979
- name: "businessEntityTitle",
6980
- description: "businessEntityDescription"
6981
- }
6982
- };
6983
- const convertExistingTrustMemberToDefaultData = (trustMember, allowMoreRolesForMainRootTrusteeEnabled) => {
6984
- if (!trustMember) {
6985
- return {};
6986
- }
6987
- if (allowMoreRolesForMainRootTrusteeEnabled && trustMember.trustMemberType === "rootTrustee") {
6988
- return convertRootTrusteeTrustMember(trustMember);
6989
- }
6990
- return convertExistingTrustMember(trustMember);
6991
- };
6992
- const TrustRoleAndEntityType = (props) => {
6993
- const { t } = useTranslation(["common", "trust"]);
6994
- const {
6995
- existingTrustMember,
6996
- isOrganizationSettlorWithExemptionEnabled,
6997
- onChange,
6998
- id,
6999
- country,
7000
- fieldValidationErrors,
7001
- formVerificationErrors
7002
- } = props;
7003
- const trustRoleAndEntityTypeCountry = country;
7004
- let mergedProps = props;
7005
- mergedProps = mergeFieldMetadataIntoProps(
7006
- "legalCompanyName",
7007
- resolveFieldMetadata(
7008
- defaultFieldConfig$1[trustRoleAndEntityTypeCountry],
7009
- { isBusiness: false },
7010
- defaultFieldMetadata$1
7011
- ),
7012
- mergedProps
7013
- );
7014
- const { isExperimentEnabled } = useExperimentsContext();
7015
- const allowMoreRolesForMainRootTrusteeEnabled = isExperimentEnabled(
7016
- "AllowMoreRolesForMainRootTrustee"
7017
- );
7018
- const defaultData = convertExistingTrustMemberToDefaultData(
7019
- existingTrustMember,
7020
- allowMoreRolesForMainRootTrusteeEnabled
7021
- );
7022
- const formUtils = createFormUtils(mergedProps, t);
7023
- const decideFields = (data2) => {
7024
- if (data2.role?.includes("undefinedBeneficiary")) {
7025
- return ["role", "descriptionUndefinedBeneficiary"];
7026
- }
7027
- if (data2.role?.length) {
7028
- if (isOrganizationSettlorWithExemptionEnabled && isOrganizationAndSettlor(data2)) {
7029
- return ["role", "entityType", "settlorExemptionReason", "country", "legalCompanyName"];
7030
- }
7031
- if (couldBeExemptSettlor(data2, country)) {
7032
- return isExemptSettlor(data2) ? ["role", "entityType", "settlorExemptionReason", "firstName", "lastName"] : ["role", "entityType", "settlorExemptionReason"];
7033
- }
7034
- return allowMoreRolesForMainRootTrusteeEnabled ? ["role", "entityType", "trustMemberType"] : ["role", "entityType"];
7035
- }
7036
- return ["role"];
7037
- };
7038
- const { data, valid, schema, errors, fieldProblems, handleChangeFor, isValid } = useForm({
7039
- ...props,
7040
- schema: decideFields,
7041
- rules: roleAndTypeValidationRules,
7042
- defaultData,
7043
- fieldProblems: fieldValidationErrors
7044
- });
7045
- const availableRoles = allowMoreRolesForMainRootTrusteeEnabled && existingTrustMember?.trustMemberType === "rootTrustee" ? getAvailableRolesByTrustMemberTypeAndLegalEntityType(data.role, existingTrustMember) : getAvailableRoles(data.role);
7046
- const { data: exemptSettlorLe } = useLegalEntity(
7047
- isOrganizationSettlorWithExemptionEnabled && existingTrustMember && existingTrustMember.trustMemberType === "exemptSettlor" && existingTrustMember.legalEntityId !== isNewEntity && existingTrustMember.roles !== void 0 && existingTrustMember.roles.length === 1 && existingTrustMember.roles[0] === "settlor" ? existingTrustMember.legalEntityId : skipToken
7048
- );
7049
- useEffect(() => {
7050
- if (exemptSettlorLe && exemptSettlorLe.organization) {
7051
- handleChangeFor("country")(exemptSettlorLe.organization.registeredAddress.country);
7052
- }
7053
- }, [exemptSettlorLe]);
7054
- useEffect(() => {
7055
- onChange?.({
7056
- schema,
7057
- data,
7058
- errors,
7059
- valid,
7060
- isValid,
7061
- dataStoreId: id,
7062
- fieldProblems
7063
- });
7064
- }, [schema, data, isValid, t, errors, valid, id, fieldProblems]);
7065
- const onInputDescription = (e) => {
7066
- const { value } = e.target;
7067
- handleChangeFor("descriptionUndefinedBeneficiary")(value);
7068
- };
7069
- const changeRoles = (roles) => {
7070
- handleChangeFor("role")(roles);
7071
- if (roles.includes("undefinedBeneficiary")) {
7072
- handleChangeFor("entityType")(void 0);
7073
- } else {
7074
- handleChangeFor("descriptionUndefinedBeneficiary")(void 0);
7075
- }
7076
- };
7077
- const changeSettlorExemptionReasons = (exemptionReasons) => {
7078
- if (exemptionReasons.includes("noneOfTheAbove")) {
7079
- handleChangeFor("settlorExemptionReason")(
7080
- data.settlorExemptionReason?.includes("noneOfTheAbove") ? exemptionReasons.filter((reason) => reason !== "noneOfTheAbove") : ["noneOfTheAbove"]
7081
- );
7082
- return;
7083
- }
7084
- handleChangeFor("settlorExemptionReason")(exemptionReasons);
7085
- };
7086
- const nameProps = getFieldProps(props, nameFields);
7087
- const onEntityTypeChange = (value) => {
7088
- if (isOrganizationSettlorWithExemptionEnabled && value === LegalEntityTypes.ORGANIZATION && data.role?.length === 1 && data.role[0] === "settlor") {
7089
- changeSettlorExemptionReasons(["professionalServiceProvider"]);
7090
- }
7091
- handleChangeFor("entityType")(value);
7092
- };
7093
- return /* @__PURE__ */ jsxs("form", { className: "adyen-kyc-trust__role-and-entity-type adyen-kyc-u-width-full", children: [
7094
- /* @__PURE__ */ jsx(Header, { title: t(($) => $["roleAndEntityType"]) }),
7095
- /* @__PURE__ */ jsx(
7096
- ErrorPanel,
7097
- {
7098
- verificationErrors: formVerificationErrors,
7099
- validationErrors: fieldValidationErrors,
7100
- formUtils,
7101
- id: "ariaErrorField"
7102
- }
7103
- ),
7104
- /* @__PURE__ */ jsx(
7105
- Field,
7106
- {
7107
- el: "fieldset",
7108
- name: "role",
7109
- label: formUtils.getLabel("role", "selectTheApplicableRoles"),
7110
- errorMessage: formUtils.getErrorMessage("role", errors, fieldProblems),
7111
- isValid: valid.role,
7112
- disabled: availableRoles.length === 0,
7113
- showErrorIconBottom: true,
7114
- children: (childProps) => /* @__PURE__ */ jsx(
7115
- MultiSelectList,
7116
- {
7117
- ...childProps,
7118
- options: Object.values(TrustMemberTypes),
7119
- selected: data.role ?? [],
7120
- onSelect: changeRoles,
7121
- mapToSelectItem: (role) => ({
7122
- ...makeSelectItemForRole(role, t),
7123
- disabled: !availableRoles.includes(role)
7124
- })
7125
- }
7126
- )
7127
- }
7128
- ),
7129
- schema?.includes("entityType") && /* @__PURE__ */ jsx(
7130
- Field,
7131
- {
7132
- el: "fieldset",
7133
- name: "entityType",
7134
- errorMessage: formUtils.getErrorMessage("entityType", errors, fieldProblems),
7135
- label: formUtils.getLabel("entityType", "whatTypeOfYourMembersEntity"),
7136
- classNameModifiers: ["entityType"],
7137
- disabled: Boolean(existingTrustMember),
7138
- children: (childProps) => /* @__PURE__ */ jsx(
7139
- RadioGroupCard,
7140
- {
7141
- ...childProps,
7142
- name: "entityType",
7143
- options: trustMemberLegalEntityTypes,
7144
- onSelect: onEntityTypeChange,
7145
- selected: data.entityType,
7146
- optionId: (option) => leTypeCardDetails$1[option].id,
7147
- optionName: (option) => t(($) => $[leTypeCardDetails$1[option].name], { ns: "trust" }),
7148
- optionDescription: (option) => t(($) => $[leTypeCardDetails$1[option].description], { ns: "trust" }),
7149
- "aria-required": true,
7150
- "aria-invalid": !valid.entityType,
7151
- floatingRadio: true
7152
- }
7153
- )
7154
- }
7155
- ),
7156
- schema?.includes("descriptionUndefinedBeneficiary") && /* @__PURE__ */ jsx(
7157
- Field,
7158
- {
7159
- name: "descriptionUndefinedBeneficiary",
7160
- label: formUtils.getLabel("description"),
7161
- isValid: valid.descriptionUndefinedBeneficiary,
7162
- errorMessage: formUtils.getErrorMessage(
7163
- "descriptionUndefinedBeneficiary",
7164
- errors,
7165
- fieldProblems
7166
- ),
7167
- children: (childProps) => /* @__PURE__ */ jsx(
7168
- TextArea,
7169
- {
7170
- ...childProps,
7171
- name: "descriptionUndefinedBeneficiary",
7172
- value: data.descriptionUndefinedBeneficiary,
7173
- maxLength: CHARACTERS_LIMIT,
7174
- onInput: onInputDescription,
7175
- helper: t(($) => $["describeWhoIsABeneficiaryInYourTrust"], { ns: "trust" }),
7176
- "aria-required": true,
7177
- "aria-invalid": !valid.descriptionUndefinedBeneficiary
7178
- }
7179
- )
7180
- }
7181
- ),
7182
- schema?.includes("settlorExemptionReason") && !isOrganizationAndSettlor(data) && /* @__PURE__ */ jsx(
7183
- Field,
7184
- {
7185
- el: "fieldset",
7186
- name: "settlorExemptionReason",
7187
- label: formUtils.getLabel("settlorExemptionReason", "whichOfTheseApplyToTheSettlor"),
7188
- isValid: valid.settlorExemptionReason,
7189
- errorMessage: formUtils.getErrorMessage("settlorExemptionReason", errors, fieldProblems),
7190
- showErrorIconBottom: true,
7191
- children: (childProps) => /* @__PURE__ */ jsx(
7192
- MultiSelectList,
7193
- {
7194
- ...childProps,
7195
- options: settlorExemptionReasonWithNoneOfTheAbove,
7196
- selected: data.settlorExemptionReason ?? [],
7197
- onSelect: changeSettlorExemptionReasons,
7198
- mapToSelectItem: (reason) => ({
7199
- id: reason,
7200
- name: t(($) => $[reason], { ns: "trust" })
7201
- })
7202
- }
7203
- )
7204
- }
7205
- ),
7206
- data.trustMemberType !== "rootTrustee" && (schema.includes("firstName") || schema.includes("lastName")) ? /* @__PURE__ */ jsx(
7207
- Name,
7208
- {
7209
- ...nameProps,
7210
- data: {
7211
- firstName: defaultData.firstName,
7212
- lastName: defaultData.lastName
7213
- },
7214
- requiredFields: schema.filter(
7215
- (field) => nameFields.includes(field)
7216
- ),
7217
- labels: {
7218
- firstName: "firstNameOfSettlor",
7219
- lastName: "lastNameOfSettlor",
7220
- enterNameExactlyAsAppearInID: "enterSettlorsFirstNameExactlyAsItAppearsInID",
7221
- enterLastNameExactlyAsAppearInID: "enterSettlorsLastNameExactlyAsItAppearsInID"
7222
- },
7223
- errors,
7224
- fieldValidationErrors: fieldProblems,
7225
- handleFieldChange: handleChangeFor,
7226
- valid,
7227
- dataStoreId: id
7228
- }
7229
- ) : void 0,
7230
- isOrganizationSettlorWithExemptionEnabled && schema?.includes("country") && schema?.includes("legalCompanyName") ? /* @__PURE__ */ jsxs(Fragment, { children: [
7231
- /* @__PURE__ */ jsx(
7232
- CountryField,
7233
- {
7234
- data: formUtils.getFieldData(data, COUNTRY_FIELD),
7235
- valid: formUtils.getFieldValid(valid, COUNTRY_FIELD),
7236
- errors: formUtils.getFieldErrors(errors, fieldProblems, COUNTRY_FIELD),
7237
- labels: formUtils.getFieldLabels(COUNTRY_FIELD),
7238
- readonly: false,
7239
- allowedCountries: void 0,
7240
- handleChangeFor
7241
- }
7242
- ),
7243
- /* @__PURE__ */ jsx(
7244
- LegalCompanyNameField,
7245
- {
7246
- data: formUtils.getFieldData(data, LEGAL_COMPANY_NAME_FIELD),
7247
- valid: formUtils.getFieldValid(valid, LEGAL_COMPANY_NAME_FIELD),
7248
- errors: formUtils.getFieldErrors(errors, fieldProblems, LEGAL_COMPANY_NAME_FIELD),
7249
- labels: formUtils.getFieldLabels(LEGAL_COMPANY_NAME_FIELD),
7250
- helperText: formUtils.getFieldHelperText(LEGAL_COMPANY_NAME_FIELD, {
7251
- legalCompanyName: "legalCompanyName__helperText"
7252
- }),
7253
- readonly: false,
7254
- handleChangeFor
7255
- }
7256
- )
7257
- ] }) : void 0
7258
- ] });
7259
- };
7260
- const mapTrustMemberToEntityAssociations = (trustMember) => {
7261
- if (trustMember.legalEntityId === isNewEntity) {
7262
- throw Error("Cannot map a new trust member, you must create it first");
7263
- }
7264
- if (trustMember.trustMemberType === "exemptSettlor")
7265
- return [
7266
- {
7267
- legalEntityId: trustMember.legalEntityId,
7268
- entityType: trustMember.legalEntityType,
7269
- type: TrustMemberTypes.SETTLOR,
7270
- settlorExemptionReason: trustMember.settlorExemptionReason,
7271
- name: trustMember.legalEntityType === LegalEntityTypes.INDIVIDUAL ? `${trustMember.exemptSettlorName?.firstName} ${trustMember.exemptSettlorName?.lastName}` : trustMember.name ?? ""
7272
- }
7273
- ];
7274
- return trustMember.roles.map((role) => ({
7275
- legalEntityId: trustMember.legalEntityId,
7276
- type: role
7277
- }));
7278
- };
7279
- const addOrUpdateAssociatedTrustMember = async ({
7280
- newOrUpdated,
7281
- trust,
7282
- updateLegalEntity
7283
- }) => {
7284
- const otherAssociations = getOwnEntityAssociations(trust).filter(
7285
- (existingAssociation) => existingAssociation.legalEntityId !== newOrUpdated.legalEntityId
7286
- );
7287
- const updatedAssociations = mapTrustMemberToEntityAssociations(newOrUpdated);
7288
- const patchLE = {
7289
- entityAssociations: [...otherAssociations, ...updatedAssociations]
7290
- };
7291
- await updateLegalEntity({ ...patchLE, id: trust.id });
7292
- };
7293
- const updateRootTrusteeTrustMember = async ({
7294
- trustMember,
7295
- trust,
7296
- updateLegalEntity
7297
- }) => {
7298
- const otherAssociations = getOwnEntityAssociations(trust).filter(
7299
- (existingAssociation) => existingAssociation.legalEntityId !== trustMember.legalEntityId
7300
- );
7301
- const updatedAssociations = mapRootTrustMemberToEntityAssociations(trustMember);
7302
- const patchLE = {
7303
- entityAssociations: [...otherAssociations, ...updatedAssociations]
7304
- };
7305
- await updateLegalEntity({ ...patchLE, id: trust.id });
7306
- };
7307
- const mapRootTrustMemberToEntityAssociations = (trustMember) => trustMember.roles.filter((r) => r !== "secondaryTrustee").map((role) => ({
7308
- legalEntityId: trustMember.legalEntityId,
7309
- type: role
7310
- }));
7311
- const addOrUpdateUndefinedBeneficiary = async ({
7312
- newOrUpdated,
7313
- trust,
7314
- updateLegalEntity
7315
- }) => {
7316
- const otherUndefinedBeneficiaries = trust.trust?.undefinedBeneficiaryInfo?.filter(
7317
- (ub) => ub.reference !== newOrUpdated.reference
7318
- ) ?? [];
7319
- const patchLE = {
7320
- trust: {
7321
- undefinedBeneficiaryInfo: [
7322
- ...otherUndefinedBeneficiaries,
7323
- newOrUpdated.reference === isNewEntity ? {
7324
- description: newOrUpdated.description
7325
- } : {
7326
- reference: newOrUpdated.reference,
7327
- description: newOrUpdated.description
7328
- }
7329
- ]
7330
- }
7331
- };
7332
- await updateLegalEntity({ ...patchLE, id: trust.id });
7333
- };
7334
- const createExemptSettlor = async ({
7335
- exemptSettlor,
7336
- trust,
7337
- handleCreateLegalEntity
7338
- }) => {
7339
- const exemptSettlorLE = {
7340
- type: LegalEntityTypes.INDIVIDUAL,
7341
- individual: {
7342
- name: {
7343
- firstName: exemptSettlor.exemptSettlorName?.firstName ?? "",
7344
- lastName: exemptSettlor.exemptSettlorName?.lastName ?? ""
7345
- },
7346
- residentialAddress: {
7347
- country: trust.trust.registeredAddress.country
7348
- }
7349
- }
7350
- };
7351
- return handleCreateLegalEntity(exemptSettlorLE);
7352
- };
7353
- const createOrganizationExemptSettlor = async ({
7354
- exemptSettlor,
7355
- handleCreateLegalEntity
7356
- }) => {
7357
- const exemptSettlorLE = {
7358
- type: LegalEntityTypes.ORGANIZATION,
7359
- organization: {
7360
- legalName: exemptSettlor.name ?? "",
7361
- registeredAddress: {
7362
- country: exemptSettlor.country ?? "NL"
7363
- }
7364
- }
7365
- };
7366
- return handleCreateLegalEntity(exemptSettlorLE);
7367
- };
7368
- const exemptSettlorNamesTheSame = (existingSettlor, newSettlor) => JSON.stringify(existingSettlor.exemptSettlorName) === JSON.stringify(newSettlor.exemptSettlorName);
7369
- const updateExemptSettlorName = async ({
7370
- exemptSettlor,
7371
- updateLegalEntity
7372
- }) => {
7373
- const exemptSettlorPatch = {
7374
- individual: {
7375
- name: {
7376
- firstName: exemptSettlor.exemptSettlorName?.firstName,
7377
- lastName: exemptSettlor.exemptSettlorName?.lastName
7378
- }
7379
- }
7380
- };
7381
- return updateLegalEntity({
7382
- ...exemptSettlorPatch,
7383
- id: exemptSettlor.legalEntityId
7384
- });
7385
- };
7386
- const updateOrganizationExemptSettlorName = async ({
7387
- exemptSettlor,
7388
- updateLegalEntity
7389
- }) => {
7390
- const exemptSettlorPatch = {
7391
- organization: {
7392
- legalName: exemptSettlor.name,
7393
- registeredAddress: {
7394
- country: exemptSettlor.country
7395
- }
7396
- }
7397
- };
7398
- return updateLegalEntity({
7399
- ...exemptSettlorPatch,
7400
- id: exemptSettlor.legalEntityId
7401
- });
7402
- };
7403
- const settlorExemptionReasonsList = "adyen-kyc-settlor-exemption-reasons-list";
7404
- const styles$3 = {
7405
- settlorExemptionReasonsList
7406
- };
7407
- const formatRolesForSummary = (roles, commonT) => roles.map((role) => commonT(($) => $[getRoleName(role)])).join(", ");
7408
- const formatSettlorExemptionReasonsForSummary = (reasons, trustT) => /* @__PURE__ */ jsx("ul", { className: styles$3.settlorExemptionReasonsList, children: reasons.map((reason) => /* @__PURE__ */ jsx("li", { children: trustT(($) => $[reason]) }, reason)) });
7409
- const formatRoleAndEntityTypeSummary = (data, commonT, trustT, isOrganizationSettlorWithExemptionEnabled) => {
7410
- const { trustMemberType, roles } = data;
7411
- const role = formatRolesForSummary(roles, commonT);
7412
- switch (trustMemberType) {
7413
- case "undefinedBeneficiary":
7414
- return {
7415
- role,
7416
- descriptionUndefinedBeneficiary: data.description
7417
- };
7418
- case "exemptSettlor":
7419
- return {
7420
- role,
7421
- entityType: trustT(($) => $[data.legalEntityType]),
7422
- firstName: data.exemptSettlorName?.firstName,
7423
- lastName: data.exemptSettlorName?.lastName,
7424
- country: isOrganizationSettlorWithExemptionEnabled ? data.country : void 0,
7425
- legalCompanyName: isOrganizationSettlorWithExemptionEnabled ? data.name : void 0,
7426
- settlorExemptionReason: summaryItem(
7427
- "otherInformation",
7428
- formatSettlorExemptionReasonsForSummary(data.settlorExemptionReason ?? [], trustT)
7429
- )
7430
- };
7431
- case "company":
7432
- case "rootTrustee":
7433
- case "regular":
7434
- return {};
7435
- }
7436
- };
7437
- const summary = {
7438
- formId: "summary",
7439
- formName: "summary"
7440
- };
7441
- const regularForms$1 = {
7442
- roleAndEntityType: {
7443
- formId: "roleAndEntityType",
7444
- formName: "roleAndEntityType",
7445
- fields: ["role", "entityType"]
7446
- },
7447
- memberDetails: {
7448
- formId: "memberDetails",
7449
- formName: "memberDetails"
7450
- },
7451
- summary
7452
- };
7453
- const undefinedBeneficiaryForms = {
7454
- roleAndEntityType: {
7455
- formId: "roleAndEntityType",
7456
- formName: "roleAndEntityType",
7457
- fields: ["role", "entityType", "descriptionUndefinedBeneficiary"]
7458
- },
7459
- summary
7460
- };
7461
- const exemptSettlorForms = {
7462
- roleAndEntityType: {
7463
- formId: "roleAndEntityType",
7464
- formName: "roleAndEntityType",
7465
- fields: ["role", "entityType", "settlorExemptionReason"]
7466
- },
7467
- summary
7468
- };
7469
- const decideForms = (trustMember) => {
7470
- if (trustMember === "incomplete") return regularForms$1;
7471
- switch (trustMember.trustMemberType) {
7472
- case "undefinedBeneficiary":
7473
- return undefinedBeneficiaryForms;
7474
- case "exemptSettlor":
7475
- return exemptSettlorForms;
7476
- case "rootTrustee":
7477
- return exemptSettlorForms;
7478
- case "regular":
7479
- case "company":
7480
- return regularForms$1;
7481
- }
7482
- };
7483
- const convertDataToTrustMember = (data, existingTrustMember, isOrganizationSettlorWithExemptionReasonEnabled = false) => {
7484
- const existingId = existingTrustMember ? existingTrustMember.trustMemberType === "undefinedBeneficiary" ? existingTrustMember.reference : existingTrustMember.legalEntityId : void 0;
7485
- if (data.trustMemberType === "rootTrustee") {
7486
- return {
7487
- trustMemberType: "rootTrustee",
7488
- roles: data.role ?? [],
7489
- legalEntityType: data.entityType ?? LegalEntityTypes.ORGANIZATION,
7490
- legalEntityId: "",
7491
- name: data.firstName ?? ""
7492
- };
7493
- }
7494
- if (data.role?.length) {
7495
- if (isExemptSettlor(data)) {
7496
- if (isOrganizationSettlorWithExemptionReasonEnabled && data.entityType === LegalEntityTypes.ORGANIZATION) {
7497
- return {
7498
- trustMemberType: "exemptSettlor",
7499
- roles: [TrustMemberTypes.SETTLOR],
7500
- legalEntityType: LegalEntityTypes.ORGANIZATION,
7501
- legalEntityId: existingId ?? isNewEntity,
7502
- name: data.legalCompanyName ?? "",
7503
- settlorExemptionReason: ["professionalServiceProvider"],
7504
- country: data.country
7505
- };
7506
- }
7507
- return {
7508
- trustMemberType: "exemptSettlor",
7509
- roles: [TrustMemberTypes.SETTLOR],
7510
- legalEntityType: LegalEntityTypes.INDIVIDUAL,
7511
- settlorExemptionReason: data.settlorExemptionReason.filter(
7512
- (reason) => reason !== "noneOfTheAbove"
7513
- ),
7514
- exemptSettlorName: {
7515
- firstName: data.firstName ?? "",
7516
- lastName: data.lastName ?? ""
7517
- },
7518
- legalEntityId: existingId ?? isNewEntity
7519
- };
7520
- }
7521
- if (data.role.includes("undefinedBeneficiary"))
7522
- return {
7523
- trustMemberType: "undefinedBeneficiary",
7524
- roles: [TrustMemberTypes.UNDEFINED_BENEFICIARY],
7525
- description: data.descriptionUndefinedBeneficiary ?? "",
7526
- reference: existingId ?? isNewEntity
7527
- };
7528
- if (data.entityType === LegalEntityTypes.ORGANIZATION) {
7529
- return {
7530
- trustMemberType: "company",
7531
- roles: data.role,
7532
- legalEntityType: LegalEntityTypes.ORGANIZATION,
7533
- legalEntityId: existingId ?? isNewEntity,
7534
- name: data.legalCompanyName ?? "",
7535
- country: data.country
7536
- };
7537
- }
7538
- if (data.entityType === LegalEntityTypes.INDIVIDUAL)
7539
- return {
7540
- trustMemberType: "regular",
7541
- roles: data.role,
7542
- legalEntityType: LegalEntityTypes.INDIVIDUAL,
7543
- legalEntityId: existingId ?? isNewEntity,
7544
- name: ""
7545
- };
7546
- }
7547
- return "incomplete";
7548
- };
7549
- const logger$1 = createLogger();
7550
- function RoleAndTypeDropin({
7551
- trust,
7552
- trustMemberLe,
7553
- existingTrustMember,
7554
- navigateToFullDropinFor,
7555
- navigateBack,
7556
- country
7557
- }) {
7558
- const { t: commonT } = useTranslation("common");
7559
- const { t: trustT } = useTranslation("trust");
7560
- const { isExperimentEnabled } = useExperimentsContext();
7561
- const allowMoreRolesForMainRootTrustee = isExperimentEnabled("AllowMoreRolesForMainRootTrustee");
7562
- const [trustMember, setTrustMember] = useState(
7563
- existingTrustMember ?? "incomplete"
7564
- );
7565
- const [shouldValidate, setShouldValidate] = useState(false);
7566
- const { showToast } = useToastContext();
7567
- const isOrganizationSettlorWithExemptionReasonEnabled = (country2) => country2 === CountryCodes.Australia;
7568
- const isOrganizationSettlorWithExemptionEnabled = isOrganizationSettlorWithExemptionReasonEnabled(
7569
- trust?.trust?.countryOfGoverningLaw
7570
- );
7571
- const formList = decideForms(trustMember);
7572
- const forms = Object.values(formList);
7573
- const [formValidity, setFormValidity] = useState({
7574
- roleAndEntityType: false
7575
- });
7576
- const [activeForm, setActiveForm] = useState(regularForms$1.roleAndEntityType);
7577
- const isSummaryStep = activeForm.formId === summaryStep.formId;
7578
- const { mutateAsync: createLegalEntity } = useCreateLegalEntity();
7579
- const { mutateAsync: updateLegalEntity } = useUpdateLegalEntity();
7580
- const addOrUpdateTrustMember = async (updated, existing) => {
7581
- if (trust === void 0) {
7582
- throw new Error("No associated trust");
7583
- }
7584
- try {
7585
- switch (updated.trustMemberType) {
7586
- case "undefinedBeneficiary":
7587
- await addOrUpdateUndefinedBeneficiary({
7588
- newOrUpdated: updated,
7589
- trust,
7590
- updateLegalEntity
7591
- });
7592
- break;
7593
- case "exemptSettlor":
7594
- if (!existing) {
7595
- const newSettlorLE = isOrganizationSettlorWithExemptionEnabled && updated.legalEntityType === "organization" ? await createOrganizationExemptSettlor({
7596
- exemptSettlor: updated,
7597
- handleCreateLegalEntity: createLegalEntity
7598
- }) : await createExemptSettlor({
7599
- exemptSettlor: updated,
7600
- trust,
7601
- handleCreateLegalEntity: createLegalEntity
7602
- });
7603
- updated.legalEntityId = newSettlorLE.id;
7604
- }
7605
- if (existing && !exemptSettlorNamesTheSame(existing, updated)) ;
7606
- if (existing && isOrganizationSettlorWithExemptionEnabled && updated.legalEntityType === "organization") ;
7607
- await addOrUpdateAssociatedTrustMember({
7608
- newOrUpdated: updated,
7609
- trust,
7610
- updateLegalEntity
7611
- });
7612
- break;
7613
- case "regular":
7614
- case "company":
7615
- await addOrUpdateAssociatedTrustMember({
7616
- newOrUpdated: updated,
7617
- trust,
7618
- updateLegalEntity
7619
- });
7620
- break;
7621
- case "rootTrustee":
7622
- if (allowMoreRolesForMainRootTrustee && existing) ;
7623
- break;
7624
- default:
7625
- logger$1.warn(
7626
- `Updating trust member type "${updated.trustMemberType}" is not implemented.`
7627
- );
7628
- }
7629
- showToast({ label: commonT(($) => $["successfullyUpdatedDetails"]), variant: "success" });
7630
- navigateBack();
7631
- } catch (err) {
7632
- logger$1.error(err);
7633
- showToast({ label: commonT(($) => $["failedToUpdateDetails"]), variant: "error" });
7634
- }
7635
- };
7636
- const summaryData = trustMember === "incomplete" ? {} : {
7637
- roleAndEntityType: formatRoleAndEntityTypeSummary(
7638
- trustMember,
7639
- commonT,
7640
- trustT,
7641
- isOrganizationSettlorWithExemptionEnabled
7642
- )
7643
- };
7644
- const onNavigateToNextStep = () => {
7645
- if (isSummaryStep && trustMember !== "incomplete") {
7646
- addOrUpdateTrustMember(trustMember);
7647
- return;
7648
- }
7649
- gotoFormByFormIndex(forms.findIndex((form) => form.formId === activeForm.formId) + 1);
7650
- };
7651
- const onTrustMemberChange = ({
7652
- data,
7653
- isValid = false,
7654
- dataStoreId = void 0
7655
- }) => {
7656
- if (dataStoreId) {
7657
- setFormValidity({ ...formValidity, [dataStoreId]: isValid });
7658
- }
7659
- setTrustMember(
7660
- convertDataToTrustMember(
7661
- data,
7662
- existingTrustMember,
7663
- isOrganizationSettlorWithExemptionEnabled
7664
- )
7665
- );
7666
- };
7667
- const saveRolesAndNavigate = async () => {
7668
- if (trustMember === "incomplete") return;
7669
- if (hasRolesChanged(trustMember.roles, existingTrustMember?.roles)) {
7670
- addOrUpdateTrustMember(trustMember);
7671
- }
7672
- navigateBack();
7673
- };
7674
- const hasRolesChanged = (newRoles = [], existingRoles = []) => newRoles.length !== existingRoles.length || !newRoles.every((newRole) => existingRoles.includes(newRole));
7675
- const formsWithValidity = forms.map((form) => ({
7676
- formId: form.formId,
7677
- formName: form.formName,
7678
- isValid: formValidity[form.formId]
7679
- }));
7680
- const gotoFormByFormIndex = (formIndex) => {
7681
- const targetForm = forms[formIndex];
7682
- if (!formValidity.roleAndEntityType || trustMember === "incomplete") {
7683
- setShouldValidate(true);
7684
- return;
7685
- }
7686
- if (trustMember.trustMemberType === "regular" || trustMember.trustMemberType === "company") {
7687
- if (targetForm.formId === regularForms$1.memberDetails.formId) {
7688
- navigateToFullDropinFor(trustMember);
7689
- return;
7690
- }
7691
- if (targetForm.formId === summaryStep.formId) return;
7692
- }
7693
- setActiveForm(targetForm);
7694
- };
7695
- const content = /* @__PURE__ */ jsxs(Fragment, { children: [
7696
- /* @__PURE__ */ jsx("div", { className: "adyen-kyc-dropin__sidebar-wrapper", children: /* @__PURE__ */ jsx(
7697
- FormNavigation,
7698
- {
7699
- forms: formsWithValidity,
7700
- activeForm: formsWithValidity.find((form) => form.formId === activeForm.formId),
7701
- taskName: "trustMembers",
7702
- gotoForm: gotoFormByFormIndex
7703
- }
7704
- ) }),
7705
- /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-form-container", children: [
7706
- /* @__PURE__ */ jsx(
7707
- "div",
7708
- {
7709
- className: activeForm.formId !== "roleAndEntityType" ? "adyen-kyc-form-wrapper adyen-kyc-form-wrapper--hidden" : "adyen-kyc-form-wrapper",
7710
- children: /* @__PURE__ */ jsx(
7711
- TrustRoleAndEntityType,
7712
- {
7713
- id: "roleAndEntityType",
7714
- existingTrustMember,
7715
- onChange: onTrustMemberChange,
7716
- shouldValidate,
7717
- isOrganizationSettlorWithExemptionEnabled,
7718
- country
7719
- }
7720
- )
7721
- }
7722
- ),
7723
- isSummaryStep && /* @__PURE__ */ jsx("div", { className: "adyen-kyc-form-wrapper", children: /* @__PURE__ */ jsx(
7724
- Summary,
7725
- {
7726
- data: summaryData,
7727
- forms: [undefinedBeneficiaryForms.roleAndEntityType],
7728
- gotoForm: gotoFormByFormIndex
7729
- }
7730
- ) }),
7731
- /* @__PURE__ */ jsx(
7732
- ActionBar,
7733
- {
7734
- onNext: onNavigateToNextStep,
7735
- onHome: saveRolesAndNavigate,
7736
- nextButtonLabel: isSummaryStep ? commonT(($) => $["submit"]) : commonT(($) => $["continue"]),
7737
- homeButtonLabel: commonT(($) => $["saveAndGoToOverview"])
7738
- }
7739
- )
7740
- ] })
7741
- ] });
7742
- return /* @__PURE__ */ jsx(DropinLayout, { content });
7743
- }
7744
- function TrustMemberRoleAndTypePage({
7745
- trustId,
7746
- memberId,
7747
- navigateToFullDropinFor,
7748
- navigateBack
7749
- }) {
7750
- const { i18n } = useTranslation();
7751
- const { data: memberLe } = useLegalEntity(memberId ?? skipToken);
7752
- const { data: trustLe } = useLegalEntity(trustId);
7753
- const trustMembers = useTrustMembers();
7754
- addResourceBundles(i18n, i18n.language, [
7755
- { ns: "trust", importFn: () => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../language/bg-BG.json": () => import("./bg-BG-CepHap8j.js"), "../language/cs-CZ.json": () => import("./cs-CZ-BP7niQM9.js"), "../language/da-DK.json": () => import("./da-DK-Dc0QYG8m.js"), "../language/de-DE.json": () => import("./de-DE-Dz2OsS1F.js"), "../language/el-GR.json": () => import("./el-GR-BHG69mXl.js"), "../language/en-US.json": () => import("./en-US-D-B35AoN.js"), "../language/es-ES.json": () => import("./es-ES-BI_jdT67.js"), "../language/et-EE.json": () => import("./et-EE-C_PZO2aI.js"), "../language/fi-FI.json": () => import("./fi-FI-hwzizPnr.js"), "../language/fr-FR.json": () => import("./fr-FR-CYZXbwc9.js"), "../language/hr-HR.json": () => import("./hr-HR-bE6cvRCQ.js"), "../language/hu-HU.json": () => import("./hu-HU-DG-NUDx4.js"), "../language/it-IT.json": () => import("./it-IT-Erh1DIlj.js"), "../language/ja-JP.json": () => import("./ja-JP-ThzG9vIo.js"), "../language/lt-LT.json": () => import("./lt-LT-Nd1uRoIj.js"), "../language/lv-LV.json": () => import("./lv-LV-DKhV24CI.js"), "../language/nl-NL.json": () => import("./nl-NL-O9GCHMDA.js"), "../language/no-NO.json": () => import("./no-NO-CA1aR6Wh.js"), "../language/pl-PL.json": () => import("./pl-PL-BKDK0_G8.js"), "../language/pt-BR.json": () => import("./pt-BR-NtLaWlnZ.js"), "../language/pt-PT.json": () => import("./pt-PT-DSxxVA0f.js"), "../language/ro-RO.json": () => import("./ro-RO-Bybq8JFn.js"), "../language/sk-SK.json": () => import("./sk-SK-C6rMIxpz.js"), "../language/sl-SI.json": () => import("./sl-SI-tPwbFvOI.js"), "../language/sv-SE.json": () => import("./sv-SE-K1QT1cOt.js") }), `../language/${i18n.language}.json`, 3) }
7756
- ]);
7757
- if (!trustLe || memberId && !memberLe) {
7758
- return /* @__PURE__ */ jsx(Loader, {});
7759
- }
7760
- const country = getLegalEntityCountry(memberLe ?? trustLe);
7761
- const trustMember = memberId ? trustMembers.find(
7762
- (tm) => tm.trustMemberType !== "undefinedBeneficiary" && tm.legalEntityId === memberId
7763
- ) : void 0;
7764
- return /* @__PURE__ */ jsx(
7765
- RoleAndTypeDropin,
7766
- {
7767
- trust: trustLe,
7768
- trustMemberLe: memberLe,
7769
- existingTrustMember: trustMember,
7770
- country,
7771
- navigateToFullDropinFor,
7772
- navigateBack
7773
- }
7774
- );
7775
- }
7776
- const UNINCORPORATED_PARTNERSHIP__DEFAULT_DESCRIPTIONS_MAP = {
7777
- [UnincorporatedPartnershipMemberTypes.SECONDARY_PARTNER]: "provideAtLeastOneSecondaryPartner",
7778
- [UnincorporatedPartnershipMemberTypes.OWNER]: "provideAllOwners",
7779
- [UnincorporatedPartnershipMemberTypes.CONTROLLING_PERSON]: "ifNoOwnersSpecifyControllingPersons"
7780
- };
7781
- const iconStatus = (current, min) => {
7782
- const isSatisfied = current > 0 && current >= min;
7783
- return isSatisfied ? "satisfied" : "empty";
7784
- };
7785
- const getEntityStatusRuleDescription = (country, currentTask, entityLabel) => {
7786
- const defaultMessage = getDecisionMakerDescriptionMap(country)[entityLabel];
7787
- switch (currentTask) {
7788
- case TaskTypes.TRUST_MEMBER_OVERVIEW: {
7789
- return TRUST_DEFAULT_DESCRIPTIONS_MAP[entityLabel];
7790
- }
7791
- case TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_OVERVIEW: {
7792
- return UNINCORPORATED_PARTNERSHIP__DEFAULT_DESCRIPTIONS_MAP[entityLabel] || defaultMessage;
7793
- }
7794
- default: {
7795
- return defaultMessage;
7796
- }
7797
- }
7798
- };
7799
- const EntityStatusIcon = ({ status }) => {
7800
- switch (status) {
7801
- case "empty":
7802
- return /* @__PURE__ */ jsx(
7803
- Icon,
7804
- {
7805
- name: "checkmark-circle",
7806
- className: "adyen-kyc-entity-status__icon adyen-kyc-entity-status__icon--empty",
7807
- testId: "empty-icon"
7808
- }
7809
- );
7810
- case "satisfied":
7811
- return /* @__PURE__ */ jsx(
7812
- Icon,
7813
- {
7814
- name: "checkmark",
7815
- className: "adyen-kyc-entity-status__icon adyen-kyc-entity-status__icon--satisfied",
7816
- testId: "satisfied-icon"
7817
- }
7818
- );
7819
- default:
7820
- return /* @__PURE__ */ jsx(
7821
- Icon,
7822
- {
7823
- name: "circle",
7824
- className: "adyen-kyc-entity-status__icon adyen-kyc-entity-status__icon--empty",
7825
- testId: "empty-icon"
7826
- }
7827
- );
7828
- }
7829
- };
7830
- const EntityGuidanceStatus = ({
7831
- country,
7832
- currentTask,
7833
- entityLabel,
7834
- status
7835
- }) => {
7836
- const { t } = useTranslation("common");
7837
- return /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-entity-status__container", children: [
7838
- /* @__PURE__ */ jsx(EntityStatusIcon, { status }),
7839
- /* @__PURE__ */ jsx(
7840
- Tag,
7841
- {
7842
- className: "adyen-kyc-entity-status__tag",
7843
- variant: getRoleTagVariant(entityLabel),
7844
- children: t(($) => $[getRoleName(entityLabel)])
7845
- },
7846
- entityLabel
7847
- ),
7848
- /* @__PURE__ */ jsx(
7849
- "span",
7850
- {
7851
- className: "adyen-kyc-entity-status--text",
7852
- "data-testid": `${entityLabel}-rule--description`,
7853
- children: /* @__PURE__ */ jsx(
7854
- Trans,
7855
- {
7856
- t,
7857
- i18nKey: ($) => $[getEntityStatusRuleDescription(country, currentTask, entityLabel)]
7858
- }
7859
- )
7860
- }
7861
- )
7862
- ] });
7863
- };
7864
- const deleteAssociatedTrustMember = async ({
7865
- associatedTrustMember,
7866
- trust,
7867
- asyncMutation
7868
- }) => {
7869
- const ownEntityAssociations = getOwnEntityAssociations(trust);
7870
- const updatedTrustAssociations = {
7871
- entityAssociations: ownEntityAssociations.filter(
7872
- (entityAssociation) => entityAssociation.legalEntityId !== associatedTrustMember.legalEntityId
7873
- )
7874
- };
7875
- await asyncMutation({ ...updatedTrustAssociations, id: trust.id });
7876
- };
7877
- const deleteUndefinedBeneficiary = async ({
7878
- undefinedBeneficiary,
7879
- trust,
7880
- asyncMutation
7881
- }) => {
7882
- const existingUndefinedBeneficiaries = trust.trust?.undefinedBeneficiaryInfo ?? [];
7883
- const updatedTrust = {
7884
- trust: {
7885
- undefinedBeneficiaryInfo: existingUndefinedBeneficiaries.filter(
7886
- (ub) => ub.reference !== undefinedBeneficiary.reference
7887
- )
7888
- }
7889
- };
7890
- await asyncMutation({ ...updatedTrust, id: trust.id });
7891
- };
7892
- function useClickAwayListener(ref, onClickAway) {
7893
- const handleClickAway = useCallback(
7894
- (event) => {
7895
- if (ref.current && !ref.current.contains(event.target)) {
7896
- onClickAway();
7897
- }
7898
- },
7899
- [ref, onClickAway]
7900
- );
7901
- useEffect(() => {
7902
- document.addEventListener("mousedown", handleClickAway);
7903
- return () => {
7904
- document.removeEventListener("mousedown", handleClickAway);
7905
- };
7906
- }, [handleClickAway]);
7907
- }
7908
- const ClickAwayWrapper = ({ children, onClickAway, ...divProps }) => {
7909
- const ref = useRef(null);
7910
- useClickAwayListener(ref, onClickAway);
7911
- return /* @__PURE__ */ jsx("div", { ref, ...divProps, children });
7912
- };
7913
- const actionsMenu = "adyen-kyc-actions-menu";
7914
- const styles$2 = {
7915
- actionsMenu
7916
- };
7917
- const ActionsMenu = ({ options, open, setOpen }) => {
7918
- const menuItems = options.map(({ label, onSelect, icon }) => /* @__PURE__ */ jsx(
7919
- Button,
7920
- {
7921
- onClick: (event) => {
7922
- event.stopPropagation();
7923
- setOpen(false);
7924
- onSelect();
7925
- },
7926
- variant: "tertiary",
7927
- icon,
7928
- children: label
7929
- },
7930
- label
7931
- ));
7932
- return open ? /* @__PURE__ */ jsx(ClickAwayWrapper, { onClickAway: () => setOpen(false), className: styles$2.actionsMenu, role: "menu", children: menuItems }) : null;
7933
- };
7934
- const EntityAssociation = ({
7935
- name,
7936
- types,
7937
- status,
7938
- actions,
7939
- problems,
7940
- infoContent,
7941
- onNavigateToEntity,
7942
- deleteEntity,
7943
- isDeleteDisabled
7944
- }) => {
7945
- const { t } = useTranslation("common");
7946
- const [showingActions, setShowingActions] = useState(false);
7947
- const [isConfirmShown, setIsConfirmShown] = useState(false);
7948
- const isDeletable = !!deleteEntity;
7949
- const handleRemoveIntent = (event) => {
7950
- event.stopPropagation();
7951
- setIsConfirmShown(true);
7952
- };
7953
- const dismissConfirm = () => {
7954
- setIsConfirmShown(false);
7955
- };
7956
- return /* @__PURE__ */ jsxs(Fragment, { children: [
7957
- /* @__PURE__ */ jsxs(
7958
- Card,
7959
- {
7960
- className: "adyen-kyc-entity-association",
7961
- stateful: Boolean(onNavigateToEntity),
7962
- onClick: onNavigateToEntity,
7963
- onKeyDown: handleKeys(["Enter"], onNavigateToEntity ?? noop),
7964
- children: [
7965
- /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-entity-association__top", children: [
7966
- /* @__PURE__ */ jsx("h3", { className: "adyen-kyc-entity-association__title", children: name }),
7967
- /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-entity-association__info", children: [
7968
- /* @__PURE__ */ jsx(TaskItemStatus, { status }),
7969
- actions && /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-entity-association__actions", children: [
7970
- /* @__PURE__ */ jsx(
7971
- IconButton,
7972
- {
7973
- variant: "tertiary",
7974
- icon: "more-horiz",
7975
- onClick: (event) => {
7976
- event.stopPropagation();
7977
- setShowingActions(!showingActions);
7978
- },
7979
- ariaLabel: t(($) => $["toggleAssociationMenu"], { name })
7980
- }
7981
- ),
7982
- /* @__PURE__ */ jsx(ActionsMenu, { options: actions, open: showingActions, setOpen: setShowingActions })
7983
- ] }),
7984
- isDeletable && /* @__PURE__ */ jsx(
7985
- IconButton,
7986
- {
7987
- ariaLabel: t(($) => $["delete"]),
7988
- icon: "bin",
7989
- variant: "tertiary",
7990
- onClick: handleRemoveIntent,
7991
- disabled: isConfirmShown || isDeleteDisabled
7992
- }
7993
- )
7994
- ] })
7995
- ] }),
7996
- /* @__PURE__ */ jsx("div", { children: types.map((type) => /* @__PURE__ */ jsx(
7997
- Tag,
7998
- {
7999
- className: "adyen-kyc-entity-association__tag",
8000
- variant: getRoleTagVariant(type),
8001
- children: t(($) => $[getRoleName(type)])
8002
- },
8003
- type
8004
- )) }),
8005
- status === TaskStatuses.ERROR && /* @__PURE__ */ jsx(
8006
- VerificationErrorAlert,
8007
- {
8008
- className: "adyen-kyc-entity-association-alert",
8009
- problems
8010
- }
8011
- ),
8012
- infoContent
8013
- ]
8014
- }
8015
- ),
8016
- isConfirmShown && isDeletable && /* @__PURE__ */ jsx(
8017
- Confirm,
8018
- {
8019
- title: t(($) => $["deleteItem"], { item: name }),
8020
- description: t(($) => $["thisActionIsPermanent"]),
8021
- onConfirm: deleteEntity,
8022
- confirmText: t(($) => $["delete"]),
8023
- onCancel: dismissConfirm,
8024
- critical: true
8025
- }
8026
- )
8027
- ] });
8028
- };
8029
- const CompanyTrustMemberTaskItem = ({
8030
- companyTrustMember,
8031
- taskStatus,
8032
- onEditOwner,
8033
- onAddOwner,
8034
- onEdit,
8035
- onDelete
8036
- }) => {
8037
- const { t } = useTranslation(["trust", "common"]);
8038
- const actions = [
8039
- {
8040
- icon: "edit",
8041
- onSelect: onEdit,
8042
- label: t(($) => $["editTrustMember"], { trustMember: companyTrustMember.name })
8043
- },
8044
- companyTrustMember.ownerId ? {
8045
- icon: "edit",
8046
- onSelect: onEditOwner,
8047
- label: t(($) => $["editOwnerOfTrustMember"], {
8048
- trustMember: companyTrustMember.name
8049
- })
8050
- } : {
8051
- icon: "plus",
8052
- onSelect: onAddOwner,
8053
- label: t(($) => $["addOwnerToTrustMember"], {
8054
- trustMember: companyTrustMember.name
8055
- })
8056
- },
8057
- {
8058
- icon: "bin",
8059
- onSelect: onDelete,
8060
- label: t(($) => $["removeTrustMember"], { trustMember: companyTrustMember.name })
8061
- }
8062
- ];
8063
- const infoContent = companyTrustMember.ownerId ? void 0 : /* @__PURE__ */ jsx(
8064
- Alert,
8065
- {
8066
- title: /* @__PURE__ */ jsxs(Fragment, { children: [
8067
- t(($) => $["helpUsVerifyCompany"], { ns: "common" }),
8068
- " ",
8069
- /* @__PURE__ */ jsx(Button, { onClick: onAddOwner, variant: "link", children: t(($) => $["providePersonalDetailsOfOwner"]) })
8070
- ] }),
8071
- className: "add-owner-alert"
8072
- }
8073
- );
8074
- return /* @__PURE__ */ jsx(
8075
- EntityAssociation,
8076
- {
8077
- types: companyTrustMember.roles,
8078
- name: companyTrustMember.name,
8079
- status: taskStatus,
8080
- actions,
8081
- infoContent,
8082
- onNavigateToEntity: onEdit
8083
- },
8084
- companyTrustMember.legalEntityId
8085
- );
8086
- };
8087
- const ExemptSettlorTaskItem = ({
8088
- exemptSettlor,
8089
- taskStatus,
8090
- onEdit,
8091
- onDelete
8092
- }) => {
8093
- const { t } = useTranslation("trust");
8094
- const settlorName = exemptSettlor.legalEntityType === LegalEntityTypes.INDIVIDUAL ? `${exemptSettlor.exemptSettlorName?.firstName} ${exemptSettlor.exemptSettlorName?.lastName}` : exemptSettlor.name ?? "";
8095
- const actions = [
8096
- {
8097
- icon: "edit",
8098
- onSelect: onEdit,
8099
- label: t(($) => $["editTrustMember"], { trustMember: settlorName })
8100
- },
8101
- {
8102
- icon: "bin",
8103
- onSelect: onDelete,
8104
- label: t(($) => $["removeTrustMember"], { trustMember: settlorName })
8105
- }
8106
- ];
8107
- return /* @__PURE__ */ jsx(
8108
- EntityAssociation,
8109
- {
8110
- types: exemptSettlor.roles,
8111
- name: settlorName,
8112
- status: taskStatus,
8113
- actions,
8114
- onNavigateToEntity: onEdit
8115
- },
8116
- exemptSettlor.legalEntityId
8117
- );
8118
- };
8119
- const RegularTrustMemberTaskItem = ({
8120
- trustMember,
8121
- taskStatus,
8122
- onEdit,
8123
- onDelete
8124
- }) => {
8125
- const { t } = useTranslation("trust");
8126
- const actions = [
8127
- {
8128
- icon: "edit",
8129
- onSelect: onEdit,
8130
- label: t(($) => $["editTrustMember"], { trustMember: trustMember.name })
8131
- },
8132
- {
8133
- icon: "bin",
8134
- onSelect: onDelete,
8135
- label: t(($) => $["removeTrustMember"], { trustMember: trustMember.name })
8136
- }
8137
- ];
8138
- return /* @__PURE__ */ jsx(
8139
- EntityAssociation,
8140
- {
8141
- types: trustMember.roles,
8142
- name: trustMember.name,
8143
- status: taskStatus,
8144
- actions,
8145
- onNavigateToEntity: onEdit
8146
- },
8147
- trustMember.legalEntityId
8148
- );
8149
- };
8150
- const RootTrusteeTaskItem = ({
8151
- rootTrustee,
8152
- taskStatus,
8153
- onEdit
8154
- }) => {
8155
- const { t } = useTranslation("trust");
8156
- const actions = [
8157
- {
8158
- icon: "edit",
8159
- onSelect: onEdit,
8160
- label: t(($) => $["editTrustMember"], { trustMember: rootTrustee.name })
8161
- }
8162
- ];
8163
- const { isExperimentEnabled } = useExperimentsContext();
8164
- const isAllowMoreRolesForMainRootTrustee = isExperimentEnabled(
8165
- "AllowMoreRolesForMainRootTrustee"
8166
- );
8167
- return /* @__PURE__ */ jsx(
8168
- EntityAssociation,
8169
- {
8170
- types: isExperimentEnabled("AllowMoreRolesForMainRootTrustee") ? rootTrustee.roles : [TrustMemberTypes.TRUSTEE],
8171
- name: rootTrustee.name,
8172
- status: taskStatus,
8173
- actions: isAllowMoreRolesForMainRootTrustee ? actions : void 0
8174
- }
8175
- );
8176
- };
8177
- const UndefinedBeneficiaryTaskItem = ({
8178
- undefinedBeneficiary,
8179
- onEdit,
8180
- onDelete
8181
- }) => {
8182
- const { t } = useTranslation("trust");
8183
- const actions = [
8184
- {
8185
- icon: "edit",
8186
- onSelect: onEdit,
8187
- label: t(($) => $["editTrustMember"], {
8188
- trustMember: t(($) => $["undefinedBeneficiary"])
8189
- })
8190
- },
8191
- {
8192
- icon: "bin",
8193
- onSelect: onDelete,
8194
- label: t(($) => $["removeTrustMember"], {
8195
- trustMember: t(($) => $["undefinedBeneficiary"])
8196
- })
8197
- }
8198
- ];
8199
- return /* @__PURE__ */ jsx(
8200
- EntityAssociation,
8201
- {
8202
- name: undefinedBeneficiary.description,
8203
- types: [TrustMemberTypes.UNDEFINED_BENEFICIARY],
8204
- status: TaskStatuses.FINISHED,
8205
- actions,
8206
- onNavigateToEntity: onEdit
8207
- },
8208
- undefinedBeneficiary.reference
8209
- );
8210
- };
8211
- const TrustMembersOverview = ({
8212
- navigateBackToTaskList,
8213
- navigateToEditTrustMember,
8214
- navigateToEditTrustMemberOwner
8215
- }) => {
8216
- const { t, i18n } = useTranslation("trust");
8217
- const { data: rootLe, isLoading } = useLegalEntity(ROOT_LE);
8218
- const { data: trustLe, refetch: refetchTrust } = useAssociatedLegalEntity(
8219
- rootLe,
8220
- LegalEntityTypes.TRUST
8221
- );
8222
- const trustMembers = useTrustMembers();
8223
- const { mutateAsync: updateLegalEntity } = useUpdateLegalEntity();
8224
- const { showToast } = useToastContext();
8225
- addResourceBundles(i18n, i18n.language, [
8226
- { ns: "trust", importFn: () => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../../language/bg-BG.json": () => import("./bg-BG-CepHap8j.js"), "../../language/cs-CZ.json": () => import("./cs-CZ-BP7niQM9.js"), "../../language/da-DK.json": () => import("./da-DK-Dc0QYG8m.js"), "../../language/de-DE.json": () => import("./de-DE-Dz2OsS1F.js"), "../../language/el-GR.json": () => import("./el-GR-BHG69mXl.js"), "../../language/en-US.json": () => import("./en-US-D-B35AoN.js"), "../../language/es-ES.json": () => import("./es-ES-BI_jdT67.js"), "../../language/et-EE.json": () => import("./et-EE-C_PZO2aI.js"), "../../language/fi-FI.json": () => import("./fi-FI-hwzizPnr.js"), "../../language/fr-FR.json": () => import("./fr-FR-CYZXbwc9.js"), "../../language/hr-HR.json": () => import("./hr-HR-bE6cvRCQ.js"), "../../language/hu-HU.json": () => import("./hu-HU-DG-NUDx4.js"), "../../language/it-IT.json": () => import("./it-IT-Erh1DIlj.js"), "../../language/ja-JP.json": () => import("./ja-JP-ThzG9vIo.js"), "../../language/lt-LT.json": () => import("./lt-LT-Nd1uRoIj.js"), "../../language/lv-LV.json": () => import("./lv-LV-DKhV24CI.js"), "../../language/nl-NL.json": () => import("./nl-NL-O9GCHMDA.js"), "../../language/no-NO.json": () => import("./no-NO-CA1aR6Wh.js"), "../../language/pl-PL.json": () => import("./pl-PL-BKDK0_G8.js"), "../../language/pt-BR.json": () => import("./pt-BR-NtLaWlnZ.js"), "../../language/pt-PT.json": () => import("./pt-PT-DSxxVA0f.js"), "../../language/ro-RO.json": () => import("./ro-RO-Bybq8JFn.js"), "../../language/sk-SK.json": () => import("./sk-SK-C6rMIxpz.js"), "../../language/sl-SI.json": () => import("./sl-SI-tPwbFvOI.js"), "../../language/sv-SE.json": () => import("./sv-SE-K1QT1cOt.js") }), `../../language/${i18n.language}.json`, 4) }
8227
- ]);
8228
- if (isLoading || !rootLe || !trustLe) {
8229
- return /* @__PURE__ */ jsx(Loader, { size: "large" });
8230
- }
8231
- const deleteTrustMember = async (trustMember) => {
8232
- try {
8233
- switch (trustMember.trustMemberType) {
8234
- case "regular":
8235
- case "exemptSettlor":
8236
- case "company":
8237
- await deleteAssociatedTrustMember({
8238
- associatedTrustMember: trustMember,
8239
- trust: trustLe,
8240
- asyncMutation: updateLegalEntity
8241
- });
8242
- break;
8243
- case "undefinedBeneficiary":
8244
- await deleteUndefinedBeneficiary({
8245
- undefinedBeneficiary: trustMember,
8246
- trust: trustLe,
8247
- asyncMutation: updateLegalEntity
8248
- });
8249
- break;
8250
- case "rootTrustee":
8251
- throw new Error("Cannot delete root trustee");
8252
- }
8253
- await refetchTrust();
8254
- showToast({ variant: "success", label: t(($) => $["successFullyRemovedTrustMember"]) });
8255
- } catch {
8256
- showToast({ variant: "error", label: t(($) => $["failedToRemoveTrustMember"]) });
8257
- }
8258
- };
8259
- return /* @__PURE__ */ jsx(
8260
- TrustMembersOverviewInner,
8261
- {
8262
- trustMembers,
8263
- deleteTrustMember,
8264
- navigateBackToTaskList,
8265
- navigateToEditTrustMember,
8266
- navigateToEditTrustMemberOwner
8267
- }
8268
- );
8269
- };
8270
- const TrustMembersOverviewInner = ({
8271
- trustMembers,
8272
- deleteTrustMember,
8273
- navigateBackToTaskList,
8274
- navigateToEditTrustMember,
8275
- navigateToEditTrustMemberOwner
8276
- }) => {
8277
- const { t } = useTranslation(["trust", "common"]);
8278
- const trustMemberRequirements = DEFAULT_TRUST_MEMBER_REQUIREMENTS;
8279
- const trustMembersWithOneOfGivenRoles = (roleTypes) => trustMembers.filter(
8280
- ({ roles }) => roleTypes.some((label) => roles.includes(label))
8281
- );
8282
- const { isExperimentEnabled } = useExperimentsContext();
8283
- const allowMoreRolesForMainRootTrustee = isExperimentEnabled("AllowMoreRolesForMainRootTrustee");
8284
- const getTaskStatus2 = useGetTaskStatus();
8285
- return /* @__PURE__ */ jsx(
8286
- DropinLayout,
8287
- {
8288
- content: /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-trust-members adyen-kyc-u-width-full", children: [
8289
- /* @__PURE__ */ jsx(
8290
- Header,
8291
- {
8292
- title: t(($) => $["trustMembers"]),
8293
- description: t(($) => $["trustMembersDescription"])
8294
- }
8295
- ),
8296
- /* @__PURE__ */ jsx("div", { className: "adyen-kyc-trust-members__container", children: trustMemberRequirements.map(({ roleTypes, min, label }) => /* @__PURE__ */ jsx(
8297
- EntityGuidanceStatus,
8298
- {
8299
- country: CountryCodes.Australia,
8300
- currentTask: TaskTypes.TRUST_MEMBER_OVERVIEW,
8301
- entityLabel: label,
8302
- status: iconStatus(trustMembersWithOneOfGivenRoles(roleTypes).length, min)
8303
- },
8304
- label
8305
- )) }),
8306
- /* @__PURE__ */ jsx(
8307
- ContextGuidance,
8308
- {
8309
- title: t(($) => $["whatIsTheDifferenceBetweenTheseRoles"]),
8310
- content: /* @__PURE__ */ jsx("ul", { className: "adyen-kyc-guidance-list", children: trustMemberRequirements.map(({ label }) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(Trans, { t, ns: "trust", i18nKey: ($) => $[`${label}GuideDescription`] }) }, label)) }),
8311
- titleId: "whatIsTheDifferenceBetweenTheseRoles",
8312
- contentId: "differenceBetweenTrustMemberRoles"
8313
- }
8314
- ),
8315
- /* @__PURE__ */ jsx(StackLayout, { gap: "small", children: trustMembers.map((trustMember) => {
8316
- switch (trustMember.trustMemberType) {
8317
- case "rootTrustee":
8318
- return /* @__PURE__ */ jsx(
8319
- RootTrusteeTaskItem,
8320
- {
8321
- rootTrustee: trustMember,
8322
- taskStatus: getTaskStatus2(
8323
- trustMember.legalEntityType == "organization" ? TaskTypes.TRUST_MEMBER_COMPANY : TaskTypes.TRUST_MEMBER_INDIVIDUAL,
8324
- String(trustMember.legalEntityId)
8325
- ),
8326
- onEdit: allowMoreRolesForMainRootTrustee ? () => navigateToEditTrustMember(trustMember) : () => {
8327
- }
8328
- },
8329
- trustMember.legalEntityId
8330
- );
8331
- case "regular":
8332
- return /* @__PURE__ */ jsx(
8333
- RegularTrustMemberTaskItem,
8334
- {
8335
- trustMember,
8336
- taskStatus: getTaskStatus2(
8337
- TaskTypes.TRUST_MEMBER_INDIVIDUAL,
8338
- String(trustMember.legalEntityId)
8339
- ),
8340
- onEdit: () => navigateToEditTrustMember(trustMember),
8341
- onDelete: () => deleteTrustMember(trustMember)
8342
- },
8343
- trustMember.legalEntityId
8344
- );
8345
- case "company":
8346
- return /* @__PURE__ */ jsx(
8347
- CompanyTrustMemberTaskItem,
8348
- {
8349
- companyTrustMember: trustMember,
8350
- taskStatus: getTaskStatus2(
8351
- TaskTypes.TRUST_MEMBER_COMPANY,
8352
- String(trustMember.legalEntityId)
8353
- ),
8354
- onEdit: () => navigateToEditTrustMember(trustMember),
8355
- onDelete: () => deleteTrustMember(trustMember),
8356
- onEditOwner: () => navigateToEditTrustMemberOwner(
8357
- trustMember.ownerId,
8358
- trustMember.legalEntityId
8359
- ),
8360
- onAddOwner: () => navigateToEditTrustMemberOwner("", trustMember.legalEntityId)
8361
- },
8362
- trustMember.legalEntityId
8363
- );
8364
- case "exemptSettlor":
8365
- return /* @__PURE__ */ jsx(
8366
- ExemptSettlorTaskItem,
8367
- {
8368
- exemptSettlor: trustMember,
8369
- taskStatus: getTaskStatus2(
8370
- TaskTypes.TRUST_MEMBER_INDIVIDUAL,
8371
- String(trustMember.legalEntityId)
8372
- ),
8373
- onEdit: () => navigateToEditTrustMember(trustMember),
8374
- onDelete: () => deleteTrustMember(trustMember)
8375
- },
8376
- trustMember.legalEntityId
8377
- );
8378
- case "undefinedBeneficiary":
8379
- return /* @__PURE__ */ jsx(
8380
- UndefinedBeneficiaryTaskItem,
8381
- {
8382
- undefinedBeneficiary: trustMember,
8383
- onEdit: () => navigateToEditTrustMember(trustMember),
8384
- onDelete: () => deleteTrustMember(trustMember)
8385
- },
8386
- trustMember.reference
8387
- );
8388
- }
8389
- }) }),
8390
- /* @__PURE__ */ jsx(
8391
- Button,
8392
- {
8393
- variant: "secondary",
8394
- icon: "plus",
8395
- onClick: (e) => {
8396
- e.stopPropagation();
8397
- navigateToEditTrustMember("new");
8398
- },
8399
- children: t(($) => $["addTrustMember"])
8400
- }
8401
- ),
8402
- /* @__PURE__ */ jsx(
8403
- ActionBar,
8404
- {
8405
- onHome: navigateBackToTaskList,
8406
- homeButtonLabel: t(($) => $["saveAndGoToOverview"], { ns: "common" })
8407
- }
8408
- )
8409
- ] })
8410
- }
8411
- );
8412
- };
8413
- const createDefaultMember = (selectedMember, selectedEntityType, selectedRoles) => {
8414
- const firstRole = selectedRoles?.[0];
8415
- return {
8416
- memberType: selectedMember?.memberType || firstRole,
8417
- roles: selectedRoles || selectedMember?.roles || [UnincorporatedPartnershipMemberTypes.SECONDARY_PARTNER],
8418
- legalEntityType: selectedEntityType,
8419
- legalEntityId: selectedMember?.legalEntityId || "",
8420
- name: selectedMember?.name || ""
8421
- };
8422
- };
8423
- const useUnincorporatedPartnershipNavigation = ({ navigateTo }) => {
8424
- const [activeMember, setActiveMember] = useState();
8425
- const { rootLegalEntityId } = useApiContext();
8426
- const onNavigateToMember = async ({
8427
- selectedMember,
8428
- selectedRoles,
8429
- selectedEntityType,
8430
- roleAndType
8431
- }) => {
8432
- const createdMember = createDefaultMember(selectedMember, selectedEntityType, selectedRoles);
8433
- setActiveMember(createdMember);
8434
- if (rootLegalEntityId.value === createdMember?.legalEntityId) {
8435
- navigateTo(
8436
- createdMember.legalEntityType === LegalEntityTypes.INDIVIDUAL ? TaskTypes.INDIVIDUAL : TaskTypes.BUSINESS_DETAILS
8437
- );
8438
- return;
8439
- }
8440
- if (roleAndType) {
8441
- navigateTo(TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_ROLE_AND_TYPE);
8442
- return;
8443
- }
8444
- navigateTo(
8445
- createdMember?.legalEntityType === LegalEntityTypes.ORGANIZATION ? TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_COMPANY : TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_INDIVIDUAL
8446
- );
8447
- };
8448
- return {
8449
- onNavigateToMember,
8450
- activeMember,
8451
- setActiveMember
8452
- };
8453
- };
8454
- const adyenKycRoleAndTypeContainer = "adyen-kyc-adyen-kyc-role-and-type-container";
8455
- const adyenKycRoleAndTypeActionBar = "adyen-kyc-adyen-kyc-role-and-type-action-bar";
8456
- const inlineRadioGroup = "adyen-kyc-inline-radio-group";
8457
- const styles$1 = {
8458
- adyenKycRoleAndTypeContainer,
8459
- adyenKycRoleAndTypeActionBar,
8460
- inlineRadioGroup
8461
- };
8462
- const UnincorporatedPartnershipRadioGroup = ({
8463
- memberType,
8464
- errorMessage,
8465
- handleChangeFor,
8466
- value
8467
- }) => {
8468
- const { i18n } = useI18nContext();
8469
- return /* @__PURE__ */ jsx(
8470
- Field,
8471
- {
8472
- el: "fieldset",
8473
- name: memberType,
8474
- label: i18n.get(
8475
- memberType === UnincorporatedPartnershipMemberTypes.OWNER ? "ownerDescriptionAsPartner" : "controllerDescriptionAsPartner"
8476
- ),
8477
- className: styles$1.inlineRadioGroup,
8478
- errorMessage,
8479
- children: (childProps) => /* @__PURE__ */ jsx(
8480
- RadioGroup,
8481
- {
8482
- ...childProps,
8483
- name: memberType,
8484
- items: [
8485
- { id: "yes", name: "yes" },
8486
- { id: "no", name: "no" }
8487
- ],
8488
- value,
8489
- onChange: (id) => handleChangeFor(memberType)(
8490
- id
8491
- ),
8492
- horizontal: true
8493
- }
8494
- )
8495
- }
8496
- );
8497
- };
8498
- const unincorporatedPartnershipRoleAndTypeValidationRules = {
8499
- entityType: {
8500
- modes: ["blur"],
8501
- validate: (entityType) => !isEmpty(entityType),
8502
- errorMessage: "fieldIsRequired"
8503
- },
8504
- uboThroughControl: {
8505
- modes: ["blur"],
8506
- validate: (value) => !!value,
8507
- errorMessage: "fieldIsRequired"
8508
- },
8509
- uboThroughOwnership: {
8510
- modes: ["blur"],
8511
- validate: (value) => !!value,
8512
- errorMessage: "fieldIsRequired"
8513
- }
8514
- };
8515
- const regularForms = {
8516
- roleAndEntityType: {
8517
- formId: "roleAndEntityType",
8518
- formName: "roleAndEntityType",
8519
- fields: ["role", "entityType"]
8520
- },
8521
- memberDetails: {
8522
- formId: "memberDetails",
8523
- formName: "memberDetails"
8524
- }
8525
- };
8526
- const leTypeCardDetails = {
8527
- [LegalEntityTypes.INDIVIDUAL]: {
8528
- id: "individual",
8529
- name: "individualMember",
8530
- description: "partnerNotABusiness"
8531
- },
8532
- [LegalEntityTypes.ORGANIZATION]: {
8533
- id: "organization",
8534
- name: "companyMember",
8535
- description: "partnerIsABusiness"
8536
- }
8537
- };
8538
- function getUboStatus(roles, roleType, existingMember) {
8539
- if (!existingMember) {
8540
- return void 0;
8541
- }
8542
- return roles?.includes(roleType) ? "yes" : "no";
8543
- }
8544
- function UnincorporatedPartnershipRoleAndTypeDropin({
8545
- onNavigateToMember,
8546
- activeMember
8547
- }) {
8548
- const { t } = useTranslation(["common"]);
8549
- const { t: unincorpPartnershipT } = useTranslation(["unincorpPartnership"]);
8550
- const [shouldValidate, setShouldValidate] = useState(false);
8551
- const activeForm = regularForms.roleAndEntityType;
8552
- const formUtils = createFormUtils(
8553
- {},
8554
- t
8555
- );
8556
- const formsWithValidity = Object.values(regularForms).map((form) => ({
8557
- formId: form.formId,
8558
- formName: form.formName,
8559
- isValid: false
8560
- }));
8561
- const existingMember = activeMember?.legalEntityId;
8562
- const defaultData = {
8563
- entityType: activeMember?.legalEntityType,
8564
- uboThroughControl: getUboStatus(
8565
- activeMember?.roles,
8566
- UnincorporatedPartnershipMemberTypes.CONTROLLING_PERSON,
8567
- existingMember
8568
- ),
8569
- uboThroughOwnership: getUboStatus(
8570
- activeMember?.roles,
8571
- UnincorporatedPartnershipMemberTypes.OWNER,
8572
- existingMember
8573
- )
8574
- };
8575
- const decideFields = (data2) => {
8576
- if (data2.entityType === LegalEntityTypes.INDIVIDUAL) {
8577
- return ["entityType", "uboThroughControl", "uboThroughOwnership"];
8578
- }
8579
- return ["entityType"];
8580
- };
8581
- const { data, schema, errors, fieldProblems, handleChangeFor } = useForm({
8582
- schema: decideFields,
8583
- rules: unincorporatedPartnershipRoleAndTypeValidationRules,
8584
- defaultData,
8585
- shouldValidate
8586
- });
8587
- const onNextClick = () => {
8588
- if (Object.values(data).some((fieldValue) => !fieldValue) && data.entityType !== LegalEntityTypes.ORGANIZATION) {
8589
- setShouldValidate(true);
8590
- return;
8591
- }
8592
- const selectedRoles = [
8593
- UnincorporatedPartnershipMemberTypes.SECONDARY_PARTNER
8594
- ];
8595
- if (data.entityType === LegalEntityTypes.INDIVIDUAL) {
8596
- if (data.uboThroughControl === "yes") {
8597
- selectedRoles.push(UnincorporatedPartnershipMemberTypes.CONTROLLING_PERSON);
8598
- }
8599
- if (data.uboThroughOwnership === "yes") {
8600
- selectedRoles.push(UnincorporatedPartnershipMemberTypes.OWNER);
8601
- }
8602
- }
8603
- onNavigateToMember({
8604
- selectedMember: activeMember,
8605
- selectedRoles,
8606
- selectedEntityType: data.entityType
8607
- });
8608
- };
8609
- return /* @__PURE__ */ jsxs("div", { className: styles$1.adyenKycRoleAndTypeContainer, children: [
8610
- /* @__PURE__ */ jsx("div", { className: "adyen-kyc-dropin__sidebar-wrapper", children: /* @__PURE__ */ jsx(
8611
- FormNavigation,
8612
- {
8613
- forms: formsWithValidity,
8614
- activeForm: formsWithValidity.find((form) => form.formId === activeForm.formId) || formsWithValidity?.[0],
8615
- taskName: "unincorporatedPartnershipMembers",
8616
- gotoForm: () => {
8617
- }
8618
- }
8619
- ) }),
8620
- /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-form-container", children: [
8621
- /* @__PURE__ */ jsx(
8622
- "div",
8623
- {
8624
- className: "adyen-kyc-form-wrapper",
8625
- children: /* @__PURE__ */ jsxs("form", { className: "adyen-kyc-trust__role-and-entity-type adyen-kyc-u-width-full", children: [
8626
- /* @__PURE__ */ jsx(
8627
- Header,
8628
- {
8629
- title: t(($) => $["roleAndEntityType"]),
8630
- description: unincorpPartnershipT(($) => $["partnerRoleDescription"])
8631
- }
8632
- ),
8633
- /* @__PURE__ */ jsx(
8634
- Field,
8635
- {
8636
- el: "fieldset",
8637
- name: "entityType",
8638
- label: formUtils.getLabel("entityType", "whatTypeOfEntityIsPartner"),
8639
- errorMessage: formUtils.getErrorMessage("entityType", errors, fieldProblems),
8640
- children: (childProps) => /* @__PURE__ */ jsx(
8641
- RadioGroupCard,
8642
- {
8643
- ...childProps,
8644
- name: "entityType",
8645
- options: trustMemberLegalEntityTypes,
8646
- selected: data?.entityType,
8647
- onSelect: (option) => handleChangeFor("entityType")(option),
8648
- optionId: (option) => leTypeCardDetails[option].id,
8649
- optionName: (option) => unincorpPartnershipT(($) => $[leTypeCardDetails[option].name]),
8650
- optionDescription: (option) => unincorpPartnershipT(($) => $[leTypeCardDetails[option].description]),
8651
- "aria-required": true
8652
- }
8653
- )
8654
- }
8655
- ),
8656
- schema.includes("uboThroughOwnership") && /* @__PURE__ */ jsx(
8657
- UnincorporatedPartnershipRadioGroup,
8658
- {
8659
- memberType: UnincorporatedPartnershipMemberTypes.OWNER,
8660
- handleChangeFor,
8661
- errorMessage: formUtils.getErrorMessage(
8662
- UnincorporatedPartnershipMemberTypes.OWNER,
8663
- errors,
8664
- fieldProblems
8665
- ),
8666
- value: data?.uboThroughOwnership
8667
- }
8668
- ),
8669
- schema.includes("uboThroughControl") && /* @__PURE__ */ jsx(
8670
- UnincorporatedPartnershipRadioGroup,
8671
- {
8672
- memberType: UnincorporatedPartnershipMemberTypes.CONTROLLING_PERSON,
8673
- handleChangeFor,
8674
- errorMessage: formUtils.getErrorMessage(
8675
- UnincorporatedPartnershipMemberTypes.CONTROLLING_PERSON,
8676
- errors,
8677
- fieldProblems
8678
- ),
8679
- value: data?.uboThroughControl
8680
- }
8681
- )
8682
- ] })
8683
- }
8684
- ),
8685
- /* @__PURE__ */ jsx("div", { className: styles$1.adyenKycRoleAndTypeActionBar, children: /* @__PURE__ */ jsx(Button, { onClick: onNextClick, children: t(($) => $["continue"]) }) })
8686
- ] })
8687
- ] });
8688
- }
8689
- function UnincorporatedPartnershipMemberRoleAndTypePage({
8690
- memberId,
8691
- onNavigateToMember,
8692
- navigateBack
8693
- }) {
8694
- const { i18n } = useTranslation();
8695
- const { data: memberLe } = useLegalEntity(memberId || skipToken);
8696
- const unincorporatedPartnershipMembers = useUnincorporatedPartnershipMembers();
8697
- addResourceBundles(i18n, i18n.language, [
8698
- {
8699
- ns: "unincorpPartnership",
8700
- importFn: () => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../language/bg-BG.json": () => import("./bg-BG-er0t4jTs.js"), "../language/cs-CZ.json": () => import("./cs-CZ-CQNBae2b.js"), "../language/da-DK.json": () => import("./da-DK-gnPgzwrG.js"), "../language/de-DE.json": () => import("./de-DE-D3lLuF8z.js"), "../language/el-GR.json": () => import("./el-GR-XRux2Wpv.js"), "../language/en-US.json": () => import("./en-US-B96dpVon.js"), "../language/es-ES.json": () => import("./es-ES-CXDJLKAI.js"), "../language/et-EE.json": () => import("./et-EE--cL_YqWe.js"), "../language/fi-FI.json": () => import("./fi-FI-fArobrt5.js"), "../language/fr-FR.json": () => import("./fr-FR-CiwkAb3E.js"), "../language/hr-HR.json": () => import("./hr-HR-DtfHQVe0.js"), "../language/hu-HU.json": () => import("./hu-HU-I4-KFzvz.js"), "../language/it-IT.json": () => import("./it-IT-DIbH-udG.js"), "../language/ja-JP.json": () => import("./ja-JP-bz7ekGnF.js"), "../language/lt-LT.json": () => import("./lt-LT-BLsIcCtE.js"), "../language/lv-LV.json": () => import("./lv-LV-C7hMdPcY.js"), "../language/nl-NL.json": () => import("./nl-NL-NlkjOSYi.js"), "../language/no-NO.json": () => import("./no-NO-Crlsj6HG.js"), "../language/pl-PL.json": () => import("./pl-PL-DYxD6VJ_.js"), "../language/pt-BR.json": () => import("./pt-BR-BfxgHKY4.js"), "../language/pt-PT.json": () => import("./pt-PT-TKg5FLat.js"), "../language/ro-RO.json": () => import("./ro-RO-3rOfS17N.js"), "../language/sk-SK.json": () => import("./sk-SK-CjrLvDMx.js"), "../language/sl-SI.json": () => import("./sl-SI-C-C-KJCX.js"), "../language/sv-SE.json": () => import("./sv-SE-BHfydid5.js") }), `../language/${i18n.language}.json`, 3)
8701
- }
8702
- ]);
8703
- if (memberId && !memberLe) {
8704
- return /* @__PURE__ */ jsx(Loader, {});
8705
- }
8706
- const unincorporatedPartnershipMember = memberId ? unincorporatedPartnershipMembers.find((tm) => tm.legalEntityId === memberId) : void 0;
8707
- return /* @__PURE__ */ jsx(
8708
- UnincorporatedPartnershipRoleAndTypeDropin,
8709
- {
8710
- activeMember: unincorporatedPartnershipMember,
8711
- onNavigateToMember,
8712
- navigateBack
8713
- }
8714
- );
8715
- }
8716
- const alertHeader = "adyen-kyc-alert-header";
8717
- const styles = {
8718
- alertHeader
8719
- };
8720
- const isPrimaryPartner = (member) => member?.roles?.includes("primaryPartner");
8721
- const isMemberMissingOwner = (member) => {
8722
- return !isPrimaryPartner(member) && member.legalEntityType === LegalEntityTypes.ORGANIZATION && !member.ownerId;
8723
- };
8724
- const UnincorporatedPartnershipMembersOverview = ({
8725
- navigateBackToTaskList,
8726
- navigateToEditMember,
8727
- navigateToEditMemberOwner
8728
- }) => {
8729
- const { t, i18n: i18next } = useTranslation(["unincorpPartnership", "common"]);
8730
- const { data: rootLe } = useLegalEntity(ROOT_LE);
8731
- const { data: partnershipLe, refetch: refetchPartnership } = useAssociatedLegalEntity(
8732
- rootLe,
8733
- LegalEntityTypes.UNINCORPORATED_PARTNERSHIP
8734
- );
8735
- const partnershipMembers = useUnincorporatedPartnershipMembers();
8736
- const { mutateAsync: updateLegalEntity } = useUpdateLegalEntity();
8737
- const { setUnincorporatedPartnershipMembers } = useGlobalStore();
8738
- addResourceBundles(i18next, i18next.language, [
8739
- {
8740
- ns: "unincorpPartnership",
8741
- importFn: () => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../../language/bg-BG.json": () => import("./bg-BG-er0t4jTs.js"), "../../language/cs-CZ.json": () => import("./cs-CZ-CQNBae2b.js"), "../../language/da-DK.json": () => import("./da-DK-gnPgzwrG.js"), "../../language/de-DE.json": () => import("./de-DE-D3lLuF8z.js"), "../../language/el-GR.json": () => import("./el-GR-XRux2Wpv.js"), "../../language/en-US.json": () => import("./en-US-B96dpVon.js"), "../../language/es-ES.json": () => import("./es-ES-CXDJLKAI.js"), "../../language/et-EE.json": () => import("./et-EE--cL_YqWe.js"), "../../language/fi-FI.json": () => import("./fi-FI-fArobrt5.js"), "../../language/fr-FR.json": () => import("./fr-FR-CiwkAb3E.js"), "../../language/hr-HR.json": () => import("./hr-HR-DtfHQVe0.js"), "../../language/hu-HU.json": () => import("./hu-HU-I4-KFzvz.js"), "../../language/it-IT.json": () => import("./it-IT-DIbH-udG.js"), "../../language/ja-JP.json": () => import("./ja-JP-bz7ekGnF.js"), "../../language/lt-LT.json": () => import("./lt-LT-BLsIcCtE.js"), "../../language/lv-LV.json": () => import("./lv-LV-C7hMdPcY.js"), "../../language/nl-NL.json": () => import("./nl-NL-NlkjOSYi.js"), "../../language/no-NO.json": () => import("./no-NO-Crlsj6HG.js"), "../../language/pl-PL.json": () => import("./pl-PL-DYxD6VJ_.js"), "../../language/pt-BR.json": () => import("./pt-BR-BfxgHKY4.js"), "../../language/pt-PT.json": () => import("./pt-PT-TKg5FLat.js"), "../../language/ro-RO.json": () => import("./ro-RO-3rOfS17N.js"), "../../language/sk-SK.json": () => import("./sk-SK-CjrLvDMx.js"), "../../language/sl-SI.json": () => import("./sl-SI-C-C-KJCX.js"), "../../language/sv-SE.json": () => import("./sv-SE-BHfydid5.js") }), `../../language/${i18next.language}.json`, 4)
8742
- }
8743
- ]);
8744
- useEffect(
8745
- () => setUnincorporatedPartnershipMembers(partnershipMembers),
8746
- [partnershipMembers, setUnincorporatedPartnershipMembers]
8747
- );
8748
- const getTaskStatus2 = useGetTaskStatus();
8749
- if (!rootLe || !partnershipLe) {
8750
- return /* @__PURE__ */ jsx(Loader, { size: "large" });
8751
- }
8752
- const deleteMember = async (member) => {
8753
- try {
8754
- await deleteUnincorporatedPartnershipMember({
8755
- associatedMember: member,
8756
- unincorporatedPartnership: partnershipLe,
8757
- updateLegalEntity
8758
- });
8759
- await refetchPartnership();
8760
- } catch (error) {
8761
- console.error(error);
8762
- }
8763
- };
8764
- const getActions = (member) => {
8765
- const baseActions = [
8766
- {
8767
- icon: "edit",
8768
- onSelect: () => navigateToEditMember(member),
8769
- label: t(($) => $["editTrustMember"], {
8770
- trustMember: member.name
8771
- })
8772
- }
8773
- ];
8774
- if (member.legalEntityType === LegalEntityTypes.ORGANIZATION && !isPrimaryPartner(member)) {
8775
- const missingOwner = isMemberMissingOwner(member);
8776
- baseActions.push({
8777
- icon: missingOwner ? "plus" : "edit",
8778
- onSelect: () => navigateToEditMemberOwner(member?.ownerId, member?.legalEntityId),
8779
- label: t(($) => $[missingOwner ? "addOwnerToTrustMember" : "editOwnerOfTrustMember"], {
8780
- trustMember: member.name
8781
- })
8782
- });
8783
- }
8784
- if (!isPrimaryPartner(member)) {
8785
- baseActions.push({
8786
- icon: "bin",
8787
- onSelect: () => deleteMember(member),
8788
- label: t(($) => $["removeTrustMember"], {
8789
- trustMember: member.name
8790
- })
8791
- });
8792
- }
8793
- return baseActions;
8794
- };
8795
- const infoContent = (member) => /* @__PURE__ */ jsx(
8796
- Alert,
8797
- {
8798
- className: styles.alertHeader,
8799
- title: /* @__PURE__ */ jsxs(Fragment, { children: [
8800
- t(($) => $["helpUsVerifyCompany"], { ns: "common" }),
8801
- " ",
8802
- /* @__PURE__ */ jsx(
8803
- Button,
8804
- {
8805
- onClick: (e) => {
8806
- e.preventDefault();
8807
- e.stopPropagation();
8808
- navigateToEditMemberOwner(member?.ownerId, member?.legalEntityId);
8809
- },
8810
- variant: "link",
8811
- children: t(($) => $["providePersonalDetailsOfOwner"])
8812
- }
8813
- )
8814
- ] })
8815
- }
8816
- );
8817
- return /* @__PURE__ */ jsx(
8818
- DropinLayout,
8819
- {
8820
- content: /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-u-width-full", children: [
8821
- /* @__PURE__ */ jsx(
8822
- Header,
8823
- {
8824
- title: t(($) => $["partnershipMembers"]),
8825
- description: t(($) => $["partnershipMembersDescription"])
8826
- }
8827
- ),
8828
- /* @__PURE__ */ jsxs(StackLayout, { children: [
8829
- partnershipMembers.map((member) => {
8830
- return /* @__PURE__ */ jsx(
8831
- EntityAssociation,
8832
- {
8833
- types: member.roles,
8834
- name: member.name,
8835
- status: getTaskStatus2(
8836
- member.legalEntityType === LegalEntityTypes.INDIVIDUAL ? TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_INDIVIDUAL : TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_COMPANY,
8837
- member.legalEntityId
8838
- ),
8839
- actions: getActions(member),
8840
- onNavigateToEntity: () => navigateToEditMember(member),
8841
- infoContent: isMemberMissingOwner(member) ? infoContent(member) : void 0
8842
- },
8843
- member.legalEntityId
8844
- );
8845
- }),
8846
- /* @__PURE__ */ jsx(
8847
- Button,
8848
- {
8849
- variant: "secondary",
8850
- icon: "plus",
8851
- onClick: () => navigateToEditMember(void 0),
8852
- fullWidth: true,
8853
- children: t(($) => $["addPartner"])
8854
- }
8855
- )
8856
- ] }),
8857
- /* @__PURE__ */ jsx(
8858
- ActionBar,
8859
- {
8860
- onHome: navigateBackToTaskList,
8861
- homeButtonLabel: t(($) => $["saveAndGoToOverview"], { ns: "common" })
8862
- }
8863
- )
8864
- ] })
8865
- }
8866
- );
8867
- };
8868
- const useShouldShowIntroduction = ({
8869
- legalEntity
8870
- }) => {
8871
- const canSeeIntroduction = useCanSeeIntroduction({ legalEntity });
8872
- const { hasSeenIntroduction } = useHasSeenIntroduction({ legalEntityId: legalEntity.id });
8873
- return canSeeIntroduction && !hasSeenIntroduction;
8874
- };
8875
- const useNavigation = ({ legalEntity, onNavigate }) => {
8876
- const { isSettingEnabled } = useSettingsContext();
8877
- const userEvents = useAnalyticsContext();
8878
- const showServiceAgreementsFirst = isSettingEnabled(SettingNames.ShowServiceAgreementsFirst);
8879
- const showBusinessFinancingFirst = isSettingEnabled(SettingNames.ShowBusinessFinancingFirst);
8880
- const canChangeEntityType = isSettingEnabled(SettingNames.AllowLegalEntityTypeChange);
8881
- const showIntroduction = useShouldShowIntroduction({ legalEntity });
8882
- const { hasSeenSingpassSelection } = useHasSeenSingpassSelection({
8883
- legalEntityId: legalEntity.id
8884
- });
8885
- const { accountHolder } = useAccountHolder();
8886
- const { canSeeEntitySelection } = useCanSeeEntitySelection(legalEntity.id);
8887
- const { isEligibleForSingpass } = useSingpassMyInfoLogin({
8888
- legalEntity,
8889
- accountHolder
8890
- });
8891
- const shouldShowSingpassSelection = isEligibleForSingpass && !hasSeenSingpassSelection;
8892
- const [taskHistory, setTaskHistory] = useState(["default"]);
8893
- const actualTasks = taskHistory.filter((task) => task !== "default");
8894
- const handleNavigation = useCallback(
8895
- (task) => {
8896
- userEvents.updateBaseTrackingPayload({ task });
8897
- onNavigate?.(task);
8898
- },
8899
- [onNavigate]
8900
- );
8901
- const navigateTo = useCallback(
8902
- (task, deletePreviousHistory = false) => {
8903
- const pushNewTask = () => setTaskHistory((taskHistory2) => deletePreviousHistory ? [task] : [...taskHistory2, task]);
8904
- if (task === "default") {
8905
- setTimeout(pushNewTask);
8906
- } else {
8907
- pushNewTask();
8908
- handleNavigation(task);
8909
- }
8910
- },
8911
- [handleNavigation]
6988
+ const navigateTo = useCallback(
6989
+ (task, deletePreviousHistory = false) => {
6990
+ const pushNewTask = () => setTaskHistory((taskHistory2) => deletePreviousHistory ? [task] : [...taskHistory2, task]);
6991
+ if (task === "default") {
6992
+ setTimeout(pushNewTask);
6993
+ } else {
6994
+ pushNewTask();
6995
+ handleNavigation(task);
6996
+ }
6997
+ },
6998
+ [handleNavigation]
8912
6999
  );
8913
7000
  const navigateBack = useCallback(
8914
7001
  (stepCount = 1) => {
@@ -9000,74 +7087,86 @@ const hasProgressedBeyondEntitySelection = (legalEntity) => {
9000
7087
  return hasOwnEntityAssocation || !!hasOrganizationType;
9001
7088
  };
9002
7089
  const Introduction = lazy(
9003
- async () => (await import("./Introduction-Bt9gH0G5.js")).Introduction
7090
+ async () => (await import("./Introduction-CCY9D_nE.js")).Introduction
9004
7091
  );
9005
7092
  const BusinessTypeSelectionPage = lazy(
9006
- async () => (await import("./BusinessTypeSelectionPage-BCe-2fB6.js")).BusinessTypeSelectionPage
7093
+ async () => (await import("./BusinessTypeSelectionPage-C19-xs5o.js")).BusinessTypeSelectionPage
9007
7094
  );
9008
7095
  const SingpassSelection = lazy(
9009
- async () => (await import("./SingpassSelection-L1vBg267.js")).SingpassSelection
7096
+ async () => (await import("./SingpassSelection-D35jRIBN.js")).SingpassSelection
9010
7097
  );
9011
7098
  const AccountSetupRejected = lazy(
9012
- async () => (await import("./AccountSetupRejected-BSJJfRWV.js")).AccountSetupRejected
7099
+ async () => (await import("./AccountSetupRejected-Bs86BOhb.js")).AccountSetupRejected
9013
7100
  );
9014
7101
  const DecisionMakers = lazy(
9015
- async () => (await import("./DecisionMakers-q__qndMm.js")).DecisionMakers
7102
+ async () => (await import("./DecisionMakers-CqAa7vi_.js")).DecisionMakers
9016
7103
  );
9017
7104
  const CustomerSupport = lazy(
9018
- async () => (await import("./CustomerSupport-DRLtpWUp.js")).CustomerSupport
7105
+ async () => (await import("./CustomerSupport-abRYvXsD.js")).CustomerSupport
9019
7106
  );
9020
- const Review = lazy(async () => (await import("./Review-CN-S9UCT.js")).Review);
7107
+ const Review = lazy(async () => (await import("./Review-BjDT0xaU.js")).Review);
9021
7108
  const SignPCIComponent = lazy(
9022
- async () => (await import("./SignPCIComponent-o50WXRbZ.js")).SignPCIComponent
7109
+ async () => (await import("./SignPCIComponent-C5e1Z52Y.js")).SignPCIComponent
9023
7110
  );
9024
7111
  const AcceptTermsOfService = lazy(
9025
- async () => (await import("./AcceptTermsOfServiceComponent-CfKATf4g.js")).AcceptTermsOfServiceComponent
7112
+ async () => (await import("./AcceptTermsOfServiceComponent-DbuTZ2lm.js")).AcceptTermsOfServiceComponent
9026
7113
  );
9027
7114
  const TaxReportingDropin = lazy(
9028
- async () => (await import("./TaxReportingDropin-9nQHRCS4.js")).TaxReportingDropin
7115
+ async () => (await import("./TaxReportingDropin-BTeXoX9D.js")).TaxReportingDropin
9029
7116
  );
9030
7117
  const PayoutDetailsPage = lazy(
9031
- async () => (await import("./PayoutDetailsDropin-kdkNvTHM.js").then((n) => n.a)).PayoutDetailsPage
7118
+ async () => (await import("./PayoutDetailsDropin-BzqbUVzH.js").then((n) => n.a)).PayoutDetailsPage
9032
7119
  );
9033
7120
  const RootBusinessDetailsPage = lazy(
9034
- async () => (await import("./RootBusinessDetailsPage-CyQjjBhL.js")).RootBusinessDetailsPage
7121
+ async () => (await import("./RootBusinessDetailsPage-nEpccfkc.js")).RootBusinessDetailsPage
9035
7122
  );
9036
7123
  const RootBusinessLinesPage = lazy(
9037
- async () => (await import("./RootBusinessLinesPage-BhiDzu7x.js")).RootBusinessLinesPage
7124
+ async () => (await import("./RootBusinessLinesPage-CzUBQFT1.js")).RootBusinessLinesPage
9038
7125
  );
9039
7126
  const SoleProprietorshipPage = lazy(
9040
- async () => (await import("./SoleProprietorshipPage-Cz21B5bv.js")).SoleProprietorshipPage
7127
+ async () => (await import("./SoleProprietorshipPage-nrrTlQSU.js")).SoleProprietorshipPage
9041
7128
  );
9042
7129
  const TrustMemberCompanyPage = lazy(
9043
- async () => (await import("./TrustMemberCompanyPage-BoxMy_a_.js")).TrustMemberCompanyPage
7130
+ async () => (await import("./TrustMemberCompanyPage-BzlxQ7Kd.js")).TrustMemberCompanyPage
7131
+ );
7132
+ const TrustMemberIndividualPage = lazy(
7133
+ async () => (await import("./TrustMemberIndividualPage-COgsefCp.js")).TrustMemberIndividualPage
7134
+ );
7135
+ const TrustMemberRoleAndTypePage = lazy(
7136
+ async () => (await import("./TrustMemberRoleAndTypePage-CKL-7ZaB.js")).TrustMemberRoleAndTypePage
7137
+ );
7138
+ const TrustMembersOverview = lazy(
7139
+ async () => (await import("./TrustMembersOverview-CVYKxSoD.js")).TrustMembersOverview
9044
7140
  );
9045
7141
  const UnincorporatedPartnershipMemberCompanyPage = lazy(
9046
- async () => (await import("./UnincorporatedPartnershipMemberCompanyPage-D9n1kJdM.js")).UnincorporatedPartnershipMemberCompanyPage
7142
+ async () => (await import("./UnincorporatedPartnershipMemberCompanyPage-D7A-CuwC.js")).UnincorporatedPartnershipMemberCompanyPage
7143
+ );
7144
+ const UnincorporatedPartnershipIndividualPage = lazy(
7145
+ async () => (await import("./UnincorporatedPartnershipIndividualPage-DuLh_-Q4.js")).UnincorporatedPartnershipIndividualPage
7146
+ );
7147
+ const UnincorporatedPartnershipMemberRoleAndTypePage = lazy(
7148
+ async () => (await import("./UnincorporatedPartnershipMemberRoleAndTypePage-BqYHGCCj.js")).UnincorporatedPartnershipMemberRoleAndTypePage
7149
+ );
7150
+ const UnincorporatedPartnershipMembersOverview = lazy(
7151
+ async () => (await import("./UnincorporatedPartnershipMembersOverview-B2dSYLfZ.js")).UnincorporatedPartnershipMembersOverview
9047
7152
  );
9048
7153
  const BusinessFinancingPage = lazy(
9049
- async () => (await import("./BusinessFinancingPage-zaSDXCpl.js")).BusinessFinancingPage
7154
+ async () => (await import("./BusinessFinancingPage-CieDJbKg.js")).BusinessFinancingPage
9050
7155
  );
9051
7156
  const TrustDetailsPage = lazy(
9052
- async () => (await import("./TrustDetailsPage-Bx_Pm5Sl.js")).TrustDetailsPage
7157
+ async () => (await import("./TrustDetailsPage-_UPW7Y6f.js")).TrustDetailsPage
9053
7158
  );
9054
7159
  const SourceOfFundsPage = lazy(
9055
- async () => (await import("./SourceOfFundsPage-OPzX7pfM.js")).SourceOfFundsPage
7160
+ async () => (await import("./SourceOfFundsPage-YkBw6Xpi.js")).SourceOfFundsPage
9056
7161
  );
9057
7162
  const RootIndividualDetailsPage = lazy(
9058
- async () => (await import("./RootIndividualDetailsPage-BsagBZYZ.js")).RootIndividualDetailsPage
7163
+ async () => (await import("./RootIndividualDetailsPage-DV1z-BQY.js")).RootIndividualDetailsPage
9059
7164
  );
9060
7165
  const LegalRepresentativeDetailsPage = lazy(
9061
- async () => (await import("./LegalRepresentativeDetailsPage-D4aN-DTv.js")).LegalRepresentativeDetailsPage
9062
- );
9063
- const TrustMemberIndividualPage = lazy(
9064
- async () => (await import("./TrustMemberIndividualPage-D6n7VhnN.js")).TrustMemberIndividualPage
9065
- );
9066
- const UnincorporatedPartnershipIndividualPage = lazy(
9067
- async () => (await import("./UnincorporatedPartnershipIndividualPage-ZQG0A9HG.js")).UnincorporatedPartnershipIndividualPage
7166
+ async () => (await import("./LegalRepresentativeDetailsPage-V5u54a-v.js")).LegalRepresentativeDetailsPage
9068
7167
  );
9069
7168
  const DecisionMakerDetailsPage = lazy(
9070
- async () => (await import("./DecisionMakerDetailsPage-D3CS4w0h.js")).DecisionMakerDetailsPage
7169
+ async () => (await import("./DecisionMakerDetailsPage-Dc6W9XHr.js")).DecisionMakerDetailsPage
9071
7170
  );
9072
7171
  function isIn(values, x) {
9073
7172
  return values.includes(x);
@@ -9141,9 +7240,7 @@ function DropinComposer({
9141
7240
  handleInitiateSingpassMyInfoLogin,
9142
7241
  handleSingpassMyInfoLoginSuccess,
9143
7242
  handleSingpassMyInfoLoginFailure,
9144
- handleSingpassMyInfoLoginReset,
9145
- trustedFields: singpassTrustedFields,
9146
- trustedEntityAssociations
7243
+ handleSingpassMyInfoLoginReset
9147
7244
  } = useSingpassMyInfoLogin({
9148
7245
  legalEntity: rootLegalEntity,
9149
7246
  accountHolder
@@ -9352,8 +7449,7 @@ function DropinComposer({
9352
7449
  DecisionMakers,
9353
7450
  {
9354
7451
  onNavigateToIndividual: (legalEntityId) => onNavigateToDecisionMakerIndividual(TaskTypes.DECISION_MAKER, legalEntityId),
9355
- navigateBackToTaskList: navigateBack,
9356
- trustedEntityAssociations
7452
+ navigateBackToTaskList: navigateBack
9357
7453
  }
9358
7454
  ) });
9359
7455
  case TaskTypes.INDIVIDUAL:
@@ -9367,9 +7463,7 @@ function DropinComposer({
9367
7463
  setTargetLegalEntityType(void 0);
9368
7464
  },
9369
7465
  handleHomeClick: () => navigateTo(TaskTypes.TASKS_OVERVIEW),
9370
- isTargetLegalEntityType: targetLegalEntityType === LegalEntityTypes.INDIVIDUAL,
9371
- trustedFields: singpassTrustedFields,
9372
- trustedFieldsProvider: isEligibleForSingpass ? TrustedFieldsProviders.SINGPASS : void 0
7466
+ isTargetLegalEntityType: targetLegalEntityType === LegalEntityTypes.INDIVIDUAL
9373
7467
  }
9374
7468
  ) });
9375
7469
  case TaskTypes.CUSTOMER_SUPPORT:
@@ -9403,10 +7497,7 @@ function DropinComposer({
9403
7497
  navigateBack();
9404
7498
  }
9405
7499
  },
9406
- handleHomeClick: navigateBack,
9407
- trustedFields: singpassTrustedFields,
9408
- trustedFieldsProvider: isEligibleForSingpass ? TrustedFieldsProviders.SINGPASS : void 0,
9409
- trustedRoles: trustedEntityAssociations.find((ea) => ea.reference === currentDecisionMaker?.id)?.types || []
7500
+ handleHomeClick: navigateBack
9410
7501
  }
9411
7502
  ) });
9412
7503
  case TaskTypes.TRUST_MEMBER_COMPANY_OWNER:
@@ -9672,9 +7763,9 @@ function OnboardingDropinComponent({
9672
7763
  addResourceBundles(i18n, i18n.language, [
9673
7764
  {
9674
7765
  ns: "common",
9675
- importFn: () => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../../../language/locales/bg-BG.json": () => import("./bg-BG-BJo9yIYj.js"), "../../../language/locales/cs-CZ.json": () => import("./cs-CZ-LGBI1w0Z.js"), "../../../language/locales/da-DK.json": () => import("./da-DK-914Viqia.js"), "../../../language/locales/de-DE.json": () => import("./de-DE-BXKZNAA1.js"), "../../../language/locales/el-GR.json": () => import("./el-GR-BnMw4HQ7.js"), "../../../language/locales/en-US.instructions.json": () => import("./en-US.instructions-Ddr7AO05.js"), "../../../language/locales/en-US.json": () => import("./StoreProvider-Cvqvt7fn.js").then((n) => n.bL), "../../../language/locales/es-ES.json": () => import("./es-ES-BWAlCq7R.js"), "../../../language/locales/et-EE.json": () => import("./et-EE-D9SV0taO.js"), "../../../language/locales/fi-FI.json": () => import("./fi-FI-C7GrKbXx.js"), "../../../language/locales/fr-FR.json": () => import("./fr-FR-o45TzYMp.js"), "../../../language/locales/hr-HR.json": () => import("./hr-HR-YG9hvMMj.js"), "../../../language/locales/hu-HU.json": () => import("./hu-HU-DIurnBC3.js"), "../../../language/locales/it-IT.json": () => import("./it-IT-Cztl5jRY.js"), "../../../language/locales/ja-JP.json": () => import("./ja-JP-DXkV1ta4.js"), "../../../language/locales/lt-LT.json": () => import("./lt-LT-BJTBEa5D.js"), "../../../language/locales/lv-LV.json": () => import("./lv-LV-GI-ZDM0K.js"), "../../../language/locales/nl-NL.json": () => import("./nl-NL-B6B4Z_tr.js"), "../../../language/locales/no-NO.json": () => import("./no-NO-Dn1LUbDp.js"), "../../../language/locales/pl-PL.json": () => import("./pl-PL-C1cP4Qpn.js"), "../../../language/locales/pt-BR.json": () => import("./pt-BR-DkzLiK7Y.js"), "../../../language/locales/pt-PT.json": () => import("./pt-PT-CoTUf3zo.js"), "../../../language/locales/ro-RO.json": () => import("./ro-RO-_HSYnLLu.js"), "../../../language/locales/sk-SK.json": () => import("./sk-SK-K03EHmJF.js"), "../../../language/locales/sl-SI.json": () => import("./sl-SI-gM40Ay3W.js"), "../../../language/locales/sv-SE.json": () => import("./sv-SE-Bnhsdw8c.js") }), `../../../language/locales/${i18n.language}.json`, 6)
7766
+ importFn: () => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../../../language/locales/bg-BG.json": () => import("./bg-BG-oWrzmmWF.js"), "../../../language/locales/cs-CZ.json": () => import("./cs-CZ-7urd96Kr.js"), "../../../language/locales/da-DK.json": () => import("./da-DK-D-CIc3Wp.js"), "../../../language/locales/de-DE.json": () => import("./de-DE-itf47wPh.js"), "../../../language/locales/el-GR.json": () => import("./el-GR-B09xC5IM.js"), "../../../language/locales/en-US.instructions.json": () => import("./en-US.instructions-Ddr7AO05.js"), "../../../language/locales/en-US.json": () => import("./StoreProvider-_QQynxk0.js").then((n) => n.bM), "../../../language/locales/es-ES.json": () => import("./es-ES-u77uTVet.js"), "../../../language/locales/et-EE.json": () => import("./et-EE-B4Qtq50U.js"), "../../../language/locales/fi-FI.json": () => import("./fi-FI-CoeShwM8.js"), "../../../language/locales/fr-FR.json": () => import("./fr-FR-C4ldMaqM.js"), "../../../language/locales/hr-HR.json": () => import("./hr-HR-BXG_ZAJm.js"), "../../../language/locales/hu-HU.json": () => import("./hu-HU-CMGzeEXp.js"), "../../../language/locales/it-IT.json": () => import("./it-IT-Cz3V93Xk.js"), "../../../language/locales/ja-JP.json": () => import("./ja-JP-B4mHwijO.js"), "../../../language/locales/lt-LT.json": () => import("./lt-LT-BuALzmEO.js"), "../../../language/locales/lv-LV.json": () => import("./lv-LV-nDWqwoYo.js"), "../../../language/locales/nl-NL.json": () => import("./nl-NL-CcUU-KmX.js"), "../../../language/locales/no-NO.json": () => import("./no-NO-BplX8KGW.js"), "../../../language/locales/pl-PL.json": () => import("./pl-PL-BmCZYCoD.js"), "../../../language/locales/pt-BR.json": () => import("./pt-BR-BkPUtBM9.js"), "../../../language/locales/pt-PT.json": () => import("./pt-PT-D_F3JxYu.js"), "../../../language/locales/ro-RO.json": () => import("./ro-RO-CJoz8E5K.js"), "../../../language/locales/sk-SK.json": () => import("./sk-SK-DgdScFiv.js"), "../../../language/locales/sl-SI.json": () => import("./sl-SI-CZt2QlBD.js"), "../../../language/locales/sv-SE.json": () => import("./sv-SE-BPD3xI_7.js") }), `../../../language/locales/${i18n.language}.json`, 6)
9676
7767
  },
9677
- { ns: "ui", importFn: () => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../../ui/language/bg-BG.json": () => import("./bg-BG-e6Rs6yz_.js"), "../../ui/language/cs-CZ.json": () => import("./cs-CZ-Q6NVYK-k.js"), "../../ui/language/da-DK.json": () => import("./da-DK-DSYEF7Q1.js"), "../../ui/language/de-DE.json": () => import("./de-DE-B9-ILIdw.js"), "../../ui/language/el-GR.json": () => import("./el-GR-DYjcbiSc.js"), "../../ui/language/en-US.json": () => import("./en-US-gsp7CD_E.js"), "../../ui/language/es-ES.json": () => import("./es-ES-C-tTuMLH.js"), "../../ui/language/et-EE.json": () => import("./et-EE-BzLAp08F.js"), "../../ui/language/fi-FI.json": () => import("./fi-FI-pyHLbmel.js"), "../../ui/language/fr-FR.json": () => import("./fr-FR-DG3tEkdN.js"), "../../ui/language/hr-HR.json": () => import("./hr-HR-BRFErTkv.js"), "../../ui/language/hu-HU.json": () => import("./hu-HU-CJA8w351.js"), "../../ui/language/it-IT.json": () => import("./it-IT-mhNjrQZn.js"), "../../ui/language/ja-JP.json": () => import("./ja-JP-CfrHlRGC.js"), "../../ui/language/lt-LT.json": () => import("./lt-LT-C0Acftnm.js"), "../../ui/language/lv-LV.json": () => import("./lv-LV-Bnq61WAt.js"), "../../ui/language/nl-NL.json": () => import("./nl-NL-donw5yvS.js"), "../../ui/language/no-NO.json": () => import("./no-NO-Dev7r3VA.js"), "../../ui/language/pl-PL.json": () => import("./pl-PL-DU_Xulyu.js"), "../../ui/language/pt-BR.json": () => import("./pt-BR-DeXo4rsi.js"), "../../ui/language/pt-PT.json": () => import("./pt-PT-DkJdR6SS.js"), "../../ui/language/ro-RO.json": () => import("./ro-RO-BDjHimxe.js"), "../../ui/language/sk-SK.json": () => import("./sk-SK-atqQJid1.js"), "../../ui/language/sl-SI.json": () => import("./sl-SI-CwKpXVCh.js"), "../../ui/language/sv-SE.json": () => import("./sv-SE-CGCP_6VE.js") }), `../../ui/language/${i18n.language}.json`, 5) }
7768
+ { ns: "ui", importFn: () => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../../ui/language/bg-BG.json": () => import("./bg-BG-D9J6LnkI.js"), "../../ui/language/cs-CZ.json": () => import("./cs-CZ-DY_pQqAT.js"), "../../ui/language/da-DK.json": () => import("./da-DK-jK7c9UL0.js"), "../../ui/language/de-DE.json": () => import("./de-DE-wmerDL2e.js"), "../../ui/language/el-GR.json": () => import("./el-GR-Btrk_npt.js"), "../../ui/language/en-US.json": () => import("./en-US-gsp7CD_E.js"), "../../ui/language/es-ES.json": () => import("./es-ES-Qnc0Q6JH.js"), "../../ui/language/et-EE.json": () => import("./et-EE-TzXANcP2.js"), "../../ui/language/fi-FI.json": () => import("./fi-FI-Dn2MC8uW.js"), "../../ui/language/fr-FR.json": () => import("./fr-FR-BWX14yb7.js"), "../../ui/language/hr-HR.json": () => import("./hr-HR-CZLSQruE.js"), "../../ui/language/hu-HU.json": () => import("./hu-HU-kp8Go5hZ.js"), "../../ui/language/it-IT.json": () => import("./it-IT-B0YGvVgW.js"), "../../ui/language/ja-JP.json": () => import("./ja-JP-Dz9IVH4p.js"), "../../ui/language/lt-LT.json": () => import("./lt-LT-l9rzkFg9.js"), "../../ui/language/lv-LV.json": () => import("./lv-LV-DYbb5pkt.js"), "../../ui/language/nl-NL.json": () => import("./nl-NL-BMUYBqlF.js"), "../../ui/language/no-NO.json": () => import("./no-NO-DKbWxgF-.js"), "../../ui/language/pl-PL.json": () => import("./pl-PL-B0zGy_b4.js"), "../../ui/language/pt-BR.json": () => import("./pt-BR--kaJvtE6.js"), "../../ui/language/pt-PT.json": () => import("./pt-PT-BZ5ZZm6G.js"), "../../ui/language/ro-RO.json": () => import("./ro-RO-CdSsgoUG.js"), "../../ui/language/sk-SK.json": () => import("./sk-SK-BiBWPJUf.js"), "../../ui/language/sl-SI.json": () => import("./sl-SI-DtdGMD6i.js"), "../../ui/language/sv-SE.json": () => import("./sv-SE-kR514dO1.js") }), `../../ui/language/${i18n.language}.json`, 5) }
9678
7769
  ]);
9679
7770
  const { data: legalEntityData } = useLegalEntity(ROOT_LE);
9680
7771
  return !legalEntityData ? /* @__PURE__ */ jsx(Loader, {}) : /* @__PURE__ */ jsx(
@@ -9686,106 +7777,106 @@ function OnboardingDropinComponent({
9686
7777
  );
9687
7778
  }
9688
7779
  export {
9689
- BusinessRegistrationNumberField as $,
7780
+ EInvoicingCodeField as $,
9690
7781
  AdditionalInformation as A,
9691
7782
  BasicInformation as B,
9692
7783
  CompanyStructure as C,
9693
- DropinLayout as D,
7784
+ useDebouncedState as D,
9694
7785
  EntityTypeRadioGroupCard as E,
9695
7786
  FinancialInformation as F,
9696
- isNormalizedStringMatch as G,
9697
- setVerifiedBusiness as H,
9698
- useDebouncedState as I,
9699
- legalFormFieldMetadata as J,
9700
- stockTickerSymbolFieldMetadata as K,
9701
- stockISINFieldMetadata as L,
9702
- stockExchangeMICFieldMetadata as M,
9703
- dateOfIncorporationFieldMetadata as N,
7787
+ legalFormFieldMetadata as G,
7788
+ stockTickerSymbolFieldMetadata as H,
7789
+ stockISINFieldMetadata as I,
7790
+ stockExchangeMICFieldMetadata as J,
7791
+ dateOfIncorporationFieldMetadata as K,
7792
+ industryCodeFieldMetadata as L,
7793
+ eInvoicingCodeFieldMetadata as M,
7794
+ vatAbsenceReasonMetadata as N,
9704
7795
  OnboardingDropinComponent as O,
9705
- industryCodeFieldMetadata as P,
9706
- eInvoicingCodeFieldMetadata as Q,
9707
- vatAbsenceReasonMetadata as R,
9708
- defaultFieldMetadata$2 as S,
9709
- defaultFieldConfig$2 as T,
9710
- doingBusinessAsFieldMetadata as U,
9711
- doingBusinessAsAbsentFieldMetadata as V,
9712
- VerifiedBusinessCard as W,
9713
- LEGAL_FORM_FIELDS as X,
9714
- DBA_NAME_FIELD as Y,
9715
- DBANameField as Z,
9716
- BUSINESS_REGISTRATION_NUMBER_FIELD as _,
7796
+ defaultFieldMetadata$2 as P,
7797
+ defaultFieldConfig$2 as Q,
7798
+ doingBusinessAsFieldMetadata as R,
7799
+ doingBusinessAsAbsentFieldMetadata as S,
7800
+ LEGAL_FORM_FIELDS as T,
7801
+ DBA_NAME_FIELD as U,
7802
+ VerifiedBusinessCard as V,
7803
+ DBANameField as W,
7804
+ BUSINESS_REGISTRATION_NUMBER_FIELD as X,
7805
+ BusinessRegistrationNumberField as Y,
7806
+ VAT_NUMBER_FIELD as Z,
7807
+ VatNumberField as _,
9717
7808
  usePciStatus as a,
9718
- VAT_NUMBER_FIELD as a0,
9719
- VatNumberField as a1,
9720
- EInvoicingCodeField as a2,
9721
- EINVOICING_CODE_FIELD as a3,
9722
- INDUSTRY_CODE_FIELD as a4,
9723
- IndustryCodeField as a5,
9724
- DATE_OF_INCORPORATION_FIELD as a6,
9725
- DateOfIncorporationField as a7,
9726
- STOCK_EXCHANGE_MIC_FIELD as a8,
9727
- StockExchangeMICField as a9,
9728
- tinMatched as aA,
9729
- businessMismatchModalOpen as aB,
9730
- applyVerifiedBusinessData as aC,
9731
- KOMPANY_SEARCH_FAILURE as aD,
9732
- useBusinessLines as aE,
9733
- Divider as aF,
9734
- selectedBusinessLine as aG,
9735
- useIndustryCodes as aH,
9736
- useTrustMembers as aI,
7809
+ EINVOICING_CODE_FIELD as a0,
7810
+ INDUSTRY_CODE_FIELD as a1,
7811
+ IndustryCodeField as a2,
7812
+ DATE_OF_INCORPORATION_FIELD as a3,
7813
+ DateOfIncorporationField as a4,
7814
+ STOCK_EXCHANGE_MIC_FIELD as a5,
7815
+ StockExchangeMICField as a6,
7816
+ STOCK_ISIN_FIELD as a7,
7817
+ StockISINField as a8,
7818
+ STOCK_TICKER_SYMBOL_FIELD as a9,
7819
+ applyVerifiedBusinessData as aA,
7820
+ KOMPANY_SEARCH_FAILURE as aB,
7821
+ shouldSignNewPci as aC,
7822
+ Divider as aD,
7823
+ selectedBusinessLine as aE,
7824
+ usePciQuestionnaireList as aF,
7825
+ useTrustMembers as aG,
7826
+ isNewEntity as aH,
7827
+ LegalCompanyNameField as aI,
9737
7828
  exemptFromRegistrationNumberDefaultFieldConfig as aJ,
9738
7829
  registrationAddressFields as aK,
9739
7830
  RegistrationAddress as aL,
9740
- STOCK_ISIN_FIELD as aa,
9741
- StockISINField as ab,
9742
- STOCK_TICKER_SYMBOL_FIELD as ac,
9743
- StockTickerSymbolField as ad,
9744
- ADDITIONAL_INFORMATION_FORM_ID as ae,
9745
- localizedLegalCompanyNameFieldConfig as af,
9746
- defaultFieldMetadata as ag,
9747
- defaultFieldConfig as ah,
9748
- defaultFieldMetadataV4 as ai,
9749
- defaultFieldMetadata$1 as aj,
9750
- defaultFieldConfigV4 as ak,
9751
- defaultFieldConfig$1 as al,
9752
- useLegalCompanyNameField as am,
9753
- COUNTRY_OF_GOVERNING_LAW_FIELD as an,
9754
- CountryOfGoverningLawField as ao,
9755
- LEGAL_COMPANY_NAME_FIELD as ap,
9756
- isBankAccountRequestedForOrganization as aq,
9757
- companyTypeOptions as ar,
9758
- useCompanyTypeExamples as as,
9759
- BusinessSelectionMultiform as at,
9760
- isVerifiedSingleCompanySearchResult as au,
9761
- exemptFromRegistrationNumberDefaultFieldMetadata as av,
9762
- CountryOfGoverningLawFieldValidation as aw,
9763
- CountryFieldValidation as ax,
9764
- financialInfoValidationWithEmployeesRules as ay,
9765
- CompanyStructureValidation as az,
7831
+ StockTickerSymbolField as aa,
7832
+ ADDITIONAL_INFORMATION_FORM_ID as ab,
7833
+ localizedLegalCompanyNameFieldConfig as ac,
7834
+ defaultFieldMetadata as ad,
7835
+ defaultFieldConfig as ae,
7836
+ defaultFieldMetadataV4 as af,
7837
+ defaultFieldMetadata$1 as ag,
7838
+ defaultFieldConfigV4 as ah,
7839
+ defaultFieldConfig$1 as ai,
7840
+ useLegalCompanyNameField as aj,
7841
+ COUNTRY_OF_GOVERNING_LAW_FIELD as ak,
7842
+ CountryOfGoverningLawField as al,
7843
+ LEGAL_COMPANY_NAME_FIELD as am,
7844
+ isBankAccountRequestedForOrganization as an,
7845
+ companyTypeOptions as ao,
7846
+ useCompanyTypeExamples as ap,
7847
+ BusinessSelectionMultiform as aq,
7848
+ isVerifiedSingleCompanySearchResult as ar,
7849
+ exemptFromRegistrationNumberDefaultFieldMetadata as as,
7850
+ CountryOfGoverningLawFieldValidation as at,
7851
+ CountryFieldValidation as au,
7852
+ useBusinessLines as av,
7853
+ financialInfoValidationWithEmployeesRules as aw,
7854
+ CompanyStructureValidation as ax,
7855
+ tinMatched as ay,
7856
+ businessMismatchModalOpen as az,
9766
7857
  useCanSeeIntroduction as b,
9767
7858
  useLegalEntityType as c,
9768
7859
  allowIndividualWithoutSoleProp as d,
9769
7860
  useDataMissingRemediations as e,
9770
- EntityGuidanceStatus as f,
9771
- EntityAssociation as g,
9772
- getForms as h,
9773
- iconStatus as i,
9774
- filterProblemsByTaskForms as j,
9775
- getDefaultRegistrationNumberType as k,
9776
- getDefaultVatNumberType as l,
9777
- FIELDS_NEEDED_FOR_COMPANY_SEARCH as m,
7861
+ filterProblemsByTaskForms as f,
7862
+ getForms as g,
7863
+ getDefaultRegistrationNumberType as h,
7864
+ getDefaultVatNumberType as i,
7865
+ FIELDS_NEEDED_FOR_COMPANY_SEARCH as j,
7866
+ companyTypeMetadata as k,
7867
+ documentFormsIds as l,
7868
+ inferCompanyRegistrationNumberType as m,
9778
7869
  normalizedTaskStatusStore as n,
9779
- companyTypeMetadata as o,
9780
- documentFormsIds as p,
9781
- inferCompanyRegistrationNumberType as q,
7870
+ registrationNumberDefaultFieldConfig as o,
7871
+ useCompanySearch as p,
7872
+ useCompanySelection as q,
9782
7873
  registrationNumberDefaultFieldMetadata as r,
9783
- registrationNumberDefaultFieldConfig as s,
9784
- setIsBankAccountRequestedForOrganization as t,
9785
- useSalesChannelsSettings as u,
7874
+ setIsBankAccountRequestedForOrganization as s,
7875
+ useVerifyTin as t,
7876
+ useSalesChannels as u,
9786
7877
  verifiedBusiness as v,
9787
- useCompanySearch as w,
9788
- useCompanySelection as x,
9789
- useVerifyTin as y,
9790
- useClearCompanyData as z
7878
+ useClearCompanyData as w,
7879
+ isNormalizedStringMatch as x,
7880
+ setVerifiedBusiness as y,
7881
+ useIndustryCodes as z
9791
7882
  };