@adyen/kyc-components 4.23.0 → 4.24.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (798) hide show
  1. package/dist/{4-people-Dxu4nHSX.js → 4-people-DKuivE0m.js} +2 -2
  2. package/dist/{AcceptTermsOfServiceWorkflow-CvKbU2WY.js → AcceptTermsOfServiceWorkflow-CyMefc3t.js} +4 -4
  3. package/dist/{Accordion-Sjyj7C_t.js → Accordion-Dgdxfe-d.js} +1 -1
  4. package/dist/{AccountSetupRejected-Cq_nlmLn.js → AccountSetupRejected-D63dyojj.js} +4 -3
  5. package/dist/AdaptiveWorkflow-DC4QviLh.js +33 -0
  6. package/dist/{AdaptiveWorkflowComponent-tM1hJ1zF.js → AdaptiveWorkflowComponent-CsNPizq0.js} +62 -61
  7. package/dist/{AddressFields-BsxEdBvQ.js → AddressFields-BeeqIqdc.js} +15 -11
  8. package/dist/Alert-Cc7p0N5h.js +172 -0
  9. package/dist/AnalyticsContext-CpimDlw4.js +21 -0
  10. package/dist/{Avatar-Zp1T9qAL.js → Avatar-oTPu6Ejy.js} +1 -1
  11. package/dist/{BusinessFinancingDropin-vugW4Vvi.js → BusinessFinancingDropin-DYJS13vd.js} +50 -37
  12. package/dist/{BusinessFinancingPage-0J_LImeN.js → BusinessFinancingPage-DbTrQ1kt.js} +34 -34
  13. package/dist/{BusinessRegistrationNumberField-qdC_srMn.js → BusinessRegistrationNumberField-DKka8aVU.js} +8 -6
  14. package/dist/{BusinessRegistrationNumberFieldGroup-BvC9n4ou.js → BusinessRegistrationNumberFieldGroup-Df6_sDA0.js} +8 -6
  15. package/dist/{BusinessTypeSelectionPage-WCEqP4G2.js → BusinessTypeSelectionPage-C0xUipfe.js} +20 -20
  16. package/dist/{Button-DfRmINzF.js → Button-DPJ1k02w.js} +30 -30
  17. package/dist/{Checkbox-B730k3Yy.js → Checkbox-qfdF12cF.js} +3 -51
  18. package/dist/{ComponentGroup-CsnkYMbT.js → ComponentGroup-Cw_2w0Rf.js} +4 -4
  19. package/dist/Confirm-DoN9R9Z3.js +77 -0
  20. package/dist/{ConstitutionalDocument-D92EPGmG.js → ConstitutionalDocument-Bbo7P_gi.js} +30 -25
  21. package/dist/{ContactDetails-DDSd6X0z.js → ContactDetails-CUjFd94x.js} +12 -7
  22. package/dist/{ContextGuidance-B2ew1lzC.js → ContextGuidance-BQPwRscq.js} +3 -3
  23. package/dist/{ContractViewer-JtnAXSDa.js → ContractViewer-CG9UNGz1.js} +65 -14
  24. package/dist/CountryField-DT6-Jr_b.js +38 -0
  25. package/dist/{Currency-BKTf95Wp.js → Currency-C-sSDMn7.js} +8 -7
  26. package/dist/{CustomerSupport-CCFayyJG.js → CustomerSupport-C2DrnwDs.js} +19 -18
  27. package/dist/{DataConflictsModal-D-fP_eNs.js → DataConflictsModal-CCaMgguu.js} +10 -9
  28. package/dist/{DebugModal-CG6CvUnj.js → DebugModal-CDfvQRk6.js} +18 -12
  29. package/dist/{DecisionMakerDetails-DWC1nORL.js → DecisionMakerDetails-Dhi6hsrv.js} +90 -86
  30. package/dist/{DecisionMakerDetailsPage-BVXA74FO.js → DecisionMakerDetailsPage-DLgKrPA3.js} +43 -44
  31. package/dist/{DecisionMakers-Cvm_i6Uf.js → DecisionMakers-B6Qd9fuT.js} +53 -48
  32. package/dist/{Dropzone-CNHxDEc3.js → Dropzone-BhMYy4nr.js} +8 -8
  33. package/dist/{EmbeddedStatus-tbJfdxm8.js → EmbeddedStatus-CYd2p4sP.js} +4 -4
  34. package/dist/{EndStateLayout-BK1Hh02g.js → EndStateLayout-zZPm8S5M.js} +3 -3
  35. package/dist/{EntityAssociation-i903L9Dh.js → EntityAssociation-C2_Xuvf5.js} +7 -7
  36. package/dist/{ErrorPanel-tnFOlOZU.js → ErrorPanel-D4JNFkvi.js} +6 -6
  37. package/dist/Field-DwDJQVSS.js +154 -0
  38. package/dist/FormFlow.module-DqMxjYHl.js +20 -0
  39. package/dist/{GlobalEntryModal-DQoIIvGS.js → GlobalEntryModal-iZSUeMQf.js} +444 -216
  40. package/dist/{GlobalEntryPage-DLRGPpAu.js → GlobalEntryPage-w4KJOeYb.js} +11 -11
  41. package/dist/Header-DVLlJ6we.js +93 -0
  42. package/dist/Icon-4XR6gZzk.js +175 -0
  43. package/dist/{IdentityNumber-B8MXzXsO.js → IdentityNumber-3V6ZqvHB.js} +10 -6
  44. package/dist/{IdentityNumberFieldGroup-D7xb2TY7.js → IdentityNumberFieldGroup-CAjlgTWn.js} +2 -2
  45. package/dist/{IdentityScreeningWorkflow-BdGXtdns.js → IdentityScreeningWorkflow-Bx89cmUF.js} +15 -15
  46. package/dist/{Image-D82terx4.js → Image-Bn_Yyuof.js} +1 -1
  47. package/dist/{IndividualDropin-C0vTSDYU.js → IndividualDropin-BgOmBeoT.js} +126 -89
  48. package/dist/{IndustryCodeFieldGroup-CGcE5yYR.js → IndustryCodeFieldGroup-BDtoeaUz.js} +7 -6
  49. package/dist/{InputDate-Ci60MBrH.js → InputDate-ANdv1rKt.js} +3 -3
  50. package/dist/{InputText-CTpVF0Mu.js → InputText-CFDEmEtp.js} +4 -39
  51. package/dist/{Introduction-Dx6DDaL7.js → Introduction-D8hMB7Wb.js} +16 -17
  52. package/dist/{InvitedDecisionMakerComponent-Ckd26d6Y.js → InvitedDecisionMakerComponent-DZZe5Ruk.js} +76 -76
  53. package/dist/{JpAddressFields-C9MbL5XV.js → JpAddressFields-BIh4120-.js} +11 -10
  54. package/dist/LandingLayout-BsIoIFzs.js +76 -0
  55. package/dist/{LegalCompanyNameField-D0jM5LDT.js → LegalCompanyNameField-Cosyjk52.js} +5 -5
  56. package/dist/{LegalName-TjhII9_p.js → LegalName-CtqIpsfy.js} +4 -4
  57. package/dist/LegalRepresentativeDetailsPage-Mpm8AjdQ.js +73 -0
  58. package/dist/{Link-c2jAgGgc.js → Link-CvYhseSD.js} +1 -1
  59. package/dist/{ListItem-C35r8558.js → ListItem-CYTpdOMa.js} +4 -27
  60. package/dist/{Loader-BEpMlKm2.js → Loader-BVtlpTeo.js} +1 -1
  61. package/dist/LoaderWrapper-Dc88hY-P.js +34 -0
  62. package/dist/MaybeModal-C4ySaA8A.js +24 -0
  63. package/dist/{Modal-BsivDPTd.js → Modal-CHES6970.js} +5 -25
  64. package/dist/{Name-DMf8Uyof.js → Name-CdCsijr5.js} +5 -5
  65. package/dist/{NewSummary-DxWLTnJy.js → NewSummary-D55f70wB.js} +7 -7
  66. package/dist/{AdaptiveWorkflow-CM7ZVGXv.js → NodeRenderer-smgxe7Ni.js} +20 -45
  67. package/dist/{PatriotActDisclosure-ChZ_ePr2.js → PatriotActDisclosure-DA6nqTmC.js} +13 -12
  68. package/dist/{PayoutDetailsDropin-BhtJSFAS.js → PayoutDetailsDropin-BH1Sj6GM.js} +89 -58
  69. package/dist/PayoutDetailsPage-B7mZmc51.js +69 -0
  70. package/dist/ProgressBar-DWFxLMUA.js +38 -0
  71. package/dist/RadioGroup-Bf3DlQnZ.js +47 -0
  72. package/dist/RadioWithLabel-DQIOEYpF.js +45 -0
  73. package/dist/{Review-DImhCvoG.js → Review-9sjGKoQu.js} +7 -7
  74. package/dist/RootBusinessDetailsPage-DRN6p6wB.js +67 -0
  75. package/dist/{RootBusinessLinesPage-C_p-CtCH.js → RootBusinessLinesPage-uxn9f5K8.js} +39 -30
  76. package/dist/RootIndividualDetailsPage-BDoKkhcN.js +82 -0
  77. package/dist/{Select-ByVcS_J2.js → Select-phAxjMBQ.js} +46 -357
  78. package/dist/{SignPCIComponent-CAwp2xCC.js → SignPCIComponent-BNlTxxJz.js} +51 -48
  79. package/dist/{SingpassSelection-Txx3gp_g.js → SingpassSelection-B6_DsZtn.js} +12 -13
  80. package/dist/SoleProprietorshipPage-Dx-pfSwo.js +69 -0
  81. package/dist/{SourceOfFundsPage-B22iW1ow.js → SourceOfFundsPage-ChO-R9o4.js} +95 -76
  82. package/dist/{SourceOfFundsWorkflow-BKHZbLR_.js → SourceOfFundsWorkflow-DuU_n82x.js} +4 -4
  83. package/dist/StateContext-B2_Pqd_y.js +9 -0
  84. package/dist/StateField-BpMwetvd.js +55 -0
  85. package/dist/{Step-BUMarnLL.js → Step-CctAUYbs.js} +6 -6
  86. package/dist/StructuredList-nPasiuLi.js +56 -0
  87. package/dist/Summary-DM31WxLr.js +235 -0
  88. package/dist/{Task-Bj_CjiHG.js → Task-C12uuPWD.js} +8 -8
  89. package/dist/{TaskGroup-BMXhoq1Y.js → TaskGroup-z3ONGLnB.js} +4 -4
  90. package/dist/{TaskListItem-BIKdDEzU.js → TaskListItem-Dx3hKOqG.js} +11 -11
  91. package/dist/{TaskStepperContextProvider-D0tKJplv.js → TaskStepperContextProvider-DdcsqXT7.js} +1 -1
  92. package/dist/{TaskVerificationStatus-DPA4ZEPa.js → TaskVerificationStatus-DEXk_ndE.js} +3 -3
  93. package/dist/TaxInformationField-Cc-NDAVo.js +242 -0
  94. package/dist/{TaxInformationFieldGroup-D_6IRGj9.js → TaxInformationFieldGroup-DI2LzuNr.js} +16 -13
  95. package/dist/{TaxReportingDropin-DA475crP.js → TaxReportingDropin-LNgisxBc.js} +23 -18
  96. package/dist/{TaxReportingWorkflow-kcto0Ysw.js → TaxReportingWorkflow-9_9ECX6A.js} +4 -4
  97. package/dist/{TermsOfServiceManagement-HDnaIeWZ.js → TermsOfServiceManagement-BGrBal0j.js} +59 -50
  98. package/dist/{TextArea-qbFhi8Az.js → TextArea-qGEo3PFG.js} +5 -5
  99. package/dist/TileGroup-D1-M64Ul.js +172 -0
  100. package/dist/ToastContext-B_wd2IY2.js +13 -0
  101. package/dist/ToastContextProvider-DjYKMflX.js +103 -0
  102. package/dist/{TrustDetailsPage-BqVS0xOU.js → TrustDetailsPage-cx6yEd6Q.js} +68 -51
  103. package/dist/TrustMemberCompanyPage-DZh9Wn9-.js +108 -0
  104. package/dist/TrustMemberIndividualPage--tTWII4G.js +108 -0
  105. package/dist/{TrustMemberRoleAndTypePage-GXWuitmt.js → TrustMemberRoleAndTypePage-DEzesajA.js} +51 -41
  106. package/dist/{TrustMembersOverview-BjJ5fPcC.js → TrustMembersOverview-BpJGWVT5.js} +23 -19
  107. package/dist/{UboTaskItem-Aq3iNKX0.js → UboTaskItem-DP5LOGom.js} +8 -8
  108. package/dist/UnincorporatedPartnershipIndividualPage-DelW_XAz.js +78 -0
  109. package/dist/{UnincorporatedPartnershipMemberCompanyPage-h3OTr_91.js → UnincorporatedPartnershipMemberCompanyPage-BdnBsGK9.js} +36 -37
  110. package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-CwemN4fL.js → UnincorporatedPartnershipMemberRoleAndTypePage-DpdTiLc-.js} +20 -18
  111. package/dist/{UnincorporatedPartnershipMembersOverview-CUczPfUl.js → UnincorporatedPartnershipMembersOverview-BBeans9j.js} +17 -15
  112. package/dist/{VerificationErrorAlert-BBfoLMwb.js → VerificationErrorAlert-CixajVtq.js} +4 -30
  113. package/dist/{Workflow-Do7P-qDn.js → Workflow-BJbKhY38.js} +8 -8
  114. package/dist/_rolldown_dynamic_import_helper-sGNwd-kR.js +14 -0
  115. package/dist/{accountHolderUtils-DMi_DHCU.js → accountHolderUtils-CAu4V0ed.js} +11 -12
  116. package/dist/adyen-business-financing.js +37 -36
  117. package/dist/adyen-individual-configuration.js +64 -64
  118. package/dist/adyen-individual-status.js +32 -31
  119. package/dist/adyen-invited-decision-maker.js +3 -3
  120. package/dist/adyen-onboarding.js +104 -96
  121. package/dist/adyen-terms-of-service-management.js +3 -3
  122. package/dist/adyen-terms-of-service-status.js +7 -6
  123. package/dist/adyen-transfer-instrument-configuration.js +61 -60
  124. package/dist/adyen-transfer-instrument-management.js +75 -69
  125. package/dist/adyen-verification-status.js +8 -6
  126. package/dist/{arrow-right-Bk-ewsex.js → arrow-right-D2hul7WG.js} +2 -2
  127. package/dist/bafinUtils-DDrD6bfK.js +96 -0
  128. package/dist/{bag-9BNq_QQO.js → bag-CRRS1aow.js} +2 -2
  129. package/dist/{bank-BRbxxVK5.js → bank-BoirCLLW.js} +2 -2
  130. package/dist/bg-BG-B0Ia8sQm.js +7 -0
  131. package/dist/bg-BG-B2xaZ3wB.js +7 -0
  132. package/dist/bg-BG-DAR7_x2a.js +7 -0
  133. package/dist/bg-BG-DqfAUTUt.js +7 -0
  134. package/dist/bg-BG-ivZjQNJZ.js +7 -0
  135. package/dist/{bin-DE1613_5.js → bin-BOmfqfrr.js} +2 -2
  136. package/dist/birthDateUtils-D6uk7zwm.js +84 -0
  137. package/dist/{businessRegistrationNumberPatterns-C_MSKHlF.js → businessRegistrationNumberPatterns-A08SLm03.js} +3 -2
  138. package/dist/{capital-aNk7ragc.js → capital-DTjbiurV.js} +2 -2
  139. package/dist/{cash-stack-DuKKc4Qj.js → cash-stack-7KpYpBek.js} +2 -2
  140. package/dist/{certificate-9gDKvXCm.js → certificate-BPuoJ6Ip.js} +2 -2
  141. package/dist/{checkmark-BuqDN4WO.js → checkmark-BiSLf8M1.js} +2 -2
  142. package/dist/{checkmark-circle-OqcwA6N6.js → checkmark-circle-Ams7bSve.js} +2 -2
  143. package/dist/{checkmark-circle-fill-BfcUovCf.js → checkmark-circle-fill-_p4ss4ac.js} +2 -2
  144. package/dist/{checkmark-small-CBORXg_J.js → checkmark-small-3bw4ftPV.js} +2 -2
  145. package/dist/{chevron-down-CjRta08O.js → chevron-down-GgZawvoy.js} +2 -2
  146. package/dist/{chevron-left-BEm04mIh.js → chevron-left-TeZTTvo5.js} +2 -2
  147. package/dist/{chevron-right-B2GkHG0J.js → chevron-right-Cg8XlTxx.js} +2 -2
  148. package/dist/{chevron-up-BKfe5Btb.js → chevron-up-COQUTli0.js} +2 -2
  149. package/dist/{circle-C-uuRI8F.js → circle-CypWzg83.js} +2 -2
  150. package/dist/{circle-small-filled-Bkh5_ZEu.js → circle-small-filled-DfdK2A35.js} +2 -2
  151. package/dist/{clock-BWfWiMxz.js → clock-DmfGJ2r9.js} +2 -2
  152. package/dist/{coins-Cw-jDTUz.js → coins-CBvbB8_X.js} +2 -2
  153. package/dist/{constants-BSBlqXY7.js → constants-C8yo0_RA.js} +7 -5
  154. package/dist/{contract-PFVBW8xa.js → contract-D1_RJ_xh.js} +2 -2
  155. package/dist/{countries-BE4iGVAo.js → countries-BGMTpyJv.js} +1 -1
  156. package/dist/{country-zZC2TAQB.js → country-BEZkohEO.js} +2 -2
  157. package/dist/{cross-B37j1-r4.js → cross-BORHADVQ.js} +2 -2
  158. package/dist/{cross-circle-fill-CcjwpLj2.js → cross-circle-fill-CUXdo1x-.js} +2 -2
  159. package/dist/{cross-circle-fill-small-CJ4fddNo.js → cross-circle-fill-small-DdoPZZeo.js} +2 -2
  160. package/dist/cs-CZ-BwO4yrI4.js +7 -0
  161. package/dist/cs-CZ-CHMQYoMF.js +7 -0
  162. package/dist/cs-CZ-DsKlW7_D.js +7 -0
  163. package/dist/cs-CZ-NVntX32n.js +7 -0
  164. package/dist/cs-CZ-ywYpJk1F.js +7 -0
  165. package/dist/da-DK-BvT8Ob4A.js +7 -0
  166. package/dist/da-DK-BzBfkSME.js +7 -0
  167. package/dist/da-DK-CE7jnGea.js +7 -0
  168. package/dist/da-DK-DH5YNYFM.js +7 -0
  169. package/dist/da-DK-LPtdP8h0.js +7 -0
  170. package/dist/datasetUtil-BdHPWsxZ.js +45 -0
  171. package/dist/de-DE-C9cUCFOi.js +7 -0
  172. package/dist/de-DE-Cn866nnd.js +7 -0
  173. package/dist/de-DE-DA4LpyZI.js +7 -0
  174. package/dist/de-DE-DKkoZQ0X.js +7 -0
  175. package/dist/de-DE-DY_EJohI.js +7 -0
  176. package/dist/de-DE-vdy64knk.js +7 -0
  177. package/dist/debouncedInputEvent-Fwwp_K_-.js +54 -0
  178. package/dist/debugStore-Dwn1FXrh.js +9 -0
  179. package/dist/decision-makers-group-iEF9oKPp.js +2673 -0
  180. package/dist/{decisionMakerRoles-APTR-Ah_.js → decisionMakerRoles-C6LMC4mh.js} +2 -2
  181. package/dist/{document-1-B3vw8uuK.js → document-1-qvV57JdS.js} +2 -2
  182. package/dist/{document-person-CERdIfH0.js → document-person-DiJ7M8-D.js} +2 -2
  183. package/dist/{download-CthdK4dV.js → download-Ca4w0Yfr.js} +2 -2
  184. package/dist/dropinUtils-DTBezwYT.js +491 -0
  185. package/dist/{edit-1-BW7NwWP7.js → edit-1-D8VhDchs.js} +2 -2
  186. package/dist/el-GR-ChapyKa7.js +7 -0
  187. package/dist/el-GR-Cvms0L4K.js +7 -0
  188. package/dist/el-GR-D9PjIB9j.js +7 -0
  189. package/dist/el-GR-Ov9hqMNe.js +7 -0
  190. package/dist/el-GR-aelq5Q0a.js +7 -0
  191. package/dist/el-GR-zFv0QxMR.js +7 -0
  192. package/dist/en-US-B7HQdrn_.js +7 -0
  193. package/dist/en-US-CI7y0UEH.js +7 -0
  194. package/dist/en-US-C_VjFvk_.js +7 -0
  195. package/dist/{en-US-BUmtG-Wj.js → en-US-Cz4JoU20.js} +16 -2
  196. package/dist/en-US-DPr5RN3e.js +7 -0
  197. package/dist/en-US-U0d3NI20.js +7 -0
  198. package/dist/en-US-tFsDZf7y.js +7 -0
  199. package/dist/{entityAssociationUtil-CLBR9osP.js → entityAssociationUtil-CY0grcyH.js} +7 -8
  200. package/dist/{error-CpJV-CLa.js → error-BvgoQFEI.js} +4 -4
  201. package/dist/es-ES-BQrdtEfn.js +7 -0
  202. package/dist/es-ES-BdByhG4y.js +7 -0
  203. package/dist/es-ES-BzlHKYJK.js +7 -0
  204. package/dist/es-ES-DCUvAmKI.js +7 -0
  205. package/dist/es-ES-DdrA8McY.js +7 -0
  206. package/dist/es-ES-DhkTbihW.js +7 -0
  207. package/dist/es-LA-3WgncmHx.js +7 -0
  208. package/dist/es-LA-BxtxM3Ty.js +7 -0
  209. package/dist/es-LA-ChRHGYJP.js +7 -0
  210. package/dist/es-LA-JRuDva0n.js +7 -0
  211. package/dist/es-LA-i7tKJmA8.js +7 -0
  212. package/dist/et-EE-BXY66vAz.js +7 -0
  213. package/dist/et-EE-D8TSvkoE.js +7 -0
  214. package/dist/et-EE-DOgb4q9o.js +7 -0
  215. package/dist/et-EE-HHgM0CfO.js +7 -0
  216. package/dist/et-EE-V-YOCgoh.js +7 -0
  217. package/dist/{external-link-CFgynH5A.js → external-link-Dy4le-8Q.js} +2 -2
  218. package/dist/fi-FI-B-eTv4bG.js +7 -0
  219. package/dist/fi-FI-CClpbvJJ.js +7 -0
  220. package/dist/fi-FI-CVBmM-U1.js +7 -0
  221. package/dist/fi-FI-DCYPQ6vS.js +7 -0
  222. package/dist/fi-FI-DCbhu29J.js +7 -0
  223. package/dist/fieldConfigurations-CZCFghnK.js +11 -0
  224. package/dist/form-rules-B0RwhsVw.js +284 -0
  225. package/dist/formFieldsUtils-CnDkgahc.js +7 -0
  226. package/dist/formUtils-BHgG8yQZ.js +52 -0
  227. package/dist/formUtils-DVDcdZsP.js +84 -0
  228. package/dist/{formatCurrency-Cq3WFpdZ.js → formatCurrency-BetgkQKi.js} +1 -1
  229. package/dist/{formatValidationError-BHvKLMYZ.js → formatValidationError-q_w9DTrl.js} +2 -2
  230. package/dist/fr-FR-B-jA_cbo.js +7 -0
  231. package/dist/fr-FR-BIyJL6Jj.js +7 -0
  232. package/dist/fr-FR-BzyefnBh.js +7 -0
  233. package/dist/fr-FR-C1xYwHeC.js +7 -0
  234. package/dist/fr-FR-D0hY9V44.js +7 -0
  235. package/dist/fr-FR-Doo1FVx-.js +7 -0
  236. package/dist/{genUtils-Ce61IJs8.js → genUtils-nphCwt1A.js} +1 -1
  237. package/dist/{getDefaultRegistrationNumberType-CI1NVzJR.js → getDefaultRegistrationNumberType-CIu4WMln.js} +189 -188
  238. package/dist/getFormSlice-C1ma6Xd4.js +21 -0
  239. package/dist/getLegalEntityCountry-BK-HHa65.js +15 -0
  240. package/dist/{getName-s7qmFean.js → getName-DgxRqagk.js} +5 -6
  241. package/dist/{getProblemsForEntity-Bh9nSdOW.js → getProblemsForEntity-BY_voJ99.js} +3 -3
  242. package/dist/{getTrustedDecisionMakers-DX3nImM5.js → getTrustedDecisionMakers-Ta-pURcL.js} +2 -2
  243. package/dist/getTrustedFields-BJ88GlM-.js +28 -0
  244. package/dist/{gift-0jLCte2h.js → gift-Bs_mAgul.js} +2 -2
  245. package/dist/globalStore-WASei98w.js +418 -0
  246. package/dist/{graph-DrxuzQF7.js → graph-Co0JhGiY.js} +2 -2
  247. package/dist/{graph-up-4qLbS2Ds.js → graph-up-DIvH9haf.js} +2 -2
  248. package/dist/{headquarter-3o2GHW5H.js → headquarter-BESfDGKh.js} +2 -2
  249. package/dist/{hotel-pZlrEAK8.js → hotel-Vne7G5M6.js} +2 -2
  250. package/dist/hr-HR-6Wj5Tf60.js +7 -0
  251. package/dist/hr-HR-B4FRVzrd.js +7 -0
  252. package/dist/hr-HR-B6z7-PYE.js +7 -0
  253. package/dist/hr-HR-BOYktLQ2.js +7 -0
  254. package/dist/hr-HR-Ct_41fWV.js +7 -0
  255. package/dist/hu-HU-B7ofWKn_.js +7 -0
  256. package/dist/hu-HU-Bwm4UqZz.js +7 -0
  257. package/dist/hu-HU-CO_7jvk9.js +7 -0
  258. package/dist/hu-HU-CgJ_F3l2.js +7 -0
  259. package/dist/hu-HU-DXK7B0r_.js +7 -0
  260. package/dist/{image-tfgNnE3G.js → image-BQM21XCk.js} +2 -2
  261. package/dist/{info-DJW5JooY.js → info-DExoPRH5.js} +2 -2
  262. package/dist/{info-filled-C5mP6T4Z.js → info-filled-11KMeUso.js} +2 -2
  263. package/dist/{useId-oOIS1nsj.js → invalidateRootLegalEntity-B97dCa-s.js} +3 -31
  264. package/dist/isEmpty-Uewyl-r6.js +14 -0
  265. package/dist/isEmptyEntity-3OHnhXqG.js +43 -0
  266. package/dist/it-IT-BFIW0DCO.js +7 -0
  267. package/dist/it-IT-CNr6PIu3.js +7 -0
  268. package/dist/it-IT-CQVFYSVx.js +7 -0
  269. package/dist/it-IT-DfGdOsTs.js +7 -0
  270. package/dist/it-IT-DgRuEpeD.js +7 -0
  271. package/dist/it-IT-tZ7dP-Ia.js +7 -0
  272. package/dist/ja-JP--tMJF7eu.js +7 -0
  273. package/dist/ja-JP-BjMyxZiN.js +7 -0
  274. package/dist/ja-JP-Ct54-uwM.js +7 -0
  275. package/dist/ja-JP-CtX9NZKD.js +7 -0
  276. package/dist/ja-JP-DAClbueM.js +7 -0
  277. package/dist/ja-JP-DOuEAOlh.js +7 -0
  278. package/dist/keys-Ce8YnRP2.js +20 -0
  279. package/dist/{legalArrangementUtils-xvCxpgzJ.js → legalArrangementUtils-C68JdH6I.js} +2 -1
  280. package/dist/listToRecord-DumSkYDz.js +10 -0
  281. package/dist/{location-Dk0rAiaT.js → location-zRH5zJ8c.js} +2 -2
  282. package/dist/lt-LT-BUuouq_-.js +7 -0
  283. package/dist/lt-LT-Cs3cvyKf.js +7 -0
  284. package/dist/lt-LT-DQp7UGdC.js +7 -0
  285. package/dist/lt-LT-DoYCfhZU.js +7 -0
  286. package/dist/lt-LT-DqtpAjOg.js +7 -0
  287. package/dist/lv-LV-BCXqSzkk.js +7 -0
  288. package/dist/lv-LV-BW0BscAd.js +7 -0
  289. package/dist/lv-LV-C3p57pZV.js +7 -0
  290. package/dist/lv-LV-ZmyUvPst.js +7 -0
  291. package/dist/lv-LV-cKvnQI3j.js +7 -0
  292. package/dist/{mail-DG7MBDNE.js → mail-i1-zg-cv.js} +2 -2
  293. package/dist/{mapAddressLocalizationToJpAddressSchema-TUaHGQh6.js → mapAddressLocalizationToJpAddressSchema-DpOIaxj6.js} +2 -2
  294. package/dist/{mapExistingFile-CwGW1ru4.js → mapExistingFile-2QXrkhqJ.js} +2 -2
  295. package/dist/{mapJpAddressSchemaToAddressLocalizations-CdP6PRAO.js → mapJpAddressSchemaToAddressLocalizations-D3VO2nhc.js} +4 -3
  296. package/dist/{mapLegalEntityToIndividualSchema-ByhXwZqs.js → mapLegalEntityToIndividualSchema-Crz7aXZB.js} +49 -12
  297. package/dist/mapScriptLocalization-BCfkZo1y.js +46 -0
  298. package/dist/{mapTransferInstrumentToPayoutAccount-6eLKhumO.js → mapTransferInstrumentToPayoutAccount-BrbrK2wk.js} +3 -3
  299. package/dist/{form-rules-zzbZ2bV6.js → maskHelpers-C0wnCoJl.js} +9 -379
  300. package/dist/{minus-circle-filled-DglqAgJW.js → minus-circle-filled-CxUdRO8J.js} +2 -2
  301. package/dist/nl-NL-B77Xr99l.js +7 -0
  302. package/dist/nl-NL-BUwMAW5C.js +7 -0
  303. package/dist/nl-NL-B_MaTF5h.js +7 -0
  304. package/dist/nl-NL-CePL3t7P.js +7 -0
  305. package/dist/nl-NL-DR5SCDAF.js +7 -0
  306. package/dist/nl-NL-DqGE4Nz5.js +7 -0
  307. package/dist/no-NO-BePxpMbr.js +7 -0
  308. package/dist/no-NO-DGCfRiU8.js +7 -0
  309. package/dist/no-NO-DdI2BI_e.js +7 -0
  310. package/dist/no-NO-P8SZ1t-h.js +7 -0
  311. package/dist/no-NO-oL1v_O9N.js +7 -0
  312. package/dist/{options-horizontal-CTUn7IEx.js → options-horizontal-D86T_xAF.js} +2 -2
  313. package/dist/{partner-1StoI4_W.js → partner-Dje0ykF6.js} +2 -2
  314. package/dist/patternValidators-DsrZkuOO.js +73 -0
  315. package/dist/{pay-by-link-plane-Sa_qkL8C.js → pay-by-link-plane-DAiddPu6.js} +2 -2
  316. package/dist/{payout-BAYSxSqU.js → payout-DKiGv3F9.js} +2 -2
  317. package/dist/{pdf-uNYg4Mqz.js → pdf-CC8vqpTo.js} +37 -32
  318. package/dist/{pdf.worker.min-gK7UJW5a.js → pdf.worker.min-CdKJICZZ.js} +733 -253
  319. package/dist/{person-Da15_s3G.js → person-DgALGIIz.js} +2 -2
  320. package/dist/pl-PL-6Q3Ue3F5.js +7 -0
  321. package/dist/pl-PL-B5PBixAB.js +7 -0
  322. package/dist/pl-PL-BCkw9R28.js +7 -0
  323. package/dist/pl-PL-BY6KUTBO.js +7 -0
  324. package/dist/pl-PL-D-s-JI6X.js +7 -0
  325. package/dist/{plus-BQccvKkd.js → plus-DlQKP2C9.js} +2 -2
  326. package/dist/{plus-circle-filled-CqC30FRL.js → plus-circle-filled-BntUOVIJ.js} +2 -2
  327. package/dist/{processCapabilities-DRD0Aq2i.js → processCapabilities-CWE5UFt8.js} +50 -54
  328. package/dist/{processValidationErrors-oxuCOsth.js → processValidationErrors-CjsNfiRK.js} +4 -4
  329. package/dist/pt-BR-B_XHiDCU.js +7 -0
  330. package/dist/pt-BR-BvNR77Ru.js +7 -0
  331. package/dist/pt-BR-CrLCMcSz2.js +7 -0
  332. package/dist/pt-BR-MrUfWW4a.js +7 -0
  333. package/dist/pt-BR-vwt2tE7H.js +7 -0
  334. package/dist/pt-PT-B17is9TY.js +7 -0
  335. package/dist/pt-PT-BZNPd_Tb.js +7 -0
  336. package/dist/pt-PT-DDYnXawl.js +7 -0
  337. package/dist/pt-PT-DhF8wwYH.js +7 -0
  338. package/dist/pt-PT-Du2K44jh.js +7 -0
  339. package/dist/pt-PT-qAzFgjvF.js +7 -0
  340. package/dist/{recurring-DSR1fNMh.js → recurring-DZgT_ekJ.js} +2 -2
  341. package/dist/resolveEnvironment-mrb68kgW.js +1000 -0
  342. package/dist/{revenue-accelerate-CPhAVpPK.js → revenue-accelerate-aMLYFVW6.js} +2 -2
  343. package/dist/ro-RO-B3Fcn95o.js +7 -0
  344. package/dist/ro-RO-BA5GhaCE.js +7 -0
  345. package/dist/ro-RO-BmHe4pZ-.js +7 -0
  346. package/dist/ro-RO-DChAv29z.js +7 -0
  347. package/dist/ro-RO-W1t7Mnbn.js +7 -0
  348. package/dist/roleMetadata-Dm1FVuPT.js +56 -0
  349. package/dist/{save-DQ-mJX8e.js → save-uDNye08N.js} +2 -2
  350. package/dist/{search-DWqWTW_K.js → search-0OS6oe8N.js} +2 -2
  351. package/dist/{show-BbhlD3IY.js → show-BWoS9-Y1.js} +2 -2
  352. package/dist/sk-SK-BeNF_m_j.js +7 -0
  353. package/dist/sk-SK-C9CiQLgt.js +7 -0
  354. package/dist/sk-SK-CISCMQ2G.js +7 -0
  355. package/dist/sk-SK-CcoUWnJ4.js +7 -0
  356. package/dist/sk-SK-D10Kpths.js +7 -0
  357. package/dist/sl-SI-Bxu4m_5e.js +7 -0
  358. package/dist/sl-SI-DCMml0lX.js +7 -0
  359. package/dist/sl-SI-DmYiMn91.js +7 -0
  360. package/dist/sl-SI-DxomO9JQ.js +7 -0
  361. package/dist/sl-SI-Qe4hzx5a.js +7 -0
  362. package/dist/{solution-payments-D4BORMsX.js → solution-payments-BMal7uJZ.js} +2 -2
  363. package/dist/{store-DWaq3ZiC.js → store-N7ZA4FKy.js} +2 -2
  364. package/dist/style.css +2341 -2252
  365. package/dist/styles-DYaAeu4q.js +2337 -2248
  366. package/dist/summaryItem-uDWmtYtt.js +16 -0
  367. package/dist/sv-SE-B-CXDaXM.js +7 -0
  368. package/dist/sv-SE-BzPNBHOj.js +7 -0
  369. package/dist/sv-SE-C9SgeFv6.js +7 -0
  370. package/dist/sv-SE-DESDUMyu.js +7 -0
  371. package/dist/sv-SE-Dq6oK7B5.js +7 -0
  372. package/dist/sv-SE-issaSBHd.js +7 -0
  373. package/dist/{terminal-1-crR-pS_R.js → terminal-1-0RlQpbUC.js} +2 -2
  374. package/dist/toFullWidth-Dgy4X4i8.js +52 -0
  375. package/dist/{translation-BOm4lmPx.js → translation-DbATp_35.js} +91 -64
  376. package/dist/trustUtil-5cyXiJnX.js +98 -0
  377. package/dist/types/adaptiveWorkflow/components/Fields/TaxInformation/TaxIdTypeSelectorField.d.ts +1 -2
  378. package/dist/types/adaptiveWorkflow/components/Fields/TaxInformation/TaxInformationFieldGroup.d.ts +1 -2
  379. package/dist/types/adaptiveWorkflow/utils/utils.d.ts +1 -1
  380. package/dist/types/api/configurations/useScenarios.d.ts +1 -1
  381. package/dist/types/api/createLegalEntity/useCreateLegalEntity.d.ts +12 -12
  382. package/dist/types/api/documentValidation/useDocumentValidate.d.ts +2 -2
  383. package/dist/types/api/documents/documents.types.d.ts +9 -0
  384. package/dist/types/api/documents/useCreateDocument.d.ts +10 -3
  385. package/dist/types/api/documents/useDeleteDocument.d.ts +1 -1
  386. package/dist/types/api/documents/useDocument.d.ts +1 -1
  387. package/dist/types/api/documents/useDocuments.d.ts +10 -2
  388. package/dist/types/api/documents/useUpdateDocument.d.ts +3 -3
  389. package/dist/types/api/invitedEntity/getInvitedEntityProblems.d.ts +1 -1
  390. package/dist/types/api/legalEntity/legalEntity.types.d.ts +32 -0
  391. package/dist/types/api/legalEntity/useLegalEntity.d.ts +92 -92
  392. package/dist/types/api/legalEntity/useUpdateLegalEntity.d.ts +14 -14
  393. package/dist/types/api/taskStatus/useTaskStatuses.d.ts +1 -1
  394. package/dist/types/api/transferInstruments/transferInstruments.types.d.ts +18 -0
  395. package/dist/types/api/transferInstruments/useCreateTransferInstrument.d.ts +2 -2
  396. package/dist/types/api/transferInstruments/useTransferInstrument.d.ts +1 -1
  397. package/dist/types/api/transferInstruments/useUpdateTransferInstrument.d.ts +2 -2
  398. package/dist/types/api/transferInstruments/useUpdateTrustedTransferInstrument.d.ts +1 -1
  399. package/dist/types/components/Apps/tasks/TaskList/TaskList.d.ts +1 -1
  400. package/dist/types/components/BankAccount/fields/BankAccountNumber/fieldConfig.d.ts +2 -0
  401. package/dist/types/components/BankAccount/forms/BankDocument/types.d.ts +1 -1
  402. package/dist/types/components/BankAccount/forms/PayoutAccount/types.d.ts +1 -1
  403. package/dist/types/components/BankAccount/forms/PayoutCountryDetails/types.d.ts +1 -1
  404. package/dist/types/components/BankAccount/forms/PayoutDetails/PayoutDetails.d.ts +1 -1
  405. package/dist/types/components/BankAccount/forms/PayoutDetails/types.d.ts +1 -1
  406. package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/AccountHolderDescriptionFragment.d.ts +1 -1
  407. package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/types.d.ts +1 -1
  408. package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/utils.d.ts +1 -1
  409. package/dist/types/components/BankAccount/mapping/mapPayoutAccountSchemaToApiBankAccount.d.ts +2 -2
  410. package/dist/types/components/BankAccount/mapping/mapPayoutDetailsToTransferInstrument.d.ts +3 -3
  411. package/dist/types/components/BankAccount/mapping/mapPayoutDocumentsToApiDocuments.d.ts +2 -2
  412. package/dist/types/components/BankAccount/mapping/mapTransferInstrumentToPayoutAccount.d.ts +1 -1
  413. package/dist/types/components/BankAccount/mapping/payoutKeyMappings.d.ts +8 -4
  414. package/dist/types/components/BankAccount/tasks/PayoutAccount/PayoutAccountTaskListItem.d.ts +2 -2
  415. package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/utils.d.ts +1 -1
  416. package/dist/types/components/Business/hooks/useBusinessDetailsData.d.ts +1 -1
  417. package/dist/types/components/Business/hooks/useSubmitBusinessDetails.types.d.ts +1 -1
  418. package/dist/types/components/Business/mapping/businessDetails/businessDetailsKeyMappings.d.ts +4 -4
  419. package/dist/types/components/Business/mapping/businessDetails/mapBusinessDetailsSchemaToLegalEntity.d.ts +4 -4
  420. package/dist/types/components/Business/mapping/businessDetails/mapLegalEntityToBusinessDetailsSchema.d.ts +1 -1
  421. package/dist/types/components/Business/mapping/businessDetails/solePropBusinessDetailsKeyMappings.d.ts +4 -4
  422. package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +1 -1
  423. package/dist/types/components/Business/utils/buildRequiredForms.d.ts +1 -1
  424. package/dist/types/components/Business/utils/getAvailableCompanyStructures.d.ts +1 -2
  425. package/dist/types/components/Business/utils/utils.d.ts +2 -15
  426. package/dist/types/components/BusinessLines/tasks/types.d.ts +1 -1
  427. package/dist/types/components/Contract/tasks/PciDropin/types.d.ts +1 -1
  428. package/dist/types/components/Contract/tasks/ServiceAgreementDropin/types.d.ts +1 -1
  429. package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +33 -33
  430. package/dist/types/components/EFP/mapping/mapBusinessFinancingToLegalEntity.d.ts +2 -2
  431. package/dist/types/components/EFP/mapping/mapLegalEntityToBusinessFinancing.d.ts +2 -2
  432. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/types.d.ts +3 -3
  433. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/utils.d.ts +3 -4
  434. package/dist/types/components/EFP/tasks/SourceOfFundsDropin/SourceOfFundsGettingStarted/SourceOfFundsGettingStarted.d.ts +2 -3
  435. package/dist/types/components/EFP/tasks/SourceOfFundsDropin/SourceOfFundsUploader/SourceOfFundsUpload.d.ts +1 -1
  436. package/dist/types/components/EFP/tasks/SourceOfFundsDropin/types.d.ts +1 -3
  437. package/dist/types/components/EFP/tasks/SourceOfFundsDropin/utils.d.ts +13 -5
  438. package/dist/types/components/EFP/tasks/TaxReportingDropin/TaxReportingGettingStarted.d.ts +2 -2
  439. package/dist/types/components/EmbeddedDropins/CreateTransferInstrumentComponent/CreateTransferInstrumentComponent.d.ts +1 -1
  440. package/dist/types/components/EmbeddedDropins/ManageIndividualComponent/ManageIndividualComponent.d.ts +1 -1
  441. package/dist/types/components/EmbeddedDropins/ManageTransferInstrumentComponent/ManageTransferInstrumentComponent.d.ts +1 -1
  442. package/dist/types/components/EmbeddedDropins/ManageTransferInstrumentComponent/ManageTransferInstrumentOverview/ManageTransferInstrumentOverview.d.ts +1 -2
  443. package/dist/types/components/EmbeddedDropins/ManageTransferInstrumentComponent/ManageTransferInstrumentOverviewItem/ManageTransferInstrumentOverviewItem.d.ts +1 -2
  444. package/dist/types/components/EmbeddedDropins/ManageTransferInstrumentComponent/ManageTransferInstrumentOverviewItemModal/ManageTransferInstrumentOverviewItemModal.d.ts +1 -2
  445. package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/types.d.ts +1 -1
  446. package/dist/types/components/EmbeddedDropins/ViewVerificationStatus/ViewVerificationStatusComponent.d.ts +1 -1
  447. package/dist/types/components/GlobalEntry/companyTypeMetadata.d.ts +10 -0
  448. package/dist/types/components/GlobalEntry/forms/CompanyStructure/CompanyStructure.d.ts +3 -0
  449. package/dist/types/components/GlobalEntry/forms/CompanyStructure/types.d.ts +10 -0
  450. package/dist/types/components/GlobalEntry/forms/RegistrationInformation/RegistrationInformation.d.ts +1 -1
  451. package/dist/types/components/GlobalEntry/{globalEntryKeyMapping.d.ts → mapping/globalEntryKeyMapping.d.ts} +9 -9
  452. package/dist/types/components/GlobalEntry/mapping/mapGlobalEntrySchemaToLegalEntity.d.ts +6 -0
  453. package/dist/types/components/GlobalEntry/mapping/mapLegalEntityToGlobalEntrySchema.d.ts +9 -0
  454. package/dist/types/components/GlobalEntry/rules.d.ts +1 -0
  455. package/dist/types/components/GlobalEntry/tasks/GlobalEntry.d.ts +1 -1
  456. package/dist/types/components/GlobalEntry/tasks/GlobalEntryModal.d.ts +1 -1
  457. package/dist/types/components/GlobalEntry/tasks/types.d.ts +2 -0
  458. package/dist/types/components/GlobalEntry/utils/buildRequiredForms.d.ts +16 -0
  459. package/dist/types/components/GlobalEntry/utils/getAvailableCompanyStructures.d.ts +12 -0
  460. package/dist/types/components/GlobalEntry/utils/submitGlobalEntry.d.ts +20 -0
  461. package/dist/types/components/GlobalEntry/utils/utils.d.ts +18 -0
  462. package/dist/types/components/GlobalEntry/validate.d.ts +3 -1
  463. package/dist/types/components/Individual/forms/BasicDetails/BasicDetails.types.d.ts +3 -3
  464. package/dist/types/components/Individual/forms/IdDocumentUpload/types.d.ts +1 -1
  465. package/dist/types/components/Individual/forms/IdNowVerificationModal/isIdNowModalOpen.d.ts +8 -8
  466. package/dist/types/components/Individual/forms/Individual.types.d.ts +2 -3
  467. package/dist/types/components/Individual/helpers/bafinUtils.d.ts +3 -4
  468. package/dist/types/components/Individual/helpers/findRelevantTaxInformation.d.ts +28 -0
  469. package/dist/types/components/Individual/helpers/hasLiveSelfieError.d.ts +11 -0
  470. package/dist/types/components/Individual/helpers/isManualVerificationOrExistingDoc.d.ts +13 -0
  471. package/dist/types/components/Individual/mapping/individualKeyMappings.d.ts +4 -4
  472. package/dist/types/components/Individual/mapping/mapIndividualDocumentToApiDocument.d.ts +2 -2
  473. package/dist/types/components/Individual/mapping/mapIndividualSchemaToLegalEntity.d.ts +2 -2
  474. package/dist/types/components/Individual/mapping/mapLegalEntityToIndividualSchema.d.ts +1 -1
  475. package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerDetails/DecisionMakerDetails.types.d.ts +1 -1
  476. package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerDetails/utils.d.ts +34 -10
  477. package/dist/types/components/Individual/tasks/DecisionMakers/getTrustedDecisionMakers.d.ts +2 -3
  478. package/dist/types/components/Individual/tasks/DecisionMakers/hooks/useTaskStatusWithTimeout.d.ts +1 -0
  479. package/dist/types/components/Individual/tasks/DecisionMakers/types.d.ts +2 -3
  480. package/dist/types/components/Individual/tasks/DecisionMakers/utils.d.ts +1 -1
  481. package/dist/types/components/Shared/EntityAssociation/types.d.ts +2 -2
  482. package/dist/types/components/Shared/Introduction/Introduction.d.ts +1 -1
  483. package/dist/types/components/Shared/Introduction/IntroductionScreen.d.ts +1 -1
  484. package/dist/types/components/Shared/Introduction/constants.d.ts +1 -1
  485. package/dist/types/components/Shared/Introduction/copy.d.ts +1 -1
  486. package/dist/types/components/Shared/SingpassBanner/SingpassBanner.d.ts +1 -1
  487. package/dist/types/components/Shared/SingpassSelection/types.d.ts +1 -1
  488. package/dist/types/components/Shared/devex/DebugListener/debugInfo.d.ts +1 -2
  489. package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/RegistrationNumberTypeSelector/getDefaultRegistrationNumberType.d.ts +1 -2
  490. package/dist/types/components/Shared/fields/TaxInformationField/TaxIdNumberTypeSelector/TaxIdNumberTypeSelector.d.ts +1 -2
  491. package/dist/types/components/Shared/fields/TaxInformationField/TaxIdNumberTypeSelector/findExistingTaxInformation.d.ts +10 -0
  492. package/dist/types/components/Shared/fields/TaxInformationField/fieldConfig.d.ts +3 -4
  493. package/dist/types/components/Shared/fields/TaxInformationField/taxIdNumberTypes.d.ts +107 -8
  494. package/dist/types/components/Shared/fields/TaxInformationField/types.d.ts +7 -6
  495. package/dist/types/components/Shared/fields/VatNumberField/VatNumberTypeSelector/VatNumberTypeSelector.d.ts +1 -2
  496. package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
  497. package/dist/types/components/Shared/forms/BusinessTypeSelection/types.d.ts +1 -1
  498. package/dist/types/components/Shared/forms/BusinessTypeSelection/useUpdateLegalEntityAndSelectAccountHolder.d.ts +1 -2
  499. package/dist/types/components/Shared/forms/BusinessTypeSelection/utils.d.ts +2 -4
  500. package/dist/types/components/Shared/forms/ConstitutionalDocument/types.d.ts +1 -1
  501. package/dist/types/components/Shared/forms/DocumentUpload/types.d.ts +1 -1
  502. package/dist/types/components/Shared/tasks/CustomerSupport/mapping/customerSupportKeyMapping.d.ts +2 -2
  503. package/dist/types/components/Trust/hooks/useExemptSettlor.d.ts +1 -1
  504. package/dist/types/components/Trust/hooks/useTrustMemberNavigation.hook.d.ts +1 -1
  505. package/dist/types/components/Trust/mapping/mapLegalEntityToTrust.d.ts +1 -1
  506. package/dist/types/components/Trust/mapping/mapTrustDocumentToApiDocument.d.ts +2 -2
  507. package/dist/types/components/Trust/mapping/mapTrustToLegalEntity.d.ts +2 -2
  508. package/dist/types/components/Trust/mapping/trustKeyMappings.d.ts +4 -4
  509. package/dist/types/components/Trust/mapping/trustMembers/getTrustMembers.d.ts +1 -1
  510. package/dist/types/components/Trust/mapping/trustMembers/mapEntityAssociationsToTrustMembers.d.ts +3 -4
  511. package/dist/types/components/Trust/mapping/trustMembers/mapRootLegalEntityToTrustMember.d.ts +1 -1
  512. package/dist/types/components/Trust/tasks/RoleAndTypeDropin/types.d.ts +1 -1
  513. package/dist/types/components/Trust/tasks/TrustDropin/types.d.ts +1 -1
  514. package/dist/types/components/Trust/tasks/TrustMembers/types.d.ts +3 -4
  515. package/dist/types/components/Trust/utils/addOrUpdateAssociatedTrustMember.d.ts +1 -1
  516. package/dist/types/components/Trust/utils/addOrUpdateUndefinedBeneficiary.d.ts +1 -1
  517. package/dist/types/components/Trust/utils/createExemptSettlor.d.ts +1 -1
  518. package/dist/types/components/Trust/utils/deleteAssociatedTrustMember.d.ts +1 -1
  519. package/dist/types/components/Trust/utils/deleteUndefinedBeneficiary.d.ts +1 -1
  520. package/dist/types/components/Trust/utils/trustUtil.d.ts +5 -6
  521. package/dist/types/components/Trust/utils/updateExemptSettlorName.d.ts +1 -1
  522. package/dist/types/components/UnincorporatedPartnership/hooks/useUnincorporatedPartnershipNavigation.d.ts +1 -2
  523. package/dist/types/components/UnincorporatedPartnership/mapping/mapLegalEntityToUnincorporatedPartnership.d.ts +1 -1
  524. package/dist/types/components/UnincorporatedPartnership/mapping/mapUnincorporatedPartnershipToLegalEntity.d.ts +2 -2
  525. package/dist/types/components/UnincorporatedPartnership/mapping/unincorporatedPartnershipKeyMappings.d.ts +3 -3
  526. package/dist/types/components/UnincorporatedPartnership/tasks/UnincorporatedPartnershipMembers/types.d.ts +1 -2
  527. package/dist/types/components/UnincorporatedPartnership/tasks/UnincorporatedPartnershipRoleAndType/types.d.ts +1 -2
  528. package/dist/types/components/UnincorporatedPartnership/utils/unincorporatedPartnershipMembers.d.ts +3 -4
  529. package/dist/types/components/ui/molecules/DocumentGuidance/DocumentGuidance.types.d.ts +1 -1
  530. package/dist/types/context/ToggleContext/types.d.ts +0 -4
  531. package/dist/types/core/errorMapping.d.ts +3 -4
  532. package/dist/types/core/models/api/accountIdentification.d.ts +5 -1
  533. package/dist/types/core/models/api/legal-entity-association.d.ts +0 -19
  534. package/dist/types/core/process-field-configurations.d.ts +4 -6
  535. package/dist/types/core/user-events.d.ts +2 -4
  536. package/dist/types/hooks/introduction/useCanSeeIntroduction.d.ts +1 -1
  537. package/dist/types/hooks/introduction/useIntroductionScreens.d.ts +1 -1
  538. package/dist/types/hooks/introduction/useShouldShowIntroduction.d.ts +1 -1
  539. package/dist/types/hooks/singpass/useSingpassMyInfoLogin.d.ts +1 -1
  540. package/dist/types/hooks/useAssociatedLegalEntity.d.ts +1 -2
  541. package/dist/types/hooks/useAssociatedLegalRepresentative.d.ts +1 -1
  542. package/dist/types/hooks/useBusinessSetup.d.ts +1 -1
  543. package/dist/types/hooks/useForm/types.d.ts +1 -2
  544. package/dist/types/hooks/useLegalEntityType.d.ts +1 -2
  545. package/dist/types/hooks/useScenarioConfiguration.d.ts +1 -1
  546. package/dist/types/router/DefaultRouteRedirect.d.ts +1 -1
  547. package/dist/types/router/OnboardingRouter.d.ts +1 -2
  548. package/dist/types/router/getDefaultTask.d.ts +1 -1
  549. package/dist/types/stores/globalStore/calculateTaskStatus.d.ts +3 -5
  550. package/dist/types/stores/globalStore/determineTaskIdentifiers.d.ts +3 -5
  551. package/dist/types/stores/globalStore/get-task-status.d.ts +4 -4
  552. package/dist/types/stores/globalStore/globalStore.d.ts +3 -5
  553. package/dist/types/stores/globalStore/isEmptyEntity.d.ts +1 -1
  554. package/dist/types/types/businessEntityType.d.ts +1 -2
  555. package/dist/types/types/errors/capability-problems.d.ts +5 -1
  556. package/dist/types/types/errors/entity-problems.d.ts +8 -5
  557. package/dist/types/types/form-rules.d.ts +1 -1
  558. package/dist/types/utils/accountHolderUtils.d.ts +1 -1
  559. package/dist/types/utils/addLinkedFields.d.ts +2 -2
  560. package/dist/types/utils/analytics/debouncedInputEvent.d.ts +4 -4
  561. package/dist/types/utils/analytics/getAnalyticsAssociatedEntityDetails.d.ts +2 -3
  562. package/dist/types/utils/analytics/getPrefilledDetails.d.ts +2 -2
  563. package/dist/types/utils/api/documentUtils.d.ts +21 -10
  564. package/dist/types/utils/api/getProblemsForEntity.d.ts +1 -1
  565. package/dist/types/utils/api/processCapabilities.d.ts +11 -4
  566. package/dist/types/utils/bankUtils.d.ts +5 -0
  567. package/dist/types/utils/birthDateUtils.d.ts +6 -1
  568. package/dist/types/utils/businessUtils.d.ts +21 -6
  569. package/dist/types/utils/customerSupportUtils.d.ts +2 -3
  570. package/dist/types/utils/decisionMakerRoles.d.ts +4 -5
  571. package/dist/types/utils/entityAssociationUtil.d.ts +21 -12
  572. package/dist/types/utils/entityStatusUtil.d.ts +1 -1
  573. package/dist/types/utils/getFieldsWithExistingData.d.ts +2 -2
  574. package/dist/types/utils/getLegalEntityCountry.d.ts +1 -1
  575. package/dist/types/utils/getName.d.ts +3 -3
  576. package/dist/types/utils/getTrustedFields.d.ts +4 -5
  577. package/dist/types/utils/mapping/documentGuidanceMap.d.ts +2 -2
  578. package/dist/types/utils/mapping/getPage.d.ts +3 -4
  579. package/dist/types/utils/mapping/mappingRecord.d.ts +1 -1
  580. package/dist/types/utils/roleMetadata.d.ts +1 -1
  581. package/dist/types/utils/unincorporatedParnershipUtils.d.ts +4 -4
  582. package/dist/{types-BeveNAZK.js → types-B9zXzag-.js} +4 -5
  583. package/dist/{types-wRlt8bxb.js → types-BA3bcGAv.js} +1 -1
  584. package/dist/types-CZAHRt31.js +147 -0
  585. package/dist/types-Cwq1JAWT.js +31 -0
  586. package/dist/{upload-D85xAAAm.js → upload-C5NC1E4N.js} +2 -2
  587. package/dist/uppercase-DvjwUM0n.js +7 -0
  588. package/dist/useAccountHolder-BpIX1iBG.js +102 -0
  589. package/dist/useAllowedCountries-qyvo-c6A.js +80 -0
  590. package/dist/useAnalyticsContext-gSnRnYgV.js +12 -0
  591. package/dist/{getFormSlice-DzRO0UUx.js → useAssociatedLegalEntity-BdcoiUby.js} +2 -19
  592. package/dist/{useBusinessDetailsData-Bja80UYy.js → useBusinessDetailsData-sWGe796Y.js} +170 -160
  593. package/dist/{useCanSeeIntroduction-BcfQC4IP.js → useCanSeeIntroduction-DQbanJNE.js} +13 -13
  594. package/dist/useCreateLegalEntity-CYZd_62a.js +24 -0
  595. package/dist/{useDataMissingRemediations-msU1AJvo.js → useDataMissingRemediations-ttUrk09_.js} +4 -4
  596. package/dist/useDataset-CdLBLq98.js +98 -0
  597. package/dist/useDeleteTransferInstrument-C10xzHiO.js +31 -0
  598. package/dist/{useForm-DbDFfb2S.js → useForm-CWrbJG44.js} +7 -5
  599. package/dist/{useHideTaskStepper-CbMcV9mk.js → useHideTaskStepper-Dk7ZQ3U8.js} +1 -1
  600. package/dist/useId-BkDhUta2.js +28 -0
  601. package/dist/useMultiForm-BxASst0O.js +790 -0
  602. package/dist/{useNavigate-CiKOI5QV.js → useNavigate-DkfNV3JZ.js} +33 -33
  603. package/dist/{useSalesChannels-BvGJ9PT6.js → useSalesChannels-B06_h460.js} +3 -3
  604. package/dist/{useScenarios-CGcmXgJv.js → useScenarios-BfYE0clW.js} +2 -2
  605. package/dist/useSettingsContext-9O3Aqpfq.js +12 -0
  606. package/dist/{useTaskLandedEvent-pmN03gtI.js → useTaskLandedEvent-DwZHcMEQ.js} +2 -2
  607. package/dist/useToastContext-B6Mqc2HY.js +12 -0
  608. package/dist/useToggleContext-B_YexrbT.js +21 -0
  609. package/dist/{useTrustMembers-f13Kf1Zk.js → useTrustMembers-DtOJPaaV.js} +13 -14
  610. package/dist/{useUnincorporatedPartnershipMembers-K5jkCKfJ.js → useUnincorporatedPartnershipMembers-CxDZCOte.js} +8 -9
  611. package/dist/useUpdateLegalEntity-B7LRg8m0.js +29 -0
  612. package/dist/{StateField-CsO_28Co.js → utils-BWumuCvl.js} +3 -89
  613. package/dist/{utils-BUOt0VrX.js → utils-CJcGZvj1.js} +13 -14
  614. package/dist/utils-CYUYe54m.js +24 -0
  615. package/dist/{bafinUtils-M2AASP_e.js → utils-Ck_mZapQ.js} +1534 -1742
  616. package/dist/utils-DdHbAadK.js +80 -0
  617. package/dist/{utils-2tir5QtF.js → utils-SKYT7xU4.js} +2 -2
  618. package/dist/{validate-BpZBKknS.js → validate-96E_RrNB.js} +3 -3
  619. package/dist/{validate-u6nDNwf1.js → validate-BCNnfwPW.js} +2 -2
  620. package/dist/{validate-YBDlgvjy.js → validate-D-l4YRka.js} +7 -6
  621. package/dist/{validate-CPTQceEQ.js → validate-DKwCZSlM.js} +64 -37
  622. package/dist/{validateExtractionResult-dH4TewHf.js → validateExtractionResult-D3d0xx90.js} +4 -4
  623. package/dist/{validationError-B-B3GC86.js → validationError-DV6t8Ubb.js} +2 -2
  624. package/dist/validationResult-bjYBDjbU.js +29 -0
  625. package/dist/validatorUtils-D2O6AAZn.js +106 -0
  626. package/dist/{warning-circle-fill-BDTmKU1s.js → warning-circle-fill-C2lMYPJW.js} +2 -2
  627. package/dist/{warning-diamond-filled-BjDL-xa8.js → warning-diamond-filled-CQ2DdW5g.js} +2 -2
  628. package/dist/{webinar-YMbPoCx3.js → webinar-BpZWqd-g.js} +2 -2
  629. package/package.json +26 -26
  630. package/dist/Icon-C3S5_kkS.js +0 -175
  631. package/dist/LegalRepresentativeDetailsPage-CvGtANu3.js +0 -74
  632. package/dist/PayoutDetailsPage-MW5Pygp2.js +0 -70
  633. package/dist/RadioGroup-D8DRUJ2o.js +0 -1806
  634. package/dist/RootBusinessDetailsPage-Cmh9Z_4g.js +0 -68
  635. package/dist/RootIndividualDetailsPage-04cJ6C15.js +0 -80
  636. package/dist/SoleProprietorshipPage-CWegllTo.js +0 -70
  637. package/dist/TrustMemberCompanyPage-DTe7xWpj.js +0 -109
  638. package/dist/TrustMemberIndividualPage-C1BDs9Rm.js +0 -110
  639. package/dist/UnincorporatedPartnershipIndividualPage-DdPh2_sa.js +0 -79
  640. package/dist/bg-BG-BtgA44Ui.js +0 -7
  641. package/dist/bg-BG-DX5QKxJz.js +0 -7
  642. package/dist/bg-BG-DYkxVgeJ.js +0 -7
  643. package/dist/bg-BG-K6LIkCdf.js +0 -7
  644. package/dist/bg-BG-uuNDTOoN.js +0 -7
  645. package/dist/cs-CZ-BJSrh3Vp.js +0 -7
  646. package/dist/cs-CZ-CMXGY6Ep.js +0 -7
  647. package/dist/cs-CZ-Ci8c58xJ.js +0 -7
  648. package/dist/cs-CZ-Cu1v5FA8.js +0 -7
  649. package/dist/cs-CZ-lJQmuyHq.js +0 -7
  650. package/dist/da-DK-B9O3xbY6.js +0 -7
  651. package/dist/da-DK-BNwXg4DX.js +0 -7
  652. package/dist/da-DK-C1kmOHvo.js +0 -7
  653. package/dist/da-DK-D53M_d04.js +0 -7
  654. package/dist/da-DK-DjAV5d9A.js +0 -7
  655. package/dist/de-DE-B3sSNcDv.js +0 -7
  656. package/dist/de-DE-C9N6F5oM.js +0 -7
  657. package/dist/de-DE-CjMOQMqQ.js +0 -7
  658. package/dist/de-DE-qJPTCQlG.js +0 -7
  659. package/dist/de-DE-qSBQE-6M.js +0 -7
  660. package/dist/de-DE-w4l6boYT.js +0 -7
  661. package/dist/decision-makers-group-DAoxQRJ3.js +0 -4169
  662. package/dist/el-GR-BLNCX9mm.js +0 -7
  663. package/dist/el-GR-Bx996PXx.js +0 -7
  664. package/dist/el-GR-CgoxpC-Q.js +0 -7
  665. package/dist/el-GR-DaAMIpOR.js +0 -7
  666. package/dist/el-GR-DqTetsjB.js +0 -7
  667. package/dist/el-GR-pGsVWsOm.js +0 -7
  668. package/dist/en-US-B82BbZaB.js +0 -7
  669. package/dist/en-US-C3i5Oge2.js +0 -7
  670. package/dist/en-US-C8karqc5.js +0 -7
  671. package/dist/en-US-CJPD8qHc.js +0 -7
  672. package/dist/en-US-D0fscfsz.js +0 -7
  673. package/dist/en-US-DapC--Cs.js +0 -7
  674. package/dist/es-ES-C14ZT-97.js +0 -7
  675. package/dist/es-ES-DeT4zIDW.js +0 -7
  676. package/dist/es-ES-DyB2KXfT.js +0 -7
  677. package/dist/es-ES-U4-lDfZq.js +0 -7
  678. package/dist/es-ES-tVQDUTJN.js +0 -7
  679. package/dist/es-ES-wvcyuTNN.js +0 -7
  680. package/dist/es-LA-B5IRDCf_.js +0 -7
  681. package/dist/es-LA-B_hzWiiE.js +0 -7
  682. package/dist/es-LA-CG_cu1hM.js +0 -7
  683. package/dist/es-LA-ChLRkx-r.js +0 -7
  684. package/dist/es-LA-mFT_9PL_.js +0 -7
  685. package/dist/et-EE-4_ZUNt3W.js +0 -7
  686. package/dist/et-EE-BCWBT8XN.js +0 -7
  687. package/dist/et-EE-BQEyJFZb.js +0 -7
  688. package/dist/et-EE-DSK7kb3n.js +0 -7
  689. package/dist/et-EE-DWVzz1wR.js +0 -7
  690. package/dist/fi-FI-B-7uBAf5.js +0 -7
  691. package/dist/fi-FI-BeJtSWIh.js +0 -7
  692. package/dist/fi-FI-Caa9ydMd.js +0 -7
  693. package/dist/fi-FI-D06EzKrW.js +0 -7
  694. package/dist/fi-FI-DgMsQBRO.js +0 -7
  695. package/dist/fr-FR-8a-RK9xd.js +0 -7
  696. package/dist/fr-FR-BCfqr4jm.js +0 -7
  697. package/dist/fr-FR-BTJoQq71.js +0 -7
  698. package/dist/fr-FR-CDv300-8.js +0 -7
  699. package/dist/fr-FR-D7DTFYe4.js +0 -7
  700. package/dist/fr-FR-Dl4NL-Nc.js +0 -7
  701. package/dist/getLegalEntityCountry-CNE5uei8.js +0 -17
  702. package/dist/hr-HR-B11sggmG.js +0 -7
  703. package/dist/hr-HR-BjxPRJ1o.js +0 -7
  704. package/dist/hr-HR-COdiWKoq.js +0 -7
  705. package/dist/hr-HR-CXH5M5JZ.js +0 -7
  706. package/dist/hr-HR-me1zsMas.js +0 -7
  707. package/dist/hu-HU-BNlsrO-l.js +0 -7
  708. package/dist/hu-HU-BQ5310Yi.js +0 -7
  709. package/dist/hu-HU-D1ZZwcl0.js +0 -7
  710. package/dist/hu-HU-DkSsL94T.js +0 -7
  711. package/dist/hu-HU-Dp6xOBN_.js +0 -7
  712. package/dist/it-IT-BORQC-7u.js +0 -7
  713. package/dist/it-IT-BlaVymCj.js +0 -7
  714. package/dist/it-IT-CawjvBDX.js +0 -7
  715. package/dist/it-IT-Cnk7j_gC.js +0 -7
  716. package/dist/it-IT-DIIRAF4_.js +0 -7
  717. package/dist/it-IT-x4LV31GV.js +0 -7
  718. package/dist/ja-JP-CyXnoIu3.js +0 -7
  719. package/dist/ja-JP-DBne3dbI.js +0 -7
  720. package/dist/ja-JP-DS8zN3mY.js +0 -7
  721. package/dist/ja-JP-Dpe9Odla.js +0 -7
  722. package/dist/ja-JP-DrHQO_Se.js +0 -7
  723. package/dist/ja-JP-h3E8hgLv.js +0 -7
  724. package/dist/legal-entity-type-0MfCGzUf.js +0 -13
  725. package/dist/lt-LT-8kOI6QVq.js +0 -7
  726. package/dist/lt-LT-B18sQY9g.js +0 -7
  727. package/dist/lt-LT-Byl8QeWO.js +0 -7
  728. package/dist/lt-LT-D3ZUJfjr.js +0 -7
  729. package/dist/lt-LT-Fc1lOUlz.js +0 -7
  730. package/dist/lv-LV-C70c94CI.js +0 -7
  731. package/dist/lv-LV-CXifQKfG.js +0 -7
  732. package/dist/lv-LV-DctYQmfH.js +0 -7
  733. package/dist/lv-LV-Mj_iV56f.js +0 -7
  734. package/dist/lv-LV-adiXoKhv.js +0 -7
  735. package/dist/nl-NL-BIpptPn4.js +0 -7
  736. package/dist/nl-NL-BWGCqpWp.js +0 -7
  737. package/dist/nl-NL-Bv8Zk-6e.js +0 -7
  738. package/dist/nl-NL-DOB0b0m4.js +0 -7
  739. package/dist/nl-NL-ehxkZFQd.js +0 -7
  740. package/dist/nl-NL-jt4eYGEY.js +0 -7
  741. package/dist/no-NO-BG1sYkpp.js +0 -7
  742. package/dist/no-NO-CeZQnyyD.js +0 -7
  743. package/dist/no-NO-Chwg5Roi.js +0 -7
  744. package/dist/no-NO-Dx_Z3uoZ.js +0 -7
  745. package/dist/no-NO-P5tRWhV9.js +0 -7
  746. package/dist/pl-PL-BsXtscoI.js +0 -7
  747. package/dist/pl-PL-CWFdZf24.js +0 -7
  748. package/dist/pl-PL-DSbuyzBx.js +0 -7
  749. package/dist/pl-PL-J9S3_lCf.js +0 -7
  750. package/dist/pl-PL-_KG-ZD1N.js +0 -7
  751. package/dist/pt-BR-B2q9Nl16.js +0 -7
  752. package/dist/pt-BR-BYbyk6xS.js +0 -7
  753. package/dist/pt-BR-Cph-P8oH.js +0 -7
  754. package/dist/pt-BR-D1yTuXWd2.js +0 -7
  755. package/dist/pt-BR-fKlNUybd.js +0 -7
  756. package/dist/pt-PT-C1gtp2_N.js +0 -7
  757. package/dist/pt-PT-CQQkh5PS.js +0 -7
  758. package/dist/pt-PT-D8ldyR-j.js +0 -7
  759. package/dist/pt-PT-DAvsI-Tr.js +0 -7
  760. package/dist/pt-PT-DhokEMPi.js +0 -7
  761. package/dist/pt-PT-IPhkbQvT.js +0 -7
  762. package/dist/resolveEnvironment-BYEL10Nc.js +0 -2524
  763. package/dist/ro-RO-C6xoaASq.js +0 -7
  764. package/dist/ro-RO-CP_IrOlX.js +0 -7
  765. package/dist/ro-RO-CQJk7Cpo.js +0 -7
  766. package/dist/ro-RO-CnMe6Mfw.js +0 -7
  767. package/dist/ro-RO-_BLhsnIB.js +0 -7
  768. package/dist/sk-SK-BOc9IqyW.js +0 -7
  769. package/dist/sk-SK-Bb1CdAzD.js +0 -7
  770. package/dist/sk-SK-Br1Y4_CN.js +0 -7
  771. package/dist/sk-SK-Bx2_85dW.js +0 -7
  772. package/dist/sk-SK-C889qQFo.js +0 -7
  773. package/dist/sl-SI-B-Xa0hlk.js +0 -7
  774. package/dist/sl-SI-BQc61Sz2.js +0 -7
  775. package/dist/sl-SI-DHPadSTy.js +0 -7
  776. package/dist/sl-SI-DO9c7geI.js +0 -7
  777. package/dist/sl-SI-bkhhInrg.js +0 -7
  778. package/dist/sv-SE-BXrlr0X5.js +0 -7
  779. package/dist/sv-SE-Dk81lopg.js +0 -7
  780. package/dist/sv-SE-DzsWB30f.js +0 -7
  781. package/dist/sv-SE-IBYnJfbW.js +0 -7
  782. package/dist/sv-SE-X89Q6ZAq.js +0 -7
  783. package/dist/sv-SE-l_UVgmVu.js +0 -7
  784. package/dist/types/components/GlobalEntry/utils.d.ts +0 -30
  785. package/dist/types/components/Shared/fields/TaxInformationField/TaxIdNumberTypeSelector/getDefaultTaxIdNumberType.d.ts +0 -30
  786. package/dist/types/components/Shared/fields/TaxInformationField/TaxIdNumberTypeSelector/inferTaxIdNumberType.d.ts +0 -13
  787. package/dist/types/core/models/api/attachment.d.ts +0 -7
  788. package/dist/types/core/models/api/document.d.ts +0 -25
  789. package/dist/types/core/models/api/entity-type.d.ts +0 -5
  790. package/dist/types/core/models/api/legal-arrangement.d.ts +0 -24
  791. package/dist/types/core/models/api/legal-entity-type.d.ts +0 -8
  792. package/dist/types/core/models/api/legal-entity.d.ts +0 -36
  793. package/dist/types/core/models/api/problem.d.ts +0 -12
  794. package/dist/types/core/models/api/remediating-action.d.ts +0 -5
  795. package/dist/types/core/models/api/transfer-instrument.d.ts +0 -33
  796. package/dist/types/core/models/api/trusted-fields-provider.d.ts +0 -5
  797. package/dist/types/core/models/api/verification-error.d.ts +0 -19
  798. package/dist/utils-DBIDcVUN.js +0 -214
