@adyen/kyc-components 4.4.1 → 4.5.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 (316) hide show
  1. package/dist/{AcceptTermsOfServiceComponent-Bl1LwgDS.js → AcceptTermsOfServiceComponent-CecGGc1X.js} +14 -14
  2. package/dist/{AccountSetupRejected-vPCnaWwb.js → AccountSetupRejected-SKRfXM45.js} +1 -1
  3. package/dist/{ActionBar-CmKflAap.js → ActionBar-NfqEa4Lj.js} +1 -1
  4. package/dist/{Address-B2Ce4Di_.js → Address-DmC7K_9S.js} +10 -10
  5. package/dist/{Avatar-C9nv-6c-.js → Avatar-DkqYMxqu.js} +1 -1
  6. package/dist/{BusinessFinancingComponent-BIe4b_PU.js → BusinessFinancingComponent-cYBfPHpF.js} +5 -5
  7. package/dist/{BusinessFinancingDropin-C4pCGsLc.js → BusinessFinancingDropin-jEPDLEm2.js} +106 -143
  8. package/dist/{BusinessFinancingPage-BktVxu1R.js → BusinessFinancingPage-D_bJLl-t.js} +4 -4
  9. package/dist/{BusinessTypeSelectionPage-Ds0ZBrm4.js → BusinessTypeSelectionPage-CZeSwYus.js} +9 -9
  10. package/dist/{Checkbox-DKLas909.js → Checkbox-DEpPoJN_.js} +1 -1
  11. package/dist/{Confirm-BtKpS_Su.js → Confirm-CYgHkICM.js} +2 -2
  12. package/dist/{ConstitutionalDocument-Cd5em_aQ.js → ConstitutionalDocument-DgivwkYj.js} +18 -18
  13. package/dist/{ContactDetails-Sd8KsA2V.js → ContactDetails-opl6-mP9.js} +7 -6
  14. package/dist/{ContextGuidance-qV9z-4df.js → ContextGuidance-gC4RuGIB.js} +1 -1
  15. package/dist/{CountryField-DOF4SekD.js → CountryField-BNisulC2.js} +3 -3
  16. package/dist/{CreateIndividualComponent-81aRSgiZ.js → CreateIndividualComponent-BaXw9qdQ.js} +5 -5
  17. package/dist/{CreateTransferInstrumentComponent-ZsZNPuyJ.js → CreateTransferInstrumentComponent-Dj0ENBoI.js} +4 -4
  18. package/dist/{Currency-Cj6YKv5r.js → Currency-C1POIMJZ.js} +9 -15
  19. package/dist/{CustomerSupport-DCO0Pbb8.js → CustomerSupport-BZYjtYIh.js} +10 -10
  20. package/dist/{DebugModal-B9zrfSu5.js → DebugModal-BfObi6jq.js} +7 -7
  21. package/dist/{DecisionMakerDetailsPage-CPB2zidn.js → DecisionMakerDetailsPage-B9TlNZ0D.js} +8 -8
  22. package/dist/{DecisionMakers-mrFSIvIM.js → DecisionMakers-DH44nnKN.js} +20 -20
  23. package/dist/{Dropzone-CBPMlstg.js → Dropzone-BbFC9YFN.js} +4 -4
  24. package/dist/{EmbeddedStatus-CYIyKmlG.js → EmbeddedStatus-C80N4YnY.js} +2 -2
  25. package/dist/{EndStateLayout-ByYy8V2P.js → EndStateLayout-LuO-W__f.js} +1 -1
  26. package/dist/{EntityAssociation-K-jjCOGT.js → EntityAssociation-CqyEchYv.js} +4 -4
  27. package/dist/{EntityGuidanceStatus-GaYXpHXr.js → EntityGuidanceStatus-kD9uByJU.js} +3 -3
  28. package/dist/{ErrorPanel-Dyn3lGkc.js → ErrorPanel-Wws7gA5m.js} +1 -1
  29. package/dist/{Field-DhEMQ19K.js → Field-BnYaQCpL.js} +1 -1
  30. package/dist/{FormNavigation-CKhhXUBk.js → FormNavigation-DdP2rb2I.js} +3 -3
  31. package/dist/{Individual.rules-BBxVtNhu.js → Individual.rules-BOr9HYuB.js} +10 -6
  32. package/dist/{IndividualDropin-DanfVG9v.js → IndividualDropin-DQrqvsVq.js} +377 -64
  33. package/dist/{InputDate-CBV8pgtD.js → InputDate-D7tf-vyK.js} +1 -1
  34. package/dist/{InputText-C6ZQ-hNy.js → InputText-DJmeZHiM.js} +2 -2
  35. package/dist/{Introduction-BKc-NjQw.js → Introduction-C5ZzdtBf.js} +4 -4
  36. package/dist/{JpAddress-BB9LN-8Q.js → JpAddress-BLSFMUBF.js} +9 -9
  37. package/dist/{LandingLayout-DKoIVzl9.js → LandingLayout-DCtOMPr1.js} +1 -1
  38. package/dist/{LegalCompanyNameField-B4zAvQR1.js → LegalCompanyNameField-C4QSM1kF.js} +6 -6
  39. package/dist/{LegalRepresentativeDetailsPage-B9SFa3jL.js → LegalRepresentativeDetailsPage-BNnoUySl.js} +4 -4
  40. package/dist/{Link-B2yGtZDE.js → Link-DHZbclel.js} +1 -1
  41. package/dist/{ListItem-Dhqhy01R.js → ListItem-DRdYYUwm.js} +2 -2
  42. package/dist/{LoaderWrapper-CMmocBvF.js → LoaderWrapper-DbnjDZaG.js} +1 -1
  43. package/dist/{ManageIndividualComponent-C0rnIl3D.js → ManageIndividualComponent-B8NRYoKJ.js} +4 -4
  44. package/dist/{ManageTermsOfServiceComponent-BXdeBtdc.js → ManageTermsOfServiceComponent-BhqRq0Vj.js} +3 -3
  45. package/dist/{ManageTransferInstrumentComponent-DUw-zWYd.js → ManageTransferInstrumentComponent-Cn_V6mz7.js} +14 -12
  46. package/dist/{MaskedInput-84013BtF.js → MaskedInput-Bmnp6vfE.js} +4 -4
  47. package/dist/{MaybeModal-B3bzXe2d.js → MaybeModal-JqIe8Hi4.js} +2 -2
  48. package/dist/{Modal-CqgVbCkp.js → Modal-C4g499L3.js} +15 -25
  49. package/dist/{Name-BZGqCl21.js → Name-BAP43zgz.js} +4 -4
  50. package/dist/NewSummary-D04coEyZ.js +60 -0
  51. package/dist/{OnboardingDropinComponent-DZmgsC-y.js → OnboardingDropinComponent-CYZHcP1A.js} +73 -72
  52. package/dist/{PayoutDetailsDropin-XbW-J3Is.js → PayoutDetailsDropin-CDOhcFNG.js} +37 -38
  53. package/dist/{PayoutDetailsPage-BuOL1hNz.js → PayoutDetailsPage-B6ObdKoo.js} +5 -5
  54. package/dist/{RadioGroup-Dv77MxKh.js → RadioGroup-Brbd7IGZ.js} +1 -1
  55. package/dist/{RadioGroupCard-BLcz-Pwr.js → RadioGroupCard-CLjm3HWF.js} +1 -1
  56. package/dist/{Review-C25xpvls.js → Review-CUs3fAkl.js} +6 -6
  57. package/dist/{RootBusinessDetailsPage-B1sWmRI0.js → RootBusinessDetailsPage-DbQaq7S-.js} +4 -4
  58. package/dist/{RootBusinessLinesPage-DBXqjxer.js → RootBusinessLinesPage-ClrIGBCx.js} +73 -74
  59. package/dist/{RootIndividualDetailsPage-BBELvyVu.js → RootIndividualDetailsPage-C7NXtN3M.js} +5 -5
  60. package/dist/{Select-BXKtUkAf.js → Select-DeoKjJst.js} +4 -4
  61. package/dist/{SignPCIComponent-DzbJgLYx.js → SignPCIComponent-CBm2s71f.js} +10 -10
  62. package/dist/{SingpassSelection-BZ_pf37b.js → SingpassSelection-D3GBr1C7.js} +6 -6
  63. package/dist/{SoleProprietorshipPage-BOaR_ZZ9.js → SoleProprietorshipPage-3kI9hRjQ.js} +3 -3
  64. package/dist/{SourceOfFundsPage-BJPeRXEv.js → SourceOfFundsPage-BaN1Heuy.js} +37 -32
  65. package/dist/{StepProgressIndicator-D079-QZi.js → StepProgressIndicator-DTMH_ysU.js} +1 -1
  66. package/dist/{StoreProvider-Bd8v9ymn.js → StoreProvider-CDvuKNZP.js} +18 -20
  67. package/dist/{Summary-BVTN9m4J.js → Summary-DrjyVpAf.js} +9 -7
  68. package/dist/{TaxInformationField-FqmKNe1f.js → TaxInformationField-P4kd2RBf.js} +19 -24
  69. package/dist/{TaxReportingDropin-BJZhFZNY.js → TaxReportingDropin-DoLfjPDT.js} +14 -14
  70. package/dist/{TextArea-CijCoq-Y.js → TextArea-8HzHbl8a.js} +2 -2
  71. package/dist/{TileGroup-CJ8S8Tvw.js → TileGroup-C7pJdtfG.js} +2 -2
  72. package/dist/{TrustDetailsPage-4BtAP45U.js → TrustDetailsPage-CZxWlMFk.js} +31 -32
  73. package/dist/{TrustMemberCompanyPage-BWWleoXo.js → TrustMemberCompanyPage-ChlEiIX1.js} +4 -4
  74. package/dist/{TrustMemberIndividualPage-DKdSC4pj.js → TrustMemberIndividualPage-D0ErvJ2Q.js} +4 -4
  75. package/dist/{TrustMemberRoleAndTypePage-DcJU-Rgv.js → TrustMemberRoleAndTypePage--2DWDQYD.js} +21 -21
  76. package/dist/{TrustMembersOverview-BpLWTf93.js → TrustMembersOverview-1pruZb7Q.js} +10 -10
  77. package/dist/{UnincorporatedPartnershipIndividualPage-DW0242pX.js → UnincorporatedPartnershipIndividualPage-DY5POsz3.js} +4 -4
  78. package/dist/{UnincorporatedPartnershipMemberCompanyPage-C2M7U64N.js → UnincorporatedPartnershipMemberCompanyPage-CVS8HujV.js} +4 -4
  79. package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-Dn1u4sIQ.js → UnincorporatedPartnershipMemberRoleAndTypePage-BiWrP7jm.js} +11 -11
  80. package/dist/{UnincorporatedPartnershipMembersOverview-0F0keHpP.js → UnincorporatedPartnershipMembersOverview-CwihTjBJ.js} +7 -7
  81. package/dist/{VerificationErrorAlert-FDKoXtjj.js → VerificationErrorAlert-C5fltP_W.js} +2 -2
  82. package/dist/{ViewVerificationStatusComponent-1271jgnS.js → ViewVerificationStatusComponent-THjhd99f.js} +2 -2
  83. package/dist/adyen-business-financing.js +2 -2
  84. package/dist/adyen-individual-configuration.js +2 -2
  85. package/dist/adyen-individual-status.js +2 -2
  86. package/dist/adyen-invited-decision-maker.js +7 -7
  87. package/dist/adyen-kyc-components.js +15 -15
  88. package/dist/adyen-onboarding.js +2 -2
  89. package/dist/adyen-terms-of-service-management.js +2 -2
  90. package/dist/adyen-terms-of-service-status.js +2 -2
  91. package/dist/adyen-transfer-instrument-configuration.js +2 -2
  92. package/dist/adyen-transfer-instrument-management.js +2 -2
  93. package/dist/adyen-verification-status.js +2 -2
  94. package/dist/{bafinUtils-Bbu_uDNY.js → bafinUtils-BPLSJ1MR.js} +1 -1
  95. package/dist/{bg-BG-DyX-yYYI.js → bg-BG-BnwkqGm9.js} +2 -2
  96. package/dist/{bg-BG-DqRXdvRT.js → bg-BG-C6dSR1jk.js} +2 -2
  97. package/dist/bg-BG-DKld3x63.js +13 -0
  98. package/dist/{commonValidators-Bzh6HljH.js → commonValidators-MPgcG-b2.js} +1 -1
  99. package/dist/{cs-CZ-CmPmY5GZ.js → cs-CZ-B6atm9_Q.js} +2 -2
  100. package/dist/cs-CZ-BBLagJI6.js +13 -0
  101. package/dist/{cs-CZ-BD5bYeuJ.js → cs-CZ-BeMYkFfD.js} +2 -2
  102. package/dist/{da-DK-DaINWU5x.js → da-DK-Cv6XUSoW.js} +2 -2
  103. package/dist/da-DK-D9FgPh5e.js +13 -0
  104. package/dist/{da-DK-h8DYQ_Iq.js → da-DK-mUuPR2YO.js} +2 -2
  105. package/dist/{de-DE-KqZs1FFF.js → de-DE-BplDsJEb.js} +2 -2
  106. package/dist/de-DE-Cg_RNIr-.js +13 -0
  107. package/dist/{de-DE-LQE_LFFL.js → de-DE-CwT6O212.js} +2 -2
  108. package/dist/{dropinUtils-W92bBPsr.js → dropinUtils-CH5elK0n.js} +15 -14
  109. package/dist/{el-GR-DGbzdIL0.js → el-GR-BuAfpG6u.js} +2 -2
  110. package/dist/el-GR-ZRGBgvMu.js +13 -0
  111. package/dist/{el-GR-Bn45KMp-.js → el-GR-dRK7xHn2.js} +2 -2
  112. package/dist/{en-US-BtFr9JRa.js → en-US-DIlZD5Wh.js} +7 -1
  113. package/dist/{en-US-CEnwRsyr.js → en-US-UidrdpJ0.js} +2 -2
  114. package/dist/es-ES-BZiC4JWr.js +13 -0
  115. package/dist/{es-ES-DdGmXdxO.js → es-ES-Bh8k9Zx8.js} +2 -2
  116. package/dist/{es-ES-DzGJ9DrB.js → es-ES-DRsix_Xn.js} +2 -2
  117. package/dist/{et-EE-D5SNtVsM.js → et-EE-BBnYC5q8.js} +2 -2
  118. package/dist/{et-EE-JKt5dMOQ.js → et-EE-BXiYapXy.js} +2 -2
  119. package/dist/et-EE-D_NmrrzQ.js +13 -0
  120. package/dist/{fi-FI-n9XAQuIy.js → fi-FI-BftTiz0c.js} +2 -2
  121. package/dist/fi-FI-CEH4BfU3.js +13 -0
  122. package/dist/{fi-FI-CIYa9SyS.js → fi-FI-DhUeTfn1.js} +2 -2
  123. package/dist/{formUtils-BjHuso5S.js → formUtils-Bl8SBmWK.js} +3 -3
  124. package/dist/{fr-FR-iD1onxpA.js → fr-FR-C6jxjXAI.js} +2 -2
  125. package/dist/{fr-FR-l5z31r7i.js → fr-FR-CocDMzBc.js} +2 -2
  126. package/dist/fr-FR-NxOktkWc.js +13 -0
  127. package/dist/{getName-BL5TV1CY.js → getName-C_u_P9U0.js} +1 -1
  128. package/dist/{getProblemsForEntity-CRllBdyg.js → getProblemsForEntity-BZRck7Nu.js} +1 -1
  129. package/dist/{hr-HR-CAqaI1xJ.js → hr-HR-B_TEU3r4.js} +2 -2
  130. package/dist/{hr-HR-BtowKWUi.js → hr-HR-D9OGeEuB.js} +2 -2
  131. package/dist/hr-HR-D_MUIhtx.js +13 -0
  132. package/dist/{hu-HU-CRpdELm_.js → hu-HU-CX83V9tu.js} +2 -2
  133. package/dist/{hu-HU-MHIPehPS.js → hu-HU-DjaoFDqm.js} +2 -2
  134. package/dist/hu-HU-LxStrFGU.js +13 -0
  135. package/dist/{iframeWidget-krcJrioH.js → iframeWidget-DRlrwi6o.js} +4 -4
  136. package/dist/{isEmpty-DK9awCnt.js → isEmpty-JkZqLeJ_.js} +1 -1
  137. package/dist/{it-IT-BAvmkEF8.js → it-IT-B4bk2Xev.js} +2 -2
  138. package/dist/{it-IT-DkiyBNl6.js → it-IT-CXlaZNIj.js} +2 -2
  139. package/dist/it-IT-OppZz3gW.js +13 -0
  140. package/dist/{ja-JP-B0Ox3Ixh.js → ja-JP-A6ArIIZ8.js} +2 -2
  141. package/dist/ja-JP-CethQRoG.js +13 -0
  142. package/dist/{ja-JP-g6VOUGXZ.js → ja-JP-DK55NCZY.js} +1 -2
  143. package/dist/{japanSupportUtils-CQfmJLNY.js → japanSupportUtils-B6aNrTga.js} +1 -1
  144. package/dist/{localizeDateString-DWN00kQs.js → localizeDateString-DJzFcyYr.js} +1 -1
  145. package/dist/lt-LT-CBTFJxth.js +13 -0
  146. package/dist/{lt-LT-DDs3ngzd.js → lt-LT-CfQUS8PP.js} +2 -2
  147. package/dist/{lt-LT-DWs-lYAv.js → lt-LT-ww192lYg.js} +2 -2
  148. package/dist/{lv-LV-CdCU8ZaR.js → lv-LV-CpHy-ZoF.js} +2 -2
  149. package/dist/lv-LV-DTaBIHLh.js +13 -0
  150. package/dist/{lv-LV-CmB2-IO5.js → lv-LV-DoKxsoVR.js} +2 -2
  151. package/dist/{mapExistingFile-BVZYgI0I.js → mapExistingFile-ebhAtDpQ.js} +4 -4
  152. package/dist/{mapJpAddressSchemaToAddressLocalizations-M9JDtoZu.js → mapJpAddressSchemaToAddressLocalizations-6-TZehkD.js} +2 -2
  153. package/dist/{mapLegalEntityToIndividualSchema-vDezQ_7r.js → mapLegalEntityToIndividualSchema-DV9h15hI.js} +4 -4
  154. package/dist/{mapTransferInstrumentToPayoutAccount-Dqbk-Puh.js → mapTransferInstrumentToPayoutAccount-DtwUb1q5.js} +1 -1
  155. package/dist/{nl-NL-D7k3hkBl.js → nl-NL-BwWFlBOs.js} +2 -2
  156. package/dist/nl-NL-CYFznuWn.js +13 -0
  157. package/dist/{nl-NL-DV4NqPVW.js → nl-NL-J7XpCpQm.js} +2 -2
  158. package/dist/no-NO-BsEie1We.js +13 -0
  159. package/dist/{no-NO-B9618F4_.js → no-NO-CtDyNTm6.js} +2 -2
  160. package/dist/{no-NO-DOOgOJr1.js → no-NO-JWsSd7iY.js} +2 -2
  161. package/dist/{patternValidators-7Z6iDnS9.js → patternValidators-ORRO5SAA.js} +1 -1
  162. package/dist/pl-PL-BH_LPZJa.js +13 -0
  163. package/dist/{pl-PL-DqzUSnFK.js → pl-PL-CCX1rSGF.js} +2 -2
  164. package/dist/{pl-PL-Bvnak7w3.js → pl-PL-CLmmSNgn.js} +2 -2
  165. package/dist/{process-field-configurations-pnB2vQcT.js → process-field-configurations-Cb30tRmq.js} +3 -3
  166. package/dist/{pt-BR-BZkPZ0kK.js → pt-BR-BJOww8U1.js} +2 -2
  167. package/dist/pt-BR-C-YbDjn-.js +13 -0
  168. package/dist/{pt-BR-zuqB_CBf.js → pt-BR-D4BTdo_w.js} +2 -2
  169. package/dist/pt-PT-BTbVsews.js +13 -0
  170. package/dist/{pt-PT-DkfqmPrD.js → pt-PT-CL9VzmZE.js} +2 -2
  171. package/dist/{pt-PT-CFY1O_K0.js → pt-PT-DBZj2dDI.js} +2 -2
  172. package/dist/{resolveEnvironment-BdwWTKt-.js → resolveEnvironment-Btgj9fGu.js} +3 -3
  173. package/dist/ro-RO-C5PJhlmM.js +13 -0
  174. package/dist/{ro-RO-BEVRugNx.js → ro-RO-Cu1T3z6k.js} +2 -2
  175. package/dist/{ro-RO-7CJ4F5iB.js → ro-RO-DaU2--fX.js} +2 -2
  176. package/dist/{roleMetadata-Zzr0nNzK.js → roleMetadata-YdrYEXdt.js} +2 -2
  177. package/dist/{sk-SK-DubwJifw.js → sk-SK-B-1yRol7.js} +2 -2
  178. package/dist/{sk-SK-Bh7WfMNd.js → sk-SK-CEjJ-qZG.js} +2 -2
  179. package/dist/sk-SK-DO-AqRjE.js +13 -0
  180. package/dist/{sl-SI-CxGdSydw.js → sl-SI-BfO3xEJx.js} +2 -2
  181. package/dist/sl-SI-CJH14wbj.js +13 -0
  182. package/dist/{sl-SI-59OQIZ3f.js → sl-SI-C_4ajjU4.js} +2 -2
  183. package/dist/style.css +11 -9
  184. package/dist/styles-CLV89_hH.js +11 -9
  185. package/dist/{sv-SE-CgB54Aa4.js → sv-SE-CMLKzwtj.js} +2 -2
  186. package/dist/{sv-SE-CQWBP7n1.js → sv-SE-DKnUr7xo.js} +2 -2
  187. package/dist/sv-SE-ZsucW_Uj.js +13 -0
  188. package/dist/types/api/companySelection/useCompanySelection.d.ts +1 -1
  189. package/dist/types/api/invitations/invitations.types.d.ts +14 -0
  190. package/dist/types/api/invitations/useCreateInvitation.d.ts +14 -0
  191. package/dist/types/components/Apps/tasks/TaskList/types.d.ts +2 -2
  192. package/dist/types/components/Business/forms/BusinessDetails/forms.d.ts +2 -2
  193. package/dist/types/components/Business/forms/FinancialInformation/FinancialInformation.d.ts +1 -1
  194. package/dist/types/components/Business/forms/FinancialInformation/mapping/mapFinancialInformationToFinancialReport.d.ts +1 -1
  195. package/dist/types/components/Business/forms/FinancialInformation/types.d.ts +7 -17
  196. package/dist/types/components/Business/forms/rules.d.ts +0 -1
  197. package/dist/types/components/Business/utils/useCompanySearchExperiments.d.ts +0 -1
  198. package/dist/types/components/BusinessLines/tasks/utils.d.ts +4 -4
  199. package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +2607 -2607
  200. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingFinancialInformation.d.ts +1 -1
  201. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/types.d.ts +4 -4
  202. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/utils.d.ts +4 -5
  203. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/validate.d.ts +1 -1
  204. package/dist/types/components/Individual/forms/AdditionalPersonalDetails/AdditionalPersonalDetails.types.d.ts +2 -2
  205. package/dist/types/components/Individual/forms/IdDocumentUpload/types.d.ts +2 -2
  206. package/dist/types/components/Individual/forms/IdVerificationMethod/validateExtractionResult.d.ts +2 -2
  207. package/dist/types/components/Individual/forms/Individual.d.ts +5 -0
  208. package/dist/types/components/Individual/forms/Individual.rules.d.ts +1 -0
  209. package/dist/types/components/Individual/forms/Individual.types.d.ts +2 -0
  210. package/dist/types/components/Individual/forms/InviteDetails/InviteDetails.d.ts +4 -0
  211. package/dist/types/components/Individual/forms/InviteDetails/InviteDetails.types.d.ts +13 -0
  212. package/dist/types/components/Individual/forms/InviteDetails/validate.d.ts +3 -0
  213. package/dist/types/components/Individual/forms/form-ids.d.ts +1 -1
  214. package/dist/types/components/Shared/FormNavigation/types.d.ts +2 -2
  215. package/dist/types/components/Shared/FormWrapper/FormWrapper.d.ts +2 -2
  216. package/dist/types/components/Shared/NewSummary/NewSummary.d.ts +1 -1
  217. package/dist/types/components/Shared/fields/Currency/fieldConfig.d.ts +3 -0
  218. package/dist/types/components/Shared/fields/Currency/types.d.ts +1 -1
  219. package/dist/types/components/Shared/fields/FinancialReportingDate/fieldConfig.d.ts +3 -0
  220. package/dist/types/components/Shared/fields/IdFieldTypeSelector/CompanyRegistrationNumberTypeSelector.d.ts +2 -2
  221. package/dist/types/components/Shared/fields/IdFieldTypeSelector/VatNumberTypeSelector.d.ts +2 -2
  222. package/dist/types/components/Shared/fields/IdFieldTypeSelector/countryIdNumberTypes.d.ts +5 -5
  223. package/dist/types/components/Shared/fields/NumberOfEmployees/fieldConfig.d.ts +3 -0
  224. package/dist/types/components/Shared/fields/ReportedValueOptionField/ReportedValueOptionField.d.ts +3 -0
  225. package/dist/types/components/Shared/fields/ReportedValueOptionField/fieldConfig.d.ts +5 -0
  226. package/dist/types/components/Shared/fields/ReportedValueOptionField/types.d.ts +10 -0
  227. package/dist/types/components/Shared/forms/Address/types.d.ts +3 -3
  228. package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
  229. package/dist/types/components/Shared/forms/BusinessTypeSelection/types.d.ts +6 -6
  230. package/dist/types/components/Shared/forms/DocumentUpload/types.d.ts +2 -2
  231. package/dist/types/components/Shared/forms/RegistrationAddress/types.d.ts +2 -2
  232. package/dist/types/components/Trust/utils/trustMemberGuidance.d.ts +2 -2
  233. package/dist/types/components/UnincorporatedPartnership/tasks/UnincorporatedPartnershipMembers/types.d.ts +2 -2
  234. package/dist/types/components/ui/atoms/RadioGroup/RadioGroup.d.ts +2 -2
  235. package/dist/types/components/ui/molecules/Dropzone/FilePicker.d.ts +2 -2
  236. package/dist/types/components/ui/molecules/Dropzone/types.d.ts +2 -2
  237. package/dist/types/context/ExperimentContext/types.d.ts +0 -4
  238. package/dist/types/core/models/api/financialReport.d.ts +7 -1
  239. package/dist/types/core/user-events.d.ts +1 -1
  240. package/dist/types/embeds/business-financing/adyen-business-financing.types.d.ts +5 -0
  241. package/dist/types/embeds/individual-configuration/adyen-individual-configuration.types.d.ts +5 -0
  242. package/dist/types/embeds/individual-status/adyen-individual-status.types.d.ts +5 -0
  243. package/dist/types/embeds/invited-decision-maker/adyen-invited-decision-maker.types.d.ts +5 -0
  244. package/dist/types/embeds/onboarding/adyen-onboarding.types.d.ts +5 -0
  245. package/dist/types/embeds/terms-of-service-management/adyen-terms-of-service-management.types.d.ts +5 -0
  246. package/dist/types/embeds/terms-of-service-status/adyen-terms-of-service-status.types.d.ts +5 -0
  247. package/dist/types/embeds/transfer-instrument-configuration/adyen-transfer-instrument-configuration.types.d.ts +5 -0
  248. package/dist/types/embeds/transfer-instrument-management/adyen-transfer-instrument-management.types.d.ts +5 -0
  249. package/dist/types/embeds/verification-status/adyen-verification-status.types.d.ts +5 -0
  250. package/dist/types/hooks/useForm/types.d.ts +3 -3
  251. package/dist/types/language/types.d.ts +3 -8
  252. package/dist/types/language/utils.d.ts +2 -2
  253. package/dist/types/types/errors/error-message.d.ts +2 -2
  254. package/dist/types/types/errors/remediation.d.ts +2 -2
  255. package/dist/types/types/form-configuration.d.ts +2 -2
  256. package/dist/types/types/form.d.ts +2 -2
  257. package/dist/types/utils/decisionMaker.d.ts +2 -2
  258. package/dist/types/utils/entityStatusUtil.d.ts +1 -1
  259. package/dist/types/utils/fieldConfigurations.d.ts +2 -2
  260. package/dist/types/utils/formUtils.d.ts +4 -3
  261. package/dist/types/utils/roleMetadata.d.ts +4 -4
  262. package/dist/{types-B9EOUKVu.js → types-DItwm0zf.js} +2 -2
  263. package/dist/{types-Dtarzusy.js → types-DV-k9m0i.js} +1 -1
  264. package/dist/{types-BgzibKda.js → types-DhC6v0PF.js} +1 -1
  265. package/dist/{types-DP1DvIeR.js → types-_ugkpUNx.js} +2 -6
  266. package/dist/{unincorporated-partnership-Dqnnu9xK.js → unincorporated-partnership-CIe8e4wR.js} +1 -1
  267. package/dist/{useAssociatedLegalEntity-C4AIT84p.js → useAssociatedLegalEntity-Cn5H9wTJ.js} +1 -1
  268. package/dist/{useBusinessDetailsData-CKe9mCKo.js → useBusinessDetailsData-FR_NRvw9.js} +338 -312
  269. package/dist/{useCreateLegalEntity-B16sUD09.js → useCreateLegalEntity-p2CrQlAX.js} +1 -1
  270. package/dist/{useForm-tzX14noT.js → useForm-C8AWA3sh.js} +3 -3
  271. package/dist/{useFormContext-C8U6tZ6w.js → useFormContext-C1SR24Ki.js} +7 -7
  272. package/dist/{FormWrapper-Du6lqE7g.js → useGlobalData-CLlOpZnu.js} +66 -11
  273. package/dist/{useMultiForm-Dv6aeBzd.js → useMultiForm-DPExov8c.js} +12 -6
  274. package/dist/{useOnboardingStatus-D2IJejYc.js → useOnboardingStatus-BD-8KaSZ.js} +1 -1
  275. package/dist/{useScenarios-kkxotRrd.js → useScenarios-DJzsH2gd.js} +1 -1
  276. package/dist/{useTermsOfServiceStatus-CehmZhbl.js → useTermsOfServiceStatus-CbE9Ro0N.js} +1 -1
  277. package/dist/{useToastContext-B6bVTtlk.js → useToastContext-D9-q58mO.js} +1 -1
  278. package/dist/{useUnincorporatedPartnershipMembers-CFNOVri5.js → useUnincorporatedPartnershipMembers-DB6EK6uW.js} +4 -4
  279. package/dist/{useUpdateBusinessLines-Slv02Dto.js → useUpdateBusinessLines-1pywGJxr.js} +4 -4
  280. package/dist/{useUpdateLegalEntity-Bx5p8oMR.js → useUpdateLegalEntity-BswSgPWT.js} +2 -2
  281. package/dist/{utils-SCRgU7La.js → utils-B-6ygFSY.js} +3 -3
  282. package/dist/{utils-DmlO6ZEu.js → utils-BQ0Na9UT.js} +2 -2
  283. package/dist/{utils-Dc2gNGsw.js → utils-CFBp4SLl.js} +1 -1
  284. package/dist/{utils-DFPTtgzx.js → utils-D4c7_3F2.js} +6 -6
  285. package/dist/{utils-CWnE_Cxa.js → utils-DgFq9CIB.js} +1 -1
  286. package/dist/{validate-Dc9plnDh.js → validate-CdMI5st2.js} +5 -5
  287. package/dist/{validate-CZQaWwSn.js → validate-D__xHxXc.js} +24 -12
  288. package/dist/{validationError-BQGuWR5B.js → validationError-NidfTgvm.js} +1 -1
  289. package/package.json +7 -17
  290. package/dist/bg-BG-CRbKoTLs.js +0 -13
  291. package/dist/cs-CZ-DR5Pfj3g.js +0 -13
  292. package/dist/da-DK-CG2NcTvu.js +0 -13
  293. package/dist/de-DE-NMS4xBab.js +0 -13
  294. package/dist/el-GR-DWM1mhuZ.js +0 -13
  295. package/dist/es-ES-BWe46jej.js +0 -13
  296. package/dist/et-EE-CylmXBkF.js +0 -13
  297. package/dist/fi-FI-larJ5zXy.js +0 -13
  298. package/dist/fr-FR-DVqpakkq.js +0 -13
  299. package/dist/hr-HR-C-Hn5lAD.js +0 -13
  300. package/dist/hu-HU-DynB7VhD.js +0 -13
  301. package/dist/it-IT-M7AqGzBo.js +0 -13
  302. package/dist/ja-JP-BcGZdMJa.js +0 -13
  303. package/dist/lt-LT-SQmafLDX.js +0 -13
  304. package/dist/lv-LV-B5Os0zqy.js +0 -13
  305. package/dist/nl-NL-BVRcJEzp.js +0 -13
  306. package/dist/no-NO-DlnsfTwn.js +0 -13
  307. package/dist/pl-PL-B-V8iF6C.js +0 -13
  308. package/dist/pt-BR-Bq41lr7C.js +0 -13
  309. package/dist/pt-PT-D-EPzKV-.js +0 -13
  310. package/dist/ro-RO-Dt2gs44k.js +0 -13
  311. package/dist/sk-SK-B6LcEArz.js +0 -13
  312. package/dist/sl-SI-DNbu8KiE.js +0 -13
  313. package/dist/sv-SE-DgMcRRS8.js +0 -13
  314. package/dist/types/api/utils/getLookupBaseUrl.d.ts +0 -9
  315. package/dist/useGlobalData-DqYpj2Z7.js +0 -68
  316. /package/dist/types/components/{Business/forms/FinancialInformation → Shared/fields/ReportedValueOptionField}/ReportedValue.d.ts +0 -0
