@adyen/kyc-components 4.16.0-beta.2 → 4.17.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 (291) hide show
  1. package/dist/{AcceptTermsOfServiceComponent-B6vVYR5d.js → AcceptTermsOfServiceComponent-B_QGcoK8.js} +48 -63
  2. package/dist/{Accordion-IXKjwyLD.js → Accordion-DmH02rWQ.js} +1 -1
  3. package/dist/{AccountSetupRejected-DBQa7lQQ.js → AccountSetupRejected-BKzmKZe_.js} +2 -2
  4. package/dist/{AdaptiveWorkflow-CPbROA6I.js → AdaptiveWorkflow-cDoddNpf.js} +32 -32
  5. package/dist/{AdaptiveWorkflowComponent-BaEZsz2h.js → AdaptiveWorkflowComponent-BTdp5UKa.js} +31 -31
  6. package/dist/{Address-iFLK6jy-.js → Address-Co8MrfNi.js} +41 -41
  7. package/dist/{AnalyticsContext-BFrJmsp0.js → AnalyticsContext-BnRQ9H1u.js} +2 -2
  8. package/dist/{Avatar-CdBNstmD.js → Avatar-Z3MS8_pW.js} +1 -1
  9. package/dist/{BusinessFinancingDropin-B4AS1YOE.js → BusinessFinancingDropin-SPR8BoEf.js} +64 -48
  10. package/dist/{BusinessFinancingPage-Kury51y6.js → BusinessFinancingPage-1mT0sayp.js} +32 -32
  11. package/dist/{BusinessTypeSelectionPage-CIRKDgvR.js → BusinessTypeSelectionPage-DFSAg3HQ.js} +15 -15
  12. package/dist/{Button-i8I2dHP8.js → Button-3qGOI53m.js} +1 -1
  13. package/dist/{Checkbox-D7BRIoQL.js → Checkbox-yzDgU8Go.js} +2 -2
  14. package/dist/{CompanyRegistrationNumberTypeSelector-OlHS-uZu.js → CompanyRegistrationNumberTypeSelector-Dr1spOh4.js} +7 -7
  15. package/dist/{Confirm-CA-gL38n.js → Confirm-D3iEEzM7.js} +4 -4
  16. package/dist/{ContactDetails-ClkKcUsn.js → ContactDetails-BmBo64hZ.js} +9 -9
  17. package/dist/{ContextGuidance-Cf6kKfqq.js → ContextGuidance-C_1TAzQB.js} +3 -3
  18. package/dist/{CountryField-BlEwJA-M.js → CountryField-BVmVHw1T.js} +4 -4
  19. package/dist/{Currency-MsOJ6F6W.js → Currency-C1RYgCKi.js} +11 -11
  20. package/dist/{CustomerSupport-CIXbcrtE.js → CustomerSupport-CYzAhkB7.js} +15 -15
  21. package/dist/{DataConflictsModal-_-hclTrL.js → DataConflictsModal-B3siPlaF.js} +9 -9
  22. package/dist/{DebugModal-DMPcPJ6X.js → DebugModal-F374XpAS.js} +11 -11
  23. package/dist/{DecisionMakerDetails-Bv-piLuQ.js → DecisionMakerDetails-wQ1ncE10.js} +27 -17
  24. package/dist/{DecisionMakerDetailsPage-CV_wiPKU.js → DecisionMakerDetailsPage-B3jef2rU.js} +12 -12
  25. package/dist/{DecisionMakers-Bfk1BKkT.js → DecisionMakers-pvfyiOTW.js} +18 -18
  26. package/dist/{Dropzone-CFUlcmQY.js → Dropzone-CmWyJhd9.js} +7 -7
  27. package/dist/{EmbeddedStatus-_k9EhrGV.js → EmbeddedStatus-JozflNLq.js} +4 -4
  28. package/dist/{EndStateLayout-CBRHUXyY.js → EndStateLayout-ic1EOve9.js} +2 -2
  29. package/dist/{EntityAssociation-3Yk38P3K.js → EntityAssociation-C7FE-PjA.js} +7 -7
  30. package/dist/{ErrorPanel-CTwk2wKz.js → ErrorPanel-CH_woztY.js} +6 -6
  31. package/dist/{Field-DoXLi6EY.js → Field-CIqSPDus.js} +4 -4
  32. package/dist/{Individual.rules-Cc2Uigav.js → Individual.rules-s4Yf5eU4.js} +4 -4
  33. package/dist/{IndividualDropin-Cq8JMb4W.js → IndividualDropin-Cf5qC4aF.js} +57 -70
  34. package/dist/{InputDate-CPkdZkHB.js → InputDate-DSeCO1wk.js} +1 -1
  35. package/dist/{InputText-B0N7am-q.js → InputText-DtRsfuMv.js} +2 -2
  36. package/dist/{Introduction-CgJ2j-Dq.js → Introduction-FoWqVidV.js} +8 -8
  37. package/dist/{InvitedDecisionMakerComponent-BvhBeEIJ.js → InvitedDecisionMakerComponent-DGyTsPON.js} +41 -41
  38. package/dist/{JpAddress-BnZ5cqKV.js → JpAddress-0suIG834.js} +30 -30
  39. package/dist/{LandingLayout-CUAkXrpL.js → LandingLayout-C1yh_ggf.js} +1 -1
  40. package/dist/{LegalCompanyNameField-JAmpvfKL.js → LegalCompanyNameField-ZHtm1CY4.js} +5 -5
  41. package/dist/{LegalRepresentativeDetailsPage-CnvTEEDr.js → LegalRepresentativeDetailsPage-D8H7yWKS.js} +9 -9
  42. package/dist/{Link-JFzfaUOa.js → Link-C0jrInxa.js} +1 -1
  43. package/dist/{ListItem-V4x0raZw.js → ListItem-DENJV6DO.js} +3 -3
  44. package/dist/{MaskedInput-D76wVR2v.js → MaskedInput-CsrL4uiP.js} +7 -7
  45. package/dist/{MaybeModal-BuQIkNaG.js → MaybeModal-BuaLlZOU.js} +3 -3
  46. package/dist/{Modal-BLP2aF-u.js → Modal-DParMHcv.js} +2 -2
  47. package/dist/{Name-Dz2Meujh.js → Name-kHxte68O.js} +4 -4
  48. package/dist/{NewSummary-BG9lqaSZ.js → NewSummary-CzeWQNcw.js} +5 -5
  49. package/dist/{TaxInformationField-fdeimyge.js → PatriotActDisclosure-CwQKun_7.js} +30 -17
  50. package/dist/{PayoutDetailsDropinMultiForm-DLQXsNgX.js → PayoutDetailsDropinMultiForm-BETT5ZRa.js} +82 -50
  51. package/dist/{PayoutDetailsPage-CxM60SNa.js → PayoutDetailsPage-Cfkfed2R.js} +34 -34
  52. package/dist/{RadioGroup-qV8mGGwm.js → RadioGroup-_XpoFWaf.js} +3 -3
  53. package/dist/{Review-t6P_YBBl.js → Review-DskTi-jW.js} +8 -8
  54. package/dist/{RootBusinessDetailsPage-D0obTtXY.js → RootBusinessDetailsPage-DZTCl8Tg.js} +32 -32
  55. package/dist/{RootBusinessLinesPage-4rCmIXFz.js → RootBusinessLinesPage-BfUzSsyj.js} +33 -33
  56. package/dist/{RootIndividualDetailsPage-CAGb2sXn.js → RootIndividualDetailsPage-DEHBy-Jf.js} +10 -10
  57. package/dist/{Select-DUo2rOfa.js → Select-BgdbPMw9.js} +6 -6
  58. package/dist/{SignPCIComponent-Bq1CwM1t.js → SignPCIComponent-BCWyINKP.js} +42 -42
  59. package/dist/{SingpassSelection-A0OsTbI1.js → SingpassSelection-BD_dv7jF.js} +6 -6
  60. package/dist/{SoleProprietorshipPage-CVgTVg0K.js → SoleProprietorshipPage-B0WZi0Wg.js} +33 -33
  61. package/dist/{SourceOfFundsPage-CKX-SOAa.js → SourceOfFundsPage-CJqSbiok.js} +39 -39
  62. package/dist/{Summary-BSo71mup.js → Summary-DL-tGCrm.js} +10 -10
  63. package/dist/{TaskListItem-BmQUmZnE.js → TaskListItem-CerYvccy.js} +11 -11
  64. package/dist/{TaskVerificationStatus-CKHPTEpH.js → TaskVerificationStatus-DTHF8B9j.js} +1 -1
  65. package/dist/{TaxReportingDropin-DYgpI-y6.js → TaxReportingDropin-v2jRDxs9.js} +19 -19
  66. package/dist/{TextArea-CT04Dg1N.js → TextArea-DNSnqxGL.js} +3 -3
  67. package/dist/{TileGroup-DitwS4Ud.js → TileGroup-DWtO7N2P.js} +4 -4
  68. package/dist/{TrustDetailsPage-D9UdRetd.js → TrustDetailsPage-DUir_kwl.js} +43 -42
  69. package/dist/{TrustMemberCompanyPage-hun5fORS.js → TrustMemberCompanyPage-BBuLJr-x.js} +34 -34
  70. package/dist/{TrustMemberIndividualPage-Dk0wmrff.js → TrustMemberIndividualPage-tz5EVP09.js} +9 -9
  71. package/dist/{TrustMemberRoleAndTypePage-DupYXfe6.js → TrustMemberRoleAndTypePage-DLnlL1uH.js} +21 -21
  72. package/dist/{TrustMembersOverview-BjjAJEkc.js → TrustMembersOverview-DI9F-NI7.js} +13 -13
  73. package/dist/{UnincorporatedPartnershipIndividualPage-B8YsUUds.js → UnincorporatedPartnershipIndividualPage-BemJVK9h.js} +9 -9
  74. package/dist/{UnincorporatedPartnershipMemberCompanyPage-B7pmCSfl.js → UnincorporatedPartnershipMemberCompanyPage-BNhYxz-V.js} +34 -34
  75. package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-B9MnEbkx.js → UnincorporatedPartnershipMemberRoleAndTypePage-w1-0ke59.js} +120 -14
  76. package/dist/{UnincorporatedPartnershipMembersOverview-Cl-5H_VF.js → UnincorporatedPartnershipMembersOverview-BLu3ov2a.js} +9 -9
  77. package/dist/{VerificationErrorAlert-CpG8oYic.js → VerificationErrorAlert-DoI4EWvH.js} +5 -5
  78. package/dist/{accountHolderUtils-CCP7y8fZ.js → accountHolderUtils-DN7xxNk6.js} +1 -1
  79. package/dist/adyen-business-financing.js +33 -33
  80. package/dist/adyen-individual-configuration.js +34 -34
  81. package/dist/adyen-individual-status.js +33 -33
  82. package/dist/adyen-invited-decision-maker.js +3 -3
  83. package/dist/adyen-onboarding.js +575 -1224
  84. package/dist/adyen-terms-of-service-management.js +2 -2
  85. package/dist/adyen-terms-of-service-status.js +6 -6
  86. package/dist/adyen-transfer-instrument-configuration.js +57 -57
  87. package/dist/adyen-transfer-instrument-management.js +65 -65
  88. package/dist/adyen-verification-status.js +6 -6
  89. package/dist/bg-BG-BHL5r3bk.js +7 -0
  90. package/dist/{bg-BG-DYnhOtaS.js → bg-BG-CYrrltO8.js} +2 -2
  91. package/dist/bg-BG-DvFMee1j.js +7 -0
  92. package/dist/{constants-CsMU8IAb.js → constants-BJBSsil_.js} +5 -5
  93. package/dist/cs-CZ-B7aDrpPP.js +7 -0
  94. package/dist/cs-CZ-DfuZr4cv.js +7 -0
  95. package/dist/{cs-CZ-DvmlHVW2.js → cs-CZ-SBisIyel.js} +2 -2
  96. package/dist/da-DK-C3i7IAmt.js +7 -0
  97. package/dist/da-DK-CLx0Hv_L.js +7 -0
  98. package/dist/{da-DK-DDQUbqDb.js → da-DK-CcvXqgMA.js} +2 -2
  99. package/dist/de-DE-CcOP7Z3J.js +7 -0
  100. package/dist/de-DE-DtVJKjKN.js +7 -0
  101. package/dist/{de-DE-DdOrCrMa.js → de-DE-qTvDZ5Tj.js} +2 -2
  102. package/dist/el-GR-CO9ixkqP.js +7 -0
  103. package/dist/{el-GR-Bm9lqjyB.js → el-GR-D1QMkjQd.js} +2 -2
  104. package/dist/el-GR-DxtT4Lft.js +7 -0
  105. package/dist/{en-US-Dab7moVA.js → en-US-CJsQJw90.js} +2 -2
  106. package/dist/es-ES-BIQfz_ub.js +7 -0
  107. package/dist/es-ES-CwLsmJeQ.js +7 -0
  108. package/dist/{es-ES-_w6Ygc8E.js → es-ES-fgGV_t7L.js} +2 -2
  109. package/dist/{es-LA-Cxk68z4n.js → es-LA-CLD_193O.js} +2 -2
  110. package/dist/es-LA-CsbPBWVy.js +7 -0
  111. package/dist/es-LA-b7TFh_XZ.js +7 -0
  112. package/dist/et-EE-BcjBS0ZN.js +7 -0
  113. package/dist/{et-EE-CG66kNTM.js → et-EE-CEiroCyD.js} +2 -2
  114. package/dist/et-EE-o65QgBKk.js +7 -0
  115. package/dist/fi-FI-CKffkrhp.js +7 -0
  116. package/dist/{fi-FI-DpgrKo5I.js → fi-FI-Cqf4k_ja.js} +2 -2
  117. package/dist/fi-FI-DEpeYxdL.js +7 -0
  118. package/dist/{formUtils-DVc3a6gf.js → formUtils-C4NqSvj-.js} +3 -3
  119. package/dist/{fr-FR-BN_jrAX4.js → fr-FR-B_JTgxAY.js} +2 -2
  120. package/dist/fr-FR-CQbo6d_Q.js +7 -0
  121. package/dist/fr-FR-GQrgs_DS.js +7 -0
  122. package/dist/{getProblemsForEntity-D6XC4DZ2.js → getProblemsForEntity-CjAq8_4L.js} +2 -2
  123. package/dist/{getTrustedDecisionMakers-DUpv5ug2.js → getTrustedDecisionMakers-B_XpRta-.js} +1 -1
  124. package/dist/hr-HR-BH4GZRVw.js +7 -0
  125. package/dist/hr-HR-BwKDcJ9v.js +7 -0
  126. package/dist/{hr-HR-SwSOMPhJ.js → hr-HR-COHtbZDp.js} +2 -2
  127. package/dist/{http-8qgzqVqk.js → http-DeQp0G69.js} +1 -1
  128. package/dist/hu-HU-81HMvS9Y.js +7 -0
  129. package/dist/hu-HU-D0LsAFcV.js +7 -0
  130. package/dist/{hu-HU-BqW_xlCb.js → hu-HU-xQwE0I5f.js} +2 -2
  131. package/dist/{invalidateRootLegalEntity-BHWIVP9j.js → invalidateRootLegalEntity-CLfParL1.js} +3 -3
  132. package/dist/{isEmpty-BVlBH98t.js → isEmpty-MyMko24J.js} +2 -2
  133. package/dist/{it-IT-xc14pqAr.js → it-IT-DDUd_IZC.js} +2 -2
  134. package/dist/it-IT-Il0f-h2h.js +7 -0
  135. package/dist/it-IT-NOsTkUWg.js +7 -0
  136. package/dist/{ja-JP-ClFJvhe2.js → ja-JP-Br0ivw8k.js} +2 -2
  137. package/dist/ja-JP-C98F-BgJ.js +7 -0
  138. package/dist/ja-JP-Dk2zBWeH.js +7 -0
  139. package/dist/{jpAddressSchema-pVY2Cqvr.js → jpAddressSchema-DT19YcnH.js} +2 -2
  140. package/dist/{localizeDateString-Bmx3yBcR.js → localizeDateString-CU7HGR-k.js} +1 -1
  141. package/dist/{lt-LT-CTtqyA86.js → lt-LT-DUC5ir_t.js} +2 -2
  142. package/dist/lt-LT-DZ2Uu9bq.js +7 -0
  143. package/dist/lt-LT-erbGBPqF.js +7 -0
  144. package/dist/{lv-LV-D_9V3gBo.js → lv-LV-BBegWP3c.js} +2 -2
  145. package/dist/lv-LV-BCMHodgd.js +7 -0
  146. package/dist/lv-LV-xbEcOY__.js +7 -0
  147. package/dist/{mapExistingFile-BmI24MBQ.js → mapExistingFile-BeuzYADl.js} +2 -2
  148. package/dist/{mapJpAddressSchemaToAddressLocalizations-Dzcl40cA.js → mapJpAddressSchemaToAddressLocalizations-DZUd0pQT.js} +7 -7
  149. package/dist/{mapLegalEntityToIndividualSchema-7sVfeCn9.js → mapLegalEntityToIndividualSchema-Dgs8wnkZ.js} +8 -8
  150. package/dist/{mapTransferInstrumentToPayoutAccount-CxdVWYkh.js → mapTransferInstrumentToPayoutAccount-BHF5J5eC.js} +2 -2
  151. package/dist/nl-NL-Cpuz-HtA.js +7 -0
  152. package/dist/nl-NL-D2oZHtTs.js +7 -0
  153. package/dist/{nl-NL-_NV5Dvt9.js → nl-NL-NTjVSJq2.js} +2 -2
  154. package/dist/{no-NO-CoDL_uMQ.js → no-NO-B6zGFOCK.js} +2 -2
  155. package/dist/no-NO-Bd3KNpMs.js +7 -0
  156. package/dist/no-NO-D5l99NQF.js +7 -0
  157. package/dist/{omitObscuredFieldsIfUnchanged-ae6Pv7w6.js → omitObscuredFieldsIfUnchanged-OOTgtk0O.js} +2 -2
  158. package/dist/{patternValidators-fBH0mmRG.js → patternValidators-Dub31E1N.js} +1 -1
  159. package/dist/pl-PL-Bg2G4ioZ.js +7 -0
  160. package/dist/pl-PL-C_QR0_4u.js +7 -0
  161. package/dist/{pl-PL-Bgrz9oPS.js → pl-PL-Cw9UG-qg.js} +2 -2
  162. package/dist/{process-field-configurations-DQlTj--V.js → process-field-configurations-DIEIpM00.js} +4 -4
  163. package/dist/{processCapabilities-fPuXc9gL.js → processCapabilities-BeE0xWUp.js} +16 -16
  164. package/dist/{pt-BR-DUAQ_vv4.js → pt-BR-BrCPGoU1.js} +2 -2
  165. package/dist/pt-BR-DT63AAqA2.js +7 -0
  166. package/dist/pt-BR-DVpGdnO-.js +7 -0
  167. package/dist/pt-PT-BFTfpBI4.js +7 -0
  168. package/dist/pt-PT-Bkylp1fh.js +7 -0
  169. package/dist/{pt-PT-B6mC3m94.js → pt-PT-Dilg4TrM.js} +2 -2
  170. package/dist/{resolveEnvironment-C-S9dXKd.js → resolveEnvironment-CDmvZMy-.js} +39 -48
  171. package/dist/ro-RO-D9hC-2Yu.js +7 -0
  172. package/dist/ro-RO-DJeBU2j9.js +7 -0
  173. package/dist/{ro-RO-ClCWcOZD.js → ro-RO-DRzT7WiY.js} +2 -2
  174. package/dist/{roleMetadata-v10ns9iG.js → roleMetadata-BgKauSqU.js} +2 -2
  175. package/dist/{sk-SK-CieZx5AS.js → sk-SK-CuXM9tOj.js} +2 -2
  176. package/dist/sk-SK-DWVcJde-.js +7 -0
  177. package/dist/sk-SK-rMCHSdm4.js +7 -0
  178. package/dist/{sl-SI-DbVFyYEg.js → sl-SI-BDRsH7Bv.js} +2 -2
  179. package/dist/sl-SI-Dg4bivT7.js +7 -0
  180. package/dist/sl-SI-cVr04Hr7.js +7 -0
  181. package/dist/style.css +94 -94
  182. package/dist/styles-DYaAeu4q.js +94 -94
  183. package/dist/{sv-SE-WmQ6EnrS.js → sv-SE-Cimi5Nb9.js} +2 -2
  184. package/dist/sv-SE-DTqSBLbI.js +7 -0
  185. package/dist/sv-SE-DaklU1jx.js +7 -0
  186. package/dist/{translation-BYvhW5zA.js → translation-BR3rLb4m.js} +1 -1
  187. package/dist/types/api/address/useAddressCleanse.d.ts +1 -1
  188. package/dist/types/components/Business/forms/rules.d.ts +1 -1
  189. package/dist/types/components/Business/hooks/useSubmitBusinessDetails.types.d.ts +2 -0
  190. package/dist/types/components/Contract/tasks/ServiceAgreementDropin/ServiceAgreementDropin.d.ts +1 -1
  191. package/dist/types/components/Contract/tasks/ServiceAgreementDropin/types.d.ts +0 -1
  192. package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +2 -2
  193. package/dist/types/components/EmbeddedDropins/AcceptTermsOfServiceComponent/AcceptTermsOfServiceComponent.d.ts +1 -2
  194. package/dist/types/components/EmbeddedDropins/BusinessFinancingComponent/utils.d.ts +1 -1
  195. package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/RouterDropinComposer.d.ts +0 -1
  196. package/dist/types/components/Shared/forms/Address/localized/jp/jpAddressSchema.d.ts +1 -1
  197. package/dist/types/components/Shared/forms/Address/types.d.ts +2 -2
  198. package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
  199. package/dist/types/context/ToggleContext/types.d.ts +0 -9
  200. package/dist/types/router/routeConfig.d.ts +0 -16
  201. package/dist/types/utils/addressToString.d.ts +2 -2
  202. package/dist/types/utils/entityStatusUtil.d.ts +1 -1
  203. package/dist/{types-QSnyOf8p.js → types-KjTYEnAG.js} +1 -1
  204. package/dist/{unincorporated-partnership-nnTW3FnG.js → unincorporated-partnership-BstfjTh2.js} +1 -1
  205. package/dist/{useAssociatedLegalEntity-CkuvFV-D.js → useAssociatedLegalEntity-QRvyeNwU.js} +2 -2
  206. package/dist/{useBusinessDetailsData-Dt6QfXWa.js → useBusinessDetailsData-CpS1Uvcn.js} +87 -128
  207. package/dist/{useBusinessLines-BFsRoAAj.js → useBusinessLines-B2iCcDej.js} +1 -1
  208. package/dist/{useCanSeeIntroduction-ChWYl5-5.js → useCanSeeIntroduction-CnXU-rRK.js} +2 -2
  209. package/dist/{useCreateLegalEntity-CoBr-K0N.js → useCreateLegalEntity-zPjl13U3.js} +1 -1
  210. package/dist/{useDataMissingRemediations-QYShC4SG.js → useDataMissingRemediations-BZwtMi3U.js} +2 -2
  211. package/dist/{useForm-BD_PX45C.js → useForm-DkE7PFkl.js} +4 -4
  212. package/dist/{useFormContext-46YsZdLi.js → useFormContext-FNlRAV8O.js} +9 -9
  213. package/dist/{useLegalEntity-CtlUQv_J.js → useLegalEntity-BXk2tzGe.js} +1 -1
  214. package/dist/{useMultiForm-DwfHaB7u.js → useMultiForm-t8ZsYcuA.js} +4 -4
  215. package/dist/{useNavigate-Can-VGd1.js → useNavigate-CjmVqQDd.js} +33 -62
  216. package/dist/{useOnboardingStatus-BlXlrSAS.js → useOnboardingStatus-BgO4uPbW.js} +1 -1
  217. package/dist/{usePciQuestionnaireList-CbkNC_Ye.js → usePciQuestionnaireList-BEPt97lw.js} +1 -1
  218. package/dist/{useSalesChannels-DW5ilTS0.js → useSalesChannels-D3vQBhRT.js} +3 -3
  219. package/dist/{useScenarios-DciPyzQ-.js → useScenarios-Bh7kKk_q.js} +3 -3
  220. package/dist/{useTaskLandedEvent-BXtOctC4.js → useTaskLandedEvent-DDVHIkiF.js} +2 -2
  221. package/dist/{useTaskStatus-wrAxqtIR.js → useTaskStatus-BLkHjMgm.js} +1 -1
  222. package/dist/{useTermsOfServiceStatus-D1_ECrkO.js → useTermsOfServiceStatus-B1OpYOua.js} +1 -1
  223. package/dist/{useTrustMembers-B-H-K0rT.js → useTrustMembers-DVjAe7_S.js} +4 -4
  224. package/dist/{useUnincorporatedPartnershipMembers-7T2XW_zN.js → useUnincorporatedPartnershipMembers-BSEcDBC7.js} +4 -4
  225. package/dist/{useUpdateBusinessLines-Cncate8L.js → useUpdateBusinessLines-jlXfi57a.js} +1 -1
  226. package/dist/{useUpdateLegalEntity-BCLhBhYD.js → useUpdateLegalEntity-BirFdw80.js} +3 -3
  227. package/dist/{utils-DNIZ6F6L.js → utils-BIsRIG8_.js} +30 -30
  228. package/dist/{utils-C1buyvRw.js → utils-BtyrxTzp.js} +1 -1
  229. package/dist/{utils-CxRFiy4f.js → utils-CXoDcYaC.js} +4 -4
  230. package/dist/{utils-CdFoDO35.js → utils-GVCWdWXe.js} +6 -6
  231. package/dist/{utils-C_W9PWZA.js → utils-ZYzpYn7O.js} +19 -19
  232. package/dist/{validate-DkjeS-zE.js → validate-C52znTzq.js} +5 -5
  233. package/dist/{validate-BI6H2MPp.js → validate-DIMkwkYV.js} +3 -3
  234. package/dist/{validateExtractionResult-BV-Fvf48.js → validateExtractionResult-h8CjK4NQ.js} +28 -21
  235. package/dist/{validationError-COmWiy16.js → validationError-DwNvWaOL.js} +1 -1
  236. package/dist/{validationResult-CqlLuppx.js → validationResult-Dzvfkukj.js} +2 -2
  237. package/package.json +1 -1
  238. package/dist/FormNavigation-mEocY-KU.js +0 -115
  239. package/dist/bg-BG-BcmC41vE.js +0 -7
  240. package/dist/bg-BG-L5wKtmmz.js +0 -7
  241. package/dist/cs-CZ-D4Pt8Gsx.js +0 -7
  242. package/dist/cs-CZ-ghdW0Tc6.js +0 -7
  243. package/dist/da-DK-C4wRpqMC.js +0 -7
  244. package/dist/da-DK-CBOVFYaa.js +0 -7
  245. package/dist/de-DE-BOH-YgTt.js +0 -7
  246. package/dist/de-DE-CA81fzkA.js +0 -7
  247. package/dist/el-GR-BjOmQ_B_.js +0 -7
  248. package/dist/el-GR-C5NDkWDr.js +0 -7
  249. package/dist/es-ES-BEYl7Z8S.js +0 -7
  250. package/dist/es-ES-CDFWEg9c.js +0 -7
  251. package/dist/es-LA-C7IleXTc.js +0 -7
  252. package/dist/es-LA-D741KUNg.js +0 -7
  253. package/dist/et-EE-CfgyGext.js +0 -7
  254. package/dist/et-EE-P4s_U3BI.js +0 -7
  255. package/dist/fi-FI-Bed2SzCG.js +0 -7
  256. package/dist/fi-FI-DFO20YZY.js +0 -7
  257. package/dist/fr-FR-D_qhjXEC.js +0 -7
  258. package/dist/fr-FR-wvWrk_PU.js +0 -7
  259. package/dist/hr-HR-D0zfmZK6.js +0 -7
  260. package/dist/hr-HR-DlPm5gxr.js +0 -7
  261. package/dist/hu-HU-CL021irk.js +0 -7
  262. package/dist/hu-HU-NJaOrfnP.js +0 -7
  263. package/dist/it-IT-6VoxKX97.js +0 -7
  264. package/dist/it-IT-BwxzsAX1.js +0 -7
  265. package/dist/ja-JP-CNCeHdxj.js +0 -7
  266. package/dist/ja-JP-Cja4dur8.js +0 -7
  267. package/dist/lt-LT-CNFgOeH4.js +0 -7
  268. package/dist/lt-LT-VP6qtMAw.js +0 -7
  269. package/dist/lv-LV-BdSdhjTP.js +0 -7
  270. package/dist/lv-LV-CQI0LxVf.js +0 -7
  271. package/dist/nl-NL-BN5WtqQB.js +0 -7
  272. package/dist/nl-NL-CclRrN3_.js +0 -7
  273. package/dist/no-NO-CO5xyGPh.js +0 -7
  274. package/dist/no-NO-Cor-jWuN.js +0 -7
  275. package/dist/pl-PL-BzOubawD.js +0 -7
  276. package/dist/pl-PL-DUH23AYC.js +0 -7
  277. package/dist/pt-BR-MAQR_CUu2.js +0 -7
  278. package/dist/pt-BR-n0GcsM-Q.js +0 -7
  279. package/dist/pt-PT-C-mvV1ZJ.js +0 -7
  280. package/dist/pt-PT-CoKsjpyN.js +0 -7
  281. package/dist/ro-RO-Cpv5pKod.js +0 -7
  282. package/dist/ro-RO-CuooCG3m.js +0 -7
  283. package/dist/sk-SK-DSaBObVa.js +0 -7
  284. package/dist/sk-SK-p_p2X_aA.js +0 -7
  285. package/dist/sl-SI-BpZp1MAq.js +0 -7
  286. package/dist/sl-SI-KEJYXISh.js +0 -7
  287. package/dist/sv-SE-Bhvd0GDr.js +0 -7
  288. package/dist/sv-SE-BoXCPhGb.js +0 -7
  289. package/dist/types/components/Business/utils/requestingCapabilities.d.ts +0 -3
  290. package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/DropinComposer.d.ts +0 -2
  291. package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/useNavigation.d.ts +0 -14
