@adyen/kyc-components 4.27.0 → 4.28.0-beta.1

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 (365) hide show
  1. package/dist/{4-people-CAxQpi_3.js → 4-people-C_-N5Vvz.js} +2 -2
  2. package/dist/{AcceptTermsOfServiceWorkflow-CLTk8Oyx.js → AcceptTermsOfServiceWorkflow-CWGZOKtu.js} +4 -4
  3. package/dist/{Accordion-CTQfC17W.js → Accordion-DyU-Pxob.js} +1 -1
  4. package/dist/{AccountSetupRejected-DaFbhfSI.js → AccountSetupRejected-Bs7galfS.js} +2 -2
  5. package/dist/{AdaptiveWorkflow-42UsUwm-.js → AdaptiveWorkflow-DXJ1u52c.js} +117 -48
  6. package/dist/{AdaptiveWorkflowComponent-DZwG4TmA.js → AdaptiveWorkflowComponent-Bmo1CJwM.js} +29 -29
  7. package/dist/{AddressFields-D78Szxmw.js → AddressFields-M5jupF8l.js} +10 -10
  8. package/dist/{Avatar-yJfk9A6l.js → Avatar-BBJO6JWY.js} +1 -1
  9. package/dist/{BusinessFinancingDropin-Sxpsw1Ib.js → BusinessFinancingDropin-Bbw34hVf.js} +34 -34
  10. package/dist/{BusinessFinancingPage-DBIhC8Us.js → BusinessFinancingPage-CvD-Tk_-.js} +54 -54
  11. package/dist/{BusinessRegistrationNumberField-BdMxV-Tb.js → BusinessRegistrationNumberField-B1O-D58L.js} +6 -6
  12. package/dist/{BusinessRegistrationNumberFieldGroup-Cj8O_z1t.js → BusinessRegistrationNumberFieldGroup-C8UNd3to.js} +12 -7
  13. package/dist/{BusinessTypeSelectionPage-qHvILw07.js → BusinessTypeSelectionPage-B10xJcSU.js} +12 -12
  14. package/dist/{Button-BYafPrZH.js → Button-EhGM-oCO.js} +1 -1
  15. package/dist/{Checkbox-CEkD-Lpm.js → Checkbox-CyMoenl6.js} +3 -3
  16. package/dist/{ComponentGroup-DVHVDBTY.js → ComponentGroup-Jgi1oBjC.js} +10 -9
  17. package/dist/{ConstitutionalDocument-CRmlhFeL.js → ConstitutionalDocument-bMwKgqNu.js} +16 -15
  18. package/dist/{ContactDetails-Cqfks3uk.js → ContactDetails-Dfr6ysdg.js} +5 -5
  19. package/dist/{ContextGuidance-DfK3CyBg.js → ContextGuidance-C7seYQD4.js} +3 -3
  20. package/dist/{CountryField-BjQOdWzz.js → CountryField-EEsbyp0x.js} +8 -6
  21. package/dist/{Currency-CbDX0TMX.js → Currency-dsFhBAjy.js} +8 -8
  22. package/dist/{CustomerSupport-DhHfxyq-.js → CustomerSupport-CJVqvdU5.js} +34 -13
  23. package/dist/{DateField-B2QaXKJu.js → DateField-t7FT_iiL.js} +13 -9
  24. package/dist/{DebugModal-Bg9rzwSn.js → DebugModal-BTrunkih.js} +154 -109
  25. package/dist/{DecisionMakerDetails-AoJgg4cg.js → DecisionMakerDetails-DMljWAWQ.js} +13 -13
  26. package/dist/{DecisionMakerDetailsPage-C_AdIcGC.js → DecisionMakerDetailsPage-B5c_0PN_.js} +7 -7
  27. package/dist/{DecisionMakers-C6l8bABC.js → DecisionMakers-a3DaG-6U.js} +14 -14
  28. package/dist/{Dropzone-DgxhMiDp.js → Dropzone-448ZL9VM.js} +7 -7
  29. package/dist/{EmailField-CXN3LYZ2.js → EmailField-Cra7AXIF.js} +12 -9
  30. package/dist/{EmbeddedStatus-mdQsQfof.js → EmbeddedStatus-aQaNHawQ.js} +2 -2
  31. package/dist/{EndStateLayout-B-M90Rnh.js → EndStateLayout-CBzxX67s.js} +2 -2
  32. package/dist/{EntityAssociation-D_q0Wc3i.js → EntityAssociation-CGquqR8h.js} +6 -6
  33. package/dist/{ErrorPanel-CPEt21Se.js → ErrorPanel-CXMvMtur.js} +4 -4
  34. package/dist/{GlobalEntryModal-BLcLbtbY.js → GlobalEntryModal-CM5T8FKp.js} +312 -100
  35. package/dist/{GlobalEntryPage-DWOIX03S.js → GlobalEntryPage-BP588kux.js} +32 -32
  36. package/dist/Icon-D2IGgB2L.js +175 -0
  37. package/dist/{IdentityNumber-B9Jnp2Kq.js → IdentityNumber-DnA5GktA.js} +5 -5
  38. package/dist/{IdentityNumberFieldGroup-BSl7SDIS.js → IdentityNumberFieldGroup-R8A5uEoN.js} +38 -16
  39. package/dist/{IdentityScreeningWorkflow-GYt_zgUF.js → IdentityScreeningWorkflow-BEf9j8g8.js} +14 -13
  40. package/dist/{IndividualDropin-Diyiw3Hi.js → IndividualDropin-BunW0Y1z.js} +60 -39
  41. package/dist/{IndustryCodeFieldGroup-C2-FCfpN.js → IndustryCodeFieldGroup-Dgped8t4.js} +8 -10
  42. package/dist/{InputDate-BHrNsorX.js → InputDate-PcZy5N0W.js} +3 -3
  43. package/dist/{Introduction-DYn_jO1o.js → Introduction-CLSqIBpQ.js} +6 -6
  44. package/dist/{InvitedDecisionMakerComponent-CUe2AxiZ.js → InvitedDecisionMakerComponent-BxhfJSKq.js} +36 -36
  45. package/dist/{JpAddressFields-C4qtHjp0.js → JpAddressFields-CapPuNBU.js} +9 -9
  46. package/dist/{LegalCompanyNameField-DFo-ZOZk.js → LegalCompanyNameField-4bmqY29I.js} +5 -5
  47. package/dist/{LegalRepresentativeDetailsPage-BOfRTyqK.js → LegalRepresentativeDetailsPage-DxOy9vCU.js} +3 -3
  48. package/dist/{Link-DwPkGikd.js → Link-BtWj5mVH.js} +1 -1
  49. package/dist/{ListItem-n927geYb.js → ListItem-aX6AyCay.js} +3 -3
  50. package/dist/{Name-DOj6CpgZ.js → Name-CsOs3hQG.js} +4 -4
  51. package/dist/{NumberField-CkdysfUI.js → NumberField-D8xlMgic.js} +12 -9
  52. package/dist/{PatriotActDisclosure-DkqbHOFx.js → PatriotActDisclosure-CTwsaivh.js} +10 -10
  53. package/dist/{PayoutDetailsDropin-CF7itBsp.js → PayoutDetailsDropin-DAzIUYe4.js} +30 -28
  54. package/dist/{PayoutDetailsPage-Dc_D071R.js → PayoutDetailsPage-VLk0DpD7.js} +4 -4
  55. package/dist/{InputText-BwXmy0Yr.js → RadioGroup-CEi7ZDGi.js} +80 -5
  56. package/dist/{Review-Ku4iYkp6.js → Review-B03d6GlL.js} +6 -6
  57. package/dist/{RootBusinessDetailsPage-CTSZl23n.js → RootBusinessDetailsPage-bY2g62IM.js} +4 -4
  58. package/dist/{RootBusinessLinesPage-TqlW5o-4.js → RootBusinessLinesPage-DKqmR8rB.js} +21 -21
  59. package/dist/{RootIndividualDetailsPage-DG6IUpC8.js → RootIndividualDetailsPage-YA9xZU8y.js} +4 -4
  60. package/dist/{Select-DPJ8234F.js → Select-DTqe0uNK.js} +5 -6
  61. package/dist/{SignPCIComponent-DHIPpLKT.js → SignPCIComponent-CXGnjpKO.js} +38 -38
  62. package/dist/{SingpassSelection-BRJCTmKj.js → SingpassSelection-CDHJdkCZ.js} +5 -5
  63. package/dist/SingpassSelectionCTA-sVs1ou1t.js +71 -0
  64. package/dist/{SoleProprietorshipPage-JOV_QddZ.js → SoleProprietorshipPage-DCjHOTI3.js} +4 -4
  65. package/dist/{SourceOfFundsPage-DxQADTn7.js → SourceOfFundsPage-BEPx4XB0.js} +22 -22
  66. package/dist/{SourceOfFundsWorkflow-fFGA8BYS.js → SourceOfFundsWorkflow-CWYq6pxv.js} +4 -4
  67. package/dist/{StateField-LcRkkvIH.js → StateField-DgYpF1_M.js} +6 -6
  68. package/dist/{Step-DaFQX--s.js → Step-DGmEuzNc.js} +15 -9
  69. package/dist/{Summary-DgLYHPLg.js → Summary-CzJ698Zr.js} +2 -2
  70. package/dist/{SummarySection-CLaB0E12.js → SummarySection-uydAtNRx.js} +4 -4
  71. package/dist/{Task-CkhQ3vzl.js → Task-CxQnoPlO.js} +41 -31
  72. package/dist/{TaskGroup-BSPFdlu9.js → TaskGroup-CNvLui70.js} +10 -6
  73. package/dist/{TaskListItem-B87Vgx8N.js → TaskListItem-D84K14gG.js} +10 -10
  74. package/dist/{TaskStepperContextProvider-DiMf4UV6.js → TaskStepperContextProvider-C36jSigo.js} +1 -1
  75. package/dist/{TaskVerificationStatus-C1CllzL1.js → TaskVerificationStatus-Br7t30ur.js} +1 -1
  76. package/dist/{TaxInformationFieldGroup-BBASFehB.js → TaxInformationFieldGroup-hUnJmpAo.js} +68 -111
  77. package/dist/{TaxReportingDropin-BvJ-hNA-.js → TaxReportingDropin-CR1Cpz3u.js} +14 -13
  78. package/dist/{TaxReportingWorkflow-BrlpMImh.js → TaxReportingWorkflow-NIVnKcpn.js} +4 -4
  79. package/dist/{TermsOfServiceManagement-B4H2Aia2.js → TermsOfServiceManagement-BJclOKlD.js} +38 -37
  80. package/dist/{TextArea-CAZrG_yC.js → TextArea-CvDM-4De.js} +4 -4
  81. package/dist/{TextField-DTv1BPA3.js → TextField-DBCBCZMg.js} +13 -10
  82. package/dist/{TrustDetailsPage-DYXIzcxJ.js → TrustDetailsPage-B_6vHQnx.js} +30 -23
  83. package/dist/{TrustMemberCompanyPage-pvj9sHs2.js → TrustMemberCompanyPage-DSTdfCRt.js} +5 -5
  84. package/dist/{TrustMemberIndividualPage-Dm4S4Vhu.js → TrustMemberIndividualPage-CxD06on9.js} +3 -3
  85. package/dist/{TrustMemberRoleAndTypePage-HY6FQpRj.js → TrustMemberRoleAndTypePage-Bwl9Dv6w.js} +20 -20
  86. package/dist/{TrustMembersOverview-Bcs79IWP.js → TrustMembersOverview-Bl_tZ47h.js} +12 -12
  87. package/dist/{UboTaskItem-BYQusWWl.js → UboTaskItem-CYSbY0FC.js} +15 -12
  88. package/dist/{UnincorporatedPartnershipIndividualPage-sBN7kPiI.js → UnincorporatedPartnershipIndividualPage-DLpkOoQr.js} +3 -3
  89. package/dist/{UnincorporatedPartnershipMemberCompanyPage-DHgq0TLx.js → UnincorporatedPartnershipMemberCompanyPage-BWmArxU3.js} +5 -5
  90. package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-Dx5UGEcg.js → UnincorporatedPartnershipMemberRoleAndTypePage-DGys2yUf.js} +10 -9
  91. package/dist/{UnincorporatedPartnershipMembersOverview-DxIfkkY7.js → UnincorporatedPartnershipMembersOverview-GVimwN0S.js} +6 -6
  92. package/dist/{VerificationErrorAlert-C_qKEwHw.js → VerificationErrorAlert-BjsV8ARt.js} +3 -3
  93. package/dist/{WebsiteField-BYZAR8k8.js → WebsiteField-Sz7RUbW_.js} +13 -10
  94. package/dist/{Workflow-ty27ZzKS.js → Workflow-Cty0HzIp.js} +11 -8
  95. package/dist/{accountHolderUtils-CVX0JkJf.js → accountHolderUtils-DEWA3MWe.js} +2 -2
  96. package/dist/adyen-business-financing.js +56 -57
  97. package/dist/adyen-individual-configuration.js +30 -31
  98. package/dist/adyen-individual-status.js +30 -31
  99. package/dist/adyen-invited-decision-maker.js +4 -5
  100. package/dist/adyen-onboarding.js +52 -178
  101. package/dist/adyen-terms-of-service-management.js +4 -5
  102. package/dist/adyen-terms-of-service-status.js +4 -5
  103. package/dist/adyen-transfer-instrument-configuration.js +30 -31
  104. package/dist/adyen-transfer-instrument-management.js +37 -38
  105. package/dist/adyen-verification-status.js +4 -5
  106. package/dist/{arrow-right-BwP9nNDE.js → arrow-right-3zKAXB3D.js} +2 -2
  107. package/dist/{bafinUtils-DNq-JBP5.js → bafinUtils-CFvCTqAt.js} +91 -34
  108. package/dist/{bag-Cnk9dcZg.js → bag-B8b-Jb8Y.js} +2 -2
  109. package/dist/{bank-UssyP-aG.js → bank-CQrF7P3r.js} +2 -2
  110. package/dist/bg-BG-CdDdNATP.js +7 -0
  111. package/dist/{bg-BG-CmuahJEZ.js → bg-BG-g1moSV5i.js} +8 -2
  112. package/dist/{bg-BG-ClMsmcda.js → bg-BG-s01xQ0IE.js} +16 -2
  113. package/dist/{bin--Ft4cPCj.js → bin-C4Fu9PHF.js} +2 -2
  114. package/dist/{capital-BbOFhTHY.js → capital-C1L-Fbue.js} +2 -2
  115. package/dist/{cash-stack-LTzc8hQZ.js → cash-stack-BpmsCe5x.js} +2 -2
  116. package/dist/{certificate-CswNcwlI.js → certificate-CEXTu9K7.js} +2 -2
  117. package/dist/{checkmark-DH1abKZn.js → checkmark-CuqH-tPn.js} +2 -2
  118. package/dist/{checkmark-circle-VWM-JsI6.js → checkmark-circle-LpY4tMPD.js} +2 -2
  119. package/dist/{checkmark-circle-fill-AuW2DQDT.js → checkmark-circle-fill-Cp6YFYCT.js} +2 -2
  120. package/dist/{checkmark-small-B6vsnsSO.js → checkmark-small-DFtNt2po.js} +2 -2
  121. package/dist/{chevron-down-BGAMP7CF.js → chevron-down-DhQJv6Ph.js} +2 -2
  122. package/dist/{chevron-left-EjFIt8Cd.js → chevron-left-DkLDfa2Z.js} +2 -2
  123. package/dist/{chevron-right-B5zb9mkt.js → chevron-right-BZFBWefp.js} +2 -2
  124. package/dist/{chevron-up-DZiittpJ.js → chevron-up-DRtWAeDd.js} +2 -2
  125. package/dist/{circle-CygvxRY_.js → circle-KULHbBX2.js} +2 -2
  126. package/dist/{circle-small-filled-PeElhgJU.js → circle-small-filled-CcOlAzmF.js} +2 -2
  127. package/dist/{clock-CQXEE5jK.js → clock-DEbxrDAd.js} +2 -2
  128. package/dist/{coins-C7syygUR.js → coins-C0-5yKat.js} +2 -2
  129. package/dist/{constants-D2FD75EZ.js → constants-Ctu_3qBl.js} +6 -17
  130. package/dist/{contract-BWEAd7e-.js → contract-B91Vhtk_.js} +2 -2
  131. package/dist/{cross-vK6qh9R0.js → cross-DX3n6F6N.js} +2 -2
  132. package/dist/{cross-circle-fill-Bxj_fgQE.js → cross-circle-fill-CrWmQTCZ.js} +2 -2
  133. package/dist/{cross-circle-fill-small-DwUKcL9P.js → cross-circle-fill-small-BnYkSjuU.js} +2 -2
  134. package/dist/cs-CZ-CQoPRxwA.js +7 -0
  135. package/dist/{cs-CZ-DUNmRoYr.js → cs-CZ-CX7RYS3J.js} +8 -2
  136. package/dist/{cs-CZ-DyLd-erd.js → cs-CZ-DfKxKCsI.js} +16 -2
  137. package/dist/{da-DK-Dhr4p-qj.js → da-DK-BrKeONXP.js} +16 -2
  138. package/dist/da-DK-CEe5TTUa.js +7 -0
  139. package/dist/{da-DK-CWWLFjfT.js → da-DK-Cs_2K6Rd.js} +8 -2
  140. package/dist/{de-DE-QDT6VVq9.js → de-DE-CaVZKsmT.js} +16 -2
  141. package/dist/{de-DE-LLIuFER0.js → de-DE-oR2bSTbA.js} +8 -2
  142. package/dist/de-DE-ut0CGES0.js +7 -0
  143. package/dist/{document-1-BPWF8zKf.js → document-1-CEBgjg1t.js} +2 -2
  144. package/dist/{document-person-DVRFNq7g.js → document-person-DO7-omhK.js} +2 -2
  145. package/dist/{download-DfdpoHdN.js → download-CG9nbHZJ.js} +2 -2
  146. package/dist/{dropinUtils-QIBtEAdk.js → dropinUtils-DBnjaFWb.js} +13 -88
  147. package/dist/{edit-1-BgVB06zI.js → edit-1-CCyg-Tid.js} +2 -2
  148. package/dist/el-GR-BEWi0DRN.js +7 -0
  149. package/dist/{el-GR-V2cZ5gjl.js → el-GR-DHA0rkvc.js} +16 -2
  150. package/dist/{el-GR-D9MFsese.js → el-GR-_mz9wRt2.js} +8 -2
  151. package/dist/{en-US-BMMx67Za.js → en-US-B7V_rOZV.js} +4 -2
  152. package/dist/en-US-BLUu-I1a.js +7 -0
  153. package/dist/en-US-BWzZpVaj.js +7 -0
  154. package/dist/{error-ChMPaOO8.js → error-C05wuAm2.js} +3 -3
  155. package/dist/es-ES-3Z6u7_Cv.js +7 -0
  156. package/dist/{es-ES-N-uqwvEU.js → es-ES-B9_eURa2.js} +8 -2
  157. package/dist/{es-ES-SsReQJzQ.js → es-ES-DsWec_oM.js} +16 -2
  158. package/dist/es-LA-BgYaYfYK.js +7 -0
  159. package/dist/{es-LA-DcnCNM5a.js → es-LA-BlWaKaxj.js} +8 -2
  160. package/dist/{es-LA-DTXCg1tj.js → es-LA-D0FhHrwN.js} +16 -2
  161. package/dist/{et-EE-Bg3WOS9m.js → et-EE-Bp9-vCYs.js} +16 -2
  162. package/dist/et-EE-CxTHKlGm.js +7 -0
  163. package/dist/{et-EE-CkJhiCVw.js → et-EE-D5kWenqz.js} +8 -2
  164. package/dist/{external-link-BbXGAtFE.js → external-link-De5M4oQX.js} +2 -2
  165. package/dist/fi-FI-BE-RoRL5.js +7 -0
  166. package/dist/{fi-FI-D0ZPYGD3.js → fi-FI-DBuyocuK.js} +8 -2
  167. package/dist/{fi-FI-B1RyWVH2.js → fi-FI-DcwOxjVV.js} +16 -2
  168. package/dist/{useIndustryCodes-La1cU8oH.js → fieldConfig-28YDsFPu.js} +13 -2
  169. package/dist/{formatDataForSummary-GZH9C1ax.js → formatDataForSummary-Ccs4H7BO.js} +10 -10
  170. package/dist/{formatValidationError-C_3FU4uR.js → formatValidationError-DIPpFoJQ.js} +2 -2
  171. package/dist/{fr-FR-DXXrJUKC.js → fr-FR-CISoBKEC.js} +8 -2
  172. package/dist/fr-FR-Db4EY5iv.js +7 -0
  173. package/dist/{fr-FR-C3Zi7-JE.js → fr-FR-_ytHUJlx.js} +16 -2
  174. package/dist/{getDefaultRegistrationNumberType-CayCB3n0.js → getDefaultRegistrationNumberType-C3OAyMCv.js} +5 -4
  175. package/dist/{getTrustedDecisionMakers-DByctgob.js → getTrustedDecisionMakers-CD9uLmHi.js} +2 -2
  176. package/dist/{getValidationError-DnDzz5ju.js → getValidationError-C00cY5Gg.js} +2 -2
  177. package/dist/{gift-BjS6ErNG.js → gift-BSFlM5Ut.js} +2 -2
  178. package/dist/{graph-B8rX9eXr.js → graph-DsJyeMAQ.js} +2 -2
  179. package/dist/{graph-up-Dwaq7upe.js → graph-up-NgJWuRLx.js} +2 -2
  180. package/dist/{headquarter-CXwws_UP.js → headquarter-DfM7M5jR.js} +2 -2
  181. package/dist/{hotel-CD5Lv9P7.js → hotel-rSbiYsRy.js} +2 -2
  182. package/dist/{hr-HR-BeZ1eUy7.js → hr-HR-CXYzhrLe.js} +8 -2
  183. package/dist/{hr-HR-CH9yGEPn.js → hr-HR-Cb9wbqiH.js} +16 -2
  184. package/dist/hr-HR-qvMOxoRF.js +7 -0
  185. package/dist/hu-HU-BNk4CovT.js +7 -0
  186. package/dist/{hu-HU-BhliM1LD.js → hu-HU-HetRpHop.js} +8 -2
  187. package/dist/{hu-HU-DpUG3GwC.js → hu-HU-d15vxL_S.js} +16 -2
  188. package/dist/{image-BTE2a8ZV.js → image-CMNC56qX.js} +2 -2
  189. package/dist/{info-BTc0bCCM.js → info-B41z2nKP.js} +2 -2
  190. package/dist/{info-filled-DhYinieW.js → info-filled-uHSCed8u.js} +2 -2
  191. package/dist/{useId-MW2hvVJz.js → invalidateRootLegalEntity-DrJp13W1.js} +4 -26
  192. package/dist/{it-IT-BEEsgu4Z.js → it-IT-DBatLxXf.js} +16 -2
  193. package/dist/{it-IT-BULBjWDc.js → it-IT-DUCIA7fo.js} +8 -2
  194. package/dist/it-IT-RatP9WIw.js +7 -0
  195. package/dist/ja-JP-BILx8dc7.js +7 -0
  196. package/dist/{ja-JP-BjMyxZiN.js → ja-JP-BNHFH7FM.js} +2 -2
  197. package/dist/{ja-JP-CcXk7Gcc.js → ja-JP-BRdSqCDF.js} +16 -2
  198. package/dist/{ja-JP-ByMh2iUh.js → ja-JP-CmiLlpqW.js} +8 -2
  199. package/dist/{location-CwE3Q0gg.js → location-BKdbMTik.js} +2 -2
  200. package/dist/lt-LT-CZ2yA_Km.js +7 -0
  201. package/dist/{lt-LT-CGgbFwbx.js → lt-LT-DbzhtTak.js} +16 -2
  202. package/dist/{lt-LT-CiKIZfk8.js → lt-LT-YfU6BGpp.js} +8 -2
  203. package/dist/lv-LV-AGwJD157.js +7 -0
  204. package/dist/{lv-LV-Ck_aQ4ML.js → lv-LV-B17wL3y6.js} +16 -2
  205. package/dist/{lv-LV-u-vJn6T3.js → lv-LV-C0PK4MKA.js} +8 -2
  206. package/dist/{mail-CIeugZTd.js → mail-BRy0YL8P.js} +2 -2
  207. package/dist/{mapAddressLocalizationToJpAddressSchema-FUdkDZLN.js → mapAddressLocalizationToJpAddressSchema-CyNuoq1S.js} +2 -2
  208. package/dist/{mapJpAddressSchemaToAddressLocalizations-BCNX0LPr.js → mapJpAddressSchemaToAddressLocalizations-BtkCWRQU.js} +3 -3
  209. package/dist/{mapTransferInstrumentToPayoutAccount-BUKwzRyA.js → mapTransferInstrumentToPayoutAccount-Dq0983R5.js} +2 -2
  210. package/dist/{minus-circle-filled-96DZCdcJ.js → minus-circle-filled-CLNsVzoi.js} +2 -2
  211. package/dist/{nl-NL-B8REgP66.js → nl-NL-CXeqs7dv.js} +8 -2
  212. package/dist/{nl-NL-_hbzuQ0h.js → nl-NL-CfQsmGB5.js} +16 -2
  213. package/dist/nl-NL-DNXcBpml.js +7 -0
  214. package/dist/{no-NO-B_ijkAtf.js → no-NO-B1dqTSiS.js} +16 -2
  215. package/dist/{no-NO-vasSCJdc.js → no-NO-C2sdKw0r.js} +8 -2
  216. package/dist/no-NO-vY4nfY9g.js +7 -0
  217. package/dist/{options-horizontal-BU9r-Xx3.js → options-horizontal-CRXmLqnK.js} +2 -2
  218. package/dist/{partner-C1SWc0pB.js → partner-cWS5lNgW.js} +2 -2
  219. package/dist/{pay-by-link-plane-xK4Zkol0.js → pay-by-link-plane-BAhi6LNR.js} +2 -2
  220. package/dist/{payout-zGf0LNbo.js → payout-3fsBXC47.js} +2 -2
  221. package/dist/{person-xTKhpEGR.js → person-Uffsnqkd.js} +2 -2
  222. package/dist/{pl-PL-wpXnySZL.js → pl-PL-BD5OF888.js} +8 -2
  223. package/dist/{pl-PL-u6DrL8IY.js → pl-PL-DSwjmRZS.js} +16 -2
  224. package/dist/pl-PL-KmUtZ6lq.js +7 -0
  225. package/dist/{plus-Cm_dWRpB.js → plus-CPdn1NyG.js} +2 -2
  226. package/dist/{plus-circle-filled-Df77eidx.js → plus-circle-filled-DN0LL-qV.js} +2 -2
  227. package/dist/{processValidationErrors-BtJpzvvf.js → processValidationErrors-D0qSlh3W.js} +3 -3
  228. package/dist/{pt-BR-C5d5CGRt.js → pt-BR-DEBXxRwN.js} +8 -2
  229. package/dist/{pt-BR-CPS77pGy.js → pt-BR-_3W6lRmq.js} +16 -2
  230. package/dist/pt-BR-tQCWRhmf.js +7 -0
  231. package/dist/{pt-PT-B6OslB_S.js → pt-PT-BLpMJNOh.js} +8 -2
  232. package/dist/{pt-PT-DIKqQR6V.js → pt-PT-BUEnW3xZ.js} +16 -2
  233. package/dist/pt-PT-ZNVCYAr4.js +7 -0
  234. package/dist/{recurring-BfwVHJ2Z.js → recurring-CMo7EaV-.js} +2 -2
  235. package/dist/{resolveEnvironment-A2E4srza.js → registerEmbed-DQqTWYX2.js} +106 -46
  236. package/dist/{revenue-accelerate-ClN0cx7Z.js → revenue-accelerate-BkzY3gMh.js} +2 -2
  237. package/dist/{ro-RO-Cg1nG9ns.js → ro-RO-B4LyC5yt.js} +16 -2
  238. package/dist/{ro-RO-dG27cZbT.js → ro-RO-CHA0yVBc.js} +8 -2
  239. package/dist/ro-RO-DDdUFz6E.js +7 -0
  240. package/dist/{roleMetadata-BFD8qjDC.js → roleMetadata-B1KP0JZL.js} +3 -3
  241. package/dist/{save-QK2A-teG.js → save-B1AE8MD9.js} +2 -2
  242. package/dist/{search-DVSyT7Q7.js → search-7HzLTqcY.js} +2 -2
  243. package/dist/{show-BRWLIRSA.js → show-DWurwnTZ.js} +2 -2
  244. package/dist/{sk-SK-Woc9AmiO.js → sk-SK-CI_QfG7S.js} +8 -2
  245. package/dist/{sk-SK-CRfiVN3e.js → sk-SK-CLhssOsk.js} +16 -2
  246. package/dist/sk-SK-DdDdEYiT.js +7 -0
  247. package/dist/{sl-SI-C03fXovT.js → sl-SI-DtZuFHYG.js} +8 -2
  248. package/dist/{sl-SI-Dpr3StsS.js → sl-SI-QgSjXf-1.js} +16 -2
  249. package/dist/sl-SI-vefne3eU.js +7 -0
  250. package/dist/{solution-payments-BZZceFVV.js → solution-payments-DhmPJwd_.js} +2 -2
  251. package/dist/{store-DLKKLXhn.js → store-fpEz2G1Q.js} +2 -2
  252. package/dist/style.css +184 -169
  253. package/dist/styles-DYaAeu4q.js +184 -169
  254. package/dist/{sv-SE-D5eIbgkk.js → sv-SE-B5pp1e_g.js} +8 -2
  255. package/dist/{sv-SE-CH4wMrUZ.js → sv-SE-BJgBNvRa.js} +16 -2
  256. package/dist/sv-SE-DIDlUvzM.js +7 -0
  257. package/dist/tanstackValidation-BgAM9eKo.js +20 -0
  258. package/dist/{terminal-1-CpAyEdjO.js → terminal-1-6ggvAFrO.js} +2 -2
  259. package/dist/types/adaptiveWorkflow/component-registry.d.ts +6 -6
  260. package/dist/types/adaptiveWorkflow/components/Fields/TaxInformation/TaxInformationFieldGroup.d.ts +2 -2
  261. package/dist/types/adaptiveWorkflow/components/Layout/ComponentGroup/ComponentGroup.d.ts +1 -1
  262. package/dist/types/adaptiveWorkflow/components/Layout/DynamicForm/DynamicForm.d.ts +1 -1
  263. package/dist/types/adaptiveWorkflow/components/Layout/Steps/Step/Step.d.ts +1 -1
  264. package/dist/types/adaptiveWorkflow/components/Layout/Task/Task.d.ts +1 -1
  265. package/dist/types/adaptiveWorkflow/components/Layout/TaskGroup/TaskGroup.d.ts +1 -1
  266. package/dist/types/adaptiveWorkflow/components/Layout/UboTaskItem/UboTaskItem.d.ts +1 -1
  267. package/dist/types/adaptiveWorkflow/components/Layout/Workflow/Workflow.d.ts +1 -1
  268. package/dist/types/adaptiveWorkflow/components/NodeRenderer/CompoundFieldRenderer.d.ts +2 -2
  269. package/dist/types/adaptiveWorkflow/components/NodeRenderer/LayoutRenderer.d.ts +1 -1
  270. package/dist/types/adaptiveWorkflow/components/NodeRenderer/NodeRenderer.d.ts +11 -11
  271. package/dist/types/adaptiveWorkflow/components/NodeRenderer/SimpleFieldRenderer.d.ts +1 -1
  272. package/dist/types/adaptiveWorkflow/components/NodeRenderer/SpecializedStepRenderer.d.ts +1 -1
  273. package/dist/types/adaptiveWorkflow/utils/deriveNodeState.d.ts +10 -0
  274. package/dist/types/adaptiveWorkflow/utils/tanstackValidation.d.ts +14 -0
  275. package/dist/types/adaptiveWorkflow/utils/utils.d.ts +2 -3
  276. package/dist/types/api/adaptive/adaptiveWorkflow.types.d.ts +71 -12
  277. package/dist/types/api/draft/useCreateDraft.d.ts +3 -0
  278. package/dist/types/api/draft/useGetDraft.d.ts +5 -0
  279. package/dist/types/api/draft/useUpdateDraft.d.ts +3 -0
  280. package/dist/types/api/queryKeys.d.ts +2 -1
  281. package/dist/types/components/Business/hooks/useSubmitBusinessDetails.d.ts +1 -1
  282. package/dist/types/components/Business/hooks/useSubmitBusinessDetails.types.d.ts +21 -5
  283. package/dist/types/components/Business/utils/buildRequiredForms.d.ts +1 -0
  284. package/dist/types/components/Business/utils/isEligibleForReducedBusinessDetailsFlow.d.ts +15 -0
  285. package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +27 -27
  286. package/dist/types/components/GlobalEntry/fields/DbaQuestionnaire/types.d.ts +1 -1
  287. package/dist/types/components/GlobalEntry/fields/PrimaryPartnerTypeField/PrimaryPartnerTypeField.d.ts +1 -1
  288. package/dist/types/components/GlobalEntry/fields/PrimaryPartnerTypeField/types.d.ts +3 -1
  289. package/dist/types/components/GlobalEntry/fields/SingpassSelectionCTA/SingpassSelectionCTA.d.ts +6 -0
  290. package/dist/types/components/GlobalEntry/forms/RegistrationInformation/RegistrationInformation.d.ts +3 -2
  291. package/dist/types/components/GlobalEntry/rules.d.ts +1 -1
  292. package/dist/types/components/GlobalEntry/tasks/GlobalEntry.d.ts +2 -1
  293. package/dist/types/components/GlobalEntry/utils/utils.d.ts +9 -0
  294. package/dist/types/components/Shared/FormFlow/FormFlow.d.ts +1 -1
  295. package/dist/types/components/Shared/FormFlow/FormFlow.types.d.ts +1 -0
  296. package/dist/types/components/Shared/SaveForLater/SaveForLaterButton.d.ts +8 -0
  297. package/dist/types/components/Shared/SaveForLater/draftMetadata.d.ts +24 -0
  298. package/dist/types/components/Shared/SaveForLater/useSaveForLater.d.ts +32 -0
  299. package/dist/types/components/Shared/devex/DebugListener/DebugThemeEditor.d.ts +10 -0
  300. package/dist/types/components/Shared/devex/DebugListener/customTheme.d.ts +20 -8
  301. package/dist/types/components/Shared/fields/TaxInformationField/taxIdNumberTypes.d.ts +11 -0
  302. package/dist/types/components/Shared/fields/TaxInformationField/utils.d.ts +18 -1
  303. package/dist/types/components/Shared/forms/Address/rules.d.ts +10 -1
  304. package/dist/types/components/Shared/forms/Address/utils.d.ts +2 -2
  305. package/dist/types/context/ToggleContext/types.d.ts +16 -4
  306. package/dist/types/core/EmbedShell/themeMode.d.ts +12 -0
  307. package/dist/types/core/registerEmbed/registerEmbed.d.ts +12 -0
  308. package/dist/types/hooks/singpass/useSingpassMyInfoLogin.d.ts +1 -1
  309. package/dist/types/utils/deepMerge.d.ts +1 -0
  310. package/dist/types/utils/entityStatusUtil.d.ts +1 -1
  311. package/dist/{types-DVMWWwBT.js → types-CP3D_hFv.js} +1 -1
  312. package/dist/{unincorporatedPartnership-7X9o2wKi.js → unincorporatedPartnership-E0Wffo2-.js} +2 -2
  313. package/dist/{upload-BI7LKlDm.js → upload-DF1deAl3.js} +2 -2
  314. package/dist/{useBusinessDetailsData-Cs15bK0B.js → useBusinessDetailsData-B2jIzpVP.js} +248 -158
  315. package/dist/{useCanSeeIntroduction-DzYOn-jJ.js → useCanSeeIntroduction-CguqBHaC.js} +3 -3
  316. package/dist/{useForm-CPOxg890.js → useForm-CwWvs060.js} +3 -3
  317. package/dist/{useHideTaskStepper-Betx9MGy.js → useHideTaskStepper-DvHXw3zd.js} +1 -1
  318. package/dist/{Modal-afeMXOOn.js → useId-BV444pyC.js} +27 -5
  319. package/dist/{useNavigate-C9pHkW9F.js → useNavigate-BPvz7b_2.js} +33 -33
  320. package/dist/{useSalesChannels-D2UblAHt.js → useSalesChannels-GPyBj7Bk.js} +2 -2
  321. package/dist/useSaveForLater-BSIOwMfL.js +200 -0
  322. package/dist/{useTaskLandedEvent-B_GbpCRR.js → useTaskLandedEvent-CuOu8Sqr.js} +2 -2
  323. package/dist/{useTrustMembers-bzYJw-8r.js → useTrustMembers-Dwbb5xh4.js} +2 -2
  324. package/dist/{useUnincorporatedPartnershipMembers-CM8pXQIa.js → useUnincorporatedPartnershipMembers-1bLF5aPT.js} +2 -2
  325. package/dist/{utils-Dpvxf5_a.js → utils-BPKdYHDB.js} +2 -2
  326. package/dist/{utils-B5D6FxHi.js → utils-B_dD2dvD.js} +3 -4
  327. package/dist/{utils-DTuKY6NW.js → utils-tMG2x_WY.js} +2 -2
  328. package/dist/{validate-CIG89n0Q.js → validate-BZLQWEd-.js} +2 -2
  329. package/dist/{validate-DCrnvbfv.js → validate-BlsJOvUC.js} +15 -10
  330. package/dist/{validate-DEqWFrmE.js → validate-DlL0gf63.js} +4 -4
  331. package/dist/{validate-D0s1xnXY.js → validate-Dtlyak_C.js} +3 -3
  332. package/dist/{validateExtractionResult-D3AuQo5-.js → validateExtractionResult-BD0Vu-XF.js} +2 -2
  333. package/dist/{warning-circle-fill-ClFvGo5m.js → warning-circle-fill-tyigXMGG.js} +2 -2
  334. package/dist/{warning-diamond-filled-CWyKR65i.js → warning-diamond-filled-uHVDhfcX.js} +2 -2
  335. package/dist/{webinar-DWX7Z5Wz.js → webinar-C70iLMbf.js} +2 -2
  336. package/package.json +5 -5
  337. package/dist/Icon-jVvV1zXc.js +0 -175
  338. package/dist/bg-BG-Cdrkwxmc.js +0 -7
  339. package/dist/cs-CZ-DpiH1UkS.js +0 -7
  340. package/dist/da-DK-B-BJLcqw.js +0 -7
  341. package/dist/de-DE-BxTGFyOs.js +0 -7
  342. package/dist/el-GR-IQwyd9ws.js +0 -7
  343. package/dist/en-US-8KLaHQaT.js +0 -7
  344. package/dist/en-US-DPr5RN3e.js +0 -7
  345. package/dist/es-ES-Cg2IadcX.js +0 -7
  346. package/dist/es-LA-DvMpG4FP.js +0 -7
  347. package/dist/et-EE-eGeytyQh.js +0 -7
  348. package/dist/fi-FI-C02wZfgW.js +0 -7
  349. package/dist/fr-FR-CE7k9H5_.js +0 -7
  350. package/dist/hr-HR-B12DcJ3l.js +0 -7
  351. package/dist/hu-HU-cosbDuos.js +0 -7
  352. package/dist/it-IT-CiKoOxzk.js +0 -7
  353. package/dist/ja-JP-D7PEVMmT.js +0 -7
  354. package/dist/lt-LT-C2oxTakB.js +0 -7
  355. package/dist/lv-LV-C_KVkpid.js +0 -7
  356. package/dist/nl-NL-CwNBy0Ku.js +0 -7
  357. package/dist/no-NO-VqkeNhzB.js +0 -7
  358. package/dist/pl-PL-Bp218jDD.js +0 -7
  359. package/dist/pt-BR-CPbFPNwq.js +0 -7
  360. package/dist/pt-PT-Bz39smeX.js +0 -7
  361. package/dist/ro-RO-jNItoBZk.js +0 -7
  362. package/dist/sk-SK-CsSqXqf_.js +0 -7
  363. package/dist/sl-SI-PRqWis0E.js +0 -7
  364. package/dist/sv-SE-Dv-rMOdB.js +0 -7
  365. package/dist/types/adaptiveWorkflow/components/types.d.ts +0 -50