@@ -2,7 +2,7 @@
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] = "3d5edd28-ea1d-4336-9fc4-108b7e56e4f8", e._sentryDebugIdIdentifier = "sentry-dbid-3d5edd28-ea1d-4336-9fc4-108b7e56e4f8");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "7fc0a0a9-2a39-406d-b6e5-32b841816f9c", e._sentryDebugIdIdentifier = "sentry-dbid-7fc0a0a9-2a39-406d-b6e5-32b841816f9c");
6
6
  } catch (e) {
7
7
  }
8
8
  }
@@ -10,63 +10,61 @@
10
10
  import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
11
11
  import { useMutation, useQuery, skipToken, useQueryClient } from "@tanstack/preact-query";
12
12
  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-Slv02Dto.js";
14
- import { u as useScenarios } from "./useScenarios-kkxotRrd.js";
15
- import { u as useCreateLegalEntity } from "./useCreateLegalEntity-B16sUD09.js";
16
- import { u as useToastContext, a as useInvalidateRootLegalEntity } from "./useToastContext-B6bVTtlk.js";
17
- import { u as useUpdateLegalEntity } from "./useUpdateLegalEntity-Bx5p8oMR.js";
18
- import { u as useTranslation, bH as isISIN, W as Button, J as useExperimentsContext, R as useLegalEntity, U as ROOT_LE, am as datasetUtilities, aB as Header, O as Typography, V as Loader, aa as CountryCodes, k as useSettingsContext, aN as useAllowedCountries, b as useApiContext, h as httpPost, P as StackLayout, G as Alert, ao as entriesOf, z as useAnalyticsContext, m as createLogger, v as useAccountHolder, ax as isEmpty, i as isUndefinedOrNull, y as TaskTypes, L as LegalEntityTypes, bI as businessDetailsComponentsKeyMapping, bJ as solePropBusinessDetailsKeyMapping, ah as objectsDeepEqual, aS as keysOf, bK as solePropBusinessDetailsApiKeyMapping, bl as businessDetailsApiKeyMapping, at as Scenarios, aZ as filterOutUnwantedAssociationsIfRootLE, aX as drop, ad as getOwnEntityAssociations, b2 as doArraysMatch, bL as solePropBusinessDetailsDocumentMapping, bM as businessDetailsDocumentMapping } from "./StoreProvider-Bd8v9ymn.js";
19
- import { u as useFormContext, F as FormContextProvider, a as FormFlow } from "./useFormContext-C8U6tZ6w.js";
20
- import { C as CompanyTypesValues } from "./bafinUtils-Bbu_uDNY.js";
21
- import { c as composePerScenarioFormConfigurations, g as getPropsFromConfigurations } from "./process-field-configurations-pnB2vQcT.js";
22
- import { a as addValidityToForms, u as useFormComposer } from "./dropinUtils-W92bBPsr.js";
23
- import { u as useMultiForm } from "./useMultiForm-Dv6aeBzd.js";
24
- import { u as uppercase, m as mapExistingFile, g as getPageName, b as useScenarioConfiguration } from "./mapExistingFile-BVZYgI0I.js";
25
- import { C as Confirm } from "./Confirm-BtKpS_Su.js";
26
- import { a as getDocument, j as getDocuments, c as createDocumentRequest, k as mergeProofOfOwnershipAttachments, b as getFileExtention, d as documentApiUtils } from "./validate-Dc9plnDh.js";
27
- import { d as TAX_INFORMATION_FIELD, r as requestingBanking, e as requestingIssuing, t as taxInformationDefaultFieldMetadata, a as taxInformationDefaultFieldConfig, T as TaxInformationField, C as COUNTRY_OF_GOVERNING_LAW_POSSIBLE, f as getTaxInformationPlaceholderText, S as StateCodesUS, h as isUsingCompanySearch, M as MemoizedDocumentUpload, j as getCompanyRegistrationNumberOptions, k as countryToTaxInfoTypeMap, l as isRegistrationNumberAbsentStateV4Scenario, m as getTaxIdNumberOptions, n as COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT, o as rules, g as getFieldsWithExistingData } from "./TaxInformationField-FqmKNe1f.js";
28
- import { u as usePageLandedEvent, s as summaryStep } from "./Summary-BVTN9m4J.js";
29
- 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 exemptFromRegistrationNumberDefaultFieldMetadata } from "./ConstitutionalDocument-Cd5em_aQ.js";
30
- import { K as KEYBOARD_KEYS, M as Modal, a as ModalContent } from "./Modal-CqgVbCkp.js";
31
- import { t as toFullWidth, a as mapJpAddressSummary, m as mapJpAddressSchemaToAddressLocalizations } from "./mapJpAddressSchemaToAddressLocalizations-M9JDtoZu.js";
32
- import { g as getAddressSchemaForCountry, C as COUNTRIES_WITH_STATES_DATASET, a as getAddressSchemaLabelsByCountry, m as mapAddressLabels, c as getKeyForField } from "./utils-DmlO6ZEu.js";
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-1pywGJxr.js";
14
+ import { u as useScenarios } from "./useScenarios-DJzsH2gd.js";
15
+ import { u as useCreateLegalEntity } from "./useCreateLegalEntity-p2CrQlAX.js";
16
+ import { u as useToastContext, a as useInvalidateRootLegalEntity } from "./useToastContext-D9-q58mO.js";
17
+ import { u as useUpdateLegalEntity } from "./useUpdateLegalEntity-BswSgPWT.js";
18
+ import { u as useTranslation, bH as isISIN, W as Button, J as useExperimentsContext, R as useLegalEntity, U as ROOT_LE, am as datasetUtilities, aB as Header, O as Typography, V as Loader, aa as CountryCodes, k as useSettingsContext, aN as useAllowedCountries, b as useApiContext, h as httpPost, P as StackLayout, G as Alert, ao as entriesOf, z as useAnalyticsContext, m as createLogger, v as useAccountHolder, y as TaskTypes, L as LegalEntityTypes, ax as isEmpty, i as isUndefinedOrNull, bI as businessDetailsComponentsKeyMapping, bJ as solePropBusinessDetailsKeyMapping, ah as objectsDeepEqual, aS as keysOf, bK as solePropBusinessDetailsApiKeyMapping, bl as businessDetailsApiKeyMapping, at as Scenarios, aZ as filterOutUnwantedAssociationsIfRootLE, aX as drop, ad as getOwnEntityAssociations, b2 as doArraysMatch, bL as solePropBusinessDetailsDocumentMapping, bM as businessDetailsDocumentMapping } from "./StoreProvider-CDvuKNZP.js";
19
+ import { u as useFormContext, F as FormContextProvider, a as FormFlow } from "./useFormContext-C1SR24Ki.js";
20
+ import { C as CompanyTypesValues } from "./bafinUtils-BPLSJ1MR.js";
21
+ import { c as composePerScenarioFormConfigurations, g as getPropsFromConfigurations } from "./process-field-configurations-Cb30tRmq.js";
22
+ import { a as addValidityToForms, u as useFormComposer } from "./dropinUtils-CH5elK0n.js";
23
+ import { u as useMultiForm } from "./useMultiForm-DPExov8c.js";
24
+ import { u as uppercase, m as mapExistingFile, g as getPageName, b as useScenarioConfiguration } from "./mapExistingFile-ebhAtDpQ.js";
25
+ import { C as Confirm } from "./Confirm-CYgHkICM.js";
26
+ import { a as getDocument, j as getDocuments, c as createDocumentRequest, k as mergeProofOfOwnershipAttachments, b as getFileExtention, d as documentApiUtils } from "./validate-CdMI5st2.js";
27
+ import { d as TAX_INFORMATION_FIELD, r as requestingBanking, e as requestingIssuing, t as taxInformationDefaultFieldMetadata, a as taxInformationDefaultFieldConfig, T as TaxInformationField, C as COUNTRY_OF_GOVERNING_LAW_POSSIBLE, f as getTaxInformationPlaceholderText, S as StateCodesUS, h as isUsingCompanySearch, M as MemoizedDocumentUpload, j as getCompanyRegistrationNumberOptions, k as countryToTaxInfoTypeMap, l as isRegistrationNumberAbsentStateV4Scenario, m as getTaxIdNumberOptions, n as COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT, o as rules, g as getFieldsWithExistingData } from "./TaxInformationField-P4kd2RBf.js";
28
+ import { u as usePageLandedEvent, s as summaryStep } from "./Summary-DrjyVpAf.js";
29
+ 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 exemptFromRegistrationNumberDefaultFieldMetadata } from "./ConstitutionalDocument-DgivwkYj.js";
30
+ import { K as KEYBOARD_KEYS, M as Modal, a as ModalContent } from "./Modal-C4g499L3.js";
31
+ import { t as toFullWidth, a as mapJpAddressSummary, m as mapJpAddressSchemaToAddressLocalizations } from "./mapJpAddressSchemaToAddressLocalizations-6-TZehkD.js";
32
+ import { g as getAddressSchemaForCountry, C as COUNTRIES_WITH_STATES_DATASET, a as getAddressSchemaLabelsByCountry, m as mapAddressLabels, c as getKeyForField } from "./utils-BQ0Na9UT.js";
33
33
  import { r as resolveFieldMetadata } from "./fieldConfigurations-BUT9DTUH.js";
