@adyen/kyc-components 4.6.0 → 4.7.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (279) hide show
  1. package/dist/{AcceptTermsOfServiceComponent-D61bfNW0.js → AcceptTermsOfServiceComponent-RYwThKmu.js} +17 -16
  2. package/dist/{AccountSetupRejected-zD_ccBqS.js → AccountSetupRejected-DhwwBH0S.js} +2 -2
  3. package/dist/{ActionBar-DkXjAAQ1.js → ActionBar-u-Qc7Y4w.js} +1 -1
  4. package/dist/{Address-Csavi1J2.js → Address-TGZeMCUA.js} +15 -15
  5. package/dist/{Avatar-D-VHGhFL.js → Avatar-LSd9cIJV.js} +1 -1
  6. package/dist/{BusinessFinancingComponent-DG0EWNk6.js → BusinessFinancingComponent-DAeZTKW1.js} +6 -6
  7. package/dist/{BusinessFinancingDropin-5UqhwnOX.js → BusinessFinancingDropin-BVgSTmUm.js} +27 -27
  8. package/dist/BusinessFinancingPage-vKWY2gWN.js +43 -0
  9. package/dist/{BusinessTypeSelectionPage-D4SBQDqJ.js → BusinessTypeSelectionPage-DhpGpgac.js} +9 -9
  10. package/dist/{Checkbox-BKM1WPHa.js → Checkbox-D5-_dw4-.js} +1 -1
  11. package/dist/{Confirm-gEhhWD8f.js → Confirm-BoQbVMKQ.js} +2 -2
  12. package/dist/{ConstitutionalDocument-CCw9a-FU.js → ConstitutionalDocument-CjUSPI6f.js} +37 -26
  13. package/dist/{ContactDetails-CGBkZMAt.js → ContactDetails-Bj1jL-WF.js} +9 -19
  14. package/dist/{ContextGuidance-B4qWRid4.js → ContextGuidance-CoDkF9Kh.js} +1 -1
  15. package/dist/{CountryField-pznzB7Uq.js → CountryField-DPtohqO0.js} +3 -3
  16. package/dist/{CreateIndividualComponent-yT3Rqlai.js → CreateIndividualComponent-DnDxRY8S.js} +6 -6
  17. package/dist/{CreateTransferInstrumentComponent-BbWiq2fM.js → CreateTransferInstrumentComponent-BB1v1vPR.js} +4 -4
  18. package/dist/{Currency-DJCryqqJ.js → Currency-DjKXc6D1.js} +7 -7
  19. package/dist/{CustomerSupport-CJy8LS0W.js → CustomerSupport-nxoB2aXL.js} +9 -9
  20. package/dist/{DebugModal-BMXSCZDm.js → DebugModal-DK9xbFjU.js} +7 -7
  21. package/dist/{DecisionMakerDetails-BAniwLCh.js → DecisionMakerDetails-D-POvfJr.js} +9 -9
  22. package/dist/{DecisionMakerDetailsPage-CloS-QIg.js → DecisionMakerDetailsPage-CABFACYm.js} +8 -8
  23. package/dist/{DecisionMakers-DrnBmtOE.js → DecisionMakers-B4gmdJ-s.js} +20 -20
  24. package/dist/{Dropzone-DCTHmJn2.js → Dropzone-IwRNw22i.js} +3 -3
  25. package/dist/{EmbeddedStatus-sF6FG18F.js → EmbeddedStatus-BU2hma9l.js} +2 -2
  26. package/dist/{EndStateLayout-D23FWrbD.js → EndStateLayout-DURCt96r.js} +1 -1
  27. package/dist/{EntityAssociation-eiVdh677.js → EntityAssociation-TBvPBEGa.js} +4 -4
  28. package/dist/{EntityGuidanceStatus-Chbgo62U.js → EntityGuidanceStatus-CFRY8Yia.js} +4 -4
  29. package/dist/{ErrorPanel-B8fHWJ7W.js → ErrorPanel-ALBlWg3_.js} +2 -2
  30. package/dist/{Field-BguffV12.js → Field--T3FQepj.js} +1 -1
  31. package/dist/{FormNavigation-D5KYMYO0.js → FormNavigation-nE2uj2oQ.js} +3 -3
  32. package/dist/{Individual.rules-2HzSnI41.js → Individual.rules-DotRDPTM.js} +6 -6
  33. package/dist/{IndividualDropin-CybsCeUw.js → IndividualDropin-eiRXQvS_.js} +164 -119
  34. package/dist/{InputDate-BjWLJfR1.js → InputDate-BAzF-upe.js} +1 -1
  35. package/dist/{InputText-C6-NIYzH.js → InputText-CywP4Ojh.js} +2 -2
  36. package/dist/{Introduction-UMqxmd6N.js → Introduction-CKoQlTAr.js} +3 -3
  37. package/dist/{InvitedDecisionMakerComponent-XyPQK6mU.js → InvitedDecisionMakerComponent-CV8OExOI.js} +18 -13
  38. package/dist/{JpAddress-C8wbZfE0.js → JpAddress-BIgqDfQ0.js} +10 -10
  39. package/dist/{LandingLayout-Dr28QxoC.js → LandingLayout-DEgZw1-N.js} +5 -3
  40. package/dist/{LegalCompanyNameField-DHyMLbZc.js → LegalCompanyNameField-CblBotGC.js} +5 -5
  41. package/dist/{LegalRepresentativeDetailsPage-CusLAG25.js → LegalRepresentativeDetailsPage-BYgKGZL1.js} +4 -4
  42. package/dist/{Link-C1szPOri.js → Link-BVdY7Jkl.js} +1 -1
  43. package/dist/{ListItem-nK0xrija.js → ListItem-CNuX4D7n.js} +2 -2
  44. package/dist/{LoaderWrapper-BEzoHtmn.js → LoaderWrapper-CU0bf3jD.js} +1 -1
  45. package/dist/ManageIndividualComponent-BYBvuHfj.js +46 -0
  46. package/dist/{ManageTermsOfServiceComponent-HijCyHGy.js → ManageTermsOfServiceComponent-CfN53LIT.js} +3 -3
  47. package/dist/{ManageTransferInstrumentComponent-C1f0GAQr.js → ManageTransferInstrumentComponent-B7gKGWHz.js} +10 -10
  48. package/dist/{MaskedInput-Ckb7nz68.js → MaskedInput-BNceotwn.js} +4 -4
  49. package/dist/{MaybeModal-DolShkyo.js → MaybeModal-hVrKDPDU.js} +2 -2
  50. package/dist/{Modal-EL9MXgbw.js → Modal-C8kGCLbp.js} +3 -3
  51. package/dist/{Name-BSak9KXo.js → Name-GILpP1SS.js} +4 -4
  52. package/dist/{NewSummary-Buy5WzoM.js → NewSummary-C5UR_Xj1.js} +2 -2
  53. package/dist/{OnboardingDropinComponent-BRlY6KUs.js → OnboardingDropinComponent-CK5KIhNx.js} +74 -74
  54. package/dist/{PayoutDetailsDropin-nXxBue_s.js → PayoutDetailsDropin-CLdEm9BA.js} +465 -226
  55. package/dist/PayoutDetailsPage-s-_gJFC2.js +914 -0
  56. package/dist/{RadioGroup-BTCmUbA0.js → RadioGroup-PEWX2KAj.js} +1 -1
  57. package/dist/{Review-CYOIXbFm.js → Review-CFnIOiZT.js} +6 -6
  58. package/dist/{RootBusinessDetailsPage-BZ1QnczY.js → RootBusinessDetailsPage-mnrfIy0-.js} +4 -4
  59. package/dist/{RootBusinessLinesPage-CcUJQEkg.js → RootBusinessLinesPage-BH3Lns3X.js} +28 -35
  60. package/dist/{RootIndividualDetailsPage-C2GvNs12.js → RootIndividualDetailsPage-BzgHIe3h.js} +7 -7
  61. package/dist/{Select-BgkHFapB.js → Select-C4C8R-Ci.js} +4 -4
  62. package/dist/{SignPCIComponent-CpAtbAKc.js → SignPCIComponent-B7rKUpjS.js} +11 -11
  63. package/dist/{SingpassSelection-DxXIwmVH.js → SingpassSelection-WxIUEYNK.js} +4 -4
  64. package/dist/{SoleProprietorshipPage-C8ENenc3.js → SoleProprietorshipPage-C_fewFI3.js} +3 -3
  65. package/dist/{SourceOfFundsPage-D3dzjyGw.js → SourceOfFundsPage-UeXmtQEJ.js} +33 -33
  66. package/dist/{StepProgressIndicator-ZWEENbMM.js → StepProgressIndicator-DiB-t9hK.js} +1 -1
  67. package/dist/{StoreProvider-DKCxUPee.js → StoreProvider-C4og8Y8I.js} +111 -91
  68. package/dist/{Summary-BMM1xjqy.js → Summary-DkZ_an9u.js} +7 -20
  69. package/dist/{TaxInformationField-DkZhHedg.js → TaxInformationField-BOZj8YLo.js} +27 -23
  70. package/dist/{TaxReportingDropin-gAAULI4S.js → TaxReportingDropin-9HGGrPyM.js} +14 -14
  71. package/dist/{TextArea-u_xiMf1c.js → TextArea-Bu9ppy0I.js} +2 -2
  72. package/dist/{TileGroup-r_3ClexW.js → TileGroup-BRzhDdL0.js} +2 -2
  73. package/dist/{TrustDetailsPage-B-5f_JZn.js → TrustDetailsPage-C3gYEzPT.js} +32 -38
  74. package/dist/{TrustMemberCompanyPage-CyjbjBSw.js → TrustMemberCompanyPage-BK54Of_F.js} +5 -5
  75. package/dist/{TrustMemberIndividualPage-Cfrri13a.js → TrustMemberIndividualPage-fVZrXJjA.js} +5 -5
  76. package/dist/{TrustMemberRoleAndTypePage-D4DQm-6B.js → TrustMemberRoleAndTypePage-BVHOuXP3.js} +22 -22
  77. package/dist/{TrustMembersOverview-DdCvtsr1.js → TrustMembersOverview-Ab-dwNTz.js} +11 -11
  78. package/dist/{UnincorporatedPartnershipIndividualPage-BF6xWHcg.js → UnincorporatedPartnershipIndividualPage-C32LEyHG.js} +4 -4
  79. package/dist/{UnincorporatedPartnershipMemberCompanyPage-DX_M1Ynr.js → UnincorporatedPartnershipMemberCompanyPage-22Bl_EUP.js} +4 -4
  80. package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-7gGtWzqV.js → UnincorporatedPartnershipMemberRoleAndTypePage-BjywaZQe.js} +10 -10
  81. package/dist/{UnincorporatedPartnershipMembersOverview-qYm3eukg.js → UnincorporatedPartnershipMembersOverview-RY7m4iC5.js} +7 -7
  82. package/dist/{VerificationErrorAlert-CwjcCtq7.js → VerificationErrorAlert-CCJ0vNsY.js} +2 -2
  83. package/dist/{ViewVerificationStatusComponent-Z8OcoBMo.js → ViewVerificationStatusComponent-Bg1I1q10.js} +2 -2
  84. package/dist/adyen-business-financing.js +2 -2
  85. package/dist/adyen-individual-configuration.js +2 -2
  86. package/dist/adyen-individual-status.js +2 -2
  87. package/dist/adyen-invited-decision-maker.js +2 -2
  88. package/dist/adyen-kyc-components.js +15 -15
  89. package/dist/adyen-onboarding.js +2 -2
  90. package/dist/adyen-terms-of-service-management.js +2 -2
  91. package/dist/adyen-terms-of-service-status.js +2 -2
  92. package/dist/adyen-transfer-instrument-configuration.js +2 -2
  93. package/dist/adyen-transfer-instrument-management.js +2 -2
  94. package/dist/adyen-verification-status.js +2 -2
  95. package/dist/{bafinUtils-Dsw4DufE.js → bafinUtils-DkCSO6ft.js} +1 -1
  96. package/dist/{bg-BG-DMNRRZZE.js → bg-BG-89Mw-9Lv.js} +7 -7
  97. package/dist/{bg-BG-Cj3_UGTi.js → bg-BG-C9zrgb_c.js} +7 -1
  98. package/dist/{bg-BG-C6dSR1jk.js → bg-BG-dmpv4Zom.js} +2 -2
  99. package/dist/{commonValidators-dPJjXT_8.js → commonValidators-Dd4wegC9.js} +1 -1
  100. package/dist/{cs-CZ-B6atm9_Q.js → cs-CZ-6rOIfRJu.js} +2 -2
  101. package/dist/{cs-CZ-DxfB5dcV.js → cs-CZ-B-zm6HVH.js} +7 -1
  102. package/dist/{cs-CZ-DXSMRqPu.js → cs-CZ-CTxXvHtH.js} +7 -7
  103. package/dist/{da-DK-BfsYpvel.js → da-DK-CGhsIGZt.js} +7 -1
  104. package/dist/{da-DK-Cv6XUSoW.js → da-DK-C_GqHCay.js} +2 -2
  105. package/dist/{da-DK-CMVthpSr.js → da-DK-D_TOcmOO.js} +7 -7
  106. package/dist/{de-DE-BplDsJEb.js → de-DE-BmWBo3gX.js} +2 -2
  107. package/dist/{de-DE-B5TOuf7l.js → de-DE-DYzAiXHM.js} +7 -7
  108. package/dist/{de-DE-CEsDXBn-.js → de-DE-K9FyOJiI.js} +7 -1
  109. package/dist/{dropinUtils-14DNwEiI.js → dropinUtils-vsDEK6cs.js} +17 -6
  110. package/dist/{el-GR-BNNlN4l2.js → el-GR-DItzpoar.js} +7 -7
  111. package/dist/{el-GR-dRK7xHn2.js → el-GR-Fo7-xCrc.js} +2 -2
  112. package/dist/{el-GR-CM3bIzr7.js → el-GR-L-39cQfz.js} +7 -1
  113. package/dist/en-US-qlQTJNiL.js +13 -0
  114. package/dist/{es-ES-DRsix_Xn.js → es-ES-BkqlH093.js} +2 -2
  115. package/dist/{es-ES-Wcpc6fm1.js → es-ES-BmH6eADf.js} +7 -7
  116. package/dist/{es-ES-BWFP5itn.js → es-ES-TUyeIp6F.js} +7 -1
  117. package/dist/{et-EE-CcXrAAc7.js → et-EE-Cw_VydGb.js} +7 -1
  118. package/dist/{et-EE-DNC4hcxm.js → et-EE-DSZa_33d.js} +7 -7
  119. package/dist/{et-EE-BXiYapXy.js → et-EE-H8yxvhQj.js} +2 -2
  120. package/dist/{fi-FI-BftTiz0c.js → fi-FI-BfwJVwi9.js} +2 -2
  121. package/dist/{fi-FI-BJLU1JHw.js → fi-FI-DJ8BbVPT.js} +7 -7
  122. package/dist/{fi-FI-DenK0WPz.js → fi-FI-tgvQX_Iq.js} +7 -1
  123. package/dist/{formUtils-DkgXgXMP.js → formUtils-DFuc8i5Q.js} +3 -3
  124. package/dist/{fr-FR-C6jxjXAI.js → fr-FR-CzjsW73Q.js} +2 -2
  125. package/dist/{fr-FR-DodNoPid.js → fr-FR-D533_MOG.js} +7 -7
  126. package/dist/{fr-FR-BmTswZU5.js → fr-FR-ynC19lSF.js} +7 -1
  127. package/dist/{getName-Z2gJognf.js → getName-D3Sba-PI.js} +1 -1
  128. package/dist/{getProblemsForEntity-DAFLyYyP.js → getProblemsForEntity-Db-ejW4z.js} +1 -1
  129. package/dist/{getTrustedFields-Yhy_d5h0.js → getTrustedFields-DUXTMWcg.js} +1 -1
  130. package/dist/{hr-HR-SDrDZRLV.js → hr-HR--5syrowD.js} +7 -1
  131. package/dist/{hr-HR-C0NLgF1r.js → hr-HR-CIxdonpk.js} +7 -7
  132. package/dist/{hr-HR-B_TEU3r4.js → hr-HR-ZrpQrsik.js} +2 -2
  133. package/dist/{hu-HU-C3ZiFh1F.js → hu-HU--6ZxXlbV.js} +7 -7
  134. package/dist/{hu-HU-DSVf2zbX.js → hu-HU-BFiGk_QT.js} +7 -1
  135. package/dist/{hu-HU-CX83V9tu.js → hu-HU-Ds3go4h4.js} +2 -2
  136. package/dist/{isEmpty-boSQX897.js → isEmpty-DFqK5kY2.js} +2 -2
  137. package/dist/{it-IT-CZ4aDoVQ.js → it-IT-B5cf2VTN.js} +7 -7
  138. package/dist/{it-IT-DJe5OflH.js → it-IT-C0Zv5ms9.js} +7 -1
  139. package/dist/{it-IT-CXlaZNIj.js → it-IT-Dx15tkIe.js} +2 -2
  140. package/dist/{ja-JP-GGV_-V6p.js → ja-JP--u211vje.js} +7 -1
  141. package/dist/{ja-JP-BpeNsNhn.js → ja-JP-DY4CJlUf.js} +7 -7
  142. package/dist/{ja-JP-A6ArIIZ8.js → ja-JP-Qu7oEIEy.js} +2 -2
  143. package/dist/{japanSupportUtils-DC6ssQNc.js → japanSupportUtils-DqXOWm97.js} +1 -1
  144. package/dist/{localizeDateString-6qoF3x9R.js → localizeDateString-D8JgUqw2.js} +1 -1
  145. package/dist/{lt-LT-ww192lYg.js → lt-LT-BebOeKIA.js} +2 -2
  146. package/dist/{lt-LT-C8n1GZoU.js → lt-LT-CkjEvGSp.js} +7 -7
  147. package/dist/{lt-LT-C9nsCODy.js → lt-LT-D2Hrhr7v.js} +7 -1
  148. package/dist/{lv-LV-BdPdaVGy.js → lv-LV-BdZK9nQA.js} +7 -7
  149. package/dist/{lv-LV-CpHy-ZoF.js → lv-LV-CYcrO-6d.js} +2 -2
  150. package/dist/{lv-LV-Bue450PR.js → lv-LV-D04q9r-y.js} +7 -1
  151. package/dist/{mapExistingFile-BMJL0nyv.js → mapExistingFile-BIYg1E5G.js} +2 -2
  152. package/dist/{mapJpAddressSchemaToAddressLocalizations-B-YIRvOK.js → mapJpAddressSchemaToAddressLocalizations-D5xnQLSI.js} +2 -2
  153. package/dist/{mapLegalEntityToIndividualSchema-CS9_Bo3k.js → mapLegalEntityToIndividualSchema-By5v9v9G.js} +4 -4
  154. package/dist/{mapTransferInstrumentToPayoutAccount-DnaL9hYo.js → mapTransferInstrumentToPayoutAccount-BM24JYqT.js} +2 -2
  155. package/dist/{nl-NL-4Mv4rnYy.js → nl-NL-CJ7MoBj2.js} +7 -1
  156. package/dist/{nl-NL-BwWFlBOs.js → nl-NL-FbJ2sHba.js} +2 -2
  157. package/dist/{nl-NL-B2Uku0lw.js → nl-NL-YcL7Gufl.js} +7 -7
  158. package/dist/{no-NO-JWsSd7iY.js → no-NO-B5BjEy8n.js} +2 -2
  159. package/dist/{no-NO-ByCZ3mhz.js → no-NO-C20s6CoP.js} +7 -1
  160. package/dist/{no-NO-DjOcJWnC.js → no-NO-KkYB-VQD.js} +7 -7
  161. package/dist/{omitObscuredFieldsIfUnchanged-Bbes2BVX.js → omitObscuredFieldsIfUnchanged-CyJfNYkP.js} +2 -2
  162. package/dist/{patternValidators-B7j6YIOy.js → patternValidators-DRSnA1z7.js} +2 -2
  163. package/dist/{pl-PL-DCi5Lf4k.js → pl-PL-C19Btj2D.js} +7 -1
  164. package/dist/{pl-PL-Bmaq3IC3.js → pl-PL-CPdKf-J0.js} +7 -7
  165. package/dist/{pl-PL-CLmmSNgn.js → pl-PL-DuM6hbqZ.js} +2 -2
  166. package/dist/{process-field-configurations-BxJae0v4.js → process-field-configurations-Cl2nqpBp.js} +2 -2
  167. package/dist/{pt-BR-BJOww8U1.js → pt-BR-BKKQIUJP.js} +2 -2
  168. package/dist/{pt-BR-BKdT0Bpl.js → pt-BR-ERWeus3c.js} +7 -7
  169. package/dist/{pt-BR-DRz5cG4o.js → pt-BR-zOjPTIPu.js} +7 -1
  170. package/dist/{pt-PT-CL9VzmZE.js → pt-PT-CC7zlk3R.js} +2 -2
  171. package/dist/{pt-PT-C2li07N1.js → pt-PT-DUTGt5L5.js} +7 -7
  172. package/dist/{pt-PT-ChRbnn0k.js → pt-PT-t5M8xwTU.js} +7 -1
  173. package/dist/{resolveEnvironment-_hyPvH0e.js → resolveEnvironment-BIF7mwM5.js} +3 -3
  174. package/dist/{ro-RO-iPjOeKwM.js → ro-RO-BnFjok5O.js} +7 -7
  175. package/dist/{ro-RO-Cu1T3z6k.js → ro-RO-CuabgXj1.js} +2 -2
  176. package/dist/{ro-RO-Dgie5z3m.js → ro-RO-DK9gVwS9.js} +7 -1
  177. package/dist/{roleMetadata-C9fdKfQp.js → roleMetadata-BAURfCmh.js} +3 -3
  178. package/dist/{sk-SK-bMDoNP19.js → sk-SK-2J6iKfmK.js} +7 -1
  179. package/dist/{sk-SK-3_SoEn6P.js → sk-SK-CLPd85I3.js} +7 -7
  180. package/dist/{sk-SK-CEjJ-qZG.js → sk-SK-DM1yY8DA.js} +2 -2
  181. package/dist/{sl-SI-BfO3xEJx.js → sl-SI--pDTatHh.js} +2 -2
  182. package/dist/{sl-SI-DKSu25rO.js → sl-SI-D82ccY62.js} +7 -1
  183. package/dist/{sl-SI-DbfswGh0.js → sl-SI-T9_Ty-NS.js} +7 -7
  184. package/dist/style.css +9 -21
  185. package/dist/styles-CLV89_hH.js +9 -21
  186. package/dist/{sv-SE-Blw4s8bC.js → sv-SE-3-h2VlYi.js} +7 -7
  187. package/dist/{sv-SE-CMLKzwtj.js → sv-SE-CDxyyNV0.js} +2 -2
  188. package/dist/{sv-SE-Co7Nkd06.js → sv-SE-CrBkos0z.js} +7 -1
  189. package/dist/types/api/companySearch/useCompanySearch.d.ts +289 -0
  190. package/dist/types/api/companySelection/useCompanySelection.d.ts +2 -4
  191. package/dist/types/api/configurations/useScenarios.d.ts +1 -1
  192. package/dist/types/api/idVerificationProviders/useExtractDocumentInformation.d.ts +4 -4
  193. package/dist/types/api/queryKeys.d.ts +1 -2
  194. package/dist/types/api/tinVerification/useVerifyTin.d.ts +245 -1
  195. package/dist/types/api/uiAnalytics/uiAnalytics.types.d.ts +6 -1
  196. package/dist/types/components/BankAccount/forms/BankVerification/store.d.ts +1 -0
  197. package/dist/types/components/BankAccount/forms/PayoutCountryDetails/PayoutCountryDetails.d.ts +3 -0
  198. package/dist/types/components/BankAccount/forms/PayoutDetails/PayoutDetailsMultiform.d.ts +27 -0
  199. package/dist/types/components/BankAccount/forms/PayoutDetails/rules.d.ts +2 -2
  200. package/dist/types/components/BankAccount/mapping/payoutKeyMappings.d.ts +25 -25
  201. package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/PayoutDetailsDropin.d.ts +0 -1
  202. package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/PayoutDetailsDropinMultiForm.d.ts +2 -0
  203. package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/utils.d.ts +7 -0
  204. package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/validate.d.ts +23 -0
  205. package/dist/types/components/Business/forms/BusinessSelection/BusinessInformationCard/BusinessInformationCard.d.ts +3 -4
  206. package/dist/types/components/Business/forms/rules.d.ts +6 -6
  207. package/dist/types/components/Business/mapping/businessDetails/businessBankAccountTaxIdUtils.d.ts +10 -0
  208. package/dist/types/components/Business/tasks/BusinessDetailsDropin/businessDetailsStore.d.ts +0 -1
  209. package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +1 -4
  210. package/dist/types/components/Business/tasks/BusinessDetailsDropin/utils.d.ts +2 -3
  211. package/dist/types/components/BusinessLines/fields/SalesChannels/SalesChannels.d.ts +1 -1
  212. package/dist/types/components/BusinessLines/fields/SalesChannels/types.d.ts +1 -1
  213. package/dist/types/components/Contract/tasks/ServiceAgreementDropin/types.d.ts +2 -1
  214. package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +499 -487
  215. package/dist/types/components/Individual/forms/Individual.rules.d.ts +2 -2
  216. package/dist/types/components/Individual/forms/InviteDetails/utils.d.ts +2 -0
  217. package/dist/types/components/Individual/forms/InviteDetails/validate.d.ts +2 -1
  218. package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/fieldConfig.d.ts +1 -2
  219. package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/registrationNumberTypes.d.ts +5 -0
  220. package/dist/types/components/Shared/fields/DBANameField/DBANameField.d.ts +1 -1
  221. package/dist/types/components/Shared/fields/DBANameField/types.d.ts +1 -1
  222. package/dist/types/components/Shared/fields/DateOfIncorporationField/DateOfIncorporationField.d.ts +1 -1
  223. package/dist/types/components/Shared/fields/DateOfIncorporationField/types.d.ts +1 -1
  224. package/dist/types/components/Shared/fields/IndustryCodeField/IndustryCodeField.d.ts +1 -1
  225. package/dist/types/components/Shared/fields/IndustryCodeField/types.d.ts +1 -1
  226. package/dist/types/components/Shared/fields/Name/validate.d.ts +2 -1
  227. package/dist/types/components/Shared/fields/PhoneField/PhoneField.d.ts +1 -1
  228. package/dist/types/components/Shared/fields/PhoneField/types.d.ts +1 -1
  229. package/dist/types/components/Shared/fields/StockExchangeMICField/StockExchangeMICField.d.ts +1 -1
  230. package/dist/types/components/Shared/fields/StockExchangeMICField/types.d.ts +1 -1
  231. package/dist/types/components/Shared/fields/StockISINField/StockISINField.d.ts +1 -1
  232. package/dist/types/components/Shared/fields/StockISINField/types.d.ts +1 -1
  233. package/dist/types/components/Shared/fields/StockTickerSymbol/StockTickerSymbolField.d.ts +1 -1
  234. package/dist/types/components/Shared/fields/StockTickerSymbol/types.d.ts +1 -1
  235. package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
  236. package/dist/types/components/Shared/forms/Address/validate.d.ts +1 -1
  237. package/dist/types/components/Trust/forms/Trust/rules.d.ts +2 -2
  238. package/dist/types/context/ToggleContext/types.d.ts +51 -56
  239. package/dist/types/core/models/api/branchAllocation.d.ts +5 -0
  240. package/dist/types/core/models/api/get-scenarios.d.ts +2 -0
  241. package/dist/types/core/models/api/organization.d.ts +2 -0
  242. package/dist/types/core/user-events.d.ts +1 -1
  243. package/dist/types/hooks/useForm/types.d.ts +1 -0
  244. package/dist/types/hooks/usePageLandedEvent.d.ts +3 -3
  245. package/dist/types/utils/entityStatusUtil.d.ts +1 -1
  246. package/dist/types/utils/validatorUtils.d.ts +1 -0
  247. package/dist/{types-CTwBMnPB.js → types-C7ANBXKc.js} +56 -61
  248. package/dist/{types-DO_d6cVD.js → types-DsA42AXS.js} +1 -1
  249. package/dist/{types-DR1UyHuL.js → types-DxlKs1U5.js} +1 -1
  250. package/dist/{types-BxcVVfxO.js → types-VsWq4EjV.js} +1 -1
  251. package/dist/{unincorporated-partnership-DYTYq9It.js → unincorporated-partnership-uA1X2l53.js} +1 -1
  252. package/dist/{useAssociatedLegalEntity-CuVMzeS0.js → useAssociatedLegalEntity-3LNpnrN6.js} +1 -1
  253. package/dist/{useBusinessDetailsData-BDvJiv0U.js → useBusinessDetailsData-dZbZQSmY.js} +330 -314
  254. package/dist/{useCreateLegalEntity-BqiM6Z4D.js → useCreateLegalEntity-DDkkYr4O.js} +1 -1
  255. package/dist/{useForm-C1botkQ9.js → useForm-Y4-kimHb.js} +3 -3
  256. package/dist/{useFormContext-DLkJgmS9.js → useFormContext-TKoF8IdB.js} +7 -7
  257. package/dist/{useGlobalData-BydN0B8P.js → useGlobalData-DZvXyS0l.js} +9 -9
  258. package/dist/{useMultiForm-ZSjb-MNl.js → useMultiForm-ieaYM7hW.js} +4 -4
  259. package/dist/{useOnboardingStatus-CpkyRoX9.js → useOnboardingStatus-DhxCTR8e.js} +1 -1
  260. package/dist/{useScenarios-DNnpIr7b.js → useScenarios-CwSfXmoW.js} +1 -1
  261. package/dist/{useTermsOfServiceStatus-BH74ie3Z.js → useTermsOfServiceStatus-DPGw4QdQ.js} +1 -1
  262. package/dist/{useToastContext-CN6SzXSt.js → useToastContext-BdsMS3mt.js} +1 -1
  263. package/dist/{useUnincorporatedPartnershipMembers-z5aGwc0I.js → useUnincorporatedPartnershipMembers-D5ndPAbv.js} +4 -4
  264. package/dist/{useUpdateBusinessLines-D5WMs9_g.js → useUpdateBusinessLines-Dwk23sZB.js} +5 -7
  265. package/dist/{useUpdateLegalEntity-8Sn5DTcn.js → useUpdateLegalEntity-5lOidXXX.js} +2 -2
  266. package/dist/{utils-CL8Y2cxl.js → utils-BwwVW2aU.js} +6 -6
  267. package/dist/{utils-CKmUVF30.js → utils-C5ekxdx1.js} +1 -1
  268. package/dist/{utils-Cbs8k6wy.js → utils-C_Fyu6Kr.js} +1 -1
  269. package/dist/{utils-TMcBiPzX.js → utils-CdhuiXMy.js} +1 -1
  270. package/dist/{utils-Bx0ZXntJ.js → utils-Dny5dbku.js} +2 -2
  271. package/dist/{validate-Dy8GuvEF.js → validate-CFI052fe.js} +3 -3
  272. package/dist/{validate-Bz4kAnZq.js → validate-bZBB2yOu.js} +2 -2
  273. package/dist/{validationError-Cl6ZvFO8.js → validationError-XxBa8ECY.js} +2 -2
  274. package/package.json +10 -10
  275. package/dist/BusinessFinancingPage-CMoJlPym.js +0 -43
  276. package/dist/ManageIndividualComponent-DJE85k3F.js +0 -46
  277. package/dist/PayoutDetailsPage-DHEVWO5C.js +0 -55
  278. package/dist/en-US-CJDkXFZ6.js +0 -13
  279. package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/formatAccountVerificationSummary.d.ts +0 -7