@@ -1,14 +1,14 @@
1
1
  try {
2
2
  let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
3
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "9cd4a731-32bf-4407-9bc3-10af39f1116b", e._sentryDebugIdIdentifier = "sentry-dbid-9cd4a731-32bf-4407-9bc3-10af39f1116b");
3
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "4f60848c-da97-41b6-9262-0d24c1f96a1a", e._sentryDebugIdIdentifier = "sentry-dbid-4f60848c-da97-41b6-9262-0d24c1f96a1a");
4
4
  } catch (e) {}
5
5
  import { n as addResourceBundles, r as useTranslation } from "./translation-CpH8D2NK.js";
6
- import { C as Alert, M as _rolldown_dynamic_import_helper_default, O as useAllowedCountries, gt as useAccountHolder, j as Header, ot as isEmpty } from "./resolveEnvironment-A2E4srza.js";
6
+ import { A as useAllowedCountries, N as Header, P as _rolldown_dynamic_import_helper_default, T as Alert, _ as isPartOfTrustFromLegalEntity, ct as isEmpty, vt as useAccountHolder } from "./registerEmbed-DQqTWYX2.js";
7
7
  import { t as createLogger } from "./logger-Z8AeTE4x.js";
8
8
  import { t as Typography } from "./Typography-CAc_f5Iq.js";