@@ -1,50 +1,50 @@
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] = "c3962387-9bf6-475d-aec5-95a5d7e3e1b4", e._sentryDebugIdIdentifier = "sentry-dbid-c3962387-9bf6-475d-aec5-95a5d7e3e1b4");
3
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "b2d9e1f7-8cad-4e66-94d7-758780869c63", e._sentryDebugIdIdentifier = "sentry-dbid-b2d9e1f7-8cad-4e66-94d7-758780869c63");
4
4
  } catch (e) {}
5
- import { a as Icon, i as Typography, n as addResourceBundles, o as createLogger, r as useTranslation } from "./translation-BYvhW5zA.js";
6
- import { A as _rolldown_dynamic_import_helper_default, F as useToggles, N as FeatureNames, O as useSetting, _ as isPartOfTrustFromLegalEntity, a as doesLegalEntityRequiresLegalRepresentative, b as isInstantVerifiedAccount, d as hasRejectedCapabilities, ft as useAccountHolder, g as getOwnTrustProblems, i as useGlobalStore, j as useToggleContext, m as isPartOfUnincorporatedPartnership, mt as stylesheets, n as EmbedShell, p as getOwnUnincorporatedPartnershipProblems, pt as useLocalStorage, r as useGetTaskStatus, t as resolveEnvironment, u as hasAllCapabilitiesResolved, x as Alert, y as getObscuredAccountNumber } from "./resolveEnvironment-C-S9dXKd.js";
7
- import { n as IconButton, r as Loader, t as Button } from "./Button-i8I2dHP8.js";
8
- import { n as httpGet, r as httpPost, s as useApiContext } from "./http-8qgzqVqk.js";
9
- import { r as useLegalEntity, t as ROOT_LE } from "./useLegalEntity-CtlUQv_J.js";
5
+ import { a as Icon, i as Typography, n as addResourceBundles, o as createLogger, r as useTranslation } from "./translation-BR3rLb4m.js";
6
+ import { A as _rolldown_dynamic_import_helper_default, F as useToggles, O as useSetting, _ as isPartOfTrustFromLegalEntity, a as doesLegalEntityRequiresLegalRepresentative, b as isInstantVerifiedAccount, d as hasRejectedCapabilities, ft as useAccountHolder, g as getOwnTrustProblems, i as useGlobalStore, j as useToggleContext, m as isPartOfUnincorporatedPartnership, mt as stylesheets, n as EmbedShell, p as getOwnUnincorporatedPartnershipProblems, pt as useLocalStorage, r as useGetTaskStatus, t as resolveEnvironment, u as hasAllCapabilitiesResolved, x as Alert, y as getObscuredAccountNumber } from "./resolveEnvironment-CDmvZMy-.js";
7
+ import { n as IconButton, r as Loader, t as Button } from "./Button-3qGOI53m.js";
8
+ import { n as httpGet, r as httpPost, s as useApiContext } from "./http-DeQp0G69.js";
9
+ import { r as useLegalEntity, t as ROOT_LE } from "./useLegalEntity-BXk2tzGe.js";
10
10
  import { t as LegalEntityTypes } from "./legal-entity-type-0MfCGzUf.js";
11
11
  import { t as getLegalEntityCountry } from "./getLegalEntityCountry-BHh7Ux8v.js";
12
12
  import { t as useSettingsContext } from "./useSettingsContext-Bpf4UqRT.js";
13
- import { a as noop, o as objectsDeepEqual } from "./AnalyticsContext-BFrJmsp0.js";
13
+ import { a as noop, o as objectsDeepEqual } from "./AnalyticsContext-BnRQ9H1u.js";
14
14
  import { t as StackLayout } from "./StackLayout-IUdNMDgW.js";
15
15
  import { i as TaskStatuses, n as TASK_STATUS_POLLING_INTERVAL_MS, t as TASK_STATUS_COMPLETED_POLLING_INTERVAL_MS } from "./taskStatus-BtekPA8E.js";
16
16
  import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
17
- import { n as Skeleton } from "./Accordion-IXKjwyLD.js";
17
+ import { n as Skeleton } from "./Accordion-DmH02rWQ.js";
18
18
  import { t as TaskTypes } from "./taskTypes-NawDTp5n.js";
19
19
  import { a as getLegalRepresentative, c as getOwnSolePropProblems, f as hasSolePropInLegalEntity } from "./entityAssociationUtil-C-wflW8q.js";
20
20
  import { a as getOwnSignatories, i as getOwnDecisionMakersLegalEntityIds } from "./decisionMakerRoles-DIG8zo1C.js";
21
- import { n as canShowAdaptivePoc, t as TaskListItem } from "./TaskListItem-BmQUmZnE.js";
22
- import { t as useBusinessLines } from "./useBusinessLines-BFsRoAAj.js";
23
- import { n as usePciQuestionnaireList, t as getPciQuestionnaireList } from "./usePciQuestionnaireList-CbkNC_Ye.js";
24
- import { n as usePciStatus, t as useSalesChannels } from "./useSalesChannels-DW5ilTS0.js";
25
- import { n as useTermsOfServiceAcceptanceInfos, t as useTermsOfServiceStatus } from "./useTermsOfServiceStatus-D1_ECrkO.js";
26
- import { t as Card } from "./Card-BCGLpdw7.js";
27
- import { i as useAnalyticsContext } from "./Modal-BLP2aF-u.js";
21
+ import { n as canShowAdaptivePoc, t as TaskListItem } from "./TaskListItem-CerYvccy.js";
22
+ import { i as useAnalyticsContext } from "./Modal-DParMHcv.js";
23
+ import { t as HandlerContext } from "./HandlerContext-DeMa68z0.js";
28
24
  import { t as SettingNames } from "./types-Cwq1JAWT.js";
29
- import { n as useToastContext } from "./invalidateRootLegalEntity-BHWIVP9j.js";
30
- import { t as useCanSeeIntroduction } from "./useCanSeeIntroduction-ChWYl5-5.js";
25
+ import { t as TrustedFieldsProviders } from "./trusted-fields-provider-DLz8KKVf.js";
26
+ import { r as getTrustedFieldsProvider } from "./getTrustedFields-BJ88GlM-.js";
27
+ import { t as useAssociatedLegalEntity } from "./useAssociatedLegalEntity-QRvyeNwU.js";
28
+ import { t as useBusinessLines } from "./useBusinessLines-B2iCcDej.js";
29
+ import { n as usePciQuestionnaireList, t as getPciQuestionnaireList } from "./usePciQuestionnaireList-BEPt97lw.js";
30
+ import { n as usePciStatus, t as useSalesChannels } from "./useSalesChannels-D3vQBhRT.js";
31
+ import { n as useTermsOfServiceAcceptanceInfos, t as useTermsOfServiceStatus } from "./useTermsOfServiceStatus-B1OpYOua.js";
32
+ import { t as Card } from "./Card-BCGLpdw7.js";
33
+ import { n as useToastContext } from "./invalidateRootLegalEntity-CLfParL1.js";
34
+ import { t as useCanSeeIntroduction } from "./useCanSeeIntroduction-CnXU-rRK.js";
31
35
  import { a as idNowPostSubmit, c as CompanyTypesValues, n as isBafinSignatoryFlow, s as showIdNowModal } from "./bafinUtils-BKq-s1Ka.js";
32
- import { n as getDefaultAccountHolderType } from "./accountHolderUtils-CCP7y8fZ.js";
33
- import { t as useDataMissingRemediations } from "./useDataMissingRemediations-QYShC4SG.js";
34
- import { t as EndStateLayout } from "./EndStateLayout-CBRHUXyY.js";
35
- import { n as useCapabilityProblems } from "./getProblemsForEntity-D6XC4DZ2.js";
36
+ import { n as getDefaultAccountHolderType } from "./accountHolderUtils-DN7xxNk6.js";
37
+ import { t as useDataMissingRemediations } from "./useDataMissingRemediations-BZwtMi3U.js";
38
+ import { t as EndStateLayout } from "./EndStateLayout-ic1EOve9.js";
39
+ import { n as useCapabilityProblems } from "./getProblemsForEntity-CjAq8_4L.js";
36
40
  import { t as downloadFile } from "./file-1IenVoh8.js";
37
41
  import { t as filterProblemsByTaskForms } from "./filterProblemsByTaskForms-CQby20PN.js";
38
- import { n as useDeleteTransferInstrument } from "./VerificationErrorAlert-CpG8oYic.js";
39
- import { n as translateTranslatable } from "./utils-C1buyvRw.js";
40
- import { t as HandlerContext } from "./HandlerContext-DeMa68z0.js";
41
- import { t as TrustedFieldsProviders } from "./trusted-fields-provider-DLz8KKVf.js";
42
- import { r as getTrustedFieldsProvider } from "./getTrustedFields-BJ88GlM-.js";
43
- import { t as useAssociatedLegalEntity } from "./useAssociatedLegalEntity-CkuvFV-D.js";
44
- import { n as Image, t as UnincorporatedPartnershipMemberTypes } from "./unincorporated-partnership-nnTW3FnG.js";
42
+ import { n as useDeleteTransferInstrument } from "./VerificationErrorAlert-DoI4EWvH.js";
43
+ import { n as translateTranslatable } from "./utils-BtyrxTzp.js";
45
44
  import { t as isNewEntity } from "./isNewEntity-vML86iIM.js";
46
- import { t as useTrustMembers } from "./useTrustMembers-B-H-K0rT.js";
47
- import { A as UnincorporatedPartnershipMembersOverview$1, C as TrustMemberCompanyPage$1, D as UnincorporatedPartnershipIndividualPage$1, E as TrustMembersOverview$1, M as getDefaultTask$1, O as UnincorporatedPartnershipMemberCompanyPage$1, S as TrustDetailsPage$1, T as TrustMemberRoleAndTypePage$1, _ as SignPCIComponent$1, a as BusinessTypeSelectionPage$1, b as SourceOfFundsPage$1, c as DecisionMakers$1, d as PayoutDetailsPage$1, f as ROUTE_PATHS, g as RootIndividualDetailsPage$1, h as RootBusinessLinesPage$1, i as BusinessFinancingPage$1, j as detectBasePath, k as UnincorporatedPartnershipMemberRoleAndTypePage$1, l as Introduction$1, m as RootBusinessDetailsPage$1, n as AcceptTermsOfService$1, o as CustomerSupport$1, p as Review$1, r as AccountSetupRejected$1, s as DecisionMakerDetailsPage$1, t as useNavigate, u as LegalRepresentativeDetailsPage$1, v as SingpassSelection$1, w as TrustMemberIndividualPage$1, x as TaxReportingDropin$1, y as SoleProprietorshipPage$1 } from "./useNavigate-Can-VGd1.js";
45
+ import { A as UnincorporatedPartnershipMembersOverview, C as TrustMemberCompanyPage, D as UnincorporatedPartnershipIndividualPage, E as TrustMembersOverview, O as UnincorporatedPartnershipMemberCompanyPage, S as TrustDetailsPage, T as TrustMemberRoleAndTypePage, _ as SignPCIComponent, a as BusinessTypeSelectionPage, b as SourceOfFundsPage, c as DecisionMakers, d as PayoutDetailsPage, f as ROUTE_PATHS, g as RootIndividualDetailsPage, h as RootBusinessLinesPage, i as BusinessFinancingPage, j as getDefaultTask, k as UnincorporatedPartnershipMemberRoleAndTypePage, l as Introduction, m as RootBusinessDetailsPage, n as AcceptTermsOfService, o as CustomerSupport, p as Review, r as AccountSetupRejected, s as DecisionMakerDetailsPage, t as useNavigate, u as LegalRepresentativeDetailsPage, v as SingpassSelection, w as TrustMemberIndividualPage, x as TaxReportingDropin, y as SoleProprietorshipPage } from "./useNavigate-CjmVqQDd.js";
46
+ import { n as Image, t as UnincorporatedPartnershipMemberTypes } from "./unincorporated-partnership-BstfjTh2.js";
47
+ import { t as useTrustMembers } from "./useTrustMembers-DVjAe7_S.js";
48
48
  import register from "preact-custom-element";
49
49
  import { Suspense, lazy } from "preact/compat";
50
50
  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";
@@ -76,6 +76,163 @@ var useTaskTypes = (options) => {
76
76
  });
77
77
  };
78
78
  //#endregion