34
34
  import { s as summaryItem } from "./summaryItem-CAQCQSkt.js";
35
- import { f as formatCurrency, A as ALLOWED_SOF_SERVICES } from "./utils-SCRgU7La.js";
36
- 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-B2Ce4Di_.js";
35
+ import { f as formatCurrency, A as ALLOWED_SOF_SERVICES } from "./utils-B-6ygFSY.js";
36
+ 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-DmC7K_9S.js";
37
37
  import { S as SettingNames } from "./types-CQ2p58-6.js";
38
- import { o as organizationTypesToSkipCompanyStructureForm } from "./utils-DFPTtgzx.js";
39
- import { i as isValidationError, p as processValidationErrors, a as isMaintenanceModeError } from "./validationError-BQGuWR5B.js";
40
- import { i as isEmpty$1 } from "./isEmpty-DK9awCnt.js";
38
+ import { o as organizationTypesToSkipCompanyStructureForm } from "./utils-D4c7_3F2.js";
39
+ import { i as isValidationError, p as processValidationErrors, a as isMaintenanceModeError } from "./validationError-NidfTgvm.js";
40
+ import { i as isEmpty$1 } from "./isEmpty-JkZqLeJ_.js";
41
41
  import { f as formatObject } from "./utils-DNSfZiio.js";