9
9
  import { t as Loader } from "./Loader-BDaKGf77.js";
10
- import { t as Button } from "./Button-BYafPrZH.js";
11
- import { s as useApiContext } from "./http-C8rt2BZk.js";
10
+ import { t as Button } from "./Button-EhGM-oCO.js";
11
+ import { r as httpPost, s as useApiContext } from "./http-C8rt2BZk.js";
12
12
  import { t as getLegalEntityCountry } from "./getLegalEntityCountry-BK-HHa65.js";
13
13
  import { t as useSettingsContext } from "./useSettingsContext-Bpf4UqRT.js";
14
14
  import { s as keysOf } from "./genUtils-nphCwt1A.js";
@@ -17,30 +17,172 @@ import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
17
17
  import { y as reverseMapping } from "./processCapabilities-B75YIdXZ.js";
18
18
  import { t as TaskTypes } from "./taskTypes-3vSkMBDm.js";
19
19
  import { f as hasSolePropInLegalEntity, s as getOwnEntityAssociations } from "./entityAssociationUtil-BlfcBl3i.js";
20
- import { i as useToggleContext, r as useDebouncedCallback } from "./Checkbox-CEkD-Lpm.js";
21
- import { i as useAnalyticsContext } from "./Modal-afeMXOOn.js";
22
- import { t as InputText } from "./InputText-BwXmy0Yr.js";
23
- import { t as ListItem } from "./ListItem-n927geYb.js";
20
+ import { i as useToggleContext, r as useDebouncedCallback } from "./Checkbox-CyMoenl6.js";
21
+ import { a as useAnalyticsContext } from "./useId-BV444pyC.js";
22
+ import { r as InputText } from "./RadioGroup-CEi7ZDGi.js";
23
+ import { i as getTrustedFieldsProvider, t as ListItem } from "./ListItem-aX6AyCay.js";
24
24
  import { t as getFormSlice } from "./getFormSlice-CxtXJ0-P.js";