79
+ //#region src/context/handlerContext/HandlerProvider.tsx
80
+ function HandlerProvider({ children, onNavigateToTask }) {
81
+ return /* @__PURE__ */ jsx(HandlerContext.Provider, {
82
+ value: { onNavigateToTask },
83
+ children
84
+ });
85
+ }
86
+ //#endregion
87
+ //#region src/hooks/introduction/useHasSeenIntroduction.ts
88
+ var getHasSeenIntroductionStorageKey = (legalEntityId) => `COMPLETED_INTRO-${legalEntityId}`;
89
+ var useHasSeenIntroduction = ({ legalEntityId }) => {
90
+ const [hasSeenIntroduction, setHasSeenIntroduction] = useLocalStorage(getHasSeenIntroductionStorageKey(legalEntityId), false);
91
+ return {
92
+ hasSeenIntroduction,
93
+ setHasSeenIntroduction
94
+ };
95
+ };
96
+ //#endregion
97
+ //#region src/hooks/singpass/useHasSeenSingpassSelection.ts
98
+ var getHasSeenSingpassSelectionStorageKey = (legalEntityId) => `COMPLETED_SINGPASS_SELECTION-${legalEntityId}`;
99
+ var useHasSeenSingpassSelection = ({ legalEntityId }) => {
100
+ const [hasSeenSingpassSelection, setHasSeenSingpassSelection] = useLocalStorage(getHasSeenSingpassSelectionStorageKey(legalEntityId), false);
101
+ return {
102
+ hasSeenSingpassSelection,
103
+ setHasSeenSingpassSelection
104
+ };
105
+ };
106
+ //#endregion
107
+ //#region src/api/openId/useOpenIdAuthorizationLink.ts
108
+ async function convertToSingpassLinkResponse(openIdInitiateResponse) {
109
+ return { item: {
110
+ authUrl: (await Promise.resolve(openIdInitiateResponse)).authUrl,
111
+ success: true
112
+ } };
113
+ }
114
+ var useOpenIdAuthorizationLink = (options) => {
115
+ const { rootLegalEntityId, baseUrl } = useApiContext();
116
+ return useQuery({
117
+ queryKey: ["openIdAuthorizationLink"],
118
+ queryFn: () => getOpenIdAuthorizationLink(rootLegalEntityId.value, baseUrl.value),
119
+ ...options
120
+ });
121
+ };
122
+ var getOpenIdAuthorizationLink = async (legalEntityId, baseUrl) => {
123
+ return convertToSingpassLinkResponse(httpPost({
124
+ baseUrl,
125
+ path: `/legalEntities/${legalEntityId}/openid/initiate`
126
+ }));
127
+ };
128
+ //#endregion
129
+ //#region src/hooks/singpass/useSingpassMyInfoLogin.ts
130
+ var SingpassMyInfoLoginActionTypes = {
131
+ LOADING: "LOADING",
132
+ SUCCESS: "SUCCESS",
133
+ FAILURE: "FAILURE",
134
+ RESET: "RESET"
135
+ };
136
+ var defaultSingpassState = {
137
+ isLoading: false,
138
+ isSuccess: false
139
+ };
140
+ var singpassReducer = (state, action) => {
141
+ switch (action.type) {
142
+ case SingpassMyInfoLoginActionTypes.LOADING: return {
143
+ ...state,
144
+ isLoading: true
145
+ };
146
+ case SingpassMyInfoLoginActionTypes.SUCCESS: return {
147
+ isLoading: false,
148
+ isSuccess: true
149
+ };
150
+ case SingpassMyInfoLoginActionTypes.FAILURE: return {
151
+ isLoading: false,
152
+ isSuccess: false,
153
+ errorMessage: action.errorMessage
154
+ };
155
+ case SingpassMyInfoLoginActionTypes.RESET: return defaultSingpassState;
156
+ default: return state;
157
+ }
158
+ };
159
+ var useSingpassMyInfoLogin = ({ legalEntity, accountHolder }) => {
160
+ const [state, dispatch] = useReducer(singpassReducer, {
161
+ isLoading: false,
162
+ isSuccess: getTrustedFieldsProvider(legalEntity) === TrustedFieldsProviders.SINGPASS
163
+ });
164
+ const { refetch: fetchOpenIdAuthorizationLink } = useOpenIdAuthorizationLink({ enabled: false });
165
+ const isEligibleForSingpass = useMemo$1(() => {
166
+ if (!legalEntity) return false;
167
+ if (getLegalEntityCountry(legalEntity) !== CountryCodes.Singapore) return false;
168
+ if (accountHolder) return accountHolder === "theCompanyIWorkFor" || accountHolder === "myName";
169
+ const legalEntityType = legalEntity.type;
170
+ const isPartOfTrust = isPartOfTrustFromLegalEntity(legalEntity);
171
+ const isVanillaOrganization = legalEntityType === LegalEntityTypes.ORGANIZATION && !isPartOfTrust;
172
+ const hasSoleProprietor = hasSolePropInLegalEntity(legalEntity);
173
+ const isVanillaIndividual = legalEntityType === LegalEntityTypes.INDIVIDUAL && !hasSoleProprietor;
174
+ return isVanillaOrganization || isVanillaIndividual;
175
+ }, [legalEntity, accountHolder]);
176
+ const handleInitiateSingpassMyInfoLogin = async () => {
177
+ dispatch({
178
+ ...state,
179
+ type: SingpassMyInfoLoginActionTypes.LOADING
180
+ });
181
+ const { data } = await fetchOpenIdAuthorizationLink();
182
+ return data?.item.authUrl;
183
+ };
184
+ const handleSingpassMyInfoLoginSuccess = () => {
185
+ dispatch({
186
+ ...state,
187
+ type: SingpassMyInfoLoginActionTypes.SUCCESS
188
+ });
189
+ };
190
+ const handleSingpassMyInfoLoginFailure = (errorMessage) => {
191
+ dispatch({
192
+ ...state,
193
+ errorMessage,
194
+ type: SingpassMyInfoLoginActionTypes.FAILURE
195
+ });
196
+ };
197
+ const handleSingpassMyInfoLoginReset = () => {
198
+ dispatch({
199
+ ...state,
200
+ type: SingpassMyInfoLoginActionTypes.RESET
201
+ });
202
+ };
203
+ return {
204
+ isEligibleForSingpass,
205
+ state,
206
+ handleInitiateSingpassMyInfoLogin,
207
+ handleSingpassMyInfoLoginSuccess,
208
+ handleSingpassMyInfoLoginFailure,
209
+ handleSingpassMyInfoLoginReset
210
+ };
211
+ };
212
+ //#endregion
213
+ //#region src/hooks/useAssociatedLegalRepresentative.ts
214
+ var useAssociatedLegalRepresentative = (legalEntity) => {
215
+ const matchingAssociation = useMemo$1(() => {
216
+ return getLegalRepresentative(legalEntity);
217
+ }, [legalEntity]);
218
+ const { data } = useLegalEntity(doesLegalEntityRequiresLegalRepresentative(legalEntity) && matchingAssociation?.legalEntityId ? matchingAssociation.legalEntityId : skipToken);
219
+ return data;
220
+ };
221
+ //#endregion
222
+ //#region src/hooks/useCanSeeEntitySelection.ts
223
+ var getCanSeeEntitySelectionStorageKey = (legalEntityId) => `ENTITY_SELECTION_SEEN-${legalEntityId}`;
224
+ var useCanSeeEntitySelection = (legalEntityId) => {
225
+ const [canSeeEntitySelectionFromLocalStorage, setCanSeeEntitySelectionIntoLocalStorage] = useLocalStorage(getCanSeeEntitySelectionStorageKey(legalEntityId), true);
226
+ return {
227
+ canSeeEntitySelection: canSeeEntitySelectionFromLocalStorage,
228
+ setCanSeeEntitySelection: setCanSeeEntitySelectionIntoLocalStorage
229
+ };
230
+ };
231
+ //#endregion
232
+ //#region src/router/MemoryRouterContext.tsx
233
+ var MemoryRouterContext = createContext$1(null);
234
+ var useMemoryRouter = () => useContext$1(MemoryRouterContext);
235
+ //#endregion
79
236
  //#region src/api/pci/usePciQuestionnaire.ts