@@ -2,70 +2,70 @@
2
2
  {
3
3
  try {
4
4
  let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
5
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "95957168-b6e8-4925-a30c-f48238468cce", e._sentryDebugIdIdentifier = "sentry-dbid-95957168-b6e8-4925-a30c-f48238468cce");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "c4f32db7-1380-4547-9b39-670d962ce933", e._sentryDebugIdIdentifier = "sentry-dbid-c4f32db7-1380-4547-9b39-670d962ce933");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
10
  import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
11
- import { useMutation, useQuery, skipToken, useQueryClient } from "@tanstack/preact-query";
11
+ import { signal, useSignal } from "@preact/signals";
12
+ import { useMutation, queryOptions, useQuery, skipToken, useQueryClient } from "@tanstack/preact-query";
12
13
  import { useState, useMemo, useEffect, useRef, useCallback } from "preact/hooks";
13
- import { D as Divider, I as INDUSTRY_CODE_FIELD, i as industryCodeFieldMetadata, u as useIndustryCodes, a as IndustryCodeField, b as useCreateBusinessLine, c as useUpdateBusinessLine } from "./useUpdateBusinessLines-D5WMs9_g.js";
14
- import { u as useScenarios } from "./useScenarios-DNnpIr7b.js";
15
- import { u as useCreateLegalEntity } from "./useCreateLegalEntity-BqiM6Z4D.js";
16
- import { u as useToastContext, a as useInvalidateRootLegalEntity } from "./useToastContext-CN6SzXSt.js";
17
- import { u as useUpdateLegalEntity } from "./useUpdateLegalEntity-8Sn5DTcn.js";
18
- import { u as useTranslation, bF as isISIN, V as Button, H as useToggleContext, P as useLegalEntity, R as ROOT_LE, am as datasetUtilities, aB as Header, N as Typography, U as Loader, a9 as CountryCodes, m as useSettingsContext, aN as useAllowedCountries, b as useApiContext, j as httpPost, O as StackLayout, C as Alert, ao as entriesOf, x as useAnalyticsContext, ae as createLogger, t as useAccountHolder, w as TaskTypes, L as LegalEntityTypes, ax as isEmpty, i as isUndefinedOrNull, bG as businessDetailsComponentsKeyMapping, bH as solePropBusinessDetailsKeyMapping, ah as objectsDeepEqual, aS as keysOf, bI as solePropBusinessDetailsApiKeyMapping, bk as businessDetailsApiKeyMapping, at as Scenarios, aZ as filterOutUnwantedAssociationsIfRootLE, aX as drop, ac as getOwnEntityAssociations, b2 as doArraysMatch, bJ as solePropBusinessDetailsDocumentMapping, bK as businessDetailsDocumentMapping } from "./StoreProvider-DKCxUPee.js";
19
- import { u as useFormContext, F as FormContextProvider, a as FormFlow } from "./useFormContext-DLkJgmS9.js";
20
- import { C as CompanyTypesValues } from "./bafinUtils-Dsw4DufE.js";
21
- import { c as composePerScenarioFormConfigurations, g as getPropsFromConfigurations } from "./process-field-configurations-BxJae0v4.js";
22
- import { a as addValidityToForms, u as useFormComposer } from "./dropinUtils-14DNwEiI.js";
23
- import { u as useMultiForm } from "./useMultiForm-ZSjb-MNl.js";
24
- import { u as uppercase, m as mapExistingFile, g as getPageName, b as useScenarioConfiguration } from "./mapExistingFile-BMJL0nyv.js";
25
- import { C as Confirm } from "./Confirm-gEhhWD8f.js";
26
- import { E as ErrorPanel } from "./ErrorPanel-B8fHWJ7W.js";
27
- import { N as NewSummary } from "./NewSummary-Buy5WzoM.js";
28
- import { u as usePageLandedEvent, s as summaryStep, a as summaryStyles } from "./Summary-BMM1xjqy.js";
29
- import { a as getDocument, j as getDocuments, c as createDocumentRequest, k as mergeProofOfOwnershipAttachments, b as getFileExtention, d as documentApiUtils } from "./validate-Dy8GuvEF.js";
30
- import { m as mergeFieldMetadataIntoProps, c as createFormUtils } from "./formUtils-DkgXgXMP.js";
31
- import { c as TAX_INFORMATION_FIELD, r as requestingBanking, d as requestingIssuing, t as taxInformationDefaultFieldMetadata, a as taxInformationDefaultFieldConfig, T as TaxInformationField, C as COUNTRY_OF_GOVERNING_LAW_POSSIBLE, e as getTaxInformationPlaceholderText, S as StateCodesUS, i as isUsingCompanySearch, M as MemoizedDocumentUpload, f as countryToTaxInfoTypeMap, h as isRegistrationNumberAbsentStateV4Scenario, j as getTaxIdNumberOptions, k as COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT, l as rules, g as getFieldsWithExistingData } from "./TaxInformationField-DkZhHedg.js";
32
- import { D as DBA_NAME_FIELD, B as BUSINESS_REGISTRATION_NUMBER_FIELD, V as VAT_NUMBER_FIELD, r as registrationAddressFields, o as operationalAddressIsSameIds, v as vatAbsenceReasonMetadata, d as defaultFieldMetadata, a as defaultFieldConfig, b as registrationNumberDefaultFieldMetadata, c as registrationNumberDefaultFieldConfig, e as doingBusinessAsFieldMetadata, f as doingBusinessAsAbsentFieldMetadata, g as DBANameField, h as BusinessRegistrationNumberField, i as getRegistrationNumberHelperText, j as VatNumberField, M as MemoizedConstitutionalDocument, k as getDefaultRegistrationNumberType, l as getDefaultVatNumberType, m as inferCompanyRegistrationNumberType, n as getCompanyRegistrationNumberOptions, p as exemptFromRegistrationNumberDefaultFieldMetadata } from "./ConstitutionalDocument-CCw9a-FU.js";
33
- import { K as KEYBOARD_KEYS, M as Modal, a as ModalContent } from "./Modal-EL9MXgbw.js";
34
- import { g as getAddressSchemaForCountry, C as COUNTRIES_WITH_STATES_DATASET, a as getAddressSchemaLabelsByCountry, f as mapAddressLabelsNewSummary, c as getKeyForField } from "./utils-CKmUVF30.js";
14
+ import { D as Divider, I as INDUSTRY_CODE_FIELD, i as industryCodeFieldMetadata, u as useIndustryCodes, a as IndustryCodeField, b as useCreateBusinessLine, c as useUpdateBusinessLine } from "./useUpdateBusinessLines-Dwk23sZB.js";
15
+ import { u as useScenarios } from "./useScenarios-CwSfXmoW.js";
16
+ import { u as useCreateLegalEntity } from "./useCreateLegalEntity-DDkkYr4O.js";
17
+ import { u as useToastContext, a as useInvalidateRootLegalEntity } from "./useToastContext-BdsMS3mt.js";
18
+ import { u as useUpdateLegalEntity } from "./useUpdateLegalEntity-5lOidXXX.js";
19
+ import { u as useTranslation, bG as isISIN, V as Button, H as useToggleContext, P as useLegalEntity, R as ROOT_LE, am as datasetUtilities, aB as Header, N as Typography, U as Loader, a9 as CountryCodes, m as useSettingsContext, aO as useAllowedCountries, b as useApiContext, j as httpPost, x as useAnalyticsContext, O as StackLayout, C as Alert, ao as entriesOf, ae as createLogger, t as useAccountHolder, w as TaskTypes, L as LegalEntityTypes, ax as isEmpty, i as isUndefinedOrNull, bH as businessDetailsComponentsKeyMapping, bI as solePropBusinessDetailsKeyMapping, ah as objectsDeepEqual, aT as keysOf, bJ as solePropBusinessDetailsApiKeyMapping, bl as businessDetailsApiKeyMapping, at as Scenarios, a$ as filterOutUnwantedAssociationsIfRootLE, aY as drop, ac as getOwnEntityAssociations, b3 as doArraysMatch, bK as solePropBusinessDetailsDocumentMapping, bL as businessDetailsDocumentMapping } from "./StoreProvider-C4og8Y8I.js";
20
+ import { u as useFormContext, F as FormContextProvider, a as FormFlow } from "./useFormContext-TKoF8IdB.js";
21
+ import { C as CompanyTypesValues } from "./bafinUtils-DkCSO6ft.js";
22
+ import { c as composePerScenarioFormConfigurations, g as getPropsFromConfigurations } from "./process-field-configurations-Cl2nqpBp.js";
23
+ import { a as addValidityToForms, u as useFormComposer } from "./dropinUtils-vsDEK6cs.js";
24
+ import { u as useMultiForm } from "./useMultiForm-ieaYM7hW.js";
25
+ import { u as uppercase, m as mapExistingFile, g as getPageName, b as useScenarioConfiguration } from "./mapExistingFile-BIYg1E5G.js";
26
+ import { C as Confirm } from "./Confirm-BoQbVMKQ.js";
27
+ import { E as ErrorPanel } from "./ErrorPanel-ALBlWg3_.js";
28
+ import { N as NewSummary } from "./NewSummary-C5UR_Xj1.js";
29
+ import { s as summaryStep, a as summaryStyles } from "./Summary-DkZ_an9u.js";
30
+ import { a as getDocument, j as getDocuments, c as createDocumentRequest, k as mergeProofOfOwnershipAttachments, b as getFileExtention, d as documentApiUtils } from "./validate-CFI052fe.js";
31
+ import { m as mergeFieldMetadataIntoProps, c as createFormUtils } from "./formUtils-DFuc8i5Q.js";
32
+ import { c as TAX_INFORMATION_FIELD, r as requestingBanking, d as requestingIssuing, t as taxInformationDefaultFieldMetadata, a as taxInformationDefaultFieldConfig, T as TaxInformationField, C as COUNTRY_OF_GOVERNING_LAW_POSSIBLE, e as getTaxInformationPlaceholderText, S as StateCodesUS, i as isUsingCompanySearch, M as MemoizedDocumentUpload, f as countryToTaxInfoTypeMap, h as isRegistrationNumberAbsentStateV4Scenario, j as getTaxIdNumberOptions, k as COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT, l as rules, g as getFieldsWithExistingData } from "./TaxInformationField-BOZj8YLo.js";
33
+ import { D as DBA_NAME_FIELD, B as BUSINESS_REGISTRATION_NUMBER_FIELD, V as VAT_NUMBER_FIELD, r as registrationAddressFields, o as operationalAddressIsSameIds, v as vatAbsenceReasonMetadata, d as defaultFieldMetadata, a as defaultFieldConfig, b as registrationNumberDefaultFieldMetadata, c as registrationNumberDefaultFieldConfig, e as doingBusinessAsFieldMetadata, f as doingBusinessAsAbsentFieldMetadata, g as DBANameField, h as BusinessRegistrationNumberField, i as getRegistrationNumberHelperText, j as VatNumberField, M as MemoizedConstitutionalDocument, k as getDefaultRegistrationNumberType, l as getDefaultVatNumberType, m as inferCompanyRegistrationNumberType, n as getCompanyRegistrationNumberOptions, p as exemptFromRegistrationNumberDefaultFieldMetadata } from "./ConstitutionalDocument-CjUSPI6f.js";
34
+ import { K as KEYBOARD_KEYS, M as Modal, a as ModalContent } from "./Modal-C8kGCLbp.js";
35
+ import { g as getAddressSchemaForCountry, C as COUNTRIES_WITH_STATES_DATASET, a as getAddressSchemaLabelsByCountry, f as mapAddressLabelsNewSummary, c as getKeyForField } from "./utils-C5ekxdx1.js";
35
36
  import { r as resolveFieldMetadata } from "./fieldConfigurations-BUT9DTUH.js";