42
42
  import { b as mapAddressLocalizationToJpAddressSchema, a as mapApiScriptLocalizationToSchemaFields, m as mapSchemaFieldsToApiScriptLocalization } from "./mapAddressLocalizationToJpAddressSchema-vJWbpAyq.js";
43
- 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-Cj6YKv5r.js";
44
- import { g as getLegalCompanyNameHelperText, L as LEGAL_COMPANY_NAME_FIELD, d as defaultFieldMetadataV4, a as defaultFieldMetadata$2, b as defaultFieldConfigV4, c as defaultFieldConfig$2 } from "./LegalCompanyNameField-B4zAvQR1.js";
45
- import { j as useBusinessLines } from "./OnboardingDropinComponent-DZmgsC-y.js";
43
+ 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-C1POIMJZ.js";
44
+ import { g as getLegalCompanyNameHelperText, L as LEGAL_COMPANY_NAME_FIELD, d as defaultFieldMetadataV4, a as defaultFieldMetadata$2, b as defaultFieldConfigV4, c as defaultFieldConfig$2 } from "./LegalCompanyNameField-C4QSM1kF.js";
45
+ import { j as useBusinessLines } from "./OnboardingDropinComponent-CYZHcP1A.js";
46
46
  import { Suspense, lazy } from "preact/compat";
