@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,184 +2,30 @@
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] = "e57b0101-1171-4366-bb92-dcb048518aad", e._sentryDebugIdIdentifier = "sentry-dbid-e57b0101-1171-4366-bb92-dcb048518aad");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "4041b4ec-b93f-413c-9807-8baf6f0ae40f", e._sentryDebugIdIdentifier = "sentry-dbid-4041b4ec-b93f-413c-9807-8baf6f0ae40f");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
- import { useReducer, useMemo, useRef, useState, useEffect, useContext, useCallback } from "preact/hooks";
11
- import { b as useApiContext, j as useQuery, k as httpPost, g as getLegalEntityCountry, V as CountryCodes, C as isPartOfTrustFromLegalEntity, z as LegalEntityTypes, G as hasSolePropInLegalEntity, aq as individualComponentsKeyMapping, ar as businessDetailsComponentsKeyMapping, X as isEmpty$1, u as useTranslation, a1 as useAnalyticsContext, B as Button, y as Typography, a4 as Icon, ao as objectsDeepEqual, c as useLegalEntity, R as ROOT_LE, as as Scenarios, at as DecisionMakerTypes, O as TaskTypes, ak as Trans, P as createLogger, W as useI18nContext, o as httpGet, au as SettingsContext, $ as useExperimentsContext, av as keysOf, K as useAccountHolder, a0 as entriesOf, m as useSettingsContext, aw as getLegalRepresentativeWarningMessage, a5 as noop, ax as getAvailableDecisionMakerRoleTypes, ay as allowedCountriesForNominee, az as isLowRiskCountry, L as Loader, aA as getAgeRangeForLegalRepresentative, aB as isLegalRepresentativeNeeded, a2 as useMutation, aC as listToRecord, aD as pick, Y as IconButton, x as translateStringOrObject } from "./StoreProvider-Cvqvt7fn.js";
12
- import { j as TrustedFieldsProviders, m as makeMask, c as nonInputs, n as numericInputs, s as spacer, d as alphaInputs, l as customInputs, b as alphanumericInputs, v as validatePatternOnBlur, u as uppercase, o as defaultFileValidationOptions, p as fileValidationRules, S as StateContextSetter, D as DropzoneFile, q as bytesToSize, t as DocumentGuidance, T as TextArea, w as getLocalizedIdDocumentTypeOptions, R as RadioGroupCard, C as ContextGuidance, I as Image, a as validateNotEmptyOnBlur, x as createFormRules, M as MaskedInput, r as resolveFieldMetadata, y as InputEmail } from "./fieldConfigurations-BCj1wotL.js";
13
10
  import { jsxs, jsx, Fragment } from "preact/jsx-runtime";
14
- import { l as useProviderStatus, R as RadioGroup, n as isDateOlderThanAYear, C as COUNTRIES_WITH_STATES_DATASET, I as InputDate, f as formatDateObj, i as useFormContext, p as addressFields, A as Address, g as getAddressSchemaForCountry, e as getAddressSchemaLabelsByCountry, q as RadioWithLabel } from "./Address-Bl_bd5Lp.js";
15
- import { c as createFormUtils, H as Header, E as ErrorPanel, a as Link, m as mergeFieldMetadataIntoProps, r as roleMetadata, d as getFieldProps, j as isTruthyValidator, C as CountryField, g as getFormProps, S as StackLayout, u as useFormRouterContext } from "./CountryField-mxgVAmFp.js";
11
+ import { useRef, useState, useMemo, useEffect, useContext, useCallback } from "preact/hooks";
12
+ import { j as useProviderStatus, R as RadioGroup, k as isDateOlderThanAYear, C as COUNTRIES_WITH_STATES_DATASET, I as InputDate, f as formatDateObj, i as useFormContext, l as addressFields, A as Address, g as getAddressSchemaForCountry, e as getAddressSchemaLabelsByCountry, n as RadioWithLabel } from "./Address-CaKnB-Qo.js";
13
+ import { c as createFormUtils, H as Header, E as ErrorPanel, a as Link, m as mergeFieldMetadataIntoProps, r as roleMetadata, d as getFieldProps, i as isTruthyValidator, C as CountryField, g as getFormProps, S as StackLayout, u as useFormRouterContext } from "./CountryField-B79la7c-.js";
14
+ import { m as makeMask, c as nonInputs, n as numericInputs, s as spacer, d as alphaInputs, k as customInputs, b as alphanumericInputs, v as validatePatternOnBlur, u as uppercase, l as defaultFileValidationOptions, o as fileValidationRules, S as StateContextSetter, D as DropzoneFile, p as bytesToSize, q as DocumentGuidance, t as TextArea, w as getLocalizedIdDocumentTypeOptions, R as RadioGroupCard, C as ContextGuidance, I as Image, a as validateNotEmptyOnBlur, x as createFormRules, M as MaskedInput, r as resolveFieldMetadata, y as InputEmail, T as TrustedFieldsProviders } from "./fieldConfigurations-Bor1NtgA.js";
15
+ import { C as CountryCodes, X as isEmpty$1, u as useTranslation, a0 as useAnalyticsContext, B as Button, H as Typography, a3 as Icon, aj as objectsDeepEqual, c as useLegalEntity, R as ROOT_LE, al as Scenarios, am as DecisionMakerTypes, P as TaskTypes, an as Trans, b as useApiContext, j as useQuery, k as httpPost, U as createLogger, W as useI18nContext, m as httpGet, ao as SettingsContext, p as useExperimentsContext, t as LegalEntityTypes, ap as keysOf, M as useAccountHolder, $ as entriesOf, o as useSettingsContext, aq as getLegalRepresentativeWarningMessage, a4 as noop, g as getLegalEntityCountry, ar as getAvailableDecisionMakerRoleTypes, as as allowedCountriesForNominee, at as isLowRiskCountry, L as Loader, au as getAgeRangeForLegalRepresentative, av as isLegalRepresentativeNeeded, a1 as useMutation, aw as listToRecord, ax as pick, Y as IconButton, G as translateStringOrObject } from "./StoreProvider-_QQynxk0.js";
16
16
  import { memo, lazy, forwardRef, Suspense } from "preact/compat";