36
- import { f as formatCurrency, A as ALLOWED_SOF_SERVICES } from "./utils-Bx0ZXntJ.js";
37
- import { b as useAddressCleanse, f as formatAddressForCleanse, m as mapAddressData, A as Address, g as getNestedTrustedFields, S as STATE_FIELD, d as defaultFieldMetadata$1, c as defaultFieldConfig$1, e as StateField, i as isDateOlderThanAYear } from "./Address-Csavi1J2.js";
37
+ import { f as formatCurrency, A as ALLOWED_SOF_SERVICES } from "./utils-Dny5dbku.js";
38
+ import { b as useAddressCleanse, f as formatAddressForCleanse, m as mapAddressData, A as Address, g as getNestedTrustedFields, S as STATE_FIELD, d as defaultFieldMetadata$1, c as defaultFieldConfig$1, e as StateField, i as isDateOlderThanAYear } from "./Address-TGZeMCUA.js";
38
39
  import { S as SettingNames } from "./types-Dv0COrvY.js";
39
- import { o as organizationTypesToSkipCompanyStructureForm } from "./utils-CL8Y2cxl.js";
40
- import { i as isValidationError, p as processValidationErrors, a as isMaintenanceModeError } from "./validationError-Cl6ZvFO8.js";
41
- import { t as toFullWidth, m as mapJpAddressSchemaToAddressLocalizations } from "./mapJpAddressSchemaToAddressLocalizations-B-YIRvOK.js";
42
- import { i as isEmpty$1 } from "./isEmpty-boSQX897.js";
40
+ import { o as organizationTypesToSkipCompanyStructureForm } from "./utils-BwwVW2aU.js";
41
+ import { i as isValidationError, p as processValidationErrors, a as isMaintenanceModeError } from "./validationError-XxBa8ECY.js";
42
+ import { t as toFullWidth, m as mapJpAddressSchemaToAddressLocalizations } from "./mapJpAddressSchemaToAddressLocalizations-D5xnQLSI.js";
43
+ import { i as isEmpty$1 } from "./isEmpty-DFqK5kY2.js";
43
44
  import { f as formatObject } from "./utils-DNSfZiio.js";