@@ -1,2524 +0,0 @@
1
- try {
2
- let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
3
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "58466ff1-754a-4938-bf53-2b8a3dbd6b8c", e._sentryDebugIdIdentifier = "sentry-dbid-58466ff1-754a-4938-bf53-2b8a3dbd6b8c");
4
- } catch (e) {}
5
- import { i as initReactI18next, n as addResourceBundles, r as useTranslation } from "./translation-BOm4lmPx.js";
6
- import { t as createLogger } from "./logger-Z8AeTE4x.js";
7
- import { t as Icon } from "./Icon-C3S5_kkS.js";
8
- import { t as Typography } from "./Typography-CAc_f5Iq.js";
9
- import { t as Loader } from "./Loader-BEpMlKm2.js";
10
- import { n as IconButton, t as Button } from "./Button-DfRmINzF.js";
11
- import { a as setSdkTokenHandler, i as refreshSession, n as httpGet, o as ApiProvider, r as httpPost, s as useApiContext } from "./http-DsJtugN1.js";
12
- import { r as useLegalEntity, t as ROOT_LE } from "./useLegalEntity-QQXN6YOm.js";
13
- import { t as LegalEntityTypes } from "./legal-entity-type-0MfCGzUf.js";
14
- import { t as getLegalEntityCountry } from "./getLegalEntityCountry-CNE5uei8.js";
15
- import { t as SettingsContext } from "./SettingsContext-Dl-9WWCI.js";
16
- import { c as valuesOf, i as noop, o as entriesOf, s as keysOf, t as cloneObject } from "./genUtils-Ce61IJs8.js";
17
- import { t as StackLayout } from "./StackLayout-IUdNMDgW.js";
18
- import { t as TaskVerificationStatus } from "./TaskVerificationStatus-DPA4ZEPa.js";
19
- import { i as TaskStatuses, r as TASK_STATUS_PRIORITY } from "./taskStatus-BtekPA8E.js";
20
- import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
21
- import { n as Skeleton, t as Accordion } from "./Accordion-Sjyj7C_t.js";
22
- import { C as EntityTypes, n as getCapabilityProblems, t as getCapabilities, w as CUSTOMER_SUPPORT_DATA_MISSING_ERROR_CODES } from "./processCapabilities-DRD0Aq2i.js";
23
- import { t as TaskTypes } from "./taskTypes-3vSkMBDm.js";
24
- import { a as getLegalRepresentative, i as getDirectEntityAssociations, l as getOwnSoleProprietorshipIdArray } from "./entityAssociationUtil-CLBR9osP.js";
25
- import { i as getOwnDecisionMakersLegalEntityIds, n as getDecisionMakers, o as hasMinRequiredDecisionMakerCount } from "./decisionMakerRoles-APTR-Ah_.js";
26
- import { n as TrustMemberGuidanceLabels, r as TrustMemberTypes } from "./trustMemberGuidance-CgdU2v0j.js";
27
- import { t as getNestedPropertyKeys } from "./getNestedPropertyKeys-Cd8HKupP.js";
28
- import { n as isEuCountry, r as isHkSgCountry } from "./country-zZC2TAQB.js";
29
- import i18n from "i18next";
30
- import { Suspense, lazy } from "preact/compat";
31
- 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";
32
- import cx from "classnames";
33
- import { Fragment as Fragment$1, jsx, jsxs } from "preact/jsx-runtime";
34
- import { computed, signal } from "@preact/signals";
35
- import { QueryCache, QueryClient, QueryClientProvider, useMutation, useQuery } from "@tanstack/preact-query";
36
- import { createContext as createContext$1, isValidElement as isValidElement$1 } from "preact";
37
- import { defineSlots } from "named-slots";
38
- //#region node_modules/.pnpm/vite-plugin-shadow-styles@0.0.3_vite@8.0.14_@types+node@25.9.2_esbuild@0.27.7_jiti@2.7.0_sass@1.99.0_/node_modules/vite-plugin-shadow-styles/dist/stylesheets.js
39
- var sheet = new CSSStyleSheet();
40
- var stylesheets = [sheet];
41
- import("./styles-DYaAeu4q.js").then(({ css }) => {
42
- sheet.replaceSync(css);
43
- }).catch((err) => console.error("Error loading styles", err));
44
- //#endregion
45
- //#region src/language/i18n.ts
46
- /**
47
- * Initializes i18next and defines configurations
48
- * i18next-resources-to-backend is a simple plugin used for the lazy loading of translation resources
49
- */
50
- i18n.use(initReactI18next).init({
51
- defaultNS: false,
52
- fallbackLng: "en-US",
53
- load: "currentOnly",
54
- resources: {},
55
- showSupportNotice: false,
56
- react: {
57
- transSupportBasicHtmlNodes: true,
58
- transKeepBasicHtmlNodesFor: [
59
- "strong",
60
- "i",
61
- "em"
62
- ],
63
- bindI18n: "languageChanged",
64
- bindI18nStore: "added"
65
- },
66
- interpolation: {
67
- prefix: "%{",
68
- suffix: "}"
69
- }
70
- });
71
- //#endregion
72
- //#region src/api/configurations/useVersionConfiguration.ts
73
- /**
74
- * Retrieves information about the onboarding version and version-specific features to enable
75
- * linked to the legalEntityId
76
- */
77
- var getVersionConfiguration = async (legalEntityId, baseUrl) => {
78
- return httpGet({
79
- baseUrl,
80
- path: `legalEntities/${legalEntityId}/configurations/version`
81
- });
82
- };
83
- var useVersionConfiguration = (options) => {
84
- const { rootLegalEntityId, baseUrl } = useApiContext();
85
- return useQuery({
86
- queryKey: ["versionConfiguration"],
87
- queryFn: () => getVersionConfiguration(rootLegalEntityId.value, baseUrl.value),
88
- ...options
89
- });
90
- };
91
- //#endregion
92
- //#region src/api/uiAnalytics/useAnalyticsSession.ts
93
- /**
94
- * @description Request to get an analytics session ID and fire an "Initiate session" event on Mixpanel
95
- * @param data.userData Sets user profile properties on Mixpanel
96
- * @returns a session id that is sent with every subsequent log event request
97
- */
98
- var getAnalyticsSession = async (baseUrl, data) => {
99
- return httpPost({
100
- baseUrl,
101
- path: `analytics/ui`
102
- }, data);
103
- };
104
- var useAnalyticsSession = (sessionData, onboardingVersion, options) => {
105
- const { baseUrl } = useApiContext();
106
- return useQuery({
107
- queryKey: ["analyticsSession", onboardingVersion],
108
- queryFn: () => getAnalyticsSession(baseUrl.value, sessionData),
109
- enabled: Boolean(onboardingVersion),
110
- ...options
111
- });
112
- };
113
- //#endregion
114
- //#region src/core/user-events.ts
115
- var UserEvents = class {
116
- queue = [];
117
- subscriptions = /* @__PURE__ */ new Set();
118
- /** payload of commmon props sent in every event */
119
- baseTrackingPayload;
120
- /** properties not set with every event but that may be shared between some events
121
- * ex. `page` value for `Interacted with form field` events
122
- */
123
- sharedEventProperties;
124
- constructor() {
125
- this.baseTrackingPayload = {
126
- category: "onboarding",
127
- subCategory: "hosted onboarding"
128
- };
129
- this.sharedEventProperties = {};
130
- }
131
- add(...args) {
132
- this.queue.push(...args);
133
- }
134
- notifySubscribers() {
135
- while (this.queue.length > 0) {
136
- const lastEvent = this.queue.pop();
137
- this.subscriptions.forEach((callback) => callback(lastEvent));
138
- }
139
- }
140
- /**
141
- * Adds an analytics event with all base event properties.
142
- */
143
- addEvent(eventName, properties) {
144
- const completeEvent = {
145
- ...this.baseTrackingPayload,
146
- ...properties
147
- };
148
- this.add({
149
- type: "add_event",
150
- name: eventName,
151
- properties: completeEvent
152
- });
153
- this.notifySubscribers();
154
- }
155
- /**
156
- * Adds an event with context specific to journey-related events
157
- */
158
- addJourneyEvent(eventName, properties) {
159
- this.addEvent(eventName, {
160
- actionLevel: "journey",
161
- ...properties
162
- });
163
- }
164
- /**
165
- * Adds an event with context specific to task-related events
166
- */
167
- addTaskEvent(eventName, properties) {
168
- this.addEvent(eventName, {
169
- actionLevel: "task",
170
- ...properties
171
- });
172
- }
173
- /**
174
- * Adds an event with context specific to page-related events
175
- */
176
- addPageEvent(eventName, properties) {
177
- this.addEvent(eventName, {
178
- actionLevel: "page",
179
- page: this.sharedEventProperties.page,
180
- ...properties
181
- });
182
- }
183
- /**
184
- * Adds an event with context specific to field-related events
185
- */
186
- addFieldEvent(eventName, properties) {
187
- this.addEvent(eventName, {
188
- actionLevel: "field",
189
- page: this.sharedEventProperties.page,
190
- ...properties
191
- });
192
- }
193
- /**
194
- * Tracks an experiment for Mixpanel experiment reporting
195
- */
196
- trackExperiment({ name, variant }) {
197
- this.add({
198
- type: "add_event",
199
- name: "$experiment_started",
200
- properties: {
201
- ...this.baseTrackingPayload,
202
- "Experiment name": name,
203
- "Variant name": variant
204
- }
205
- });
206
- }
207
- /**
208
- * Subscribes a callback to analytics events. It gets called every time
209
- * one of the above public methods get called, and the event data is passed back as an array.
210
- * The callback must have a single argument which is an array of [eventName, eventPayload?].
211
- * @example
212
- * ```js
213
- * const callback = ([eventName, eventPayload]) => console.log(eventName, eventPayload);
214
- * this.subscribe(callback);
215
- *
216
- * const exampleEventPayload = { count: 1, segmentation: { foo: 'bar' } };
217
- * this.addEvent('exampleEventDidOccur', exampleEventPayload);
218
- *
219
- * // `callback` will get called with `['exampleEventDidOccur', exampleEventPayload]`
220
- * ```
221
- */
222
- subscribe(callback) {
223
- this.subscriptions.add(callback);
224
- }
225
- /**
226
- * Sets params that are sent on every event
227
- * */
228
- updateBaseTrackingPayload(baseTrackingPayload) {
229
- this.baseTrackingPayload = {
230
- ...this.baseTrackingPayload,
231
- ...baseTrackingPayload
232
- };
233
- }
234
- /**
235
- * Sets params that may be shared between events
236
- * */
237
- updateSharedEventProperties = (props) => {
238
- this.sharedEventProperties = {
239
- ...this.sharedEventProperties,
240
- ...props
241
- };
242
- };
243
- /**
244
- * Removes a subscribed callback
245
- */
246
- unsubscribe(callback) {
247
- if (this.subscriptions.has(callback)) this.subscriptions.delete(callback);
248
- }
249
- };
250
- var createUserEvents = () => {
251
- return new UserEvents();
252
- };
253
- //#endregion
254
- //#region src/api/uiAnalytics/usePushAnalyticEvent.ts
255
- var pushAnalyticEvent = async (baseUrl, sessionId, data) => {
256
- return httpPost({
257
- baseUrl,
258
- path: `analytics/ui/${sessionId}`
259
- }, data);
260
- };
261
- var usePushAnalyticEvent = (sessionId, options) => {
262
- const { baseUrl } = useApiContext();
263
- return useMutation({
264
- mutationFn: (data) => pushAnalyticEvent(baseUrl.value, sessionId, data),
265
- ...options
266
- });
267
- };
268
- //#endregion
269
- //#region src/utils/analytics/convertToEmbeddedEvent.ts
270
- var convertToEmbeddedEvent = (eventQueueItem, sessionData) => {
271
- const { type, name, properties } = eventQueueItem;
272
- return {
273
- eventName: name,
274
- eventType: type,
275
- eventData: properties || {},
276
- legalEntityId: sessionData.legalEntityId,
277
- userAgent: sessionData.userAgent,
278
- componentName: sessionData.componentName,
279
- sdkVersion: sessionData.sdkVersion
280
- };
281
- };
282
- //#endregion
283
- //#region src/utils/analytics/getAnalyticsAssociatedEntityDetails.ts
284
- /**
285
- * Gets associated legal entity type and ID for the base tracking payload
286
- * Based on selected account holder type
287
- */
288
- var getAnalyticsAssociatedEntityDetails = (rootLegalEntity, accountHolderType) => {
289
- let associatedLegalEntityType;
290
- switch (accountHolderType) {
291
- case "aTrust":
292
- associatedLegalEntityType = "trust";
293
- break;
294
- case "mySoleProprietorName":
295
- associatedLegalEntityType = "soleProprietorship";
296
- break;
297
- case "anUnincorporatedPartnership":
298
- associatedLegalEntityType = "unincorporatedPartnership";
299
- break;
300
- default: associatedLegalEntityType = void 0;
301
- }
302
- const associatedLegalEntity = rootLegalEntity.entityAssociations?.find((ea) => ea.type === associatedLegalEntityType);
303
- return {
304
- associatedLegalEntityType,
305
- associatedLegalEntityId: associatedLegalEntity?.legalEntityId
306
- };
307
- };
308
- //#endregion
309
- //#region src/utils/testing/ignoreLocalStorage.tsx
310
- var IgnoreLocalStorageContext = createContext$1(false);
311
- var useIgnoreLocalStorage = () => useContext$1(IgnoreLocalStorageContext);
312
- //#endregion
313
- //#region src/hooks/useLocalStorage.ts
314
- var logger$4 = createLogger();
315
- var useLocalStorage = (key, defaultValue, options) => {
316
- const { serializer, parser, syncData } = useMemo$1(() => ({
317
- serializer: JSON.stringify,
318
- parser: JSON.parse,
319
- syncData: true,
320
- ...options
321
- }), [options]);
322
- const ignoreLocalStorage = useIgnoreLocalStorage() || typeof window === "undefined";
323
- const rawValueRef = useRef$1(null);
324
- const [value, setValue] = useState$1(() => {
325
- if (ignoreLocalStorage) return defaultValue;
326
- try {
327
- rawValueRef.current = window.localStorage.getItem(key);
328
- return rawValueRef.current ? parser(rawValueRef.current) : defaultValue;
329
- } catch (err) {
330
- logger$4.error(err);
331
- return defaultValue;
332
- }
333
- });
334
- useEffect$1(() => {
335
- if (ignoreLocalStorage) return;
336
- const updateLocalStorage = () => {
337
- if (value !== void 0) {
338
- const newValue = serializer(value);
339
- const oldValue = rawValueRef.current;
340
- rawValueRef.current = newValue;
341
- window.localStorage.setItem(key, newValue);
342
- window.dispatchEvent(new StorageEvent("storage", {
343
- storageArea: window.localStorage,
344
- url: window.location.href,
345
- key,
346
- newValue,
347
- oldValue
348
- }));
349
- } else {
350
- window.localStorage.removeItem(key);
351
- window.dispatchEvent(new StorageEvent("storage", {
352
- storageArea: window.localStorage,
353
- url: window.location.href,
354
- key
355
- }));
356
- }
357
- };
358
- try {
359
- updateLocalStorage();
360
- } catch (err) {
361
- logger$4.error(err);
362
- }
363
- }, [value, ignoreLocalStorage]);
364
- useEffect$1(() => {
365
- if (!syncData) return;
366
- const handleStorageChange = (event) => {
367
- if (event.key !== key || event.storageArea !== window.localStorage) return;
368
- try {
369
- if (event.newValue !== rawValueRef.current) {
370
- rawValueRef.current = event.newValue;
371
- setValue(event.newValue ? parser(event.newValue) : void 0);
372
- }
373
- } catch (err) {
374
- logger$4.error(err);
375
- }
376
- };
377
- if (ignoreLocalStorage) return;
378
- window.addEventListener("storage", handleStorageChange);
379
- return () => {
380
- window.removeEventListener("storage", handleStorageChange);
381
- };
382
- }, [
383
- key,
384
- syncData,
385
- ignoreLocalStorage
386
- ]);
387
- return [value, setValue];
388
- };
389
- //#endregion
390
- //#region src/hooks/useAccountHolder.ts
391
- var getAccountHolderStorageKey = (legalEntityId) => `ACCOUNT_HOLDER-${legalEntityId}`;
392
- var useAccountHolder = () => {
393
- const { rootLegalEntityId } = useApiContext();
394
- const [accountHolderFromLocalStorage, setAccountHolderIntoLocalStorage] = useLocalStorage(getAccountHolderStorageKey(rootLegalEntityId.value), void 0);
395
- return {
396
- accountHolder: accountHolderFromLocalStorage,
397
- setAccountHolder: setAccountHolderIntoLocalStorage
398
- };
399
- };
400
- //#endregion
401
- //#region src/hooks/useAnalytics/useAnalytics.ts
402
- var useAnalytics = ({ userEvents, sessionId, sessionData }) => {
403
- const sdkVersion = "4.23.0";
404
- const { data: rootLegalEntity } = useLegalEntity(ROOT_LE);
405
- const { mutateAsync } = usePushAnalyticEvent(sessionId ?? "");
406
- const { accountHolder } = useAccountHolder();
407
- useEffect$1(() => {
408
- if (!rootLegalEntity) return;
409
- const countryCode = getLegalEntityCountry(rootLegalEntity);
410
- const capabilities = Object.keys(rootLegalEntity?.capabilities ?? {});
411
- userEvents.updateBaseTrackingPayload({
412
- entityType: rootLegalEntity.type,
413
- countryCode,
414
- capabilities,
415
- sdkVersion,
416
- componentName: sessionData.componentName,
417
- userAgent: navigator.userAgent,
418
- ...getAnalyticsAssociatedEntityDetails(rootLegalEntity, accountHolder)
419
- });
420
- }, [
421
- rootLegalEntity,
422
- accountHolder,
423
- sdkVersion,
424
- sessionData.componentName,
425
- userEvents
426
- ]);
427
- const pushEvents = useCallback$1((data) => {
428
- mutateAsync(convertToEmbeddedEvent(data, sessionData));
429
- }, [mutateAsync, sessionData]);
430
- useEffect$1(() => {
431
- if (!sessionId) return;
432
- userEvents.subscribe(pushEvents);
433
- return () => {
434
- userEvents.unsubscribe(pushEvents);
435
- };
436
- }, [
437
- sessionId,
438
- mutateAsync,
439
- userEvents,
440
- sessionData,
441
- pushEvents
442
- ]);
443
- };
444
- //#endregion
445
- //#region src/utils/analytics/getPrefilledDetails.ts
446
- var getOrganizationPrefilledFields = (organization) => {
447
- const { dateOfIncorporation, financialReports, registeredAddress, registrationNumber, support, taxInformation, type, vatNumber } = organization;
448
- const financialReport = financialReports?.[0];
449
- return {
450
- dateOfIncorporation: !!dateOfIncorporation,
451
- financialReport: {
452
- annualTurnover: !!financialReport?.annualTurnover,
453
- balanceSheetTotal: !!financialReport?.balanceSheetTotal,
454
- dateOfFinancialData: !!financialReport?.dateOfFinancialData,
455
- employeeCount: !!financialReport?.employeeCount
456
- },
457
- registeredAddress: {
458
- city: !!registeredAddress?.city,
459
- postalCode: !!registeredAddress?.postalCode,
460
- stateOrProvince: !!registeredAddress?.stateOrProvince,
461
- street: !!registeredAddress?.street
462
- },
463
- registrationNumber: !!registrationNumber,
464
- support: {
465
- email: !!support?.email,
466
- phone: !!support?.phone
467
- },
468
- taxInformation: !!taxInformation?.some((taxInfo) => taxInfo.country && taxInfo.number),
469
- type: !!type,
470
- vatNumber: !!vatNumber
471
- };
472
- };
473
- var getPrefilledDetails = (legalEntity) => {
474
- if (!legalEntity) return;
475
- const { organization, transferInstruments, entityAssociations } = legalEntity;
476
- return {
477
- transferInstrumentCount: transferInstruments?.length || 0,
478
- entityAssociations: entityAssociations?.map((entity) => entity.type) || [],
479
- organization: organization && getOrganizationPrefilledFields(organization)
480
- };
481
- };
482
- //#endregion
483
- //#region src/context/SettingsContext/useSettingsContext.ts
484
- function useSettingsContext() {
485
- return useContext$1(SettingsContext);
486
- }
487
- var AnalyticsContext = createContext$1({
488
- addEvent: noop,
489
- addJourneyEvent: noop,
490
- addTaskEvent: noop,
491
- addPageEvent: noop,
492
- addFieldEvent: noop,
493
- startEvent: noop,
494
- subscribe: noop,
495
- trackExperiment: noop,
496
- updateBaseTrackingPayload: noop,
497
- updateSharedEventProperties: noop,
498
- unsubscribe: noop
499
- });
500
- //#endregion
501
- //#region src/context/AnalyticsContext/AnalyticsProvider.tsx
502
- /**
503
- * The provider exists to scope analytics to one application instance.
504
- * This would otherwise be problematic when a consumer might have several
505
- * instantiations of a embedded Component for instance on the same page
506
- */
507
- var AnalyticsProvider = ({ componentName, children, rootLegalEntityId, locale }) => {
508
- const { settings } = useSettingsContext();
509
- const { data: rootLegalEntity } = useLegalEntity(ROOT_LE);
510
- const { data: versionData, isError, isLoading } = useVersionConfiguration();
511
- const userEvents = useMemo$1(() => createUserEvents(), []);
512
- const onboardingVersion = isLoading ? void 0 : isError ? 1 : versionData?.version;
513
- const capabilities = rootLegalEntity?.capabilities && Object.keys(rootLegalEntity.capabilities);
514
- const shouldTrackPrefilledDetails = capabilities?.includes("receivePayments") && onboardingVersion && onboardingVersion > 1;
515
- const sessionData = {
516
- sdkVersion: "4.23.0",
517
- componentName,
518
- userAgent: navigator.userAgent,
519
- legalEntityId: rootLegalEntityId,
520
- capabilities,
521
- entityType: rootLegalEntity?.type,
522
- eventData: shouldTrackPrefilledDetails ? getPrefilledDetails(rootLegalEntity) : void 0,
523
- userData: {
524
- onboardingVersion,
525
- isDirectMerchant: settings.merchantType === "direct",
526
- settings,
527
- country: rootLegalEntity && getLegalEntityCountry(rootLegalEntity)
528
- }
529
- };
530
- const { data } = useAnalyticsSession(sessionData, onboardingVersion);
531
- userEvents.updateBaseTrackingPayload({ locale });
532
- useAnalytics({
533
- userEvents,
534
- sessionId: data?.id,
535
- sessionData
536
- });
537
- return /* @__PURE__ */ jsx(AnalyticsContext.Provider, {
538
- value: userEvents,
539
- children
540
- });
541
- };
542
- //#endregion
543
- //#region src/context/QueryContext/QueryClient.ts
544
- var QueryClient$1 = new QueryClient({
545
- defaultOptions: {
546
- queries: {
547
- staleTime: 300 * 1e3,
548
- refetchOnWindowFocus: false,
549
- refetchOnReconnect: true,
550
- refetchOnMount: true,
551
- retry: 2
552
- },
553
- mutations: { retry: 1 }
554
- },
555
- queryCache: new QueryCache({
556
- onSuccess: (data, query) => {
557
- if (query.meta?.onSuccess && typeof query.meta.onSuccess === "function") query.meta.onSuccess(data);
558
- },
559
- onError: (data, query) => {
560
- if (query.meta?.onError && typeof query.meta.onError === "function") query.meta.onError(data);
561
- }
562
- })
563
- });
564
- //#endregion
565
- //#region src/context/QueryContext/QueryClientProvider.tsx
566
- /** Standard tanstack query provider, needed for it to work */
567
- var QueryClientProvider$1 = ({ children }) => /* @__PURE__ */ jsx(QueryClientProvider, {
568
- client: QueryClient$1,
569
- children
570
- });
571
- //#endregion
572
- //#region src/context/SettingsContext/SettingsProvider.tsx
573
- var settingsDefaults = {
574
- acceptedCountries: void 0,
575
- allowBankAccountFormatSelection: false,
576
- allowDebugUi: false,
577
- allowIntraRegionCrossBorderPayout: false,
578
- changeLegalEntityType: true,
579
- editPrefilledCountry: true,
580
- requirePciSignEcomMoto: false,
581
- requirePciSignEcommerce: false,
582
- requirePciSignPos: false,
583
- requirePciSignPosMoto: false,
584
- hideOnboardingIntroductionIndividual: true,
585
- hideOnboardingIntroductionOrganization: true,
586
- hideOnboardingIntroductionTrust: true,
587
- hideOnboardingIntroductionSoleProprietor: true,
588
- viewOnboardingGuidance: false,
589
- transferInstrumentLimit: 0,
590
- instantBankVerification: true,
591
- showServiceAgreementsFirst: false,
592
- showBusinessFinancingFirst: false,
593
- enforceLegalAge: false,
594
- merchantType: void 0,
595
- allowBusinessLines: false,
596
- allowCrossBorderPayout: false
597
- };
598
- /**
599
- * Consumers can pass settings @see settingsDefaults, which can alter on runtime
600
- * the behaviour of our library
601
- * The settings are dynamically passed during SDK initialization (same as legalEntityId)
602
- * @param settings - dictionary of type Settings
603
- */
604
- function SettingsProvider({ children, settings }) {
605
- const mergedSettings = {
606
- ...settingsDefaults,
607
- ...settings
608
- };
609
- const contextValue = useMemo$1(() => ({
610
- isSettingEnabled: (settingName) => mergedSettings[settingName],
611
- getSetting: (settingName) => mergedSettings[settingName],
612
- settings: mergedSettings
613
- }), [settings]);
614
- return /* @__PURE__ */ jsx(SettingsContext.Provider, {
615
- value: contextValue,
616
- children
617
- });
618
- }
619
- //#endregion
620
- //#region src/context/StateContext/StateContext.ts
621
- var StateContext = createContext$1(null);
622
- //#endregion
623
- //#region src/utils/validatorUtils.ts
624
- var MAX_LENGTH = 30;
625
- var getMaxLengthByFieldAndCountry = (formattingRules, field, country, ignoreIfFormatterExists) => {
626
- if (!country) return void 0;
627
- if (ignoreIfFormatterExists && formattingRules[country]?.[field]?.formatter) return;
628
- return formattingRules[country]?.[field]?.maxlength || MAX_LENGTH;
629
- };
630
- var isUndefinedOrNull = (input) => input === void 0 || input === null;
631
- var isEmpty = (input) => isUndefinedOrNull(input) || typeof input === "object" && Object.keys(input).length === 0 || typeof input === "string" && /^\s*$/.test(input);
632
- var hasEmptyFields = (input) => input !== void 0 && (Object.keys(input).length === 0 || Object.values(input).some((value) => value === void 0 || value === null || value === ""));
633
- var isAccountIdentifierObscured = (payload) => {
634
- const accountIdentifier = payload?.type === "iban" ? payload.iban : payload?.accountNumber;
635
- return Boolean(accountIdentifier) && accountIdentifier.includes("*");
636
- };
637
- var extractFieldName = (inputString) => {
638
- const fieldNames = inputString?.split(".");
639
- return fieldNames?.length > 0 ? fieldNames[fieldNames.length - 1] : "";
640
- };
641
- var concatenateFieldNames = (fieldNames) => fieldNames?.join(", ");
642
- var isString = (input) => typeof input === "string" || input instanceof String;
643
- var hasText = (input) => isString(input) && !isEmpty(input);
644
- var SPECIAL_CHARS = "?\\-\\+_=!@#$%^&*(){}~<>\\[\\]\\/\\\\";
645
- var getFormattingRegEx = (specChars, flags = "g") => new RegExp(`[${specChars}]`, flags);
646
- var EMOJI_REGEX = /(\p{Emoji}\uFE0F|\p{Emoji_Presentation}|\p{Extended_Pictographic})/gu;
647
- var NO_ALPHABET_REGEX = /^[^a-zA-Z]*$/;
648
- var NO_ALPHABET_UNICODE_REGEX = /^[^\p{L}]*$/u;
649
- var INDIVIDUAL_VALID_CHAR_REGEX = /^[\p{L}\p{M}\d\s\-—./']*$/u;
650
- var ADDRESS_VALID_CHAR_REGEX = /^[\p{L}\p{M}\d\s\-—.,/']*$/u;
651
- var OTHER_ENTITIES_VALID_CHAR_REGEX = /^[\w\s,.;:\-—&!?@()"'/\\+\p{L}\p{M}]+$/u;
652
- var LATIN_SPACE_MARK_PUNCTUATION_NUMBERS_REGEX = /^[\p{sc=Latin}\p{Zs}\p{M}\p{Punctuation}\p{N}]+$/u;
653
- var matchesRegex = (regex, input) => isString(input) && regex.test(input ?? "");
654
- var hasRepeatedCharacters = (input) => !isEmpty(input) && input.length > 1 && new Set(input.toLowerCase()).size === 1;
655
- var hasMaximumTwoRepeatedCharacters = (input) => !isEmpty(input) && input.length > 2 && new Set(input.toLowerCase()).size === 1;
656
- var isValidMinLength = (input, minLength = 1) => !isEmpty(input) && input.length >= minLength;
657
- var isInvalidName = (input) => {
658
- return new Set([
659
- "John Doe",
660
- "Jane Doe",
661
- "ABCD",
662
- "ABCDE",
663
- "ABCDEF",
664
- "ABCDEFG",
665
- "My Customer",
666
- "An other",
667
- "n/a",
668
- "not applicable",
669
- "n/A",
670
- "N/A",
671
- "N/a",
672
- "N\\ /A",
673
- "not app",
674
- "null"
675
- ]).has(input || "");
676
- };
677
- var standardKanjiValidator = (input) => {
678
- const regex = /* @__PURE__ */ new RegExp("^[一-鿿㐀-䶿豈-﫿ぁ-ゖァ-ヺー-ヿ0-9A-Za-z・ー‐-−’,.& Ⅰ-Ⅺ・-゚A-Za-z0-9,.& ]+$");
679
- return !isEmpty(input) && regex.test(input);
680
- };
681
- var standardKatakanaValidator = (input) => {
682
- const regex = /* @__PURE__ */ new RegExp("^[ァ-ヶㇰ-ㇿA-Za-z0-9・ー‐-−’,.& Ⅰ-Ⅺ・-゚A-Za-z0-9 ,.& へべぺ]+$");
683
- return !isEmpty(input) && regex.test(input);
684
- };
685
- var chomeAndBanchiValidator = (input) => {
686
- const regex = /* @__PURE__ */ new RegExp("^([0-9]{1,4}-[0-9]{1,4}|[0-9]{1,4}-[0-9]{1,4}-[0-9]{1,4}|[0-9]{1,4}-[0-9]{1,4}-[0-9]{1,4}-[0-9]{1,4})$");
687
- return !isEmpty(input) && regex.test(input);
688
- };
689
- function assertString(input) {
690
- if (input === void 0 || input === null) throw new TypeError(`Expected a string but received a ${input}`);
691
- if (input.constructor.name !== "String") throw new TypeError(`Expected a string but received a ${input.constructor.name}`);
692
- }
693
- var isin = /^[A-Z]{2}[0-9A-Z]{9}[0-9]$/;
694
- function isISIN(str) {
695
- assertString(str);
696
- if (!isin.test(str)) return false;
697
- let double = true;
698
- let sum = 0;
699
- for (let i = str.length - 2; i >= 0; i--) {
700
- const char = str[i];
701
- if (char >= "A" && char <= "Z") {
702
- const value = char.charCodeAt(0) - 55;
703
- const lo = value % 10;
704
- const hi = Math.trunc(value / 10);
705
- for (const digit of [lo, hi]) {
706
- if (double) if (digit >= 5) sum += 1 + (digit - 5) * 2;
707
- else sum += digit * 2;
708
- else sum += digit;
709
- double = !double;
710
- }
711
- } else {
712
- const digit = parseInt(char, 10);
713
- if (double) if (digit >= 5) sum += 1 + (digit - 5) * 2;
714
- else sum += digit * 2;
715
- else sum += digit;
716
- double = !double;
717
- }
718
- }
719
- const check = Math.trunc((sum + 9) / 10) * 10 - sum;
720
- const lastChar = str[str.length - 1];
721
- if (lastChar === void 0 || isNaN(parseInt(lastChar, 10))) return false;
722
- return parseInt(lastChar, 10) === check;
723
- }
724
- //#endregion
725
- //#region src/utils/removeObjectEmptyValues.ts
726
- function removeObjectPropsWithEmptyValues(obj) {
727
- keysOf(obj).forEach((key) => {
728
- if (obj[key] === null || isEmpty(obj[key])) delete obj[key];
729
- });
730
- return obj;
731
- }
732
- //#endregion
733
- //#region src/context/StateContext/StateReducer.ts
734
- var INITIAL_STATE = {
735
- data: {},
736
- allData: {},
737
- initialData: {},
738
- errors: {},
739
- valid: {},
740
- fieldProblems: {},
741
- isValid: false,
742
- allValid: false
743
- };
744
- var logger$3 = createLogger();
745
- function StateReducer() {
746
- const [schemas, setSchemas] = useState$1({});
747
- const [activeForms, setActiveForms] = useState$1([]);
748
- const setCurrentForms = (forms) => {
749
- setActiveForms(forms);
750
- };
751
- function reducer({ currentState: currState, prevState }, action) {
752
- switch (action.type) {
753
- case "addToState": {
754
- if (!action.value.dataStoreId) {
755
- logger$3.warn("No dataStoreId provided, hence no update can be done");
756
- return {
757
- currentState: currState,
758
- prevState
759
- };
760
- }
761
- const dataStoreId = action.value.dataStoreId;
762
- const state = structuredClone(currState);
763
- const schema = action.value.schema || null;
764
- const schemaHasChanged = schema && schemas?.[dataStoreId]?.toString() !== schema.toString();
765
- const mergedState = {
766
- ...state,
767
- data: {
768
- ...state.data,
769
- [dataStoreId]: {
770
- ...state.data[dataStoreId],
771
- ...action.value.data
772
- }
773
- },
774
- allData: {
775
- ...state.allData,
776
- [dataStoreId]: {
777
- ...state.allData[dataStoreId],
778
- ...removeObjectPropsWithEmptyValues(action.value.data)
779
- }
780
- },
781
- errors: {
782
- ...state.errors,
783
- [dataStoreId]: {
784
- ...state.errors[dataStoreId],
785
- ...action.value.errors
786
- }
787
- },
788
- valid: {
789
- ...state.valid,
790
- [dataStoreId]: {
791
- ...state.valid[dataStoreId],
792
- ...action.value.valid
793
- }
794
- },
795
- fieldProblems: {
796
- ...state.fieldProblems,
797
- [dataStoreId]: {
798
- ...state.fieldProblems[dataStoreId],
799
- ...action.value.fieldProblems
800
- }
801
- }
802
- };
803
- /**
804
- * Some components e.g. personalDetails, are parents for other components and the data from these children is collected
805
- * under the parent's id (aka dataStoreId) i.e. 'personalDetails.
806
- *
807
- * With these parents sometimes their schema for their useForm implementation updates at run time - so this fny checks
808
- * if a schema has changed and if so ensures that the keys output in the data, valid, errors, fieldProblems objects
809
- * match those of the parent schema
810
- */
811
- if (schemaHasChanged) {
812
- setSchemas({
813
- ...schemas,
814
- [dataStoreId]: schema
815
- });
816
- const processedBySchema = schema.reduce((acc, fieldKey) => {
817
- const dataObjByFormId = mergedState.data[dataStoreId];
818
- const allDataObjByFormId = mergedState.allData[dataStoreId];
819
- const validObjByFormId = mergedState.valid[dataStoreId];
820
- const errorsObjByFormId = mergedState.errors[dataStoreId];
821
- const fieldProblemsObjByFormId = mergedState.fieldProblems[dataStoreId];
822
- return {
823
- data: {
824
- ...acc.data,
825
- [fieldKey]: dataObjByFormId[fieldKey] ?? allDataObjByFormId[fieldKey]
826
- },
827
- valid: {
828
- ...acc.valid,
829
- [fieldKey]: validObjByFormId[fieldKey]
830
- },
831
- errors: {
832
- ...acc.errors,
833
- [fieldKey]: errorsObjByFormId[fieldKey]
834
- },
835
- fieldProblems: {
836
- ...acc.fieldProblems,
837
- [fieldKey]: fieldProblemsObjByFormId[fieldKey]
838
- }
839
- };
840
- }, {
841
- data: {},
842
- valid: {},
843
- errors: {},
844
- fieldProblems: {}
845
- });
846
- mergedState.data[dataStoreId] = processedBySchema.data;
847
- mergedState.valid[dataStoreId] = processedBySchema.valid;
848
- mergedState.errors[dataStoreId] = processedBySchema.errors;
849
- mergedState.fieldProblems[dataStoreId] = processedBySchema.fieldProblems;
850
- }
851
- mergedState.validityByForm = {
852
- ...mergedState.validityByForm,
853
- [dataStoreId]: Object.values(mergedState.valid[dataStoreId]).every((isValid) => isValid)
854
- };
855
- mergedState.allValid = Object.values(mergedState.validityByForm).every((isValid) => isValid);
856
- mergedState.isValid = !activeForms.length ? mergedState.allValid : activeForms.every((item) => mergedState.validityByForm?.[item]);
857
- mergedState.initialData = structuredClone(state.initialData);
858
- return {
859
- currentState: mergedState,
860
- prevState: state
861
- };
862
- }
863
- case "removeFromState": {
864
- if (!action.value.dataStoreId) {
865
- logger$3.warn("No dataStoreId provided, hence no update can be done");
866
- return {
867
- currentState: currState,
868
- prevState
869
- };
870
- }
871
- const dataStoreId = action.value.dataStoreId;
872
- const state = structuredClone(currState);
873
- const mergedState = {
874
- ...state,
875
- data: {
876
- ...state.data,
877
- [dataStoreId]: {}
878
- },
879
- allData: {
880
- ...state.allData,
881
- [dataStoreId]: {}
882
- },
883
- errors: {
884
- ...state.errors,
885
- [dataStoreId]: {}
886
- },
887
- valid: {
888
- ...state.valid,
889
- [dataStoreId]: false
890
- },
891
- fieldProblems: {
892
- ...state.fieldProblems,
893
- [dataStoreId]: {}
894
- }
895
- };
896
- mergedState.validityByForm = {
897
- ...mergedState.validityByForm,
898
- [dataStoreId]: false
899
- };
900
- mergedState.allValid = Object.values(mergedState.validityByForm).every((isValid) => isValid);
901
- mergedState.isValid = !activeForms.length ? mergedState.allValid : activeForms.every((item) => mergedState.validityByForm?.[item]);
902
- mergedState.initialData = structuredClone(state.initialData);
903
- return {
904
- currentState: mergedState,
905
- prevState: state
906
- };
907
- }
908
- case "resetState": return {
909
- currentState: INITIAL_STATE,
910
- prevState: currState
911
- };
912
- default: throw new Error(`Unhandled action type: ${action.type}`);
913
- }
914
- }
915
- return {
916
- reducer,
917
- setCurrentForms
918
- };
919
- }
920
- //#endregion
921
- //#region src/context/StateContext/StateProvider.tsx
922
- function StateProvider({ defaultData = {}, children }) {
923
- const defaultState = {
924
- currentState: {
925
- data: defaultData,
926
- allData: defaultData,
927
- valid: {},
928
- errors: {},
929
- fieldProblems: {},
930
- validityByForm: {},
931
- initialData: defaultData
932
- },
933
- prevState: {}
934
- };
935
- const reducerObj = StateReducer();
936
- const [state, dispatch] = useReducer(reducerObj.reducer, defaultState);
937
- /**
938
- * Create an object from the returned reducer props
939
- * - the state property in this object will be available to any handler functions set on StateContextWatcher
940
- * - the dispatch property is made available to the StateContextSetter
941
- */
942
- const contextValue = useMemo$1(() => ({
943
- state,
944
- dispatch,
945
- setActiveForms: reducerObj.setCurrentForms,
946
- getData: () => state?.currentState?.data ?? {},
947
- getState: () => state?.currentState
948
- }), [reducerObj, state]);
949
- return /* @__PURE__ */ jsx(StateContext.Provider, {
950
- value: contextValue,
951
- children
952
- });
953
- }
954
- var Toast_module_default = {
955
- toast: "_toast_5bwuk_1",
956
- "present-toast": "_present-toast_5bwuk_1",
957
- presentToast: "_present-toast_5bwuk_1",
958
- "toast-image": "_toast-image_5bwuk_22",
959
- toastImage: "_toast-image_5bwuk_22",
960
- "toast-image-success": "_toast-image-success_5bwuk_32",
961
- toastImageSuccess: "_toast-image-success_5bwuk_32",
962
- "toast-image-error": "_toast-image-error_5bwuk_37",
963
- toastImageError: "_toast-image-error_5bwuk_37",
964
- "toast-label": "_toast-label_5bwuk_42",
965
- toastLabel: "_toast-label_5bwuk_42",
966
- "toast-actions": "_toast-actions_5bwuk_55",
967
- toastActions: "_toast-actions_5bwuk_55",
968
- "toast-action-close": "_toast-action-close_5bwuk_64",
969
- toastActionClose: "_toast-action-close_5bwuk_64"
970
- };
971
- //#endregion
972
- //#region src/components/ui/molecules/Toast/Toast.tsx
973
- var Toast = ({ action, duration = 1e4, label, onDismiss, variant = "info" }) => {
974
- const hasIcon = variant === "success" || variant === "error";
975
- const hasAction = action !== void 0;
976
- const role = hasAction ? "alertdialog" : "alert";
977
- const iconNames = {
978
- error: "field-error",
979
- success: "checkmark"
980
- };
981
- const imageClassname = cx(Toast_module_default.toastImage, {
982
- [Toast_module_default.toastImageSuccess]: variant === "success",
983
- [Toast_module_default.toastImageError]: variant === "error"
984
- });
985
- useEffect$1(() => {
986
- let dismissToastTimer;
987
- if (duration !== "indefinite") dismissToastTimer = setTimeout(() => {
988
- onDismiss();
989
- }, duration);
990
- return () => {
991
- clearTimeout(dismissToastTimer);
992
- };
993
- }, [duration, onDismiss]);
994
- return /* @__PURE__ */ jsxs("div", {
995
- "aria-label": label,
996
- className: Toast_module_default.toast,
997
- role,
998
- children: [/* @__PURE__ */ jsxs("div", {
999
- className: Toast_module_default.toastLabel,
1000
- children: [hasIcon && /* @__PURE__ */ jsx("div", {
1001
- className: imageClassname,
1002
- "data-testId": iconNames[variant],
1003
- children: /* @__PURE__ */ jsx(Icon, { name: iconNames[variant] })
1004
- }), label]
1005
- }), /* @__PURE__ */ jsxs("div", {
1006
- className: Toast_module_default.toastActions,
1007
- children: [hasAction && /* @__PURE__ */ jsx(Button, {
1008
- onClick: action.onClick,
1009
- children: action.label
1010
- }), /* @__PURE__ */ jsx("div", {
1011
- className: Toast_module_default.toastActionClose,
1012
- children: /* @__PURE__ */ jsx(IconButton, {
1013
- icon: "cross",
1014
- ariaLabel: "Close",
1015
- onClick: onDismiss
1016
- })
1017
- })]
1018
- })]
1019
- });
1020
- };
1021
- //#endregion
1022
- //#region src/context/ToastContext/ToastContext.ts
1023
- var ToastContext = createContext$1({
1024
- showToast: noop,
1025
- clearToasts: noop
1026
- });
1027
- //#endregion
1028
- //#region src/context/ToastContext/ToastContextProvider.tsx
1029
- function ToastContextProvider({ children }) {
1030
- const [toastOptions, setToastOptions] = useState$1();
1031
- const clearToasts = () => {
1032
- setToastOptions(void 0);
1033
- };
1034
- const contextValue = useMemo$1(() => ({
1035
- showToast: (options) => {
1036
- setToastOptions(options);
1037
- },
1038
- clearToasts
1039
- }), []);
1040
- return /* @__PURE__ */ jsxs(ToastContext.Provider, {
1041
- value: contextValue,
1042
- children: [!!toastOptions && /* @__PURE__ */ jsx(Toast, {
1043
- label: toastOptions.label,
1044
- variant: toastOptions.variant,
1045
- action: toastOptions.action,
1046
- duration: toastOptions.duration,
1047
- onDismiss: clearToasts
1048
- }), children]
1049
- });
1050
- }
1051
- //#endregion
1052
- //#region src/api/toggles/useToggles.ts
1053
- /**
1054
- * Retrieves experiments and onboardingcomponents-specific feature flags
1055
- * as defined in `OnboardingcomponentsFeatures.java` linked to the legalEntityId
1056
- */
1057
- var getToggles = async (legalEntityId, baseUrl) => {
1058
- const { experiments, features } = await httpGet({
1059
- baseUrl,
1060
- path: `legalEntities/${legalEntityId}/flags`
1061
- });
1062
- return {
1063
- experiments: experiments ? Object.values(experiments).reduce((acc, val) => {
1064
- return {
1065
- ...acc,
1066
- [val]: true
1067
- };
1068
- }, {}) : {},
1069
- features
1070
- };
1071
- };
1072
- var useToggles = (options) => {
1073
- const { rootLegalEntityId, baseUrl } = useApiContext();
1074
- return useQuery({
1075
- queryKey: ["toggles"],
1076
- queryFn: () => getToggles(rootLegalEntityId.value, baseUrl.value),
1077
- ...options
1078
- });
1079
- };
1080
- //#endregion
1081
- //#region src/utils/listToRecord.ts
1082
- var listToRecord = (list, getValue) => list.reduce((acc, k) => ({
1083
- ...acc,
1084
- [k]: getValue(k)
1085
- }), {});
1086
- //#endregion
1087
- //#region src/context/ToggleContext/ToggleContext.tsx
1088
- var ToggleContext = createContext$1({
1089
- features: {},
1090
- isFeatureEnabled: () => false,
1091
- experiments: {},
1092
- isExperimentEnabled: () => false,
1093
- refreshExperiments: () => {}
1094
- });
1095
- //#endregion
1096
- //#region src/context/ToggleContext/types.ts
1097
- /**
1098
- * Features which are passed into our SDK via a prop (ex. `adyen-onboarding.tsx` or `UIElement.tsx`)
1099
- * These are enabled/disabled via our feature framework and are intended to be short-lived. Used for feature rollout purposes.
1100
- */
1101
- var PropFeatureNames = {
1102
- /**
1103
- * Passed in from uo sdk, TODO: move to settings
1104
- */
1105
- EnableEInvoicingCodeField: "EnableEInvoicingCodeField",
1106
- HidePayoutAccountTask: "HidePayoutAccountTask",
1107
- ShowExtraTaxExemptionReasons: "ShowExtraTaxExemptionReasons",
1108
- /**
1109
- * Old features
1110
- */
1111
- AllowMoreRolesForMainRootTrustee: "AllowMoreRolesForMainRootTrustee",
1112
- EnablePhoneFieldScenario: "EnablePhoneFieldScenario",
1113
- ShowUnsupportedEntityType: "ShowUnsupportedEntityType"
1114
- };
1115
- /**
1116
- * Features which are returned from a call made to onboardingcomponents for feature flags and experiments (see `useToggles`).
1117
- * These are enabled/disabled via our feature framework and are intended to be short-lived. Used for feature rollout purposes.
1118
- * Defined in the BE (`OnboardingcomponentsFeatures.java`).
1119
- */
1120
- var FeatureFrameworkFeatureNames = {
1121
- /**
1122
- * OXP-6596: Enable Bank Document Classification in HO
1123
- */
1124
- EnableBankDocumentClassification: "EnableBankDocumentClassification",
1125
- /**
1126
- * OXP-6596: Enable Bank Document Classification in ShadowMode in HO
1127
- */
1128
- EnableBankDocumentClassificationShadowMode: "EnableBankDocumentClassificationShadowMode",
1129
- /**
1130
- * SOE-4062: Enable cross border payouts configuration for Bank Account task
1131
- */
1132
- EnableCrossBorderPayouts: "EnableCrossBorderPayouts",
1133
- /**
1134
- * OXP-6032: Enable editing a single business line
1135
- */
1136
- EnableDeleteBusinessLines: "EnableDeleteBusinessLines",
1137
- /**
1138
- * OXP-6799: Enable limit to a single business line
1139
- */
1140
- EnableLimitToSingleBusinessLine: "EnableLimitToSingleBusinessLine",
1141
- /**
1142
- * OXP-6032: Enable editing a single business line
1143
- */
1144
- EnableModifyBusinessLines: "EnableModifyBusinessLines",
1145
- /**
1146
- * Enable "Verify by Invite" flow for decision makers in Identity Verification
1147
- */
1148
- EnableVerifyByInvite: "EnableVerifyByInvite",
1149
- /**
1150
- * Use the status calculated on the backend for the payout task.
1151
- * If false, instead compute the status from capabilities and problems on the root LE.
1152
- */
1153
- UseTaskStatusApiForPayout: "UseTaskStatusApiForPayout",
1154
- /**
1155
- OXP-6566: Create new payout intro screen
1156
- */
1157
- EnableBankAccountDetailsLandingPage: "EnableBankAccountDetailsLandingPage",
1158
- /**
1159
- Enable AWE generated UI for PoC
1160
- */
1161
- EnableAdaptivePoc: "EnableAdaptivePoc",
1162
- /**
1163
- * OXP-7774: Enable LEI field in Business Details Task
1164
- */
1165
- EnableLegalEntityIdentifierField: "EnableLegalEntityIdentifierField",
1166
- /**
1167
- * OXP-7836: Enable bank account type selection for US payout details
1168
- */
1169
- EnableUSBankAccountTypeSelection: "EnableUSBankAccountTypeSelection"
1170
- };
1171
- /**
1172
- * Features which are returned from a call made to onboardingcomponents for version-specific features. (see `useVersions`).
1173
- * Version specific features are tied to the specific onboarding/LEM version (ex. v4-specific features) rather than for feature rollout purposes.
1174
- * Defined in the BE (`VersionSpecificToggle.java`).
1175
- */
1176
- var VersionFeatureNames = {
1177
- /**
1178
- *
1179
- */
1180
- EnableAgeVerification: "EnableAgeVerification",
1181
- /**
1182
- * Allows users to specify a 'Country of Governing Law' for UK companies
1183
- * within Business Details Task
1184
- */
1185
- EnableCountryOfGoverningLawForUKCompanies: "EnableCountryOfGoverningLawForUKCompanies",
1186
- /**
1187
- *
1188
- */
1189
- EnableDoingBusinessAsNameV4: "EnableDoingBusinessAsNameV4",
1190
- /**
1191
- *
1192
- */
1193
- EnableFinancialInformationComponentV4: "EnableFinancialInformationComponentV4",
1194
- /**
1195
- * Enables localization for Japan
1196
- */
1197
- EnableJapanLocalization: "EnableJapanLocalization",
1198
- /**
1199
- *
1200
- */
1201
- EnableNationalitySGHK: "EnableNationalitySGHK",
1202
- /**
1203
- *
1204
- */
1205
- EnableRegistrationAndTaxAbsentStatesV4: "EnableRegistrationAndTaxAbsentStatesV4",
1206
- /**
1207
- * OXP-7814: Allows businesses to declare that their registered business address
1208
- * is a personal address or PO box
1209
- */
1210
- EnableResidentialAddressIndicator: "EnableResidentialAddressIndicator",
1211
- /**
1212
- *
1213
- */
1214
- ShowCustomerSupportV4: "ShowCustomerSupportV4",
1215
- /**
1216
- *
1217
- */
1218
- StrictNameAndAddressValidationV4: "StrictNameAndAddressValidationV4",
1219
- /**
1220
- * OXP-7861: Enable Global Entry Flow
1221
- */
1222
- EnableGlobalEntryFlow: "EnableGlobalEntryFlow"
1223
- };
1224
- /**
1225
- * Experiments which are returned from a call made to onboardingcomponents for feature flags and experiments (see `useToggles`).
1226
- * Experiments are used to toggle behavior for A/B testing purposes.
1227
- * Defined using the Experimentation Platform in BO.
1228
- *
1229
- * Naming convention: `${ExperimentName}_${TreatmentGroupNameOrControl}` ex. `BankingVerificationExperiment_Treatment1` or `BusinessSearchExperiment_control`
1230
- */
1231
- var ExperimentNames = {
1232
- /**
1233
- * OXP-7319: Experiment with Forced Manual Payout Flow
1234
- */
1235
- BankingPayoutFlow_ForcedManualVerification: "BankingPayoutFlow_ForcedManualVerification",
1236
- /**
1237
- * Test a clearer remediation message when a bank document needs review.
1238
- */
1239
- BankDocumentClassification_WarningMessaging: "BankDocumentClassification_WarningMessaging"
1240
- };
1241
- var FeatureNames = {
1242
- ...PropFeatureNames,
1243
- ...FeatureFrameworkFeatureNames,
1244
- ...VersionFeatureNames
1245
- };
1246
- //#endregion
1247
- //#region src/context/ToggleContext/ToggleContextProvider.tsx
1248
- /**
1249
- * To manage accessing non-production-ready features of SDK
1250
- * or features under active experimentation/testing.
1251
- * @param children - components rendered
1252
- * @param features - dictionary of type Features
1253
- * @param refreshExperiments - handler to refresh experiments for the legal entity
1254
- */
1255
- function ToggleContextProvider({ children, features: propFeatures, refreshExperiments }) {
1256
- const { data: toggleData } = useToggles();
1257
- const { data: versionData } = useVersionConfiguration();
1258
- const features = useMemo$1(() => ({
1259
- ...toggleData?.features,
1260
- ...propFeatures,
1261
- ...listToRecord(versionData?.features ?? [], () => true)
1262
- }), [
1263
- versionData,
1264
- propFeatures,
1265
- toggleData?.features
1266
- ]);
1267
- const experiments = useMemo$1(() => ({
1268
- ...toggleData?.experiments,
1269
- ...listToRecord(valuesOf(ExperimentNames), (experiment) => propFeatures[experiment] ?? false)
1270
- }), [propFeatures, toggleData?.experiments]);
1271
- const contextValue = useMemo$1(() => ({
1272
- features,
1273
- isFeatureEnabled: (feature) => features[feature] ?? false,
1274
- experiments,
1275
- isExperimentEnabled: (experiment) => experiments[experiment] ?? false,
1276
- refreshExperiments
1277
- }), [
1278
- features,
1279
- experiments,
1280
- refreshExperiments
1281
- ]);
1282
- return /* @__PURE__ */ jsx(ToggleContext.Provider, {
1283
- value: contextValue,
1284
- children
1285
- });
1286
- }
1287
- //#endregion
1288
- //#region src/context/ToggleContext/useToggleContext.ts
1289
- function useToggleContext() {
1290
- return useContext$1(ToggleContext);
1291
- }
1292
- //#endregion
1293
- //#region \0rolldown_dynamic_import_helper.js
1294
- var _rolldown_dynamic_import_helper_default = (glob, path, segments) => {
1295
- const query = path.lastIndexOf("?");
1296
- const v = glob[query === -1 || query < path.lastIndexOf("/") ? path : path.slice(0, query)];
1297
- if (v) return typeof v === "function" ? v() : Promise.resolve(v);
1298
- return new Promise((_, reject) => {
1299
- (typeof queueMicrotask === "function" ? queueMicrotask : setTimeout)(reject.bind(null, /* @__PURE__ */ new Error("Unknown variable dynamic import: " + path + (path.split("/").length !== segments ? ". Note that variables only represent file names one level deep." : ""))));
1300
- });
1301
- };
1302
- var Header_module_default = {
1303
- header: "_header_15umz_1",
1304
- "header-margin": "_header-margin_15umz_7",
1305
- headerMargin: "_header-margin_15umz_7",
1306
- "header-margin-secondary": "_header-margin-secondary_15umz_11",
1307
- headerMarginSecondary: "_header-margin-secondary_15umz_11",
1308
- "header-left": "_header-left_15umz_15",
1309
- headerLeft: "_header-left_15umz_15",
1310
- "header-center": "_header-center_15umz_20",
1311
- headerCenter: "_header-center_15umz_20",
1312
- "header-right": "_header-right_15umz_25",
1313
- headerRight: "_header-right_15umz_25",
1314
- "header-content": "_header-content_15umz_30",
1315
- headerContent: "_header-content_15umz_30",
1316
- "header-actions": "_header-actions_15umz_36",
1317
- headerActions: "_header-actions_15umz_36",
1318
- "header-title": "_header-title_15umz_40",
1319
- headerTitle: "_header-title_15umz_40",
1320
- "header-title-primary": "_header-title-primary_15umz_45",
1321
- headerTitlePrimary: "_header-title-primary_15umz_45",
1322
- "header-title-secondary": "_header-title-secondary_15umz_52",
1323
- headerTitleSecondary: "_header-title-secondary_15umz_52",
1324
- "header-description": "_header-description_15umz_58",
1325
- headerDescription: "_header-description_15umz_58",
1326
- "header-description-primary": "_header-description-primary_15umz_65",
1327
- headerDescriptionPrimary: "_header-description-primary_15umz_65",
1328
- "header-description-secondary": "_header-description-secondary_15umz_69",
1329
- headerDescriptionSecondary: "_header-description-secondary_15umz_69"
1330
- };
1331
- //#endregion
1332
- //#region src/components/ui/atoms/Header/Header.tsx
1333
- var alignmentStyles = {
1334
- left: Header_module_default.headerLeft,
1335
- center: Header_module_default.headerCenter,
1336
- right: Header_module_default.headerRight
1337
- };
1338
- var Header = ({ align = "left", children, description, secondary = false, status, title }) => {
1339
- const { Slot, hasSlot } = defineSlots(children ?? [], ["actions", "description"]);
1340
- const HeadingElement = secondary ? "h2" : "h1";
1341
- const rootClassname = cx(Header_module_default.header, alignmentStyles[align], {
1342
- [Header_module_default.headerMargin]: !secondary,
1343
- [Header_module_default.headerMarginSecondary]: secondary
1344
- });
1345
- const titleClassname = cx(Header_module_default.headerTitle, {
1346
- [Header_module_default.headerTitlePrimary]: !secondary,
1347
- [Header_module_default.headerTitleSecondary]: secondary
1348
- });
1349
- const descriptionClassname = cx(Header_module_default.headerDescription, {
1350
- [Header_module_default.headerDescriptionPrimary]: !secondary,
1351
- [Header_module_default.headerDescriptionSecondary]: secondary
1352
- });
1353
- return /* @__PURE__ */ jsxs("header", {
1354
- className: rootClassname,
1355
- children: [
1356
- status && /* @__PURE__ */ jsx(TaskVerificationStatus, {
1357
- status,
1358
- responsive: false
1359
- }),
1360
- /* @__PURE__ */ jsxs("div", {
1361
- className: Header_module_default.headerContent,
1362
- children: [/* @__PURE__ */ jsx(HeadingElement, {
1363
- className: titleClassname,
1364
- children: title
1365
- }), (hasSlot("description") || description) && /* @__PURE__ */ jsx("div", {
1366
- className: descriptionClassname,
1367
- children: /* @__PURE__ */ jsx(Slot, {
1368
- name: "description",
1369
- children: description
1370
- })
1371
- })]
1372
- }),
1373
- hasSlot("actions") && /* @__PURE__ */ jsx("div", {
1374
- className: Header_module_default.headerActions,
1375
- children: /* @__PURE__ */ jsx(StackLayout, {
1376
- gap: "small",
1377
- horizontal: true,
1378
- children: /* @__PURE__ */ jsx(Slot, { name: "actions" })
1379
- })
1380
- })
1381
- ]
1382
- });
1383
- };
1384
- //#endregion
1385
- //#region src/api/configurations/useSupportedCountries.ts
1386
- /**
1387
- * Retrieves from the backend information about supported countries
1388
- * linked to the legalEntityId
1389
- *
1390
- * @param id legalEntityId
1391
- * @param options additional options passed to Tanstack Query, eg; refetchInterval for polling
1392
- */
1393
- var getSupportedCountries = async (legalEntityId, baseUrl) => {
1394
- return httpGet({
1395
- baseUrl,
1396
- path: `legalEntities/${legalEntityId}/configurations/supportedCountries`
1397
- });
1398
- };
1399
- var useSupportedCountries = (options) => {
1400
- const { rootLegalEntityId, baseUrl } = useApiContext();
1401
- return useQuery({
1402
- queryKey: ["supportedCountries"],
1403
- queryFn: () => getSupportedCountries(rootLegalEntityId.value, baseUrl.value),
1404
- ...options
1405
- });
1406
- };
1407
- //#endregion
1408
- //#region src/context/SettingsContext/useSetting.ts
1409
- var useSetting = (settingName) => {
1410
- const { getSetting } = useContext$1(SettingsContext);
1411
- return getSetting(settingName);
1412
- };
1413
- //#endregion
1414
- //#region src/utils/api/useCapabilities.ts
1415
- var useCapabilities = () => {
1416
- const { data: rootLegalEntity } = useLegalEntity(ROOT_LE);
1417
- return rootLegalEntity?.capabilities;
1418
- };
1419
- //#endregion
1420
- //#region src/hooks/useAllowedCountries.ts
1421
- var businessAccountCountries = [
1422
- CountryCodes.Austria,
1423
- CountryCodes.Belgium,
1424
- CountryCodes.Croatia,
1425
- CountryCodes.Cyprus,
1426
- CountryCodes.Estonia,
1427
- CountryCodes.Finland,
1428
- CountryCodes.France,
1429
- CountryCodes.Germany,
1430
- CountryCodes.Greece,
1431
- CountryCodes.Ireland,
1432
- CountryCodes.Italy,
1433
- CountryCodes.Latvia,
1434
- CountryCodes.Lithuania,
1435
- CountryCodes.Luxembourg,
1436
- CountryCodes.Malta,
1437
- CountryCodes.Netherlands,
1438
- CountryCodes.Portugal,
1439
- CountryCodes.Slovakia,
1440
- CountryCodes.Slovenia,
1441
- CountryCodes.Spain,
1442
- CountryCodes.UnitedKingdom,
1443
- CountryCodes.UnitedStates
1444
- ];
1445
- var useAllowedCountries = () => {
1446
- const isLimitCountryBusinessAccountCustomersEnabled = Object.keys(useCapabilities() ?? {}).includes("issueBankAccount");
1447
- const acceptedCountriesSetting = useSetting("acceptedCountries");
1448
- const { data } = useSupportedCountries({ enabled: !acceptedCountriesSetting });
1449
- const allowedCountries = acceptedCountriesSetting ?? data?.countries;
1450
- if (!allowedCountries) return;
1451
- return isLimitCountryBusinessAccountCustomersEnabled ? businessAccountCountries.filter((country) => allowedCountries.includes(country)) : allowedCountries;
1452
- };
1453
- //#endregion
1454
- //#region src/datasets/generators/loadCountries.ts
1455
- var logger$2 = createLogger();
1456
- var countriesImports = /* @__PURE__ */ Object.assign({
1457
- "../countries/de-DE.json": () => import("./de-DE-w4l6boYT.js"),
1458
- "../countries/el-GR.json": () => import("./el-GR-DqTetsjB.js"),
1459
- "../countries/en-US.json": () => import("./en-US-B82BbZaB.js"),
1460
- "../countries/es-ES.json": () => import("./es-ES-C14ZT-97.js"),
1461
- "../countries/fr-FR.json": () => import("./fr-FR-8a-RK9xd.js"),
1462
- "../countries/it-IT.json": () => import("./it-IT-DIIRAF4_.js"),
1463
- "../countries/ja-JP.json": () => import("./ja-JP-CyXnoIu3.js"),
1464
- "../countries/nl-NL.json": () => import("./nl-NL-BWGCqpWp.js"),
1465
- "../countries/pt-PT.json": () => import("./pt-PT-IPhkbQvT.js"),
1466
- "../countries/sv-SE.json": () => import("./sv-SE-IBYnJfbW.js")
1467
- });
1468
- var loadCountriesDataset = async (locale) => {
1469
- const importForLocale = countriesImports[`../countries/${locale}.json`];
1470
- if (!importForLocale) {
1471
- logger$2.warn(`No countries dataset for ${locale}, falling back to en-US`);
1472
- return (await import("./en-US-B82BbZaB.js")).default;
1473
- }
1474
- return (await importForLocale()).default;
1475
- };
1476
- //#endregion
1477
- //#region src/datasets/generators/loadStatesDataset.ts
1478
- var logger$1 = createLogger();
1479
- var statesImports = /* @__PURE__ */ Object.assign({
1480
- "../states/AU/en-US.json": () => import("./en-US-CRoNUEFi.js"),
1481
- "../states/BR/en-US.json": () => import("./en-US-C6sEvgbn.js"),
1482
- "../states/BR/pt-BR.json": () => import("./pt-BR-C3I_7Mcz.js"),
1483
- "../states/CA/en-US.json": () => import("./en-US-D0pPfuzx.js"),
1484
- "../states/JP/en-US.json": () => import("./en-US-BqvVH-Pi.js"),
1485
- "../states/JP/ja-JP.json": () => import("./ja-JP-eKLuhutG.js"),
1486
- "../states/NZ/en-US.json": () => import("./en-US-KKriaTJw.js"),
1487
- "../states/US/en-US.json": () => import("./en-US-t-Z87qeJ.js")
1488
- });
1489
- var loadStatesDataset = async (country, locale) => {
1490
- const importForLocale = statesImports[`../states/${country}/${locale}.json`];
1491
- if (!importForLocale) {
1492
- logger$1.warn(`No ${country} states dataset for ${locale}, falling back to en-US`);
1493
- const fallbackImport = statesImports[`../states/${country}/en-US.json`];
1494
- return (await fallbackImport()).default;
1495
- }
1496
- return (await importForLocale()).default;
1497
- };
1498
- //#endregion
1499
- //#region src/utils/datasetUtil.ts
1500
- var normalizedDatasets = {};
1501
- var datasets = {};
1502
- var createDatasetKey = (identifier, locale) => `${identifier}_${locale}`.toLowerCase();
1503
- var getNormalizeDataset = (datasetKey) => {
1504
- if (!normalizedDatasets[datasetKey]) {
1505
- normalizedDatasets[datasetKey] = {};
1506
- datasets[datasetKey].forEach(({ id, name }) => {
1507
- normalizedDatasets[datasetKey][id] = name;
1508
- });
1509
- }
1510
- return normalizedDatasets[datasetKey];
1511
- };
1512
- var getDataName = (datasetKey, key) => {
1513
- if (datasets[datasetKey]) return getNormalizeDataset(datasetKey)[key];
1514
- return null;
1515
- };
1516
- var datasetIdentifier = {
1517
- country: "countries",
1518
- state: (countryCode) => `states/${countryCode}`
1519
- };
1520
- function datasetUtilities(locale) {
1521
- return {
1522
- getCountryName: (countryCode) => {
1523
- if (!countryCode) return null;
1524
- return getDataName(createDatasetKey(datasetIdentifier.country, locale), countryCode);
1525
- },
1526
- getStateName: (stateCode, countryCode) => {
1527
- return getDataName(createDatasetKey(datasetIdentifier.state(countryCode), locale), stateCode);
1528
- },
1529
- setDataset: (identifier, dataset) => {
1530
- const datasetKey = createDatasetKey(identifier, locale);
1531
- datasets[datasetKey] = dataset;
1532
- },
1533
- getDataset: (identifier) => {
1534
- return datasets[createDatasetKey(identifier, locale)];
1535
- },
1536
- getDatasetKey: (identifier) => createDatasetKey(identifier, locale)
1537
- };
1538
- }
1539
- //#endregion
1540
- //#region src/core/services/agnostic/get-dataset.ts
1541
- var loadDataset = async (identifier, locale) => {
1542
- if (identifier === datasetIdentifier.country) return loadCountriesDataset(locale);
1543
- if (identifier.startsWith("states")) return loadStatesDataset(identifier.slice(identifier.indexOf("/") + 1), locale);
1544
- throw new Error(`Unknown dataset: ${identifier}`);
1545
- };
1546
- var getDataset = async (identifier, locale) => {
1547
- const datasetUtils = datasetUtilities(locale);
1548
- const dataset = datasetUtils.getDataset(identifier);
1549
- if (dataset) return new Promise((resolve) => {
1550
- resolve(dataset);
1551
- });
1552
- return loadDataset(identifier, locale).then((datasetResponse) => {
1553
- datasetUtils.setDataset(identifier, datasetResponse);
1554
- return datasetResponse;
1555
- });
1556
- };
1557
- //#endregion
1558
- //#region src/hooks/useDataset.ts
1559
- function useDataset(datasetIdentifier, skip) {
1560
- const { i18n } = useTranslation();
1561
- const [dataset, setDataset] = useState$1([]);
1562
- const [loaded, setLoaded] = useState$1(false);
1563
- useEffect$1(() => {
1564
- if (skip) return;
1565
- getDataset(datasetIdentifier, i18n.language).then((response) => {
1566
- setDataset(response && response.length ? response : []);
1567
- }).catch(() => {
1568
- setDataset([]);
1569
- }).finally(() => {
1570
- setLoaded(true);
1571
- });
1572
- }, [
1573
- datasetIdentifier,
1574
- i18n.language,
1575
- skip
1576
- ]);
1577
- return {
1578
- dataset,
1579
- loaded
1580
- };
1581
- }
1582
- var alert_module_default = {
1583
- alert: "_alert_jgk1f_1",
1584
- "alert-without-icon": "_alert-without-icon_jgk1f_10",
1585
- alertWithoutIcon: "_alert-without-icon_jgk1f_10",
1586
- "alert-explanation": "_alert-explanation_jgk1f_10",
1587
- alertExplanation: "_alert-explanation_jgk1f_10",
1588
- "alert-actions": "_alert-actions_jgk1f_11",
1589
- alertActions: "_alert-actions_jgk1f_11",
1590
- "alert-basic": "_alert-basic_jgk1f_15",
1591
- alertBasic: "_alert-basic_jgk1f_15",
1592
- "alert-info": "_alert-info_jgk1f_19",
1593
- alertInfo: "_alert-info_jgk1f_19",
1594
- "alert-error": "_alert-error_jgk1f_23",
1595
- alertError: "_alert-error_jgk1f_23",
1596
- "alert-warning": "_alert-warning_jgk1f_27",
1597
- alertWarning: "_alert-warning_jgk1f_27",
1598
- "alert-success": "_alert-success_jgk1f_31",
1599
- alertSuccess: "_alert-success_jgk1f_31",
1600
- "alert-header": "_alert-header_jgk1f_35",
1601
- alertHeader: "_alert-header_jgk1f_35",
1602
- "alert-header-without-children": "_alert-header-without-children_jgk1f_40",
1603
- alertHeaderWithoutChildren: "_alert-header-without-children_jgk1f_40",
1604
- "alert-icon": "_alert-icon_jgk1f_44",
1605
- alertIcon: "_alert-icon_jgk1f_44",
1606
- "alert-icon-info": "_alert-icon-info_jgk1f_48",
1607
- alertIconInfo: "_alert-icon-info_jgk1f_48",
1608
- "alert-icon-error": "_alert-icon-error_jgk1f_52",
1609
- alertIconError: "_alert-icon-error_jgk1f_52",
1610
- "alert-icon-warning": "_alert-icon-warning_jgk1f_56",
1611
- alertIconWarning: "_alert-icon-warning_jgk1f_56",
1612
- "alert-icon-success": "_alert-icon-success_jgk1f_60",
1613
- alertIconSuccess: "_alert-icon-success_jgk1f_60",
1614
- "alert-title": "_alert-title_jgk1f_64",
1615
- alertTitle: "_alert-title_jgk1f_64"
1616
- };
1617
- //#endregion
1618
- //#region src/components/ui/molecules/Alert/Alert.tsx
1619
- var variantMap = {
1620
- basic: alert_module_default.alertBasic,
1621
- info: alert_module_default.alertInfo,
1622
- error: alert_module_default.alertError,
1623
- warning: alert_module_default.alertWarning,
1624
- success: alert_module_default.alertSuccess
1625
- };
1626
- var iconVariantMap = {
1627
- basic: "",
1628
- info: alert_module_default.alertIconInfo,
1629
- error: alert_module_default.alertIconError,
1630
- warning: alert_module_default.alertIconWarning,
1631
- success: alert_module_default.alertIconSuccess
1632
- };
1633
- var Alert = ({ title, variant = "basic", type = "default", className, actions, children, icon, testId, onClose, onToggle }) => {
1634
- const { t } = useTranslation("ui");
1635
- const [isClosed, setIsClosed] = useState$1(false);
1636
- if (isClosed) return null;
1637
- const closeAlert = () => {
1638
- if (onClose) onClose();
1639
- setIsClosed(true);
1640
- };
1641
- const renderIcon = () => {
1642
- if (icon === false) return void 0;
1643
- if (isValidElement$1(icon)) return icon;
1644
- return /* @__PURE__ */ jsx("span", {
1645
- className: cx(alert_module_default.alertIcon, iconVariantMap[variant]),
1646
- children: /* @__PURE__ */ jsx(AlertIcon, { variant })
1647
- });
1648
- };
1649
- const renderedIcon = renderIcon();
1650
- if (type === "collapsible") return /* @__PURE__ */ jsxs(Accordion, {
1651
- variant,
1652
- onToggle: onToggle || void 0,
1653
- narrow: true,
1654
- className,
1655
- children: [
1656
- /* @__PURE__ */ jsx("template", {
1657
- slot: "title",
1658
- children: title
1659
- }),
1660
- /* @__PURE__ */ jsx("template", {
1661
- slot: "icon",
1662
- children: renderedIcon
1663
- }),
1664
- /* @__PURE__ */ jsxs("template", {
1665
- slot: "content",
1666
- children: [children, !!actions && /* @__PURE__ */ jsx("div", {
1667
- className: alert_module_default.alertActions,
1668
- children: actions
1669
- })]
1670
- })
1671
- ]
1672
- });
1673
- if (type === "callToAction") return /* @__PURE__ */ jsxs("div", {
1674
- className: cx(alert_module_default.alert, className, variantMap[variant], { [alert_module_default.alertWithoutIcon]: !renderedIcon }),
1675
- role: "alert",
1676
- "data-testid": testId,
1677
- children: [/* @__PURE__ */ jsxs("div", {
1678
- className: cx(alert_module_default.alertHeader, { [alert_module_default.alertHeaderWithoutChildren]: !children }),
1679
- children: [
1680
- renderedIcon,
1681
- title && /* @__PURE__ */ jsx(Typography, {
1682
- el: "h3",
1683
- variant: "body-strongest",
1684
- className: alert_module_default.alertTitle,
1685
- children: title
1686
- }),
1687
- !!actions && /* @__PURE__ */ jsx("div", {
1688
- className: alert_module_default.alertActions,
1689
- children: actions
1690
- })
1691
- ]
1692
- }), !!children && /* @__PURE__ */ jsx("div", {
1693
- className: alert_module_default.alertExplanation,
1694
- children
1695
- })]
1696
- });
1697
- return /* @__PURE__ */ jsxs("div", {
1698
- className: cx(alert_module_default.alert, className, variantMap[variant], { [alert_module_default.alertWithoutIcon]: !renderedIcon }),
1699
- role: "alert",
1700
- "data-testid": testId,
1701
- children: [
1702
- /* @__PURE__ */ jsxs("div", {
1703
- className: alert_module_default.alertHeader,
1704
- children: [
1705
- renderedIcon,
1706
- title && /* @__PURE__ */ jsx(Typography, {
1707
- el: "h3",
1708
- variant: "body-strongest",
1709
- className: alert_module_default.alertTitle,
1710
- children: title
1711
- }),
1712
- type === "dismissible" && /* @__PURE__ */ jsx(Button, {
1713
- variant: "tertiary",
1714
- icon: "cross",
1715
- onClick: closeAlert,
1716
- children: t(($) => $["close"])
1717
- })
1718
- ]
1719
- }),
1720
- !!children && /* @__PURE__ */ jsx("div", {
1721
- className: alert_module_default.alertExplanation,
1722
- children
1723
- }),
1724
- !!actions && /* @__PURE__ */ jsx("div", {
1725
- className: alert_module_default.alertActions,
1726
- children: actions
1727
- })
1728
- ]
1729
- });
1730
- };
1731
- var AlertIcon = ({ variant }) => {
1732
- switch (variant) {
1733
- case "success": return /* @__PURE__ */ jsx(Icon, { name: "checkmark" });
1734
- case "error": return /* @__PURE__ */ jsx(Icon, { name: "error" });
1735
- case "warning": return /* @__PURE__ */ jsx(Icon, { name: "warning" });
1736
- default: return /* @__PURE__ */ jsx(Icon, { name: "info-circle-filled" });
1737
- }
1738
- };
1739
- //#endregion
1740
- //#region src/components/Shared/AllowedCountryGate/AllowedCountryGate.tsx
1741
- /**
1742
- * Blocks the user from onboarding if they are from a disallowed country.
1743
- */
1744
- var AllowedCountryGate = ({ children }) => {
1745
- const allowedCountries = useAllowedCountries();
1746
- const { t, i18n } = useTranslation("common");
1747
- const { data: rootLegalEntity } = useLegalEntity(ROOT_LE);
1748
- const { dataset: countries } = useDataset(datasetIdentifier.country);
1749
- addResourceBundles(i18n, [{
1750
- ns: "common",
1751
- importFn: (lang) => _rolldown_dynamic_import_helper_default(/* @__PURE__ */ Object.assign({
1752
- "../../../language/locales/bg-BG.json": () => import("./bg-BG-DX5QKxJz.js"),
1753
- "../../../language/locales/cs-CZ.json": () => import("./cs-CZ-CMXGY6Ep.js"),
1754
- "../../../language/locales/da-DK.json": () => import("./da-DK-B9O3xbY6.js"),
1755
- "../../../language/locales/de-DE.json": () => import("./de-DE-CjMOQMqQ.js"),
1756
- "../../../language/locales/el-GR.json": () => import("./el-GR-pGsVWsOm.js"),
1757
- "../../../language/locales/en-US.instructions.json": () => import("./en-US.instructions-BVNIyLRs.js"),
1758
- "../../../language/locales/en-US.json": () => import("./en-US-C8karqc5.js"),
1759
- "../../../language/locales/es-ES.json": () => import("./es-ES-DeT4zIDW.js"),
1760
- "../../../language/locales/es-LA.json": () => import("./es-LA-B_hzWiiE.js"),
1761
- "../../../language/locales/et-EE.json": () => import("./et-EE-BQEyJFZb.js"),
1762
- "../../../language/locales/fi-FI.json": () => import("./fi-FI-BeJtSWIh.js"),
1763
- "../../../language/locales/fr-FR.json": () => import("./fr-FR-D7DTFYe4.js"),
1764
- "../../../language/locales/hr-HR.json": () => import("./hr-HR-BjxPRJ1o.js"),
1765
- "../../../language/locales/hu-HU.json": () => import("./hu-HU-BQ5310Yi.js"),
1766
- "../../../language/locales/it-IT.json": () => import("./it-IT-BORQC-7u.js"),
1767
- "../../../language/locales/ja-JP.json": () => import("./ja-JP-DrHQO_Se.js"),
1768
- "../../../language/locales/lt-LT.json": () => import("./lt-LT-8kOI6QVq.js"),
1769
- "../../../language/locales/lv-LV.json": () => import("./lv-LV-Mj_iV56f.js"),
1770
- "../../../language/locales/nl-NL.json": () => import("./nl-NL-jt4eYGEY.js"),
1771
- "../../../language/locales/no-NO.json": () => import("./no-NO-CeZQnyyD.js"),
1772
- "../../../language/locales/pl-PL.json": () => import("./pl-PL-CWFdZf24.js"),
1773
- "../../../language/locales/pt-BR.json": () => import("./pt-BR-D1yTuXWd2.js"),
1774
- "../../../language/locales/pt-PT.json": () => import("./pt-PT-DhokEMPi.js"),
1775
- "../../../language/locales/ro-RO.json": () => import("./ro-RO-C6xoaASq.js"),
1776
- "../../../language/locales/sk-SK.json": () => import("./sk-SK-Bb1CdAzD.js"),
1777
- "../../../language/locales/sl-SI.json": () => import("./sl-SI-B-Xa0hlk.js"),
1778
- "../../../language/locales/sv-SE.json": () => import("./sv-SE-Dk81lopg.js")
1779
- }), `../../../language/locales/${lang}.json`, 6)
1780
- }]);
1781
- if (!rootLegalEntity || !allowedCountries) return /* @__PURE__ */ jsx(Loader, {});
1782
- const country = getLegalEntityCountry(rootLegalEntity);
1783
- const isAllowed = allowedCountries.includes(country);
1784
- const countryName = countries.find(({ id }) => id === country)?.name ?? country;
1785
- if (!isAllowed) return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(AlertIcon, { variant: "error" }), /* @__PURE__ */ jsx(Header, {
1786
- title: t(($) => $["countryNotSupported"]),
1787
- description: t(($) => $["weDontSupportOnboardingInCountry"], { country: countryName })
1788
- })] });
1789
- return /* @__PURE__ */ jsx(Fragment$1, { children });
1790
- };
1791
- //#endregion
1792
- //#region src/components/Shared/devex/DebugListener/DebugListener.tsx
1793
- var DebugModal = lazy(async () => (await import("./DebugModal-CG6CvUnj.js")).DebugModal);
1794
- /**
1795
- * Adds a listener on the page to open the debug modal when the
1796
- * debug modal key combination is pressed to open it
1797
- */
1798
- var DebugListener = () => {
1799
- const [debugUiOpen, setDebugUiOpen] = useState$1(false);
1800
- const { isSettingEnabled } = useSettingsContext();
1801
- const debugUiAllowed = isSettingEnabled("allowDebugUi");
1802
- useEffect$1(() => {
1803
- if (!debugUiAllowed) return;
1804
- const handleKeyDown = ({ code, ctrlKey, altKey, shiftKey }) => {
1805
- if (ctrlKey && (altKey || shiftKey) && code === "Backslash") setDebugUiOpen(true);
1806
- };
1807
- document.addEventListener("keydown", handleKeyDown);
1808
- return () => document.removeEventListener("keydown", handleKeyDown);
1809
- }, [debugUiAllowed]);
1810
- return /* @__PURE__ */ jsx(Fragment$1, { children: debugUiAllowed && debugUiOpen ? /* @__PURE__ */ jsx(Suspense, {
1811
- fallback: /* @__PURE__ */ jsx("div", {}),
1812
- children: /* @__PURE__ */ jsx(DebugModal, { onExit: () => setDebugUiOpen(false) })
1813
- }) : null });
1814
- };
1815
- //#endregion
1816
- //#region src/core/models/api/transfer-instrument.ts
1817
- function isTransferInstrument(account) {
1818
- return account.bankAccount !== void 0;
1819
- }
1820
- var isInstantVerifiedAccount = (account) => Boolean(isTransferInstrument(account) ? account.bankAccount.trustedSource : account.trustedSource);
1821
- var getObscuredAccountNumber = ({ accountIdentifier, realLastFour }) => realLastFour ? `*******${realLastFour}` : accountIdentifier;
1822
- //#endregion
1823
- //#region src/utils/unincorporatedParnershipUtils.ts
1824
- var isPartOfUnincorporatedPartnership = (legalEntity) => legalEntity?.entityAssociations?.some((ea) => ea.entityType === LegalEntityTypes.UNINCORPORATED_PARTNERSHIP && ea.associatorId === legalEntity.id);
1825
- var getOwnUnincorporatedPartnershipLegalEntityId = (legalEntity) => legalEntity?.entityAssociations?.find((ea) => ea.entityType === LegalEntityTypes.UNINCORPORATED_PARTNERSHIP && ea.associatorId === legalEntity.id)?.legalEntityId;
1826
- var getOwnUnincorporatedPartnershipLegalEntityIdAsArray = (legalEntity) => {
1827
- const legalEntityId = getOwnUnincorporatedPartnershipLegalEntityId(legalEntity);
1828
- return legalEntityId ? [legalEntityId] : [];
1829
- };
1830
- var getOwnUnincorporatedPartnershipProblems = (legalEntity, capabilityProblems) => {
1831
- const legalEntityId = getOwnUnincorporatedPartnershipLegalEntityId(legalEntity);
1832
- if (legalEntityId) return capabilityProblems?.LegalEntity?.[legalEntityId];
1833
- };
1834
- /**
1835
- * Gathers all legal entity IDs relevant for calculating the task status of an unincorporated partnership.
1836
- *.
1837
- * These ids includes the root legal entity itself, the direct members of the partnership, and any owners
1838
- * (e.g., UBOs through ownership) associated with those members.
1839
- *
1840
- * @param rootLegalEntity The root legal entity
1841
- * @returns A list of legal entity IDs, including the root entity, its partnership members, and their owners.
1842
- */
1843
- var getOwnMembersLegalEntityIds = (rootLegalEntity) => {
1844
- const unincorporatedPartnershipEntityId = getOwnUnincorporatedPartnershipLegalEntityId(rootLegalEntity);
1845
- if (!unincorporatedPartnershipEntityId) return [];
1846
- const memberAssociationsIds = getDirectEntityAssociations(rootLegalEntity, unincorporatedPartnershipEntityId).map((association) => association.legalEntityId).filter((id) => id !== void 0);
1847
- const ownerIds = memberAssociationsIds.flatMap((associationId) => getDirectEntityAssociations(rootLegalEntity, associationId)).map((association) => association.legalEntityId).filter((id) => id !== void 0);
1848
- return [
1849
- rootLegalEntity.id,
1850
- ...memberAssociationsIds,
1851
- ...ownerIds
1852
- ];
1853
- };
1854
- //#endregion
1855
- //#region src/components/Trust/forms/TrustRegistrationDetails/types.ts
1856
- var nzSpecificTrustTypes = [
1857
- "discretionaryTrust",
1858
- "familyTrust",
1859
- "charitableTrust",
1860
- "businessTrust",
1861
- "otherTrust"
1862
- ];
1863
- var auSpecificTrustTypes = [
1864
- "cashManagementTrust",
1865
- "corporateUnitTrust",
1866
- "deceasedEstate",
1867
- "discretionaryInvestmentTrust",
1868
- "discretionaryServicesManagementTrust",
1869
- "discretionaryTradingTrust",
1870
- "firstHomeSaverAccountsTrust",
1871
- "fixedTrust",
1872
- "fixedUnitTrust",
1873
- "hybridTrust",
1874
- "listedPublicUnitTrust",
1875
- "otherTrust",
1876
- "pooledSuperannuationTrust",
1877
- "publicTradingTrust",
1878
- "unlistedPublicUnitTrust"
1879
- ];
1880
- var countryToTrustTypes = {
1881
- [CountryCodes.Australia]: auSpecificTrustTypes,
1882
- [CountryCodes.NewZealand]: nzSpecificTrustTypes
1883
- };
1884
- //#endregion
1885
- //#region src/components/Trust/utils/trustMemberRequirements.ts
1886
- var DEFAULT_TRUST_MEMBER_REQUIREMENTS = [
1887
- {
1888
- roleTypes: [TrustMemberTypes.SETTLOR],
1889
- min: 1,
1890
- max: 1,
1891
- label: TrustMemberGuidanceLabels.SETTLOR
1892
- },
1893
- {
1894
- roleTypes: [TrustMemberTypes.DEFINED_BENEFICIARY, TrustMemberTypes.UNDEFINED_BENEFICIARY],
1895
- min: 1,
1896
- max: Infinity,
1897
- label: TrustMemberGuidanceLabels.BENEFICIARY
1898
- },
1899
- {
1900
- roleTypes: [TrustMemberTypes.PROTECTOR],
1901
- min: 0,
1902
- max: Infinity,
1903
- label: TrustMemberGuidanceLabels.PROTECTOR
1904
- },
1905
- {
1906
- roleTypes: [TrustMemberTypes.TRUSTEE],
1907
- min: 1,
1908
- max: Infinity,
1909
- label: TrustMemberGuidanceLabels.TRUSTEE
1910
- }
1911
- ];
1912
- //#endregion
1913
- //#region src/components/Trust/utils/trustUtil.ts
1914
- var isPartOfTrustFromLegalEntity = (legalEntity) => legalEntity?.entityAssociations?.some((ea) => ea.entityType === LegalEntityTypes.TRUST && ea.associatorId === legalEntity.id);
1915
- var getOwnTrustMembersLegalEntityIds = (rootLegalEntity) => {
1916
- const trustLegalEntityId = getOwnTrustLegalEntityId(rootLegalEntity);
1917
- if (!trustLegalEntityId) return [];
1918
- const trustMemberIds = getDirectEntityAssociations(rootLegalEntity, trustLegalEntityId).map((association) => association.legalEntityId).filter((id) => id !== void 0);
1919
- return [...trustMemberIds, ...trustMemberIds.flatMap((trustMemberId) => getTrustMemberCompanyDecisionMakerIds(rootLegalEntity, trustMemberId))];
1920
- };
1921
- var getTrustMemberCompanyDecisionMakerIds = (rootLegalEntity, trustMemberCompanyId) => {
1922
- return getDecisionMakers(rootLegalEntity, trustMemberCompanyId).map((association) => association.legalEntityId).filter((id) => id !== void 0);
1923
- };
1924
- var getOwnTrustLegalEntityId = (legalEntity) => legalEntity?.entityAssociations?.find((ea) => ea.entityType === LegalEntityTypes.TRUST && ea.associatorId === legalEntity.id)?.legalEntityId;
1925
- var getOwnTrustLegalEntityIdAsArray = (legalEntity) => {
1926
- const trustLegalEntityId = getOwnTrustLegalEntityId(legalEntity);
1927
- return trustLegalEntityId ? [trustLegalEntityId] : [];
1928
- };
1929
- var getOwnTrustProblems = (legalEntity, capabilityProblems) => {
1930
- const trustLegalEntityId = getOwnTrustLegalEntityId(legalEntity);
1931
- if (trustLegalEntityId) return capabilityProblems?.LegalEntity?.[trustLegalEntityId];
1932
- };
1933
- var hasRequiredTrustMemberCount = (trustMembers) => {
1934
- if (!trustMembers.length) return false;
1935
- return DEFAULT_TRUST_MEMBER_REQUIREMENTS.every(({ roleTypes, min }) => {
1936
- if (min === 0) return true;
1937
- return (trustMembers.filter(({ roles }) => roleTypes.some((label) => roles.includes(label)))?.length ?? 0) >= min;
1938
- });
1939
- };
1940
- var getCountrySpecificTrustTypeOptions = (country) => {
1941
- return countryToTrustTypes[country] || [];
1942
- };
1943
- //#endregion
1944
- //#region src/core/models/api/verification-status.ts
1945
- var VerificationStatuses = {
1946
- VALID: "valid",
1947
- PENDING: "pending",
1948
- INVALID: "invalid",
1949
- REJECTED: "rejected"
1950
- };
1951
- //#endregion
1952
- //#region src/stores/globalStore/isEmptyEntity.ts
1953
- /**
1954
- * These fields will be present on an empty (just created) entity of the given type.
1955
- * If any more fields than these are present, we consider the LE to not be "empty".
1956
- */
1957
- var emptyFieldsForIndividual = [
1958
- "name.firstName",
1959
- "name.lastName",
1960
- "residentialAddress.country"
1961
- ];
1962
- var emptyFieldsForOrganization = ["legalName", "registeredAddress.country"];
1963
- var emptyFieldsForTrust = ["name", "registeredAddress.country"];
1964
- var emptyFieldsForSoleProp = ["name", "registeredAddress.country"];
1965
- var emptyFieldsForUnincorporatedPartnership = [
1966
- "name",
1967
- "countryOfGoverningLaw",
1968
- "registeredAddress.country"
1969
- ];
1970
- var emptyFieldsByEntityType = {
1971
- [LegalEntityTypes.INDIVIDUAL]: emptyFieldsForIndividual,
1972
- [LegalEntityTypes.ORGANIZATION]: emptyFieldsForOrganization,
1973
- [LegalEntityTypes.TRUST]: emptyFieldsForTrust,
1974
- [LegalEntityTypes.SOLE_PROPRIETORSHIP]: emptyFieldsForSoleProp,
1975
- [LegalEntityTypes.UNINCORPORATED_PARTNERSHIP]: emptyFieldsForUnincorporatedPartnership
1976
- };
1977
- function isEmptyEntity(legalEntity) {
1978
- const type = legalEntity?.type;
1979
- if (!type) return true;
1980
- if (legalEntity.documentDetails?.length) return false;
1981
- const minimumFields = emptyFieldsByEntityType[type];
1982
- const typeSpecificSection = legalEntity[type];
1983
- if (!typeSpecificSection) return true;
1984
- const fieldsOnEntity = getNestedPropertyKeys(typeSpecificSection, false, false);
1985
- const sortedMinimumFields = [...minimumFields].sort();
1986
- return [...fieldsOnEntity].sort().every((value, index) => value === sortedMinimumFields[index]);
1987
- }
1988
- //#endregion
1989
- //#region src/stores/globalStore/get-task-status.ts
1990
- var calculateCustomerSupportTask = (capabilityProblems, rootLegalEntity) => {
1991
- const supportData = rootLegalEntity.individual?.support ?? rootLegalEntity.organization?.support;
1992
- const hasMissingDataErrors = capabilityProblems.LegalEntity?.[rootLegalEntity.id]?.missingData?.some((error) => CUSTOMER_SUPPORT_DATA_MISSING_ERROR_CODES.includes(error.code));
1993
- if (!supportData) return {
1994
- status: TaskStatuses.DETAILS_REQUIRED,
1995
- reason: "rootLegalEntityIsEmpty"
1996
- };
1997
- if (hasMissingDataErrors) return {
1998
- status: TaskStatuses.DETAILS_REQUIRED,
1999
- reason: "dataMissingError",
2000
- details: { missingData: capabilityProblems.LegalEntity?.[rootLegalEntity.id].missingData?.filter((error) => CUSTOMER_SUPPORT_DATA_MISSING_ERROR_CODES.includes(error.code)) }
2001
- };
2002
- const pendingCapabilities = getPendingCapabilities(rootLegalEntity);
2003
- if (pendingCapabilities.length > 0) return {
2004
- status: TaskStatuses.PROCESSING,
2005
- reason: "pendingCapabilities",
2006
- details: { pendingCapabilities }
2007
- };
2008
- if (hasAllCapabilitiesValid(rootLegalEntity)) return {
2009
- status: TaskStatuses.FINISHED,
2010
- reason: "allCapabilitiesValid"
2011
- };
2012
- return {
2013
- status: TaskStatuses.FINISHED,
2014
- reason: "noIssuesFound"
2015
- };
2016
- };
2017
- var getRegularTaskStatus = ({ taskType, capabilityProblems, rootLegalEntity, relevantEntityIds, ignorePendingCapabilities = false }) => {
2018
- const entityType = taskType === TaskTypes.PAYIN || taskType == TaskTypes.PAYOUT ? EntityTypes.BANK_ACCOUNT : EntityTypes.LEGAL_ENTITY;
2019
- if (relevantEntityIds.length === 0) return {
2020
- status: TaskStatuses.EMPTY,
2021
- reason: "newEntityAlwaysEmpty"
2022
- };
2023
- if (relevantEntityIds.includes(rootLegalEntity.id) && isEmptyEntity(rootLegalEntity)) return {
2024
- status: TaskStatuses.EMPTY,
2025
- reason: "rootLegalEntityIsEmpty"
2026
- };
2027
- const importantProblems = findImportantProblems(entityType, capabilityProblems, relevantEntityIds, taskType);
2028
- if (importantProblems.length > 0) return importantProblems[0].statusWithReason;
2029
- const pendingCapabilities = getPendingCapabilities(rootLegalEntity);
2030
- if (!ignorePendingCapabilities && pendingCapabilities.length > 0) return {
2031
- status: TaskStatuses.PROCESSING,
2032
- reason: "pendingCapabilities",
2033
- details: { pendingCapabilities }
2034
- };
2035
- if (relevantEntityIds.includes(rootLegalEntity.id)) {
2036
- if (hasAllCapabilitiesValid(rootLegalEntity)) return {
2037
- status: TaskStatuses.FINISHED,
2038
- reason: "allCapabilitiesValid"
2039
- };
2040
- }
2041
- return {
2042
- status: TaskStatuses.FINISHED,
2043
- reason: "noIssuesFound"
2044
- };
2045
- };
2046
- var getDecisionMakerOverviewStatus = ({ capabilityProblems, rootLegalEntity, relevantEntityIds }) => {
2047
- if (relevantEntityIds.length === 0) return {
2048
- status: TaskStatuses.EMPTY,
2049
- reason: "newEntityAlwaysEmpty"
2050
- };
2051
- if (relevantEntityIds.includes(rootLegalEntity.id) && isEmptyEntity(rootLegalEntity)) return {
2052
- status: TaskStatuses.EMPTY,
2053
- reason: "rootLegalEntityIsEmpty"
2054
- };
2055
- const importantProblems = findImportantProblems(EntityTypes.LEGAL_ENTITY, capabilityProblems, relevantEntityIds, TaskTypes.DECISION_MAKER_OVERVIEW);
2056
- if (importantProblems.length > 0) return importantProblems[0].statusWithReason;
2057
- const pendingCapabilities = getPendingCapabilities(rootLegalEntity).filter((capability) => !/.*TransferInstrument/gim.test(capability));
2058
- if (pendingCapabilities.length > 0) return {
2059
- status: TaskStatuses.PROCESSING,
2060
- reason: "pendingCapabilities",
2061
- details: { pendingCapabilities }
2062
- };
2063
- if (relevantEntityIds.includes(rootLegalEntity.id) && hasAllNonTransferInstrumentCapabilitiesValid(rootLegalEntity)) return {
2064
- status: TaskStatuses.FINISHED,
2065
- reason: "allCapabilitiesValid"
2066
- };
2067
- return {
2068
- status: TaskStatuses.FINISHED,
2069
- reason: "noIssuesFound"
2070
- };
2071
- };
2072
- var IMPORTANT_STATUSES = [
2073
- TaskStatuses.DETAILS_REQUIRED,
2074
- TaskStatuses.DOWNLOAD,
2075
- TaskStatuses.ERROR,
2076
- TaskStatuses.PROCESSING
2077
- ];
2078
- function findImportantProblems(type, capabilityProblems, entityIds, taskType) {
2079
- if (!capabilityProblems?.[type] || !entityIds.length) return [];
2080
- const problems = cloneObject(capabilityProblems);
2081
- if (taskType !== TaskTypes.CUSTOMER_SUPPORT) entityIds.forEach((id) => {
2082
- if (problems.LegalEntity?.[id]?.missingData) problems.LegalEntity[id].missingData = problems.LegalEntity?.[id]?.missingData?.filter((missingDataErrors) => !CUSTOMER_SUPPORT_DATA_MISSING_ERROR_CODES.includes(missingDataErrors.code));
2083
- });
2084
- return Object.entries(problems[type] ?? {}).filter(([key]) => entityIds.includes(key)).map(([, value]) => value).filter((problems) => problems.statusWithReason !== void 0 && IMPORTANT_STATUSES.includes(problems.statusWithReason.status)).sort((prev, curr) => TASK_STATUS_PRIORITY[curr.statusWithReason.status] - TASK_STATUS_PRIORITY[prev.statusWithReason.status]);
2085
- }
2086
- var getPendingCapabilities = (legalEntityResponse) => entriesOf(legalEntityResponse.capabilities ?? {}).filter(([, capability]) => capability?.verificationStatus === "pending").reduce((acc, [name]) => [...acc, name], []);
2087
- var hasAllCapabilitiesResolved = (legalEntityResponse) => Object.values(legalEntityResponse?.capabilities ?? {}).every((capability) => capability.verificationStatus !== VerificationStatuses.PENDING);
2088
- var hasRejectedCapabilities = (legalEntityResponse) => Object.values(legalEntityResponse?.capabilities ?? {}).some((capability) => capability.verificationStatus === VerificationStatuses.REJECTED);
2089
- var hasAllCapabilitiesValid = (legalEntityResponse) => Object.values(legalEntityResponse?.capabilities ?? {}).every((capability) => capability.verificationStatus === VerificationStatuses.VALID);
2090
- var hasAllNonTransferInstrumentCapabilitiesValid = (legalEntityResponse) => {
2091
- for (const [name, capability] of Object.entries(legalEntityResponse?.capabilities ?? {})) if (!/.*TransferInstrument/gim.test(name) && capability.verificationStatus !== VerificationStatuses.VALID) return false;
2092
- return true;
2093
- };
2094
- //#endregion
2095
- //#region src/stores/globalStore/calculateTaskStatus.ts
2096
- var calculateTaskStatus = ({ taskIdentifier, capabilityProblems, rootLegalEntity, accountHolder, legalRepresentative, trustMembers, transferInstruments }) => {
2097
- const { taskType, id } = splitTaskIdentifier(taskIdentifier);
2098
- let relevantEntityIds = [];
2099
- let ignorePendingCapabilities = false;
2100
- switch (taskType) {
2101
- case TaskTypes.INDIVIDUAL:
2102
- case TaskTypes.BUSINESS_DETAILS:
2103
- relevantEntityIds = [rootLegalEntity.id];
2104
- break;
2105
- case TaskTypes.LEGAL_REPRESENTATIVE_DETAILS:
2106
- if (!legalRepresentative) return {
2107
- status: TaskStatuses.DETAILS_REQUIRED,
2108
- reason: "legalRepresentativeNeeded"
2109
- };
2110
- relevantEntityIds = [legalRepresentative.legalEntityId];
2111
- break;
2112
- case TaskTypes.SOLE_PROPRIETOR_COMPANY:
2113
- relevantEntityIds = getOwnSoleProprietorshipIdArray(rootLegalEntity);
2114
- break;
2115
- case TaskTypes.DECISION_MAKER_OVERVIEW:
2116
- if (!hasMinRequiredDecisionMakerCount(rootLegalEntity)) return {
2117
- status: TaskStatuses.DETAILS_REQUIRED,
2118
- reason: "missingRequiredDecisionMakers"
2119
- };
2120
- relevantEntityIds = getOwnDecisionMakersLegalEntityIds(rootLegalEntity);
2121
- return getDecisionMakerOverviewStatus({
2122
- capabilityProblems,
2123
- rootLegalEntity,
2124
- relevantEntityIds
2125
- });
2126
- case TaskTypes.DECISION_MAKER:
2127
- if (!id) throw new Error("Decision maker task identifier should specify an ID");
2128
- relevantEntityIds = [id];
2129
- break;
2130
- case TaskTypes.TRUST: {
2131
- const trustIds = getOwnTrustLegalEntityIdAsArray(rootLegalEntity);
2132
- if (accountHolder === "aTrust" && trustIds.length === 0) return {
2133
- status: TaskStatuses.EMPTY,
2134
- reason: "newEntityAlwaysEmpty"
2135
- };
2136
- relevantEntityIds = trustIds;
2137
- break;
2138
- }
2139
- case TaskTypes.TRUST_MEMBER_OVERVIEW:
2140
- if (!hasRequiredTrustMemberCount(trustMembers)) return {
2141
- status: TaskStatuses.DETAILS_REQUIRED,
2142
- reason: "missingRequiredTrustMembers"
2143
- };
2144
- relevantEntityIds = getOwnTrustMembersLegalEntityIds(rootLegalEntity);
2145
- break;
2146
- case TaskTypes.TRUST_MEMBER:
2147
- case TaskTypes.TRUST_MEMBER_INDIVIDUAL:
2148
- case TaskTypes.TRUST_MEMBER_COMPANY:
2149
- case TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_COMPANY:
2150
- case TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_INDIVIDUAL:
2151
- if (!id) throw new Error("Trust member task identifier should specify an ID");
2152
- if (id === "undefinedBeneficiary") {
2153
- relevantEntityIds = [];
2154
- break;
2155
- }
2156
- relevantEntityIds = [id, ...getDirectEntityAssociations(rootLegalEntity, id).map((association) => association.legalEntityId)];
2157
- break;
2158
- case TaskTypes.PAYIN:
2159
- case TaskTypes.PAYOUT: {
2160
- if (!id) return {
2161
- status: TaskStatuses.DETAILS_REQUIRED,
2162
- reason: "bankAccountNeeded"
2163
- };
2164
- const matchingAccount = transferInstruments.find((ti) => ti.id === id);
2165
- if (!matchingAccount) throw new Error(`Could not find transfer instrument with id ${id}`);
2166
- ignorePendingCapabilities = isInstantVerifiedAccount(matchingAccount);
2167
- relevantEntityIds = [id];
2168
- break;
2169
- }
2170
- case TaskTypes.CUSTOMER_SUPPORT: return calculateCustomerSupportTask(capabilityProblems, rootLegalEntity);
2171
- case TaskTypes.UNINCORPORATED_PARTNERSHIP: {
2172
- const partnerIds = getOwnUnincorporatedPartnershipLegalEntityIdAsArray(rootLegalEntity);
2173
- if (accountHolder === "anUnincorporatedPartnership" && partnerIds.length === 0) return {
2174
- status: TaskStatuses.EMPTY,
2175
- reason: "newEntityAlwaysEmpty"
2176
- };
2177
- relevantEntityIds = partnerIds;
2178
- break;
2179
- }
2180
- case TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_OVERVIEW:
2181
- relevantEntityIds = getOwnMembersLegalEntityIds(rootLegalEntity);
2182
- if (relevantEntityIds?.length === 1) return {
2183
- status: TaskStatuses.EMPTY,
2184
- reason: "newEntityAlwaysEmpty"
2185
- };
2186
- break;
2187
- }
2188
- return getRegularTaskStatus({
2189
- taskType,
2190
- rootLegalEntity,
2191
- capabilityProblems,
2192
- relevantEntityIds,
2193
- ignorePendingCapabilities
2194
- });
2195
- };
2196
- /**
2197
- * Splits a {@link TaskIdentifier} (e.g. `PAYOUT_ACCOUNT-abc-123`) into the task type and id
2198
- */
2199
- var splitTaskIdentifier = (taskIdentifier) => {
2200
- const firstDashIndex = taskIdentifier.indexOf("-");
2201
- if (firstDashIndex === -1) return { taskType: taskIdentifier };
2202
- return {
2203
- taskType: taskIdentifier.slice(0, firstDashIndex),
2204
- id: taskIdentifier.slice(firstDashIndex + 1)
2205
- };
2206
- };
2207
- //#endregion
2208
- //#region src/utils/birthDateUtils.tsx
2209
- /**
2210
- * Calculates the age of a person based on their birthdate.
2211
- * @param birthdate - The birthdate of the person in 'YYYY-MM-DD' format.
2212
- * @returns The age of the person in years.
2213
- */
2214
- var getAgeToday = (birthdate) => {
2215
- const today = /* @__PURE__ */ new Date();
2216
- const todayMonth = today.getMonth();
2217
- const todayDay = today.getDate();
2218
- const bdDate = new Date(birthdate);
2219
- const bdMonth = bdDate.getMonth();
2220
- const yearDifference = today.getFullYear() - bdDate.getFullYear();
2221
- if (todayMonth > bdMonth) return yearDifference;
2222
- if (todayMonth === bdMonth && todayDay >= bdDate.getUTCDate()) return yearDifference;
2223
- return yearDifference - 1;
2224
- };
2225
- /**
2226
- * Returns the age range for a legal representative based on the country.
2227
- * @param country - The country code.
2228
- * @returns An object with min and max age, or undefined if not applicable.
2229
- */
2230
- var getAgeRangeForLegalRepresentative = (country) => {
2231
- if (!country || isHkSgCountry(country)) return;
2232
- if (isEuCountry(country)) return {
2233
- min: 16,
2234
- max: 18
2235
- };
2236
- return {
2237
- min: 13,
2238
- max: 18
2239
- };
2240
- };
2241
- /**
2242
- * Checks if a person is under the required age for KYC based on their birthdate and country.
2243
- * @param birthDate - The birthdate of the person.
2244
- * @param country - The country of residence.
2245
- * @returns True if the person is under the required age, false otherwise.
2246
- */
2247
- var isPersonUnderAge = (birthDate, country) => {
2248
- if (!birthDate || !country) return false;
2249
- const ageRange = getAgeRangeForLegalRepresentative(country);
2250
- if (!ageRange) return false;
2251
- return isAgeWithinRange(getAgeToday(birthDate), ageRange);
2252
- };
2253
- /**
2254
- * Determines if a legal representative is needed based on age, country, and task type.
2255
- * @param birthDate - The birthdate of the person.
2256
- * @param country - The country of residence.
2257
- * @param taskType - The type of task being performed.
2258
- * @returns True if a legal representative is needed, false otherwise.
2259
- */
2260
- var isLegalRepresentativeNeeded = (birthDate, country, taskType) => {
2261
- if (taskType === TaskTypes.LEGAL_REPRESENTATIVE_DETAILS) return false;
2262
- return isPersonUnderAge(birthDate, country);
2263
- };
2264
- /**
2265
- * Checks if an age is within a given range.
2266
- * @param age - The age to check.
2267
- * @param ageRange - An object with min and max age.
2268
- * @returns True if the age is within the range, false otherwise.
2269
- */
2270
- var isAgeWithinRange = (age, ageRange) => ageRange.min <= age && age < ageRange.max;
2271
- /**
2272
- * Checks if a legal entity requires a legal representative based on the individual's age.
2273
- * @param legalEntity - The existing legal entity.
2274
- * @returns True if a legal representative is required, false otherwise.
2275
- */
2276
- var doesLegalEntityRequiresLegalRepresentative = (legalEntity) => {
2277
- if (!legalEntity || !legalEntity?.individual) return false;
2278
- const birthDate = legalEntity?.individual?.birthData?.dateOfBirth;
2279
- return isPersonUnderAge(birthDate, getLegalEntityCountry(legalEntity));
2280
- };
2281
- //#endregion
2282
- //#region src/stores/globalStore/determineTaskIdentifiers.ts
2283
- var determineTaskIdentifiers = ({ taskTypes: receivedTaskTypes, rootLegalEntity, accountHolder, capabilityProblems, trustMembers, transferInstruments, unincorporatedPartnershipMembers, legalRepresentative }) => {
2284
- if (!rootLegalEntity || !capabilityProblems) return [];
2285
- const taskTypes = receivedTaskTypes.map(mapReceivedTaskType);
2286
- const tasks = [...taskTypes];
2287
- if (taskTypes.includes(TaskTypes.PAYIN)) transferInstruments.forEach((account) => tasks.push(`PAYIN-${account.id}`));
2288
- if (taskTypes.includes(TaskTypes.PAYOUT)) transferInstruments.forEach((account) => tasks.push(`PAYOUT-${account.id}`));
2289
- if (taskTypes.includes(TaskTypes.DECISION_MAKER_OVERVIEW)) getOwnDecisionMakersLegalEntityIds(rootLegalEntity).forEach((id) => tasks.push(`DECISION_MAKER-${id}`));
2290
- if (legalRepresentative || doesLegalEntityRequiresLegalRepresentative(rootLegalEntity)) tasks.push(TaskTypes.LEGAL_REPRESENTATIVE_DETAILS);
2291
- if (accountHolder === "mySoleProprietorName") tasks.push(TaskTypes.SOLE_PROPRIETOR_COMPANY);
2292
- if (accountHolder === "aTrust") {
2293
- tasks.push(TaskTypes.TRUST);
2294
- tasks.push(TaskTypes.TRUST_MEMBER_OVERVIEW);
2295
- trustMembers.forEach((member) => {
2296
- if (member.trustMemberType === "undefinedBeneficiary") {
2297
- tasks.push(`TRUST_MEMBER-undefinedBeneficiary`);
2298
- return;
2299
- }
2300
- switch (member.legalEntityType) {
2301
- case "individual":
2302
- tasks.push(`TRUST_MEMBER_INDIVIDUAL-${String(member.legalEntityId)}`);
2303
- return;
2304
- case "organization":
2305
- tasks.push(`TRUST_MEMBER_COMPANY-${String(member.legalEntityId)}`);
2306
- return;
2307
- }
2308
- });
2309
- }
2310
- if (accountHolder === "anUnincorporatedPartnership") {
2311
- tasks.push(TaskTypes.UNINCORPORATED_PARTNERSHIP);
2312
- tasks.push(TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_OVERVIEW);
2313
- unincorporatedPartnershipMembers?.forEach((member) => {
2314
- switch (member.legalEntityType) {
2315
- case "individual":
2316
- tasks.push(`UNINCORPORATED_PARTNERSHIP_MEMBER_INDIVIDUAL-${String(member.legalEntityId)}`);
2317
- return;
2318
- case "organization":
2319
- tasks.push(`UNINCORPORATED_PARTNERSHIP_MEMBER_COMPANY-${String(member.legalEntityId)}`);
2320
- return;
2321
- }
2322
- });
2323
- }
2324
- return tasks;
2325
- };
2326
- var mapReceivedTaskType = (taskType) => {
2327
- switch (taskType) {
2328
- case TaskTypes.DECISION_MAKER: return TaskTypes.DECISION_MAKER_OVERVIEW;
2329
- case TaskTypes.TRUST_MEMBER: return TaskTypes.TRUST_MEMBER_OVERVIEW;
2330
- default: return taskType;
2331
- }
2332
- };
2333
- //#endregion
2334
- //#region src/stores/globalStore/globalStore.tsx
2335
- var logger = createLogger();
2336
- /**
2337
- * Initializes the store. Should only be called from {@link StoreProvider}.
2338
- */
2339
- var createGlobalStore = ({ rootLegalEntity: rootLegalEntityIn }) => {
2340
- const rootLegalEntity = signal(rootLegalEntityIn);
2341
- const taskTypes = signal([]);
2342
- const accountHolder = signal();
2343
- const trustMembers = signal([]);
2344
- const unincorporatedPartnershipMembers = signal([]);
2345
- const rootLegalEntityCountry = computed(() => getLegalEntityCountry(rootLegalEntity.value));
2346
- const capabilities = computed(() => getCapabilities(rootLegalEntity.value));
2347
- const capabilityProblems = computed(() => getCapabilityProblems(rootLegalEntity.value, rootLegalEntityCountry.value));
2348
- const legalRepresentative = computed(() => getLegalRepresentative(rootLegalEntity.value));
2349
- const transferInstruments = computed(() => rootLegalEntity.value.transferInstruments ?? []);
2350
- const tasks = computed(() => determineTaskIdentifiers({
2351
- taskTypes: taskTypes.value,
2352
- rootLegalEntity: rootLegalEntity.value,
2353
- accountHolder: accountHolder.value,
2354
- capabilities: capabilities.value,
2355
- capabilityProblems: capabilityProblems.value,
2356
- legalRepresentative: legalRepresentative.value,
2357
- transferInstruments: transferInstruments.value,
2358
- trustMembers: trustMembers.value,
2359
- unincorporatedPartnershipMembers: unincorporatedPartnershipMembers.value
2360
- }));
2361
- return {
2362
- rootLegalEntity,
2363
- taskTypes,
2364
- accountHolder,
2365
- trustMembers,
2366
- unincorporatedPartnershipMembers,
2367
- rootLegalEntityCountry,
2368
- capabilities,
2369
- capabilityProblems,
2370
- legalRepresentative,
2371
- transferInstruments,
2372
- tasks,
2373
- taskStatuses: computed(() => tasks.value.reduce((acc, taskIdentifier) => {
2374
- try {
2375
- acc[taskIdentifier] = calculateTaskStatus({
2376
- taskIdentifier,
2377
- accountHolder: accountHolder.value,
2378
- capabilityProblems: capabilityProblems.value,
2379
- rootLegalEntity: rootLegalEntity.value,
2380
- legalRepresentative: legalRepresentative.value,
2381
- trustMembers: trustMembers.value,
2382
- transferInstruments: transferInstruments.value
2383
- });
2384
- } catch (err) {
2385
- logger.error(`Could not calculate task status for ${taskIdentifier}. `, err);
2386
- }
2387
- return acc;
2388
- }, {})),
2389
- setRootLegalEntity: (newVal) => rootLegalEntity.value = newVal,
2390
- setTaskTypes: (newVal) => taskTypes.value = newVal,
2391
- setAccountHolder: (newVal) => accountHolder.value = newVal,
2392
- setTrustMembers: (newVal) => trustMembers.value = newVal,
2393
- setUnincorporatedPartnershipMembers: (newVal) => unincorporatedPartnershipMembers.value = newVal
2394
- };
2395
- };
2396
- var StoreContext = createContext$1(null);
2397
- function useGlobalStore() {
2398
- const store = useContext$1(StoreContext);
2399
- if (!store) throw new Error("`useGlobalStore()` must be called from within a `StoreContext.Provider`");
2400
- return store;
2401
- }
2402
- var useGetTaskStatus = () => {
2403
- const taskStatusesSignal = useGlobalStore().taskStatuses;
2404
- return useCallback$1((taskType, id) => {
2405
- const taskIdentifier = id ? `${taskType}-${id}` : taskType;
2406
- const status = taskStatusesSignal.value[taskIdentifier]?.status;
2407
- if (status === void 0) {
2408
- logger.warn(`No status for task '${taskIdentifier}', returning UNKNOWN`);
2409
- return TaskStatuses.UNKNOWN;
2410
- }
2411
- return status;
2412
- }, [taskStatusesSignal]);
2413
- };
2414
- //#endregion
2415
- //#region src/stores/globalStore/StoreProvider.tsx
2416
- /**
2417
- * `<StoreProvider>` postpones render of the remaining tree until root legal entity data has been
2418
- * retrieved and the {@link GlobalStore} has been initialized.
2419
- *
2420
- * This provider can (and should) also be used from tests and stories.
2421
- * If you prefer to mock global state, see {@link MockedStoreProvider}.
2422
- */
2423
- var StoreProvider = ({ children }) => {
2424
- const [store, setStore] = useState$1();
2425
- const { data: rootLegalEntity } = useLegalEntity(ROOT_LE);
2426
- useEffect$1(() => {
2427
- if (!rootLegalEntity || store) return;
2428
- setStore(createGlobalStore({ rootLegalEntity }));
2429
- }, [rootLegalEntity, store]);
2430
- if (!store) return /* @__PURE__ */ jsx(Skeleton, {});
2431
- return /* @__PURE__ */ jsx(StoreContext.Provider, {
2432
- value: store,
2433
- children
2434
- });
2435
- };
2436
- //#endregion
2437
- //#region src/core/EmbedShell/EmbedShell.tsx
2438
- /** conditional polyfill for container queries */
2439
- if (CSS.supports("container", "foo / inline-size") === false) import("container-query-polyfill");
2440
- var LanguageSwitcher = ({ locale }) => {
2441
- const { i18n } = useTranslation();
2442
- const { isFeatureEnabled } = useToggleContext();
2443
- useEffect$1(() => {
2444
- if (locale === "ja-JP" && !isFeatureEnabled("EnableJapanLocalization")) return;
2445
- i18n.changeLanguage(locale);
2446
- }, [
2447
- locale,
2448
- i18n,
2449
- isFeatureEnabled
2450
- ]);
2451
- return null;
2452
- };
2453
- /**
2454
- * Bootstraps any component for external usage by consumers
2455
- * Import it in your component and wrap it inside the EmbedShell, eg:
2456
- *
2457
- * @example
2458
- * ```jsx
2459
- * <EmbedShell {...consumerProps}>
2460
- * <MyReadyToGoForm {...consumerProps} />
2461
- * </EmbedShell>
2462
- * ```
2463
- *
2464
- * @param props given by consumer, be it HO, merchant using library or a TaskList component
2465
- * @returns
2466
- */
2467
- var EmbedShell = ({ children, rootLegalEntityId, settings, features, refreshExperiments, baseUrl, getSdkToken, componentName, locale }) => {
2468
- const [isLoading, setIsLoading] = useState$1(true);
2469
- const [hasError, setHasError] = useState$1(false);
2470
- setSdkTokenHandler(getSdkToken);
2471
- useEffect$1(() => {
2472
- refreshSession().then((hasRefreshed) => {
2473
- if (!hasRefreshed) setHasError(true);
2474
- setIsLoading(false);
2475
- });
2476
- }, []);
2477
- if (hasError) return /* @__PURE__ */ jsxs("div", { children: ["Something went wrong, please", /* @__PURE__ */ jsx(Button, {
2478
- onClick: () => location.reload(),
2479
- children: "refresh the page."
2480
- })] });
2481
- if (isLoading) return /* @__PURE__ */ jsx(Loader, {});
2482
- return /* @__PURE__ */ jsx(SettingsProvider, {
2483
- settings,
2484
- children: /* @__PURE__ */ jsx(QueryClientProvider$1, { children: /* @__PURE__ */ jsx(ApiProvider, {
2485
- rootLegalEntityId,
2486
- baseUrl,
2487
- children: /* @__PURE__ */ jsxs(ToggleContextProvider, {
2488
- features,
2489
- refreshExperiments,
2490
- children: [/* @__PURE__ */ jsx(LanguageSwitcher, { locale }), /* @__PURE__ */ jsxs(StoreProvider, { children: [/* @__PURE__ */ jsx("span", {
2491
- id: "sdk-version",
2492
- hidden: true,
2493
- children: "4.23.0"
2494
- }), /* @__PURE__ */ jsx(AnalyticsProvider, {
2495
- componentName,
2496
- locale,
2497
- rootLegalEntityId,
2498
- children: /* @__PURE__ */ jsx(Suspense, {
2499
- fallback: /* @__PURE__ */ jsx(Loader, {}),
2500
- children: /* @__PURE__ */ jsxs(AllowedCountryGate, { children: [/* @__PURE__ */ jsx(DebugListener, {}), /* @__PURE__ */ jsx("div", {
2501
- className: "adyen-kyc-ui-element-container-wrapper",
2502
- children: /* @__PURE__ */ jsx("div", {
2503
- className: "adyen-kyc-ui-element-container",
2504
- children: /* @__PURE__ */ jsx(ToastContextProvider, { children: /* @__PURE__ */ jsx(StateProvider, { children }) })
2505
- })
2506
- })] })
2507
- })
2508
- })] })]
2509
- })
2510
- }) })
2511
- });
2512
- };
2513
- //#endregion
2514
- //#region src/core/environment/normalizeEnvironment.ts
2515
- var normalizeEnvironment = (env) => env.endsWith("/") ? env : `${env}/`;
2516
- //#endregion
2517
- //#region src/core/environment/resolveEnvironment.ts
2518
- var environmentMap = Object.freeze({
2519
- live: "https://onboardingcomponents-live.adyen.com/",
2520
- test: "https://test.adyen.com/"
2521
- });
2522
- var resolveEnvironment = (environment) => environmentMap[environment] ?? normalizeEnvironment(environment);
2523
- //#endregion
2524
- export { hasRepeatedCharacters as $, _rolldown_dynamic_import_helper_default as A, INDIVIDUAL_VALID_CHAR_REGEX as B, useDataset as C, useCapabilities as D, useAllowedCountries as E, useToggles as F, SPECIAL_CHARS as G, NO_ALPHABET_REGEX as H, ToastContextProvider as I, extractFieldName as J, chomeAndBanchiValidator as K, ToastContext as L, ExperimentNames as M, FeatureNames as N, useSetting as O, listToRecord as P, hasMaximumTwoRepeatedCharacters as Q, ADDRESS_VALID_CHAR_REGEX as R, AlertIcon as S, datasetUtilities as T, NO_ALPHABET_UNICODE_REGEX as U, LATIN_SPACE_MARK_PUNCTUATION_NUMBERS_REGEX as V, OTHER_ENTITIES_VALID_CHAR_REGEX as W, getMaxLengthByFieldAndCountry as X, getFormattingRegEx as Y, hasEmptyFields as Z, getOwnUnincorporatedPartnershipProblems as _, doesLegalEntityRequiresLegalRepresentative as a, isUndefinedOrNull as at, isInstantVerifiedAccount as b, isLegalRepresentativeNeeded as c, standardKanjiValidator as ct, hasRejectedCapabilities as d, AnalyticsContext as dt, hasText as et, isEmptyEntity as f, useSettingsContext as ft, DEFAULT_TRUST_MEMBER_REQUIREMENTS as g, isPartOfTrustFromLegalEntity as h, stylesheets as ht, useGlobalStore as i, isInvalidName as it, useToggleContext as j, Header as k, splitTaskIdentifier as l, standardKatakanaValidator as lt, getOwnTrustProblems as m, useLocalStorage as mt, EmbedShell as n, isEmpty as nt, getAgeRangeForLegalRepresentative as o, isValidMinLength as ot, getCountrySpecificTrustTypeOptions as p, useAccountHolder as pt, concatenateFieldNames as q, useGetTaskStatus as r, isISIN as rt, getAgeToday as s, matchesRegex as st, resolveEnvironment as t, isAccountIdentifierObscured as tt, hasAllCapabilitiesResolved as u, StateContext as ut, isPartOfUnincorporatedPartnership as v, datasetIdentifier as w, Alert as x, getObscuredAccountNumber as y, EMOJI_REGEX as z };