80
237
  /**
81
238
  * Returns the details of a questionnaire, notably the content that
@@ -184,11 +341,11 @@ var individualFormIds = [
184
341
  ];
185
342
  //#endregion
186
343
  //#region src/components/Apps/tasks/TaskList/utils.ts
187
- var logger$2 = createLogger();
344
+ var logger$1 = createLogger();
188
345
  var getAccountTaskStatus = (accountId, payinPayoutTaskStatus) => {
189
346
  const taskStatusEntry = (payinPayoutTaskStatus?.taskStatusEntries)?.find((entry) => entry.id.includes(accountId));
190
347
  if (!taskStatusEntry) {
191
- logger$2.warn(`No task status for this account: ${accountId}`);
348
+ logger$1.warn(`No task status for this account: ${accountId}`);
192
349
  if (!payinPayoutTaskStatus?.status) return TaskStatuses.PROCESSING;
193
350
  return TaskStatuses[payinPayoutTaskStatus.status];
194
351
  }
@@ -631,407 +788,78 @@ function TaskListInner({ onNavigateToTask, legalEntityResponse, capabilityProble
631
788
  });
632
789
  }
633
790
  //#endregion
634
- //#region src/context/handlerContext/HandlerProvider.tsx
635
- function HandlerProvider({ children, onNavigateToTask }) {
636
- return /* @__PURE__ */ jsx(HandlerContext.Provider, {
637
- value: { onNavigateToTask },
638
- children
791
+ //#region src/hooks/introduction/useShouldShowIntroduction.ts
792
+ var useShouldShowIntroduction = ({ legalEntity }) => {
793
+ const canSeeIntroduction = useCanSeeIntroduction({ legalEntity });
794
+ const { hasSeenIntroduction } = useHasSeenIntroduction({ legalEntityId: legalEntity.id });
795
+ return canSeeIntroduction && !hasSeenIntroduction;
796
+ };
797
+ //#endregion
798
+ //#region src/router/DefaultRouteRedirect.tsx
799
+ function DefaultRouteRedirect({ legalEntity, children }) {
800
+ const navigate = useNavigate();
801
+ const { isSettingEnabled } = useSettingsContext();
802
+ const { accountHolder } = useAccountHolder();
803
+ const { canSeeEntitySelection } = useCanSeeEntitySelection(legalEntity.id);
804
+ const { hasSeenSingpassSelection } = useHasSeenSingpassSelection({ legalEntityId: legalEntity.id });
805
+ const { isEligibleForSingpass } = useSingpassMyInfoLogin({
806
+ legalEntity,
807
+ accountHolder
639
808
  });
809
+ const showIntroduction = useShouldShowIntroduction({ legalEntity });
810
+ const showServiceAgreementsFirst = isSettingEnabled(SettingNames.ShowServiceAgreementsFirst);
811
+ const showBusinessFinancingFirst = isSettingEnabled(SettingNames.ShowBusinessFinancingFirst);
812
+ const canChangeEntityType = isSettingEnabled(SettingNames.AllowLegalEntityTypeChange);
813
+ const shouldShowSingpassSelection = isEligibleForSingpass && !hasSeenSingpassSelection;
814
+ const defaultTask = useMemo$1(() => getDefaultTask({
815
+ legalEntity,
816
+ canSeeEntitySelection,
817
+ canChangeEntityType,
818
+ showIntroduction,
819
+ shouldShowSingpassSelection,
820
+ showServiceAgreementsFirst,
821
+ showBusinessFinancingFirst
822
+ }), [
823
+ legalEntity,
824
+ canSeeEntitySelection,
825
+ canChangeEntityType,
826
+ showIntroduction,
827
+ shouldShowSingpassSelection,
828
+ showServiceAgreementsFirst,
829
+ showBusinessFinancingFirst
830
+ ]);
831
+ const shouldRenderInline = defaultTask === TaskTypes.TASKS_OVERVIEW && !!children;
832
+ useEffect$1(() => {
833
+ if (shouldRenderInline) return;
834
+ navigate.replace(defaultTask);
835
+ }, [
836
+ defaultTask,
837
+ navigate,
838
+ shouldRenderInline
839
+ ]);
840
+ if (shouldRenderInline) return /* @__PURE__ */ jsx(Fragment$1, { children });
841
+ return /* @__PURE__ */ jsx(Loader, {});
640
842
  }
641
843
  //#endregion
642
- //#region src/hooks/introduction/useHasSeenIntroduction.ts
643
- var getHasSeenIntroductionStorageKey = (legalEntityId) => `COMPLETED_INTRO-${legalEntityId}`;
644
- var useHasSeenIntroduction = ({ legalEntityId }) => {
645
- const [hasSeenIntroduction, setHasSeenIntroduction] = useLocalStorage(getHasSeenIntroductionStorageKey(legalEntityId), false);
646
- return {
647
- hasSeenIntroduction,
648
- setHasSeenIntroduction
649
- };
650
- };
844
+ //#region src/router/SuspenseRoute.tsx
845
+ function SuspenseRoute({ path, children }) {
846
+ return /* @__PURE__ */ jsx(Route, {
847
+ path,
848
+ children: /* @__PURE__ */ jsx(Suspense, {
849
+ fallback: /* @__PURE__ */ jsx(Loader, {}),
850
+ children
851
+ })
852
+ });
853
+ }
651
854
  //#endregion
652
- //#region src/hooks/singpass/useHasSeenSingpassSelection.ts
653
- var getHasSeenSingpassSelectionStorageKey = (legalEntityId) => `COMPLETED_SINGPASS_SELECTION-${legalEntityId}`;
654
- var useHasSeenSingpassSelection = ({ legalEntityId }) => {
655
- const [hasSeenSingpassSelection, setHasSeenSingpassSelection] = useLocalStorage(getHasSeenSingpassSelectionStorageKey(legalEntityId), false);
656
- return {
657
- hasSeenSingpassSelection,
658
- setHasSeenSingpassSelection
659
- };
660
- };
661
- //#endregion
662
- //#region src/api/openId/useOpenIdAuthorizationLink.ts
663
- async function convertToSingpassLinkResponse(openIdInitiateResponse) {
664
- return { item: {
665
- authUrl: (await Promise.resolve(openIdInitiateResponse)).authUrl,
666
- success: true
667
- } };
668
- }
669
- var useOpenIdAuthorizationLink = (options) => {
670
- const { rootLegalEntityId, baseUrl } = useApiContext();
671
- return useQuery({
672
- queryKey: ["openIdAuthorizationLink"],
673
- queryFn: () => getOpenIdAuthorizationLink(rootLegalEntityId.value, baseUrl.value),
674
- ...options
675
- });
676
- };
677
- var getOpenIdAuthorizationLink = async (legalEntityId, baseUrl) => {
678
- return convertToSingpassLinkResponse(httpPost({
679
- baseUrl,
680
- path: `/legalEntities/${legalEntityId}/openid/initiate`
681
- }));
682
- };
683
- //#endregion
684
- //#region src/hooks/singpass/useSingpassMyInfoLogin.ts
685
- var SingpassMyInfoLoginActionTypes = {
686
- LOADING: "LOADING",
687
- SUCCESS: "SUCCESS",
688
- FAILURE: "FAILURE",
689
- RESET: "RESET"
690
- };
691
- var defaultSingpassState = {
692
- isLoading: false,
693
- isSuccess: false
694
- };
695
- var singpassReducer = (state, action) => {
696
- switch (action.type) {
697
- case SingpassMyInfoLoginActionTypes.LOADING: return {
698
- ...state,
699
- isLoading: true
700
- };
701
- case SingpassMyInfoLoginActionTypes.SUCCESS: return {
702
- isLoading: false,
703
- isSuccess: true
704
- };
705
- case SingpassMyInfoLoginActionTypes.FAILURE: return {
706
- isLoading: false,
707
- isSuccess: false,
708
- errorMessage: action.errorMessage
709
- };
710
- case SingpassMyInfoLoginActionTypes.RESET: return defaultSingpassState;
711
- default: return state;
712
- }
713
- };
714
- var useSingpassMyInfoLogin = ({ legalEntity, accountHolder }) => {
715
- const [state, dispatch] = useReducer(singpassReducer, {
716
- isLoading: false,
717
- isSuccess: getTrustedFieldsProvider(legalEntity) === TrustedFieldsProviders.SINGPASS
718
- });
719
- const { refetch: fetchOpenIdAuthorizationLink } = useOpenIdAuthorizationLink({ enabled: false });
720
- const isEligibleForSingpass = useMemo$1(() => {
721
- if (!legalEntity) return false;
722
- if (getLegalEntityCountry(legalEntity) !== CountryCodes.Singapore) return false;
723
- if (accountHolder) return accountHolder === "theCompanyIWorkFor" || accountHolder === "myName";
724
- const legalEntityType = legalEntity.type;
725
- const isPartOfTrust = isPartOfTrustFromLegalEntity(legalEntity);
726
- const isVanillaOrganization = legalEntityType === LegalEntityTypes.ORGANIZATION && !isPartOfTrust;
727
- const hasSoleProprietor = hasSolePropInLegalEntity(legalEntity);
728
- const isVanillaIndividual = legalEntityType === LegalEntityTypes.INDIVIDUAL && !hasSoleProprietor;
729
- return isVanillaOrganization || isVanillaIndividual;
730
- }, [legalEntity, accountHolder]);
731
- const handleInitiateSingpassMyInfoLogin = async () => {
732
- dispatch({
733
- ...state,
734
- type: SingpassMyInfoLoginActionTypes.LOADING
735
- });
736
- const { data } = await fetchOpenIdAuthorizationLink();
737
- return data?.item.authUrl;
738
- };
739
- const handleSingpassMyInfoLoginSuccess = () => {
740
- dispatch({
741
- ...state,
742
- type: SingpassMyInfoLoginActionTypes.SUCCESS
743
- });
744
- };
745
- const handleSingpassMyInfoLoginFailure = (errorMessage) => {
746
- dispatch({
747
- ...state,
748
- errorMessage,
749
- type: SingpassMyInfoLoginActionTypes.FAILURE
750
- });
751
- };
752
- const handleSingpassMyInfoLoginReset = () => {
753
- dispatch({
754
- ...state,
755
- type: SingpassMyInfoLoginActionTypes.RESET
756
- });
757
- };
758
- return {
759
- isEligibleForSingpass,
760
- state,
761
- handleInitiateSingpassMyInfoLogin,
762
- handleSingpassMyInfoLoginSuccess,
763
- handleSingpassMyInfoLoginFailure,
764
- handleSingpassMyInfoLoginReset
765
- };
766
- };
767
- //#endregion
768
- //#region src/hooks/useAssociatedLegalRepresentative.ts
769
- var useAssociatedLegalRepresentative = (legalEntity) => {
770
- const matchingAssociation = useMemo$1(() => {
771
- return getLegalRepresentative(legalEntity);
772
- }, [legalEntity]);
773
- const { data } = useLegalEntity(doesLegalEntityRequiresLegalRepresentative(legalEntity) && matchingAssociation?.legalEntityId ? matchingAssociation.legalEntityId : skipToken);
774
- return data;
775
- };
776
- //#endregion
777
- //#region src/hooks/useCanSeeEntitySelection.ts
778
- var getCanSeeEntitySelectionStorageKey = (legalEntityId) => `ENTITY_SELECTION_SEEN-${legalEntityId}`;
779
- var useCanSeeEntitySelection = (legalEntityId) => {
780
- const [canSeeEntitySelectionFromLocalStorage, setCanSeeEntitySelectionIntoLocalStorage] = useLocalStorage(getCanSeeEntitySelectionStorageKey(legalEntityId), true);
781
- return {
782
- canSeeEntitySelection: canSeeEntitySelectionFromLocalStorage,
783
- setCanSeeEntitySelection: setCanSeeEntitySelectionIntoLocalStorage
784
- };
785
- };
786
- var SingpassBanner_module_default = {
787
- "provider-button": "_provider-button_126ab_1",
788
- providerButton: "_provider-button_126ab_1"
789
- };
790
- //#endregion
791
- //#region src/components/Shared/SingpassBanner/SingpassBanner.tsx
792
- var singpassLogo = lazy(() => import("./singpass-logo-small-Dj6yeaQx.js"));
793
- var legalEntityTypeToSubtitleTranslationKey = {
794
- [LegalEntityTypes.INDIVIDUAL]: "myInfoYouCanGetVerifiedDetails",
795
- [LegalEntityTypes.ORGANIZATION]: "myInfoBusinessYouCanGetVerifiedDetails"
796
- };
797
- var legalEntityTypeToButtonLabelKey = {
798
- [LegalEntityTypes.INDIVIDUAL]: "retrieveMyinfo",
799
- [LegalEntityTypes.ORGANIZATION]: "retrieveMyinfoBusiness"
800
- };
801
- var successAlertTitleText = {
802
- [LegalEntityTypes.INDIVIDUAL]: "myinfoDetailsRetrieved",
803
- [LegalEntityTypes.ORGANIZATION]: "myinfoBusinessDetailsRetrieved"
804
- };
805
- var successAlertContentText = {
806
- [LegalEntityTypes.INDIVIDUAL]: "yourDetailsArePreFilledInTheRelevantSections",
807
- [LegalEntityTypes.ORGANIZATION]: "yourBusinesssDetailsArePreFilledInTheRelevantSections"
808
- };
809
- var SingpassBanner = ({ isLoading, isSuccess, errorMessage, onClick, onAlertClose, onMessage, legalEntityType }) => {
810
- const { t, i18n } = useTranslation("singpassBanner");
811
- const { t: tUi } = useTranslation("ui");
812
- const { t: commonT } = useTranslation("common");
813
- addResourceBundles(i18n, [{
814
- ns: "singpassBanner",
815
- importFn: (lang) => _rolldown_dynamic_import_helper_default(/* @__PURE__ */ Object.assign({ "./language/en-US.json": () => import("./en-US-CKZZNUWW.js") }), `./language/${lang}.json`, 3)
816
- }]);
817
- const { baseUrl, rootLegalEntityId } = useApiContext();
818
- const singpassEventListener = useCallback$1((event) => {
819
- if (event.origin !== new URL(baseUrl.value).origin) return;
820
- if (event.data.legalEntityReference !== rootLegalEntityId.value) return;
821
- onMessage({ data: { isSuccessful: event.data.isSuccessful } });
822
- }, [
823
- baseUrl.value,
824
- rootLegalEntityId.value,
825
- onMessage
826
- ]);
827
- useEffect$1(() => {
828
- window.addEventListener("message", singpassEventListener);
829
- return () => window.removeEventListener("message", singpassEventListener);
830
- }, [singpassEventListener]);
831
- if (isLoading) return /* @__PURE__ */ jsx(Skeleton, {});
832
- if (isSuccess) {
833
- const successTitleText = successAlertTitleText[legalEntityType];
834
- const successContentText = successAlertContentText[legalEntityType];
835
- return /* @__PURE__ */ jsx(Alert, {
836
- variant: "success",
837
- title: successTitleText && t(($) => $[successTitleText]),
838
- onClose: onAlertClose,
839
- children: successContentText && t(($) => $[successContentText])
840
- });
841
- }
842
- const buttonLabelKey = legalEntityTypeToButtonLabelKey[legalEntityType];
843
- const singpassButton = buttonLabelKey && /* @__PURE__ */ jsx(Button, {
844
- onClick,
845
- fullWidth: true,
846
- variant: "secondary",
847
- children: /* @__PURE__ */ jsxs("div", {
848
- className: SingpassBanner_module_default.providerButton,
849
- children: [tUi(($) => $[buttonLabelKey]), /* @__PURE__ */ jsx(Image, { lazyLoadedImage: singpassLogo })]
850
- })
851
- });
852
- if (errorMessage) return /* @__PURE__ */ jsx(Alert, {
853
- variant: "warning",
854
- title: translateTranslatable(commonT, errorMessage),
855
- onClose: onAlertClose,
856
- children: /* @__PURE__ */ jsxs(Typography, {
857
- variant: "body",
858
- children: [t(($) => $["tryAgainOrContinueEnteringTheDetailsYourself"]), singpassButton]
859
- })
860
- });
861
- const subtitleTranslationKey = legalEntityTypeToSubtitleTranslationKey[legalEntityType];
862
- return /* @__PURE__ */ jsxs(Alert, {
863
- className: cx("adyen-task-list-singpass-banner"),
864
- icon: false,
865
- title: t(($) => $["getSetUpInstantly"]),
866
- children: [subtitleTranslationKey && /* @__PURE__ */ jsx("div", {
867
- className: cx("adyen-task-list-singpass-banner__subtitle"),
868
- children: t(($) => $[subtitleTranslationKey])
869
- }), singpassButton]
870
- });
871
- };
872
- //#endregion
873
- //#region src/components/Trust/hooks/useTrustMemberNavigation.hook.ts
874
- var useTrustMemberNavigation = ({ navigateTo, trust }) => {
875
- const { t } = useTranslation("trust");
876
- const { showToast } = useToastContext();
877
- const [trustMember, setTrustMember] = useState$1();
878
- const { setTrustMembers } = useGlobalStore();
879
- const trustMembers = useTrustMembers();
880
- const memberId = trustMember?.trustMemberType === "undefinedBeneficiary" ? trustMember.reference : trustMember?.legalEntityId;
881
- useEffect$1(() => setTrustMembers(trustMembers), [trustMembers]);
882
- const onNavigateToTrustMemberEditDetails = async (tm) => {
883
- try {
884
- if (tm.legalEntityId === isNewEntity) setTrustMember(tm);
885
- const id = tm.legalEntityId === isNewEntity ? void 0 : tm.legalEntityId;
886
- navigateTo(tm.trustMemberType === "company" ? TaskTypes.TRUST_MEMBER_COMPANY : TaskTypes.TRUST_MEMBER_INDIVIDUAL, id ? { memberId: id } : void 0);
887
- } catch {
888
- showToast({
889
- label: t(($) => $["failedToFetchTrustMemberDetails"]),
890
- variant: "error"
891
- });
892
- }
893
- };
894
- const onNavigateToTrustMemberRoleAndType = (tm) => {
895
- setTrustMember(tm === "new" ? void 0 : tm);
896
- let id;
897
- if (tm !== "new") {
898
- if (tm.trustMemberType === "undefinedBeneficiary") id = tm.reference !== isNewEntity ? tm.reference : void 0;
899
- else if (tm.legalEntityId !== isNewEntity) id = tm.legalEntityId;
900
- }
901
- navigateTo(TaskTypes.TRUST_MEMBER_ROLE_AND_TYPE, id ? { memberId: id } : void 0);
902
- };
903
- const onNavigateToTrust = async (task = TaskTypes.TRUST) => {
904
- try {
905
- if (trust) navigateTo(task);
906
- else navigateTo(TaskTypes.TRUST);
907
- } catch {
908
- showToast({
909
- label: t(($) => $["failedToFetchTrustDetails"]),
910
- variant: "error"
911
- });
912
- }
913
- };
914
- return {
915
- trustMember,
916
- trustMemberId: memberId === isNewEntity ? void 0 : memberId,
917
- trustMembers,
918
- onNavigateToTrust,
919
- onNavigateToTrustMemberRoleAndType,
920
- onNavigateToTrustMemberEditDetails
921
- };
922
- };
923
- //#endregion
924
- //#region src/components/UnincorporatedPartnership/hooks/useUnincorporatedPartnershipNavigation.ts
925
- var createDefaultMember = (selectedMember, selectedEntityType, selectedRoles) => {
926
- const firstRole = selectedRoles?.[0];
927
- return {
928
- memberType: selectedMember?.memberType || firstRole,
929
- roles: selectedRoles || selectedMember?.roles || [UnincorporatedPartnershipMemberTypes.SECONDARY_PARTNER],
930
- legalEntityType: selectedEntityType,
931
- legalEntityId: selectedMember?.legalEntityId || "",
932
- name: selectedMember?.name || ""
933
- };
934
- };
935
- var useUnincorporatedPartnershipNavigation = ({ navigateTo }) => {
936
- const [activeMember, setActiveMember] = useState$1();
937
- const { rootLegalEntityId } = useApiContext();
938
- const onNavigateToMember = async ({ selectedMember, selectedRoles, selectedEntityType, roleAndType }) => {
939
- const createdMember = createDefaultMember(selectedMember, selectedEntityType, selectedRoles);
940
- setActiveMember(createdMember);
941
- if (rootLegalEntityId.value === createdMember?.legalEntityId) {
942
- navigateTo(createdMember.legalEntityType === LegalEntityTypes.INDIVIDUAL ? TaskTypes.INDIVIDUAL : TaskTypes.BUSINESS_DETAILS);
943
- return;
944
- }
945
- const memberParams = createdMember.legalEntityId ? { memberId: createdMember.legalEntityId } : void 0;
946
- if (roleAndType) {
947
- navigateTo(TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_ROLE_AND_TYPE, memberParams);
948
- return;
949
- }
950
- navigateTo(createdMember?.legalEntityType === LegalEntityTypes.ORGANIZATION ? TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_COMPANY : TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_INDIVIDUAL, memberParams);
951
- };
952
- return {
953
- onNavigateToMember,
954
- activeMember,
955
- setActiveMember
956
- };
957
- };
958
- //#endregion
959
- //#region src/router/MemoryRouterContext.tsx
960
- var MemoryRouterContext = createContext$1(null);
961
- var useMemoryRouter = () => useContext$1(MemoryRouterContext);
962
- //#endregion
963
- //#region src/hooks/introduction/useShouldShowIntroduction.ts
964
- var useShouldShowIntroduction = ({ legalEntity }) => {
965
- const canSeeIntroduction = useCanSeeIntroduction({ legalEntity });
966
- const { hasSeenIntroduction } = useHasSeenIntroduction({ legalEntityId: legalEntity.id });
967
- return canSeeIntroduction && !hasSeenIntroduction;
968
- };
969
- //#endregion
970
- //#region src/router/DefaultRouteRedirect.tsx
971
- function DefaultRouteRedirect({ legalEntity, children }) {
972
- const navigate = useNavigate();
973
- const { isSettingEnabled } = useSettingsContext();
974
- const { accountHolder } = useAccountHolder();
975
- const { canSeeEntitySelection } = useCanSeeEntitySelection(legalEntity.id);
976
- const { hasSeenSingpassSelection } = useHasSeenSingpassSelection({ legalEntityId: legalEntity.id });
977
- const { isEligibleForSingpass } = useSingpassMyInfoLogin({
978
- legalEntity,
979
- accountHolder
980
- });
981
- const showIntroduction = useShouldShowIntroduction({ legalEntity });
982
- const showServiceAgreementsFirst = isSettingEnabled(SettingNames.ShowServiceAgreementsFirst);
983
- const showBusinessFinancingFirst = isSettingEnabled(SettingNames.ShowBusinessFinancingFirst);
984
- const canChangeEntityType = isSettingEnabled(SettingNames.AllowLegalEntityTypeChange);
985
- const shouldShowSingpassSelection = isEligibleForSingpass && !hasSeenSingpassSelection;
986
- const defaultTask = useMemo$1(() => getDefaultTask$1({
987
- legalEntity,
988
- canSeeEntitySelection,
989
- canChangeEntityType,
990
- showIntroduction,
991
- shouldShowSingpassSelection,
992
- showServiceAgreementsFirst,
993
- showBusinessFinancingFirst
994
- }), [
995
- legalEntity,
996
- canSeeEntitySelection,
997
- canChangeEntityType,
998
- showIntroduction,
999
- shouldShowSingpassSelection,
1000
- showServiceAgreementsFirst,
1001
- showBusinessFinancingFirst
1002
- ]);
1003
- const shouldRenderInline = defaultTask === TaskTypes.TASKS_OVERVIEW && !!children;
1004
- useEffect$1(() => {
1005
- if (shouldRenderInline) return;
1006
- navigate.replace(defaultTask);
1007
- }, [
1008
- defaultTask,
1009
- navigate,
1010
- shouldRenderInline
1011
- ]);
1012
- if (shouldRenderInline) return /* @__PURE__ */ jsx(Fragment$1, { children });
1013
- return /* @__PURE__ */ jsx(Loader, {});
1014
- }
1015
- //#endregion
1016
- //#region src/router/SuspenseRoute.tsx
1017
- function SuspenseRoute({ path, children }) {
1018
- return /* @__PURE__ */ jsx(Route, {
1019
- path,
1020
- children: /* @__PURE__ */ jsx(Suspense, {
1021
- fallback: /* @__PURE__ */ jsx(Loader, {}),
1022
- children
1023
- })
1024
- });
1025
- }
1026
- //#endregion
1027
- //#region src/router/OnboardingRouter.tsx
1028
- function OnboardingRouter({ legalEntity, rootLegalEntityCountry, trust, unincorporatedPartnership, soleProp, associatedLegalRepresentative, refetchLegalEntity, refetchTrust, refetchUnincorporatedPartnership, onExternalSubmit, accountHolder, setAccountHolder, setCanSeeEntitySelection, setHasSeenIntroduction, taskTypes, targetLegalEntityType, setTargetLegalEntityType, trustMember, onNavigateToTrust, onNavigateToTrustMemberRoleAndType, onNavigateToTrustMemberEditDetails, unincorporatedPartnershipMember, setActiveMember, onNavigateToMember, singpassBanner, handleSingpassSelectionNextClick, openBankingPartnerConfigId }) {
1029
- const navigate = useNavigate();
1030
- const userEvents = useAnalyticsContext();
1031
- const handleOnSubmit = async (data, backStepCount) => {
1032
- onExternalSubmit?.(data);
1033
- await refetchLegalEntity();
1034
- navigate.back(backStepCount);
855
+ //#region src/router/OnboardingRouter.tsx
856
+ function OnboardingRouter({ legalEntity, rootLegalEntityCountry, trust, unincorporatedPartnership, soleProp, associatedLegalRepresentative, refetchLegalEntity, refetchTrust, refetchUnincorporatedPartnership, onExternalSubmit, accountHolder, setAccountHolder, setCanSeeEntitySelection, setHasSeenIntroduction, taskTypes, targetLegalEntityType, setTargetLegalEntityType, trustMember, onNavigateToTrust, onNavigateToTrustMemberRoleAndType, onNavigateToTrustMemberEditDetails, unincorporatedPartnershipMember, setActiveMember, onNavigateToMember, singpassBanner, handleSingpassSelectionNextClick, openBankingPartnerConfigId }) {
857
+ const navigate = useNavigate();
858
+ const userEvents = useAnalyticsContext();
859
+ const handleOnSubmit = async (data, backStepCount) => {
860
+ onExternalSubmit?.(data);
861
+ await refetchLegalEntity();
862
+ navigate.back(backStepCount);
1035
863
  };
1036
864
  const onNavigateToDecisionMakerIndividual = (task, decisionMakerId, parentId) => {
1037
865
  navigate.to(task, {
@@ -1063,7 +891,7 @@ function OnboardingRouter({ legalEntity, rootLegalEntityCountry, trust, unincorp
1063
891
  }),
1064
892
  /* @__PURE__ */ jsx(SuspenseRoute, {
1065
893
  path: ROUTE_PATHS[TaskTypes.INTRODUCTION],
1066
- children: /* @__PURE__ */ jsx(Introduction$1, {
894
+ children: /* @__PURE__ */ jsx(Introduction, {
1067
895
  onExitIntroduction: () => {
1068
896
  setHasSeenIntroduction(true);
1069
897
  navigate.to("default");
@@ -1075,7 +903,7 @@ function OnboardingRouter({ legalEntity, rootLegalEntityCountry, trust, unincorp
1075
903
  path: ROUTE_PATHS[TaskTypes.BUSINESS_TYPE_SELECTION],
1076
904
  children: /* @__PURE__ */ jsx("div", {
1077
905
  className: "u-display-flex u-justify-content-center",
1078
- children: /* @__PURE__ */ jsx(BusinessTypeSelectionPage$1, {
906
+ children: /* @__PURE__ */ jsx(BusinessTypeSelectionPage, {
1079
907
  onComplete: async (newAccountHolder) => {
1080
908
  setAccountHolder(newAccountHolder);
1081
909
  setCanSeeEntitySelection(false);
@@ -1088,7 +916,7 @@ function OnboardingRouter({ legalEntity, rootLegalEntityCountry, trust, unincorp
1088
916
  }),
1089
917
  /* @__PURE__ */ jsx(SuspenseRoute, {
1090
918
  path: ROUTE_PATHS[TaskTypes.SINGPASS_SELECTION],
1091
- children: /* @__PURE__ */ jsx(SingpassSelection$1, {
919
+ children: /* @__PURE__ */ jsx(SingpassSelection, {
1092
920
  handleNextClick: handleSingpassSelectionNextClick,
1093
921
  accountHolder,
1094
922
  legalEntityType: legalEntity.type
@@ -1096,11 +924,11 @@ function OnboardingRouter({ legalEntity, rootLegalEntityCountry, trust, unincorp
1096
924
  }),
1097
925
  /* @__PURE__ */ jsx(SuspenseRoute, {
1098
926
  path: ROUTE_PATHS[TaskTypes.CAPABILITY_REJECTED],
1099
- children: /* @__PURE__ */ jsx(AccountSetupRejected$1, {})
927
+ children: /* @__PURE__ */ jsx(AccountSetupRejected, {})
1100
928
  }),
1101
929
  /* @__PURE__ */ jsx(SuspenseRoute, {
1102
930
  path: ROUTE_PATHS[TaskTypes.INDIVIDUAL],
1103
- children: /* @__PURE__ */ jsx(RootIndividualDetailsPage$1, {
931
+ children: /* @__PURE__ */ jsx(RootIndividualDetailsPage, {
1104
932
  onSubmit: async (data) => {
1105
933
  onExternalSubmit?.(data);
1106
934
  await refetchLegalEntity();
@@ -1113,7 +941,7 @@ function OnboardingRouter({ legalEntity, rootLegalEntityCountry, trust, unincorp
1113
941
  }),
1114
942
  /* @__PURE__ */ jsx(SuspenseRoute, {
1115
943
  path: ROUTE_PATHS[TaskTypes.BUSINESS_DETAILS],
1116
- children: /* @__PURE__ */ jsx(RootBusinessDetailsPage$1, {
944
+ children: /* @__PURE__ */ jsx(RootBusinessDetailsPage, {
1117
945
  onSubmit: async (data) => {
1118
946
  onExternalSubmit?.(data);
1119
947
  await refetchLegalEntity();
@@ -1126,25 +954,25 @@ function OnboardingRouter({ legalEntity, rootLegalEntityCountry, trust, unincorp
1126
954
  }),
1127
955
  /* @__PURE__ */ jsx(SuspenseRoute, {
1128
956
  path: ROUTE_PATHS[TaskTypes.DECISION_MAKER_OVERVIEW],
1129
- children: /* @__PURE__ */ jsx(DecisionMakers$1, {
957
+ children: /* @__PURE__ */ jsx(DecisionMakers, {
1130
958
  onNavigateToIndividual: (legalEntityId) => onNavigateToDecisionMakerIndividual(TaskTypes.DECISION_MAKER, legalEntityId),
1131
959
  navigateBackToTaskList: () => navigate.to(TaskTypes.TASKS_OVERVIEW)
1132
960
  })
1133
961
  }),
1134
962
  /* @__PURE__ */ jsx(SuspenseRoute, {
1135
963
  path: ROUTE_PATHS[TaskTypes.CUSTOMER_SUPPORT],
1136
- children: /* @__PURE__ */ jsx(CustomerSupport$1, {
964
+ children: /* @__PURE__ */ jsx(CustomerSupport, {
1137
965
  country: rootLegalEntityCountry,
1138
966
  onSubmit: () => navigate.to(TaskTypes.TASKS_OVERVIEW)
1139
967
  })
1140
968
  }),
1141
969
  /* @__PURE__ */ jsx(SuspenseRoute, {
1142
970
  path: ROUTE_PATHS[TaskTypes.REVIEW],
1143
- children: /* @__PURE__ */ jsx(Review$1, { handleHomeClick: () => navigate.to(TaskTypes.TASKS_OVERVIEW) })
971
+ children: /* @__PURE__ */ jsx(Review, { handleHomeClick: () => navigate.to(TaskTypes.TASKS_OVERVIEW) })
1144
972
  }),
1145
973
  /* @__PURE__ */ jsx(SuspenseRoute, {
1146
974
  path: ROUTE_PATHS[TaskTypes.DECISION_MAKER],
1147
- children: /* @__PURE__ */ jsx(DecisionMakerDetailsPage$1, {
975
+ children: /* @__PURE__ */ jsx(DecisionMakerDetailsPage, {
1148
976
  onSubmit: async (data, scenario) => {
1149
977
  onExternalSubmit?.(data);
1150
978
  await refetchLegalEntity();
@@ -1162,7 +990,7 @@ function OnboardingRouter({ legalEntity, rootLegalEntityCountry, trust, unincorp
1162
990
  }),
1163
991
  /* @__PURE__ */ jsx(SuspenseRoute, {
1164
992
  path: ROUTE_PATHS[TaskTypes.PAYOUT],
1165
- children: /* @__PURE__ */ jsx(PayoutDetailsPage$1, {
993
+ children: /* @__PURE__ */ jsx(PayoutDetailsPage, {
1166
994
  taskType: TaskTypes.PAYOUT,
1167
995
  handleHomeClick: () => navigate.to(TaskTypes.TASKS_OVERVIEW),
1168
996
  openBankingPartnerConfigId,
@@ -1175,7 +1003,7 @@ function OnboardingRouter({ legalEntity, rootLegalEntityCountry, trust, unincorp
1175
1003
  }),
1176
1004
  /* @__PURE__ */ jsx(SuspenseRoute, {
1177
1005
  path: ROUTE_PATHS[TaskTypes.PAYIN],
1178
- children: /* @__PURE__ */ jsx(PayoutDetailsPage$1, {
1006
+ children: /* @__PURE__ */ jsx(PayoutDetailsPage, {
1179
1007
  taskType: TaskTypes.PAYIN,
1180
1008
  handleHomeClick: () => navigate.to(TaskTypes.TASKS_OVERVIEW),
1181
1009
  openBankingPartnerConfigId,
@@ -1188,7 +1016,7 @@ function OnboardingRouter({ legalEntity, rootLegalEntityCountry, trust, unincorp
1188
1016
  }),
1189
1017
  /* @__PURE__ */ jsx(SuspenseRoute, {
1190
1018
  path: ROUTE_PATHS[TaskTypes.TRUST_MEMBER_OVERVIEW],
1191
- children: /* @__PURE__ */ jsx(TrustMembersOverview$1, {
1019
+ children: /* @__PURE__ */ jsx(TrustMembersOverview, {
1192
1020
  navigateBackToTaskList: () => navigate.to(TaskTypes.TASKS_OVERVIEW),
1193
1021
  navigateToEditTrustMember: onNavigateToTrustMemberRoleAndType,
1194
1022
  navigateToEditTrustMemberOwner: (trustMemberOwnerId, trustMemberId) => onNavigateToDecisionMakerIndividual(TaskTypes.TRUST_MEMBER_COMPANY_OWNER, trustMemberOwnerId, trustMemberId)
@@ -1196,7 +1024,7 @@ function OnboardingRouter({ legalEntity, rootLegalEntityCountry, trust, unincorp
1196
1024
  }),
1197
1025
  /* @__PURE__ */ jsx(SuspenseRoute, {
1198
1026
  path: ROUTE_PATHS[TaskTypes.TRUST_MEMBER_ROLE_AND_TYPE],
1199
- children: /* @__PURE__ */ jsx(TrustMemberRoleAndTypePage$1, {
1027
+ children: /* @__PURE__ */ jsx(TrustMemberRoleAndTypePage, {
1200
1028
  trustId: trust?.id,
1201
1029
  navigateToFullDropinFor: onNavigateToTrustMemberEditDetails,
1202
1030
  navigateBack: async () => {
@@ -1207,7 +1035,7 @@ function OnboardingRouter({ legalEntity, rootLegalEntityCountry, trust, unincorp
1207
1035
  }),
1208
1036
  /* @__PURE__ */ jsx(SuspenseRoute, {
1209
1037
  path: ROUTE_PATHS[TaskTypes.TRUST_MEMBER_COMPANY_OWNER],
1210
- children: /* @__PURE__ */ jsx(DecisionMakerDetailsPage$1, {
1038
+ children: /* @__PURE__ */ jsx(DecisionMakerDetailsPage, {
1211
1039
  taskType: TaskTypes.TRUST_MEMBER_COMPANY_OWNER,
1212
1040
  onSubmit: async (data) => {
1213
1041
  await handleOnSubmit(data);
@@ -1218,7 +1046,7 @@ function OnboardingRouter({ legalEntity, rootLegalEntityCountry, trust, unincorp
1218
1046
  }),
1219
1047
  /* @__PURE__ */ jsx(SuspenseRoute, {
1220
1048
  path: ROUTE_PATHS[TaskTypes.TRUST_MEMBER_INDIVIDUAL],
1221
- children: /* @__PURE__ */ jsx(TrustMemberIndividualPage$1, {
1049
+ children: /* @__PURE__ */ jsx(TrustMemberIndividualPage, {
1222
1050
  trustId: trust?.id,
1223
1051
  newMember: trustMember?.legalEntityId === isNewEntity ? trustMember : void 0,
1224
1052
  onSubmit: async (data) => {
@@ -1234,7 +1062,7 @@ function OnboardingRouter({ legalEntity, rootLegalEntityCountry, trust, unincorp
1234
1062
  }),
1235
1063
  /* @__PURE__ */ jsx(SuspenseRoute, {
1236
1064
  path: ROUTE_PATHS[TaskTypes.TRUST_MEMBER_COMPANY],
1237
- children: /* @__PURE__ */ jsx(TrustMemberCompanyPage$1, {
1065
+ children: /* @__PURE__ */ jsx(TrustMemberCompanyPage, {
1238
1066
  trustId: trust?.id,
1239
1067
  newMember: trustMember?.legalEntityId === isNewEntity ? trustMember : void 0,
1240
1068
  onSubmit: async (data) => {
@@ -1249,7 +1077,7 @@ function OnboardingRouter({ legalEntity, rootLegalEntityCountry, trust, unincorp
1249
1077
  }),
1250
1078
  /* @__PURE__ */ jsx(SuspenseRoute, {
1251
1079
  path: ROUTE_PATHS[TaskTypes.TRUST],
1252
- children: /* @__PURE__ */ jsx(TrustDetailsPage$1, {
1080
+ children: /* @__PURE__ */ jsx(TrustDetailsPage, {
1253
1081
  taskType: TaskTypes.TRUST,
1254
1082
  trustId: trust?.id,
1255
1083
  onSubmit: (data) => handleOnSubmit(data, 1),
@@ -1258,7 +1086,7 @@ function OnboardingRouter({ legalEntity, rootLegalEntityCountry, trust, unincorp
1258
1086
  }),
1259
1087
  /* @__PURE__ */ jsx(SuspenseRoute, {
1260
1088
  path: ROUTE_PATHS[TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_OVERVIEW],
1261
- children: /* @__PURE__ */ jsx(UnincorporatedPartnershipMembersOverview$1, {
1089
+ children: /* @__PURE__ */ jsx(UnincorporatedPartnershipMembersOverview, {
1262
1090
  navigateBackToTaskList: () => navigate.to(TaskTypes.TASKS_OVERVIEW),
1263
1091
  navigateToEditMember: (member) => onNavigateToMember({
1264
1092
  selectedMember: member,
@@ -1274,7 +1102,7 @@ function OnboardingRouter({ legalEntity, rootLegalEntityCountry, trust, unincorp
1274
1102
  }),
1275
1103
  /* @__PURE__ */ jsx(SuspenseRoute, {
1276
1104
  path: ROUTE_PATHS[TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_ROLE_AND_TYPE],
1277
- children: /* @__PURE__ */ jsx(UnincorporatedPartnershipMemberRoleAndTypePage$1, {
1105
+ children: /* @__PURE__ */ jsx(UnincorporatedPartnershipMemberRoleAndTypePage, {
1278
1106
  onNavigateToMember,
1279
1107
  navigateBack: async () => {
1280
1108
  await refetchUnincorporatedPartnership();
@@ -1284,7 +1112,7 @@ function OnboardingRouter({ legalEntity, rootLegalEntityCountry, trust, unincorp
1284
1112
  }),
1285
1113
  /* @__PURE__ */ jsx(SuspenseRoute, {
1286
1114
  path: ROUTE_PATHS[TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_COMPANY_OWNER],
1287
- children: /* @__PURE__ */ jsx(DecisionMakerDetailsPage$1, {
1115
+ children: /* @__PURE__ */ jsx(DecisionMakerDetailsPage, {
1288
1116
  taskType: TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_COMPANY_OWNER,
1289
1117
  onSubmit: async (data) => {
1290
1118
  await handleOnSubmit(data);
@@ -1295,7 +1123,7 @@ function OnboardingRouter({ legalEntity, rootLegalEntityCountry, trust, unincorp
1295
1123
  }),
1296
1124
  /* @__PURE__ */ jsx(SuspenseRoute, {
1297
1125
  path: ROUTE_PATHS[TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_INDIVIDUAL],
1298
- children: /* @__PURE__ */ jsx(UnincorporatedPartnershipIndividualPage$1, {
1126
+ children: /* @__PURE__ */ jsx(UnincorporatedPartnershipIndividualPage, {
1299
1127
  partnershipId: unincorporatedPartnership?.id,
1300
1128
  member: unincorporatedPartnershipMember,
1301
1129
  onSubmit: async (data) => {
@@ -1311,7 +1139,7 @@ function OnboardingRouter({ legalEntity, rootLegalEntityCountry, trust, unincorp
1311
1139
  }),
1312
1140
  /* @__PURE__ */ jsx(SuspenseRoute, {
1313
1141
  path: ROUTE_PATHS[TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_COMPANY],
1314
- children: /* @__PURE__ */ jsx(UnincorporatedPartnershipMemberCompanyPage$1, {
1142
+ children: /* @__PURE__ */ jsx(UnincorporatedPartnershipMemberCompanyPage, {
1315
1143
  partnershipId: unincorporatedPartnership?.id,
1316
1144
  newMember: unincorporatedPartnershipMember?.legalEntityId === "" ? unincorporatedPartnershipMember : void 0,
1317
1145
  onSubmit: async (data) => {
@@ -1326,7 +1154,7 @@ function OnboardingRouter({ legalEntity, rootLegalEntityCountry, trust, unincorp
1326
1154
  }),
1327
1155
  /* @__PURE__ */ jsx(SuspenseRoute, {
1328
1156
  path: ROUTE_PATHS[TaskTypes.UNINCORPORATED_PARTNERSHIP],
1329
- children: /* @__PURE__ */ jsx(TrustDetailsPage$1, {
1157
+ children: /* @__PURE__ */ jsx(TrustDetailsPage, {
1330
1158
  taskType: TaskTypes.UNINCORPORATED_PARTNERSHIP,
1331
1159
  trustId: unincorporatedPartnership?.id,
1332
1160
  onSubmit: (data) => handleOnSubmit(data, 1),
@@ -1335,11 +1163,11 @@ function OnboardingRouter({ legalEntity, rootLegalEntityCountry, trust, unincorp
1335
1163
  }),
1336
1164
  /* @__PURE__ */ jsx(SuspenseRoute, {
1337
1165
  path: ROUTE_PATHS[TaskTypes.PCI_DSS],
1338
- children: /* @__PURE__ */ jsx(SignPCIComponent$1, { onClose: () => navigate.back() })
1166
+ children: /* @__PURE__ */ jsx(SignPCIComponent, { onClose: () => navigate.back() })
1339
1167
  }),
1340
1168
  /* @__PURE__ */ jsx(SuspenseRoute, {
1341
1169
  path: ROUTE_PATHS[TaskTypes.SOLE_PROPRIETOR_COMPANY],
1342
- children: /* @__PURE__ */ jsx(SoleProprietorshipPage$1, {
1170
+ children: /* @__PURE__ */ jsx(SoleProprietorshipPage, {
1343
1171
  solePropId: soleProp?.id,
1344
1172
  onSubmit: (data) => handleOnSubmit(data, 1),
1345
1173
  handleHomeClick: () => navigate.back()
@@ -1347,7 +1175,7 @@ function OnboardingRouter({ legalEntity, rootLegalEntityCountry, trust, unincorp
1347
1175
  }),
1348
1176
  /* @__PURE__ */ jsx(SuspenseRoute, {
1349
1177
  path: ROUTE_PATHS[TaskTypes.SERVICE_AGREEMENT],
1350
- children: /* @__PURE__ */ jsx(AcceptTermsOfService$1, {
1178
+ children: /* @__PURE__ */ jsx(AcceptTermsOfService, {
1351
1179
  legalEntityId: legalEntity.id,
1352
1180
  onClose: () => {
1353
1181
  userEvents.addPageEvent("Clicked button", {
@@ -1356,7 +1184,6 @@ function OnboardingRouter({ legalEntity, rootLegalEntityCountry, trust, unincorp
1356
1184
  });
1357
1185
  navigate.back();
1358
1186
  },
1359
- asEmbedded: false,
1360
1187
  handleAddSigner: () => {
1361
1188
  onNavigateToDecisionMakerIndividual(TaskTypes.DECISION_MAKER);
1362
1189
  }
@@ -1364,7 +1191,7 @@ function OnboardingRouter({ legalEntity, rootLegalEntityCountry, trust, unincorp
1364
1191
  }),
1365
1192
  /* @__PURE__ */ jsx(SuspenseRoute, {
1366
1193
  path: ROUTE_PATHS[TaskTypes.LEGAL_REPRESENTATIVE_DETAILS],
1367
- children: /* @__PURE__ */ jsx(LegalRepresentativeDetailsPage$1, {
1194
+ children: /* @__PURE__ */ jsx(LegalRepresentativeDetailsPage, {
1368
1195
  legalRepresentativeId: associatedLegalRepresentative?.id,
1369
1196
  onSubmit: handleOnSubmit,
1370
1197
  handleHomeClick: () => navigate.back()
@@ -1372,14 +1199,14 @@ function OnboardingRouter({ legalEntity, rootLegalEntityCountry, trust, unincorp
1372
1199
  }),
1373
1200
  /* @__PURE__ */ jsx(SuspenseRoute, {
1374
1201
  path: ROUTE_PATHS[TaskTypes.SOURCE_OF_FUNDS],
1375
- children: /* @__PURE__ */ jsx(SourceOfFundsPage$1, {
1202
+ children: /* @__PURE__ */ jsx(SourceOfFundsPage, {
1376
1203
  onSubmit: handleOnSubmit,
1377
1204
  handleHomeClick: () => navigate.to(TaskTypes.TASKS_OVERVIEW)
1378
1205
  })
1379
1206
  }),
1380
1207
  /* @__PURE__ */ jsx(SuspenseRoute, {
1381
1208
  path: ROUTE_PATHS[TaskTypes.BUSINESS_FINANCING],
1382
- children: /* @__PURE__ */ jsx(BusinessFinancingPage$1, {
1209
+ children: /* @__PURE__ */ jsx(BusinessFinancingPage, {
1383
1210
  onSubmit: async (data) => {
1384
1211
  onExternalSubmit?.(data);
1385
1212
  await refetchLegalEntity();
@@ -1390,11 +1217,11 @@ function OnboardingRouter({ legalEntity, rootLegalEntityCountry, trust, unincorp
1390
1217
  }),
1391
1218
  /* @__PURE__ */ jsx(SuspenseRoute, {
1392
1219
  path: ROUTE_PATHS[TaskTypes.TAX_REPORTING],
1393
- children: /* @__PURE__ */ jsx(TaxReportingDropin$1, { handleHomeClick: () => navigate.to(TaskTypes.TASKS_OVERVIEW) })
1220
+ children: /* @__PURE__ */ jsx(TaxReportingDropin, { handleHomeClick: () => navigate.to(TaskTypes.TASKS_OVERVIEW) })
1394
1221
  }),
1395
1222
  /* @__PURE__ */ jsx(SuspenseRoute, {
1396
1223
  path: ROUTE_PATHS[TaskTypes.ACQUIRING_BUSINESS_LINE],
1397
- children: /* @__PURE__ */ jsx(RootBusinessLinesPage$1, { handleHomeClick: () => navigate.to(TaskTypes.TASKS_OVERVIEW) })
1224
+ children: /* @__PURE__ */ jsx(RootBusinessLinesPage, { handleHomeClick: () => navigate.to(TaskTypes.TASKS_OVERVIEW) })
1398
1225
  }),
1399
1226
  /* @__PURE__ */ jsx(Route, {
1400
1227
  path: "/",
@@ -1422,383 +1249,253 @@ var useCurrentTask = () => {
1422
1249
  if (match) return taskType;
1423
1250
  }
1424
1251
  };
1252
+ var SingpassBanner_module_default = {
1253
+ "provider-button": "_provider-button_126ab_1",
1254
+ providerButton: "_provider-button_126ab_1"
1255
+ };
1425
1256
  //#endregion
1426
- //#region src/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/RouterDropinComposer.tsx
1427
- function isIn$1(values, x) {
1428
- return values.includes(x);
1429
- }
1430
- var PAGES_WITH_POLLING$1 = [TaskTypes.DECISION_MAKER_OVERVIEW, TaskTypes.TASKS_OVERVIEW];
1431
- var logger$1 = createLogger();
1432
- function URLRouterDropinComposer(props) {
1433
- const { parser } = useRouter();
1434
- return /* @__PURE__ */ jsx(Router, {
1435
- base: useMemo$1(() => detectBasePath(parser), [parser]),
1436
- children: /* @__PURE__ */ jsx(WouterDropinComposerInner, { ...props })
1437
- });
1438
- }
1439
- var MEMORY_ROUTER_SESSION_KEY = "ho-memory-router-path";
1440
- var MEMORY_ROUTER_LE_KEY = "ho-memory-router-le";
1441
- function MemoryRouterDropinComposer({ legalEntityResponse, ...rest }) {
1442
- const leId = legalEntityResponse.id;
1443
- const memoryRouter = useMemo$1(() => {
1444
- if (sessionStorage.getItem(MEMORY_ROUTER_LE_KEY) !== leId) {
1445
- sessionStorage.removeItem(MEMORY_ROUTER_SESSION_KEY);
1446
- sessionStorage.setItem(MEMORY_ROUTER_LE_KEY, leId);
1447
- }
1448
- return memoryLocation({
1449
- path: sessionStorage.getItem("ho-memory-router-path") ?? "/",
1450
- record: true
1257
+ //#region src/components/Shared/SingpassBanner/SingpassBanner.tsx
1258
+ var singpassLogo = lazy(() => import("./singpass-logo-small-Dj6yeaQx.js"));
1259
+ var legalEntityTypeToSubtitleTranslationKey = {
1260
+ [LegalEntityTypes.INDIVIDUAL]: "myInfoYouCanGetVerifiedDetails",
1261
+ [LegalEntityTypes.ORGANIZATION]: "myInfoBusinessYouCanGetVerifiedDetails"
1262
+ };
1263
+ var legalEntityTypeToButtonLabelKey = {
1264
+ [LegalEntityTypes.INDIVIDUAL]: "retrieveMyinfo",
1265
+ [LegalEntityTypes.ORGANIZATION]: "retrieveMyinfoBusiness"
1266
+ };
1267
+ var successAlertTitleText = {
1268
+ [LegalEntityTypes.INDIVIDUAL]: "myinfoDetailsRetrieved",
1269
+ [LegalEntityTypes.ORGANIZATION]: "myinfoBusinessDetailsRetrieved"
1270
+ };
1271
+ var successAlertContentText = {
1272
+ [LegalEntityTypes.INDIVIDUAL]: "yourDetailsArePreFilledInTheRelevantSections",
1273
+ [LegalEntityTypes.ORGANIZATION]: "yourBusinesssDetailsArePreFilledInTheRelevantSections"
1274
+ };
1275
+ var SingpassBanner = ({ isLoading, isSuccess, errorMessage, onClick, onAlertClose, onMessage, legalEntityType }) => {
1276
+ const { t, i18n } = useTranslation("singpassBanner");
1277
+ const { t: tUi } = useTranslation("ui");
1278
+ const { t: commonT } = useTranslation("common");
1279
+ addResourceBundles(i18n, [{
1280
+ ns: "singpassBanner",
1281
+ importFn: (lang) => _rolldown_dynamic_import_helper_default(/* @__PURE__ */ Object.assign({ "./language/en-US.json": () => import("./en-US-CKZZNUWW.js") }), `./language/${lang}.json`, 3)
1282
+ }]);
1283
+ const { baseUrl, rootLegalEntityId } = useApiContext();
1284
+ const singpassEventListener = useCallback$1((event) => {
1285
+ if (event.origin !== new URL(baseUrl.value).origin) return;
1286
+ if (event.data.legalEntityReference !== rootLegalEntityId.value) return;
1287
+ onMessage({ data: { isSuccessful: event.data.isSuccessful } });
1288
+ }, [
1289
+ baseUrl.value,
1290
+ rootLegalEntityId.value,
1291
+ onMessage
1292
+ ]);
1293
+ useEffect$1(() => {
1294
+ window.addEventListener("message", singpassEventListener);
1295
+ return () => window.removeEventListener("message", singpassEventListener);
1296
+ }, [singpassEventListener]);
1297
+ if (isLoading) return /* @__PURE__ */ jsx(Skeleton, {});
1298
+ if (isSuccess) {
1299
+ const successTitleText = successAlertTitleText[legalEntityType];
1300
+ const successContentText = successAlertContentText[legalEntityType];
1301
+ return /* @__PURE__ */ jsx(Alert, {
1302
+ variant: "success",
1303
+ title: successTitleText && t(($) => $[successTitleText]),
1304
+ onClose: onAlertClose,
1305
+ children: successContentText && t(($) => $[successContentText])
1451
1306
  });
1452
- }, [leId]);
1453
- const handle = useMemo$1(() => ({
1454
- navigate: memoryRouter.navigate,
1455
- history: memoryRouter.history
1456
- }), [memoryRouter]);
1457
- return /* @__PURE__ */ jsx(Router, {
1458
- hook: memoryRouter.hook,
1459
- children: /* @__PURE__ */ jsxs(MemoryRouterContext.Provider, {
1460
- value: handle,
1461
- children: [/* @__PURE__ */ jsx(MemoryRouterPathSync, {}), /* @__PURE__ */ jsx(WouterDropinComposerInner, {
1462
- legalEntityResponse,
1463
- ...rest
1464
- })]
1307
+ }
1308
+ const buttonLabelKey = legalEntityTypeToButtonLabelKey[legalEntityType];
1309
+ const singpassButton = buttonLabelKey && /* @__PURE__ */ jsx(Button, {
1310
+ onClick,
1311
+ fullWidth: true,
1312
+ variant: "secondary",
1313
+ children: /* @__PURE__ */ jsxs("div", {
1314
+ className: SingpassBanner_module_default.providerButton,
1315
+ children: [tUi(($) => $[buttonLabelKey]), /* @__PURE__ */ jsx(Image, { lazyLoadedImage: singpassLogo })]
1465
1316
  })
1466
1317
  });
1467
- }
1468
- var HISTORY_STATE_KEY = "kycMemoryPath";
1469
- function MemoryRouterPathSync() {
1470
- const [location] = useLocation();
1471
- const memoryRouter = useMemoryRouter();
1472
- const isPopstateNav = useRef$1(false);
1473
- useEffect$1(() => {
1474
- sessionStorage.setItem(MEMORY_ROUTER_SESSION_KEY, location);
1475
- if (isPopstateNav.current) {
1476
- isPopstateNav.current = false;
1477
- return;
1478
- }
1479
- if (window.history.state?.[HISTORY_STATE_KEY] === location) return;
1480
- window.history.pushState({ [HISTORY_STATE_KEY]: location }, "");
1481
- }, [location]);
1482
- useEffect$1(() => {
1483
- if (!memoryRouter) return;
1484
- const onPopState = (event) => {
1485
- const path = event.state?.[HISTORY_STATE_KEY];
1486
- if (path != null) {
1487
- isPopstateNav.current = true;
1488
- memoryRouter.navigate(path, { replace: true });
1489
- }
1490
- };
1491
- window.addEventListener("popstate", onPopState);
1492
- return () => window.removeEventListener("popstate", onPopState);
1493
- }, [memoryRouter]);
1494
- useEffect$1(() => {
1495
- if (!window.history.state?.[HISTORY_STATE_KEY]) window.history.replaceState({ [HISTORY_STATE_KEY]: location }, "");
1496
- }, []);
1497
- return null;
1498
- }
1499
- function WouterDropinComposerInner({ legalEntityResponse, onSubmit, onNavigate = noop, openBankingPartnerConfigId }) {
1500
- const { accountHolder, setAccountHolder } = useAccountHolder();
1501
- const { setCanSeeEntitySelection } = useCanSeeEntitySelection(legalEntityResponse.id);
1502
- const userEvents = useAnalyticsContext();
1503
- const { features } = useToggleContext();
1504
- const navigate = useNavigate();
1505
- const currentTask = useCurrentTask();
1506
- const { setHasSeenSingpassSelection } = useHasSeenSingpassSelection({ legalEntityId: legalEntityResponse.id });
1507
- const { setHasSeenIntroduction } = useHasSeenIntroduction({ legalEntityId: legalEntityResponse.id });
1508
- const { rootLegalEntity: rootLegalEntitySignal, rootLegalEntityCountry: rootLegalEntityCountrySignal, taskTypes: taskTypesSignal, setRootLegalEntity, setTaskTypes, setAccountHolder: setAccountHolderInGlobalStore } = useGlobalStore();
1509
- const rootLegalEntity = rootLegalEntitySignal.value;
1510
- const rootLegalEntityCountry = rootLegalEntityCountrySignal.value;
1511
- const taskTypes = taskTypesSignal.value;
1512
- const { data: rawTaskTypes, isLoading: isLoadingConfiguration } = useTaskTypes();
1513
- const { isSettingEnabled } = useSettingsContext();
1514
- useEffect$1(() => {
1515
- if (!rawTaskTypes) return;
1516
- let filteredTasks = rawTaskTypes;
1517
- if (!isSettingEnabled(SettingNames.AllowBusinessLines)) filteredTasks = rawTaskTypes?.filter((task) => task !== TaskTypes.ACQUIRING_BUSINESS_LINE);
1518
- setTaskTypes(filteredTasks);
1519
- }, [rawTaskTypes, setTaskTypes]);
1520
- const { data: legalEntityData, refetch: refetchLegalEntity } = useLegalEntity(legalEntityResponse.id, { refetchInterval: (query) => {
1521
- const legalEntityData = query.state.data;
1522
- if (legalEntityData) return !currentTask || !isIn$1(PAGES_WITH_POLLING$1, currentTask) || hasAllCapabilitiesResolved(legalEntityData) || hasRejectedCapabilities(legalEntityData) ? false : 3e3;
1523
- return 3e3;
1524
- } });
1525
- useEffect$1(() => {
1526
- if (legalEntityData && !objectsDeepEqual(legalEntityData, rootLegalEntity)) setRootLegalEntity(legalEntityData);
1527
- }, [legalEntityData]);
1528
- const { isEligibleForSingpass, state: singpassLoginState, handleInitiateSingpassMyInfoLogin, handleSingpassMyInfoLoginSuccess, handleSingpassMyInfoLoginFailure, handleSingpassMyInfoLoginReset } = useSingpassMyInfoLogin({
1529
- legalEntity: rootLegalEntity,
1530
- accountHolder
1318
+ if (errorMessage) return /* @__PURE__ */ jsx(Alert, {
1319
+ variant: "warning",
1320
+ title: translateTranslatable(commonT, errorMessage),
1321
+ onClose: onAlertClose,
1322
+ children: /* @__PURE__ */ jsxs(Typography, {
1323
+ variant: "body",
1324
+ children: [t(($) => $["tryAgainOrContinueEnteringTheDetailsYourself"]), singpassButton]
1325
+ })
1531
1326
  });
1532
- const singpassTabRef = useRef$1(null);
1533
- const { data: trust, refetch: refetchTrust } = useAssociatedLegalEntity(rootLegalEntity, LegalEntityTypes.TRUST);
1534
- const { data: unincorporatedPartnership, refetch: refetchUnincorporatedPartnership } = useAssociatedLegalEntity(rootLegalEntity, LegalEntityTypes.UNINCORPORATED_PARTNERSHIP);
1535
- const { data: soleProp } = useAssociatedLegalEntity(rootLegalEntity, LegalEntityTypes.SOLE_PROPRIETORSHIP);
1536
- const associatedLegalRepresentative = useAssociatedLegalRepresentative(rootLegalEntity);
1537
- const [targetLegalEntityType, setTargetLegalEntityType] = useState$1();
1538
- const { trustMember, onNavigateToTrust, onNavigateToTrustMemberRoleAndType, onNavigateToTrustMemberEditDetails } = useTrustMemberNavigation({
1539
- trust,
1540
- navigateTo: navigate.to
1327
+ const subtitleTranslationKey = legalEntityTypeToSubtitleTranslationKey[legalEntityType];
1328
+ return /* @__PURE__ */ jsxs(Alert, {
1329
+ className: cx("adyen-task-list-singpass-banner"),
1330
+ icon: false,
1331
+ title: t(($) => $["getSetUpInstantly"]),
1332
+ children: [subtitleTranslationKey && /* @__PURE__ */ jsx("div", {
1333
+ className: cx("adyen-task-list-singpass-banner__subtitle"),
1334
+ children: t(($) => $[subtitleTranslationKey])
1335
+ }), singpassButton]
1541
1336
  });
1542
- const { onNavigateToMember, activeMember: unincorporatedPartnershipMember, setActiveMember } = useUnincorporatedPartnershipNavigation({ navigateTo: navigate.to });
1543
- const handleSingpassSelectionNextClick = async (method) => {
1544
- if (method === "singpass") try {
1545
- const authUrl = await handleInitiateSingpassMyInfoLogin();
1546
- if (!authUrl) throw new Error("OpenId authentication url not");
1547
- setHasSeenSingpassSelection(true);
1548
- singpassTabRef.current = window.open(authUrl, "_blank");
1549
- singpassTabRef.current?.focus();
1550
- } catch (e) {
1551
- logger$1.error(e);
1552
- if (typeof e === "string") handleSingpassMyInfoLoginFailure(e);
1337
+ };
1338
+ //#endregion
1339
+ //#region src/components/Trust/hooks/useTrustMemberNavigation.hook.ts
1340
+ var useTrustMemberNavigation = ({ navigateTo, trust }) => {
1341
+ const { t } = useTranslation("trust");
1342
+ const { showToast } = useToastContext();
1343
+ const [trustMember, setTrustMember] = useState$1();
1344
+ const { setTrustMembers } = useGlobalStore();
1345
+ const trustMembers = useTrustMembers();
1346
+ const memberId = trustMember?.trustMemberType === "undefinedBeneficiary" ? trustMember.reference : trustMember?.legalEntityId;
1347
+ useEffect$1(() => setTrustMembers(trustMembers), [trustMembers]);
1348
+ const onNavigateToTrustMemberEditDetails = async (tm) => {
1349
+ try {
1350
+ if (tm.legalEntityId === isNewEntity) setTrustMember(tm);
1351
+ const id = tm.legalEntityId === isNewEntity ? void 0 : tm.legalEntityId;
1352
+ navigateTo(tm.trustMemberType === "company" ? TaskTypes.TRUST_MEMBER_COMPANY : TaskTypes.TRUST_MEMBER_INDIVIDUAL, id ? { memberId: id } : void 0);
1353
+ } catch {
1354
+ showToast({
1355
+ label: t(($) => $["failedToFetchTrustMemberDetails"]),
1356
+ variant: "error"
1357
+ });
1553
1358
  }
1554
- if (method === "manual") setHasSeenSingpassSelection(true);
1555
- navigate.to(TaskTypes.TASKS_OVERVIEW);
1556
1359
  };
1557
- const isJourneyInitializedRef = useRef$1(false);
1558
- if (!isJourneyInitializedRef.current) {
1559
- userEvents.addJourneyEvent("Landed on page", { actionType: "start" });
1560
- isJourneyInitializedRef.current = true;
1561
- }
1562
- useEffect$1(() => {
1563
- if (currentTask) onNavigate(currentTask);
1564
- }, [currentTask]);
1565
- useEffect$1(() => {
1566
- if (hasRejectedCapabilities(rootLegalEntity)) navigate.replace(TaskTypes.CAPABILITY_REJECTED);
1567
- }, [rootLegalEntity]);
1568
- useEffect$1(() => {
1569
- const newAccountHolder = getDefaultAccountHolderType(rootLegalEntity, false, accountHolder);
1570
- if (newAccountHolder !== accountHolder) setAccountHolder(newAccountHolder);
1571
- }, [accountHolder, rootLegalEntity]);
1572
- useEffect$1(() => setAccountHolderInGlobalStore(accountHolder), [accountHolder]);
1573
- const { rootLegalEntityId } = useApiContext();
1574
- const { data: toggleData } = useToggles();
1575
- rootLegalEntityId.value = rootLegalEntity.id;
1576
- useEffect$1(() => {
1577
- Object.keys(toggleData?.experiments || {}).forEach((experiment) => {
1578
- const [name, variant] = experiment.split("_");
1579
- userEvents.trackExperiment({
1580
- name,
1581
- variant
1360
+ const onNavigateToTrustMemberRoleAndType = (tm) => {
1361
+ setTrustMember(tm === "new" ? void 0 : tm);
1362
+ let id;
1363
+ if (tm !== "new") {
1364
+ if (tm.trustMemberType === "undefinedBeneficiary") id = tm.reference !== isNewEntity ? tm.reference : void 0;
1365
+ else if (tm.legalEntityId !== isNewEntity) id = tm.legalEntityId;
1366
+ }
1367
+ navigateTo(TaskTypes.TRUST_MEMBER_ROLE_AND_TYPE, id ? { memberId: id } : void 0);
1368
+ };
1369
+ const onNavigateToTrust = async (task = TaskTypes.TRUST) => {
1370
+ try {
1371
+ if (trust) navigateTo(task);
1372
+ else navigateTo(TaskTypes.TRUST);
1373
+ } catch {
1374
+ showToast({
1375
+ label: t(($) => $["failedToFetchTrustDetails"]),
1376
+ variant: "error"
1582
1377
  });
1583
- });
1584
- }, [
1585
- features,
1586
- toggleData?.experiments,
1587
- userEvents
1588
- ]);
1589
- const singpassBanner = isEligibleForSingpass ? /* @__PURE__ */ jsx(SingpassBanner, {
1590
- ...singpassLoginState,
1591
- onAlertClose: () => {
1592
- handleSingpassMyInfoLoginReset();
1593
- },
1594
- onClick: async () => {
1595
- try {
1596
- const authUrl = await handleInitiateSingpassMyInfoLogin();
1597
- singpassTabRef.current = window.open(authUrl);
1598
- singpassTabRef.current?.focus();
1599
- } catch (e) {
1600
- logger$1.error(e);
1601
- if (typeof e === "string") handleSingpassMyInfoLoginFailure(e);
1602
- }
1603
- },
1604
- onMessage: async ({ data: { isSuccessful } }) => {
1605
- if (isSuccessful) {
1606
- handleSingpassMyInfoLoginSuccess();
1607
- await refetchLegalEntity();
1608
- singpassTabRef.current?.close();
1609
- } else handleSingpassMyInfoLoginFailure(legalEntityResponse.type === LegalEntityTypes.INDIVIDUAL ? "weCouldntConnectToMyinfo" : "weCouldntConnectToMyinfoBusiness");
1610
- },
1611
- legalEntityType: legalEntityResponse?.type
1612
- }) : void 0;
1613
- if (isLoadingConfiguration) return /* @__PURE__ */ jsx(Skeleton, {});
1614
- return /* @__PURE__ */ jsx(HandlerProvider, {
1615
- onNavigateToTask: (taskType) => navigate.to(taskType),
1616
- children: /* @__PURE__ */ jsx(OnboardingRouter, {
1617
- legalEntity: rootLegalEntity,
1618
- rootLegalEntityCountry,
1619
- trust,
1620
- unincorporatedPartnership,
1621
- soleProp,
1622
- associatedLegalRepresentative,
1623
- refetchLegalEntity,
1624
- refetchTrust,
1625
- refetchUnincorporatedPartnership,
1626
- onExternalSubmit: onSubmit,
1627
- accountHolder,
1628
- setAccountHolder,
1629
- setCanSeeEntitySelection,
1630
- setHasSeenIntroduction,
1631
- taskTypes,
1632
- targetLegalEntityType,
1633
- setTargetLegalEntityType,
1634
- trustMember,
1635
- onNavigateToTrust,
1636
- onNavigateToTrustMemberRoleAndType,
1637
- onNavigateToTrustMemberEditDetails,
1638
- unincorporatedPartnershipMember,
1639
- setActiveMember,
1640
- onNavigateToMember,
1641
- singpassBanner,
1642
- handleSingpassSelectionNextClick,
1643
- openBankingPartnerConfigId
1644
- })
1645
- });
1646
- }
1647
- //#endregion
1648
- //#region src/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/useNavigation.ts
1649
- var useNavigation = ({ legalEntity, onNavigate }) => {
1650
- const { isSettingEnabled } = useSettingsContext();
1651
- const userEvents = useAnalyticsContext();
1652
- const showServiceAgreementsFirst = isSettingEnabled(SettingNames.ShowServiceAgreementsFirst);
1653
- const showBusinessFinancingFirst = isSettingEnabled(SettingNames.ShowBusinessFinancingFirst);
1654
- const canChangeEntityType = isSettingEnabled(SettingNames.AllowLegalEntityTypeChange);
1655
- const showIntroduction = useShouldShowIntroduction({ legalEntity });
1656
- const { hasSeenSingpassSelection } = useHasSeenSingpassSelection({ legalEntityId: legalEntity.id });
1657
- const { accountHolder } = useAccountHolder();
1658
- const { canSeeEntitySelection } = useCanSeeEntitySelection(legalEntity.id);
1659
- const { isEligibleForSingpass } = useSingpassMyInfoLogin({
1660
- legalEntity,
1661
- accountHolder
1662
- });
1663
- const shouldShowSingpassSelection = isEligibleForSingpass && !hasSeenSingpassSelection;
1664
- const [taskHistory, setTaskHistory] = useState$1(["default"]);
1665
- const actualTasks = taskHistory.filter((task) => task !== "default");
1666
- const handleNavigation = useCallback$1((task) => {
1667
- userEvents.updateBaseTrackingPayload({ task });
1668
- onNavigate?.(task);
1669
- }, [onNavigate]);
1670
- const navigateTo = useCallback$1((task, deletePreviousHistory = false) => {
1671
- const pushNewTask = () => setTaskHistory((taskHistory) => deletePreviousHistory ? [task] : [...taskHistory, task]);
1672
- if (task === "default") setTimeout(pushNewTask);
1673
- else {
1674
- pushNewTask();
1675
- handleNavigation(task);
1676
1378
  }
1677
- }, [handleNavigation]);
1678
- const navigateBack = useCallback$1((stepCount = 1) => {
1679
- if (taskHistory.length <= 1) return;
1680
- const prevTask = taskHistory[taskHistory.length - (stepCount + 1)];
1681
- if (prevTask === "default") throw Error("Cannot navigate back to 'default' task");
1682
- if (prevTask === TaskTypes.TASKS_OVERVIEW) {
1683
- setTaskHistory([TaskTypes.TASKS_OVERVIEW]);
1684
- handleNavigation?.(TaskTypes.TASKS_OVERVIEW);
1379
+ };
1380
+ return {
1381
+ trustMember,
1382
+ trustMemberId: memberId === isNewEntity ? void 0 : memberId,
1383
+ trustMembers,
1384
+ onNavigateToTrust,
1385
+ onNavigateToTrustMemberRoleAndType,
1386
+ onNavigateToTrustMemberEditDetails
1387
+ };
1388
+ };
1389
+ //#endregion
1390
+ //#region src/components/UnincorporatedPartnership/hooks/useUnincorporatedPartnershipNavigation.ts
1391
+ var createDefaultMember = (selectedMember, selectedEntityType, selectedRoles) => {
1392
+ const firstRole = selectedRoles?.[0];
1393
+ return {
1394
+ memberType: selectedMember?.memberType || firstRole,
1395
+ roles: selectedRoles || selectedMember?.roles || [UnincorporatedPartnershipMemberTypes.SECONDARY_PARTNER],
1396
+ legalEntityType: selectedEntityType,
1397
+ legalEntityId: selectedMember?.legalEntityId || "",
1398
+ name: selectedMember?.name || ""
1399
+ };
1400
+ };
1401
+ var useUnincorporatedPartnershipNavigation = ({ navigateTo }) => {
1402
+ const [activeMember, setActiveMember] = useState$1();
1403
+ const { rootLegalEntityId } = useApiContext();
1404
+ const onNavigateToMember = async ({ selectedMember, selectedRoles, selectedEntityType, roleAndType }) => {
1405
+ const createdMember = createDefaultMember(selectedMember, selectedEntityType, selectedRoles);
1406
+ setActiveMember(createdMember);
1407
+ if (rootLegalEntityId.value === createdMember?.legalEntityId) {
1408
+ navigateTo(createdMember.legalEntityType === LegalEntityTypes.INDIVIDUAL ? TaskTypes.INDIVIDUAL : TaskTypes.BUSINESS_DETAILS);
1685
1409
  return;
1686
1410
  }
1687
- setTaskHistory(taskHistory.slice(0, -1 * stepCount));
1688
- handleNavigation?.(prevTask);
1689
- userEvents.updateBaseTrackingPayload({ task: prevTask });
1690
- }, [taskHistory, handleNavigation]);
1691
- useEffect$1(() => {
1692
- if (!window.history.state) window.history.pushState({}, "");
1693
- const handleBrowserBackButton = () => {
1694
- if (window.history.state === null) window.history.pushState({}, "");
1695
- navigateTo(TaskTypes.TASKS_OVERVIEW);
1696
- };
1697
- window.addEventListener("popstate", handleBrowserBackButton);
1698
- return () => {
1699
- window.removeEventListener("popstate", handleBrowserBackButton);
1700
- };
1701
- }, [navigateTo]);
1702
- useEffect$1(() => {
1703
- if (taskHistory[taskHistory.length - 1] === "default") {
1704
- const defaultTask = getDefaultTask({
1705
- legalEntity,
1706
- canSeeEntitySelection,
1707
- showIntroduction,
1708
- canChangeEntityType,
1709
- shouldShowSingpassSelection,
1710
- showServiceAgreementsFirst,
1711
- showBusinessFinancingFirst
1712
- });
1713
- setTaskHistory([...taskHistory.slice(0, taskHistory.length - 1), defaultTask]);
1411
+ const memberParams = createdMember.legalEntityId ? { memberId: createdMember.legalEntityId } : void 0;
1412
+ if (roleAndType) {
1413
+ navigateTo(TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_ROLE_AND_TYPE, memberParams);
1414
+ return;
1714
1415
  }
1715
- }, [
1716
- legalEntity,
1717
- accountHolder,
1718
- showIntroduction,
1719
- canChangeEntityType,
1720
- shouldShowSingpassSelection,
1721
- showServiceAgreementsFirst,
1722
- taskHistory,
1723
- showBusinessFinancingFirst
1724
- ]);
1416
+ navigateTo(createdMember?.legalEntityType === LegalEntityTypes.ORGANIZATION ? TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_COMPANY : TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_INDIVIDUAL, memberParams);
1417
+ };
1725
1418
  return {
1726
- currentTask: actualTasks[actualTasks.length - 1],
1727
- previousTask: actualTasks[actualTasks.length - 2],
1728
- navigateBack,
1729
- navigateTo
1419
+ onNavigateToMember,
1420
+ activeMember,
1421
+ setActiveMember
1730
1422
  };
1731
1423
  };
1732
- var getDefaultTask = ({ legalEntity, canSeeEntitySelection, canChangeEntityType, showIntroduction, shouldShowSingpassSelection, showServiceAgreementsFirst, showBusinessFinancingFirst }) => {
1733
- const hasLegalEntityProgressedBeyondEntitySelection = hasProgressedBeyondEntitySelection(legalEntity);
1734
- if (showServiceAgreementsFirst) return TaskTypes.SERVICE_AGREEMENT;
1735
- if (showBusinessFinancingFirst) return TaskTypes.BUSINESS_FINANCING;
1736
- if (canChangeEntityType && canSeeEntitySelection && !hasLegalEntityProgressedBeyondEntitySelection) return TaskTypes.BUSINESS_TYPE_SELECTION;
1737
- if (showIntroduction) return TaskTypes.INTRODUCTION;
1738
- if (shouldShowSingpassSelection) return TaskTypes.SINGPASS_SELECTION;
1739
- return TaskTypes.TASKS_OVERVIEW;
1740
- };
1741
- /**
1742
- * We are trying to determine if the LE has data beyond what we consider has basic
1743
- */
1744
- var hasProgressedBeyondEntitySelection = (legalEntity) => {
1745
- const hasOwnEntityAssocation = legalEntity.entityAssociations?.some((ea) => ea.associatorId === legalEntity.id);
1746
- const hasOrganizationType = legalEntity.organization?.type;
1747
- return hasOwnEntityAssocation || !!hasOrganizationType;
1748
- };
1749
1424
  //#endregion
1750
- //#region src/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/DropinComposer.tsx
1751
- var Introduction = lazy(async () => (await import("./Introduction-CgJ2j-Dq.js")).Introduction);
1752
- var BusinessTypeSelectionPage = lazy(async () => (await import("./BusinessTypeSelectionPage-CIRKDgvR.js")).BusinessTypeSelectionPage);
1753
- var SingpassSelection = lazy(async () => (await import("./SingpassSelection-A0OsTbI1.js")).SingpassSelection);
1754
- var AccountSetupRejected = lazy(async () => (await import("./AccountSetupRejected-DBQa7lQQ.js")).AccountSetupRejected);
1755
- var DecisionMakers = lazy(async () => (await import("./DecisionMakers-Bfk1BKkT.js")).DecisionMakers);
1756
- var CustomerSupport = lazy(async () => (await import("./CustomerSupport-CIXbcrtE.js")).CustomerSupport);
1757
- var Review = lazy(async () => (await import("./Review-t6P_YBBl.js")).Review);
1758
- var SignPCIComponent = lazy(async () => (await import("./SignPCIComponent-Bq1CwM1t.js").then((n) => n.n)).SignPCIComponent);
1759
- var AcceptTermsOfService = lazy(async () => (await import("./AcceptTermsOfServiceComponent-B6vVYR5d.js").then((n) => n.n)).AcceptTermsOfServiceComponent);
1760
- var TaxReportingDropin = lazy(async () => (await import("./TaxReportingDropin-DYgpI-y6.js").then((n) => n.n)).TaxReportingDropin);
1761
- var PayoutDetailsPage = lazy(async () => (await import("./PayoutDetailsPage-CxM60SNa.js")).PayoutDetailsPage);
1762
- var RootBusinessDetailsPage = lazy(async () => (await import("./RootBusinessDetailsPage-D0obTtXY.js")).RootBusinessDetailsPage);
1763
- var RootBusinessLinesPage = lazy(async () => (await import("./RootBusinessLinesPage-4rCmIXFz.js")).RootBusinessLinesPage);
1764
- var SoleProprietorshipPage = lazy(async () => (await import("./SoleProprietorshipPage-CVgTVg0K.js")).SoleProprietorshipPage);
1765
- var TrustMemberCompanyPage = lazy(async () => (await import("./TrustMemberCompanyPage-hun5fORS.js")).TrustMemberCompanyPage);
1766
- var TrustMemberIndividualPage = lazy(async () => (await import("./TrustMemberIndividualPage-Dk0wmrff.js")).TrustMemberIndividualPage);
1767
- var TrustMemberRoleAndTypePage = lazy(async () => (await import("./TrustMemberRoleAndTypePage-DupYXfe6.js")).TrustMemberRoleAndTypePage);
1768
- var TrustMembersOverview = lazy(async () => (await import("./TrustMembersOverview-BjjAJEkc.js")).TrustMembersOverview);
1769
- var UnincorporatedPartnershipMemberCompanyPage = lazy(async () => (await import("./UnincorporatedPartnershipMemberCompanyPage-B7pmCSfl.js")).UnincorporatedPartnershipMemberCompanyPage);
1770
- var UnincorporatedPartnershipIndividualPage = lazy(async () => (await import("./UnincorporatedPartnershipIndividualPage-B8YsUUds.js")).UnincorporatedPartnershipIndividualPage);
1771
- var UnincorporatedPartnershipMemberRoleAndTypePage = lazy(async () => (await import("./UnincorporatedPartnershipMemberRoleAndTypePage-B9MnEbkx.js")).UnincorporatedPartnershipMemberRoleAndTypePage);
1772
- var UnincorporatedPartnershipMembersOverview = lazy(async () => (await import("./UnincorporatedPartnershipMembersOverview-Cl-5H_VF.js")).UnincorporatedPartnershipMembersOverview);
1773
- var BusinessFinancingPage = lazy(async () => (await import("./BusinessFinancingPage-Kury51y6.js")).BusinessFinancingPage);
1774
- var TrustDetailsPage = lazy(async () => (await import("./TrustDetailsPage-D9UdRetd.js")).TrustDetailsPage);
1775
- var SourceOfFundsPage = lazy(async () => (await import("./SourceOfFundsPage-CKX-SOAa.js").then((n) => n.n)).SourceOfFundsPage);
1776
- var RootIndividualDetailsPage = lazy(async () => (await import("./RootIndividualDetailsPage-CAGb2sXn.js")).RootIndividualDetailsPage);
1777
- var LegalRepresentativeDetailsPage = lazy(async () => (await import("./LegalRepresentativeDetailsPage-CnvTEEDr.js")).LegalRepresentativeDetailsPage);
1778
- var DecisionMakerDetailsPage = lazy(async () => (await import("./DecisionMakerDetailsPage-CV_wiPKU.js")).DecisionMakerDetailsPage);
1425
+ //#region src/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/RouterDropinComposer.tsx
1779
1426
  function isIn(values, x) {
1780
1427
  return values.includes(x);
1781
1428
  }
1782
1429
  var PAGES_WITH_POLLING = [TaskTypes.DECISION_MAKER_OVERVIEW, TaskTypes.TASKS_OVERVIEW];
1783
1430
  var logger = createLogger();
1784
- function DropinComposer(props) {
1785
- const { isFeatureEnabled } = useToggleContext();
1786
- const useURLRouter = isFeatureEnabled(FeatureNames.EnableURLRouterForHostedOnboarding);
1787
- if (isFeatureEnabled(FeatureNames.EnableMemoryRouterForHostedOnboarding)) return /* @__PURE__ */ jsx(MemoryRouterDropinComposer, { ...props });
1788
- if (useURLRouter) return /* @__PURE__ */ jsx(URLRouterDropinComposer, { ...props });
1789
- return /* @__PURE__ */ jsx(LegacyDropinComposer, { ...props });
1431
+ var MEMORY_ROUTER_SESSION_KEY = "ho-memory-router-path";
1432
+ var MEMORY_ROUTER_LE_KEY = "ho-memory-router-le";
1433
+ function MemoryRouterDropinComposer({ legalEntityResponse, ...rest }) {
1434
+ const leId = legalEntityResponse.id;
1435
+ const memoryRouter = useMemo$1(() => {
1436
+ if (sessionStorage.getItem(MEMORY_ROUTER_LE_KEY) !== leId) {
1437
+ sessionStorage.removeItem(MEMORY_ROUTER_SESSION_KEY);
1438
+ sessionStorage.setItem(MEMORY_ROUTER_LE_KEY, leId);
1439
+ }
1440
+ return memoryLocation({
1441
+ path: sessionStorage.getItem("ho-memory-router-path") ?? "/",
1442
+ record: true
1443
+ });
1444
+ }, [leId]);
1445
+ const handle = useMemo$1(() => ({
1446
+ navigate: memoryRouter.navigate,
1447
+ history: memoryRouter.history
1448
+ }), [memoryRouter]);
1449
+ return /* @__PURE__ */ jsx(Router, {
1450
+ hook: memoryRouter.hook,
1451
+ children: /* @__PURE__ */ jsxs(MemoryRouterContext.Provider, {
1452
+ value: handle,
1453
+ children: [/* @__PURE__ */ jsx(MemoryRouterPathSync, {}), /* @__PURE__ */ jsx(WouterDropinComposerInner, {
1454
+ legalEntityResponse,
1455
+ ...rest
1456
+ })]
1457
+ })
1458
+ });
1459
+ }
1460
+ var HISTORY_STATE_KEY = "kycMemoryPath";
1461
+ function MemoryRouterPathSync() {
1462
+ const [location] = useLocation();
1463
+ const memoryRouter = useMemoryRouter();
1464
+ const isPopstateNav = useRef$1(false);
1465
+ useEffect$1(() => {
1466
+ sessionStorage.setItem(MEMORY_ROUTER_SESSION_KEY, location);
1467
+ if (isPopstateNav.current) {
1468
+ isPopstateNav.current = false;
1469
+ return;
1470
+ }
1471
+ if (window.history.state?.[HISTORY_STATE_KEY] === location) return;
1472
+ window.history.pushState({ [HISTORY_STATE_KEY]: location }, "");
1473
+ }, [location]);
1474
+ useEffect$1(() => {
1475
+ if (!memoryRouter) return;
1476
+ const onPopState = (event) => {
1477
+ const path = event.state?.[HISTORY_STATE_KEY];
1478
+ if (path != null) {
1479
+ isPopstateNav.current = true;
1480
+ memoryRouter.navigate(path, { replace: true });
1481
+ }
1482
+ };
1483
+ window.addEventListener("popstate", onPopState);
1484
+ return () => window.removeEventListener("popstate", onPopState);
1485
+ }, [memoryRouter]);
1486
+ useEffect$1(() => {
1487
+ if (!window.history.state?.[HISTORY_STATE_KEY]) window.history.replaceState({ [HISTORY_STATE_KEY]: location }, "");
1488
+ }, []);
1489
+ return null;
1790
1490
  }
1791
- function LegacyDropinComposer({ legalEntityResponse, onSubmit, onNavigate = noop, openBankingPartnerConfigId }) {
1491
+ function WouterDropinComposerInner({ legalEntityResponse, onSubmit, onNavigate = noop, openBankingPartnerConfigId }) {
1792
1492
  const { accountHolder, setAccountHolder } = useAccountHolder();
1793
1493
  const { setCanSeeEntitySelection } = useCanSeeEntitySelection(legalEntityResponse.id);
1794
1494
  const userEvents = useAnalyticsContext();
1795
- const { features } = useToggleContext();
1495
+ const navigate = useNavigate();
1496
+ const currentTask = useCurrentTask();
1796
1497
  const { setHasSeenSingpassSelection } = useHasSeenSingpassSelection({ legalEntityId: legalEntityResponse.id });
1797
1498
  const { setHasSeenIntroduction } = useHasSeenIntroduction({ legalEntityId: legalEntityResponse.id });
1798
- const { currentTask, previousTask, navigateTo, navigateBack } = useNavigation({
1799
- legalEntity: legalEntityResponse,
1800
- onNavigate
1801
- });
1802
1499
  const { rootLegalEntity: rootLegalEntitySignal, rootLegalEntityCountry: rootLegalEntityCountrySignal, taskTypes: taskTypesSignal, setRootLegalEntity, setTaskTypes, setAccountHolder: setAccountHolderInGlobalStore } = useGlobalStore();
1803
1500
  const rootLegalEntity = rootLegalEntitySignal.value;
1804
1501
  const rootLegalEntityCountry = rootLegalEntityCountrySignal.value;
@@ -1819,7 +1516,6 @@ function LegacyDropinComposer({ legalEntityResponse, onSubmit, onNavigate = noop
1819
1516
  useEffect$1(() => {
1820
1517
  if (legalEntityData && !objectsDeepEqual(legalEntityData, rootLegalEntity)) setRootLegalEntity(legalEntityData);
1821
1518
  }, [legalEntityData]);
1822
- const [currentTransferInstrumentId, setCurrentTransferInstrumentId] = useState$1();
1823
1519
  const { isEligibleForSingpass, state: singpassLoginState, handleInitiateSingpassMyInfoLogin, handleSingpassMyInfoLoginSuccess, handleSingpassMyInfoLoginFailure, handleSingpassMyInfoLoginReset } = useSingpassMyInfoLogin({
1824
1520
  legalEntity: rootLegalEntity,
1825
1521
  accountHolder
@@ -1828,17 +1524,13 @@ function LegacyDropinComposer({ legalEntityResponse, onSubmit, onNavigate = noop
1828
1524
  const { data: trust, refetch: refetchTrust } = useAssociatedLegalEntity(rootLegalEntity, LegalEntityTypes.TRUST);
1829
1525
  const { data: unincorporatedPartnership, refetch: refetchUnincorporatedPartnership } = useAssociatedLegalEntity(rootLegalEntity, LegalEntityTypes.UNINCORPORATED_PARTNERSHIP);
1830
1526
  const { data: soleProp } = useAssociatedLegalEntity(rootLegalEntity, LegalEntityTypes.SOLE_PROPRIETORSHIP);
1831
- const [parentId, setParentId] = useState$1();
1832
- const [currentDecisionMakerId, setCurrentDecisionMakerId] = useState$1();
1833
- const { data: currentDecisionMaker } = useLegalEntity(currentDecisionMakerId ?? skipToken);
1834
1527
  const associatedLegalRepresentative = useAssociatedLegalRepresentative(rootLegalEntity);
1835
1528
  const [targetLegalEntityType, setTargetLegalEntityType] = useState$1();
1836
- const legacyNavigateTo = (task, _params) => navigateTo(task);
1837
- const { trustMember, trustMemberId, onNavigateToTrust, onNavigateToTrustMemberRoleAndType, onNavigateToTrustMemberEditDetails } = useTrustMemberNavigation({
1529
+ const { trustMember, onNavigateToTrust, onNavigateToTrustMemberRoleAndType, onNavigateToTrustMemberEditDetails } = useTrustMemberNavigation({
1838
1530
  trust,
1839
- navigateTo: legacyNavigateTo
1531
+ navigateTo: navigate.to
1840
1532
  });
1841
- const { onNavigateToMember, activeMember: unincorporatedPartnershipMember, setActiveMember } = useUnincorporatedPartnershipNavigation({ navigateTo: legacyNavigateTo });
1533
+ const { onNavigateToMember, activeMember: unincorporatedPartnershipMember, setActiveMember } = useUnincorporatedPartnershipNavigation({ navigateTo: navigate.to });
1842
1534
  const handleSingpassSelectionNextClick = async (method) => {
1843
1535
  if (method === "singpass") try {
1844
1536
  const authUrl = await handleInitiateSingpassMyInfoLogin();
@@ -1851,48 +1543,7 @@ function LegacyDropinComposer({ legalEntityResponse, onSubmit, onNavigate = noop
1851
1543
  if (typeof e === "string") handleSingpassMyInfoLoginFailure(e);
1852
1544
  }
1853
1545
  if (method === "manual") setHasSeenSingpassSelection(true);
1854
- navigateTo(TaskTypes.TASKS_OVERVIEW);
1855
- };
1856
- const onNavigateToDecisionMakerIndividual = async (task, id, parentId) => {
1857
- setParentId(parentId ?? rootLegalEntity.id);
1858
- setCurrentDecisionMakerId(id);
1859
- navigateTo(task);
1860
- };
1861
- const onNavigateToPayinOrPayout = async (id, task = TaskTypes.PAYOUT) => {
1862
- if (id) try {
1863
- setCurrentTransferInstrumentId(id);
1864
- } finally {
1865
- navigateTo(task);
1866
- }
1867
- else {
1868
- setCurrentTransferInstrumentId(void 0);
1869
- navigateTo(task);
1870
- }
1871
- };
1872
- const onNavigateToTask = async (task, id) => {
1873
- switch (task) {
1874
- case TaskTypes.PAYOUT:
1875
- await onNavigateToPayinOrPayout(id, TaskTypes.PAYOUT);
1876
- break;
1877
- case TaskTypes.PAYIN:
1878
- await onNavigateToPayinOrPayout(id, TaskTypes.PAYIN);
1879
- break;
1880
- case TaskTypes.TRUST:
1881
- await onNavigateToTrust();
1882
- break;
1883
- case TaskTypes.TRUST_MEMBER_OVERVIEW:
1884
- await onNavigateToTrust(TaskTypes.TRUST_MEMBER_OVERVIEW);
1885
- break;
1886
- case TaskTypes.SOLE_PROPRIETOR_COMPANY:
1887
- await navigateTo(TaskTypes.SOLE_PROPRIETOR_COMPANY);
1888
- break;
1889
- default: navigateTo(task);
1890
- }
1891
- };
1892
- const handleOnSubmit = async (data, backStepCount) => {
1893
- onSubmit?.(data);
1894
- await refetchLegalEntity();
1895
- navigateBack(backStepCount);
1546
+ navigate.to(TaskTypes.TASKS_OVERVIEW);
1896
1547
  };
1897
1548
  const isJourneyInitializedRef = useRef$1(false);
1898
1549
  if (!isJourneyInitializedRef.current) {
@@ -1900,7 +1551,10 @@ function LegacyDropinComposer({ legalEntityResponse, onSubmit, onNavigate = noop
1900
1551
  isJourneyInitializedRef.current = true;
1901
1552
  }
1902
1553
  useEffect$1(() => {
1903
- if (hasRejectedCapabilities(rootLegalEntity)) navigateTo(TaskTypes.CAPABILITY_REJECTED, true);
1554
+ if (currentTask) onNavigate(currentTask);
1555
+ }, [currentTask]);
1556
+ useEffect$1(() => {
1557
+ if (hasRejectedCapabilities(rootLegalEntity)) navigate.replace(TaskTypes.CAPABILITY_REJECTED);
1904
1558
  }, [rootLegalEntity]);
1905
1559
  useEffect$1(() => {
1906
1560
  const newAccountHolder = getDefaultAccountHolderType(rootLegalEntity, false, accountHolder);
@@ -1918,11 +1572,7 @@ function LegacyDropinComposer({ legalEntityResponse, onSubmit, onNavigate = noop
1918
1572
  variant
1919
1573
  });
1920
1574
  });
1921
- }, [
1922
- features,
1923
- toggleData?.experiments,
1924
- userEvents
1925
- ]);
1575
+ }, [toggleData?.experiments, userEvents]);
1926
1576
  const singpassBanner = isEligibleForSingpass ? /* @__PURE__ */ jsx(SingpassBanner, {
1927
1577
  ...singpassLoginState,
1928
1578
  onAlertClose: () => {
@@ -1948,341 +1598,42 @@ function LegacyDropinComposer({ legalEntityResponse, onSubmit, onNavigate = noop
1948
1598
  legalEntityType: legalEntityResponse?.type
1949
1599
  }) : void 0;
1950
1600
  if (isLoadingConfiguration) return /* @__PURE__ */ jsx(Skeleton, {});
1951
- const renderTask = () => {
1952
- switch (currentTask) {
1953
- case TaskTypes.BUSINESS_TYPE_SELECTION: return /* @__PURE__ */ jsx("div", {
1954
- className: "u-display-flex u-justify-content-center",
1955
- children: /* @__PURE__ */ jsx(Suspense, {
1956
- fallback: /* @__PURE__ */ jsx(Loader, {}),
1957
- children: /* @__PURE__ */ jsx(BusinessTypeSelectionPage, {
1958
- onComplete: async (newAccountHolder) => {
1959
- setAccountHolder(newAccountHolder);
1960
- setCanSeeEntitySelection(false);
1961
- await refetchLegalEntity();
1962
- navigateTo("default");
1963
- },
1964
- onBack: previousTask ? navigateBack : void 0
1965
- })
1966
- })
1967
- });
1968
- case TaskTypes.SINGPASS_SELECTION: return /* @__PURE__ */ jsx(Suspense, {
1969
- fallback: /* @__PURE__ */ jsx(Loader, {}),
1970
- children: /* @__PURE__ */ jsx(SingpassSelection, {
1971
- handleNextClick: handleSingpassSelectionNextClick,
1972
- accountHolder,
1973
- legalEntityType: rootLegalEntity.type
1974
- })
1975
- });
1976
- case TaskTypes.INTRODUCTION: return /* @__PURE__ */ jsx(Suspense, {
1977
- fallback: /* @__PURE__ */ jsx(Loader, {}),
1978
- children: /* @__PURE__ */ jsx(Introduction, {
1979
- onExitIntroduction: () => {
1980
- setHasSeenIntroduction(true);
1981
- navigateTo("default");
1982
- },
1983
- tasks: taskTypes
1984
- })
1985
- });
1986
- case TaskTypes.CAPABILITY_REJECTED: return /* @__PURE__ */ jsxs(Suspense, {
1987
- fallback: /* @__PURE__ */ jsx(Loader, {}),
1988
- children: [/* @__PURE__ */ jsx(AccountSetupRejected, {}), ";"]
1989
- });
1990
- case TaskTypes.TASKS_OVERVIEW: return /* @__PURE__ */ jsx(TaskList, {
1991
- onNavigateToTask,
1992
- singpassComponent: singpassBanner
1993
- });
1994
- case TaskTypes.DECISION_MAKER_OVERVIEW: return /* @__PURE__ */ jsx(Suspense, {
1995
- fallback: /* @__PURE__ */ jsx(Loader, {}),
1996
- children: /* @__PURE__ */ jsx(DecisionMakers, {
1997
- onNavigateToIndividual: (legalEntityId) => onNavigateToDecisionMakerIndividual(TaskTypes.DECISION_MAKER, legalEntityId),
1998
- navigateBackToTaskList: navigateBack
1999
- })
2000
- });
2001
- case TaskTypes.INDIVIDUAL: return /* @__PURE__ */ jsx(Suspense, {
2002
- fallback: /* @__PURE__ */ jsx(Loader, {}),
2003
- children: /* @__PURE__ */ jsx(RootIndividualDetailsPage, {
2004
- onSubmit: async (data) => {
2005
- onSubmit?.(data);
2006
- await refetchLegalEntity();
2007
- navigateTo(TaskTypes.TASKS_OVERVIEW);
2008
- setTargetLegalEntityType(void 0);
2009
- },
2010
- handleHomeClick: () => navigateTo(TaskTypes.TASKS_OVERVIEW),
2011
- isTargetLegalEntityType: targetLegalEntityType === LegalEntityTypes.INDIVIDUAL
2012
- })
2013
- });
2014
- case TaskTypes.CUSTOMER_SUPPORT: return /* @__PURE__ */ jsx(Suspense, {
2015
- fallback: /* @__PURE__ */ jsx(Loader, {}),
2016
- children: /* @__PURE__ */ jsx(CustomerSupport, {
2017
- country: rootLegalEntityCountry,
2018
- onSubmit: () => navigateTo(TaskTypes.TASKS_OVERVIEW)
2019
- })
2020
- });
2021
- case TaskTypes.REVIEW: return /* @__PURE__ */ jsx(Suspense, {
2022
- fallback: /* @__PURE__ */ jsx(Loader, {}),
2023
- children: /* @__PURE__ */ jsx(Review, { handleHomeClick: () => navigateTo(TaskTypes.TASKS_OVERVIEW) })
2024
- });
2025
- case TaskTypes.DECISION_MAKER: return /* @__PURE__ */ jsx(Suspense, {
2026
- fallback: /* @__PURE__ */ jsx(Loader, {}),
2027
- children: /* @__PURE__ */ jsx(DecisionMakerDetailsPage, {
2028
- decisionMakerId: currentDecisionMaker?.id,
2029
- parentCompanyId: parentId,
2030
- onSubmit: async (data, scenario) => {
2031
- onSubmit?.(data);
2032
- await refetchLegalEntity();
2033
- if (isBafinSignatoryFlow({
2034
- taskType: TaskTypes.DECISION_MAKER,
2035
- data,
2036
- scenarios: scenario
2037
- })) {
2038
- showIdNowModal.value = true;
2039
- idNowPostSubmit.value = true;
2040
- } else navigateBack();
2041
- },
2042
- handleHomeClick: navigateBack
2043
- })
2044
- });
2045
- case TaskTypes.TRUST_MEMBER_COMPANY_OWNER: return /* @__PURE__ */ jsx(Suspense, {
2046
- fallback: /* @__PURE__ */ jsx(Loader, {}),
2047
- children: /* @__PURE__ */ jsx(DecisionMakerDetailsPage, {
2048
- taskType: TaskTypes.TRUST_MEMBER_COMPANY_OWNER,
2049
- parentCompanyId: parentId,
2050
- decisionMakerId: currentDecisionMakerId,
2051
- onSubmit: async (data) => {
2052
- await handleOnSubmit(data);
2053
- await refetchTrust();
2054
- },
2055
- handleHomeClick: navigateBack
2056
- })
2057
- });
2058
- case TaskTypes.TRUST_MEMBER_INDIVIDUAL: return /* @__PURE__ */ jsx(Suspense, {
2059
- fallback: /* @__PURE__ */ jsx(Loader, {}),
2060
- children: /* @__PURE__ */ jsx(TrustMemberIndividualPage, {
2061
- memberId: trustMemberId,
2062
- trustId: trust.id,
2063
- newMember: trustMember?.legalEntityId === isNewEntity ? trustMember : void 0,
2064
- onSubmit: async (data) => {
2065
- await handleOnSubmit(data, 2);
2066
- await refetchTrust();
2067
- },
2068
- handleBackClick: navigateBack,
2069
- handleHomeClick: () => navigateTo(TaskTypes.TRUST_MEMBER_OVERVIEW)
2070
- })
2071
- });
2072
- case TaskTypes.TRUST_MEMBER_COMPANY: return /* @__PURE__ */ jsx(Suspense, {
2073
- fallback: /* @__PURE__ */ jsx(Loader, {}),
2074
- children: /* @__PURE__ */ jsx(TrustMemberCompanyPage, {
2075
- trustId: trust.id,
2076
- trustMemberCompanyId: trustMemberId,
2077
- newMember: trustMember?.legalEntityId === isNewEntity ? trustMember : void 0,
2078
- onSubmit: async (data) => {
2079
- await handleOnSubmit(data, 2);
2080
- await refetchTrust();
2081
- },
2082
- handleHomeClick: navigateBack
2083
- })
2084
- });
2085
- case TaskTypes.BUSINESS_DETAILS: return /* @__PURE__ */ jsx(Suspense, {
2086
- fallback: /* @__PURE__ */ jsx(Loader, {}),
2087
- children: /* @__PURE__ */ jsx(RootBusinessDetailsPage, {
2088
- onSubmit: async (data) => {
2089
- onSubmit?.(data);
2090
- await refetchLegalEntity();
2091
- navigateTo(TaskTypes.TASKS_OVERVIEW);
2092
- setTargetLegalEntityType(void 0);
2093
- },
2094
- handleHomeClick: navigateBack,
2095
- isTargetLegalEntityType: targetLegalEntityType === LegalEntityTypes.ORGANIZATION
2096
- })
2097
- });
2098
- case TaskTypes.PAYOUT:
2099
- case TaskTypes.PAYIN: return /* @__PURE__ */ jsx(Suspense, {
2100
- fallback: /* @__PURE__ */ jsx(Loader, {}),
2101
- children: /* @__PURE__ */ jsx(PayoutDetailsPage, {
2102
- taskType: currentTask,
2103
- transferInstrumentId: currentTransferInstrumentId,
2104
- setTransferInstrumentId: setCurrentTransferInstrumentId,
2105
- handleHomeClick: navigateBack,
2106
- openBankingPartnerConfigId,
2107
- onSubmit: handleOnSubmit
2108
- })
2109
- });
2110
- case TaskTypes.TRUST: return /* @__PURE__ */ jsx(Suspense, {
2111
- fallback: /* @__PURE__ */ jsx(Loader, {}),
2112
- children: /* @__PURE__ */ jsx(TrustDetailsPage, {
2113
- taskType: TaskTypes.TRUST,
2114
- trustId: trust?.id,
2115
- onSubmit: (data) => handleOnSubmit(data, 1),
2116
- handleHomeClick: navigateBack
2117
- })
2118
- });
2119
- case TaskTypes.TRUST_MEMBER_OVERVIEW: return /* @__PURE__ */ jsx(Suspense, {
2120
- fallback: /* @__PURE__ */ jsx(Loader, {}),
2121
- children: /* @__PURE__ */ jsx(TrustMembersOverview, {
2122
- navigateBackToTaskList: navigateBack,
2123
- navigateToEditTrustMember: onNavigateToTrustMemberRoleAndType,
2124
- navigateToEditTrustMemberOwner: (trustMemberOwnerId, trustMemberId) => onNavigateToDecisionMakerIndividual(TaskTypes.TRUST_MEMBER_COMPANY_OWNER, trustMemberOwnerId, trustMemberId)
2125
- })
2126
- });
2127
- case TaskTypes.TRUST_MEMBER_ROLE_AND_TYPE: return /* @__PURE__ */ jsx(Suspense, {
2128
- fallback: /* @__PURE__ */ jsx(Loader, {}),
2129
- children: /* @__PURE__ */ jsx(TrustMemberRoleAndTypePage, {
2130
- trustId: trust.id,
2131
- memberId: trustMemberId,
2132
- navigateToFullDropinFor: onNavigateToTrustMemberEditDetails,
2133
- navigateBack: async () => {
2134
- await refetchTrust();
2135
- navigateBack();
2136
- }
2137
- })
2138
- });
2139
- case TaskTypes.UNINCORPORATED_PARTNERSHIP: return /* @__PURE__ */ jsx(Suspense, {
2140
- fallback: /* @__PURE__ */ jsx(Loader, {}),
2141
- children: /* @__PURE__ */ jsx(TrustDetailsPage, {
2142
- taskType: TaskTypes.UNINCORPORATED_PARTNERSHIP,
2143
- trustId: unincorporatedPartnership?.id,
2144
- onSubmit: (data) => handleOnSubmit(data, 1),
2145
- handleHomeClick: navigateBack
2146
- })
2147
- });
2148
- case TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_OVERVIEW: return /* @__PURE__ */ jsx(Suspense, {
2149
- fallback: /* @__PURE__ */ jsx(Loader, {}),
2150
- children: /* @__PURE__ */ jsx(UnincorporatedPartnershipMembersOverview, {
2151
- navigateBackToTaskList: navigateBack,
2152
- navigateToEditMember: (member) => onNavigateToMember({
2153
- selectedMember: member,
2154
- selectedEntityType: member?.legalEntityType,
2155
- selectedRoles: member?.roles,
2156
- roleAndType: true
2157
- }),
2158
- navigateToEditMemberOwner: (memberOwnerId, memberId) => {
2159
- setActiveMember({ legalEntityId: memberId });
2160
- onNavigateToDecisionMakerIndividual(TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_COMPANY_OWNER, memberOwnerId, memberId);
2161
- }
2162
- })
2163
- });
2164
- case TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_COMPANY: return /* @__PURE__ */ jsx(Suspense, {
2165
- fallback: /* @__PURE__ */ jsx(Loader, {}),
2166
- children: /* @__PURE__ */ jsx(UnincorporatedPartnershipMemberCompanyPage, {
2167
- partnershipId: unincorporatedPartnership.id,
2168
- partnershipMemberCompanyId: unincorporatedPartnershipMember?.legalEntityId,
2169
- newMember: unincorporatedPartnershipMember?.legalEntityId === "" ? unincorporatedPartnershipMember : void 0,
2170
- onSubmit: (data) => handleOnSubmit(data, 2),
2171
- handleHomeClick: navigateBack
2172
- })
2173
- });
2174
- case TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_COMPANY_OWNER: return /* @__PURE__ */ jsx(Suspense, {
2175
- fallback: /* @__PURE__ */ jsx(Loader, {}),
2176
- children: /* @__PURE__ */ jsx(DecisionMakerDetailsPage, {
2177
- taskType: TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_COMPANY_OWNER,
2178
- parentCompanyId: unincorporatedPartnershipMember?.legalEntityId,
2179
- decisionMakerId: currentDecisionMakerId,
2180
- onSubmit: async (data) => {
2181
- await handleOnSubmit(data);
2182
- await refetchUnincorporatedPartnership();
2183
- },
2184
- handleHomeClick: navigateBack
2185
- })
2186
- });
2187
- case TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_INDIVIDUAL: return /* @__PURE__ */ jsx(Suspense, {
2188
- fallback: /* @__PURE__ */ jsx(Loader, {}),
2189
- children: /* @__PURE__ */ jsx(UnincorporatedPartnershipIndividualPage, {
2190
- memberId: unincorporatedPartnershipMember?.legalEntityId,
2191
- partnershipId: unincorporatedPartnership.id,
2192
- member: unincorporatedPartnershipMember,
2193
- onSubmit: (data) => {
2194
- handleOnSubmit(data, 2);
2195
- refetchUnincorporatedPartnership();
2196
- },
2197
- handleBackClick: navigateBack,
2198
- handleHomeClick: () => navigateTo(TaskTypes.TRUST_MEMBER_OVERVIEW)
2199
- })
2200
- });
2201
- case TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_ROLE_AND_TYPE: return /* @__PURE__ */ jsx(Suspense, {
2202
- fallback: /* @__PURE__ */ jsx(Loader, {}),
2203
- children: /* @__PURE__ */ jsx(UnincorporatedPartnershipMemberRoleAndTypePage, {
2204
- memberId: unincorporatedPartnershipMember?.legalEntityId,
2205
- onNavigateToMember,
2206
- navigateBack: async () => {
2207
- await refetchUnincorporatedPartnership();
2208
- navigateBack();
2209
- }
2210
- })
2211
- });
2212
- case TaskTypes.PCI_DSS: return /* @__PURE__ */ jsx(Suspense, {
2213
- fallback: /* @__PURE__ */ jsx(Loader, {}),
2214
- children: /* @__PURE__ */ jsx(SignPCIComponent, { onClose: navigateBack })
2215
- });
2216
- case TaskTypes.SOLE_PROPRIETOR_COMPANY: return /* @__PURE__ */ jsx(Suspense, {
2217
- fallback: /* @__PURE__ */ jsx(Loader, {}),
2218
- children: /* @__PURE__ */ jsx(SoleProprietorshipPage, {
2219
- solePropId: soleProp?.id,
2220
- onSubmit: (data) => handleOnSubmit(data, 1),
2221
- handleHomeClick: navigateBack
2222
- })
2223
- });
2224
- case TaskTypes.SERVICE_AGREEMENT: return /* @__PURE__ */ jsx(Suspense, {
2225
- fallback: /* @__PURE__ */ jsx(Loader, {}),
2226
- children: /* @__PURE__ */ jsx(AcceptTermsOfService, {
2227
- legalEntityId: rootLegalEntity.id,
2228
- onClose: () => {
2229
- userEvents.addPageEvent("Clicked button", {
2230
- actionType: "back",
2231
- label: "back"
2232
- });
2233
- navigateBack();
2234
- },
2235
- asEmbedded: false,
2236
- handleAddSigner: () => {
2237
- onNavigateToDecisionMakerIndividual(TaskTypes.DECISION_MAKER);
2238
- }
2239
- })
2240
- });
2241
- case TaskTypes.LEGAL_REPRESENTATIVE_DETAILS: return /* @__PURE__ */ jsx(Suspense, {
2242
- fallback: /* @__PURE__ */ jsx(Loader, {}),
2243
- children: /* @__PURE__ */ jsx(LegalRepresentativeDetailsPage, {
2244
- legalRepresentativeId: associatedLegalRepresentative?.id,
2245
- onSubmit: handleOnSubmit,
2246
- handleHomeClick: navigateBack
2247
- })
2248
- });
2249
- case TaskTypes.SOURCE_OF_FUNDS: return /* @__PURE__ */ jsx(Suspense, {
2250
- fallback: /* @__PURE__ */ jsx(Loader, {}),
2251
- children: /* @__PURE__ */ jsx(SourceOfFundsPage, {
2252
- onSubmit: handleOnSubmit,
2253
- handleHomeClick: () => navigateTo(TaskTypes.TASKS_OVERVIEW)
2254
- })
2255
- });
2256
- case TaskTypes.BUSINESS_FINANCING: return /* @__PURE__ */ jsx(Suspense, {
2257
- fallback: /* @__PURE__ */ jsx(Loader, {}),
2258
- children: /* @__PURE__ */ jsx(BusinessFinancingPage, {
2259
- onSubmit: async (data) => {
2260
- onSubmit?.(data);
2261
- await refetchLegalEntity();
2262
- navigateTo(TaskTypes.TASKS_OVERVIEW);
2263
- },
2264
- handleHomeClick: () => navigateTo(TaskTypes.TASKS_OVERVIEW)
2265
- })
2266
- });
2267
- case TaskTypes.TAX_REPORTING: return /* @__PURE__ */ jsx(Suspense, {
2268
- fallback: /* @__PURE__ */ jsx(Loader, {}),
2269
- children: /* @__PURE__ */ jsx(TaxReportingDropin, { handleHomeClick: () => navigateTo(TaskTypes.TASKS_OVERVIEW) })
2270
- });
2271
- case TaskTypes.ACQUIRING_BUSINESS_LINE: return /* @__PURE__ */ jsx(Suspense, {
2272
- fallback: /* @__PURE__ */ jsx(Loader, {}),
2273
- children: /* @__PURE__ */ jsx(RootBusinessLinesPage, { handleHomeClick: () => navigateTo(TaskTypes.TASKS_OVERVIEW) })
2274
- });
2275
- default: return null;
2276
- }
2277
- };
2278
1601
  return /* @__PURE__ */ jsx(HandlerProvider, {
2279
- onNavigateToTask,
2280
- children: renderTask()
1602
+ onNavigateToTask: (taskType) => navigate.to(taskType),
1603
+ children: /* @__PURE__ */ jsx(OnboardingRouter, {
1604
+ legalEntity: rootLegalEntity,
1605
+ rootLegalEntityCountry,
1606
+ trust,
1607
+ unincorporatedPartnership,
1608
+ soleProp,
1609
+ associatedLegalRepresentative,
1610
+ refetchLegalEntity,
1611
+ refetchTrust,
1612
+ refetchUnincorporatedPartnership,
1613
+ onExternalSubmit: onSubmit,
1614
+ accountHolder,
1615
+ setAccountHolder,
1616
+ setCanSeeEntitySelection,
1617
+ setHasSeenIntroduction,
1618
+ taskTypes,
1619
+ targetLegalEntityType,
1620
+ setTargetLegalEntityType,
1621
+ trustMember,
1622
+ onNavigateToTrust,
1623
+ onNavigateToTrustMemberRoleAndType,
1624
+ onNavigateToTrustMemberEditDetails,
1625
+ unincorporatedPartnershipMember,
1626
+ setActiveMember,
1627
+ onNavigateToMember,
1628
+ singpassBanner,
1629
+ handleSingpassSelectionNextClick,
1630
+ openBankingPartnerConfigId
1631
+ })
2281
1632
  });
2282
1633
  }
2283
1634
  //#endregion
2284
1635
  //#region src/components/EmbeddedDropins/OnboardingDropinComponent/OnboardingDropinComponent.tsx
2285
- var AdaptiveWorkflowComponent = lazy(async () => (await import("./AdaptiveWorkflowComponent-BaEZsz2h.js")).AdaptiveWorkflowComponent);
1636
+ var AdaptiveWorkflowComponent = lazy(async () => (await import("./AdaptiveWorkflowComponent-BTdp5UKa.js")).AdaptiveWorkflowComponent);
2286
1637
  function OnboardingDropinComponent({ legalEntityId, openBankingPartnerConfigId }) {
2287
1638
  const { isFeatureEnabled } = useToggleContext();
2288
1639
  if (!legalEntityId) throw new Error("Must provide at-least legalEntityId");
@@ -2290,33 +1641,33 @@ function OnboardingDropinComponent({ legalEntityId, openBankingPartnerConfigId }
2290
1641
  addResourceBundles(i18n, [{
2291
1642
  ns: "common",
2292
1643
  importFn: (lang) => _rolldown_dynamic_import_helper_default(/* @__PURE__ */ Object.assign({
2293
- "../../../language/locales/bg-BG.json": () => import("./bg-BG-BcmC41vE.js"),
2294
- "../../../language/locales/cs-CZ.json": () => import("./cs-CZ-ghdW0Tc6.js"),
2295
- "../../../language/locales/da-DK.json": () => import("./da-DK-CBOVFYaa.js"),
2296
- "../../../language/locales/de-DE.json": () => import("./de-DE-CA81fzkA.js"),
2297
- "../../../language/locales/el-GR.json": () => import("./el-GR-BjOmQ_B_.js"),
1644
+ "../../../language/locales/bg-BG.json": () => import("./bg-BG-BHL5r3bk.js"),
1645
+ "../../../language/locales/cs-CZ.json": () => import("./cs-CZ-DfuZr4cv.js"),
1646
+ "../../../language/locales/da-DK.json": () => import("./da-DK-CLx0Hv_L.js"),
1647
+ "../../../language/locales/de-DE.json": () => import("./de-DE-CcOP7Z3J.js"),
1648
+ "../../../language/locales/el-GR.json": () => import("./el-GR-CO9ixkqP.js"),
2298
1649
  "../../../language/locales/en-US.instructions.json": () => import("./en-US.instructions-FOYUYA3c.js"),
2299
- "../../../language/locales/en-US.json": () => import("./en-US-Dab7moVA.js"),
2300
- "../../../language/locales/es-ES.json": () => import("./es-ES-BEYl7Z8S.js"),
2301
- "../../../language/locales/es-LA.json": () => import("./es-LA-D741KUNg.js"),
2302
- "../../../language/locales/et-EE.json": () => import("./et-EE-CfgyGext.js"),
2303
- "../../../language/locales/fi-FI.json": () => import("./fi-FI-DFO20YZY.js"),
2304
- "../../../language/locales/fr-FR.json": () => import("./fr-FR-wvWrk_PU.js"),
2305
- "../../../language/locales/hr-HR.json": () => import("./hr-HR-D0zfmZK6.js"),
2306
- "../../../language/locales/hu-HU.json": () => import("./hu-HU-CL021irk.js"),
2307
- "../../../language/locales/it-IT.json": () => import("./it-IT-6VoxKX97.js"),
2308
- "../../../language/locales/ja-JP.json": () => import("./ja-JP-Cja4dur8.js"),
2309
- "../../../language/locales/lt-LT.json": () => import("./lt-LT-CNFgOeH4.js"),
2310
- "../../../language/locales/lv-LV.json": () => import("./lv-LV-BdSdhjTP.js"),
2311
- "../../../language/locales/nl-NL.json": () => import("./nl-NL-CclRrN3_.js"),
2312
- "../../../language/locales/no-NO.json": () => import("./no-NO-CO5xyGPh.js"),
2313
- "../../../language/locales/pl-PL.json": () => import("./pl-PL-DUH23AYC.js"),
2314
- "../../../language/locales/pt-BR.json": () => import("./pt-BR-MAQR_CUu2.js"),
2315
- "../../../language/locales/pt-PT.json": () => import("./pt-PT-CoKsjpyN.js"),
2316
- "../../../language/locales/ro-RO.json": () => import("./ro-RO-Cpv5pKod.js"),
2317
- "../../../language/locales/sk-SK.json": () => import("./sk-SK-p_p2X_aA.js"),
2318
- "../../../language/locales/sl-SI.json": () => import("./sl-SI-BpZp1MAq.js"),
2319
- "../../../language/locales/sv-SE.json": () => import("./sv-SE-BoXCPhGb.js")
1650
+ "../../../language/locales/en-US.json": () => import("./en-US-CJsQJw90.js"),
1651
+ "../../../language/locales/es-ES.json": () => import("./es-ES-CwLsmJeQ.js"),
1652
+ "../../../language/locales/es-LA.json": () => import("./es-LA-b7TFh_XZ.js"),
1653
+ "../../../language/locales/et-EE.json": () => import("./et-EE-o65QgBKk.js"),
1654
+ "../../../language/locales/fi-FI.json": () => import("./fi-FI-CKffkrhp.js"),
1655
+ "../../../language/locales/fr-FR.json": () => import("./fr-FR-CQbo6d_Q.js"),
1656
+ "../../../language/locales/hr-HR.json": () => import("./hr-HR-BH4GZRVw.js"),
1657
+ "../../../language/locales/hu-HU.json": () => import("./hu-HU-D0LsAFcV.js"),
1658
+ "../../../language/locales/it-IT.json": () => import("./it-IT-NOsTkUWg.js"),
1659
+ "../../../language/locales/ja-JP.json": () => import("./ja-JP-C98F-BgJ.js"),
1660
+ "../../../language/locales/lt-LT.json": () => import("./lt-LT-erbGBPqF.js"),
1661
+ "../../../language/locales/lv-LV.json": () => import("./lv-LV-xbEcOY__.js"),
1662
+ "../../../language/locales/nl-NL.json": () => import("./nl-NL-Cpuz-HtA.js"),
1663
+ "../../../language/locales/no-NO.json": () => import("./no-NO-Bd3KNpMs.js"),
1664
+ "../../../language/locales/pl-PL.json": () => import("./pl-PL-Bg2G4ioZ.js"),
1665
+ "../../../language/locales/pt-BR.json": () => import("./pt-BR-DT63AAqA2.js"),
1666
+ "../../../language/locales/pt-PT.json": () => import("./pt-PT-BFTfpBI4.js"),
1667
+ "../../../language/locales/ro-RO.json": () => import("./ro-RO-DJeBU2j9.js"),
1668
+ "../../../language/locales/sk-SK.json": () => import("./sk-SK-rMCHSdm4.js"),
1669
+ "../../../language/locales/sl-SI.json": () => import("./sl-SI-Dg4bivT7.js"),
1670
+ "../../../language/locales/sv-SE.json": () => import("./sv-SE-DaklU1jx.js")
2320
1671
  }), `../../../language/locales/${lang}.json`, 6)
2321
1672
  }, {
2322
1673
  ns: "ui",
@@ -2355,7 +1706,7 @@ function OnboardingDropinComponent({ legalEntityId, openBankingPartnerConfigId }
2355
1706
  fallback: /* @__PURE__ */ jsx(Loader, {}),
2356
1707
  children: /* @__PURE__ */ jsx(AdaptiveWorkflowComponent, {})
2357
1708
  });
2358
- else return /* @__PURE__ */ jsx(DropinComposer, {
1709
+ else return /* @__PURE__ */ jsx(MemoryRouterDropinComposer, {
2359
1710
  legalEntityResponse: legalEntityData,
2360
1711
  openBankingPartnerConfigId
2361
1712
  });