@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,47 +2,44 @@
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] = "f3c756bd-79a5-487f-8c4a-718f38f893e5", e._sentryDebugIdIdentifier = "sentry-dbid-f3c756bd-79a5-487f-8c4a-718f38f893e5");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "8ae11a92-7e78-493e-86a0-9e58b4c3f040", e._sentryDebugIdIdentifier = "sentry-dbid-8ae11a92-7e78-493e-86a0-9e58b4c3f040");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
10
  import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
11
11
  import { useRef, useEffect, useMemo, useState } from "preact/hooks";
12
- import { u as useCreateLegalEntity } from "./useCreateLegalEntity-B16sUD09.js";
13
- import { a as useInvalidateRootLegalEntity, u as useToastContext } from "./useToastContext-B6bVTtlk.js";
14
- import { u as useUpdateLegalEntity } from "./useUpdateLegalEntity-Bx5p8oMR.js";
15
- import { az as reverseMapping, aA as isEeaCountry, L as LegalEntityTypes, an as cloneObject, b as useApiContext, j as httpGet, u as useTranslation, O as Typography, aB as Header, am as datasetUtilities, ac as translateTranslatable, z as useAnalyticsContext, P as StackLayout, C as IconButton, q as hasSolePropInLegalEntity, k as useSettingsContext, V as Loader, W as Button } from "./StoreProvider-Bd8v9ymn.js";
16
- import { u as useFormContext, F as FormContextProvider, a as FormFlow } from "./useFormContext-C8U6tZ6w.js";
12
+ import { u as useCreateLegalEntity } from "./useCreateLegalEntity-p2CrQlAX.js";
13
+ import { a as useInvalidateRootLegalEntity, u as useToastContext } from "./useToastContext-D9-q58mO.js";
14
+ import { u as useUpdateLegalEntity } from "./useUpdateLegalEntity-BswSgPWT.js";
15
+ import { az as reverseMapping, aA as isEeaCountry, L as LegalEntityTypes, an as cloneObject, b as useApiContext, j as httpGet, u as useTranslation, O as Typography, aB as Header, am as datasetUtilities, ac as translateTranslatable, z as useAnalyticsContext, q as hasSolePropInLegalEntity, k as useSettingsContext, V as Loader, W as Button } from "./StoreProvider-CDvuKNZP.js";
16
+ import { u as useFormContext, F as FormContextProvider, a as FormFlow } from "./useFormContext-C1SR24Ki.js";
17
17
  import { S as SettingNames } from "./types-CQ2p58-6.js";
18
- import { u as useAssociatedLegalEntity } from "./useAssociatedLegalEntity-C4AIT84p.js";
19
- import { g as getRequiredForms, a as addValidityToForms, u as useFormComposer } from "./dropinUtils-W92bBPsr.js";
20
- import { u as useMultiForm } from "./useMultiForm-Dv6aeBzd.js";
21
- import { E as EndStateLayout } from "./EndStateLayout-ByYy8V2P.js";
22
- import { E as ErrorPanel } from "./ErrorPanel-Dyn3lGkc.js";
23
- import { i as isValidationError, p as processValidationErrors, a as isMaintenanceModeError } from "./validationError-BQGuWR5B.js";
24
- import { c as createFormUtils } from "./formUtils-BjHuso5S.js";
25
- import { l as localizeDateString } from "./localizeDateString-DWN00kQs.js";
26
- import { m as mapFinancialReportsToFinancialInformation, a as mapFinancialInformationToFinancialReport, L as LegalFormField, I as InputNumber, C as Currency, b as CURRENCY_FIELD, c as InputCurrency } from "./Currency-Cj6YKv5r.js";
18
+ import { u as useAssociatedLegalEntity } from "./useAssociatedLegalEntity-Cn5H9wTJ.js";
19
+ import { g as getRequiredForms, a as addValidityToForms, u as useFormComposer } from "./dropinUtils-CH5elK0n.js";
20
+ import { u as useMultiForm } from "./useMultiForm-DPExov8c.js";
21
+ import { E as EndStateLayout } from "./EndStateLayout-LuO-W__f.js";
22
+ import { E as ErrorPanel } from "./ErrorPanel-Wws7gA5m.js";
23
+ import { i as isValidationError, p as processValidationErrors, a as isMaintenanceModeError } from "./validationError-NidfTgvm.js";
24
+ import { c as createFormUtils } from "./formUtils-Bl8SBmWK.js";
25
+ import { l as localizeDateString } from "./localizeDateString-DJzFcyYr.js";
26
+ import { m as mapFinancialReportsToFinancialInformation, a as mapFinancialInformationToFinancialReport, L as LegalFormField, I as InputNumber, C as Currency, b as CURRENCY_FIELD, c as InputCurrency } from "./Currency-C1POIMJZ.js";
27
27
  import { f as formatObject } from "./utils-DNSfZiio.js";
28
- import { c as currencyByCountry } from "./types-B9EOUKVu.js";
28
+ import { c as currencyByCountry } from "./types-DItwm0zf.js";
29
29
  import { g as getFieldProps } from "./getProps-Cc3J2-z9.js";
30
- import { F as Field } from "./Field-DhEMQ19K.js";
31
- import { L as Link } from "./Link-B2yGtZDE.js";
32
- import { R as RadioGroup } from "./RadioGroup-Dv77MxKh.js";
33
- import { I as InputText } from "./InputText-C6ZQ-hNy.js";
30
+ import { F as Field } from "./Field-BnYaQCpL.js";
31
+ import { L as Link } from "./Link-DHZbclel.js";
32
+ import { R as RadioGroup } from "./RadioGroup-Brbd7IGZ.js";
33
+ import { I as InputText } from "./InputText-DJmeZHiM.js";
34
34
  import { useQuery } from "@tanstack/preact-query";