25
25
  import { t as Card } from "./Card-BCGLpdw7.js";
26
- import { r as useToastContext } from "./useId-MW2hvVJz.js";
27
- import { a as resolveFieldMetadata, c as getPropsFromConfigurations, r as createFormRules } from "./unincorporatedPartnership-7X9o2wKi.js";
28
- import { o as Field, p as LoaderWrapper } from "./Select-DPJ8234F.js";
29
- import { o as StructuredList, r as formatObject, s as Confirm } from "./utils-B5D6FxHi.js";
30
- import { a as CountryOfGoverningLawField, c as useCompanyTypeExamples, d as companySearchQueryOptions, f as useCompanySearch, h as useClearCompanyData, i as COUNTRY_OF_GOVERNING_LAW_FIELD, l as useCompanySelection, m as useStoredStateOrProvince, n as COUNTRY_OF_GOVERNING_LAW_POSSIBLE, o as useLegalCompanyNameField, p as trackPerformance, r as isNormalizedStringMatch, t as CountryOfGoverningLawFieldValidation, u as verifyTinQueryOptions } from "./validate-DCrnvbfv.js";
31
- import { d as COUNTRIES_WITH_STATES_DATASET, h as useUpdateLegalEntity, n as StateField, p as isJapanLocalizationEnabled, r as stateFieldMetadata, t as STATE_FIELD } from "./StateField-LcRkkvIH.js";
32
- import { R as useMultiForm, U as summaryStep, V as useFormComposer, W as FormContextProvider, b as useFormContext, c as List, l as COUNTRY_FIELD, p as isBusinessSelectionLegalArrangementError, t as addValidityToForms, u as CountryField, v as createFormUtils, x as FormFlow } from "./dropinUtils-QIBtEAdk.js";
33
- import { D as COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER, E as COUNTRIES_USING_COMPANY_SEARCH, F as isRegistrationNumberAbsentStateV4Scenario, H as getValidCompanyTypesForTaxIdNumberType, L as mapJapaneseLegalNamesToLocalization, M as REGISTRATION_NUMBER_EXEMPTION_RULES, N as TAX_ID_REQUIRED_COUNTRIES_ORGANIZATION, P as isRegistrationExemptionAllowed, R as mapLocalizationToJapaneseLegalNames, S as COUNTRIES_THAT_DONT_REQUIRE_COMPANY_REGISTRATION, T as COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT, W as TileGroup, _ as getTaxInformationPlaceholderText, c as DataConflictsModal, j as COUNTRIES_WITH_POSSIBLE_TRUSTEE_TAXID_ABSENT_V4, k as COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_COMPANIES, l as TAX_INFORMATION_FIELD, u as TaxInformationField, v as taxInformationDefaultFieldConfig, y as taxInformationDefaultFieldMetadata } from "./bafinUtils-DNq-JBP5.js";
34
- import { a as getValidCompanyTypesForRegistrationNumberType, l as registrationNumberDefaultFieldConfig, r as inferCompanyRegistrationNumberType, u as registrationNumberDefaultFieldMetadata } from "./getDefaultRegistrationNumberType-CayCB3n0.js";
26
+ import { n as useToastContext } from "./invalidateRootLegalEntity-DrJp13W1.js";
27
+ import { a as resolveFieldMetadata, c as getPropsFromConfigurations, r as createFormRules } from "./unincorporatedPartnership-E0Wffo2-.js";
28
+ import { o as Field, p as LoaderWrapper } from "./Select-DTqe0uNK.js";
29
+ import { o as StructuredList, r as formatObject, s as Confirm } from "./utils-B_dD2dvD.js";
30
+ import { a as CountryOfGoverningLawField, c as useCompanyTypeExamples, d as verifyTinQueryOptions, f as companySearchQueryOptions, g as useClearCompanyData, h as useStoredStateOrProvince, i as COUNTRY_OF_GOVERNING_LAW_FIELD, l as useCompanySelection, m as trackPerformance, n as COUNTRY_OF_GOVERNING_LAW_POSSIBLE, o as useLegalCompanyNameField, p as useCompanySearch, r as isNormalizedStringMatch, t as CountryOfGoverningLawFieldValidation } from "./validate-BlsJOvUC.js";
31
+ import { d as COUNTRIES_WITH_STATES_DATASET, h as useUpdateLegalEntity, n as StateField, p as isJapanLocalizationEnabled, r as stateFieldMetadata, t as STATE_FIELD } from "./StateField-DgYpF1_M.js";
32
+ import { H as FormContextProvider, I as useMultiForm, V as summaryStep, c as CountryField, d as isBusinessSelectionLegalArrangementError, g as createFormUtils, o as List, s as COUNTRY_FIELD, t as addValidityToForms, v as useFormContext, y as FormFlow, z as useFormComposer } from "./dropinUtils-DBnjaFWb.js";
33
+ import { A as REGISTRATION_NUMBER_EXEMPTION_RULES, B as getValidCompanyTypesForTaxIdNumberType, C as COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT, D as COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_COMPANIES, F as mapJapaneseLegalNamesToLocalization, H as TileGroup, I as mapLocalizationToJapaneseLegalNames, M as isRegistrationExemptionAllowed, N as isRegistrationNumberAbsentStateV4Scenario, T as COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER, _ as taxInformationDefaultFieldMetadata, b as COUNTRIES_THAT_DONT_REQUIRE_COMPANY_REGISTRATION, c as DataConflictsModal, g as taxInformationDefaultFieldConfig, h as getTaxInformationPlaceholderText, j as TAX_ID_REQUIRED_COUNTRIES_ORGANIZATION, k as COUNTRIES_WITH_POSSIBLE_TRUSTEE_TAXID_ABSENT_V4, l as TAX_INFORMATION_FIELD, u as TaxInformationField, w as COUNTRIES_USING_COMPANY_SEARCH } from "./bafinUtils-CFvCTqAt.js";
34
+ import { a as getValidCompanyTypesForRegistrationNumberType, l as registrationNumberDefaultFieldConfig, r as inferCompanyRegistrationNumberType, u as registrationNumberDefaultFieldMetadata } from "./getDefaultRegistrationNumberType-C3OAyMCv.js";
35
35
  import { a as TRUST_COUNTRIES, i as SOLE_PROP_COUNTRIES, n as INDIVIDUALS_WHO_TRADE_COUNTRIES, t as ALLOWED_UNINCORPORATED_PARTNERSHIP_COUNTRIES } from "./legalArrangementUtils-CHlmmcB8.js";