44
45
  import { b as mapAddressLocalizationToJpAddressSchema, a as mapApiScriptLocalizationToSchemaFields, m as mapSchemaFieldsToApiScriptLocalization } from "./mapAddressLocalizationToJpAddressSchema-vJWbpAyq.js";
45
- import { L as LegalFormField, I as InputNumber, c as InputCurrency, b as CURRENCY_FIELD, C as Currency, m as mapFinancialReportsToFinancialInformation, a as mapFinancialInformationToFinancialReport } from "./Currency-DJCryqqJ.js";
46
- import { L as LandingLayout } from "./LandingLayout-Dr28QxoC.js";
47
- import { g as getLegalCompanyNameGuidanceText, L as LEGAL_COMPANY_NAME_FIELD, d as defaultFieldMetadataV4, a as defaultFieldMetadata$2, b as defaultFieldConfigV4, c as defaultFieldConfig$2 } from "./LegalCompanyNameField-DHyMLbZc.js";
48
- import { h as useBusinessLines } from "./OnboardingDropinComponent-BRlY6KUs.js";
46
+ import { L as LegalFormField, I as InputNumber, c as InputCurrency, b as CURRENCY_FIELD, C as Currency, m as mapFinancialReportsToFinancialInformation, a as mapFinancialInformationToFinancialReport } from "./Currency-DjKXc6D1.js";
47
+ import { L as LandingLayout } from "./LandingLayout-DEgZw1-N.js";
48
+ import { g as getLegalCompanyNameGuidanceText, L as LEGAL_COMPANY_NAME_FIELD, d as defaultFieldMetadataV4, a as defaultFieldMetadata$2, b as defaultFieldConfigV4, c as defaultFieldConfig$2 } from "./LegalCompanyNameField-CblBotGC.js";
49
+ import { h as useBusinessLines } from "./OnboardingDropinComponent-CK5KIhNx.js";
49
50
  import { Suspense, lazy } from "preact/compat";
50
- import { C as Checkbox } from "./Checkbox-BKM1WPHa.js";
51
- import { F as Field } from "./Field-BguffV12.js";
52
- import { I as InputDate, f as formatDateObj } from "./InputDate-BjWLJfR1.js";
53
- import { a as validateNotEmptyOnBlur, v as validatePatternOnBlur, b as validateJaKanaLegalCompanyName, c as validateJaHaniLegalCompanyName } from "./patternValidators-B7j6YIOy.js";
54
- import { M as MaskedInput, m as makeMask, d as alphanumericInputs, b as alphaInputs, n as numericInputs } from "./MaskedInput-Ckb7nz68.js";
55
- import { i as isJapanLocalizationEnabled } from "./japanSupportUtils-DC6ssQNc.js";
51
+ import { C as Checkbox } from "./Checkbox-D5-_dw4-.js";
52
+ import { F as Field } from "./Field--T3FQepj.js";
53
+ import { I as InputDate, f as formatDateObj } from "./InputDate-BAzF-upe.js";
54
+ import { a as validateNotEmptyOnBlur, v as validatePatternOnBlur, b as validateJaKanaLegalCompanyName, c as validateJaHaniLegalCompanyName } from "./patternValidators-DRSnA1z7.js";
55
+ import { M as MaskedInput, m as makeMask, d as alphanumericInputs, b as alphaInputs, n as numericInputs } from "./MaskedInput-BNceotwn.js";
56
+ import { i as isJapanLocalizationEnabled } from "./japanSupportUtils-DqXOWm97.js";
56
57
  import { u as useDebouncedCallback } from "./debouncedInputEvent-Cv2S512Y.js";