17
- import { a as useForm, F as Field, S as Select, L as LoaderWrapper, b as SelectListItem, c as useId } from "./trackNavigation-DYYVv6_y.js";
18
- import { I as InputText, S as SettingNames } from "./InputText-BIySwrmu.js";
19
- import { a as Alert } from "./Alert-B9R4X_XM.js";
17
+ import { u as useForm, F as Field, S as Select, L as LoaderWrapper, a as SelectListItem } from "./useForm-SCWu19rh.js";
18
+ import { I as InputText, S as SettingNames } from "./InputText-DJn5nzG0.js";
19
+ import { a as Alert } from "./Alert-CzqTssej.js";
20
20
  import { signal, computed } from "@preact/signals";
21
- import { u as useDataset, d as datasetIdentifier, C as Confirm, a as datasetUtilities } from "./useDataset-CKGFlO8U.js";
21
+ import { u as useDataset, d as datasetIdentifier, C as Confirm, a as datasetUtilities } from "./useDataset-BHoDL5D6.js";
22
22
  import cx from "classnames";
23
- import { K as KEYBOARD_KEYS, M as Modal } from "./Modal-GSjDUwX-.js";
24
- import { C as Checkbox } from "./debouncedInputEvent-BDf19z5H.js";
23
+ import { b as useId } from "./useToastContext-BGkxz2AI.js";
24
+ import { K as KEYBOARD_KEYS, M as Modal } from "./Modal-C89D3p56.js";
25
+ import { C as Checkbox } from "./debouncedInputEvent-BZv9kA9Q.js";
25
26
  import { Onfido } from "onfido-sdk-ui";