36
- import { a as defaultFieldMetadata, i as defaultFieldConfigV4, o as defaultFieldMetadataV4, r as defaultFieldConfig, t as LEGAL_COMPANY_NAME_FIELD } from "./LegalCompanyNameField-DFo-ZOZk.js";
37
- import { n as BusinessRegistrationNumberField, t as BUSINESS_REGISTRATION_NUMBER_FIELD } from "./BusinessRegistrationNumberField-BdMxV-Tb.js";
38
- import { useCallback, useContext, useEffect, useMemo, useRef, useState } from "preact/hooks";
39
- import { Fragment, jsx, jsxs } from "preact/jsx-runtime";
36
+ import { a as defaultFieldMetadata, i as defaultFieldConfigV4, o as defaultFieldMetadataV4, r as defaultFieldConfig, t as LEGAL_COMPANY_NAME_FIELD } from "./LegalCompanyNameField-4bmqY29I.js";
37
+ import { n as BusinessRegistrationNumberField, t as BUSINESS_REGISTRATION_NUMBER_FIELD } from "./BusinessRegistrationNumberField-B1O-D58L.js";
38
+ import { Suspense, lazy } from "preact/compat";
39
+ import { useCallback as useCallback$1, useContext as useContext$1, useEffect as useEffect$1, useMemo as useMemo$1, useReducer, useRef as useRef$1, useState as useState$1 } from "preact/hooks";
40
+ import { Fragment as Fragment$1, jsx, jsxs } from "preact/jsx-runtime";
40
41
  import { createModel, signal, useModel, useSignal } from "@preact/signals";
41
- import { useQueryClient } from "@tanstack/preact-query";
42
- import { createContext } from "preact";
42
+ import { useQuery, useQueryClient } from "@tanstack/preact-query";
43
+ import { createContext as createContext$1 } from "preact";
43
44
  import { Show } from "@preact/signals/utils";
45
+ //#region src/api/openId/useOpenIdAuthorizationLink.ts
46
+ async function convertToSingpassLinkResponse(openIdInitiateResponse) {
47
+ return { item: {
48
+ authUrl: (await Promise.resolve(openIdInitiateResponse)).authUrl,
49
+ success: true
50
+ } };
51
+ }
52
+ var useOpenIdAuthorizationLink = (options) => {
53
+ const { rootLegalEntityId, baseUrl } = useApiContext();
54
+ return useQuery({
55
+ queryKey: ["openIdAuthorizationLink"],
56
+ queryFn: () => getOpenIdAuthorizationLink(rootLegalEntityId.value, baseUrl.value),
57
+ ...options
58
+ });
59
+ };
60
+ var getOpenIdAuthorizationLink = async (legalEntityId, baseUrl) => {
61
+ return convertToSingpassLinkResponse(httpPost({
62
+ baseUrl,
63
+ path: `/legalEntities/${legalEntityId}/openid/initiate`
64
+ }));
65
+ };
66
+ //#endregion
67
+ //#region src/hooks/singpass/useSingpassMyInfoLogin.ts
68
+ var SingpassMyInfoLoginActionTypes = {
69
+ LOADING: "LOADING",
70
+ SUCCESS: "SUCCESS",
71
+ FAILURE: "FAILURE",
72
+ RESET: "RESET"
73
+ };
74
+ var defaultSingpassState = {
75
+ isLoading: false,
76
+ isSuccess: false
77
+ };
78
+ var singpassReducer = (state, action) => {
79
+ switch (action.type) {
80
+ case SingpassMyInfoLoginActionTypes.LOADING: return {
81
+ ...state,
82
+ isLoading: true
83
+ };
84
+ case SingpassMyInfoLoginActionTypes.SUCCESS: return {
85
+ isLoading: false,
86
+ isSuccess: true
87
+ };
88
+ case SingpassMyInfoLoginActionTypes.FAILURE: return {
89
+ isLoading: false,
90
+ isSuccess: false,
91
+ errorMessage: action.errorMessage
92
+ };
93
+ case SingpassMyInfoLoginActionTypes.RESET: return defaultSingpassState;
94
+ default: return state;
95
+ }
96
+ };
97
+ var useSingpassMyInfoLogin = ({ legalEntity, accountHolder }) => {
98
+ const { isFeatureEnabled } = useToggleContext();
99
+ const isSingpassMyInfoEnabled = isFeatureEnabled("SingpassMyInfoEnabled");
100
+ const defaultState = {
101
+ isLoading: false,
102
+ isSuccess: getTrustedFieldsProvider(legalEntity) === "singpass"
103
+ };
104
+ const userEvents = useAnalyticsContext();
105
+ const [state, dispatch] = useReducer(singpassReducer, defaultState);
106
+ const { refetch: fetchOpenIdAuthorizationLink } = useOpenIdAuthorizationLink({ enabled: false });
107
+ const singpassTabRef = useRef$1(null);
108
+ const isEligibleForSingpass = useMemo$1(() => {
109
+ if (!legalEntity) return false;
110
+ if (getLegalEntityCountry(legalEntity) !== CountryCodes.Singapore) return false;
111
+ if (accountHolder) {
112
+ if (accountHolder === "myName") return isSingpassMyInfoEnabled;
113
+ return accountHolder === "theCompanyIWorkFor";
114
+ }
115
+ const legalEntityType = legalEntity.type;
116
+ const isPartOfTrust = isPartOfTrustFromLegalEntity(legalEntity);
117
+ const isVanillaOrganization = legalEntityType === "organization" && !isPartOfTrust;
118
+ const hasSoleProprietor = hasSolePropInLegalEntity(legalEntity);
119
+ return isVanillaOrganization || legalEntityType === "individual" && !hasSoleProprietor && isSingpassMyInfoEnabled;
120
+ }, [
121
+ legalEntity,
122
+ accountHolder,
123
+ isSingpassMyInfoEnabled
124
+ ]);
125
+ const handleInitiateSingpassMyInfoLogin = async () => {
126
+ const singpassWindow = window.open("", "_blank");
127
+ if (!singpassWindow) throw new Error("Failed to open Singpass window");
128
+ singpassTabRef.current = singpassWindow;
129
+ dispatch({
130
+ ...state,
131
+ type: SingpassMyInfoLoginActionTypes.LOADING
132
+ });
133
+ try {
134
+ const { data } = await fetchOpenIdAuthorizationLink();
135
+ const authUrl = data?.item.authUrl;
136
+ if (!authUrl) throw new Error("OpenId authentication URL was not returned");
137
+ singpassWindow.location.href = authUrl;
138
+ singpassWindow.focus();
139
+ userEvents.addPageEvent("Success", {
140
+ actionType: "navigate",
141
+ label: "singpassVerification"
142
+ });
143
+ } catch (error) {
144
+ singpassWindow.close();
145
+ singpassTabRef.current = null;
146
+ throw error;
147
+ }
148
+ };
149
+ const handleSingpassMyInfoLoginSuccess = () => {
150
+ userEvents.addPageEvent("Success", {
151
+ actionType: "verify",
152
+ label: "singpassVerification"
153
+ });
154
+ dispatch({
155
+ ...state,
156
+ type: SingpassMyInfoLoginActionTypes.SUCCESS
157
+ });
158
+ };
159
+ const handleSingpassMyInfoLoginFailure = (errorMessage) => {
160
+ userEvents.addPageEvent("Encountered error", {
161
+ actionType: "navigate",
162
+ label: "singpassVerification"
163
+ });
164
+ dispatch({
165
+ ...state,
166
+ errorMessage,
167
+ type: SingpassMyInfoLoginActionTypes.FAILURE
168
+ });
169
+ };
170
+ const handleSingpassMyInfoLoginReset = () => {
171
+ dispatch({
172
+ ...state,
173
+ type: SingpassMyInfoLoginActionTypes.RESET
174
+ });
175
+ };
176
+ return {
177
+ isEligibleForSingpass,
178
+ state,
179
+ handleInitiateSingpassMyInfoLogin,
180
+ handleSingpassMyInfoLoginSuccess,
181
+ handleSingpassMyInfoLoginFailure,
182
+ handleSingpassMyInfoLoginReset
183
+ };
184
+ };
185
+ //#endregion
44
186
  //#region src/components/GlobalEntry/globalEntryStore.ts
45
187
  var showGlobalEntryModal = signal(false);
46
188
  //#endregion