57
- import { signal } from "@preact/signals";
58
58
  import cx from "classnames";
59
- import { L as Link } from "./Link-C1szPOri.js";
59
+ import { L as Link } from "./Link-BVdY7Jkl.js";
60
60
  import { S as StructuredList } from "./StructuredList-CNha20ka.js";
61
- import { I as InputText } from "./InputText-C6-NIYzH.js";
62
- import { C as CountryField, a as COUNTRY_FIELD } from "./CountryField-pznzB7Uq.js";
63
- import { L as LoaderWrapper } from "./LoaderWrapper-BEzoHtmn.js";
61
+ import { I as InputText } from "./InputText-CywP4Ojh.js";
62
+ import { C as CountryField, a as COUNTRY_FIELD } from "./CountryField-DPtohqO0.js";
63
+ import { L as LoaderWrapper } from "./LoaderWrapper-CU0bf3jD.js";
64
64
  import { C as Card } from "./Card-OQuFzmxm.js";
65
- import { L as ListItem } from "./ListItem-nK0xrija.js";
66
- import { T as TileGroup } from "./TileGroup-r_3ClexW.js";
67
- import { c as currencyByCountry } from "./types-DO_d6cVD.js";
68
- import { R as RadioGroup } from "./RadioGroup-BTCmUbA0.js";
65
+ import { L as ListItem } from "./ListItem-CNuX4D7n.js";
66
+ import { T as TileGroup } from "./TileGroup-BRzhDdL0.js";
67
+ import { c as currencyByCountry } from "./types-DsA42AXS.js";
68
+ import { R as RadioGroup } from "./RadioGroup-PEWX2KAj.js";
69
69
  const DATE_OF_INCORPORATION_FIELD = [
70
70
  "dateOfIncorporation"
71
71
  ];