47
- import { C as Checkbox } from "./Checkbox-DKLas909.js";
48
- import { F as Field } from "./Field-DhEMQ19K.js";
49
- import { E as ErrorPanel } from "./ErrorPanel-Dyn3lGkc.js";
50
- import { I as InputDate, f as formatDateObj } from "./InputDate-CBV8pgtD.js";
51
- import { a as validateNotEmptyOnBlur, v as validatePatternOnBlur, b as validateJaKanaLegalCompanyName, c as validateJaHaniLegalCompanyName } from "./patternValidators-7Z6iDnS9.js";
52
- import { M as MaskedInput, m as makeMask, d as alphanumericInputs, b as alphaInputs, n as numericInputs } from "./MaskedInput-84013BtF.js";
53
- import { m as mergeFieldMetadataIntoProps, c as createFormUtils } from "./formUtils-BjHuso5S.js";
54
- import { i as isJapanLocalizationEnabled } from "./japanSupportUtils-CQfmJLNY.js";
47
+ import { C as Checkbox } from "./Checkbox-DEpPoJN_.js";
48
+ import { F as Field } from "./Field-BnYaQCpL.js";
49
+ import { E as ErrorPanel } from "./ErrorPanel-Wws7gA5m.js";
50
+ import { I as InputDate, f as formatDateObj } from "./InputDate-D7tf-vyK.js";
51
+ import { a as validateNotEmptyOnBlur, v as validatePatternOnBlur, b as validateJaKanaLegalCompanyName, c as validateJaHaniLegalCompanyName } from "./patternValidators-ORRO5SAA.js";
52
+ import { M as MaskedInput, m as makeMask, d as alphanumericInputs, b as alphaInputs, n as numericInputs } from "./MaskedInput-Bmnp6vfE.js";
53
+ import { m as mergeFieldMetadataIntoProps, c as createFormUtils } from "./formUtils-Bl8SBmWK.js";
54
+ import { i as isJapanLocalizationEnabled } from "./japanSupportUtils-B6aNrTga.js";
55
55
  import { u as useDebouncedCallback } from "./debouncedInputEvent-Cv2S512Y.js";
56
56
  import { signal } from "@preact/signals";
57
57
  import cx from "classnames";
58
- import { L as Link } from "./Link-B2yGtZDE.js";
58
+ import { L as Link } from "./Link-DHZbclel.js";
59
59
  import { S as StructuredList } from "./StructuredList-CNha20ka.js";
60
- import { I as InputText } from "./InputText-C6ZQ-hNy.js";
61
- import { C as CountryField, a as COUNTRY_FIELD } from "./CountryField-DOF4SekD.js";
62
- import { L as LoaderWrapper } from "./LoaderWrapper-CMmocBvF.js";
60
+ import { I as InputText } from "./InputText-DJmeZHiM.js";
61
+ import { C as CountryField, a as COUNTRY_FIELD } from "./CountryField-BNisulC2.js";
62
+ import { L as LoaderWrapper } from "./LoaderWrapper-DbnjDZaG.js";
63
63
  import { C as Card } from "./Card-OQuFzmxm.js";
64
- import { L as ListItem } from "./ListItem-Dhqhy01R.js";
65
- import { T as TileGroup } from "./TileGroup-CJ8S8Tvw.js";
66
- import { R as RadioGroup } from "./RadioGroup-Dv77MxKh.js";
67
- import { u as useGlobalDataSlice } from "./useGlobalData-DqYpj2Z7.js";
68
- import { u as useForm } from "./useForm-tzX14noT.js";
69
- import { c as currencyByCountry } from "./types-B9EOUKVu.js";
64
+ import { L as ListItem } from "./ListItem-DRdYYUwm.js";
65
+ import { T as TileGroup } from "./TileGroup-C7pJdtfG.js";
66
+ import { c as currencyByCountry } from "./types-DItwm0zf.js";
67
+ import { R as RadioGroup } from "./RadioGroup-Brbd7IGZ.js";
70
68
  const DATE_OF_INCORPORATION_FIELD = [
71
69
  "dateOfIncorporation"
72
70
  ];
@@ -336,7 +334,7 @@ const verifiedBusiness = signal(void 0);
336
334
  const isVerifiedSingleCompanySearchResult = signal(false);
337
335
  const additionalInformationContent = "adyen-kyc-additional-information-content";
338
336
  const additionalInformationSectionHeading = "adyen-kyc-additional-information-section-heading";