26
- import { S as Spacer } from "./getName-B1o2b2LX.js";
27
- import { l as localizeDateString } from "./localizeDateString-4aQPK6sB.js";
28
- async function convertToSingpassLinkResponse(openIdInitiateResponse) {
29
- const response = await Promise.resolve(openIdInitiateResponse);
30
- const item = { authUrl: response.authUrl, success: true };
31
- return { item };
32
- }
33
- const useOpenIdAuthorizationLink = (options2) => {
34
- const { rootLegalEntityId, baseUrl } = useApiContext();
35
- return useQuery({
36
- queryKey: ["openIdAuthorizationLink"],
37
- queryFn: () => getOpenIdAuthorizationLink(rootLegalEntityId.value, baseUrl.value),
38
- ...options2
39
- });
40
- };
41
- const getOpenIdAuthorizationLink = async (legalEntityId, baseUrl) => {
42
- return convertToSingpassLinkResponse(
43
- httpPost({
44
- baseUrl,
45
- path: `/legalEntities/${legalEntityId}/openid/initiate`
46
- })
47
- );
48
- };
49
- const SingpassMyInfoLoginActionTypes = {
50
- LOADING: "LOADING",
51
- SUCCESS: "SUCCESS",
52
- FAILURE: "FAILURE",
53
- RESET: "RESET"
54
- };
55
- const parseTrustedFieldsIntoReadOnlyFields = (trustedFields, mapping) => {
56
- const formFieldsMapped = [];
57
- trustedFields.forEach((field) => {
58
- for (const [key, value] of Object.entries(mapping)) {
59
- if (value === field) {
60
- formFieldsMapped.push(key);
61
- }
62
- }
63
- });
64
- const readOnlyFields = {};
65
- formFieldsMapped.forEach((field) => {
66
- const tokenizedField = field.split(".");
67
- const formField = tokenizedField.pop();
68
- const formId = tokenizedField.pop();
69
- if (formField && formId) {
70
- if (formId in readOnlyFields) {
71
- readOnlyFields[formId].push(formField);
72
- } else {
73
- readOnlyFields[formId] = [formField];
74
- }
75
- }
76
- });
77
- return readOnlyFields;
78
- };
79
- const defaultSingpassState = { isLoading: false, isSuccess: false };
80
- const singpassReducer = (state, action) => {
81
- switch (action.type) {
82
- case SingpassMyInfoLoginActionTypes.LOADING:
83
- return { ...state, isLoading: true };
84
- case SingpassMyInfoLoginActionTypes.SUCCESS:
85
- return { isLoading: false, isSuccess: true };
86
- case SingpassMyInfoLoginActionTypes.FAILURE:
87
- return { isLoading: false, isSuccess: false, errorMessage: action.errorMessage };
88
- case SingpassMyInfoLoginActionTypes.RESET:
89
- return defaultSingpassState;
90
- default:
91
- return state;
92
- }
93
- };
94
- const getApiMapping = (legalEntity) => {
95
- if (!legalEntity) return;
96
- const { type } = legalEntity;
97
- if (type === LegalEntityTypes.INDIVIDUAL) {
98
- return individualComponentsKeyMapping;
99
- }
100
- if (type === LegalEntityTypes.ORGANIZATION) {
101
- return businessDetailsComponentsKeyMapping;
102
- }
103
- };
104
- const getTrustedEntityAssociations = (legalEntityTrustedFields) => {
105
- const rawTrustedEntityAssociations = legalEntityTrustedFields.filter((f) => f.startsWith("entityAssociations")) ?? [];
106
- const leIdMap = {};
107
- rawTrustedEntityAssociations.forEach((rtea) => {
108
- const [_, role, leId] = rtea.split(".");
109
- const trustedRole = role;
110
- if (!leIdMap[leId]) {
111
- leIdMap[leId] = { roles: [trustedRole] };
112
- } else {
113
- leIdMap[leId] = { roles: [...leIdMap[leId].roles, trustedRole] };
114
- }
115
- });
116
- return Object.keys(leIdMap).map((reference) => ({ reference, types: leIdMap[reference].roles }));
117
- };
118
- const useSingpassMyInfoLogin = ({
119
- legalEntity,
120
- accountHolder
121
- }) => {
122
- const [state, dispatch] = useReducer(
123
- singpassReducer,
124
- defaultSingpassState
125
- );
126
- const apiMapping = getApiMapping(legalEntity);
127
- const legalEntityTrustedFields = legalEntity?.trustedFields;
128
- const { refetch: fetchOpenIdAuthorizationLink } = useOpenIdAuthorizationLink({ enabled: false });
129
- const isEligibleForSingpass = useMemo(() => {
130
- if (!legalEntity) {
131
- return false;
132
- }
133
- if (getLegalEntityCountry(legalEntity) !== CountryCodes.Singapore) {
134
- return false;
135
- }
136
- if (accountHolder) {
137
- return accountHolder === "theCompanyIWorkFor" || accountHolder === "myName";
138
- }
139
- const legalEntityType = legalEntity.type;
140
- const isPartOfTrust = isPartOfTrustFromLegalEntity(legalEntity);
141
- const isVanillaOrganization = legalEntityType === LegalEntityTypes.ORGANIZATION && !isPartOfTrust;
142
- const hasSoleProprietor = hasSolePropInLegalEntity(legalEntity);
143
- const isVanillaIndividual = legalEntityType === LegalEntityTypes.INDIVIDUAL && !hasSoleProprietor;
144
- return isVanillaOrganization || isVanillaIndividual;
145
- }, [legalEntity, accountHolder]);
146
- const singpassTrustedFields = useMemo(() => {
147
- const allTrustedFields = isEligibleForSingpass && legalEntityTrustedFields ? legalEntityTrustedFields : [];
148
- return allTrustedFields.find((tf) => tf.provider === TrustedFieldsProviders.SINGPASS)?.fields || [];
149
- }, [isEligibleForSingpass, legalEntity]);
150
- const trustedFields = useMemo(
151
- () => apiMapping ? parseTrustedFieldsIntoReadOnlyFields(singpassTrustedFields, apiMapping) : {},
152
- [singpassTrustedFields, apiMapping]
153
- );
154
- const trustedEntityAssociations = useMemo(
155
- () => getTrustedEntityAssociations(singpassTrustedFields),
156
- [singpassTrustedFields]
157
- );
158
- const handleInitiateSingpassMyInfoLogin = async () => {
159
- dispatch({ ...state, type: SingpassMyInfoLoginActionTypes.LOADING });
160
- const { data } = await fetchOpenIdAuthorizationLink();
161
- return data?.item.authUrl;
162
- };
163
- const handleSingpassMyInfoLoginSuccess = () => {
164
- dispatch({ ...state, type: SingpassMyInfoLoginActionTypes.SUCCESS });
165
- };
166
- const handleSingpassMyInfoLoginFailure = (errorMessage) => {
167
- dispatch({ ...state, errorMessage, type: SingpassMyInfoLoginActionTypes.FAILURE });
168
- };
169
- const handleSingpassMyInfoLoginReset = () => {
170
- dispatch({ ...state, type: SingpassMyInfoLoginActionTypes.RESET });
171
- };
172
- return {
173
- isEligibleForSingpass,
174
- state,
175
- handleInitiateSingpassMyInfoLogin,
176
- handleSingpassMyInfoLoginSuccess,
177
- handleSingpassMyInfoLoginFailure,
178
- handleSingpassMyInfoLoginReset,
179
- trustedFields,
180
- trustedEntityAssociations
181
- };
182
- };
27
+ import { S as Spacer } from "./getName-DftHbR4I.js";
28
+ import { l as localizeDateString } from "./localizeDateString-BJbsiJ-b.js";
183
29
  const validatePhoneCountryCodeNotEmptyOnBlur = {
184
30
  modes: ["blur"],
185
31
  validate: (phone) => !isEmpty$1(phone?.phoneCountryCode),
@@ -265,6 +111,56 @@ const fieldConfig = {
265
111
  placeholder: "phoneNumber__placeholder__US"
266
112
  }
267
113
  };