@@ -73,16 +73,16 @@ function DateOfIncorporationField({
73
73
  data,
74
74
  valid,
75
75
  errors,
76
- labels,
77
76
  placeholder,
78
77
  readonly,
79
78
  handleChangeFor
80
79
  }) {
80
+ const { t } = useTranslation("common");
81
81
  return /* @__PURE__ */ jsx(
82
82
  Field,
83
83
  {
84
84
  name: "dateOfIncorporation",
85
- label: labels.dateOfIncorporation,
85
+ label: t(($) => $["dateOfIncorporation"]),
86
86
  errorMessage: errors.dateOfIncorporation,
87
87
  isValid: valid.dateOfIncorporation,
88
88
  children: (childProps) => /* @__PURE__ */ jsx(
@@ -112,7 +112,6 @@ const validateDateOfIncorporation = (dateOfIncorporation) => {
112
112
  return date < /* @__PURE__ */ new Date() && date > new Date(1900, 0, 1);
113
113
  };
114
114
  const dateOfIncorporationFieldMetadata = {
115
- label: "dateOfIncorporation",
116
115
  validators: [
117
116
  validateNotEmptyOnBlur,
118
117
  {
@@ -184,7 +183,6 @@ const eInvoicingCodeFieldMetadata = {
184
183
  }
185
184
  };
186
185
  const stockExchangeMICFieldMetadata = {
187
- label: "stockExchangeMIC",
188
186
  validators: [validateNotEmptyOnBlur, validatePatternOnBlur(/^[a-zA-Z0-9]{4}$/)],
189
187
  mask: {
190
188
  mask: makeMask(...alphanumericInputs(4)),
@@ -198,7 +196,6 @@ function StockExchangeMICField({
198
196
  data,
199
197
  valid,
200
198
  errors,
201
- labels,
202
199
  readonly,
203
200
  mask,
204
201
  shouldValidate,
@@ -210,7 +207,7 @@ function StockExchangeMICField({
210
207
  {
211
208
  name: "stockExchangeMIC",
212
209
  type: "text",
213
- label: labels.stockExchangeMIC ?? "",
210
+ label: t(($) => $["stockExchangeMIC"]),
214
211
  formatGuidance: t(($) => $["enterNCharactersForExample"], { numChars: "4", example: "XNAS" }),
215
212
  ...mask,
216
213
  errorMessage: errors.stockExchangeMIC,
@@ -226,7 +223,6 @@ function StockExchangeMICField({
226
223
  );
227
224
  }
228
225
  const stockISINFieldMetadata = {
229
- label: "stockISIN",
230
226
  validators: [
231
227
  validateNotEmptyOnBlur,
232
228
  {
@@ -244,7 +240,6 @@ function StockISINField({
244
240
  data,
245
241
  valid,
246
242
  errors,
247
- labels,
248
243
  readonly,
249
244
  mask,
250
245
  shouldValidate,
@@ -256,7 +251,7 @@ function StockISINField({
256
251
  {
257
252
  name: "stockISIN",
258
253
  type: "text",
259
- label: labels.stockISIN ?? "",
254
+ label: t(($) => $["stockISIN"]),
260
255
  formatGuidance: t(($) => $["validationPleaseEnterAValidStockISIN"], {
261
256
  example: "NL0012969182"
262
257
  }),
@@ -274,7 +269,6 @@ function StockISINField({
274
269
  );
275
270
  }
276
271
  const stockTickerSymbolFieldMetadata = {
277
- label: "stockTickerSymbol",
278
272
  validators: [validateNotEmptyOnBlur, validatePatternOnBlur(/^[A-Z\d]{1,5}$/)],
279
273
  mask: {
280
274
  mask: makeMask(...alphanumericInputs(1), ...alphanumericInputs(4)),
@@ -288,7 +282,6 @@ function StockTickerSymbolField({
288
282
  data,
289
283
  valid,
290
284
  errors,
291
- labels,
292
285
  readonly,
293
286
  mask,
294
287
  shouldValidate,
@@ -300,7 +293,7 @@ function StockTickerSymbolField({
300
293
  {
301
294
  name: "stockTickerSymbol",
302
295
  type: "text",
303
- label: labels.stockTickerSymbol ?? "",
296
+ label: t(($) => $["stockTickerSymbol"]),
304
297
  formatGuidance: t(($) => $["enterAMaximumOfNCharactersForExample"], {
305
298
  maxChars: "5",
306
299
  example: "ADYEN"
@@ -332,7 +325,6 @@ const isBankAccountRequestedForOrganization = signal(void 0);
332
325
  const tinMatched = signal(void 0);
333
326
  const businessMismatchModalOpen = signal(false);
334
327
  const verifiedBusiness = signal(void 0);
335
- const isVerifiedSingleCompanySearchResult = signal(false);
336
328
  const additionalInformationContent = "adyen-kyc-additional-information-content";
337
329
  const additionalInformationSectionHeading = "adyen-kyc-additional-information-section-heading";
338
330
  const styles$4 = {
@@ -406,7 +398,7 @@ function VerifiedBusinessCard({
406
398
  ] });
407
399
  }
408
400
  const LazyJpAddress = lazy(
409
- async () => (await import("./JpAddress-C8wbZfE0.js")).JpAddress
401
+ async () => (await import("./JpAddress-BIgqDfQ0.js")).JpAddress
410
402
  );
411
403
  const ADDITIONAL_INFORMATION_FORM_ID = "additionalInformation";
412
404
  const ADDITIONAL_INFORMATION_FIELDS = [
@@ -453,7 +445,6 @@ function AdditionalInformation({
453
445
  if (requestingIssuing(rootLegalEntity)) {
454
446
  businessLineTypes.push("issuing");
455
447
  }
456
- usePageLandedEvent();
457
448
  const [addressToCheck, setAddressToCheck] = useDebouncedState(500);
458
449
  const { data: cleansedRegistrationAddress } = useAddressCleanse(
459
450
  {
@@ -747,9 +738,6 @@ function AdditionalInformation({
747
738
  validationErrors,
748
739
  DBA_NAME_FIELD
749
740
  ),
750
- labels: formUtils.getFieldLabels(DBA_NAME_FIELD, {
751
- hasDoingBusinessAs: "hasDba"
752
- }),
753
741
  readonly: formUtils.isReadOnly("doingBusinessAs"),
754
742
  handleChangeFor
755
743
  }
@@ -879,11 +867,6 @@ function AdditionalInformation({
879
867
  validationErrors,
880
868
  INDUSTRY_CODE_FIELD
881
869
  ),
882
- labels: {
883
- industryCodes: t(($) => $["industry"], {
884
- ns: "business"
885
- })
886
- },
887
870
  guidanceText: t(($) => $["primaryIndustryCodeGuidance"], { ns: "business" }),
888
871
  readonly: formUtils.isReadOnly("industryCodes"),
889
872
  handleChangeFor,
@@ -908,7 +891,6 @@ function AdditionalInformation({
908
891
  validationErrors,
909
892
  DATE_OF_INCORPORATION_FIELD
910
893
  ),
911
- labels: formUtils.getFieldLabels(DATE_OF_INCORPORATION_FIELD),
912
894
  placeholder: t(($) => $["datePlaceholder"]),
913
895
  readonly: formUtils.isReadOnly("dateOfIncorporation"),
914
896
  handleChangeFor
@@ -935,7 +917,6 @@ function AdditionalInformation({
935
917
  validationErrors,
936
918
  STOCK_EXCHANGE_MIC_FIELD
937
919
  ),
938
- labels: formUtils.getFieldLabels(STOCK_EXCHANGE_MIC_FIELD),
939
920
  mask: formUtils.getMask("stockExchangeMIC"),
940
921
  readonly: formUtils.isReadOnly("stockExchangeMIC"),
941
922
  shouldValidate,
@@ -958,7 +939,6 @@ function AdditionalInformation({
958
939
  validationErrors,
959
940
  STOCK_ISIN_FIELD
960
941
  ),
961
- labels: formUtils.getFieldLabels(STOCK_ISIN_FIELD),
962
942
  mask: formUtils.getMask("stockISIN"),
963
943
  readonly: formUtils.isReadOnly("stockISIN"),
964
944
  shouldValidate,
@@ -981,7 +961,6 @@ function AdditionalInformation({
981
961
  validationErrors,
982
962
  STOCK_TICKER_SYMBOL_FIELD
983
963
  ),
984
- labels: formUtils.getFieldLabels(STOCK_TICKER_SYMBOL_FIELD),
985
964
  mask: formUtils.getMask("stockTickerSymbol"),
986
965
  readonly: formUtils.isReadOnly("stockTickerSymbol"),
987
966
  shouldValidate,
@@ -1260,7 +1239,6 @@ function BasicInformation({
1260
1239
  const currentCountryTaxInformation = form.data.basicInformation?.taxInformation?.find(
1261
1240
  (tax) => tax.country === country
1262
1241
  );
1263
- usePageLandedEvent();
1264
1242
  const handleChangeFor = useCallback(
1265
1243
  (fieldName, mode) => form.handleChangeFor(fieldName, "basicInformation", mode),
1266
1244
  [form]
@@ -1617,16 +1595,27 @@ const KNOWN_DISALLOWED_INDEX_DATASET_STATES = [
1617
1595
  StateCodesUS.Texas
1618
1596
  ];
1619
1597
  const KOMPANY_SEARCH_FAILURE = "Kompany index and deep search both failed to complete";
1620
- const useCompanySearch = (data, options) => {
1621
- const { rootLegalEntityId, baseUrl } = useApiContext();
1622
- const { isAgnosticEndpointEnabled } = useCompanySearchFeature();
1623
- return useQuery({
1598
+ const companySearchQueryOptions = (rootLegalEntityId, baseUrl, data, isAgnosticEndpointEnabled, options) => {
1599
+ return queryOptions({
1624
1600
  queryKey: ["companySearch", data],
1625
- queryFn: () => handleCompanySearch(rootLegalEntityId.value, baseUrl.value, data, isAgnosticEndpointEnabled),
1601
+ queryFn: () => handleCompanySearch(rootLegalEntityId, baseUrl, data, isAgnosticEndpointEnabled),
1626
1602
  retry: 0,
1627
1603
  ...options
1628
1604
  });
1629
1605
  };
1606
+ const useCompanySearch = (data, options) => {
1607
+ const { rootLegalEntityId, baseUrl } = useApiContext();
1608
+ const { isAgnosticEndpointEnabled } = useCompanySearchFeature();
1609
+ return useQuery(
1610
+ companySearchQueryOptions(
1611
+ rootLegalEntityId.value,
1612
+ baseUrl.value,
1613
+ data,
1614
+ isAgnosticEndpointEnabled,
1615
+ options
1616
+ )
1617
+ );
1618
+ };
1630
1619
  const handleCompanySearch = async (rootLegalEntityId, baseUrl, data, isAgnosticEndpointEnabled) => {
1631
1620
  if (isAgnosticEndpointEnabled) {
1632
1621
  const _data2 = {
@@ -1725,12 +1714,37 @@ const handleCompanyDataset = async (rootLegalEntityId, baseUrl, data, isAgnostic
1725
1714
  const isDataCompliant = _data.company.lastUpdate ? Date.parse(date) - Date.parse(_data.company.lastUpdate) < LOW_RISK_COMPANY_DATA_COMPLIANCE_WINDOW : false;
1726
1715
  return isDataCompliant && !KNOWN_DISALLOWED_INDEX_DATASET_STATES.includes(_data.state) ? await getCompanyDataset() : await refreshCompanyDataset();
1727
1716
  };
1728
- const useVerifyTin = (data, options) => {
1729
- const { rootLegalEntityId, baseUrl } = useApiContext();
1730
- return useQuery({
1717
+ const verifyTinQueryOptions = (rootLegalEntityId, baseUrl, data, userEvents, options) => {
1718
+ return queryOptions({
1731
1719
  queryKey: ["verifyTin", data],
1732
- queryFn: data ? () => verifyTin(rootLegalEntityId.value, baseUrl.value, data) : skipToken,
1720
+ queryFn: data ? () => verifyTin(rootLegalEntityId, baseUrl, data) : skipToken,
1733
1721
  retry: 0,
1722
+ meta: {
1723
+ onSuccess: (data2) => {
1724
+ if (data2.matched === true) {
1725
+ tinMatched.value = true;
1726
+ userEvents.addPageEvent("Success", {
1727
+ actionType: "verify",
1728
+ returnValue: "verifyTin",
1729
+ returnType: "validation"
1730
+ });
1731
+ } else {
1732
+ tinMatched.value = false;
1733
+ userEvents.addPageEvent("Encountered error", {
1734
+ actionType: "verify",
1735
+ returnValue: "verifyTin",
1736
+ returnType: "validation"
1737
+ });
1738
+ }
1739
+ },
1740
+ onError: () => {
1741
+ userEvents.addPageEvent("Encountered error", {
1742
+ actionType: "verify",
1743
+ returnValue: "verifyTin",
1744
+ returnType: "backend"
1745
+ });
1746
+ }
1747
+ },
1734
1748
  ...options
1735
1749
  });
1736
1750
  };
@@ -1743,18 +1757,44 @@ const verifyTin = async (legalEntityId, baseUrl, data) => {
1743
1757
  data
1744
1758
  );
1745
1759
  };
1746
- const useCompanySelection = (data, options) => {
1760
+ const useCompanySelection = (options) => {
1747
1761
  const { rootLegalEntityId, baseUrl } = useApiContext();
1748
1762
  const { isAgnosticEndpointEnabled } = useCompanySearchFeature();
1749
- return useQuery({
1750
- queryKey: ["companySelection", data],
1751
- queryFn: data ? () => handleCompanySelection(
1763
+ const userEvents = useAnalyticsContext();
1764
+ return useMutation({
1765
+ mutationFn: async (data) => handleCompanySelection(
1752
1766
  rootLegalEntityId.value,
1753
1767
  baseUrl.value,
1754
1768
  data,
1755
1769
  isAgnosticEndpointEnabled
1756
- ) : skipToken,
1757
- retry: 0,
1770
+ ),
1771
+ onMutate: () => {
1772
+ verifiedBusiness.value = void 0;
1773
+ },
1774
+ onSuccess: (data) => {
1775
+ if (data.tinMatched === true) {
1776
+ tinMatched.value = true;
1777
+ userEvents.addPageEvent("Success", {
1778
+ actionType: "select",
1779
+ returnValue: "companySelection",
1780
+ returnType: "validation"
1781
+ });
1782
+ } else {
1783
+ tinMatched.value = false;
1784
+ userEvents.addPageEvent("Encountered error", {
1785
+ actionType: "select",
1786
+ returnValue: "companySelection",
1787
+ returnType: "validation"
1788
+ });
1789
+ }
1790
+ },
1791
+ onError: () => {
1792
+ userEvents.addPageEvent("Encountered error", {
1793
+ actionType: "select",
1794
+ returnValue: "companySelection",
1795
+ returnType: "backend"
1796
+ });
1797
+ },
1758
1798
  ...options
1759
1799
  });
1760
1800
  };
@@ -1918,7 +1958,7 @@ function BusinessInformationCard({
1918
1958
  invalidTin,
1919
1959
  setIsBusinessSelection,
1920
1960
  handleSelectBusiness,
1921
- refetchCompanySelection,
1961
+ retryCompanySelection,
1922
1962
  handleConfirmSelection,
1923
1963
  handleBackClick
1924
1964
  }) {
@@ -1944,7 +1984,7 @@ function BusinessInformationCard({
1944
1984
  }
1945
1985
  };
1946
1986
  const handleCardClick = () => {
1947
- handleSelectBusiness(result);
1987
+ handleSelectBusiness();
1948
1988
  };
1949
1989
  return /* @__PURE__ */ jsx(Card, { selected: isSelected, onClick: isSelected ? void 0 : handleCardClick, children: /* @__PURE__ */ jsxs(StackLayout, { children: [
1950
1990
  /* @__PURE__ */ jsx(
@@ -1973,15 +2013,7 @@ function BusinessInformationCard({
1973
2013
  variant: "info",
1974
2014
  type: "callToAction",
1975
2015
  title: t(($) => $["businessSelection__failedToLoad"], { ns: "business" }),
1976
- actions: /* @__PURE__ */ jsx(
1977
- Button,
1978
- {
1979
- testId: "reloadBusiness",
1980
- onClick: () => refetchCompanySelection(),
1981
- variant: "link",
1982
- children: t(($) => $["tryAgain"], { ns: "common" })
1983
- }
1984
- ),
2016
+ actions: /* @__PURE__ */ jsx(Button, { testId: "reloadBusiness", onClick: retryCompanySelection, variant: "link", children: t(($) => $["tryAgain"], { ns: "common" }) }),
1985
2017
  testId: "failedToLoad"
1986
2018
  }
1987
2019
  ),
@@ -2033,13 +2065,12 @@ function BusinessSelection({
2033
2065
  setLoadingStatus
2034
2066
  }) {
2035
2067
  const { t } = useTranslation(["common", "business"]);
2068
+ const { baseUrl, rootLegalEntityId } = useApiContext();
2036
2069
  const { form } = useFormContext();
2037
2070
  const queryClient = useQueryClient();
2038
2071
  const userEvents = useAnalyticsContext();
2039
2072
  const { isFeatureEnabled } = useToggleContext();
2040
2073
  const [selectedBusinessId, setSelectedBusinessId] = useState();
2041
- const [fetchParams, setFetchParams] = useState();
2042
- usePageLandedEvent();
2043
2074
  const providerAgnosticEndpointsEnabled = isFeatureEnabled(
2044
2075
  "EnableProviderAgnosticCompanySearchAndSelect"
2045
2076
  );
@@ -2050,38 +2081,36 @@ function BusinessSelection({
2050
2081
  registrationNumber: form.data.basicInformation?.registrationNumber
2051
2082
  });
2052
2083
  const {
2053
- data: businessData,
2054
- isError: fetchingError,
2055
- isLoading: fetching,
2056
- refetch: refetchCompanySelection
2057
- } = useCompanySelection(fetchParams);
2084
+ data: selectData,
2085
+ isError: selectError,
2086
+ isPending: selectPending,
2087
+ mutate: selectCompany,
2088
+ reset: resetCompanySelection
2089
+ } = useCompanySelection();
2090
+ const { mutateAsync: clearCompanyData2 } = useClearCompanyData();
2058
2091
  const currentTin = form.data.basicInformation?.taxInformation?.find(
2059
2092
  (taxId) => taxId.country === country
2060
2093
  )?.number;
2061
- const [prevBusinessData, setPrevBusinessData] = useState(businessData);
2062
- if (prevBusinessData !== businessData) {
2063
- if (businessData?.tinMatched === true) {
2064
- tinMatched.value = true;
2065
- userEvents.addPageEvent("Success", {
2066
- actionType: "select",
2067
- returnValue: "companySelection"
2068
- });
2069
- } else {
2070
- userEvents.addPageEvent("Encountered error", {
2071
- actionType: "select",
2072
- returnValue: "companySelection"
2073
- });
2074
- }
2075
- setPrevBusinessData(businessData);
2076
- }
2077
- if (fetching) {
2078
- verifiedBusiness.value = void 0;
2079
- }
2080
- const { mutateAsync: clearCompanyData2 } = useClearCompanyData();
2094
+ const fetchCompanyData = (business) => {
2095
+ resetCompanySelection();
2096
+ selectCompany(business);
2097
+ };
2081
2098
  const handleChange = useCallback(
2082
2099
  (fieldName, mode) => form.handleChangeFor(fieldName, "businessSelection", mode),
2083
2100
  [form]
2084
2101
  );
2102
+ const buildCompanySelectionParams = (result) => {
2103
+ return providerAgnosticEndpointsEnabled ? {
2104
+ id: result.resultId,
2105
+ name: result.name,
2106
+ tin: currentTin ?? ""
2107
+ } : {
2108
+ company: result,
2109
+ state: form.data.basicInformation?.stateOrProvince,
2110
+ name: result.name,
2111
+ tin: currentTin ?? ""
2112
+ };
2113
+ };
2085
2114
  const handleSelectBusiness = (result) => {
2086
2115
  const resultId = providerAgnosticEndpointsEnabled ? result.resultId : result.id;
2087
2116
  if ((!selectedBusinessId || selectedBusinessId !== resultId) && currentTin) {
@@ -2095,23 +2124,13 @@ function BusinessSelection({
2095
2124
  }
2096
2125
  });
2097
2126
  setSelectedBusinessId(resultId);
2098
- setFetchParams(
2099
- providerAgnosticEndpointsEnabled ? {
2100
- id: result.resultId,
2101
- name: result.name,
2102
- tin: currentTin
2103
- } : {
2104
- company: result,
2105
- state: form.data.basicInformation?.stateOrProvince,
2106
- name: result.name,
2107
- tin: currentTin
2108
- }
2109
- );
2127
+ const companySelectionParams = buildCompanySelectionParams(result);
2128
+ fetchCompanyData(companySelectionParams);
2110
2129
  }
2111
2130
  };
2112
2131
  const handleConfirmSelection = () => {
2113
- verifiedBusiness.value = businessData;
2114
- applyVerifiedBusinessData(form, country, businessData, providerAgnosticEndpointsEnabled);
2132
+ verifiedBusiness.value = selectData;
2133
+ applyVerifiedBusinessData(form, country, selectData, providerAgnosticEndpointsEnabled);
2115
2134
  handleChange("hasSelectedBusiness", "blur")(true);
2116
2135
  handleNextClick();
2117
2136
  };
@@ -2122,20 +2141,24 @@ function BusinessSelection({
2122
2141
  "input"
2123
2142
  )(form.defaultData?.companyStructure?.entityType);
2124
2143
  };
2125
- const tinVerificationParams = {
2126
- name: form.data.basicInformation?.legalCompanyName ?? "",
2127
- tin: form.data.basicInformation?.taxInformation?.[0]?.number ?? ""
2128
- };
2129
- useVerifyTin(tinVerificationParams, { enabled: false });
2130
2144
  const proceedToManualDataEntry = async () => {
2131
2145
  clearCompanyData2();
2132
2146
  restoreDefaultState();
2133
2147
  verifiedBusiness.value = void 0;
2134
2148
  try {
2135
2149
  setLoadingStatus("loading");
2136
- const { matched } = await queryClient.fetchQuery({
2137
- queryKey: ["verifyTin", tinVerificationParams]
2138
- });
2150
+ const tinVerificationParams = {
2151
+ name: form.data.basicInformation?.legalCompanyName ?? "",
2152
+ tin: form.data.basicInformation?.taxInformation?.[0]?.number ?? ""
2153
+ };
2154
+ const { matched } = await queryClient.fetchQuery(
2155
+ verifyTinQueryOptions(
2156
+ rootLegalEntityId.peek(),
2157
+ baseUrl.peek(),
2158
+ tinVerificationParams,
2159
+ userEvents
2160
+ )
2161
+ );
2139
2162
  tinMatched.value = matched;
2140
2163
  if (matched === false) {
2141
2164
  businessMismatchModalOpen.value = true;
@@ -2193,13 +2216,16 @@ function BusinessSelection({
2193
2216
  {
2194
2217
  result,
2195
2218
  selectedBusinessId,
2196
- currentBusinessSelection: businessData,
2197
- fetching,
2198
- fetchingError,
2199
- invalidTin: businessData?.tinMatched === false,
2200
- handleSelectBusiness,
2219
+ currentBusinessSelection: selectData,
2220
+ fetching: selectPending,
2221
+ fetchingError: selectError,
2222
+ invalidTin: selectData?.tinMatched === false,
2223
+ handleSelectBusiness: () => handleSelectBusiness(result),
2201
2224
  handleConfirmSelection,
2202
- refetchCompanySelection,
2225
+ retryCompanySelection: () => {
2226
+ const companySelectionParams = buildCompanySelectionParams(result);
2227
+ fetchCompanyData(companySelectionParams);
2228
+ },
2203
2229
  handleBackClick
2204
2230
  },
2205
2231
  providerAgnosticEndpointsEnabled ? result.resultId : result.id
@@ -2272,7 +2298,6 @@ function CompanyStructure({
2272
2298
  const { accountHolder } = useAccountHolder();
2273
2299
  const { isSettingEnabled } = useSettingsContext();
2274
2300
  const canChangeEntityType = isSettingEnabled(SettingNames.AllowLegalEntityTypeChange);
2275
- usePageLandedEvent();
2276
2301
  const formUtils = createFormUtils(
2277
2302
  { requiredFields: form.requiredFields?.companyStructure ?? [] },
2278
2303
  t
@@ -2549,7 +2574,6 @@ function FinancialInformation({
2549
2574
  }) {
2550
2575
  const { t } = useTranslation("common");
2551
2576
  const { form } = useFormContext();
2552
- usePageLandedEvent();
2553
2577
  const defaultCurrency = currencyByCountry[country]?.[0] ?? "EUR";
2554
2578
  const handleChangeFor = useCallback(
2555
2579
  (fieldName, mode) => form.handleChangeFor(fieldName, "companyFinancialInformation", mode),
@@ -2820,7 +2844,6 @@ const GuidanceContent$4 = ({ t }) => {
2820
2844
  function ProofOfDirectorDocument({ id, country, ...props }) {
2821
2845
  const { t } = useTranslation(["common", "business"]);
2822
2846
  const [selectedDocumentName, setSelectedDocumentName] = useState(documentTypes$2[0].id);
2823
- usePageLandedEvent();
2824
2847
  return /* @__PURE__ */ jsx(
2825
2848
  MemoizedDocumentUpload,
2826
2849
  {
@@ -2931,7 +2954,6 @@ function ProofOfOwnershipDocument({ id, country, ...props }) {
2931
2954
  const { t } = useTranslation(["common", "business"]);
2932
2955
  const [selectedDocumentName, setSelectedDocumentName] = useState(documentTypes$1[0].id);
2933
2956
  const supportsMultiple = selectedDocumentName === DOC_TYPE_FOR_MULTI_UPLOAD;
2934
- usePageLandedEvent();
2935
2957
  useEffect(() => {
2936
2958
  if (props.data?.proofOfOwnership?.length === 2) {
2937
2959
  setSelectedDocumentName(DOC_TYPE_FOR_MULTI_UPLOAD);
@@ -2978,7 +3000,6 @@ const GuidanceContent$2 = ({ t }) => {
2978
3000
  function ProofOfSignatoryDocument({ id, country, ...props }) {
2979
3001
  const { t } = useTranslation(["common", "business"]);
2980
3002
  const [selectedDocumentName, setSelectedDocumentName] = useState(documentTypes[0].id);
2981
- usePageLandedEvent();
2982
3003
  return /* @__PURE__ */ jsx(
2983
3004
  MemoizedDocumentUpload,
2984
3005
  {
@@ -3095,7 +3116,6 @@ function RegistrationDocument({
3095
3116
  ...props
3096
3117
  }) {
3097
3118
  const { t } = useTranslation(["common", "business"]);
3098
- usePageLandedEvent();
3099
3119
  return /* @__PURE__ */ jsx(
3100
3120
  MemoizedDocumentUpload,
3101
3121
  {
@@ -3193,7 +3213,6 @@ function TaxDocument({
3193
3213
  ...props
3194
3214
  }) {
3195
3215
  const { t } = useTranslation("business");
3196
- usePageLandedEvent();
3197
3216
  return /* @__PURE__ */ jsx(
3198
3217
  MemoizedDocumentUpload,
3199
3218
  {
@@ -3211,7 +3230,6 @@ function TaxDocument({
3211
3230
  );
3212
3231
  }
3213
3232
  const VatDocument = ({ children }) => {
3214
- usePageLandedEvent();
3215
3233
  return children;
3216
3234
  };
3217
3235
  function BusinessDetailsMultiform({
@@ -3802,7 +3820,7 @@ function buildRequiredForms({
3802
3820
  ) && accountHolder !== "aTrust" && accountHolder !== "anUnincorporatedPartnership";
3803
3821
  const filteredForms = Object.values(forms).filter(({ formId }) => {
3804
3822
  if (formId === "businessSelection") {
3805
- if (options?.hasNoSearchResults || isVerifiedSingleCompanySearchResult.value) return false;
3823
+ if (options?.skipBusinessSelection) return false;
3806
3824
  }
3807
3825
  if (formId === "companyStructure") {
3808
3826
  if (skipCompanyStructure) return false;
@@ -4049,14 +4067,23 @@ const BUSINESS_BANK_ACCOUNT_TAX_ID_COUNTRIES = [
4049
4067
  CountryCodes.Estonia,
4050
4068
  CountryCodes.Finland,
4051
4069
  CountryCodes.France,
4070
+ CountryCodes.Italy,
4052
4071
  CountryCodes.Latvia,
4053
4072
  CountryCodes.Lithuania,
4054
4073
  CountryCodes.Portugal,
4055
4074
  CountryCodes.Spain
4056
4075
  ];
4076
+ const IT_REGISTRATION_TYPES_WITHOUT_TAX_ID_REUSE = ["CCIAA"];
4057
4077
  const isBusinessBankAccountTaxIdCountry = (country) => {
4058
4078
  return country ? BUSINESS_BANK_ACCOUNT_TAX_ID_COUNTRIES.includes(country) : false;
4059
4079
  };
4080
+ const shouldReuseRegistrationNumberAsTaxId = (country, registrationNumberType) => {
4081
+ if (!isBusinessBankAccountTaxIdCountry(country)) return false;
4082
+ if (country === CountryCodes.Italy && registrationNumberType) {
4083
+ return !IT_REGISTRATION_TYPES_WITHOUT_TAX_ID_REUSE.includes(registrationNumberType);
4084
+ }
4085
+ return true;
4086
+ };
4060
4087
  const mapBusinessDetailsDocumentToApiDocument = async (data, entityId) => {
4061
4088
  const {
4062
4089
  companyRegistrationDocument,
@@ -4148,7 +4175,10 @@ const mapBusinessDetailsSchemaToLegalEntity = (data, accountHolder, isFeatureEna
4148
4175
  entityObject.taxInformation = taxData;
4149
4176
  }
4150
4177
  if (rootLegalEntity?.type === "organization" && // SOE-5931 - TODO: investigate L scenario returned to show this on the backend
4151
- keysOf(rootLegalEntity.capabilities ?? {}).includes("issueBankAccount") && matchingScenario?.includes(Scenarios.L) && registrationNumber && data.basicInformation?.country && isBusinessBankAccountTaxIdCountry(data.basicInformation?.country)) {
4178
+ keysOf(rootLegalEntity.capabilities ?? {}).includes("issueBankAccount") && matchingScenario?.includes(Scenarios.L) && registrationNumber && data.basicInformation?.country && shouldReuseRegistrationNumberAsTaxId(
4179
+ data.basicInformation?.country,
4180
+ data.additionalInformation?.registrationNumberType
4181
+ )) {
4152
4182
  const taxCountry = data.basicInformation.country;
4153
4183
  const privateCompanyTaxOptions = getTaxIdNumberOptions(
4154
4184
  taxCountry,
@@ -4374,13 +4404,11 @@ async function submit({
4374
4404
  await submitBusinessLines({
4375
4405
  data,
4376
4406
  legalEntity,
4377
- trackingPayload,
4378
4407
  efpBusinessLines,
4379
4408
  createBusinessLine,
4380
4409
  updateBusinessLine,
4381
4410
  t,
4382
- showToast,
4383
- userEvents
4411
+ showToast
4384
4412
  });
4385
4413
  userEvents.addTaskEvent("Success", trackingPayload);
4386
4414
  showToast({
@@ -4477,8 +4505,6 @@ async function submitBusinessLines({
4477
4505
  efpBusinessLines,
4478
4506
  createBusinessLine,
4479
4507
  updateBusinessLine,
4480
- trackingPayload,
4481
- userEvents,
4482
4508
  t,
4483
4509
  showToast
4484
4510
  }) {
@@ -4537,18 +4563,7 @@ async function submitBusinessLines({
4537
4563
  );
4538
4564
  hadRejection = true;
4539
4565
  });
4540
- const eventPayload = {
4541
- actionType: trackingPayload.actionType,
4542
- legalEntityName: trackingPayload.legalEntityName
4543
- };
4544
- if (!hadRejection) {
4545
- userEvents.addTaskEvent("Success", eventPayload);
4546
- } else {
4547
- userEvents.addTaskEvent("Encountered error", {
4548
- ...eventPayload,
4549
- returnType: "businessLines",
4550
- returnValue: "couldNotCreateOrUpdateBusinessLine"
4551
- });
4566
+ if (hadRejection) {
4552
4567
  showToast({
4553
4568
  label: t(($) => $["failedToUpdateEfpBusinessLines"], { ns: "business" }),
4554
4569
  variant: "error"
@@ -4971,28 +4986,9 @@ function BusinessDetailsDropin({
4971
4986
  tinMatched.value = void 0;
4972
4987
  businessMismatchModalOpen.value = false;
4973
4988
  }
4974
- const [forms, setForms] = useState(
4975
- buildRequiredForms({
4976
- config: {
4977
- forms: defaultForms,
4978
- requiredFields: derivedProps?.requiredFields,
4979
- optionalFields: derivedProps?.optionalFields,
4980
- isValid: multiForm.isValid ?? {},
4981
- problems,
4982
- isSettingEnabled,
4983
- accountHolder,
4984
- legalEntityResponse
4985
- },
4986
- options: {
4987
- hasNoSearchResults: false
4988
- }
4989
- })
4990
- );
4991
- const updateForms = useCallback(
4992
- ({
4993
- searchResults
4994
- }) => {
4995
- const updatedForms = buildRequiredForms({
4989
+ const getRequiredForms = useCallback(
4990
+ (options) => {
4991
+ return buildRequiredForms({
4996
4992
  config: {
4997
4993
  forms: defaultForms,
4998
4994
  requiredFields: derivedProps?.requiredFields,
@@ -5003,24 +4999,25 @@ function BusinessDetailsDropin({
5003
4999
  accountHolder,
5004
5000
  legalEntityResponse
5005
5001
  },
5006
- options: {
5007
- hasNoSearchResults: searchResults && !searchResults.length
5008
- }
5002
+ options
5009
5003
  });
5010
- setForms(updatedForms);
5011
- return updatedForms;
5012
5004
  },
5013
5005
  [
5006
+ accountHolder,
5014
5007
  defaultForms,
5015
5008
  derivedProps?.optionalFields,
5016
5009
  derivedProps?.requiredFields,
5017
- multiForm.isValid,
5018
- problems,
5019
5010
  isSettingEnabled,
5020
- accountHolder,
5021
- legalEntityResponse
5011
+ legalEntityResponse,
5012
+ multiForm.isValid,
5013
+ problems
5022
5014
  ]
5023
5015
  );
5016
+ const skipBusinessSelection = useSignal(true);
5017
+ const forms = useMemo(
5018
+ () => getRequiredForms({ skipBusinessSelection: skipBusinessSelection.value }),
5019
+ [getRequiredForms, skipBusinessSelection.value]
5020
+ );
5024
5021
  const { mutateAsync: createBusinessLine } = useCreateBusinessLine();
5025
5022
  const { mutateAsync: updateBusinessLine } = useUpdateBusinessLine();
5026
5023
  const submitTask = useCallback(() => {
@@ -5093,115 +5090,131 @@ function BusinessDetailsDropin({
5093
5090
  const handleBusinessMismatchContinue = () => {
5094
5091
  setTrustedFields([]);
5095
5092
  businessMismatchModalOpen.value = false;
5096
- handleNextClick();
5093
+ skipBusinessSelection.value = activeForm.formId !== "businessSelection";
5094
+ const currentForms = getRequiredForms({ skipBusinessSelection: skipBusinessSelection.value });
5095
+ handleNextClick(currentForms);
5097
5096
  };
5098
5097
  const handleBusinessMismatchCancel = () => {
5099
5098
  handleBackClick?.();
5100
5099
  businessMismatchModalOpen.value = false;
5101
5100
  tinMatched.value = false;
5102
5101
  };
5103
- const companySearchQueryInput = {
5104
- name: multiForm.data.basicInformation?.legalCompanyName ?? "",
5105
- country: multiForm.data.basicInformation?.country,
5106
- state: multiForm.data.basicInformation?.stateOrProvince,
5107
- registrationNumber: multiForm.data.basicInformation?.registrationNumber
5108
- };
5109
- const verifyTinQueryInput = {
5110
- name: multiForm.data.basicInformation?.legalCompanyName ?? "",
5111
- tin: multiForm.data.basicInformation?.taxInformation?.find((taxId) => taxId.country === country)?.number ?? ""
5112
- };
5113
- const {
5114
- data: companySearchResponse,
5115
- isLoading: searchingCompanies,
5116
- isError: searchingError
5117
- } = useCompanySearch(companySearchQueryInput, {
5118
- enabled: false
5119
- });
5120
- useEffect(() => {
5121
- if (!searchingCompanies && companySearchResponse?.results) {
5102
+ const { mutateAsync: selectCompany } = useCompanySelection();
5103
+ const { mutateAsync: clearCompanyData2 } = useClearCompanyData();
5104
+ const attemptBusinessSearch = async () => {
5105
+ const formsWithoutSearchResults = getRequiredForms({ skipBusinessSelection: true });
5106
+ if (!multiForm.data.basicInformation?.legalCompanyName) return formsWithoutSearchResults;
5107
+ setLoadingStatus("loading");
5108
+ tinMatched.value = void 0;
5109
+ verifiedBusiness.value = void 0;
5110
+ let searchResponse = {
5111
+ results: []
5112
+ };
5113
+ try {
5114
+ const companySearchInput = {
5115
+ name: multiForm.data.basicInformation?.legalCompanyName,
5116
+ country: multiForm.data.basicInformation?.country,
5117
+ state: multiForm.data.basicInformation?.stateOrProvince,
5118
+ registrationNumber: multiForm.data.basicInformation?.registrationNumber
5119
+ };
5120
+ searchResponse = (await trackPerformance(
5121
+ "companySearch",
5122
+ () => queryClient.fetchQuery(
5123
+ companySearchQueryOptions(
5124
+ rootLegalEntityId.peek(),
5125
+ baseUrl.peek(),
5126
+ companySearchInput,
5127
+ isAgnosticEndpointEnabled
5128
+ )
5129
+ ),
5130
+ userEvents
5131
+ )).result;
5122
5132
  userEvents.addPageEvent("Success", {
5123
5133
  actionType: "resolve",
5124
5134
  returnValue: "companySearch",
5125
5135
  additionalData: {
5126
- numberOfResults: companySearchResponse.results.length
5136
+ numberOfResults: searchResponse.results.length
5127
5137
  }
5128
5138
  });
5139
+ } catch (e) {
5140
+ logger2.error(e);
5141
+ setLoadingStatus("error");
5142
+ return formsWithoutSearchResults;
5129
5143
  }
5130
- }, [searchingCompanies, userEvents, subjectEntity, companySearchResponse?.results]);
5131
- const companySelectionInput = {
5132
- company: companySearchResponse?.results[0],
5133
- state: multiForm.data.basicInformation?.stateOrProvince,
5134
- name: multiForm.data.basicInformation?.legalCompanyName ?? "",
5135
- tin: multiForm.data.basicInformation?.taxInformation?.find((taxId) => taxId.country === country)?.number ?? ""
5136
- };
5137
- useVerifyTin(verifyTinQueryInput, { enabled: false });
5138
- const attemptBusinessSearch = async () => {
5139
- try {
5140
- setLoadingStatus("loading");
5141
- tinMatched.value = void 0;
5142
- verifiedBusiness.value = void 0;
5143
- isVerifiedSingleCompanySearchResult.value = false;
5144
- const { result: searchResponse } = await trackPerformance(
5145
- "companySearch",
5146
- () => queryClient.fetchQuery({
5147
- queryKey: ["companySearch", companySearchQueryInput]
5148
- }),
5149
- userEvents
5150
- );
5151
- let currentForms = updateForms({ searchResults: searchResponse.results });
5152
- const handleTinResponse = (matched) => {
5153
- if (matched) {
5154
- tinMatched.value = true;
5155
- } else {
5156
- businessMismatchModalOpen.value = true;
5157
- tinMatched.value = false;
5144
+ const tin = multiForm.data.basicInformation?.taxInformation?.find((taxId) => taxId.country === country)?.number ?? "";
5145
+ skipBusinessSelection.value = searchResponse.results.length === 0;
5146
+ const currentForms = getRequiredForms({ skipBusinessSelection: skipBusinessSelection.peek() });
5147
+ switch (searchResponse.results.length) {
5148
+ case 0: {
5149
+ try {
5150
+ const verifyTinQueryInput = {
5151
+ name: multiForm.data.basicInformation?.legalCompanyName,
5152
+ tin
5153
+ };
5154
+ const tinVerificationResponse = await queryClient.fetchQuery(
5155
+ verifyTinQueryOptions(
5156
+ rootLegalEntityId.peek(),
5157
+ baseUrl.peek(),
5158
+ verifyTinQueryInput,
5159
+ userEvents
5160
+ )
5161
+ );
5162
+ setLoadingStatus("success");
5163
+ const tinMatched2 = !!tinVerificationResponse.matched;
5164
+ handleTinMismatchModal(tinMatched2);
5165
+ return tinMatched2 ? currentForms : null;
5166
+ } catch (e) {
5167
+ logger2.error(e);
5168
+ setLoadingStatus("error");
5169
+ return currentForms;
5158
5170
  }
5159
- return tinMatched.value;
5160
- };
5161
- if (searchResponse.results.length === 1 && isNormalizedStringMatch(
5162
- multiForm.data.basicInformation?.legalCompanyName ?? "",
5163
- searchResponse.results[0].name
5164
- )) {
5165
- const companySelectionResponse = await handleCompanySelection(
5166
- rootLegalEntityId.peek(),
5167
- baseUrl.peek(),
5168
- {
5169
- ...companySelectionInput,
5171
+ }
5172
+ case 1: {
5173
+ if (!isNormalizedStringMatch(
5174
+ multiForm.data.basicInformation?.legalCompanyName,
5175
+ searchResponse.results[0].name
5176
+ )) {
5177
+ setLoadingStatus("success");
5178
+ return currentForms;
5179
+ }
5180
+ try {
5181
+ const companySelectionInput = {
5182
+ state: multiForm.data.basicInformation?.stateOrProvince,
5183
+ name: multiForm.data.basicInformation?.legalCompanyName,
5184
+ tin,
5170
5185
  ...isAgnosticEndpointEnabled ? {
5171
5186
  id: searchResponse.results[0].resultId
5172
5187
  } : { company: searchResponse.results[0] }
5173
- },
5174
- isAgnosticEndpointEnabled
5175
- );
5176
- if (handleTinResponse(!!companySelectionResponse.tinMatched)) {
5177
- verifiedBusiness.value = companySelectionResponse;
5178
- isVerifiedSingleCompanySearchResult.value = true;
5179
- applyVerifiedBusinessData(
5180
- multiForm,
5181
- country,
5182
- verifiedBusiness.peek(),
5183
- isAgnosticEndpointEnabled
5184
- );
5185
- currentForms = updateForms({ searchResults: searchResponse.results });
5186
- } else {
5187
- return setLoadingStatus("success");
5188
+ };
5189
+ const companySelectionResponse = await selectCompany(companySelectionInput);
5190
+ setLoadingStatus("success");
5191
+ const tinMatched2 = !!companySelectionResponse.tinMatched;
5192
+ handleTinMismatchModal(tinMatched2);
5193
+ if (tinMatched2) {
5194
+ verifiedBusiness.value = companySelectionResponse;
5195
+ skipBusinessSelection.value = true;
5196
+ applyVerifiedBusinessData(
5197
+ multiForm,
5198
+ country,
5199
+ verifiedBusiness.peek(),
5200
+ isAgnosticEndpointEnabled
5201
+ );
5202
+ return getRequiredForms({ skipBusinessSelection: skipBusinessSelection.peek() });
5203
+ } else {
5204
+ clearCompanyData2().then();
5205
+ return null;
5206
+ }
5207
+ } catch (e) {
5208
+ logger2.error(e);
5209
+ setLoadingStatus("error");
5210
+ clearCompanyData2().then();
5211
+ return formsWithoutSearchResults;
5188
5212
  }
5189
5213
  }
5190
- if (!searchResponse.results.length) {
5191
- const tinVerificationResponse = await queryClient.fetchQuery({
5192
- queryKey: ["verifyTin", verifyTinQueryInput]
5193
- });
5194
- if (!handleTinResponse(!!tinVerificationResponse.matched)) {
5195
- return setLoadingStatus("success");
5196
- }
5214
+ default: {
5215
+ setLoadingStatus("success");
5216
+ return currentForms;
5197
5217
  }
5198
- setLoadingStatus("success");
5199
- return handleNextClick(currentForms);
5200
- } catch (e) {
5201
- logger2.error(e);
5202
- setLoadingStatus("error");
5203
- const currentForms = updateForms({ searchResults: [] });
5204
- return handleNextClick(currentForms);
5205
5218
  }
5206
5219
  };
5207
5220
  const overrideNextClick = async () => {
@@ -5211,12 +5224,12 @@ function BusinessDetailsDropin({
5211
5224
  }
5212
5225
  switch (activeForm.formId) {
5213
5226
  case "basicInformation": {
5214
- return await attemptBusinessSearch();
5227
+ const currentForms = await attemptBusinessSearch();
5228
+ if (currentForms === null) return;
5229
+ return handleNextClick(currentForms);
5215
5230
  }
5216
5231
  case "businessSelection": {
5217
- const currentForms = updateForms({
5218
- searchResults: companySearchResponse?.results
5219
- });
5232
+ const currentForms = getRequiredForms({});
5220
5233
  return handleNextClick(currentForms);
5221
5234
  }
5222
5235
  default:
@@ -5226,11 +5239,6 @@ function BusinessDetailsDropin({
5226
5239
  const handleCancelClick = () => {
5227
5240
  setIsAddingBusinessDetails(false);
5228
5241
  };
5229
- useEffect(() => {
5230
- updateForms({
5231
- searchResults: searchingError ? [] : companySearchResponse?.results
5232
- });
5233
- }, [updateForms, companySearchResponse?.results, searchingError]);
5234
5242
  const summarySections = useMemo(() => {
5235
5243
  if (activeForm.formId !== "summary") return [];
5236
5244
  return formatDataForSummary(multiForm.data, forms, t, i18n.language, isFeatureEnabled);
@@ -5333,6 +5341,14 @@ function BusinessDetailsDropin({
5333
5341
  ) })
5334
5342
  ] });
5335
5343
  }
5344
+ const handleTinMismatchModal = (matched) => {
5345
+ if (matched) {
5346
+ tinMatched.value = true;
5347
+ } else {
5348
+ businessMismatchModalOpen.value = true;
5349
+ tinMatched.value = false;
5350
+ }
5351
+ };
5336
5352
  const useDocuments = (documentDetails, entityId, options) => {
5337
5353
  const { rootLegalEntityId, baseUrl } = useApiContext();
5338
5354
  const documentUtils = documentApiUtils({