339
- const styles$5 = {
337
+ const styles$4 = {
340
338
  additionalInformationContent,
341
339
  additionalInformationSectionHeading
342
340
  };
@@ -345,7 +343,7 @@ const verifiedBusinessCardContent = "adyen-kyc-verified-business-card-content";
345
343
  const verifiedBusinessCardContentCollapsed = "adyen-kyc-verified-business-card-content-collapsed";
346
344
  const verifiedBusinessCardContentExpanded = "adyen-kyc-verified-business-card-content-expanded";
347
345
  const verifiedBusinessCardExpandButton = "adyen-kyc-verified-business-card-expand-button";
348
- const styles$4 = {
346
+ const styles$3 = {
349
347
  verifiedBusinessCard,
350
348
  verifiedBusinessCardContent,
351
349
  verifiedBusinessCardContentCollapsed,
@@ -390,12 +388,12 @@ function VerifiedBusinessCard({
390
388
  ].filter((item) => !!item.details),
391
389
  [address, addressLink, t, verifiedBusiness2?.legalForm]
392
390
  );
393
- const expandedContentClasses = cx(styles$4.verifiedBusinessCardContent, {
394
- [styles$4.verifiedBusinessCardContentCollapsed]: !expanded,
395
- [styles$4.verifiedBusinessCardContentExpanded]: expanded
391
+ const expandedContentClasses = cx(styles$3.verifiedBusinessCardContent, {
392
+ [styles$3.verifiedBusinessCardContentCollapsed]: !expanded,
393
+ [styles$3.verifiedBusinessCardContentExpanded]: expanded
396
394
  });
397
- return /* @__PURE__ */ jsxs("section", { className: styles$4.verifiedBusinessCard, children: [
398
- /* @__PURE__ */ jsxs("div", { className: styles$4.verifiedBusinessCardContent, children: [
395
+ return /* @__PURE__ */ jsxs("section", { className: styles$3.verifiedBusinessCard, children: [
396
+ /* @__PURE__ */ jsxs("div", { className: styles$3.verifiedBusinessCardContent, children: [
399
397
  /* @__PURE__ */ jsx(StructuredList, { items: baseItems }),
400
398
  /* @__PURE__ */ jsx(Divider, {})
401
399
  ] }),
@@ -403,11 +401,11 @@ function VerifiedBusinessCard({
403
401
  /* @__PURE__ */ jsx(StructuredList, { items: expandedItems }),
404
402
  /* @__PURE__ */ jsx(Divider, {})
405
403
  ] }),
406
- /* @__PURE__ */ jsx("div", { className: styles$4.verifiedBusinessCardExpandButton, children: /* @__PURE__ */ jsx(Button, { variant: "link", onClick: () => setExpanded(!expanded), children: expanded ? t(($) => $["hideDetails"], { ns: "common" }) : t(($) => $["showDetails"], { ns: "common" }) }) })
404
+ /* @__PURE__ */ jsx("div", { className: styles$3.verifiedBusinessCardExpandButton, children: /* @__PURE__ */ jsx(Button, { variant: "link", onClick: () => setExpanded(!expanded), children: expanded ? t(($) => $["hideDetails"], { ns: "common" }) : t(($) => $["showDetails"], { ns: "common" }) }) })
407
405
  ] });
408
406
  }
409
407
  const LazyJpAddress = lazy(
410
- async () => (await import("./JpAddress-BB9LN-8Q.js")).JpAddress
408
+ async () => (await import("./JpAddress-BLSFMUBF.js")).JpAddress
411
409
  );
412
410
  const ADDITIONAL_INFORMATION_FORM_ID = "additionalInformation";
413
411
  const ADDITIONAL_INFORMATION_FIELDS = [
@@ -700,9 +698,9 @@ function AdditionalInformation({
700
698
  formUtils
701
699
  }
702
700
  ),
703
- /* @__PURE__ */ jsxs("div", { className: styles$5.additionalInformationContent, children: [
701
+ /* @__PURE__ */ jsxs("div", { className: styles$4.additionalInformationContent, children: [
704
702
  showVerified && /* @__PURE__ */ jsxs("section", { children: [
705
- /* @__PURE__ */ jsx("div", { className: styles$5.additionalInformationSectionHeading, children: /* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", children: t(($) => $["verifiedInformation"], { ns: "business" }) }) }),
703
+ /* @__PURE__ */ jsx("div", { className: styles$4.additionalInformationSectionHeading, children: /* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", children: t(($) => $["verifiedInformation"], { ns: "business" }) }) }),
706
704
  /* @__PURE__ */ jsx(
707
705
  VerifiedBusinessCard,
708
706
  {
@@ -712,7 +710,7 @@ function AdditionalInformation({
712
710
  )
713
711
  ] }),
714
712
  /* @__PURE__ */ jsxs("section", { children: [
715
- showVerified && /* @__PURE__ */ jsx("div", { className: styles$5.additionalInformationSectionHeading, children: /* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", children: t(($) => $["otherBusinessInformation"], { ns: "business" }) }) }),
713
+ showVerified && /* @__PURE__ */ jsx("div", { className: styles$4.additionalInformationSectionHeading, children: /* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", children: t(($) => $["otherBusinessInformation"], { ns: "business" }) }) }),
716
714
  /* @__PURE__ */ jsxs("fieldset", { children: [
717
715
  showField(LEGAL_FORM_FIELDS) && /* @__PURE__ */ jsx(
718
716
  LegalFormField,
@@ -918,7 +916,7 @@ function AdditionalInformation({
918
916
  ] })
919
917
  ] }),
920
918
  showStockData && /* @__PURE__ */ jsxs("section", { children: [
921
- /* @__PURE__ */ jsx("div", { className: styles$5.additionalInformationSectionHeading, children: /* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", children: t(($) => $["stockExchangeInformation"], { ns: "business" }) }) }),
919
+ /* @__PURE__ */ jsx("div", { className: styles$4.additionalInformationSectionHeading, children: /* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", children: t(($) => $["stockExchangeInformation"], { ns: "business" }) }) }),
922
920
  /* @__PURE__ */ jsxs("fieldset", { children: [
923
921
  showField(STOCK_EXCHANGE_MIC_FIELD) && /* @__PURE__ */ jsx(
924
922
  StockExchangeMICField,
@@ -992,7 +990,7 @@ function AdditionalInformation({
992
990
  ] })
993
991
  ] }),
994
992
  /* @__PURE__ */ jsxs("section", { "data-testid": "registeredBusinessAddress", children: [
995
- /* @__PURE__ */ jsxs("div", { className: styles$5.additionalInformationSectionHeading, children: [
993
+ /* @__PURE__ */ jsxs("div", { className: styles$4.additionalInformationSectionHeading, children: [
996
994
  /* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", children: t(($) => $["registeredBusinessAddress"], { ns: "business" }) }),
997
995
  /* @__PURE__ */ jsx(Typography, { el: "p", variant: "body", children: registrationAddressDescription })
998
996
  ] }),
@@ -1033,7 +1031,7 @@ function AdditionalInformation({
1033
1031
  )
1034
1032
  ] }),
1035
1033
  /* @__PURE__ */ jsxs("section", { "data-testid": "principalPlaceOfBusiness", children: [
1036
- /* @__PURE__ */ jsxs("div", { className: styles$5.additionalInformationSectionHeading, children: [
1034
+ /* @__PURE__ */ jsxs("div", { className: styles$4.additionalInformationSectionHeading, children: [
1037
1035
  /* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", children: t(($) => $["principalPlaceOfBusiness"], { ns: "business" }) }),
1038
1036
  /* @__PURE__ */ jsx(Typography, { el: "p", variant: "body", children: t(($) => $["thePhysicalLocationWhereABusiness"], { ns: "business" }) })
1039
1037
  ] }),
@@ -1217,7 +1215,7 @@ const localizedLegalCompanyNameFieldConfig = {
1217
1215
  }
1218
1216
  };
1219
1217
  const basicInformation = "adyen-kyc-basic-information";
1220
- const styles$3 = {
1218
+ const styles$2 = {
1221
1219
  basicInformation
1222
1220
  };
1223
1221
  const BASIC_INFORMATION_FIELDS = [
@@ -1398,7 +1396,7 @@ function BasicInformation({
1398
1396
  handleChange: handleChangeFor,
1399
1397
  t: businessT
1400
1398
  });
1401
- return /* @__PURE__ */ jsxs("form", { id, className: styles$3.basicInformation, children: [
1399
+ return /* @__PURE__ */ jsxs("form", { id, className: styles$2.basicInformation, children: [
1402
1400
  /* @__PURE__ */ jsx(Header, { title: t(($) => $["basicInformationFormHeading"], { ns: "business" }), children: /* @__PURE__ */ jsx(
1403
1401
  FormDescription,
1404
1402
  {
@@ -1587,12 +1585,8 @@ const useClearCompanyData = (options) => {
1587
1585
  };
1588
1586
  function useCompanySearchExperiments() {
1589
1587
  const { isExperimentEnabled } = useExperimentsContext();
1590
- const isAgnosticEndpointEnabled = isExperimentEnabled(
1591
- "EnableProviderAgnosticCompanySearchAndSelect"
1592
- );
1593
1588
  return {
1594
- isAgnosticEndpointEnabled,
1595
- isLookupPathEnabled: isAgnosticEndpointEnabled && isExperimentEnabled("EnableNonApiOnboardingComponentsRoutesForCompanySearchAndSelect")
1589
+ isAgnosticEndpointEnabled: isExperimentEnabled("EnableProviderAgnosticCompanySearchAndSelect")
1596
1590
  };
1597
1591
  }
1598
1592
  const LOW_RISK_COMPANY_DATA_COMPLIANCE_WINDOW = 1577664e5;
@@ -1621,17 +1615,13 @@ const KNOWN_DISALLOWED_INDEX_DATASET_STATES = [
1621
1615
  StateCodesUS.Illinois,
1622
1616
  StateCodesUS.Texas
1623
1617
  ];
1624
- const getLookupBaseUrl = (baseUrl) => {
1625
- return baseUrl.replace("/api/", "/lookup/");
1626
- };
1627
1618
  const KOMPANY_SEARCH_FAILURE = "Kompany index and deep search both failed to complete";
1628
1619
  const useCompanySearch = (data, options) => {
1629
1620
  const { rootLegalEntityId, baseUrl } = useApiContext();
1630
- const { isAgnosticEndpointEnabled, isLookupPathEnabled } = useCompanySearchExperiments();
1631
- const baseUrlValue = isLookupPathEnabled ? getLookupBaseUrl(baseUrl.value) : baseUrl.value;
1621
+ const { isAgnosticEndpointEnabled } = useCompanySearchExperiments();
1632
1622
  return useQuery({
1633
1623
  queryKey: ["companySearch", data],
1634
- queryFn: () => handleCompanySearch(rootLegalEntityId.value, baseUrlValue, data, isAgnosticEndpointEnabled),
1624
+ queryFn: () => handleCompanySearch(rootLegalEntityId.value, baseUrl.value, data, isAgnosticEndpointEnabled),
1635
1625
  retry: 0,
1636
1626
  ...options
1637
1627
  });
@@ -1754,25 +1744,24 @@ const verifyTin = async (legalEntityId, baseUrl, data) => {
1754
1744
  };
1755
1745
  const useCompanySelection = (data, options) => {
1756
1746
  const { rootLegalEntityId, baseUrl } = useApiContext();
1757
- const { isAgnosticEndpointEnabled, isLookupPathEnabled } = useCompanySearchExperiments();
1747
+ const { isAgnosticEndpointEnabled } = useCompanySearchExperiments();
1758
1748
  return useQuery({
1759
1749
  queryKey: ["companySelection", data],
1760
1750
  queryFn: data ? () => handleCompanySelection(
1761
1751
  rootLegalEntityId.value,
1762
1752
  baseUrl.value,
1763
1753
  data,
1764
- isAgnosticEndpointEnabled,
1765
- isLookupPathEnabled
1754
+ isAgnosticEndpointEnabled
1766
1755
  ) : skipToken,
1767
1756
  retry: 0,
1768
1757
  ...options
1769
1758
  });
1770
1759
  };
1771
- const handleCompanySelection = async (rootLegalEntityId, baseUrl, data, isAgnosticEndpointEnabled, isLookupPathEnabled) => {
1760
+ const handleCompanySelection = async (rootLegalEntityId, baseUrl, data, isAgnosticEndpointEnabled) => {
1772
1761
  const [companyDatasetResult, tinMatch] = await Promise.all([
1773
1762
  handleCompanyDataset(
1774
1763
  rootLegalEntityId,
1775
- isLookupPathEnabled ? getLookupBaseUrl(baseUrl) : baseUrl,
1764
+ baseUrl,
1776
1765
  isAgnosticEndpointEnabled ? {
1777
1766
  id: data.id
1778
1767
  } : {
@@ -2025,7 +2014,7 @@ function BusinessInformationCard({
2025
2014
  ] }) });
2026
2015
  }
2027
2016
  const businessSelectionFooter = "adyen-kyc-business-selection-footer";
2028
- const styles$2 = {
2017
+ const styles$1 = {
2029
2018
  businessSelectionFooter
2030
2019
  };
2031
2020
  const BUSINESS_SELECTION_FIELDS = [
@@ -2212,7 +2201,7 @@ function BusinessSelection({
2212
2201
  },
2213
2202
  providerAgnosticEndpointsEnabled ? result.resultId : result.id
2214
2203
  )) }),
2215
- /* @__PURE__ */ jsxs(Typography, { el: "span", color: "secondary", className: styles$2.businessSelectionFooter, children: [
2204
+ /* @__PURE__ */ jsxs(Typography, { el: "span", color: "secondary", className: styles$1.businessSelectionFooter, children: [
2216
2205
  t(($) => $["businessSelection__footer"], { ns: "business" }),
2217
2206
  /* @__PURE__ */ jsx(Button, { variant: "link", onClick: proceedToManualDataEntry, testId: "manualDataEntry", children: t(($) => $["businessSelection__footerButton"], { ns: "business" }) })
2218
2207
  ] })
@@ -2367,7 +2356,7 @@ function FinancialReportingDate({
2367
2356
  handleChangeFor
2368
2357
  }) {
2369
2358
  const { t } = useTranslation("common");
2370
- return /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
2359
+ return /* @__PURE__ */ jsx(
2371
2360
  Field,
2372
2361
  {
2373
2362
  name: "financialReportingDate",
@@ -2391,7 +2380,7 @@ function FinancialReportingDate({
2391
2380
  }
2392
2381
  )
2393
2382
  }
2394
- ) });
2383
+ );
2395
2384
  }
2396
2385
  const NUMBER_OF_EMPLOYEES_FIELD = [
2397
2386
  "numberOfEmployees"
@@ -2404,7 +2393,7 @@ function NumberOfEmployees({
2404
2393
  readonly,
2405
2394
  handleChangeFor
2406
2395
  }) {
2407
- return /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
2396
+ return /* @__PURE__ */ jsx(
2408
2397
  Field,
2409
2398
  {
2410
2399
  name: "numberOfEmployees",
@@ -2427,15 +2416,13 @@ function NumberOfEmployees({
2427
2416
  }
2428
2417
  )
2429
2418
  }
2430
- ) });
2419
+ );
2431
2420
  }
2432
- const financialInformationReportedValueOptions = "adyen-kyc-financial-information-reported-value-options";
2433
- const styles$1 = {
2434
- financialInformationReportedValueOptions
2435
- };
2421
+ const reportedValueOptions = "adyen-kyc-reported-value-options";
2436
2422
  const reportedValue = "adyen-kyc-reported-value";
2437
2423
  const reportedValueInput = "adyen-kyc-reported-value-input";
2438
2424
  const styles = {
2425
+ reportedValueOptions,
2439
2426
  reportedValue,
2440
2427
  reportedValueInput
2441
2428
  };
@@ -2463,237 +2450,217 @@ const ReportedValue = ({
2463
2450
  }
2464
2451
  ) }) });
2465
2452
  };
2466
- const financialInfoValidationRules = {
2467
- financialReportingDate: [
2468
- {
2469
- modes: ["blur"],
2470
- validate: (date) => !isEmpty(date),
2471
- errorMessage: "fieldIsRequired"
2472
- },
2473
- {
2474
- modes: ["blur"],
2475
- validate: (date) => date ? new Date(date) < /* @__PURE__ */ new Date() : false,
2476
- errorMessage: "invalidFinancialReportingDate"
2477
- }
2478
- ],
2479
- currency: [
2480
- {
2481
- modes: ["blur"],
2482
- validate: (currency) => !isEmpty(currency),
2483
- errorMessage: "fieldIsRequired"
2453
+ const REPORTED_VALUE_OPTION_FIELD = [
2454
+ "reportedValueOption",
2455
+ "balanceSheetTotal",
2456
+ "annualTurnover"
2457
+ ];
2458
+ function ReportedValueOptionField({
2459
+ data,
2460
+ valid,
2461
+ errors,
2462
+ handleChangeFor,
2463
+ currency
2464
+ }) {
2465
+ const { t } = useTranslation("common");
2466
+ const updateReportedValueOption = (option) => {
2467
+ if (data.reportedValueOption) {
2468
+ handleChangeFor(data.reportedValueOption)(null);
2484
2469
  }
2485
- ],
2486
- reportedValueOption: {
2487
- modes: ["blur"],
2488
- validate: (option) => !isEmpty(option),
2489
- errorMessage: "fieldIsRequired"
2490
- },
2491
- balanceSheetTotal: {
2492
- modes: ["blur"],
2493
- validate: (amount) => !isUndefinedOrNull(amount),
2494
- errorMessage: "fieldIsRequired"
2495
- },
2496
- annualTurnover: {
2497
- modes: ["blur"],
2498
- validate: (amount) => !isUndefinedOrNull(amount),
2499
- errorMessage: "fieldIsRequired"
2500
- }
2501
- };
2502
- const financialInfoValidationEmployeesOnlyRules = {
2503
- numberOfEmployees: [
2504
- {
2505
- modes: ["blur"],
2506
- validate: (numberOfEmployees) => !isEmpty(numberOfEmployees),
2507
- errorMessage: "fieldIsRequired"
2508
- },
2470
+ const newReportedValue = option;
2471
+ handleChangeFor("reportedValueOption")(newReportedValue);
2472
+ };
2473
+ return /* @__PURE__ */ jsx(
2474
+ Field,
2509
2475
  {
2510
- modes: ["blur"],
2511
- validate: (numberOfEmployees) => Number.isInteger(Number(numberOfEmployees)) && Number(numberOfEmployees) > 0,
2512
- errorMessage: "pleaseEnterAValidWholeNumber"
2476
+ el: "fieldset",
2477
+ name: "reportedValueOption",
2478
+ label: t(($) => $["reportedValue"]),
2479
+ errorMessage: errors.reportedValueOption,
2480
+ helper: t(($) => $["useFiguresFromTheMostRecentYearAvailable"]),
2481
+ isValid: Boolean(valid.reportedValueOption),
2482
+ children: (childProps) => /* @__PURE__ */ jsx(
2483
+ RadioGroup,
2484
+ {
2485
+ name: "reportedValueOption",
2486
+ ...childProps,
2487
+ value: data.reportedValueOption,
2488
+ items: [
2489
+ {
2490
+ id: "balanceSheetTotal",
2491
+ name: "balanceSheetTotal",
2492
+ content: /* @__PURE__ */ jsx(
2493
+ ReportedValue,
2494
+ {
2495
+ label: t(($) => $["balanceSheetTotal"]),
2496
+ currency,
2497
+ amount: data.balanceSheetTotal,
2498
+ onAmountChanged: handleChangeFor("balanceSheetTotal"),
2499
+ fieldName: "balanceSheetTotal",
2500
+ isValid: valid.balanceSheetTotal,
2501
+ errorMessage: errors.balanceSheetTotal
2502
+ }
2503
+ )
2504
+ },
2505
+ {
2506
+ id: "annualTurnover",
2507
+ name: "annualTurnover",
2508
+ content: /* @__PURE__ */ jsx(
2509
+ ReportedValue,
2510
+ {
2511
+ label: t(($) => $["annualTurnover"]),
2512
+ currency,
2513
+ amount: data.annualTurnover,
2514
+ onAmountChanged: handleChangeFor("annualTurnover"),
2515
+ fieldName: "annualTurnover",
2516
+ isValid: valid.annualTurnover,
2517
+ errorMessage: errors.annualTurnover
2518
+ }
2519
+ )
2520
+ }
2521
+ ],
2522
+ onChange: updateReportedValueOption,
2523
+ showContentOnlyOnSelected: true,
2524
+ className: styles.reportedValueOptions
2525
+ }
2526
+ )
2513
2527
  }
2514
- ]
2515
- };
2516
- const financialInfoValidationWithEmployeesRules = {
2517
- ...financialInfoValidationRules,
2518
- ...financialInfoValidationEmployeesOnlyRules
2519
- };
2528
+ );
2529
+ }
2520
2530
  const financialInformationFieldsForEu = [
2521
2531
  ...FINANCIAL_REPORTING_DATE_FIELD,
2522
2532
  ...CURRENCY_FIELD,
2523
- "reportedValueOption"
2533
+ ...REPORTED_VALUE_OPTION_FIELD
2524
2534
  ];
2525
2535
  const financialInformationFields = [
2526
2536
  ...NUMBER_OF_EMPLOYEES_FIELD,
2527
2537
  ...FINANCIAL_REPORTING_DATE_FIELD,
2528
2538
  ...CURRENCY_FIELD,
2529
- "reportedValueOption"
2539
+ ...REPORTED_VALUE_OPTION_FIELD
2530
2540
  ];
2531
- function FinancialInformation(props) {
2541
+ function FinancialInformation({
2542
+ id,
2543
+ country,
2544
+ validationErrors = {},
2545
+ verificationErrors = {}
2546
+ }) {
2532
2547
  const { t } = useTranslation("common");
2548
+ const { form } = useFormContext();
2533
2549
  usePageLandedEvent();
2534
- const { id, country, data: financialInformationData, multiForm, fieldValidationErrors } = props;
2535
2550
  const defaultCurrency = currencyByCountry[country]?.[0] ?? "EUR";
2536
- const formUtils = createFormUtils(props, t);
2537
- const showReportingFields = formUtils.isRequiredField("financialReportingDate");
2538
- const getSchema = (data2) => [
2539
- ...financialInformationFields,
2540
- ...data2.reportedValueOption ? [data2.reportedValueOption] : []
2541
- ];
2542
- const getValidator = () => {
2543
- if (!showReportingFields) {
2544
- return financialInfoValidationEmployeesOnlyRules;
2545
- }
2546
- if (country === CountryCodes.UnitedKingdom) {
2547
- return financialInfoValidationWithEmployeesRules;
2548
- }
2549
- return financialInfoValidationRules;
2550
- };
2551
- const { handleChangeFor, data, valid, errors, fieldProblems, schema } = useForm({
2552
- ...props,
2553
- schema: getSchema,
2554
- defaultData: financialInformationData,
2555
- rules: getValidator(),
2556
- fieldProblems: fieldValidationErrors
2557
- });
2558
- const { updateStateSlice } = useGlobalDataSlice(id);
2559
- useEffect(() => {
2560
- updateStateSlice({
2561
- data,
2562
- valid,
2563
- errors,
2564
- fieldProblems,
2565
- schema
2566
- });
2567
- }, [data, valid, errors, fieldProblems, schema, updateStateSlice]);
2568
- const handleChange = useCallback(
2569
- (fieldName, mode) => multiForm ? multiForm.handleChangeFor(fieldName, "companyFinancialInformation", mode) : handleChangeFor(fieldName, mode),
2570
- [handleChangeFor, multiForm]
2551
+ const handleChangeFor = useCallback(
2552
+ (fieldName, mode) => form.handleChangeFor(fieldName, "companyFinancialInformation", mode),
2553
+ [form]
2571
2554
  );
2572
- const formData = multiForm ? multiForm.data?.companyFinancialInformation ?? {} : data;
2573
- const formErrors = multiForm ? multiForm.errors?.companyFinancialInformation ?? {} : errors;
2574
- const formValid = multiForm ? multiForm.valid?.companyFinancialInformation ?? {} : valid;
2575
- const formFieldProblems = multiForm ? multiForm.fieldProblems.companyFinancialInformation ?? {} : fieldProblems;
2576
- const updateReportedValueOption = (option) => {
2577
- if (formData.reportedValueOption) {
2578
- handleChange(formData.reportedValueOption)(null);
2579
- }
2580
- const newReportedValue = option;
2581
- handleChange("reportedValueOption")(newReportedValue);
2582
- };
2583
- return /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-company-financial-information", children: [
2555
+ const formUtils = useMemo(
2556
+ () => createFormUtils(
2557
+ {
2558
+ data: form.data.companyFinancialInformation ?? {},
2559
+ allFields: form.allFields?.companyFinancialInformation ?? [],
2560
+ requiredFields: form.requiredFields?.companyFinancialInformation ?? [],
2561
+ optionalFields: form.optionalFields?.companyFinancialInformation ?? [],
2562
+ trustedFields: form.trustedFields?.companyFinancialInformation ?? [],
2563
+ obscuredFields: form.obscuredFields?.companyFinancialInformation ?? [],
2564
+ errors: form.errors.companyFinancialInformation ?? {},
2565
+ valid: form.valid.companyFinancialInformation ?? {}
2566
+ },
2567
+ t
2568
+ ),
2569
+ [form, handleChangeFor, t, validationErrors, verificationErrors]
2570
+ );
2571
+ const showField = (fieldKeys) => fieldKeys.some((field) => formUtils.isRequiredField(field) || formUtils.isOptionalField(field));
2572
+ return /* @__PURE__ */ jsxs("form", { id, className: "adyen-kyc-company-financial-information", children: [
2584
2573
  /* @__PURE__ */ jsx(Header, { title: t(($) => $["companyFinancialInformationFormHeading"], { ns: "business" }) }),
2574
+ /* @__PURE__ */ jsx(
2575
+ ErrorPanel,
2576
+ {
2577
+ id: "ariaErrorField",
2578
+ verificationErrors,
2579
+ validationErrors,
2580
+ formUtils
2581
+ }
2582
+ ),
2585
2583
  country === CountryCodes.UnitedKingdom && /* @__PURE__ */ jsx(
2586
2584
  NumberOfEmployees,
2587
2585
  {
2588
- data: formUtils.getFieldData(formData, NUMBER_OF_EMPLOYEES_FIELD),
2586
+ data: formUtils.getFieldData(
2587
+ form.data.companyFinancialInformation ?? {},
2588
+ NUMBER_OF_EMPLOYEES_FIELD
2589
+ ),
2589
2590
  errors: formUtils.getFieldErrors(
2590
- formErrors,
2591
- formFieldProblems,
2591
+ form.errors.companyFinancialInformation ?? {},
2592
+ form.fieldProblems.companyFinancialInformation,
2592
2593
  NUMBER_OF_EMPLOYEES_FIELD
2593
2594
  ),
2594
- handleChangeFor: handleChange,
2595
+ handleChangeFor,
2595
2596
  labels: formUtils.getFieldLabels(NUMBER_OF_EMPLOYEES_FIELD),
2596
2597
  readonly: formUtils.isReadOnly("numberOfEmployees"),
2597
- valid: formUtils.getFieldValid(formValid, NUMBER_OF_EMPLOYEES_FIELD)
2598
+ valid: formUtils.getFieldValid(
2599
+ form.valid.companyFinancialInformation ?? {},
2600
+ NUMBER_OF_EMPLOYEES_FIELD
2601
+ )
2598
2602
  }
2599
2603
  ),
2600
- showReportingFields && /* @__PURE__ */ jsxs(Fragment, { children: [
2601
- /* @__PURE__ */ jsx(
2602
- FinancialReportingDate,
2603
- {
2604
- data: formUtils.getFieldData(formData, FINANCIAL_REPORTING_DATE_FIELD),
2605
- errors: formUtils.getFieldErrors(
2606
- formErrors,
2607
- formFieldProblems,
2608
- FINANCIAL_REPORTING_DATE_FIELD
2609
- ),
2610
- handleChangeFor: handleChange,
2611
- labels: formUtils.getFieldLabels(FINANCIAL_REPORTING_DATE_FIELD),
2612
- readonly: formUtils.isReadOnly("financialReportingDate"),
2613
- valid: formUtils.getFieldValid(formValid, FINANCIAL_REPORTING_DATE_FIELD)
2614
- }
2615
- ),
2616
- /* @__PURE__ */ jsx(
2617
- Currency,
2618
- {
2619
- country,
2620
- labels: { currency: t(($) => $["reportingCurrency"]) },
2621
- data: formUtils.getFieldData(formData, CURRENCY_FIELD),
2622
- errors: formUtils.getFieldErrors(formErrors, formFieldProblems, CURRENCY_FIELD),
2623
- handleChangeFor: handleChange,
2624
- readonly: formUtils.isReadOnly("currency"),
2625
- valid: formUtils.getFieldValid(formValid, CURRENCY_FIELD)
2626
- }
2627
- ),
2628
- /* @__PURE__ */ jsx(
2629
- Field,
2630
- {
2631
- el: "fieldset",
2632
- name: "reportedValueOption",
2633
- label: t(($) => $["reportedValue"]),
2634
- errorMessage: formUtils.getErrorMessage(
2635
- "reportedValueOption",
2636
- formErrors,
2637
- formFieldProblems
2638
- ),
2639
- helper: t(($) => $["useFiguresFromTheMostRecentYearAvailable"]),
2640
- isValid: formValid.reportedValueOption,
2641
- children: (childProps) => /* @__PURE__ */ jsx(
2642
- RadioGroup,
2643
- {
2644
- name: "reportedValueOption",
2645
- ...childProps,
2646
- value: formData.reportedValueOption,
2647
- items: [
2648
- {
2649
- id: "balanceSheetTotal",
2650
- name: "balanceSheetTotal",
2651
- content: /* @__PURE__ */ jsx(
2652
- ReportedValue,
2653
- {
2654
- label: t(($) => $["balanceSheetTotal"]),
2655
- currency: formData.currency ?? defaultCurrency,
2656
- amount: formData.balanceSheetTotal,
2657
- onAmountChanged: handleChange("balanceSheetTotal"),
2658
- fieldName: "balanceSheetTotal",
2659
- isValid: formValid.balanceSheetTotal,
2660
- errorMessage: formUtils.getErrorMessage(
2661
- "balanceSheetTotal",
2662
- formErrors,
2663
- formFieldProblems
2664
- )
2665
- }
2666
- )
2667
- },
2668
- {
2669
- id: "annualTurnover",
2670
- name: "annualTurnover",
2671
- content: /* @__PURE__ */ jsx(
2672
- ReportedValue,
2673
- {
2674
- label: t(($) => $["annualTurnover"]),
2675
- currency: formData.currency ?? defaultCurrency,
2676
- amount: formData.annualTurnover,
2677
- onAmountChanged: handleChange("annualTurnover"),
2678
- fieldName: "annualTurnover",
2679
- isValid: formValid.annualTurnover,
2680
- errorMessage: formUtils.getErrorMessage(
2681
- "annualTurnover",
2682
- formErrors,
2683
- formFieldProblems
2684
- )
2685
- }
2686
- )
2687
- }
2688
- ],
2689
- onChange: updateReportedValueOption,
2690
- showContentOnlyOnSelected: true,
2691
- className: styles$1.financialInformationReportedValueOptions
2692
- }
2693
- )
2694
- }
2695
- )
2696
- ] })
2604
+ showField(FINANCIAL_REPORTING_DATE_FIELD) && /* @__PURE__ */ jsx(
2605
+ FinancialReportingDate,
2606
+ {
2607
+ data: formUtils.getFieldData(
2608
+ form.data.companyFinancialInformation ?? {},
2609
+ FINANCIAL_REPORTING_DATE_FIELD
2610
+ ),
2611
+ errors: formUtils.getFieldErrors(
2612
+ form.errors.companyFinancialInformation ?? {},
2613
+ form.fieldProblems.companyFinancialInformation,
2614
+ FINANCIAL_REPORTING_DATE_FIELD
2615
+ ),
2616
+ handleChangeFor,
2617
+ labels: formUtils.getFieldLabels(FINANCIAL_REPORTING_DATE_FIELD),
2618
+ readonly: formUtils.isReadOnly("financialReportingDate"),
2619
+ valid: formUtils.getFieldValid(
2620
+ form.valid.companyFinancialInformation ?? {},
2621
+ FINANCIAL_REPORTING_DATE_FIELD
2622
+ )
2623
+ }
2624
+ ),
2625
+ showField(CURRENCY_FIELD) && /* @__PURE__ */ jsx(
2626
+ Currency,
2627
+ {
2628
+ country,
2629
+ labels: { currency: t(($) => $["reportingCurrency"]) },
2630
+ data: formUtils.getFieldData(form.data.companyFinancialInformation ?? {}, CURRENCY_FIELD),
2631
+ errors: formUtils.getFieldErrors(
2632
+ form.errors.companyFinancialInformation ?? {},
2633
+ form.fieldProblems.companyFinancialInformation,
2634
+ CURRENCY_FIELD
2635
+ ),
2636
+ handleChangeFor,
2637
+ readonly: formUtils.isReadOnly("currency"),
2638
+ valid: formUtils.getFieldValid(
2639
+ form.valid.companyFinancialInformation ?? {},
2640
+ CURRENCY_FIELD
2641
+ )
2642
+ }
2643
+ ),
2644
+ showField(REPORTED_VALUE_OPTION_FIELD) && /* @__PURE__ */ jsx(
2645
+ ReportedValueOptionField,
2646
+ {
2647
+ data: formUtils.getFieldData(
2648
+ form.data.companyFinancialInformation ?? {},
2649
+ REPORTED_VALUE_OPTION_FIELD
2650
+ ),
2651
+ valid: formUtils.getFieldValid(
2652
+ form.valid.companyFinancialInformation ?? {},
2653
+ REPORTED_VALUE_OPTION_FIELD
2654
+ ),
2655
+ errors: formUtils.getFieldErrors(
2656
+ form.errors.companyFinancialInformation ?? {},
2657
+ form.fieldProblems.companyFinancialInformation,
2658
+ REPORTED_VALUE_OPTION_FIELD
2659
+ ),
2660
+ handleChangeFor,
2661
+ currency: form.data.companyFinancialInformation?.currency ?? defaultCurrency
2662
+ }
2663
+ )
2697
2664
  ] });
2698
2665
  }
2699
2666
  const FIELDS_NEEDED_FOR_COMPANY_SEARCH = [...STATE_FIELD, ...TAX_INFORMATION_FIELD, ...BUSINESS_REGISTRATION_NUMBER_FIELD];
@@ -2705,8 +2672,7 @@ const getBasicInformationFields = (country, taskType) => {
2705
2672
  return fields;
2706
2673
  };
2707
2674
  const getFinancialInformationFields = (country) => {
2708
- const fields = country === CountryCodes.UnitedKingdom ? financialInformationFields : financialInformationFieldsForEu;
2709
- return [...fields, "netAssets", "balanceSheetTotal", "annualTurnover"];
2675
+ return country === CountryCodes.UnitedKingdom ? financialInformationFields : financialInformationFieldsForEu;
2710
2676
  };
2711
2677
  const staticBusinessDetailsForms = {
2712
2678
  businessSelection: {
@@ -3470,15 +3436,11 @@ function BusinessDetailsMultiform({
3470
3436
  return /* @__PURE__ */ jsx(
3471
3437
  FinancialInformation,
3472
3438
  {
3473
- multiForm: form,
3474
3439
  id: activeForm2.formId,
3475
3440
  country,
3476
- data: form.data.companyFinancialInformation,
3477
- allFields: form.allFields?.companyFinancialInformation,
3478
- requiredFields: form.requiredFields?.companyFinancialInformation,
3479
- optionalFields: form.optionalFields?.companyFinancialInformation,
3480
- trustedFields: form.trustedFields?.companyFinancialInformation,
3481
- shouldValidate
3441
+ shouldValidate,
3442
+ validationErrors: problems.validationErrors?.[activeForm2.formId] ?? {},
3443
+ verificationErrors: problems.verificationErrors?.[activeForm2.formId] ?? {}
3482
3444
  }
3483
3445
  );
3484
3446
  default:
@@ -3494,6 +3456,76 @@ const CompanyStructureValidation = {
3494
3456
  errorMessage: "fieldIsRequired"
3495
3457
  }
3496
3458
  };
3459
+ const currencyMetadata = {
3460
+ validators: {
3461
+ modes: ["blur"],
3462
+ validate: (currency) => !isEmpty(currency),
3463
+ errorMessage: "fieldIsRequired"
3464
+ }
3465
+ };
3466
+ const financialReportingDateMetadata = {
3467
+ validators: [
3468
+ {
3469
+ modes: ["blur"],
3470
+ validate: (date) => !isEmpty(date),
3471
+ errorMessage: "fieldIsRequired"
3472
+ },
3473
+ {
3474
+ modes: ["blur"],
3475
+ validate: (date) => date ? new Date(date) < /* @__PURE__ */ new Date() : false,
3476
+ errorMessage: "invalidFinancialReportingDate"
3477
+ }
3478
+ ]
3479
+ };
3480
+ const numberOfEmployeesMetadata = {
3481
+ validators: [
3482
+ {
3483
+ modes: ["blur"],
3484
+ validate: (numberOfEmployees) => !isEmpty(numberOfEmployees),
3485
+ errorMessage: "fieldIsRequired"
3486
+ },
3487
+ {
3488
+ modes: ["blur"],
3489
+ validate: (numberOfEmployees) => Number.isInteger(Number(numberOfEmployees)) && Number(numberOfEmployees) > 0,
3490
+ errorMessage: "pleaseEnterAValidWholeNumber"
3491
+ }
3492
+ ]
3493
+ };
3494
+ const reportedValueOptionMetadata = {
3495
+ validators: {
3496
+ modes: ["blur"],
3497
+ validate: (option) => !isEmpty(option),
3498
+ errorMessage: "fieldIsRequired"
3499
+ }
3500
+ };
3501
+ const balanceSheetTotalMetadata = {
3502
+ validators: {
3503
+ modes: ["blur"],
3504
+ validate: (amount) => !isUndefinedOrNull(amount),
3505
+ errorMessage: "fieldIsRequired"
3506
+ }
3507
+ };
3508
+ const annualTurnoverMetadata = {
3509
+ validators: {
3510
+ modes: ["blur"],
3511
+ validate: (amount) => !isUndefinedOrNull(amount),
3512
+ errorMessage: "fieldIsRequired"
3513
+ }
3514
+ };
3515
+ const financialInfoValidationRules = {
3516
+ financialReportingDate: financialReportingDateMetadata.validators,
3517
+ currency: currencyMetadata.validators,
3518
+ reportedValueOption: reportedValueOptionMetadata.validators,
3519
+ balanceSheetTotal: balanceSheetTotalMetadata.validators,
3520
+ annualTurnover: annualTurnoverMetadata.validators
3521
+ };
3522
+ const financialInfoValidationEmployeesOnlyRules = {
3523
+ numberOfEmployees: numberOfEmployeesMetadata.validators
3524
+ };
3525
+ const financialInfoValidationWithEmployeesRules = {
3526
+ ...financialInfoValidationRules,
3527
+ ...financialInfoValidationEmployeesOnlyRules
3528
+ };
3497
3529
  const mapApiDocumentToBusinessDetailsDocuments = (entityId) => {
3498
3530
  const registrationDocument = getDocument(entityId, "registrationDocument");
3499
3531
  const taxDocument = getDocument(entityId, "vatDocument") ?? getDocument(entityId, "proofOfOrganizationTaxInfo");
@@ -4586,7 +4618,6 @@ const financialInformationBase = {
4586
4618
  currency: { rule: "isFinancialReportingFieldsRequired" },
4587
4619
  reportedValueOption: { rule: "isFinancialReportingFieldsRequired" },
4588
4620
  annualTurnover: { rule: "annualTurnoverRequired" },
4589
- netAssets: { rule: "netAssetsRequired" },
4590
4621
  balanceSheetTotal: { rule: "balanceSheetTotalRequired" }
4591
4622
  };
4592
4623
  const businessDetailsFieldsPerScenario = {
@@ -4773,7 +4804,7 @@ function BusinessDetailsDropin({
4773
4804
  rootLegalEntityId: rootLegalEntityId.value
4774
4805
  });
4775
4806
  const { data: matchingScenario } = useScenarios(country, LegalEntityTypes.ORGANIZATION);
4776
- const { isAgnosticEndpointEnabled, isLookupPathEnabled } = useCompanySearchExperiments();
4807
+ const { isAgnosticEndpointEnabled } = useCompanySearchExperiments();
4777
4808
  useEffect(() => {
4778
4809
  userEvents.updateBaseTrackingPayload({ task: taskType });
4779
4810
  userEvents.addTaskEvent("Landed on page", {
@@ -5078,7 +5109,7 @@ function BusinessDetailsDropin({
5078
5109
  useEffect(() => {
5079
5110
  if (!searchingCompanies && companySearchResponse?.results) {
5080
5111
  userEvents.addPageEvent("Success", {
5081
- actionType: "submit",
5112
+ actionType: "resolve",
5082
5113
  returnValue: "companySearch",
5083
5114
  additionalData: {
5084
5115
  numberOfResults: companySearchResponse.results.length
@@ -5099,10 +5130,6 @@ function BusinessDetailsDropin({
5099
5130
  return handleNextClick(currentForms);
5100
5131
  }
5101
5132
  try {
5102
- userEvents.addPageEvent("Triggered async operation", {
5103
- actionType: "start",
5104
- returnValue: "companySearch"
5105
- });
5106
5133
  setLoadingStatus("loading");
5107
5134
  tinMatched.value = void 0;
5108
5135
  verifiedBusiness.value = void 0;
@@ -5137,8 +5164,7 @@ function BusinessDetailsDropin({
5137
5164
  id: searchResponse.results[0].resultId
5138
5165
  } : { company: searchResponse.results[0] }
5139
5166
  },
5140
- isAgnosticEndpointEnabled,
5141
- isLookupPathEnabled
5167
+ isAgnosticEndpointEnabled
5142
5168
  );
5143
5169
  if (handleTinResponse(!!companySelectionResponse.tinMatched)) {
5144
5170
  verifiedBusiness.value = companySelectionResponse;