114
+ function getTrustedFields(rootLegalEntity, apiMapping, provider) {
115
+ const apiTrustedFields = getApiTrustedFields(rootLegalEntity);
116
+ return parseTrustedFieldsIntoReadOnlyFields(apiTrustedFields, apiMapping);
117
+ }
118
+ function getTrustedEntityAssociations(rootLegalEntity, provider) {
119
+ const apiTrustedFields = getApiTrustedFields(rootLegalEntity);
120
+ return parseTrustedEntityAssociationsFromApiFields(apiTrustedFields);
121
+ }
122
+ function getTrustedFieldsProvider(rootLegalEntity) {
123
+ return rootLegalEntity.trustedFields?.[0].provider;
124
+ }
125
+ const getApiTrustedFields = (rootLegalEntity, provider) => rootLegalEntity.trustedFields?.find((tf) => true)?.fields ?? [];
126
+ function parseTrustedFieldsIntoReadOnlyFields(trustedFields, mapping) {
127
+ const formFieldsMapped = [];
128
+ trustedFields.forEach((field) => {
129
+ for (const [key, value] of Object.entries(mapping)) {
130
+ if (value === field) {
131
+ formFieldsMapped.push(key);
132
+ }
133
+ }
134
+ });
135
+ const readOnlyFields = {};
136
+ formFieldsMapped.forEach((field) => {
137
+ const tokenizedField = field.split(".");
138
+ const formField = tokenizedField.pop();
139
+ const formId = tokenizedField.pop();
140
+ if (formField && formId) {
141
+ if (formId in readOnlyFields) {
142
+ readOnlyFields[formId].push(formField);
143
+ } else {
144
+ readOnlyFields[formId] = [formField];
145
+ }
146
+ }
147
+ });
148
+ return readOnlyFields;
149
+ }
150
+ function parseTrustedEntityAssociationsFromApiFields(trustedApiFields) {
151
+ const rawTrustedEntityAssociations = trustedApiFields.filter((f) => f.startsWith("entityAssociations")) ?? [];
152
+ const leIdMap = {};
153
+ rawTrustedEntityAssociations.forEach((rtea) => {
154
+ const [_, role, leId] = rtea.split(".");
155
+ const trustedRole = role;
156
+ if (!leIdMap[leId]) {
157
+ leIdMap[leId] = { roles: [trustedRole] };
158
+ } else {
159
+ leIdMap[leId] = { roles: [...leIdMap[leId].roles, trustedRole] };
160
+ }
161
+ });
162
+ return Object.keys(leIdMap).map((reference) => ({ reference, types: leIdMap[reference].roles }));
163
+ }
268
164
  const CountryIdNumberPatterns = {
269
165
  [CountryCodes.Brazil]: /^\d{11}$/,
270
166
  [CountryCodes.Canada]: /^\d{9}$/,
@@ -5181,7 +5077,7 @@ function IdentityNumber(props) {
5181
5077
  ...formUtils.getMask("idNumber")
5182
5078
  }
5183
5079
  ),