@@ -149,7 +291,7 @@ function confirmBusinessAnalytics(userEvents, idx) {
149
291
  //#region src/components/GlobalEntry/forms/BusinessSelection/BusinessInformationCard/BusinessInformationCard.tsx
150
292
  function BusinessInformation({ fetching, selectedBusiness }) {
151
293
  const { t } = useTranslation(["common", "business"]);
152
- const cardDetails = useMemo(() => {
294
+ const cardDetails = useMemo$1(() => {
153
295
  if (!selectedBusiness) return [];
154
296
  const address = selectedBusiness.registeredAddress ?? selectedBusiness.principalPlaceOfBusinessAddress;
155
297
  const addressDetails = address && typeof address !== "string" && "fullAddress" in address ? address.fullAddress : void 0;
@@ -228,7 +370,7 @@ function BusinessSelection({ id, country }) {
228
370
  const queryClient = useQueryClient();
229
371
  const userEvents = useAnalyticsContext();
230
372
  const logger = createLogger();
231
- const companySearchStateModel = useContext(CompanySearchStateContext);
373
+ const companySearchStateModel = useContext$1(CompanySearchStateContext);
232
374
  const { data, valid, errors, requiredFields, optionalFields, trustedFields, fieldProblems, handleChange: handleChangeFor } = getFormSlice(form, "businessSelection");
233
375
  const { data: companySearchResponse, isLoading: searching } = useCompanySearch({
234
376
  name: companySearchStateModel.companySearchName.value ?? "",
@@ -254,7 +396,7 @@ function BusinessSelection({ id, country }) {
254
396
  * could perhaps auto-select the result, without caching, we'd have another spinner & wait time for
255
397
  * the user. Better to force a manual re-selection to work around our rough implementation details.
256
398
  */
257
- const isInitializedRef = useRef(false);
399
+ const isInitializedRef = useRef$1(false);
258
400
  if (!isInitializedRef.current) {
259
401
  if (data?.selectedBusinessId) {
260
402
  handleChangeFor("selectedBusinessId", "blur")("");
@@ -431,7 +573,10 @@ var determineAccountHolder = (data) => {
431
573
  const filedPaperwork = getFiledPaperwork(data);
432
574
  if (isSingleMemberLLC(data)) return "theCompanyIWorkFor";
433
575
  if (isTrustQuestionAsked(data) && data.registrationInformation.isTrust === "yes") return "aTrust";
434
- if (entitySetup === "justMe") return filedPaperwork === "yes" ? "mySoleProprietorName" : "myName";
576
+ if (entitySetup === "justMe") {
577
+ if (data.registrationInformation?.hasDoingBusinessAs === "yes") return "mySoleProprietorName";
578
+ return filedPaperwork === "yes" ? "mySoleProprietorName" : "myName";
579
+ }
435
580
  if (entitySetup === "partOfABusiness") {
436
581
  if (isUnincorporatedPartnership(data)) return "anUnincorporatedPartnership";
437
582
  if (isTrust(data)) return "aTrust";
@@ -443,6 +588,18 @@ var determineEntityAssociations = (data, accountHolder, legalEntity) => {
443
588
  if (!ownAssociations || ownAssociations.length === 0) return;
444
589
  return accountHolder !== determineAccountHolder(data) ? [] : void 0;
445
590
  };
591
+ var completeWithSingpass = async ({ rootLegalEntity, updateLegalEntity, onComplete, handleInitiateSingpassMyInfoLogin }) => {
592
+ if (rootLegalEntity.type !== "organization") await updateLegalEntity({
593
+ id: rootLegalEntity.id,
594
+ type: "organization"
595
+ });
596
+ if (rootLegalEntity.organization?.registeredAddress?.country !== CountryCodes.Singapore) await updateLegalEntity({
597
+ id: rootLegalEntity.id,
598
+ organization: { registeredAddress: { country: CountryCodes.Singapore } }
599
+ });
600
+ onComplete("theCompanyIWorkFor");
601
+ await handleInitiateSingpassMyInfoLogin();
602
+ };
446
603
  //#endregion
447
604
  //#region src/components/GlobalEntry/forms/CompanyStructure/CompanyStructure.tsx
448
605
  var COMPANY_STRUCTURE_FIELDS = ["organizationType"];
@@ -598,7 +755,7 @@ var PrimaryPartnerTypeField_module_default = {
598
755
  //#endregion
599
756
  //#region src/components/GlobalEntry/fields/PrimaryPartnerTypeField/PrimaryPartnerTypeField.tsx
600
757
  var PRIMARY_PARTNER_TYPE_FIELD = ["primaryPartnerType"];
601
- var PrimaryPartnerTypeField = ({ data, valid, errors, handleChangeFor }) => {
758
+ var PrimaryPartnerTypeField = ({ data, valid, errors, isTrust, handleChangeFor }) => {
602
759
  const { t: globalEntryT } = useTranslation("globalEntry");
603
760
  const partnerTypeOptions = [{
604
761
  value: "individual",
@@ -609,13 +766,23 @@ var PrimaryPartnerTypeField = ({ data, valid, errors, handleChangeFor }) => {
609
766
  label: globalEntryT(($) => $["aBusinessEntity"]),
610
767
  iconName: "company"
611
768
  }];
769
+ const { label, formatGuidance } = {
770
+ trust: {
771
+ label: globalEntryT(($) => $["whatTypeOfEntityIsTheFirstPrimaryTrustee"]),
772
+ formatGuidance: globalEntryT(($) => $["wellStartByCollectingInformationAboutOneTrustee"])
773
+ },
774
+ unincorporatedPartnership: {
775
+ label: globalEntryT(($) => $["whatTypeOfEntityIsTheFirstPrimaryPartner"]),
776
+ formatGuidance: globalEntryT(($) => $["wellStartByCollectingInformationAboutOnePartner"])
777
+ }
778
+ }[isTrust ? "trust" : "unincorporatedPartnership"];
612
779
  return /* @__PURE__ */ jsx(Field, {
613
780
  el: "fieldset",
614
781
  name: "primaryPartnerType",
615
782
  errorMessage: errors.primaryPartnerType,
616
783
  isValid: valid?.primaryPartnerType,
617
- label: globalEntryT(($) => $["whatTypeOfEntityIsTheFirstPrimaryPartner"]),
618
- formatGuidance: globalEntryT(($) => $["wellStartByCollectingInformationAboutOnePartner"]),
784
+ label,
785
+ formatGuidance,
619
786
  children: () => /* @__PURE__ */ jsx(List, {
620
787
  dividers: false,
621
788
  padding: "large",
@@ -658,7 +825,8 @@ var PrimaryPartner = ({ id }) => {
658
825
  data: { primaryPartnerType: data?.primaryPartnerType },
659
826
  valid: { primaryPartnerType: valid?.primaryPartnerType },
660
827
  errors: { primaryPartnerType: formUtils.getErrorMessage("primaryPartnerType", errors, fieldProblems) },
661
- handleChangeFor
828
+ handleChangeFor,
829
+ isTrust: form.data.registrationInformation?.isTrust === "yes"
662
830
  })]
663
831
  });
664
832
  };
@@ -688,19 +856,19 @@ function Questionnaire({ name, label, helper, selected, tiles, isValid, errorMes
688
856
  }
689
857
  //#endregion
690
858
  //#region src/components/GlobalEntry/fields/DbaQuestionnaire/DbaQuestionnaire.tsx
691
- var DBA_QUESTIONNAIRE_FIELD = ["doingBusinessAs"];
859
+ var DBA_QUESTIONNAIRE_FIELD = ["hasDoingBusinessAs"];
692
860
  function DbaQuestionnaire({ data, valid, errors, handleChangeFor }) {
693
861
  const { t: commonT } = useTranslation("common");
694
862
  const { t: globalEntryT } = useTranslation("globalEntry");
695
863
  return /* @__PURE__ */ jsx(Questionnaire, {
696
- name: "doingBusinessAs",
864
+ name: "hasDoingBusinessAs",
697
865
  label: globalEntryT(($) => $["doYouUseABusinessNameThatsDifferentFromYourLegalName"]),
698
- helper: globalEntryT(($) => $["thisIsAlsoCalledATradingNameOperatingNameOrDoingBusinessAs"]),
699
- selected: data.doingBusinessAs,
700
- isValid: valid.doingBusinessAs,
701
- errorMessage: errors.doingBusinessAs,
866
+ helper: globalEntryT(($) => $["thisIsAlsoCalledATradingNameOperatingNameOrDoingBusinessAsName"]),
867
+ selected: data.hasDoingBusinessAs,
868
+ isValid: valid.hasDoingBusinessAs,
869
+ errorMessage: errors.hasDoingBusinessAs,
702
870
  isHorizontal: true,
703
- onChange: handleChangeFor("doingBusinessAs"),
871
+ onChange: handleChangeFor("hasDoingBusinessAs"),
704
872
  tiles: [{
705
873
  label: commonT(($) => $["yes"]),
706
874
  value: "yes"
@@ -856,7 +1024,7 @@ var UnincorporatedOrganizationTypeField = ({ data, valid, errors, handleChangeFo
856
1024
  value: "unincorporatedAssociation",
857
1025
  icon: "trust"
858
1026
  }];
859
- return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Questionnaire, {
1027
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(Questionnaire, {
860
1028
  name: "unincorporatedOrganizationType",
861
1029
  label: t(($) => $["whichBestDescribesYourOrganization"]),
862
1030
  errorMessage: errors.unincorporatedOrganizationType,
@@ -876,6 +1044,7 @@ var UnincorporatedOrganizationTypeField = ({ data, valid, errors, handleChangeFo
876
1044
  };
877
1045
  //#endregion
878
1046
  //#region src/components/GlobalEntry/forms/RegistrationInformation/RegistrationInformation.tsx
1047
+ var LazySingpassSelectionCTA = lazy(async () => (await import("./SingpassSelectionCTA-sVs1ou1t.js")).SingpassSelectionCTA);
879
1048
  var REGISTRATION_INFORMATION_FIELDS = [
880
1049
  ...PAPERWORK_QUESTIONNAIRE_FIELD,
881
1050
  ...DBA_QUESTIONNAIRE_FIELD,
@@ -890,7 +1059,7 @@ var REGISTRATION_INFORMATION_FIELDS = [
890
1059
  ...BUSINESS_REGISTRATION_NUMBER_FIELD,
891
1060
  ...TAX_INFORMATION_FIELD
892
1061
  ];
893
- var RegistrationInformation = ({ id, shouldValidate, legalEntity, country }) => {
1062
+ var RegistrationInformation = ({ id, shouldValidate, legalEntity, country, onSingpassClick }) => {
894
1063
  const { form } = useFormContext();
895
1064
  const { t: commonT } = useTranslation("common");
896
1065
  const { t: globalEntryT } = useTranslation("globalEntry");
@@ -914,6 +1083,7 @@ var RegistrationInformation = ({ id, shouldValidate, legalEntity, country }) =>
914
1083
  t: businessT
915
1084
  });
916
1085
  const showField = (fieldKeys) => fieldKeys.some((field) => formUtils.isRequiredField(field) || formUtils.isOptionalField(field));
1086
+ const showSingpassCta = country === CountryCodes.Singapore && form.data.entityInformation.entitySetup === "partOfABusiness" && data?.filedPaperwork === "yes";
917
1087
  /**
918
1088
  * State is asked for in business search but may not be updated if user does not
919
1089
  * find results or opts for manual flow.
@@ -941,9 +1111,9 @@ var RegistrationInformation = ({ id, shouldValidate, legalEntity, country }) =>
941
1111
  handleChangeFor
942
1112
  }),
943
1113
  showField(DBA_QUESTIONNAIRE_FIELD) && /* @__PURE__ */ jsx(DbaQuestionnaire, {
944
- data: { doingBusinessAs: data.doingBusinessAs },
945
- valid: { doingBusinessAs: valid.doingBusinessAs },
946
- errors: { doingBusinessAs: formUtils.getErrorMessage("doingBusinessAs", errors, fieldProblems) },
1114
+ data: { hasDoingBusinessAs: data.hasDoingBusinessAs },
1115
+ valid: { hasDoingBusinessAs: valid.hasDoingBusinessAs },
1116
+ errors: { hasDoingBusinessAs: formUtils.getErrorMessage("hasDoingBusinessAs", errors, fieldProblems) },
947
1117
  handleChangeFor
948
1118
  }),
949
1119
  showField(TRUST_QUESTIONNAIRE_FIELD) && /* @__PURE__ */ jsx(TrustQuestionnaire, {
@@ -952,6 +1122,10 @@ var RegistrationInformation = ({ id, shouldValidate, legalEntity, country }) =>
952
1122
  errors: { isTrust: formUtils.getErrorMessage("isTrust", errors, fieldProblems) },
953
1123
  handleChangeFor
954
1124
  }),
1125
+ showSingpassCta && /* @__PURE__ */ jsx(Suspense, {
1126
+ fallback: null,
1127
+ children: /* @__PURE__ */ jsx(LazySingpassSelectionCTA, { onClick: onSingpassClick })
1128
+ }),
955
1129
  showField(LLC_QUESTIONNAIRE_FIELD) && /* @__PURE__ */ jsx(LlcQuestionnaire, {
956
1130
  data: { isLimitedLiabilityCorporation: data.isLimitedLiabilityCorporation },
957
1131
  valid: { isLimitedLiabilityCorporation: valid.isLimitedLiabilityCorporation },
@@ -1239,7 +1413,7 @@ function usePrefetchCompanySearch({ country, multiForm, activeFormId, isUsingCom
1239
1413
  * generic, but to avoid putting the cart before the horse, it'll intentionally
1240
1414
  * remain as-is.
1241
1415
  */
1242
- const prefetchCompanySearchResults = useCallback(async () => {
1416
+ const prefetchCompanySearchResults = useCallback$1(async () => {
1243
1417
  const root = getRootElement(), activeElementName = (root.activeElement && root.activeElement.getAttribute("name")) ?? "";
1244
1418
  const fieldNames = getRelatedFields(country);
1245
1419
  let allRelatedFieldsAreValid = true, noRelatedFieldsAreFocused = true;
@@ -1273,7 +1447,7 @@ function usePrefetchCompanySearch({ country, multiForm, activeFormId, isUsingCom
1273
1447
  * Re-fires prefetch when fields lose focus, with extra filtering within
1274
1448
  * the handler to determine whether the search should continue after being debounced.
1275
1449
  */
1276
- useEffect(() => {
1450
+ useEffect$1(() => {
1277
1451
  const prefetch = () => {
1278
1452
  if (activeFormId !== "registrationInformation" || !isUsingCompanySearch) return;
1279
1453
  debouncedCompanySearchPrefetch();
@@ -1381,7 +1555,7 @@ function RegistrationNumberMismatchModal({ companySearchStateModel, country, reg
1381
1555
  //#region src/components/GlobalEntry/modals/TinMismatchModal.tsx
1382
1556
  function TinMismatchModal({ onCancel, onConfirm }) {
1383
1557
  const { t } = useTranslation(["common", "business"]);
1384
- const modalDescriptionKey = typeof useContext(CompanySearchStateContext).selectedCompany.value === "undefined" ? "theEinDidntMatchLegalBusinessName" : "itLooksLikeThisBusinessUsesADifferentEIN";
1558
+ const modalDescriptionKey = typeof useContext$1(CompanySearchStateContext).selectedCompany.value === "undefined" ? "theEinDidntMatchLegalBusinessName" : "itLooksLikeThisBusinessUsesADifferentEIN";
1385
1559
  return /* @__PURE__ */ jsx(Confirm, {
1386
1560
  title: t(($) => $["employerIdentificationNumberDoesntMatch"], { ns: "business" }),
1387
1561
  description: t(($) => $[modalDescriptionKey], { ns: "business" }),
@@ -1403,8 +1577,8 @@ var globalEntryFieldRuleConfigurations = {
1403
1577
  countryOfGoverningLaw: { rule: "countryOfGoverningLawRequired" },
1404
1578
  selectedBusinessId: { rule: "businessSelectionRequired" },
1405
1579
  filedPaperwork: { rule: "filedPaperworkRequired" },
1406
- doingBusinessAs: { rule: "doingBusinessAsRequired" },
1407
1580
  isTrust: { rule: "isTrustRequired" },
1581
+ hasDoingBusinessAs: { rule: "hasDoingBusinessAsRequired" },
1408
1582
  isLimitedLiabilityCorporation: { rule: "isLimitedLiabilityCorporationRequired" },
1409
1583
  unincorporatedOrganizationType: { rule: "unincorporatedOrganizationTypeRequired" },
1410
1584
  legalCompanyName: { rule: "legalCompanyNameRequired" },
@@ -1443,7 +1617,7 @@ var globalEntryCustomRules = ({ accountHolder, data, isFeatureEnabled = () => fa
1443
1617
  if (isFeatureEnabled("EnableCountryOfGoverningLawForUKCompanies") && COUNTRY_OF_GOVERNING_LAW_POSSIBLE.includes(country) && isOrganization && hasAnsweredPaperworkQuestion && canCollectOrganizationDetails) return "REQUIRED";
1444
1618
  },
1445
1619
  filedPaperworkRequired: () => isPaperworkQuestionAsked(data) ? "REQUIRED" : void 0,
1446
- doingBusinessAsRequired: () => data.entityInformation.entitySetup === "justMe" && filedPaperwork === "no" && INDIVIDUALS_WHO_TRADE_COUNTRIES.includes(country) ? "REQUIRED" : void 0,
1620
+ hasDoingBusinessAsRequired: () => data.entityInformation.entitySetup === "justMe" && filedPaperwork === "no" && INDIVIDUALS_WHO_TRADE_COUNTRIES.includes(country) ? "REQUIRED" : void 0,
1447
1621
  isTrustRequired: () => isTrustQuestionRequired ? "REQUIRED" : void 0,
1448
1622
  requireStateOrProvinceForCompanySearch: () => {
1449
1623
  if (isUsingCompanySearch(data) && COUNTRIES_WITH_STATES_DATASET.includes(country)) return "REQUIRED";
@@ -1703,7 +1877,7 @@ var globalEntryValidationRules = ({ data, legalEntity, isFeatureEnabled = () =>
1703
1877
  modes: ["blur", "input"]
1704
1878
  } },
1705
1879
  registrationInformation: {
1706
- doingBusinessAs: {
1880
+ hasDoingBusinessAs: {
1707
1881
  validate: (value) => !!value,
1708
1882
  modes: ["blur", "input"]
1709
1883
  },
@@ -1732,14 +1906,15 @@ var globalEntryValidationRules = ({ data, legalEntity, isFeatureEnabled = () =>
1732
1906
  };
1733
1907
  //#endregion
1734
1908
  //#region src/components/GlobalEntry/tasks/GlobalEntry.tsx
1735
- var GlobalEntry = ({ activeForm, legalEntity, shouldValidate, country }) => {
1909
+ var GlobalEntry = ({ activeForm, legalEntity, shouldValidate, country, onSingpassClick }) => {
1736
1910
  switch (activeForm.formId) {
1737
1911
  case globalEntryForms.entityInformation.formId: return /* @__PURE__ */ jsx(EntityInformation, { id: activeForm.formId });
1738
1912
  case globalEntryForms.registrationInformation.formId: return /* @__PURE__ */ jsx(RegistrationInformation, {
1739
1913
  id: activeForm.formId,
1740
1914
  legalEntity,
1741
1915
  shouldValidate,
1742
- country
1916
+ country,
1917
+ onSingpassClick
1743
1918
  });
1744
1919
  case globalEntryForms.businessSelection.formId: return /* @__PURE__ */ jsx(BusinessSelection, {
1745
1920
  id: activeForm.formId,
@@ -1756,7 +1931,7 @@ var GlobalEntry = ({ activeForm, legalEntity, shouldValidate, country }) => {
1756
1931
  };
1757
1932
  //#endregion
1758
1933
  //#region src/components/GlobalEntry/tasks/GlobalEntryModal.tsx
1759
- var CompanySearchStateContext = createContext({});
1934
+ var CompanySearchStateContext = createContext$1({});
1760
1935
  var GlobalEntryModal = ({ rootLegalEntity, onComplete }) => {
1761
1936
  const { i18n, t } = useTranslation(["common", "globalEntry"]);
1762
1937
  const { isFeatureEnabled } = useToggleContext();
@@ -1766,14 +1941,20 @@ var GlobalEntryModal = ({ rootLegalEntity, onComplete }) => {
1766
1941
  const { accountHolder: accountHolderMaybe } = useAccountHolder();
1767
1942
  const userEvents = useAnalyticsContext();
1768
1943
  const { mutateAsync: clearCompanyData } = useClearCompanyData();
1769
- const [derivedProps, setDerivedProps] = useState();
1944
+ const [derivedProps, setDerivedProps] = useState$1();
1770
1945
  const accountHolder = accountHolderMaybe ?? (rootLegalEntity.type === "individual" ? "myName" : "theCompanyIWorkFor");
1771
1946
  const companySearchStateModel = useModel(() => new CompanySearchStateModel(userEvents));
1947
+ const { handleInitiateSingpassMyInfoLogin, handleSingpassMyInfoLoginFailure } = useSingpassMyInfoLogin({
1948
+ legalEntity: rootLegalEntity,
1949
+ accountHolder: "theCompanyIWorkFor"
1950
+ });
1772
1951
  const tinMismatchModalOpen = useSignal(false);
1773
1952
  const legalArrangementModalOpen = useSignal(false);
1774
1953
  const registrationNumberMismatchModalOpen = useSignal(false);
1775
1954
  const skipBusinessSelection = useSignal(true);
1776
- const [searchStatus, setSearchStatus] = useState("success");
1955
+ const [searchStatus, setSearchStatus] = useState$1("success");
1956
+ const initialRootLegalEntity = useRef$1(rootLegalEntity).current;
1957
+ const initialAccountHolder = useRef$1(accountHolder).current;
1777
1958
  /**
1778
1959
  * Distinct from the model's `verificationMatched`, which updates the moment the API answers. This
1779
1960
  * only records the outcome once the user navigates forward, and it is deliberately inert: unlike
@@ -1784,32 +1965,32 @@ var GlobalEntryModal = ({ rootLegalEntity, onComplete }) => {
1784
1965
  addResourceBundles(i18n, [{
1785
1966
  ns: "globalEntry",
1786
1967
  importFn: (lang) => _rolldown_dynamic_import_helper_default(/* #__PURE__ */ Object.assign({
1787
- "../language/bg-BG.json": () => import("./bg-BG-ClMsmcda.js"),
1788
- "../language/cs-CZ.json": () => import("./cs-CZ-DyLd-erd.js"),
1789
- "../language/da-DK.json": () => import("./da-DK-Dhr4p-qj.js"),
1790
- "../language/de-DE.json": () => import("./de-DE-QDT6VVq9.js"),
1791
- "../language/el-GR.json": () => import("./el-GR-V2cZ5gjl.js"),
1792
- "../language/en-US.json": () => import("./en-US-BMMx67Za.js"),
1793
- "../language/es-ES.json": () => import("./es-ES-SsReQJzQ.js"),
1794
- "../language/es-LA.json": () => import("./es-LA-DTXCg1tj.js"),
1795
- "../language/et-EE.json": () => import("./et-EE-Bg3WOS9m.js"),
1796
- "../language/fi-FI.json": () => import("./fi-FI-B1RyWVH2.js"),
1797
- "../language/fr-FR.json": () => import("./fr-FR-C3Zi7-JE.js"),
1798
- "../language/hr-HR.json": () => import("./hr-HR-CH9yGEPn.js"),
1799
- "../language/hu-HU.json": () => import("./hu-HU-DpUG3GwC.js"),
1800
- "../language/it-IT.json": () => import("./it-IT-BEEsgu4Z.js"),
1801
- "../language/ja-JP.json": () => import("./ja-JP-CcXk7Gcc.js"),
1802
- "../language/lt-LT.json": () => import("./lt-LT-CGgbFwbx.js"),
1803
- "../language/lv-LV.json": () => import("./lv-LV-Ck_aQ4ML.js"),
1804
- "../language/nl-NL.json": () => import("./nl-NL-_hbzuQ0h.js"),
1805
- "../language/no-NO.json": () => import("./no-NO-B_ijkAtf.js"),
1806
- "../language/pl-PL.json": () => import("./pl-PL-u6DrL8IY.js"),
1807
- "../language/pt-BR.json": () => import("./pt-BR-CPS77pGy.js"),
1808
- "../language/pt-PT.json": () => import("./pt-PT-DIKqQR6V.js"),
1809
- "../language/ro-RO.json": () => import("./ro-RO-Cg1nG9ns.js"),
1810
- "../language/sk-SK.json": () => import("./sk-SK-CRfiVN3e.js"),
1811
- "../language/sl-SI.json": () => import("./sl-SI-Dpr3StsS.js"),
1812
- "../language/sv-SE.json": () => import("./sv-SE-CH4wMrUZ.js")
1968
+ "../language/bg-BG.json": () => import("./bg-BG-s01xQ0IE.js"),
1969
+ "../language/cs-CZ.json": () => import("./cs-CZ-DfKxKCsI.js"),
1970
+ "../language/da-DK.json": () => import("./da-DK-BrKeONXP.js"),
1971
+ "../language/de-DE.json": () => import("./de-DE-CaVZKsmT.js"),
1972
+ "../language/el-GR.json": () => import("./el-GR-DHA0rkvc.js"),
1973
+ "../language/en-US.json": () => import("./en-US-B7V_rOZV.js"),
1974
+ "../language/es-ES.json": () => import("./es-ES-DsWec_oM.js"),
1975
+ "../language/es-LA.json": () => import("./es-LA-D0FhHrwN.js"),
1976
+ "../language/et-EE.json": () => import("./et-EE-Bp9-vCYs.js"),
1977
+ "../language/fi-FI.json": () => import("./fi-FI-DcwOxjVV.js"),
1978
+ "../language/fr-FR.json": () => import("./fr-FR-_ytHUJlx.js"),
1979
+ "../language/hr-HR.json": () => import("./hr-HR-Cb9wbqiH.js"),
1980
+ "../language/hu-HU.json": () => import("./hu-HU-d15vxL_S.js"),
1981
+ "../language/it-IT.json": () => import("./it-IT-DBatLxXf.js"),
1982
+ "../language/ja-JP.json": () => import("./ja-JP-BRdSqCDF.js"),
1983
+ "../language/lt-LT.json": () => import("./lt-LT-DbzhtTak.js"),
1984
+ "../language/lv-LV.json": () => import("./lv-LV-B17wL3y6.js"),
1985
+ "../language/nl-NL.json": () => import("./nl-NL-CfQsmGB5.js"),
1986
+ "../language/no-NO.json": () => import("./no-NO-B1dqTSiS.js"),
1987
+ "../language/pl-PL.json": () => import("./pl-PL-DSwjmRZS.js"),
1988
+ "../language/pt-BR.json": () => import("./pt-BR-_3W6lRmq.js"),
1989
+ "../language/pt-PT.json": () => import("./pt-PT-BUEnW3xZ.js"),
1990
+ "../language/ro-RO.json": () => import("./ro-RO-B4LyC5yt.js"),
1991
+ "../language/sk-SK.json": () => import("./sk-SK-CLhssOsk.js"),
1992
+ "../language/sl-SI.json": () => import("./sl-SI-QgSjXf-1.js"),
1993
+ "../language/sv-SE.json": () => import("./sv-SE-BJgBNvRa.js")
1813
1994
  }), `../language/${lang}.json`, 3)
1814
1995
  }]);
1815
1996
  addResourceBundles(i18n, [{
@@ -1820,7 +2001,7 @@ var GlobalEntryModal = ({ rootLegalEntity, onComplete }) => {
1820
2001
  "../../Business/language/da-DK.json": () => import("./da-DK-BzBfkSME.js"),
1821
2002
  "../../Business/language/de-DE.json": () => import("./de-DE-C9cUCFOi.js"),
1822
2003
  "../../Business/language/el-GR.json": () => import("./el-GR-aelq5Q0a.js"),
1823
- "../../Business/language/en-US.json": () => import("./en-US-DPr5RN3e.js"),
2004
+ "../../Business/language/en-US.json": () => import("./en-US-BLUu-I1a.js"),
1824
2005
  "../../Business/language/es-ES.json": () => import("./es-ES-DhkTbihW.js"),
1825
2006
  "../../Business/language/es-LA.json": () => import("./es-LA-JRuDva0n.js"),
1826
2007
  "../../Business/language/et-EE.json": () => import("./et-EE-D8TSvkoE.js"),
@@ -1846,20 +2027,20 @@ var GlobalEntryModal = ({ rootLegalEntity, onComplete }) => {
1846
2027
  const handleClose = () => {
1847
2028
  showGlobalEntryModal.value = false;
1848
2029
  };
1849
- const buildFieldValidations = useCallback((data) => globalEntryValidationRules({
2030
+ const buildFieldValidations = useCallback$1((data) => globalEntryValidationRules({
1850
2031
  data,
1851
2032
  legalEntity: rootLegalEntity,
1852
2033
  isFeatureEnabled
1853
2034
  }), [isFeatureEnabled, rootLegalEntity]);
1854
2035
  const { storedStateOrProvince } = useStoredStateOrProvince({ legalEntityId: rootLegalEntity.id });
1855
- const initialStoredStateOrProvince = useRef(storedStateOrProvince).current;
1856
- const defaultData = useMemo(() => {
1857
- const mappedData = mapLegalEntityToGlobalEntrySchema(rootLegalEntity, accountHolder);
2036
+ const initialStoredStateOrProvince = useRef$1(storedStateOrProvince).current;
2037
+ const defaultData = useMemo$1(() => {
2038
+ const mappedData = mapLegalEntityToGlobalEntrySchema(initialRootLegalEntity, initialAccountHolder);
1858
2039
  mappedData.registrationInformation.stateOrProvince = mappedData.registrationInformation.stateOrProvince ?? initialStoredStateOrProvince;
1859
2040
  return mappedData;
1860
2041
  }, [
1861
- rootLegalEntity,
1862
- accountHolder,
2042
+ initialRootLegalEntity,
2043
+ initialAccountHolder,
1863
2044
  initialStoredStateOrProvince
1864
2045
  ]);
1865
2046
  const multiForm = useMultiForm({
@@ -1871,7 +2052,7 @@ var GlobalEntryModal = ({ rootLegalEntity, onComplete }) => {
1871
2052
  });
1872
2053
  const { isValid: formValidity, data, triggerValidation } = multiForm;
1873
2054
  const country = data.entityInformation?.country ?? getLegalEntityCountry(rootLegalEntity);
1874
- const rules = useMemo(() => globalEntryCustomRules({
2055
+ const rules = useMemo$1(() => globalEntryCustomRules({
1875
2056
  data,
1876
2057
  isFeatureEnabled,
1877
2058
  isSettingEnabled,
@@ -1887,7 +2068,7 @@ var GlobalEntryModal = ({ rootLegalEntity, onComplete }) => {
1887
2068
  data,
1888
2069
  rootLegalEntity
1889
2070
  ]);
1890
- useEffect(() => {
2071
+ useEffect$1(() => {
1891
2072
  const props = getPropsFromConfigurations({
1892
2073
  scenarioConfiguration: globalEntryFieldRuleConfigurations,
1893
2074
  forms: globalEntryForms,
@@ -1904,7 +2085,7 @@ var GlobalEntryModal = ({ rootLegalEntity, onComplete }) => {
1904
2085
  * The company structures that are still valid given the registration number type and tax ID
1905
2086
  * number type currently in the form.
1906
2087
  */
1907
- const availableCompanyStructures = useMemo(() => getAvailableCompanyStructures({
2088
+ const availableCompanyStructures = useMemo$1(() => getAvailableCompanyStructures({
1908
2089
  country,
1909
2090
  registrationNumberType: data.registrationInformation?.registrationNumberType,
1910
2091
  registrationNumberExempt: data.registrationInformation?.exemptedFromRegistrationNumber,
@@ -1924,10 +2105,10 @@ var GlobalEntryModal = ({ rootLegalEntity, onComplete }) => {
1924
2105
  * This is used to automatically select the company structure when the user has already provided
1925
2106
  * the necessary information to uniquely identify the company structure
1926
2107
  */
1927
- const inferredCompanyStructure = useMemo(() => {
2108
+ const inferredCompanyStructure = useMemo$1(() => {
1928
2109
  return availableCompanyStructures.length === 1 ? availableCompanyStructures[0] : void 0;
1929
2110
  }, [availableCompanyStructures]);
1930
- const getRequiredForms = useCallback((options) => buildRequiredForms({
2111
+ const getRequiredForms = useCallback$1((options) => buildRequiredForms({
1931
2112
  config: {
1932
2113
  forms: globalEntryForms,
1933
2114
  requiredFields: derivedProps?.requiredFields,
@@ -1947,7 +2128,7 @@ var GlobalEntryModal = ({ rootLegalEntity, onComplete }) => {
1947
2128
  inferredCompanyStructure,
1948
2129
  rootLegalEntity
1949
2130
  ]);
1950
- const forms = useMemo(() => getRequiredForms({
2131
+ const forms = useMemo$1(() => getRequiredForms({
1951
2132
  skipBusinessSelection: skipBusinessSelection.value,
1952
2133
  skipCompanyStructure: !!companySearchStateModel.verifiedBusiness.value?.legalForm || !!inferredCompanyStructure
1953
2134
  }), [
@@ -1957,13 +2138,12 @@ var GlobalEntryModal = ({ rootLegalEntity, onComplete }) => {
1957
2138
  inferredCompanyStructure
1958
2139
  ]);
1959
2140
  const { mutateAsync: updateLegalEntity, isPending: isUpdatingLegalEntity } = useUpdateLegalEntity();
1960
- const isLoading = isUpdatingLegalEntity;
1961
2141
  /**
1962
2142
  * Form writes only reach the state on the next render so this prevents
1963
2143
  * outdated data from being submitted. In Global Entry, we submit the form
1964
2144
  * on navigation so the re-render hasn't happened yet.
1965
2145
  */
1966
- const pendingSubmitData = useRef();
2146
+ const pendingSubmitData = useRef$1();
1967
2147
  const confirmSelection = (options) => {
1968
2148
  pendingSubmitData.current = companySearchStateModel.confirmCompany(multiForm, country, options);
1969
2149
  };
@@ -2013,7 +2193,7 @@ var GlobalEntryModal = ({ rootLegalEntity, onComplete }) => {
2013
2193
  registrationNumberMismatchModalOpen,
2014
2194
  confirmSelection
2015
2195
  });
2016
- const [companyStructure, setCompanyStructure] = useState(data.companyStructure?.organizationType);
2196
+ const [companyStructure, setCompanyStructure] = useState$1(data.companyStructure?.organizationType);
2017
2197
  if (inferredCompanyStructure && companyStructure !== inferredCompanyStructure && !companySearchStateModel.verifiedBusiness.value?.legalForm && activeForm?.formId === globalEntryForms.registrationInformation.formId) {
2018
2198
  setCompanyStructure(inferredCompanyStructure);
2019
2199
  multiForm.handleChangeFor("companyStructure", "organizationType")(inferredCompanyStructure);
@@ -2021,17 +2201,48 @@ var GlobalEntryModal = ({ rootLegalEntity, onComplete }) => {
2021
2201
  /**
2022
2202
  * Current country value must be kept in sync with what is selected in entityInformation form
2023
2203
  */
2024
- const [prevCountry, setPrevCountry] = useState(data.entityInformation?.country);
2204
+ const [prevCountry, setPrevCountry] = useState$1(data.entityInformation?.country);
2025
2205
  if (data.entityInformation?.country && prevCountry !== data.entityInformation.country) {
2026
2206
  setPrevCountry(data.entityInformation.country);
2027
2207
  companySearchStateModel.resetCompanySearchData();
2028
2208
  multiForm.handleChangeFor("companyStructure", "organizationType")(void 0);
2029
2209
  }
2210
+ const handleCompleteWithSingpass = async () => {
2211
+ try {
2212
+ await completeWithSingpass({
2213
+ rootLegalEntity,
2214
+ updateLegalEntity,
2215
+ onComplete,
2216
+ handleInitiateSingpassMyInfoLogin
2217
+ });
2218
+ showGlobalEntryModal.value = false;
2219
+ } catch (err) {
2220
+ logger.error(err);
2221
+ handleSingpassMyInfoLoginFailure("weCouldntConnectToMyinfoBusiness");
2222
+ showToast({
2223
+ label: t(($) => $["weCouldntConnectToMyinfoBusiness"], { ns: "common" }),
2224
+ variant: "error"
2225
+ });
2226
+ }
2227
+ };
2030
2228
  const overrideNextClick = async () => {
2031
2229
  if (!activeForm.isValid) return handleNextClick();
2032
2230
  if (!isUsingCompanySearch(data)) return handleNextClick();
2033
2231
  switch (activeForm.formId) {
2034
2232
  case globalEntryForms.registrationInformation.formId: {
2233
+ if (rootLegalEntity.type === "individual") try {
2234
+ await updateLegalEntity({
2235
+ id: rootLegalEntity.id,
2236
+ type: "organization"
2237
+ });
2238
+ } catch (err) {
2239
+ logger.error(err);
2240
+ showToast({
2241
+ label: t(($) => $["failedToUpdateDetails"], { ns: "common" }),
2242
+ variant: "error"
2243
+ });
2244
+ return;
2245
+ }
2035
2246
  const currentForms = await attemptBusinessSearch();
2036
2247
  if (currentForms === null) return;
2037
2248
  return handleNextClick(currentForms);
@@ -2120,7 +2331,7 @@ var GlobalEntryModal = ({ rootLegalEntity, onComplete }) => {
2120
2331
  forms,
2121
2332
  gotoFormByFormIndex,
2122
2333
  gotoFormByFormId,
2123
- loadingStatus: isLoading ? "loading" : searchStatus,
2334
+ loadingStatus: isUpdatingLegalEntity ? "loading" : searchStatus,
2124
2335
  currentStep: steps.current,
2125
2336
  totalSteps: steps.total,
2126
2337
  isGlobalEntry: true,
@@ -2132,7 +2343,8 @@ var GlobalEntryModal = ({ rootLegalEntity, onComplete }) => {
2132
2343
  activeForm,
2133
2344
  shouldValidate,
2134
2345
  legalEntity: rootLegalEntity,
2135
- country
2346
+ country,
2347
+ onSingpassClick: handleCompleteWithSingpass
2136
2348
  }),
2137
2349
  /* @__PURE__ */ jsx(Show, {
2138
2350
  when: tinMismatchModalOpen,
@@ -2163,4 +2375,4 @@ var GlobalEntryModal = ({ rootLegalEntity, onComplete }) => {
2163
2375
  });
2164
2376
  };
2165
2377
  //#endregion
2166
- export { showGlobalEntryModal as n, GlobalEntryModal as t };
2378
+ export { showGlobalEntryModal as n, useSingpassMyInfoLogin as r, GlobalEntryModal as t };