35
- import { S as Select } from "./Select-BXKtUkAf.js";
36
- import { I as InputDate } from "./InputDate-CBV8pgtD.js";
37
- import { C as Checkbox } from "./Checkbox-DKLas909.js";
38
- import { A as Address } from "./Address-B2Ce4Di_.js";
39
- import { g as getAddressSchemaForCountry, C as COUNTRIES_WITH_STATES_DATASET, a as getAddressSchemaLabelsByCountry } from "./utils-DmlO6ZEu.js";
40
- import { C as CountryField } from "./CountryField-DOF4SekD.js";
41
- import { defineSlots } from "named-slots";
42
- import { L as List } from "./List-BAzyC6sw.js";
43
- import { S as StructuredList } from "./StructuredList-CNha20ka.js";
44
- import { t as trackNavigation } from "./trackNavigation-db_h46BT.js";
45
- import { b as businessFinancingMultiformRules } from "./validate-CZQaWwSn.js";
35
+ import { S as Select } from "./Select-DeoKjJst.js";
36
+ import { I as InputDate } from "./InputDate-D7tf-vyK.js";
37
+ import { C as Checkbox } from "./Checkbox-DEpPoJN_.js";
38
+ import { A as Address } from "./Address-DmC7K_9S.js";
39
+ import { g as getAddressSchemaForCountry, C as COUNTRIES_WITH_STATES_DATASET, a as getAddressSchemaLabelsByCountry } from "./utils-BQ0Na9UT.js";
40
+ import { C as CountryField } from "./CountryField-BNisulC2.js";
41
+ import { N as NewSummary } from "./NewSummary-D04coEyZ.js";
42
+ import { b as businessFinancingMultiformRules } from "./validate-D__xHxXc.js";
46
43
  const businessFinancingBaseMapping = {
47
44
  legalProceedingsDate: "organization.dateOfInitiationOfLegalProceeding",
48
45
  legalInformationInsolvency: "organization.statusOfLegalProceeding",
@@ -131,7 +128,7 @@ const companySchemaKeys = [
131
128
  "isParentOwnedByAnotherCompany",
132
129
  "financialReportingDate",
133
130
  "currency",
134
- "netAssets",
131
+ "balanceSheetTotal",
135
132
  "annualTurnover",
136
133
  "legalInformationInsolvency",
137
134
  "legalProceedingsDate"
@@ -153,7 +150,7 @@ const parentCompaniesSchemaKeys = [
153
150
  "isThisAddressTheMainHeadquarters",
154
151
  "financialReportingDate",
155
152
  "currency",
156
- "netAssets",
153
+ "balanceSheetTotal",
157
154
  "annualTurnover",
158
155
  "legalInformationInsolvency",
159
156
  "legalProceedingsDate",
@@ -206,7 +203,6 @@ const financialReportsToString = (financialReports) => {
206
203
  return {
207
204
  ...financialReports,
208
205
  numberOfEmployees: financialReports.numberOfEmployees ? financialReports.numberOfEmployees.toString() : void 0,
209
- netAssets: financialReports.netAssets ? financialReports.netAssets.toString() : void 0,
210
206
  annualTurnover: financialReports.annualTurnover ? financialReports.annualTurnover.toString() : void 0,
211
207
  balanceSheetTotal: financialReports.balanceSheetTotal ? financialReports.balanceSheetTotal.toString() : void 0
212
208
  };
@@ -274,7 +270,7 @@ const prepareBusinessFinancingSubmitData = (businessFinancingIndex, data, rootLe
274
270
  currency: companyData.currency,
275
271
  financialReportingDate: companyData.financialReportingDate,
276
272
  numberOfEmployees: companyData.numberOfEmployees ? Number(companyData.numberOfEmployees) : void 0,
277
- netAssets: companyData.netAssets ? Number(companyData.netAssets) : void 0,
273
+ balanceSheetTotal: companyData.balanceSheetTotal ? Number(companyData.balanceSheetTotal) : void 0,
278
274
  annualTurnover: companyData.annualTurnover ? Number(companyData.annualTurnover) : void 0
279
275
  };
280
276
  const businessFinancingFinancialReport = mapFinancialInformationToFinancialReport(finReports);
@@ -366,7 +362,7 @@ const getCompanySchemaKeys = (country, currentData, schemaKeys) => {
366
362
  if (!isEeaCountry(country)) {
367
363
  fieldsToRemove.push(
368
364
  "financialReportingDate",
369
- "netAssets",
365
+ "balanceSheetTotal",
370
366
  "annualTurnover",
371
367
  "currency",
372
368
  "numberOfEmployees"
@@ -390,13 +386,13 @@ const getSoleProprietorSchemaKeys = (currentData, schemaKeys) => {
390
386
  }
391
387
  return schemaKeys.filter((field) => !fieldsToRemove.includes(field));
392
388
  };
393
- const getParentCompanySchemaKeys = (currentData, schemaKeys) => {
389
+ const getParentCompanySchemaKeys = (currentData, schemaKeys, rootEntityAddress) => {
394
390
  const fieldsToRemove = [];
395
- const companyCountry = currentData?.registrationAddress?.country;
391
+ const companyCountry = currentData?.sameAddressAsRootEntity && rootEntityAddress ? rootEntityAddress.country : currentData?.registrationAddress?.country;
396
392
  if (!isEeaCountry(companyCountry)) {
397
393
  fieldsToRemove.push(
398
394
  "financialReportingDate",
399
- "netAssets",
395
+ "balanceSheetTotal",
400
396
  "annualTurnover",
401
397
  "currency",
402
398
  "numberOfEmployees"
@@ -413,7 +409,7 @@ const getParentCompanySchemaKeys = (currentData, schemaKeys) => {
413
409
  }
414
410
  return schemaKeys.filter((field) => !fieldsToRemove.includes(field));
415
411
  };
416
- const getBusinessFinancingRequiredFields = (country, data) => {
412
+ const getBusinessFinancingRequiredFields = (country, data, rootEntityAddress) => {
417
413
  let requiredFields = void 0;
418
414
  if (!data) {
419
415
  return requiredFields;
@@ -435,7 +431,8 @@ const getBusinessFinancingRequiredFields = (country, data) => {
435
431
  if (company?.isCompanyOwnedByAnotherCompany === "Yes") {
436
432
  const parentCompanyRequiredFields = getParentCompanySchemaKeys(
437
433
  parentCompany,
438
- parentCompaniesSchemaKeys
434
+ parentCompaniesSchemaKeys,
435
+ rootEntityAddress
439
436
  );
440
437
  requiredFields = {
441
438
  ...requiredFields,
@@ -445,7 +442,8 @@ const getBusinessFinancingRequiredFields = (country, data) => {
445
442
  if (company?.isParentOwnedByAnotherCompany === "Yes") {
446
443
  const ultimateParentCompanyRequiredFields = getParentCompanySchemaKeys(
447
444
  ultimateParentCompany,
448
- parentCompaniesSchemaKeys
445
+ parentCompaniesSchemaKeys,
446
+ rootEntityAddress
449
447
  );
450
448
  requiredFields = {
451
449
  ...requiredFields,
@@ -510,7 +508,7 @@ const formatDataForSummary = (language, t, datasetUtils, data, rootLeAddress) =>
510
508
  company?.legalInformationInsolvency
511
509
  );
512
510
  company.annualTurnover = getFormattedAmount(company.annualTurnover, company.currency);
513
- company.netAssets = getFormattedAmount(company.netAssets, company.currency);
511
+ company.balanceSheetTotal = getFormattedAmount(company.balanceSheetTotal, company.currency);
514
512
  const { legalProceedingsDate, financialReportingDate } = company;
515
513
  company.legalProceedingsDate = legalProceedingsDate ? localizeDateString(legalProceedingsDate, language) : void 0;
516
514
  company.financialReportingDate = financialReportingDate ? localizeDateString(financialReportingDate, language) : void 0;
@@ -525,7 +523,7 @@ const formatDataForSummary = (language, t, datasetUtils, data, rootLeAddress) =>
525
523
  legalInformationInsolvency,
526
524
  annualTurnover,
527
525
  currency,
528
- netAssets,
526
+ balanceSheetTotal,
529
527
  legalProceedingsDate,
530
528
  financialReportingDate,
531
529
  sameAddressAsRootEntity,
@@ -547,7 +545,7 @@ const formatDataForSummary = (language, t, datasetUtils, data, rootLeAddress) =>
547
545
  legalInformationInsolvency
548
546
  );
549
547
  parentCompany.annualTurnover = getFormattedAmount(annualTurnover, currency);
550
- parentCompany.netAssets = getFormattedAmount(netAssets, currency);
548
+ parentCompany.balanceSheetTotal = getFormattedAmount(balanceSheetTotal, currency);
551
549
  parentCompany.legalProceedingsDate = legalProceedingsDate ? localizeDateString(legalProceedingsDate, language) : void 0;
552
550
  parentCompany.financialReportingDate = financialReportingDate ? localizeDateString(financialReportingDate, language) : void 0;
553
551
  if (sameAddressAsRootEntity) {
@@ -572,7 +570,7 @@ const formatDataForSummary = (language, t, datasetUtils, data, rootLeAddress) =>
572
570
  legalInformationInsolvency,
573
571
  annualTurnover,
574
572
  currency,
575
- netAssets,
573
+ balanceSheetTotal,
576
574
  legalProceedingsDate,
577
575
  financialReportingDate,
578
576
  sameAddressAsRootEntity,
@@ -594,7 +592,7 @@ const formatDataForSummary = (language, t, datasetUtils, data, rootLeAddress) =>
594
592
  legalInformationInsolvency
595
593
  );
596
594
  ultimateParentCompany.annualTurnover = getFormattedAmount(annualTurnover, currency);
597
- ultimateParentCompany.netAssets = getFormattedAmount(netAssets, currency);
595
+ ultimateParentCompany.balanceSheetTotal = getFormattedAmount(balanceSheetTotal, currency);
598
596
  ultimateParentCompany.legalProceedingsDate = legalProceedingsDate ? localizeDateString(legalProceedingsDate, language) : void 0;
599
597
  ultimateParentCompany.financialReportingDate = financialReportingDate ? localizeDateString(financialReportingDate, language) : void 0;
600
598
  if (sameAddressAsRootEntity) {
@@ -700,7 +698,7 @@ const businessFinancingTitle = "adyen-kyc-business-financing-title";
700
698
  const businessFinancingBody = "adyen-kyc-business-financing-body";
701
699
  const businessFinancingExposureFinancials = "adyen-kyc-business-financing-exposure-financials";
702
700
  const businessFinancingStructuredAddress = "adyen-kyc-business-financing-structured-address";
703
- const styles$1 = {
701
+ const styles = {
704
702
  businessFinancingLeiRadio,
705
703
  businessFinancingTitle,
706
704
  businessFinancingBody,
@@ -736,7 +734,7 @@ function BusinessFinancingBusinessInformation(props) {
736
734
  }
737
735
  const isMainCompany = targetPage === BusinessFinancingPages.COMPANY_PAGE;
738
736
  return /* @__PURE__ */ jsxs(Fragment, { children: [
739
- !hideSectionHeading && /* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", className: styles$1.businessFinancingTitle, children: sectionHeading ? businessFinancingT(($) => $[sectionHeading]) : businessFinancingT(($) => $["businessInformation"]) }),
737
+ !hideSectionHeading && /* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", className: styles.businessFinancingTitle, children: sectionHeading ? businessFinancingT(($) => $[sectionHeading]) : businessFinancingT(($) => $["businessInformation"]) }),
740
738
  !isSoleProprietor && /* @__PURE__ */ jsx(
741
739
  LegalFormField,
742
740
  {
@@ -749,7 +747,7 @@ function BusinessFinancingBusinessInformation(props) {
749
747
  errorMessage: formUtils.getErrorMessage("legalForm", errors, fieldValidationErrors),
750
748
  handleChangeFor: handleFieldChange,
751
749
  readonly: false,
752
- label: formUtils.getLabel("legalForm", "businessStructure")
750
+ label: businessFinancingT(($) => $["businessStructure"])
753
751
  }
754
752
  ),
755
753
  /* @__PURE__ */ jsx(
@@ -779,7 +777,7 @@ function BusinessFinancingBusinessInformation(props) {
779
777
  el: "div",
780
778
  variant: "body",
781
779
  color: "secondary",
782
- className: styles$1.businessFinancingBody,
780
+ className: styles.businessFinancingBody,
783
781
  children: [
784
782
  businessFinancingT(($) => $["anLEIIsAUniqueCode"]),
785
783
  " ",
@@ -800,7 +798,7 @@ function BusinessFinancingBusinessInformation(props) {
800
798
  items: isMainCompany ? businessFinancingRadioItems : businessFinancingParentRadioItems,
801
799
  value: data?.doesYourCompanyHaveLEI,
802
800
  disabled: false,
803
- className: styles$1.businessFinancingLeiRadio,
801
+ className: styles.businessFinancingLeiRadio,
804
802
  onChange: handleFieldChange("doesYourCompanyHaveLEI"),
805
803
  "aria-required": true,
806
804
  "aria-invalid": !valid?.doesYourCompanyHaveLEI
@@ -812,7 +810,7 @@ function BusinessFinancingBusinessInformation(props) {
812
810
  Field,
813
811
  {
814
812
  name: "legalEntityIdentifier",
815
- label: formUtils.getLabel("legalEntityIdentifier", "legalEntityIdentifier"),
813
+ label: businessFinancingT(($) => $["legalEntityIdentifier"]),
816
814
  errorMessage: formUtils.getErrorMessage(
817
815
  "legalEntityIdentifier",
818
816
  errors,
@@ -848,7 +846,7 @@ const financialInformationFields = [
848
846
  "financialReportingDate",
849
847
  "legalEntityIdentifier",
850
848
  "currency",
851
- "netAssets",
849
+ "balanceSheetTotal",
852
850
  "annualTurnover"
853
851
  ];
854
852
  function BusinessFinancingFinancialInformation(props) {
@@ -869,12 +867,12 @@ function BusinessFinancingFinancialInformation(props) {
869
867
  handleFieldChange("currency")(firstCurrency);
870
868
  }
871
869
  return /* @__PURE__ */ jsxs("section", { children: [
872
- /* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", className: styles$1.businessFinancingTitle, children: sectionHeading ? businessFinancingT(($) => $[sectionHeading]) : businessFinancingT(($) => $["businessFinancials"]) }),
870
+ /* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", className: styles.businessFinancingTitle, children: sectionHeading ? businessFinancingT(($) => $[sectionHeading]) : businessFinancingT(($) => $["businessFinancials"]) }),
873
871
  /* @__PURE__ */ jsx(
874
872
  Field,
875
873
  {
876
874
  name: "numberOfEmployees",
877
- label: formUtils.getLabel("numberOfEmployees", "numberOfEmployees"),
875
+ label: businessFinancingT(($) => $["numberOfEmployees"]),
878
876
  helper: businessFinancingT(($) => $["theNumberOfIndividualsReceivingAWageOrSalary"]),
879
877
  errorMessage: formUtils.getErrorMessage("numberOfEmployees", errors, fieldValidationErrors),
880
878
  isValid: valid?.numberOfEmployees,
@@ -906,22 +904,29 @@ function BusinessFinancingFinancialInformation(props) {
906
904
  valid: formUtils.getFieldValid(isFinancialDataValid, CURRENCY_FIELD)
907
905
  }
908
906
  ),
909
- /* @__PURE__ */ jsxs("div", { className: styles$1.businessFinancingExposureFinancials, children: [
907
+ /* @__PURE__ */ jsxs("div", { className: styles.businessFinancingExposureFinancials, children: [
910
908
  /* @__PURE__ */ jsx(
911
909
  Field,
912
910
  {
913
- name: "netAssets",
914
- label: formUtils.getLabel("netAssets", "balanceSheetTotal"),
911
+ name: "balanceSheetTotal",
912
+ label: businessFinancingT(($) => $["balanceSheetTotal"]),
915
913
  helper: businessFinancingT(($) => $["theSumOfTotalLiabilities"]),
916
- errorMessage: formUtils.getErrorMessage("netAssets", errors, fieldValidationErrors),
914
+ errorMessage: formUtils.getErrorMessage(
915
+ "balanceSheetTotal",
916
+ errors,
917
+ fieldValidationErrors
918
+ ),
919
+ isValid: valid?.balanceSheetTotal,
917
920
  children: (childProps) => /* @__PURE__ */ jsx(
918
921
  InputCurrency,
919
922
  {
920
923
  ...childProps,
924
+ "aria-required": formUtils.isRequiredField("balanceSheetTotal"),
925
+ "aria-invalid": !valid?.balanceSheetTotal,
921
926
  locale: i18next.language,
922
927
  currency: data?.currency ?? defaultCurrency,
923
- amount: data?.netAssets ? Number(data?.netAssets) : void 0,
924
- onAmountChanged: handleFieldChange("netAssets")
928
+ amount: data?.balanceSheetTotal ? Number(data?.balanceSheetTotal) : void 0,
929
+ onAmountChanged: handleFieldChange("balanceSheetTotal")
925
930
  }
926
931
  )
927
932
  }
@@ -930,7 +935,7 @@ function BusinessFinancingFinancialInformation(props) {
930
935
  Field,
931
936
  {
932
937
  name: "financialReportingDate",
933
- label: formUtils.getLabel("financialReportingDate", "statementReportingDate"),
938
+ label: businessFinancingT(($) => $["statementReportingDate"]),
934
939
  helper: businessFinancingT(($) => $["useTheMoreRecentOfTheReportingDates"]),
935
940
  errorMessage: formUtils.getErrorMessage(
936
941
  "financialReportingDate",
@@ -957,14 +962,17 @@ function BusinessFinancingFinancialInformation(props) {
957
962
  Field,
958
963
  {
959
964
  name: "annualTurnover",
960
- label: formUtils.getLabel("annualTurnover", "annualTurnover"),
965
+ label: businessFinancingT(($) => $["annualTurnover"]),
961
966
  helper: businessFinancingT(($) => $["theAnnualSalesRevenue"]),
962
967
  errorMessage: formUtils.getErrorMessage("annualTurnover", errors, fieldValidationErrors),
968
+ isValid: valid?.annualTurnover,
963
969
  children: (childProps) => /* @__PURE__ */ jsx(
964
970
  InputCurrency,
965
971
  {
966
972
  ...childProps,
967
973
  name: "annualTurnover",
974
+ "aria-required": formUtils.isRequiredField("annualTurnover"),
975
+ "aria-invalid": !valid?.annualTurnover,
968
976
  locale: i18next.language,
969
977
  currency: data?.currency ?? defaultCurrency,
970
978
  amount: data?.annualTurnover ? Number(data?.annualTurnover) : void 0,
@@ -1007,12 +1015,12 @@ function BusinessFinancingLegalInformation(props) {
1007
1015
  ];
1008
1016
  const showLegalProceedingsDateField = data?.legalInformationInsolvency && !["noLegalActionsTaken", "iDontKnow"].includes(data?.legalInformationInsolvency);
1009
1017
  return /* @__PURE__ */ jsxs(Fragment, { children: [
1010
- /* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", className: styles$1.businessFinancingTitle, children: sectionHeading ? businessFinancingT(($) => $[sectionHeading]) : businessFinancingT(($) => $["legalInformation"]) }),
1018
+ /* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", className: styles.businessFinancingTitle, children: sectionHeading ? businessFinancingT(($) => $[sectionHeading]) : businessFinancingT(($) => $["legalInformation"]) }),
1011
1019
  /* @__PURE__ */ jsx(
1012
1020
  Field,
1013
1021
  {
1014
1022
  name: "legalInformationInsolvency",
1015
- label: formUtils.getLabel("legalInformationInsolvency", "legalInformationInsolvency"),
1023
+ label: businessFinancingT(($) => $["legalInformationInsolvency"]),
1016
1024
  errorMessage: formUtils.getErrorMessage(
1017
1025
  "legalInformationInsolvency",
1018
1026
  errors,
@@ -1038,7 +1046,7 @@ function BusinessFinancingLegalInformation(props) {
1038
1046
  Field,
1039
1047
  {
1040
1048
  name: "legalProceedingsDate",
1041
- label: formUtils.getLabel("legalProceedingsDate", "legalProceedingsDate"),
1049
+ label: businessFinancingT(($) => $["legalProceedingsDate"]),
1042
1050
  errorMessage: formUtils.getErrorMessage(
1043
1051
  "legalProceedingsDate",
1044
1052
  errors,
@@ -1075,7 +1083,7 @@ function BusinessFinancingOwnershipStructure(props) {
1075
1083
  return;
1076
1084
  }
1077
1085
  return /* @__PURE__ */ jsxs(Fragment, { children: [
1078
- /* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", className: styles$1.businessFinancingTitle, children: businessFinancingT(($) => $["ownershipStructure"]) }),
1086
+ /* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", className: styles.businessFinancingTitle, children: businessFinancingT(($) => $["ownershipStructure"]) }),
1079
1087
  /* @__PURE__ */ jsx(
1080
1088
  Field,
1081
1089
  {
@@ -1095,7 +1103,7 @@ function BusinessFinancingOwnershipStructure(props) {
1095
1103
  el: "div",
1096
1104
  variant: "body",
1097
1105
  color: "secondary",
1098
- className: styles$1.businessFinancingBody,
1106
+ className: styles.businessFinancingBody,
1099
1107
  children: businessFinancingT(($) => $["thisMeansYouHaveAParentCompany"])
1100
1108
  }
1101
1109
  ),
@@ -1106,7 +1114,7 @@ function BusinessFinancingOwnershipStructure(props) {
1106
1114
  name: "isCompanyOwnedByAnotherCompany",
1107
1115
  items: businessFinancingRadioItems,
1108
1116
  value: data?.isCompanyOwnedByAnotherCompany,
1109
- className: styles$1.businessFinancingLeiRadio,
1117
+ className: styles.businessFinancingLeiRadio,
1110
1118
  disabled: false,
1111
1119
  onChange: handleFieldChange("isCompanyOwnedByAnotherCompany"),
1112
1120
  "aria-required": true,
@@ -1120,14 +1128,14 @@ function BusinessFinancingOwnershipStructure(props) {
1120
1128
  {
1121
1129
  el: "fieldset",
1122
1130
  name: "isParentOwnedByAnotherCompany",
1123
- label: formUtils.getLabel("isParentOwnedByAnotherCompany"),
1131
+ label: businessFinancingT(($) => $["isParentOwnedByAnotherCompany"]),
1124
1132
  helper: /* @__PURE__ */ jsx(
1125
1133
  Typography,
1126
1134
  {
1127
1135
  el: "div",
1128
1136
  variant: "body",
1129
1137
  color: "secondary",
1130
- className: styles$1.businessFinancingBody,
1138
+ className: styles.businessFinancingBody,
1131
1139
  children: businessFinancingT(($) => $["thisMeansYouHaveAnUltimateParentCompany"])
1132
1140
  }
1133
1141
  ),
@@ -1143,7 +1151,7 @@ function BusinessFinancingOwnershipStructure(props) {
1143
1151
  name: "isParentOwnedByAnotherCompany",
1144
1152
  items: businessFinancingRadioItems,
1145
1153
  value: data.isParentOwnedByAnotherCompany,
1146
- className: styles$1.businessFinancingLeiRadio,
1154
+ className: styles.businessFinancingLeiRadio,
1147
1155
  disabled: false,
1148
1156
  onChange: handleFieldChange("isParentOwnedByAnotherCompany"),
1149
1157
  "aria-required": true,
@@ -1244,12 +1252,12 @@ function BusinessFinancingBasicCompanyInformation(props) {
1244
1252
  return;
1245
1253
  }
1246
1254
  return /* @__PURE__ */ jsxs(Fragment, { children: [
1247
- /* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", className: styles$1.businessFinancingTitle, children: sectionHeading ? businessFinancingT(($) => $[sectionHeading]) : businessFinancingT(($) => $["basicCompanyInformation"]) }),
1255
+ /* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", className: styles.businessFinancingTitle, children: sectionHeading ? businessFinancingT(($) => $[sectionHeading]) : businessFinancingT(($) => $["basicCompanyInformation"]) }),
1248
1256
  /* @__PURE__ */ jsx(
1249
1257
  Field,
1250
1258
  {
1251
1259
  name: "legalName",
1252
- label: formUtils.getLabel("legalName", "legalName"),
1260
+ label: businessFinancingT(($) => $["legalName"]),
1253
1261
  errorMessage: formUtils.getErrorMessage("legalName", errors, fieldValidationErrors),
1254
1262
  isValid: valid?.legalName,
1255
1263
  helper: businessFinancingT(($) => $["legalNameIsUsedToIdentifyABusinessWithTheGovernment"]),
@@ -1313,7 +1321,7 @@ function BusinessFinancingRegisteredAddress(props) {
1313
1321
  handleFieldChange("registrationAddress")(state.data);
1314
1322
  };
1315
1323
  return /* @__PURE__ */ jsxs(Fragment, { children: [
1316
- /* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", className: styles$1.businessFinancingTitle, children: sectionHeading ? translateTranslatable(commonT, sectionHeading) : commonT(($) => $["registeredAddress"]) }),
1324
+ /* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", className: styles.businessFinancingTitle, children: sectionHeading ? translateTranslatable(commonT, sectionHeading) : commonT(($) => $["registeredAddress"]) }),
1317
1325
  /* @__PURE__ */ jsx(
1318
1326
  Field,
1319
1327
  {
@@ -1336,7 +1344,7 @@ function BusinessFinancingRegisteredAddress(props) {
1336
1344
  )
1337
1345
  }
1338
1346
  ),
1339
- data?.sameAddressAsRootEntity && legalEntity?.organization?.registeredAddress ? /* @__PURE__ */ jsxs("div", { className: styles$1.businessFinancingStructuredAddress, children: [
1347
+ data?.sameAddressAsRootEntity && legalEntity?.organization?.registeredAddress ? /* @__PURE__ */ jsxs("div", { className: styles.businessFinancingStructuredAddress, children: [
1340
1348
  /* @__PURE__ */ jsx("div", { children: legalEntity.organization.registeredAddress.street }),
1341
1349
  /* @__PURE__ */ jsx("div", { children: legalEntity.organization.registeredAddress.street2 }),
1342
1350
  /* @__PURE__ */ jsxs("div", { children: [
@@ -1379,7 +1387,7 @@ function BusinessFinancingRegisteredAddress(props) {
1379
1387
  name: "isThisAddressTheMainHeadquarters",
1380
1388
  items: businessFinancingRadioItems,
1381
1389
  value: data?.isThisAddressTheMainHeadquarters,
1382
- className: styles$1.businessFinancingLeiRadio,
1390
+ className: styles.businessFinancingLeiRadio,
1383
1391
  disabled: false,
1384
1392
  onChange: handleFieldChange("isThisAddressTheMainHeadquarters"),
1385
1393
  "aria-required": true,
@@ -1418,8 +1426,8 @@ function AdditionalFieldsForBusinessFinancingParentCompany(props) {
1418
1426
  setValid("currency", true, "parentCompany");
1419
1427
  }
1420
1428
  return /* @__PURE__ */ jsxs("form", { className: "adyen-kyc__high-exposure-parent-company", children: [
1421
- /* @__PURE__ */ jsx(Typography, { el: "h1", variant: "title-l", className: styles$1.businessFinancingBody, children: commonT(($) => $["parentCompanyInformation"]) }),
1422
- /* @__PURE__ */ jsx(Typography, { el: "p", variant: "body", className: styles$1.businessFinancingBody, children: businessFinancingT(($) => $["inThePreviousStepOwnedByAParentCompany"]) }),
1429
+ /* @__PURE__ */ jsx(Typography, { el: "h1", variant: "title-l", className: styles.businessFinancingBody, children: commonT(($) => $["parentCompanyInformation"]) }),
1430
+ /* @__PURE__ */ jsx(Typography, { el: "p", variant: "body", className: styles.businessFinancingBody, children: businessFinancingT(($) => $["inThePreviousStepOwnedByAParentCompany"]) }),
1423
1431
  /* @__PURE__ */ jsx(
1424
1432
  ErrorPanel,
1425
1433
  {
@@ -1499,7 +1507,7 @@ function BusinessFinancingSoleProprietorPersonalInformation(props) {
1499
1507
  { id: "U", name: businessFinancingT(($) => $["preferNotToSay"]) }
1500
1508
  ];
1501
1509
  return /* @__PURE__ */ jsxs(Fragment, { children: [
1502
- /* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", className: styles$1.businessFinancingTitle, children: sectionHeading ? businessFinancingT(($) => $[sectionHeading]) : businessFinancingT(($) => $["personalInformation"]) }),
1510
+ /* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", className: styles.businessFinancingTitle, children: sectionHeading ? businessFinancingT(($) => $[sectionHeading]) : businessFinancingT(($) => $["personalInformation"]) }),
1503
1511
  /* @__PURE__ */ jsx(
1504
1512
  CountryField,
1505
1513
  {
@@ -1642,8 +1650,8 @@ function AdditionalFieldsForBusinessFinancingUltimateParentCompany(props) {
1642
1650
  setValid("currency", true, "ultimateParentCompany");
1643
1651
  }
1644
1652
  return /* @__PURE__ */ jsxs("form", { className: "adyen-kyc__high-exposure-ultimate-parent-company", children: [
1645
- /* @__PURE__ */ jsx(Typography, { el: "h1", variant: "title-l", className: styles$1.businessFinancingBody, children: commonT(($) => $["ultimateParentCompanyInformation"]) }),
1646
- /* @__PURE__ */ jsx(Typography, { el: "p", variant: "body", className: styles$1.businessFinancingBody, children: businessFinancingT(($) => $["inThePreviousStepOwnedByAnUltimateParentCompany"]) }),
1653
+ /* @__PURE__ */ jsx(Typography, { el: "h1", variant: "title-l", className: styles.businessFinancingBody, children: commonT(($) => $["ultimateParentCompanyInformation"]) }),
1654
+ /* @__PURE__ */ jsx(Typography, { el: "p", variant: "body", className: styles.businessFinancingBody, children: businessFinancingT(($) => $["inThePreviousStepOwnedByAnUltimateParentCompany"]) }),
1647
1655
  /* @__PURE__ */ jsx(
1648
1656
  ErrorPanel,
1649
1657
  {
@@ -1711,48 +1719,6 @@ function AdditionalFieldsForBusinessFinancingUltimateParentCompany(props) {
1711
1719
  )
1712
1720
  ] });
1713
1721
  }
1714
- const summaryHeader = "adyen-kyc-summary-header";
1715
- const styles = {
1716
- summaryHeader
1717
- };
1718
- const NewSummary = ({ children, handleEditForm, sections }) => {
1719
- const { t } = useTranslation("common");
1720
- const { Slot } = defineSlots(children, ["errorPanel", "extraContent"]);
1721
- const userEvents = useAnalyticsContext();
1722
- return /* @__PURE__ */ jsxs("div", { role: "region", children: [
1723
- /* @__PURE__ */ jsx(Header, { title: t(($) => $["summary"]), description: t(($) => $["summaryDescription"]) }),
1724
- /* @__PURE__ */ jsxs(StackLayout, { children: [
1725
- /* @__PURE__ */ jsx(Slot, { name: "errorPanel" }),
1726
- sections.map(({ formId, label, items }) => {
1727
- if (formId === "summary") return;
1728
- return /* @__PURE__ */ jsxs(List, { variant: "grouped-secondary", children: [
1729
- /* @__PURE__ */ jsxs("header", { className: styles.summaryHeader, children: [
1730
- /* @__PURE__ */ jsx(Typography, { el: "h2", variant: "title", children: label }),
1731
- /* @__PURE__ */ jsx(
1732
- IconButton,
1733
- {
1734
- variant: "tertiary",
1735
- icon: "edit",
1736
- onClick: () => {
1737
- trackNavigation({
1738
- userEvents,
1739
- actionType: "edit",
1740
- toForm: label,
1741
- label: "Pencil icon"
1742
- });
1743
- handleEditForm(formId);
1744
- },
1745
- ariaLabel: t(($) => $["editForm"], { label })
1746
- }
1747
- )
1748
- ] }),
1749
- /* @__PURE__ */ jsx(StructuredList, { items: items ?? [] })
1750
- ] }, formId);
1751
- })
1752
- ] }),
1753
- /* @__PURE__ */ jsx(Slot, { name: "extraContent" })
1754
- ] });
1755
- };
1756
1722
  const omittedSummaryKeys = [
1757
1723
  "naceCodeLabel",
1758
1724
  "legalFormLabel",
@@ -1763,7 +1729,7 @@ const omittedSummaryKeys = [
1763
1729
  const customLabels = {
1764
1730
  legalForm: "businessStructure",
1765
1731
  naceCode: "industryAndNaceCode",
1766
- netAssets: "totalAssets",
1732
+ balanceSheetTotal: "totalAssets",
1767
1733
  annualTurnover: "annualTurnover",
1768
1734
  legalInformationInsolvency: "legalProceedings",
1769
1735
  isCompanyOwnedByAnotherCompany: "hasParentCompany",
@@ -1847,7 +1813,6 @@ function BusinessFinancingDropin(props) {
1847
1813
  const { t: businessFinancingT } = useTranslation("businessFinancing");
1848
1814
  const { t: commonT, i18n } = useTranslation("common");
1849
1815
  const userEvents = useAnalyticsContext();
1850
- const [defaultData, setDefaultData] = useState();
1851
1816
  useRef(null);
1852
1817
  const invalidateRootLegalEntity = useInvalidateRootLegalEntity();
1853
1818
  const { mutateAsync: createLegalEntity } = useCreateLegalEntity();
@@ -1917,16 +1882,10 @@ function BusinessFinancingDropin(props) {
1917
1882
  actionType: "start"
1918
1883
  });
1919
1884
  }, [userEvents]);
1920
- useEffect(() => {
1921
- if (derivedData) {
1922
- setDefaultData({ ...derivedData });
1923
- }
1924
- }, [derivedData]);
1925
1885
  const datasetUtils = datasetUtilities(i18n.language);
1926
1886
  const [problems, setProblems] = useState();
1927
1887
  const [loadingStatus, setLoadingStatus] = useState("success");
1928
1888
  const [showEndState, setShowEndState] = useState(false);
1929
- const [businessFinancingRequiredForms, setBusinessFinancingRequiredForms] = useState(businessFinancingForms);
1930
1889
  const { showToast } = useToastContext();
1931
1890
  const { isSettingEnabled } = useSettingsContext();
1932
1891
  const showBusinessFinancingFirst = isSettingEnabled(SettingNames.ShowBusinessFinancingFirst);
@@ -2140,7 +2099,7 @@ function BusinessFinancingDropin(props) {
2140
2099
  rules: businessFinancingMultiformRules
2141
2100
  });
2142
2101
  const { data: umfData = derivedData, isValid, errors, valid } = form;
2143
- useEffect(() => {
2102
+ const businessFinancingRequiredForms = useMemo(() => {
2144
2103
  let updateForms = {};
2145
2104
  if (umfData?.soleProprietor) {
2146
2105
  updateForms = { soleProprietor: { ...businessFinancingForms.soleProprietor } };
@@ -2158,16 +2117,20 @@ function BusinessFinancingDropin(props) {
2158
2117
  };
2159
2118
  }
2160
2119
  }
2161
- setBusinessFinancingRequiredForms(updateForms);
2120
+ return updateForms;
2162
2121
  }, [
2163
2122
  umfData?.soleProprietor,
2164
2123
  umfData?.company?.isCompanyOwnedByAnotherCompany,
2165
2124
  umfData?.company?.isParentOwnedByAnotherCompany
2166
2125
  ]);
2167
2126
  useEffect(() => {
2168
- const reqs = getBusinessFinancingRequiredFields(country, umfData);
2127
+ const reqs = getBusinessFinancingRequiredFields(
2128
+ country,
2129
+ umfData,
2130
+ rootLegalEntity?.organization?.registeredAddress
2131
+ );
2169
2132
  setRequiredFields(reqs);
2170
- }, [umfData]);
2133
+ }, [umfData, rootLegalEntity?.organization?.registeredAddress]);
2171
2134
  const forms = useMemo(() => {
2172
2135
  const requiredForms = getRequiredForms(
2173
2136
  businessFinancingRequiredForms,
@@ -2192,7 +2155,7 @@ function BusinessFinancingDropin(props) {
2192
2155
  selectedForm.formId === "soleProprietor" && /* @__PURE__ */ jsx(
2193
2156
  AdditionalFieldsForBusinessFinancingSoleProprietor,
2194
2157
  {
2195
- data: defaultData?.soleProprietor,
2158
+ data: derivedData?.soleProprietor,
2196
2159
  legalEntity: rootLegalEntity,
2197
2160
  heading: businessFinancingT(($) => $["additionalInformationForBusinessFinancing"]),
2198
2161
  id: selectedForm.formId,
@@ -2207,7 +2170,7 @@ function BusinessFinancingDropin(props) {
2207
2170
  selectedForm.formId === companyFormId && /* @__PURE__ */ jsx(
2208
2171
  AdditionalFieldsForBusinessFinancingCompany,
2209
2172
  {
2210
- data: defaultData?.company,
2173
+ data: derivedData?.company,
2211
2174
  legalEntity: rootLegalEntity,
2212
2175
  heading: businessFinancingT(($) => $["additionalInformationForBusinessFinancing"]),
2213
2176
  id: companyFormId,
@@ -2222,7 +2185,7 @@ function BusinessFinancingDropin(props) {
2222
2185
  selectedForm.formId === parentCompanyFormId && /* @__PURE__ */ jsx(
2223
2186
  AdditionalFieldsForBusinessFinancingParentCompany,
2224
2187
  {
2225
- data: defaultData?.parentCompany,
2188
+ data: derivedData?.parentCompany,
2226
2189
  heading: commonT(($) => $["parentCompanyInformation"]),
2227
2190
  id: companyFormId,
2228
2191
  country,
@@ -2234,7 +2197,7 @@ function BusinessFinancingDropin(props) {
2234
2197
  selectedForm.formId === ultimateParentCompanyFormId && /* @__PURE__ */ jsx(
2235
2198
  AdditionalFieldsForBusinessFinancingUltimateParentCompany,
2236
2199
  {
2237
- data: defaultData?.ultimateParentCompany,
2200
+ data: derivedData?.ultimateParentCompany,
2238
2201
  heading: commonT(($) => $["ultimateParentCompanyInformation"]),
2239
2202
  id: companyFormId,
2240
2203
  country,
@@ -2244,7 +2207,7 @@ function BusinessFinancingDropin(props) {
2244
2207
  }
2245
2208
  )
2246
2209
  ] });
2247
- if (!defaultData?.company && !defaultData?.soleProprietor) {
2210
+ if (!derivedData?.company && !derivedData?.soleProprietor) {
2248
2211
  return /* @__PURE__ */ jsx(Loader, {});
2249
2212
  }
2250
2213
  const allValidationErrors = problems?.validationErrors && Object.values(problems.validationErrors)?.reduce(
@@ -2301,7 +2264,7 @@ function BusinessFinancingDropin(props) {
2301
2264
  loadingStatus,
2302
2265
  totalSteps: steps.total,
2303
2266
  children: /* @__PURE__ */ jsx("div", { children: renderActiveForm(
2304
- activeForm || (defaultData?.soleProprietor ? businessFinancingForms.soleProprietor : businessFinancingForms.company)
2267
+ activeForm || (derivedData?.soleProprietor ? businessFinancingForms.soleProprietor : businessFinancingForms.company)
2305
2268
  ) })
2306
2269
  }
2307
2270
  ) });