5184
- /* @__PURE__ */ jsx(Field, { name: "idNumberExempt", children: (childProps) => formUtils.isVisibleField("idNumberExempt") && /* @__PURE__ */ jsx(
5080
+ formUtils.isVisibleField("idNumberExempt") && /* @__PURE__ */ jsx(Field, { name: "idNumberExempt", children: (childProps) => /* @__PURE__ */ jsx(
5185
5081
  Checkbox,
5186
5082
  {
5187
5083
  ...childProps,
@@ -7620,7 +7516,7 @@ const additionalIdentityInfoFields = [
7620
7516
  "expiryDate"
7621
7517
  ];
7622
7518
  const LazyJpAddress = lazy(
7623
- async () => (await import("./JpAddress-bHP50zUD.js")).JpAddress
7519
+ async () => (await import("./JpAddress-yRO24Dme.js")).JpAddress
7624
7520
  );
7625
7521
  const additionalPersonalDetailsFields = [
7626
7522
  "birthDate",
@@ -8729,7 +8625,9 @@ function IdVerificationMethod(props) {
8729
8625
  };
8730
8626
  if (hasLiveSelfieErrorCode && data.idVerificationMethod?.idVerificationMethod === "existingDocument") {
8731
8627
  setStatus("ready");
8732
- handleFieldChange("idDocument")(void 0);
8628
+ if (hasExistingDocument) {
8629
+ handleFieldChange("idDocument")(void 0);
8630
+ }
8733
8631
  }
8734
8632
  const handleCancelDeleteDocument = () => {
8735
8633
  setStatus("ready");
@@ -9600,69 +9498,71 @@ function IndividualOnfido(props) {
9600
9498
  ] });
9601
9499
  }
9602
9500
  export {
9603
- DECISION_MAKER_TYPES_WITH_JOBTITLE as $,
9604
- getSSNType as A,
9605
- defaultFieldMetadata as B,
9501
+ MemoizedDocumentUpload as $,
9502
+ defaultFieldConfig as A,
9503
+ defaultFieldMetadata$1 as B,
9606
9504
  CompanyTypesValues as C,
9607
- defaultFieldConfig as D,
9608
- defaultFieldMetadata$1 as E,
9609
- fieldConfig as F,
9610
- isEmpty as G,
9611
- getAsyncIdNumberValidationRule as H,
9612
- getAsyncPhoneValidationRules as I,
9613
- setHasMotionCaptureScenario as J,
9614
- showIndividualMotionCapture as K,
9615
- Individual as L,
9616
- MultiSelectList as M,
9617
- Name as N,
9618
- individualDocumentForms as O,
9619
- idVerificationProviderId as P,
9620
- idNowModalChildEntityId as Q,
9621
- LandingLayout as R,
9505
+ fieldConfig as D,
9506
+ isEmpty as E,
9507
+ getTrustedFields as F,
9508
+ getAsyncIdNumberValidationRule as G,
9509
+ getAsyncPhoneValidationRules as H,
9510
+ setHasMotionCaptureScenario as I,
9511
+ showIndividualMotionCapture as J,
9512
+ Individual as K,
9513
+ individualDocumentForms as L,
9514
+ idVerificationProviderId as M,
9515
+ idNowModalChildEntityId as N,
9516
+ LandingLayout as O,
9517
+ check4DigitSsnFailed as P,
9518
+ individualOnfidoRules as Q,
9519
+ isNextStepDisabled as R,
9622
9520
  StateCodesUS as S,
9623
9521
  TAX_INFORMATION_FIELD as T,
9624
- check4DigitSsnFailed as U,
9625
- individualOnfidoRules as V,
9626
- isNextStepDisabled as W,
9627
- shouldShowIdNowModal as X,
9628
- IndividualOnfido as Y,
9629
- JP_ADDRESS_REQUIRED_FIELDS as Z,
9630
- GuidanceQuestionValues as _,
9631
- businessRegistrationNumberPatterns as a,
9632
- ContactDetails as a0,
9633
- MemoizedDocumentUpload as a1,
9634
- isRegistrationNumberAbsentStateV4Scenario as a2,
9635
- COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT as a3,
9636
- countryToTaxInfoTypeMap as a4,
9637
- rules as a5,
9638
- useCapabilities as a6,
9639
- InputGroup as a7,
9640
- TileGroup as a8,
9641
- Dropzone as a9,
9642
- removeIdVerificationProblemsForBafinSignatory as aa,
9522
+ shouldShowIdNowModal as U,
9523
+ IndividualOnfido as V,
9524
+ JP_ADDRESS_REQUIRED_FIELDS as W,
9525
+ GuidanceQuestionValues as X,
9526
+ DECISION_MAKER_TYPES_WITH_JOBTITLE as Y,
9527
+ getTrustedEntityAssociations as Z,
9528
+ ContactDetails as _,
9529
+ getCompanyRegistrationNumberOptions as a,
9530
+ isRegistrationNumberAbsentStateV4Scenario as a0,
9531
+ COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT as a1,
9532
+ countryToTaxInfoTypeMap as a2,
9533
+ rules as a3,
9534
+ MultiSelectList as a4,
9535
+ makeSelectItemForRole as a5,
9536
+ Name as a6,
9537
+ nameFields as a7,
9538
+ useCapabilities as a8,
9539
+ InputGroup as a9,
9540
+ TileGroup as aa,
9541
+ Dropzone as ab,
9542
+ removeIdVerificationProblemsForBafinSignatory as ac,
9643
9543
  businessRegistrationNumberMasks as b,
9644
- getVatNumberOptions as c,
9645
- requestingIssuing as d,
9646
- exemptedFromTaxDefaultFieldMetadata as e,
9647
- exemptedFromTaxDefaultFieldConfig as f,
9648
- getCompanyRegistrationNumberOptions as g,
9649
- taxInformationDefaultFieldConfig as h,
9650
- TaxInformationField as i,
9651
- toFullWidth as j,
9652
- handleKeys as k,
9653
- COUNTRY_OF_GOVERNING_LAW_POSSIBLE as l,
9654
- COUNTRIES_USING_COMPANY_SEARCH as m,
9655
- useSetting as n,
9656
- individualOnfidoForms as o,
9657
- individualForms as p,
9658
- nameFields as q,
9544
+ businessRegistrationNumberPatterns as c,
9545
+ getVatNumberOptions as d,
9546
+ requestingIssuing as e,
9547
+ exemptedFromTaxDefaultFieldMetadata as f,
9548
+ getTrustedFieldsProvider as g,
9549
+ exemptedFromTaxDefaultFieldConfig as h,
9550
+ taxInformationDefaultFieldConfig as i,
9551
+ TaxInformationField as j,
9552
+ toFullWidth as k,
9553
+ handleKeys as l,
9554
+ COUNTRY_OF_GOVERNING_LAW_POSSIBLE as m,
9555
+ COUNTRIES_USING_COMPANY_SEARCH as n,
9556
+ useSetting as o,
9557
+ individualOnfidoForms as p,
9558
+ individualForms as q,
9659
9559
  requestingBanking as r,
9660
9560
  stateFormatGuidanceText as s,
9661
9561
  taxInformationDefaultFieldMetadata as t,
9662
9562
  useAllowedCountries as u,
9663
9563
  vatNumberOptions as v,
9664
- makeSelectItemForRole as w,
9665
- useSingpassMyInfoLogin as x,
9666
- isBafinSignatoryFlow as y,
9667
- showIdNowModal as z
9564
+ isBafinSignatoryFlow as w,
9565
+ showIdNowModal as x,
9566
+ getSSNType as y,
9567
+ defaultFieldMetadata as z
9668
9568
  };
@@ -2,42 +2,44 @@
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] = "b507bc0a-1bef-4c2c-b7d4-cff7bd738076", e._sentryDebugIdIdentifier = "sentry-dbid-b507bc0a-1bef-4c2c-b7d4-cff7bd738076");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "32dcd4af-d542-4f61-8340-db3c67105c46", e._sentryDebugIdIdentifier = "sentry-dbid-32dcd4af-d542-4f61-8340-db3c67105c46");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
10
  import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
11
11
  import { useMemo, useState, useEffect, useCallback, useRef } from "preact/hooks";
12
- import { u as useScenarios } from "./useScenarios-CpiyRA2D.js";
13
- import { l as useProviderStatus, r as addressValidators, s as addressFormatters, j as useCreateLegalEntity, k as useUpdateLegalEntity, t as mapAddressLabels } from "./Address-Bl_bd5Lp.js";
14
- import { c as contactDetailsValidationRules, u as useValidatePhoneNumberImperatively } from "./validate-DusGGHsF.js";
15
- import { b as useApiContext, a2 as useMutation, k as httpPost, aJ as matchesRegex, aV as trimValWithOneSpace, aK as NO_ALPHABET_REGEX, aL as EMOJI_REGEX, aM as hasRepeatedCharacters, aN as isInvalidName, aW as INDIVIDUAL_VALID_CHAR_REGEX, aT as getFormattingRegEx, aU as SPECIAL_CHARS, aQ as standardKatakanaValidator, aR as standardKanjiValidator, V as CountryCodes, X as isEmpty, O as TaskTypes, z as LegalEntityTypes, b5 as getAgeToday, b6 as euCountries, b7 as individualApiKeyMapping, aq as individualComponentsKeyMapping, b3 as reverseMapping, b8 as getNomineeFromAssociation, b9 as drop, P as createLogger, K as useAccountHolder, W as useI18nContext, a1 as useAnalyticsContext, $ as useExperimentsContext, m as useSettingsContext, g as getLegalEntityCountry, ba as getAllowedDecisionMakerRoles, bb as filterOutUnwantedAssociationsIfRootLE, aG as cloneObject, bc as individualDocumentMapping, bd as individualObscuredFields, ag as getOwnEntityAssociations, be as hasNomineesChanged, bf as attachNomineeToRole, a_ as doArraysMatch, j as useQuery, r as skipToken, o as httpGet, u as useTranslation, a3 as useQueryClient, B as Button, L as Loader, bg as individualOnfidoApiKeyMapping, as as Scenarios, at as DecisionMakerTypes, bh as individualOnfidoDocumentMapping, bi as individualOnfidoObscuredFields } from "./StoreProvider-Cvqvt7fn.js";
16
- import { F as FormContextProvider, a as FormFlow } from "./FormFlow-8pfRbKmA.js";
17
- import { u as useToastContext } from "./useToastContext-lvmkWAhW.js";
18
- import { g as getPropsFromConfigurations, c as composePerScenarioFormConfigurations } from "./process-field-configurations-Dt6THVwE.js";
19
- import { A as getSSNType, B as defaultFieldMetadata, D as defaultFieldConfig, E as defaultFieldMetadata$1, F as fieldConfig, t as taxInformationDefaultFieldMetadata, h as taxInformationDefaultFieldConfig, G as isEmpty$1, x as useSingpassMyInfoLogin, H as getAsyncIdNumberValidationRule, I as getAsyncPhoneValidationRules, J as setHasMotionCaptureScenario, K as showIndividualMotionCapture, p as individualForms, L as Individual, O as individualDocumentForms, P as idVerificationProviderId, Q as idNowModalChildEntityId, R as LandingLayout, z as showIdNowModal, U as check4DigitSsnFailed, V as individualOnfidoRules, o as individualOnfidoForms, W as isNextStepDisabled, X as shouldShowIdNowModal, Y as IndividualOnfido, Z as JP_ADDRESS_REQUIRED_FIELDS, _ as GuidanceQuestionValues, $ as DECISION_MAKER_TYPES_WITH_JOBTITLE$1 } from "./IndividualOnfido-n3WaW67J.js";
20
- import { g as getRequiredForms, a as addValidityToForms, u as useFormComposer } from "./dropinUtils-DFscjCzE.js";
21
- import { u as useMultiForm } from "./useMultiForm-DfGnG4oT.js";
22
- import { m as mapExistingFile, g as getPageName, a as getPage, u as useScenarioConfiguration } from "./mapExistingFile-lDnF81cv.js";
23
- import { i as isValidationError, p as processValidationErrors, a as isMaintenanceModeError } from "./validationError-C0UYDiYL.js";
24
- import { g as getIdDocument, a as getDocument, c as createDocumentRequest, d as documentApiUtils, m as mergeAttachments, b as getFileExtention } from "./documentUtils-DahfSV2D.js";
25
- import { a as datasetUtilities, C as Confirm } from "./useDataset-CKGFlO8U.js";
26
- import { g as getFieldsWithExistingData } from "./getFieldsWithExistingData-C_5HXg3J.js";
27
- import { l as localizeDateString } from "./localizeDateString-4aQPK6sB.js";
28
- import { o as omitObscuredFieldsIfUnchanged, I as IFrameWidget } from "./iframeWidget-DtoLjCYK.js";
29
- import { r as resolveFieldMetadata, w as getLocalizedIdDocumentTypeOptions, I as Image } from "./fieldConfigurations-BCj1wotL.js";
30
- import { r as rules, D as DECISION_MAKER_TYPES_WITH_JOBTITLE } from "./rules-BjmEJdfD.js";
12
+ import { u as useScenarios } from "./useScenarios-CGvgBfO2.js";
13
+ import { u as useCreateLegalEntity } from "./useCreateLegalEntity-Dr1EtZC9.js";
14
+ import { u as useUpdateLegalEntity } from "./useUpdateLegalEntity-DPVG51Eo.js";
15
+ import { j as useProviderStatus, p as addressValidators, q as addressFormatters, r as mapAddressLabels } from "./Address-CaKnB-Qo.js";
16
+ import { c as contactDetailsValidationRules, u as useValidatePhoneNumberImperatively } from "./validate-C0bVNNOM.js";
17
+ import { b as useApiContext, a1 as useMutation, k as httpPost, aD as matchesRegex, aP as trimValWithOneSpace, aE as NO_ALPHABET_REGEX, aF as EMOJI_REGEX, aG as hasRepeatedCharacters, aH as isInvalidName, a$ as INDIVIDUAL_VALID_CHAR_REGEX, aN as getFormattingRegEx, aO as SPECIAL_CHARS, aK as standardKatakanaValidator, aL as standardKanjiValidator, C as CountryCodes, X as isEmpty, P as TaskTypes, t as LegalEntityTypes, b0 as getAgeToday, b1 as euCountries, b2 as individualApiKeyMapping, aZ as reverseMapping, b3 as getNomineeFromAssociation, b4 as individualComponentsKeyMapping, b5 as drop, U as createLogger, M as useAccountHolder, W as useI18nContext, a0 as useAnalyticsContext, p as useExperimentsContext, o as useSettingsContext, g as getLegalEntityCountry, b6 as getAllowedDecisionMakerRoles, b7 as filterOutUnwantedAssociationsIfRootLE, aA as cloneObject, b8 as individualDocumentMapping, b9 as individualObscuredFields, af as getOwnEntityAssociations, ba as hasNomineesChanged, bb as attachNomineeToRole, aU as doArraysMatch, j as useQuery, x as skipToken, m as httpGet, u as useTranslation, a2 as useQueryClient, B as Button, L as Loader, bc as individualOnfidoApiKeyMapping, al as Scenarios, am as DecisionMakerTypes, bd as individualOnfidoDocumentMapping, be as individualOnfidoObscuredFields } from "./StoreProvider-_QQynxk0.js";
18
+ import { F as FormContextProvider, a as FormFlow } from "./FormFlow-m1k7xInJ.js";
19
+ import { a as useToastContext } from "./useToastContext-BGkxz2AI.js";
20
+ import { g as getPropsFromConfigurations, c as composePerScenarioFormConfigurations } from "./process-field-configurations-C41JKZZ6.js";
21
+ import { g as getRequiredForms, a as addValidityToForms, u as useFormComposer } from "./dropinUtils-L0ggRI0e.js";
22
+ import { u as useMultiForm } from "./useMultiForm-7AeF_Lma.js";
23
+ import { m as mapExistingFile, g as getPageName, a as getPage, u as useScenarioConfiguration } from "./mapExistingFile-lCDb_PhK.js";
24
+ import { y as getSSNType, z as defaultFieldMetadata, A as defaultFieldConfig, B as defaultFieldMetadata$1, D as fieldConfig, t as taxInformationDefaultFieldMetadata, i as taxInformationDefaultFieldConfig, E as isEmpty$1, F as getTrustedFields, G as getAsyncIdNumberValidationRule, H as getAsyncPhoneValidationRules, I as setHasMotionCaptureScenario, J as showIndividualMotionCapture, q as individualForms, K as Individual, L as individualDocumentForms, M as idVerificationProviderId, N as idNowModalChildEntityId, O as LandingLayout, x as showIdNowModal, P as check4DigitSsnFailed, Q as individualOnfidoRules, p as individualOnfidoForms, R as isNextStepDisabled, U as shouldShowIdNowModal, V as IndividualOnfido, W as JP_ADDRESS_REQUIRED_FIELDS, X as GuidanceQuestionValues, Y as DECISION_MAKER_TYPES_WITH_JOBTITLE$1 } from "./IndividualOnfido-hThSjqMs.js";
25
+ import { i as isValidationError, p as processValidationErrors, a as isMaintenanceModeError } from "./validationError-BY8rwcKJ.js";
26
+ import { g as getIdDocument, a as getDocument, c as createDocumentRequest, d as documentApiUtils, m as mergeAttachments, b as getFileExtention } from "./documentUtils-feD3RgJ6.js";
27
+ import { a as datasetUtilities, C as Confirm } from "./useDataset-BHoDL5D6.js";
28
+ import { g as getFieldsWithExistingData } from "./getFieldsWithExistingData-JYFQVAcY.js";
29
+ import { l as localizeDateString } from "./localizeDateString-BJbsiJ-b.js";
30
+ import { o as omitObscuredFieldsIfUnchanged, I as IFrameWidget } from "./iframeWidget-C8wyKuCq.js";
31
+ import { r as resolveFieldMetadata, w as getLocalizedIdDocumentTypeOptions, I as Image } from "./fieldConfigurations-Bor1NtgA.js";
32
+ import { r as rules, D as DECISION_MAKER_TYPES_WITH_JOBTITLE } from "./rules-DFgTcf5L.js";
31
33
  import { f as formatObject } from "./utils-DNSfZiio.js";
32
34
  import { m as mapSchemaFieldsToApiScriptLocalization, a as mapApiScriptLocalizationToSchemaFields } from "./mapAddressLocalizationToJpAddressSchema-vJWbpAyq.js";
33
35
  import { computed } from "@preact/signals";
34
36
  import { Show } from "@preact/signals/utils";
35
- import { m as mapJpAddressSchemaToAddressLocalizations, a as mapJpAddressSummary } from "./mapJpAddressSchemaToAddressLocalizations-iYMAONXA.js";
37
+ import { m as mapJpAddressSchemaToAddressLocalizations, a as mapJpAddressSummary } from "./mapJpAddressSchemaToAddressLocalizations-DkpasBLv.js";
36
38
  import { lazy } from "preact/compat";
37
- import { M as Modal } from "./Modal-GSjDUwX-.js";
38
- import { a as Alert } from "./Alert-B9R4X_XM.js";
39
- import { a as getIndividualLegalEntityName } from "./getName-B1o2b2LX.js";
40
- import { g as getOnfidoIdentityTypeToApiIdentityTypeMap, m as mapLegalEntityToIndividualOnfidoSchema } from "./mapLegalEntityToIndividualOnfidoSchema-CZ8Op1Il.js";
39
+ import { M as Modal } from "./Modal-C89D3p56.js";
40
+ import { a as Alert } from "./Alert-CzqTssej.js";
41
+ import { a as getIndividualLegalEntityName } from "./getName-DftHbR4I.js";
42
+ import { g as getOnfidoIdentityTypeToApiIdentityTypeMap, m as mapLegalEntityToIndividualOnfidoSchema } from "./mapLegalEntityToIndividualOnfidoSchema-MeTFyeE4.js";
41
43
  const verifyIdNumber = async (legalEntityId, baseUrl, data) => {
42
44
  return await httpPost(
43
45
  {
@@ -682,7 +684,6 @@ function IndividualDropin({
682
684
  rootLegalEntityId: rootLegalEntityId.value
683
685
  });
684
686
  let roleTypes = [];
685
- const [newDecisionMaker] = useState();
686
687
  const [matchingScenario, setMatchingScenario] = useState();
687
688
  const [validationErrors, setValidationErrors] = useState();
688
689
  const [loadingStatus, setLoadingStatus] = useState("success");
@@ -693,10 +694,10 @@ function IndividualDropin({
693
694
  );
694
695
  const [hideFooter, setHideFooter] = useState(false);
695
696
  const [derivedProps, setDerivedProps] = useState();
696
- const { trustedFields: associatedLegalEntityTrustedFields } = useSingpassMyInfoLogin({
697
- legalEntity: legalEntityResponse,
698
- accountHolder
699
- });
697
+ const associatedLegalEntityTrustedFields = useMemo(
698
+ () => legalEntityResponse ? getTrustedFields(legalEntityResponse, individualComponentsKeyMapping) : {},
699
+ [legalEntityResponse]
700
+ );
700
701
  const { data: providerStatus } = useProviderStatus({
701
702
  providers: ["address", "idDocument"],
702
703
  country: legalEntityResponse ? getLegalEntityCountry(legalEntityResponse) : country
@@ -886,25 +887,21 @@ function IndividualDropin({
886
887
  idDocumentType
887
888
  }) => {
888
889
  let updatedLegalEntity;
889
- const leId = legalEntityResponse?.id || newDecisionMaker?.id;
890
- if (!leId) {
890
+ const existingLeId = legalEntityResponse?.id;
891
+ if (!existingLeId) {
891
892
  updatedLegalEntity = await createLegalEntity(legalEntity);
892
893
  userEvents.addTaskEvent("Success", {
893
894
  actionType: "submit",
894
- legalEntityId: updatedLegalEntity.id,
895
- entityType: updatedLegalEntity.type,
896
- countryOfRegistration: dataSubmitted.personalDetails?.residencyCountry || null,
897
- roles: dataSubmitted.personalDetails?.role || null
895
+ countryOfRegistration: dataSubmitted.personalDetails?.residencyCountry,
896
+ roles: dataSubmitted.personalDetails?.role
898
897
  });
899
898
  } else {
900
- const patchLegalEntity = { ...drop("type").from(legalEntity), id: leId };
899
+ const patchLegalEntity = { ...drop("type").from(legalEntity), id: existingLeId };
901
900
  updatedLegalEntity = await updateLegalEntity(patchLegalEntity);
902
901
  userEvents.addTaskEvent("Success", {
903
902
  actionType: "submit",
904
- legalEntityId: updatedLegalEntity.id,
905
- entityType: updatedLegalEntity.type,
906
- countryOfRegistration: dataSubmitted.personalDetails?.residencyCountry || null,
907
- documentType: idDocumentType || null
903
+ countryOfRegistration: dataSubmitted.personalDetails?.residencyCountry,
904
+ documentType: idDocumentType
908
905
  });
909
906
  }
910
907
  return updatedLegalEntity;
@@ -962,7 +959,7 @@ function IndividualDropin({
962
959
  userEvents.addTaskEvent("Success", {
963
960
  actionType: "upload",
964
961
  documentType: doc.type,
965
- fileExtention: doc?.attachments?.map((item) => getFileExtention(item.pageName ?? "")).filter((item) => item !== void 0) ?? null
962
+ fileExtention: doc?.attachments?.map((item) => getFileExtention(item.pageName ?? "")).filter((item) => item !== void 0) ?? void 0
966
963
  });
967
964
  });
968
965
  }
@@ -1913,7 +1910,6 @@ function IndividualOnfidoDropin({
1913
1910
  isRoleFieldNeeded,
1914
1911
  parentLegalEntity
1915
1912
  ]);
1916
- const [newDecisionMaker] = useState();
1917
1913
  const [matchingScenario, setMatchingScenario] = useState();
1918
1914
  const [validationErrors, setValidationErrors] = useState();
1919
1915
  const [loadingStatus, setLoadingStatus] = useState("success");
@@ -2112,24 +2108,23 @@ function IndividualOnfidoDropin({
2112
2108
  idDocumentType
2113
2109
  }) => {
2114
2110
  let updatedLegalEntity;
2115
- const leId = legalEntityResponse?.id || newDecisionMaker?.id;
2116
- if (!leId) {
2111
+ const existingLeId = legalEntityResponse?.id;
2112
+ if (!existingLeId) {
2117
2113
  updatedLegalEntity = await createLegalEntity(legalEntity);
2118
2114
  userEvents.addTaskEvent("Success", {
2119
2115
  actionType: "submit",
2120
- legalEntityId: updatedLegalEntity.id,
2121
- entityType: updatedLegalEntity.type,
2122
- countryOfRegistration: dataSubmitted.additionalPersonalDetails?.country || null,
2123
- roles: dataSubmitted.basicDetails?.role || null
2116
+ countryOfRegistration: dataSubmitted.additionalPersonalDetails?.country,
2117
+ roles: dataSubmitted.basicDetails?.role
2124
2118
  });
2125
2119
  } else {
2126
- updatedLegalEntity = await updateLegalEntity({ ...drop("type").from(legalEntity), id: leId });
2120
+ updatedLegalEntity = await updateLegalEntity({
2121
+ ...drop("type").from(legalEntity),
2122
+ id: existingLeId
2123
+ });
2127
2124
  userEvents.addTaskEvent("Success", {
2128
2125
  actionType: "submit",
2129
- legalEntityId: updatedLegalEntity.id,
2130
- entityType: updatedLegalEntity.type,
2131
- countryOfRegistration: dataSubmitted.additionalPersonalDetails?.country || null,
2132
- documentType: idDocumentType || null
2126
+ countryOfRegistration: dataSubmitted.additionalPersonalDetails?.country,
2127
+ documentType: idDocumentType
2133
2128
  });
2134
2129
  }
2135
2130
  return updatedLegalEntity;
@@ -2175,7 +2170,7 @@ function IndividualOnfidoDropin({
2175
2170
  userEvents.addTaskEvent("Success", {
2176
2171
  actionType: "upload",
2177
2172
  documentType: doc.type,
2178
- fileExtention: doc?.attachments?.map((item) => getFileExtention(item.pageName ?? "")).filter((item) => item !== void 0) ?? null
2173
+ fileExtention: doc?.attachments?.map((item) => getFileExtention(item.pageName ?? "")).filter((item) => item !== void 0) ?? void 0
2179
2174
  });
2180
2175
  });
2181
2176
  }