@adyen/kyc-components 4.23.0 → 4.24.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 (1012) hide show
  1. package/dist/4-people-DKuivE0m.js +35 -0
  2. package/dist/AcceptTermsOfServiceWorkflow-C3JrMbt5.js +28 -0
  3. package/dist/Accordion-Dgdxfe-d.js +112 -0
  4. package/dist/AccountSetupRejected-D63dyojj.js +19 -0
  5. package/dist/AdaptiveWorkflow-XhWdnJv-.js +33 -0
  6. package/dist/AdaptiveWorkflowComponent-pMWy1Vig.js +166 -0
  7. package/dist/AddressFields-BC3QHs2u.js +468 -0
  8. package/dist/Alert-Cc7p0N5h.js +172 -0
  9. package/dist/AnalyticsContext-CpimDlw4.js +21 -0
  10. package/dist/Avatar-oTPu6Ejy.js +54 -0
  11. package/dist/BusinessFinancingDropin-CxHK6KY3.js +1870 -0
  12. package/dist/BusinessFinancingPage-teAAjQl8.js +89 -0
  13. package/dist/BusinessRegistrationNumberField-DKka8aVU.js +103 -0
  14. package/dist/BusinessRegistrationNumberFieldGroup-Df6_sDA0.js +173 -0
  15. package/dist/BusinessTypeSelectionPage-BETJH6LZ.js +457 -0
  16. package/dist/Button-DPJ1k02w.js +108 -0
  17. package/dist/Checkbox-qfdF12cF.js +60 -0
  18. package/dist/ComponentGroup-SozxzKWw.js +32 -0
  19. package/dist/Confirm-DoN9R9Z3.js +77 -0
  20. package/dist/ConstitutionalDocument-Bxsr1hQb.js +1229 -0
  21. package/dist/ContactDetails-CiWftLi4.js +516 -0
  22. package/dist/ContextGuidance-BQPwRscq.js +29 -0
  23. package/dist/ContractViewer-CG9UNGz1.js +1030 -0
  24. package/dist/CountryField-DT6-Jr_b.js +38 -0
  25. package/dist/Currency-oeXHRWzy.js +211 -0
  26. package/dist/CustomerSupport-D0bE0zga.js +141 -0
  27. package/dist/DataConflictsModal-CCaMgguu.js +238 -0
  28. package/dist/DebugModal-Cvp7_Z-i.js +456 -0
  29. package/dist/DecisionMakerDetails-Bbb_8up2.js +569 -0
  30. package/dist/DecisionMakerDetailsPage-BDTMzs1X.js +121 -0
  31. package/dist/DecisionMakers-maoFXpGe.js +594 -0
  32. package/dist/Dropzone-ttbRg2LI.js +250 -0
  33. package/dist/EmbeddedStatus-CYd2p4sP.js +129 -0
  34. package/dist/EndStateLayout-zZPm8S5M.js +83 -0
  35. package/dist/EntityAssociation-C2_Xuvf5.js +163 -0
  36. package/dist/ErrorPanel-D4JNFkvi.js +205 -0
  37. package/dist/Field-DwDJQVSS.js +154 -0
  38. package/dist/FormFlow.module-DqMxjYHl.js +20 -0
  39. package/dist/GlobalEntryModal-CLoPJXFE.js +1203 -0
  40. package/dist/GlobalEntryPage-DNPSSZ3M.js +78 -0
  41. package/dist/Header-DVLlJ6we.js +93 -0
  42. package/dist/Icon-4XR6gZzk.js +175 -0
  43. package/dist/IdentityNumber-3V6ZqvHB.js +540 -0
  44. package/dist/IdentityNumberFieldGroup-CAjlgTWn.js +57 -0
  45. package/dist/IdentityScreeningWorkflow-CBStT1hs.js +307 -0
  46. package/dist/Image-Bn_Yyuof.js +33 -0
  47. package/dist/IndividualDropin-0t7Oj71F.js +4175 -0
  48. package/dist/IndustryCodeFieldGroup-C3Zro2ds.js +189 -0
  49. package/dist/InputDate-Bq3Sb-ZW.js +211 -0
  50. package/dist/InputText-CFDEmEtp.js +119 -0
  51. package/dist/Introduction-z2SqIq1W.js +326 -0
  52. package/dist/InvitedDecisionMakerComponent-CZOVc-t9.js +481 -0
  53. package/dist/JpAddressFields-F1YCOcbO.js +288 -0
  54. package/dist/LandingLayout-BsIoIFzs.js +76 -0
  55. package/dist/LegalCompanyNameField-Cosyjk52.js +108 -0
  56. package/dist/LegalName-CtqIpsfy.js +33 -0
  57. package/dist/LegalRepresentativeDetailsPage-DwIARCpj.js +73 -0
  58. package/dist/Link-CvYhseSD.js +32 -0
  59. package/dist/ListItem-CYTpdOMa.js +70 -0
  60. package/dist/Loader-BVtlpTeo.js +92 -0
  61. package/dist/LoaderWrapper-Dc88hY-P.js +34 -0
  62. package/dist/MaybeModal-C4ySaA8A.js +24 -0
  63. package/dist/Modal-CHES6970.js +109 -0
  64. package/dist/Name-CdCsijr5.js +61 -0
  65. package/dist/NewSummary-D55f70wB.js +73 -0
  66. package/dist/NodeRenderer-B3G7pvjG.js +185 -0
  67. package/dist/PatriotActDisclosure-DqUZeLms.js +266 -0
  68. package/dist/PayoutDetailsDropin-LKMpfono.js +4104 -0
  69. package/dist/PayoutDetailsPage-KNHCeXgk.js +69 -0
  70. package/dist/ProgressBar-DWFxLMUA.js +38 -0
  71. package/dist/RadioGroup-Bf3DlQnZ.js +47 -0
  72. package/dist/RadioWithLabel-DQIOEYpF.js +45 -0
  73. package/dist/Review-CS_-zAlg.js +99 -0
  74. package/dist/RootBusinessDetailsPage-1z2_FAb6.js +67 -0
  75. package/dist/RootBusinessLinesPage-BgbkJaW8.js +1464 -0
  76. package/dist/RootIndividualDetailsPage-DA4hh_gc.js +82 -0
  77. package/dist/Select-phAxjMBQ.js +782 -0
  78. package/dist/SignPCIComponent-tBnZMn1u.js +373 -0
  79. package/dist/SingpassSelection-B6_DsZtn.js +156 -0
  80. package/dist/SoleProprietorshipPage-2s1kA9ZV.js +69 -0
  81. package/dist/SourceOfFundsPage-CTjUdOWK.js +2800 -0
  82. package/dist/SourceOfFundsWorkflow-BZabOpi_.js +28 -0
  83. package/dist/StateContext-B2_Pqd_y.js +9 -0
  84. package/dist/StateField-BpMwetvd.js +55 -0
  85. package/dist/Step-C6XxGAda.js +191 -0
  86. package/dist/StructuredList-nPasiuLi.js +56 -0
  87. package/dist/Summary-DM31WxLr.js +235 -0
  88. package/dist/Task-DwGA1eXE.js +129 -0
  89. package/dist/TaskGroup-T594JSYM.js +46 -0
  90. package/dist/TaskListItem-Dx3hKOqG.js +123 -0
  91. package/dist/TaskStepperContextProvider-DdcsqXT7.js +26 -0
  92. package/dist/TaskVerificationStatus-DEXk_ndE.js +125 -0
  93. package/dist/TaxInformationField-CV7SpMH1.js +242 -0
  94. package/dist/TaxInformationFieldGroup-DI2LzuNr.js +290 -0
  95. package/dist/TaxReportingDropin-xYwJ-ju7.js +480 -0
  96. package/dist/TaxReportingWorkflow-BHyHgiI-.js +28 -0
  97. package/dist/TermsOfServiceManagement-CNQ4J5Gn.js +644 -0
  98. package/dist/TextArea-qGEo3PFG.js +81 -0
  99. package/dist/TileGroup-D1-M64Ul.js +172 -0
  100. package/dist/ToastContext-B_wd2IY2.js +13 -0
  101. package/dist/ToastContextProvider-DjYKMflX.js +103 -0
  102. package/dist/TrustDetailsPage-Byj68n3F.js +1172 -0
  103. package/dist/TrustMemberCompanyPage-Bcz4Ql7s.js +108 -0
  104. package/dist/TrustMemberIndividualPage-D6CgWF88.js +108 -0
  105. package/dist/TrustMemberRoleAndTypePage-IUp5FVRW.js +937 -0
  106. package/dist/TrustMembersOverview-7EoKoSMg.js +453 -0
  107. package/dist/UboTaskItem-BmcGj5_U.js +115 -0
  108. package/dist/UnincorporatedPartnershipIndividualPage-BKpJDhhU.js +78 -0
  109. package/dist/UnincorporatedPartnershipMemberCompanyPage-D8VliL0i.js +78 -0
  110. package/dist/UnincorporatedPartnershipMemberRoleAndTypePage-D00bHhyf.js +256 -0
  111. package/dist/UnincorporatedPartnershipMembersOverview-Dw5IMSkd.js +160 -0
  112. package/dist/VerificationErrorAlert-CixajVtq.js +38 -0
  113. package/dist/Workflow-CWzMRGHX.js +228 -0
  114. package/dist/_rolldown_dynamic_import_helper-sGNwd-kR.js +14 -0
  115. package/dist/accountHolderUtils-CAu4V0ed.js +43 -0
  116. package/dist/adyen-business-financing.js +38 -37
  117. package/dist/adyen-individual-configuration.js +65 -65
  118. package/dist/adyen-individual-status.js +35 -34
  119. package/dist/adyen-invited-decision-maker.js +3 -3
  120. package/dist/adyen-onboarding.js +109 -101
  121. package/dist/adyen-terms-of-service-management.js +3 -3
  122. package/dist/adyen-terms-of-service-status.js +9 -8
  123. package/dist/adyen-transfer-instrument-configuration.js +62 -61
  124. package/dist/adyen-transfer-instrument-management.js +76 -70
  125. package/dist/adyen-verification-status.js +10 -8
  126. package/dist/arrow-right-D2hul7WG.js +20 -0
  127. package/dist/bafinUtils-DDrD6bfK.js +96 -0
  128. package/dist/bag-CRRS1aow.js +20 -0
  129. package/dist/bank-BoirCLLW.js +20 -0
  130. package/dist/bg-BG-B0Ia8sQm.js +7 -0
  131. package/dist/bg-BG-B2xaZ3wB.js +7 -0
  132. package/dist/bg-BG-DAR7_x2a.js +7 -0
  133. package/dist/bg-BG-DqfAUTUt.js +7 -0
  134. package/dist/bg-BG-ivZjQNJZ.js +7 -0
  135. package/dist/bin-BOmfqfrr.js +30 -0
  136. package/dist/birthDateUtils-D6uk7zwm.js +84 -0
  137. package/dist/businessRegistrationNumberPatterns-A08SLm03.js +982 -0
  138. package/dist/capital-DTjbiurV.js +23 -0
  139. package/dist/cash-stack-7KpYpBek.js +33 -0
  140. package/dist/certificate-BPuoJ6Ip.js +23 -0
  141. package/dist/checkmark-BiSLf8M1.js +20 -0
  142. package/dist/checkmark-circle-Ams7bSve.js +28 -0
  143. package/dist/checkmark-circle-fill-_p4ss4ac.js +30 -0
  144. package/dist/checkmark-small-3bw4ftPV.js +20 -0
  145. package/dist/chevron-down-GgZawvoy.js +20 -0
  146. package/dist/chevron-left-TeZTTvo5.js +20 -0
  147. package/dist/chevron-right-Cg8XlTxx.js +20 -0
  148. package/dist/chevron-up-COQUTli0.js +20 -0
  149. package/dist/circle-CypWzg83.js +30 -0
  150. package/dist/circle-small-filled-DfdK2A35.js +20 -0
  151. package/dist/clock-DmfGJ2r9.js +28 -0
  152. package/dist/coins-CBvbB8_X.js +30 -0
  153. package/dist/constants-C8yo0_RA.js +233 -0
  154. package/dist/contract-D1_RJ_xh.js +20 -0
  155. package/dist/countries-BGMTpyJv.js +41 -0
  156. package/dist/country-BEZkohEO.js +25 -0
  157. package/dist/cross-BORHADVQ.js +20 -0
  158. package/dist/cross-circle-fill-CUXdo1x-.js +30 -0
  159. package/dist/cross-circle-fill-small-DdoPZZeo.js +20 -0
  160. package/dist/cs-CZ-BwO4yrI4.js +7 -0
  161. package/dist/cs-CZ-CHMQYoMF.js +7 -0
  162. package/dist/cs-CZ-DsKlW7_D.js +7 -0
  163. package/dist/cs-CZ-NVntX32n.js +7 -0
  164. package/dist/cs-CZ-ywYpJk1F.js +7 -0
  165. package/dist/da-DK-BvT8Ob4A.js +7 -0
  166. package/dist/da-DK-BzBfkSME.js +7 -0
  167. package/dist/da-DK-CE7jnGea.js +7 -0
  168. package/dist/da-DK-DH5YNYFM.js +7 -0
  169. package/dist/da-DK-LPtdP8h0.js +7 -0
  170. package/dist/datasetUtil-BdHPWsxZ.js +45 -0
  171. package/dist/de-DE-C9cUCFOi.js +7 -0
  172. package/dist/de-DE-Cn866nnd.js +7 -0
  173. package/dist/de-DE-DA4LpyZI.js +7 -0
  174. package/dist/de-DE-DKkoZQ0X.js +7 -0
  175. package/dist/de-DE-DY_EJohI.js +7 -0
  176. package/dist/de-DE-vdy64knk.js +7 -0
  177. package/dist/debouncedInputEvent-Fwwp_K_-.js +54 -0
  178. package/dist/debugStore-Dwn1FXrh.js +9 -0
  179. package/dist/decision-makers-group-iEF9oKPp.js +2673 -0
  180. package/dist/decisionMakerRoles-C6LMC4mh.js +185 -0
  181. package/dist/document-1-qvV57JdS.js +20 -0
  182. package/dist/document-person-DiJ7M8-D.js +28 -0
  183. package/dist/download-Ca4w0Yfr.js +23 -0
  184. package/dist/dropinUtils-DTBezwYT.js +491 -0
  185. package/dist/edit-1-D8VhDchs.js +20 -0
  186. package/dist/el-GR-ChapyKa7.js +7 -0
  187. package/dist/el-GR-Cvms0L4K.js +7 -0
  188. package/dist/el-GR-D9PjIB9j.js +7 -0
  189. package/dist/el-GR-Ov9hqMNe.js +7 -0
  190. package/dist/el-GR-aelq5Q0a.js +7 -0
  191. package/dist/el-GR-zFv0QxMR.js +7 -0
  192. package/dist/en-US-B7HQdrn_.js +7 -0
  193. package/dist/en-US-CI7y0UEH.js +7 -0
  194. package/dist/en-US-C_VjFvk_.js +7 -0
  195. package/dist/en-US-Cz4JoU20.js +41 -0
  196. package/dist/en-US-DPr5RN3e.js +7 -0
  197. package/dist/en-US-U0d3NI20.js +7 -0
  198. package/dist/en-US-tFsDZf7y.js +7 -0
  199. package/dist/entityAssociationUtil-CY0grcyH.js +58 -0
  200. package/dist/error-BvgoQFEI.js +36 -0
  201. package/dist/es-ES-BQrdtEfn.js +7 -0
  202. package/dist/es-ES-BdByhG4y.js +7 -0
  203. package/dist/es-ES-BzlHKYJK.js +7 -0
  204. package/dist/es-ES-DCUvAmKI.js +7 -0
  205. package/dist/es-ES-DdrA8McY.js +7 -0
  206. package/dist/es-ES-DhkTbihW.js +7 -0
  207. package/dist/es-LA-3WgncmHx.js +7 -0
  208. package/dist/es-LA-BxtxM3Ty.js +7 -0
  209. package/dist/es-LA-ChRHGYJP.js +7 -0
  210. package/dist/es-LA-JRuDva0n.js +7 -0
  211. package/dist/es-LA-i7tKJmA8.js +7 -0
  212. package/dist/et-EE-BXY66vAz.js +7 -0
  213. package/dist/et-EE-D8TSvkoE.js +7 -0
  214. package/dist/et-EE-DOgb4q9o.js +7 -0
  215. package/dist/et-EE-HHgM0CfO.js +7 -0
  216. package/dist/et-EE-V-YOCgoh.js +7 -0
  217. package/dist/external-link-Dy4le-8Q.js +20 -0
  218. package/dist/fi-FI-B-eTv4bG.js +7 -0
  219. package/dist/fi-FI-CClpbvJJ.js +7 -0
  220. package/dist/fi-FI-CVBmM-U1.js +7 -0
  221. package/dist/fi-FI-DCYPQ6vS.js +7 -0
  222. package/dist/fi-FI-DCbhu29J.js +7 -0
  223. package/dist/fieldConfigurations-CZCFghnK.js +11 -0
  224. package/dist/form-rules-B0RwhsVw.js +284 -0
  225. package/dist/formFieldsUtils-CnDkgahc.js +7 -0
  226. package/dist/formUtils-BHgG8yQZ.js +52 -0
  227. package/dist/formUtils-DVDcdZsP.js +84 -0
  228. package/dist/formatCurrency-BetgkQKi.js +23 -0
  229. package/dist/formatValidationError-q_w9DTrl.js +23 -0
  230. package/dist/fr-FR-B-jA_cbo.js +7 -0
  231. package/dist/fr-FR-BIyJL6Jj.js +7 -0
  232. package/dist/fr-FR-BzyefnBh.js +7 -0
  233. package/dist/fr-FR-C1xYwHeC.js +7 -0
  234. package/dist/fr-FR-D0hY9V44.js +7 -0
  235. package/dist/fr-FR-Doo1FVx-.js +7 -0
  236. package/dist/genUtils-nphCwt1A.js +60 -0
  237. package/dist/getDefaultRegistrationNumberType-CIu4WMln.js +1056 -0
  238. package/dist/getFormSlice-C1ma6Xd4.js +21 -0
  239. package/dist/getLegalEntityCountry-BK-HHa65.js +15 -0
  240. package/dist/getName-DgxRqagk.js +34 -0
  241. package/dist/getProblemsForEntity-Bn6dXidE.js +16 -0
  242. package/dist/getTrustedDecisionMakers-Ta-pURcL.js +25 -0
  243. package/dist/getTrustedFields-BJ88GlM-.js +28 -0
  244. package/dist/gift-Bs_mAgul.js +20 -0
  245. package/dist/globalStore-WASei98w.js +418 -0
  246. package/dist/graph-Co0JhGiY.js +32 -0
  247. package/dist/graph-up-DIvH9haf.js +38 -0
  248. package/dist/headquarter-BESfDGKh.js +42 -0
  249. package/dist/hotel-Vne7G5M6.js +33 -0
  250. package/dist/hr-HR-6Wj5Tf60.js +7 -0
  251. package/dist/hr-HR-B4FRVzrd.js +7 -0
  252. package/dist/hr-HR-B6z7-PYE.js +7 -0
  253. package/dist/hr-HR-BOYktLQ2.js +7 -0
  254. package/dist/hr-HR-Ct_41fWV.js +7 -0
  255. package/dist/http-fdIO--pH.js +204 -0
  256. package/dist/hu-HU-B7ofWKn_.js +7 -0
  257. package/dist/hu-HU-Bwm4UqZz.js +7 -0
  258. package/dist/hu-HU-CO_7jvk9.js +7 -0
  259. package/dist/hu-HU-CgJ_F3l2.js +7 -0
  260. package/dist/hu-HU-DXK7B0r_.js +7 -0
  261. package/dist/image-BQM21XCk.js +23 -0
  262. package/dist/info-DExoPRH5.js +32 -0
  263. package/dist/info-filled-11KMeUso.js +32 -0
  264. package/dist/invalidateRootLegalEntity-BHaVREw-.js +45 -0
  265. package/dist/isEmpty-Uewyl-r6.js +14 -0
  266. package/dist/isEmptyEntity-3OHnhXqG.js +43 -0
  267. package/dist/it-IT-BFIW0DCO.js +7 -0
  268. package/dist/it-IT-CNr6PIu3.js +7 -0
  269. package/dist/it-IT-CQVFYSVx.js +7 -0
  270. package/dist/it-IT-DfGdOsTs.js +7 -0
  271. package/dist/it-IT-DgRuEpeD.js +7 -0
  272. package/dist/it-IT-tZ7dP-Ia.js +7 -0
  273. package/dist/ja-JP--tMJF7eu.js +7 -0
  274. package/dist/ja-JP-BjMyxZiN.js +7 -0
  275. package/dist/ja-JP-Ct54-uwM.js +7 -0
  276. package/dist/ja-JP-CtX9NZKD.js +7 -0
  277. package/dist/ja-JP-DAClbueM.js +7 -0
  278. package/dist/ja-JP-DOuEAOlh.js +7 -0
  279. package/dist/keys-Ce8YnRP2.js +20 -0
  280. package/dist/legalArrangementUtils-C68JdH6I.js +114 -0
  281. package/dist/listToRecord-DumSkYDz.js +10 -0
  282. package/dist/location-zRH5zJ8c.js +23 -0
  283. package/dist/lt-LT-BUuouq_-.js +7 -0
  284. package/dist/lt-LT-Cs3cvyKf.js +7 -0
  285. package/dist/lt-LT-DQp7UGdC.js +7 -0
  286. package/dist/lt-LT-DoYCfhZU.js +7 -0
  287. package/dist/lt-LT-DqtpAjOg.js +7 -0
  288. package/dist/lv-LV-BCXqSzkk.js +7 -0
  289. package/dist/lv-LV-BW0BscAd.js +7 -0
  290. package/dist/lv-LV-C3p57pZV.js +7 -0
  291. package/dist/lv-LV-ZmyUvPst.js +7 -0
  292. package/dist/lv-LV-cKvnQI3j.js +7 -0
  293. package/dist/mail-i1-zg-cv.js +20 -0
  294. package/dist/mapAddressLocalizationToJpAddressSchema-DpOIaxj6.js +26 -0
  295. package/dist/mapExistingFile-BkwRTTRm.js +55 -0
  296. package/dist/mapJpAddressSchemaToAddressLocalizations-D3VO2nhc.js +74 -0
  297. package/dist/mapLegalEntityToIndividualSchema-CBKR-InO.js +251 -0
  298. package/dist/mapScriptLocalization-BCfkZo1y.js +46 -0
  299. package/dist/mapTransferInstrumentToPayoutAccount-ROfaTly6.js +44 -0
  300. package/dist/maskHelpers-C0wnCoJl.js +719 -0
  301. package/dist/minus-circle-filled-CxUdRO8J.js +30 -0
  302. package/dist/nl-NL-B77Xr99l.js +7 -0
  303. package/dist/nl-NL-BUwMAW5C.js +7 -0
  304. package/dist/nl-NL-B_MaTF5h.js +7 -0
  305. package/dist/nl-NL-CePL3t7P.js +7 -0
  306. package/dist/nl-NL-DR5SCDAF.js +7 -0
  307. package/dist/nl-NL-DqGE4Nz5.js +7 -0
  308. package/dist/no-NO-BePxpMbr.js +7 -0
  309. package/dist/no-NO-DGCfRiU8.js +7 -0
  310. package/dist/no-NO-DdI2BI_e.js +7 -0
  311. package/dist/no-NO-P8SZ1t-h.js +7 -0
  312. package/dist/no-NO-oL1v_O9N.js +7 -0
  313. package/dist/options-horizontal-D86T_xAF.js +30 -0
  314. package/dist/partner-Dje0ykF6.js +30 -0
  315. package/dist/patternValidators-DsrZkuOO.js +73 -0
  316. package/dist/pay-by-link-plane-DAiddPu6.js +33 -0
  317. package/dist/payout-DKiGv3F9.js +38 -0
  318. package/dist/pdf-CC8vqpTo.js +22320 -0
  319. package/dist/pdf.worker.min-CdKJICZZ.js +75124 -0
  320. package/dist/person-DgALGIIz.js +23 -0
  321. package/dist/pl-PL-6Q3Ue3F5.js +7 -0
  322. package/dist/pl-PL-B5PBixAB.js +7 -0
  323. package/dist/pl-PL-BCkw9R28.js +7 -0
  324. package/dist/pl-PL-BY6KUTBO.js +7 -0
  325. package/dist/pl-PL-D-s-JI6X.js +7 -0
  326. package/dist/plus-DlQKP2C9.js +20 -0
  327. package/dist/plus-circle-filled-BntUOVIJ.js +30 -0
  328. package/dist/processCapabilities-CWE5UFt8.js +870 -0
  329. package/dist/processValidationErrors-CjsNfiRK.js +62 -0
  330. package/dist/pt-BR-B_XHiDCU.js +7 -0
  331. package/dist/pt-BR-BvNR77Ru.js +7 -0
  332. package/dist/pt-BR-CrLCMcSz2.js +7 -0
  333. package/dist/pt-BR-MrUfWW4a.js +7 -0
  334. package/dist/pt-BR-vwt2tE7H.js +7 -0
  335. package/dist/pt-PT-B17is9TY.js +7 -0
  336. package/dist/pt-PT-BZNPd_Tb.js +7 -0
  337. package/dist/pt-PT-DDYnXawl.js +7 -0
  338. package/dist/pt-PT-DhF8wwYH.js +7 -0
  339. package/dist/pt-PT-Du2K44jh.js +7 -0
  340. package/dist/pt-PT-qAzFgjvF.js +7 -0
  341. package/dist/recurring-DZgT_ekJ.js +23 -0
  342. package/dist/resolveEnvironment-B3aGkYuN.js +1000 -0
  343. package/dist/revenue-accelerate-aMLYFVW6.js +30 -0
  344. package/dist/ro-RO-B3Fcn95o.js +7 -0
  345. package/dist/ro-RO-BA5GhaCE.js +7 -0
  346. package/dist/ro-RO-BmHe4pZ-.js +7 -0
  347. package/dist/ro-RO-DChAv29z.js +7 -0
  348. package/dist/ro-RO-W1t7Mnbn.js +7 -0
  349. package/dist/roleMetadata-Dm1FVuPT.js +56 -0
  350. package/dist/save-uDNye08N.js +20 -0
  351. package/dist/search-0OS6oe8N.js +30 -0
  352. package/dist/show-BWoS9-Y1.js +23 -0
  353. package/dist/sk-SK-BeNF_m_j.js +7 -0
  354. package/dist/sk-SK-C9CiQLgt.js +7 -0
  355. package/dist/sk-SK-CISCMQ2G.js +7 -0
  356. package/dist/sk-SK-CcoUWnJ4.js +7 -0
  357. package/dist/sk-SK-D10Kpths.js +7 -0
  358. package/dist/sl-SI-Bxu4m_5e.js +7 -0
  359. package/dist/sl-SI-DCMml0lX.js +7 -0
  360. package/dist/sl-SI-DmYiMn91.js +7 -0
  361. package/dist/sl-SI-DxomO9JQ.js +7 -0
  362. package/dist/sl-SI-Qe4hzx5a.js +7 -0
  363. package/dist/solution-payments-BMal7uJZ.js +20 -0
  364. package/dist/store-N7ZA4FKy.js +20 -0
  365. package/dist/style.css +2341 -2252
  366. package/dist/styles-DYaAeu4q.js +2337 -2248
  367. package/dist/summaryItem-uDWmtYtt.js +16 -0
  368. package/dist/sv-SE-B-CXDaXM.js +7 -0
  369. package/dist/sv-SE-BzPNBHOj.js +7 -0
  370. package/dist/sv-SE-C9SgeFv6.js +7 -0
  371. package/dist/sv-SE-DESDUMyu.js +7 -0
  372. package/dist/sv-SE-Dq6oK7B5.js +7 -0
  373. package/dist/sv-SE-issaSBHd.js +7 -0
  374. package/dist/terminal-1-0RlQpbUC.js +30 -0
  375. package/dist/toFullWidth-Dgy4X4i8.js +52 -0
  376. package/dist/translation-DbATp_35.js +684 -0
  377. package/dist/trustUtil-5cyXiJnX.js +98 -0
  378. package/dist/types/adaptiveWorkflow/components/Fields/TaxInformation/TaxIdTypeSelectorField.d.ts +1 -2
  379. package/dist/types/adaptiveWorkflow/components/Fields/TaxInformation/TaxInformationFieldGroup.d.ts +1 -2
  380. package/dist/types/adaptiveWorkflow/utils/utils.d.ts +1 -1
  381. package/dist/types/api/configurations/useScenarios.d.ts +1 -1
  382. package/dist/types/api/createLegalEntity/useCreateLegalEntity.d.ts +12 -12
  383. package/dist/types/api/documentValidation/useDocumentValidate.d.ts +2 -2
  384. package/dist/types/api/documents/documents.types.d.ts +9 -0
  385. package/dist/types/api/documents/useCreateDocument.d.ts +10 -3
  386. package/dist/types/api/documents/useDeleteDocument.d.ts +1 -1
  387. package/dist/types/api/documents/useDocument.d.ts +1 -1
  388. package/dist/types/api/documents/useDocuments.d.ts +10 -2
  389. package/dist/types/api/documents/useUpdateDocument.d.ts +3 -3
  390. package/dist/types/api/invitedEntity/getInvitedEntityProblems.d.ts +1 -1
  391. package/dist/types/api/legalEntity/legalEntity.types.d.ts +32 -0
  392. package/dist/types/api/legalEntity/useLegalEntity.d.ts +92 -92
  393. package/dist/types/api/legalEntity/useUpdateLegalEntity.d.ts +14 -14
  394. package/dist/types/api/taskStatus/useTaskStatuses.d.ts +1 -1
  395. package/dist/types/api/transferInstruments/transferInstruments.types.d.ts +18 -0
  396. package/dist/types/api/transferInstruments/useCreateTransferInstrument.d.ts +2 -2
  397. package/dist/types/api/transferInstruments/useTransferInstrument.d.ts +1 -1
  398. package/dist/types/api/transferInstruments/useUpdateTransferInstrument.d.ts +2 -2
  399. package/dist/types/api/transferInstruments/useUpdateTrustedTransferInstrument.d.ts +1 -1
  400. package/dist/types/components/Apps/tasks/TaskList/TaskList.d.ts +1 -1
  401. package/dist/types/components/BankAccount/fields/BankAccountNumber/fieldConfig.d.ts +2 -0
  402. package/dist/types/components/BankAccount/forms/BankDocument/types.d.ts +1 -1
  403. package/dist/types/components/BankAccount/forms/PayoutAccount/types.d.ts +1 -1
  404. package/dist/types/components/BankAccount/forms/PayoutCountryDetails/types.d.ts +1 -1
  405. package/dist/types/components/BankAccount/forms/PayoutDetails/PayoutDetails.d.ts +1 -1
  406. package/dist/types/components/BankAccount/forms/PayoutDetails/types.d.ts +1 -1
  407. package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/AccountHolderDescriptionFragment.d.ts +1 -1
  408. package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/types.d.ts +1 -1
  409. package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/utils.d.ts +1 -1
  410. package/dist/types/components/BankAccount/mapping/mapPayoutAccountSchemaToApiBankAccount.d.ts +2 -2
  411. package/dist/types/components/BankAccount/mapping/mapPayoutDetailsToTransferInstrument.d.ts +3 -3
  412. package/dist/types/components/BankAccount/mapping/mapPayoutDocumentsToApiDocuments.d.ts +2 -2
  413. package/dist/types/components/BankAccount/mapping/mapTransferInstrumentToPayoutAccount.d.ts +1 -1
  414. package/dist/types/components/BankAccount/mapping/payoutKeyMappings.d.ts +8 -4
  415. package/dist/types/components/BankAccount/tasks/PayoutAccount/PayoutAccountTaskListItem.d.ts +2 -2
  416. package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/utils.d.ts +1 -1
  417. package/dist/types/components/Business/hooks/useBusinessDetailsData.d.ts +1 -1
  418. package/dist/types/components/Business/hooks/useSubmitBusinessDetails.types.d.ts +1 -1
  419. package/dist/types/components/Business/mapping/businessDetails/businessDetailsKeyMappings.d.ts +4 -4
  420. package/dist/types/components/Business/mapping/businessDetails/mapBusinessDetailsSchemaToLegalEntity.d.ts +4 -4
  421. package/dist/types/components/Business/mapping/businessDetails/mapLegalEntityToBusinessDetailsSchema.d.ts +1 -1
  422. package/dist/types/components/Business/mapping/businessDetails/solePropBusinessDetailsKeyMappings.d.ts +4 -4
  423. package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +1 -1
  424. package/dist/types/components/Business/utils/buildRequiredForms.d.ts +1 -1
  425. package/dist/types/components/Business/utils/getAvailableCompanyStructures.d.ts +1 -2
  426. package/dist/types/components/Business/utils/utils.d.ts +2 -15
  427. package/dist/types/components/BusinessLines/tasks/types.d.ts +1 -1
  428. package/dist/types/components/Contract/tasks/PciDropin/types.d.ts +1 -1
  429. package/dist/types/components/Contract/tasks/ServiceAgreementDropin/types.d.ts +1 -1
  430. package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +33 -33
  431. package/dist/types/components/EFP/mapping/mapBusinessFinancingToLegalEntity.d.ts +2 -2
  432. package/dist/types/components/EFP/mapping/mapLegalEntityToBusinessFinancing.d.ts +2 -2
  433. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/types.d.ts +3 -3
  434. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/utils.d.ts +3 -4
  435. package/dist/types/components/EFP/tasks/SourceOfFundsDropin/SourceOfFundsGettingStarted/SourceOfFundsGettingStarted.d.ts +2 -3
  436. package/dist/types/components/EFP/tasks/SourceOfFundsDropin/SourceOfFundsUploader/SourceOfFundsUpload.d.ts +1 -1
  437. package/dist/types/components/EFP/tasks/SourceOfFundsDropin/types.d.ts +1 -3
  438. package/dist/types/components/EFP/tasks/SourceOfFundsDropin/utils.d.ts +13 -5
  439. package/dist/types/components/EFP/tasks/TaxReportingDropin/TaxReportingGettingStarted.d.ts +2 -2
  440. package/dist/types/components/EmbeddedDropins/CreateTransferInstrumentComponent/CreateTransferInstrumentComponent.d.ts +1 -1
  441. package/dist/types/components/EmbeddedDropins/ManageIndividualComponent/ManageIndividualComponent.d.ts +1 -1
  442. package/dist/types/components/EmbeddedDropins/ManageTransferInstrumentComponent/ManageTransferInstrumentComponent.d.ts +1 -1
  443. package/dist/types/components/EmbeddedDropins/ManageTransferInstrumentComponent/ManageTransferInstrumentOverview/ManageTransferInstrumentOverview.d.ts +1 -2
  444. package/dist/types/components/EmbeddedDropins/ManageTransferInstrumentComponent/ManageTransferInstrumentOverviewItem/ManageTransferInstrumentOverviewItem.d.ts +1 -2
  445. package/dist/types/components/EmbeddedDropins/ManageTransferInstrumentComponent/ManageTransferInstrumentOverviewItemModal/ManageTransferInstrumentOverviewItemModal.d.ts +1 -2
  446. package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/types.d.ts +1 -1
  447. package/dist/types/components/EmbeddedDropins/ViewVerificationStatus/ViewVerificationStatusComponent.d.ts +1 -1
  448. package/dist/types/components/GlobalEntry/companyTypeMetadata.d.ts +10 -0
  449. package/dist/types/components/GlobalEntry/forms/CompanyStructure/CompanyStructure.d.ts +3 -0
  450. package/dist/types/components/GlobalEntry/forms/CompanyStructure/types.d.ts +10 -0
  451. package/dist/types/components/GlobalEntry/forms/RegistrationInformation/RegistrationInformation.d.ts +1 -1
  452. package/dist/types/components/GlobalEntry/mapping/globalEntryKeyMapping.d.ts +15 -0
  453. package/dist/types/components/GlobalEntry/mapping/mapGlobalEntrySchemaToLegalEntity.d.ts +6 -0
  454. package/dist/types/components/GlobalEntry/mapping/mapLegalEntityToGlobalEntrySchema.d.ts +9 -0
  455. package/dist/types/components/GlobalEntry/rules.d.ts +1 -0
  456. package/dist/types/components/GlobalEntry/tasks/GlobalEntry.d.ts +1 -1
  457. package/dist/types/components/GlobalEntry/tasks/GlobalEntryModal.d.ts +1 -1
  458. package/dist/types/components/GlobalEntry/tasks/types.d.ts +2 -0
  459. package/dist/types/components/GlobalEntry/utils/buildRequiredForms.d.ts +16 -0
  460. package/dist/types/components/GlobalEntry/utils/getAvailableCompanyStructures.d.ts +12 -0
  461. package/dist/types/components/GlobalEntry/utils/submitGlobalEntry.d.ts +20 -0
  462. package/dist/types/components/GlobalEntry/utils/utils.d.ts +18 -0
  463. package/dist/types/components/GlobalEntry/validate.d.ts +3 -1
  464. package/dist/types/components/Individual/forms/BasicDetails/BasicDetails.types.d.ts +3 -3
  465. package/dist/types/components/Individual/forms/IdDocumentUpload/types.d.ts +1 -1
  466. package/dist/types/components/Individual/forms/IdNowVerificationModal/isIdNowModalOpen.d.ts +8 -8
  467. package/dist/types/components/Individual/forms/Individual.types.d.ts +2 -3
  468. package/dist/types/components/Individual/helpers/bafinUtils.d.ts +3 -4
  469. package/dist/types/components/Individual/helpers/findRelevantTaxInformation.d.ts +28 -0
  470. package/dist/types/components/Individual/helpers/hasLiveSelfieError.d.ts +11 -0
  471. package/dist/types/components/Individual/helpers/isManualVerificationOrExistingDoc.d.ts +13 -0
  472. package/dist/types/components/Individual/mapping/individualKeyMappings.d.ts +4 -4
  473. package/dist/types/components/Individual/mapping/mapIndividualDocumentToApiDocument.d.ts +2 -2
  474. package/dist/types/components/Individual/mapping/mapIndividualSchemaToLegalEntity.d.ts +2 -2
  475. package/dist/types/components/Individual/mapping/mapLegalEntityToIndividualSchema.d.ts +1 -1
  476. package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerDetails/DecisionMakerDetails.types.d.ts +1 -1
  477. package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerDetails/utils.d.ts +34 -10
  478. package/dist/types/components/Individual/tasks/DecisionMakers/getTrustedDecisionMakers.d.ts +2 -3
  479. package/dist/types/components/Individual/tasks/DecisionMakers/hooks/useTaskStatusWithTimeout.d.ts +1 -0
  480. package/dist/types/components/Individual/tasks/DecisionMakers/types.d.ts +2 -3
  481. package/dist/types/components/Individual/tasks/DecisionMakers/utils.d.ts +1 -1
  482. package/dist/types/components/Shared/EntityAssociation/types.d.ts +2 -2
  483. package/dist/types/components/Shared/Introduction/Introduction.d.ts +1 -1
  484. package/dist/types/components/Shared/Introduction/IntroductionScreen.d.ts +1 -1
  485. package/dist/types/components/Shared/Introduction/constants.d.ts +1 -1
  486. package/dist/types/components/Shared/Introduction/copy.d.ts +1 -1
  487. package/dist/types/components/Shared/SingpassBanner/SingpassBanner.d.ts +1 -1
  488. package/dist/types/components/Shared/SingpassSelection/types.d.ts +1 -1
  489. package/dist/types/components/Shared/devex/DebugListener/debugInfo.d.ts +1 -2
  490. package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/RegistrationNumberTypeSelector/getDefaultRegistrationNumberType.d.ts +1 -2
  491. package/dist/types/components/Shared/fields/TaxInformationField/TaxIdNumberTypeSelector/TaxIdNumberTypeSelector.d.ts +1 -2
  492. package/dist/types/components/Shared/fields/TaxInformationField/TaxIdNumberTypeSelector/findExistingTaxInformation.d.ts +10 -0
  493. package/dist/types/components/Shared/fields/TaxInformationField/fieldConfig.d.ts +3 -4
  494. package/dist/types/components/Shared/fields/TaxInformationField/taxIdNumberTypes.d.ts +107 -8
  495. package/dist/types/components/Shared/fields/TaxInformationField/types.d.ts +7 -6
  496. package/dist/types/components/Shared/fields/VatNumberField/VatNumberTypeSelector/VatNumberTypeSelector.d.ts +1 -2
  497. package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
  498. package/dist/types/components/Shared/forms/BusinessTypeSelection/types.d.ts +1 -1
  499. package/dist/types/components/Shared/forms/BusinessTypeSelection/useUpdateLegalEntityAndSelectAccountHolder.d.ts +1 -2
  500. package/dist/types/components/Shared/forms/BusinessTypeSelection/utils.d.ts +2 -4
  501. package/dist/types/components/Shared/forms/ConstitutionalDocument/types.d.ts +1 -1
  502. package/dist/types/components/Shared/forms/DocumentUpload/types.d.ts +1 -1
  503. package/dist/types/components/Shared/tasks/CustomerSupport/mapping/customerSupportKeyMapping.d.ts +2 -2
  504. package/dist/types/components/Trust/hooks/useExemptSettlor.d.ts +1 -1
  505. package/dist/types/components/Trust/hooks/useTrustMemberNavigation.hook.d.ts +1 -1
  506. package/dist/types/components/Trust/mapping/mapLegalEntityToTrust.d.ts +1 -1
  507. package/dist/types/components/Trust/mapping/mapTrustDocumentToApiDocument.d.ts +2 -2
  508. package/dist/types/components/Trust/mapping/mapTrustToLegalEntity.d.ts +2 -2
  509. package/dist/types/components/Trust/mapping/trustKeyMappings.d.ts +4 -4
  510. package/dist/types/components/Trust/mapping/trustMembers/getTrustMembers.d.ts +1 -1
  511. package/dist/types/components/Trust/mapping/trustMembers/mapEntityAssociationsToTrustMembers.d.ts +3 -4
  512. package/dist/types/components/Trust/mapping/trustMembers/mapRootLegalEntityToTrustMember.d.ts +1 -1
  513. package/dist/types/components/Trust/tasks/RoleAndTypeDropin/types.d.ts +1 -1
  514. package/dist/types/components/Trust/tasks/TrustDropin/types.d.ts +1 -1
  515. package/dist/types/components/Trust/tasks/TrustMembers/types.d.ts +3 -4
  516. package/dist/types/components/Trust/utils/addOrUpdateAssociatedTrustMember.d.ts +1 -1
  517. package/dist/types/components/Trust/utils/addOrUpdateUndefinedBeneficiary.d.ts +1 -1
  518. package/dist/types/components/Trust/utils/createExemptSettlor.d.ts +1 -1
  519. package/dist/types/components/Trust/utils/deleteAssociatedTrustMember.d.ts +1 -1
  520. package/dist/types/components/Trust/utils/deleteUndefinedBeneficiary.d.ts +1 -1
  521. package/dist/types/components/Trust/utils/trustUtil.d.ts +5 -6
  522. package/dist/types/components/Trust/utils/updateExemptSettlorName.d.ts +1 -1
  523. package/dist/types/components/UnincorporatedPartnership/hooks/useUnincorporatedPartnershipNavigation.d.ts +1 -2
  524. package/dist/types/components/UnincorporatedPartnership/mapping/mapLegalEntityToUnincorporatedPartnership.d.ts +1 -1
  525. package/dist/types/components/UnincorporatedPartnership/mapping/mapUnincorporatedPartnershipToLegalEntity.d.ts +2 -2
  526. package/dist/types/components/UnincorporatedPartnership/mapping/unincorporatedPartnershipKeyMappings.d.ts +3 -3
  527. package/dist/types/components/UnincorporatedPartnership/tasks/UnincorporatedPartnershipMembers/types.d.ts +1 -2
  528. package/dist/types/components/UnincorporatedPartnership/tasks/UnincorporatedPartnershipRoleAndType/types.d.ts +1 -2
  529. package/dist/types/components/UnincorporatedPartnership/utils/unincorporatedPartnershipMembers.d.ts +3 -4
  530. package/dist/types/components/ui/molecules/DocumentGuidance/DocumentGuidance.types.d.ts +1 -1
  531. package/dist/types/context/ToggleContext/types.d.ts +0 -4
  532. package/dist/types/core/errorMapping.d.ts +3 -4
  533. package/dist/types/core/models/api/accountIdentification.d.ts +5 -1
  534. package/dist/types/core/models/api/legal-entity-association.d.ts +0 -19
  535. package/dist/types/core/process-field-configurations.d.ts +4 -6
  536. package/dist/types/core/user-events.d.ts +2 -4
  537. package/dist/types/hooks/introduction/useCanSeeIntroduction.d.ts +1 -1
  538. package/dist/types/hooks/introduction/useIntroductionScreens.d.ts +1 -1
  539. package/dist/types/hooks/introduction/useShouldShowIntroduction.d.ts +1 -1
  540. package/dist/types/hooks/singpass/useSingpassMyInfoLogin.d.ts +1 -1
  541. package/dist/types/hooks/useAssociatedLegalEntity.d.ts +1 -2
  542. package/dist/types/hooks/useAssociatedLegalRepresentative.d.ts +1 -1
  543. package/dist/types/hooks/useBusinessSetup.d.ts +1 -1
  544. package/dist/types/hooks/useForm/types.d.ts +1 -2
  545. package/dist/types/hooks/useLegalEntityType.d.ts +1 -2
  546. package/dist/types/hooks/useScenarioConfiguration.d.ts +1 -1
  547. package/dist/types/router/DefaultRouteRedirect.d.ts +1 -1
  548. package/dist/types/router/OnboardingRouter.d.ts +1 -2
  549. package/dist/types/router/getDefaultTask.d.ts +1 -1
  550. package/dist/types/stores/globalStore/calculateTaskStatus.d.ts +3 -5
  551. package/dist/types/stores/globalStore/determineTaskIdentifiers.d.ts +3 -5
  552. package/dist/types/stores/globalStore/get-task-status.d.ts +4 -4
  553. package/dist/types/stores/globalStore/globalStore.d.ts +3 -5
  554. package/dist/types/stores/globalStore/isEmptyEntity.d.ts +1 -1
  555. package/dist/types/types/businessEntityType.d.ts +1 -2
  556. package/dist/types/types/errors/capability-problems.d.ts +5 -1
  557. package/dist/types/types/errors/entity-problems.d.ts +8 -5
  558. package/dist/types/types/form-rules.d.ts +1 -1
  559. package/dist/types/utils/accountHolderUtils.d.ts +1 -1
  560. package/dist/types/utils/addLinkedFields.d.ts +2 -2
  561. package/dist/types/utils/analytics/debouncedInputEvent.d.ts +4 -4
  562. package/dist/types/utils/analytics/getAnalyticsAssociatedEntityDetails.d.ts +2 -3
  563. package/dist/types/utils/analytics/getPrefilledDetails.d.ts +2 -2
  564. package/dist/types/utils/api/documentUtils.d.ts +21 -10
  565. package/dist/types/utils/api/getProblemsForEntity.d.ts +1 -1
  566. package/dist/types/utils/api/processCapabilities.d.ts +11 -4
  567. package/dist/types/utils/bankUtils.d.ts +5 -0
  568. package/dist/types/utils/birthDateUtils.d.ts +6 -1
  569. package/dist/types/utils/businessUtils.d.ts +21 -6
  570. package/dist/types/utils/customerSupportUtils.d.ts +2 -3
  571. package/dist/types/utils/decisionMakerRoles.d.ts +4 -5
  572. package/dist/types/utils/entityAssociationUtil.d.ts +21 -12
  573. package/dist/types/utils/entityStatusUtil.d.ts +1 -1
  574. package/dist/types/utils/getFieldsWithExistingData.d.ts +2 -2
  575. package/dist/types/utils/getLegalEntityCountry.d.ts +1 -1
  576. package/dist/types/utils/getName.d.ts +3 -3
  577. package/dist/types/utils/getTrustedFields.d.ts +4 -5
  578. package/dist/types/utils/mapping/documentGuidanceMap.d.ts +2 -2
  579. package/dist/types/utils/mapping/getPage.d.ts +3 -4
  580. package/dist/types/utils/mapping/mappingRecord.d.ts +1 -1
  581. package/dist/types/utils/roleMetadata.d.ts +1 -1
  582. package/dist/types/utils/unincorporatedParnershipUtils.d.ts +4 -4
  583. package/dist/types-B9zXzag-.js +18 -0
  584. package/dist/types-BA3bcGAv.js +58 -0
  585. package/dist/types-CZAHRt31.js +147 -0
  586. package/dist/types-Cwq1JAWT.js +31 -0
  587. package/dist/upload-C5NC1E4N.js +23 -0
  588. package/dist/uppercase-DvjwUM0n.js +7 -0
  589. package/dist/useAccountHolder-DDto9d9n.js +102 -0
  590. package/dist/useAdaptiveWorkflow-DryNv0zI.js +28 -0
  591. package/dist/useAllowedCountries-C-nqVePW.js +80 -0
  592. package/dist/useAnalyticsContext-gSnRnYgV.js +12 -0
  593. package/dist/useAssociatedLegalEntity-DtZtKlls.js +35 -0
  594. package/dist/useBusinessDetailsData-DFU0dLxw.js +4732 -0
  595. package/dist/useBusinessLines-BZfFqvS_.js +27 -0
  596. package/dist/useCanSeeIntroduction-DQbanJNE.js +38 -0
  597. package/dist/useCreateLegalEntity-qP7MeAmi.js +24 -0
  598. package/dist/useDataMissingRemediations-ttUrk09_.js +39 -0
  599. package/dist/useDataset-CdLBLq98.js +98 -0
  600. package/dist/useDeleteTransferInstrument-Dtv14H9I.js +31 -0
  601. package/dist/useForm-CWrbJG44.js +504 -0
  602. package/dist/useHideTaskStepper-Dk7ZQ3U8.js +26 -0
  603. package/dist/useId-BkDhUta2.js +28 -0
  604. package/dist/useIndustryCodes-BMK6IMiW.js +32 -0
  605. package/dist/useLegalEntity-DHA8TJeV.js +48 -0
  606. package/dist/useMultiForm-BxASst0O.js +790 -0
  607. package/dist/useNavigate-CO1Mcekp.js +246 -0
  608. package/dist/useOnboardingStatus-Cz6-hSX4.js +23 -0
  609. package/dist/usePciQuestionnaireList-CWz7Ngs6.js +26 -0
  610. package/dist/useSalesChannels-bV9DgyLW.js +47 -0
  611. package/dist/useScenarios-Bn93htbx.js +55 -0
  612. package/dist/useSettingsContext-9O3Aqpfq.js +12 -0
  613. package/dist/useTaskLandedEvent-DwZHcMEQ.js +26 -0
  614. package/dist/useTaskStatus-DJxOWvuN.js +23 -0
  615. package/dist/useTermsOfServiceStatus-CyVxYqpg.js +39 -0
  616. package/dist/useToastContext-B6Mqc2HY.js +12 -0
  617. package/dist/useToggleContext-B_YexrbT.js +21 -0
  618. package/dist/useTrustMembers-DWo3WU8M.js +151 -0
  619. package/dist/useUnincorporatedPartnershipMembers-DwFPW09D.js +69 -0
  620. package/dist/useUpdateBusinessLines-JRPjqoe9.js +43 -0
  621. package/dist/useUpdateLegalEntity-CqmqXsbR.js +29 -0
  622. package/dist/utils-BWumuCvl.js +210 -0
  623. package/dist/utils-CJcGZvj1.js +178 -0
  624. package/dist/utils-CYUYe54m.js +24 -0
  625. package/dist/utils-Ck_mZapQ.js +1755 -0
  626. package/dist/utils-DdHbAadK.js +80 -0
  627. package/dist/utils-SKYT7xU4.js +52 -0
  628. package/dist/validate-BZ1-ZeKr.js +430 -0
  629. package/dist/validate-DTz70AWN.js +224 -0
  630. package/dist/validate-DUcT-JGF.js +178 -0
  631. package/dist/validate-Dr8UKZCX.js +126 -0
  632. package/dist/validateExtractionResult-CntKbt8c.js +343 -0
  633. package/dist/validationError-DV6t8Ubb.js +55 -0
  634. package/dist/validationResult-bjYBDjbU.js +29 -0
  635. package/dist/validatorUtils-D2O6AAZn.js +106 -0
  636. package/dist/warning-circle-fill-C2lMYPJW.js +30 -0
  637. package/dist/warning-diamond-filled-CQ2DdW5g.js +30 -0
  638. package/dist/webinar-BpZWqd-g.js +33 -0
  639. package/package.json +26 -26
  640. package/dist/4-people-Dxu4nHSX.js +0 -35
  641. package/dist/AcceptTermsOfServiceWorkflow-CvKbU2WY.js +0 -28
  642. package/dist/Accordion-Sjyj7C_t.js +0 -112
  643. package/dist/AccountSetupRejected-Cq_nlmLn.js +0 -18
  644. package/dist/AdaptiveWorkflow-CM7ZVGXv.js +0 -210
  645. package/dist/AdaptiveWorkflowComponent-tM1hJ1zF.js +0 -165
  646. package/dist/AddressFields-BsxEdBvQ.js +0 -464
  647. package/dist/Avatar-Zp1T9qAL.js +0 -54
  648. package/dist/BusinessFinancingDropin-vugW4Vvi.js +0 -1857
  649. package/dist/BusinessFinancingPage-0J_LImeN.js +0 -89
  650. package/dist/BusinessRegistrationNumberField-qdC_srMn.js +0 -101
  651. package/dist/BusinessRegistrationNumberFieldGroup-BvC9n4ou.js +0 -171
  652. package/dist/BusinessTypeSelectionPage-WCEqP4G2.js +0 -457
  653. package/dist/Button-DfRmINzF.js +0 -108
  654. package/dist/Checkbox-B730k3Yy.js +0 -108
  655. package/dist/ComponentGroup-CsnkYMbT.js +0 -32
  656. package/dist/ConstitutionalDocument-D92EPGmG.js +0 -1224
  657. package/dist/ContactDetails-DDSd6X0z.js +0 -511
  658. package/dist/ContextGuidance-B2ew1lzC.js +0 -29
  659. package/dist/ContractViewer-JtnAXSDa.js +0 -979
  660. package/dist/Currency-BKTf95Wp.js +0 -210
  661. package/dist/CustomerSupport-CCFayyJG.js +0 -140
  662. package/dist/DataConflictsModal-D-fP_eNs.js +0 -237
  663. package/dist/DebugModal-CG6CvUnj.js +0 -450
  664. package/dist/DecisionMakerDetails-DWC1nORL.js +0 -565
  665. package/dist/DecisionMakerDetailsPage-BVXA74FO.js +0 -122
  666. package/dist/DecisionMakers-Cvm_i6Uf.js +0 -589
  667. package/dist/Dropzone-CNHxDEc3.js +0 -250
  668. package/dist/EmbeddedStatus-tbJfdxm8.js +0 -129
  669. package/dist/EndStateLayout-BK1Hh02g.js +0 -83
  670. package/dist/EntityAssociation-i903L9Dh.js +0 -163
  671. package/dist/ErrorPanel-tnFOlOZU.js +0 -205
  672. package/dist/GlobalEntryModal-DQoIIvGS.js +0 -975
  673. package/dist/GlobalEntryPage-DLRGPpAu.js +0 -78
  674. package/dist/Icon-C3S5_kkS.js +0 -175
  675. package/dist/IdentityNumber-B8MXzXsO.js +0 -536
  676. package/dist/IdentityNumberFieldGroup-D7xb2TY7.js +0 -57
  677. package/dist/IdentityScreeningWorkflow-BdGXtdns.js +0 -307
  678. package/dist/Image-D82terx4.js +0 -33
  679. package/dist/IndividualDropin-C0vTSDYU.js +0 -4138
  680. package/dist/IndustryCodeFieldGroup-CGcE5yYR.js +0 -188
  681. package/dist/InputDate-Ci60MBrH.js +0 -211
  682. package/dist/InputText-CTpVF0Mu.js +0 -154
  683. package/dist/Introduction-Dx6DDaL7.js +0 -327
  684. package/dist/InvitedDecisionMakerComponent-Ckd26d6Y.js +0 -481
  685. package/dist/JpAddressFields-C9MbL5XV.js +0 -287
  686. package/dist/LegalCompanyNameField-D0jM5LDT.js +0 -108
  687. package/dist/LegalName-TjhII9_p.js +0 -33
  688. package/dist/LegalRepresentativeDetailsPage-CvGtANu3.js +0 -74
  689. package/dist/Link-c2jAgGgc.js +0 -32
  690. package/dist/ListItem-C35r8558.js +0 -93
  691. package/dist/Loader-BEpMlKm2.js +0 -92
  692. package/dist/Modal-BsivDPTd.js +0 -129
  693. package/dist/Name-DMf8Uyof.js +0 -61
  694. package/dist/NewSummary-DxWLTnJy.js +0 -73
  695. package/dist/PatriotActDisclosure-ChZ_ePr2.js +0 -265
  696. package/dist/PayoutDetailsDropin-BhtJSFAS.js +0 -4073
  697. package/dist/PayoutDetailsPage-MW5Pygp2.js +0 -70
  698. package/dist/RadioGroup-D8DRUJ2o.js +0 -1806
  699. package/dist/Review-DImhCvoG.js +0 -99
  700. package/dist/RootBusinessDetailsPage-Cmh9Z_4g.js +0 -68
  701. package/dist/RootBusinessLinesPage-C_p-CtCH.js +0 -1455
  702. package/dist/RootIndividualDetailsPage-04cJ6C15.js +0 -80
  703. package/dist/Select-ByVcS_J2.js +0 -1093
  704. package/dist/SignPCIComponent-CAwp2xCC.js +0 -370
  705. package/dist/SingpassSelection-Txx3gp_g.js +0 -157
  706. package/dist/SoleProprietorshipPage-CWegllTo.js +0 -70
  707. package/dist/SourceOfFundsPage-B22iW1ow.js +0 -2781
  708. package/dist/SourceOfFundsWorkflow-BKHZbLR_.js +0 -28
  709. package/dist/StateField-CsO_28Co.js +0 -296
  710. package/dist/Step-BUMarnLL.js +0 -191
  711. package/dist/Task-Bj_CjiHG.js +0 -129
  712. package/dist/TaskGroup-BMXhoq1Y.js +0 -46
  713. package/dist/TaskListItem-BIKdDEzU.js +0 -123
  714. package/dist/TaskStepperContextProvider-D0tKJplv.js +0 -26
  715. package/dist/TaskVerificationStatus-DPA4ZEPa.js +0 -125
  716. package/dist/TaxInformationFieldGroup-D_6IRGj9.js +0 -287
  717. package/dist/TaxReportingDropin-DA475crP.js +0 -475
  718. package/dist/TaxReportingWorkflow-kcto0Ysw.js +0 -28
  719. package/dist/TermsOfServiceManagement-HDnaIeWZ.js +0 -635
  720. package/dist/TextArea-qbFhi8Az.js +0 -81
  721. package/dist/TrustDetailsPage-BqVS0xOU.js +0 -1155
  722. package/dist/TrustMemberCompanyPage-DTe7xWpj.js +0 -109
  723. package/dist/TrustMemberIndividualPage-C1BDs9Rm.js +0 -110
  724. package/dist/TrustMemberRoleAndTypePage-GXWuitmt.js +0 -927
  725. package/dist/TrustMembersOverview-BjJ5fPcC.js +0 -449
  726. package/dist/UboTaskItem-Aq3iNKX0.js +0 -115
  727. package/dist/UnincorporatedPartnershipIndividualPage-DdPh2_sa.js +0 -79
  728. package/dist/UnincorporatedPartnershipMemberCompanyPage-h3OTr_91.js +0 -79
  729. package/dist/UnincorporatedPartnershipMemberRoleAndTypePage-CwemN4fL.js +0 -254
  730. package/dist/UnincorporatedPartnershipMembersOverview-CUczPfUl.js +0 -158
  731. package/dist/VerificationErrorAlert-BBfoLMwb.js +0 -64
  732. package/dist/Workflow-Do7P-qDn.js +0 -228
  733. package/dist/accountHolderUtils-DMi_DHCU.js +0 -44
  734. package/dist/arrow-right-Bk-ewsex.js +0 -20
  735. package/dist/bafinUtils-M2AASP_e.js +0 -1963
  736. package/dist/bag-9BNq_QQO.js +0 -20
  737. package/dist/bank-BRbxxVK5.js +0 -20
  738. package/dist/bg-BG-BtgA44Ui.js +0 -7
  739. package/dist/bg-BG-DX5QKxJz.js +0 -7
  740. package/dist/bg-BG-DYkxVgeJ.js +0 -7
  741. package/dist/bg-BG-K6LIkCdf.js +0 -7
  742. package/dist/bg-BG-uuNDTOoN.js +0 -7
  743. package/dist/bin-DE1613_5.js +0 -30
  744. package/dist/businessRegistrationNumberPatterns-C_MSKHlF.js +0 -981
  745. package/dist/capital-aNk7ragc.js +0 -23
  746. package/dist/cash-stack-DuKKc4Qj.js +0 -33
  747. package/dist/certificate-9gDKvXCm.js +0 -23
  748. package/dist/checkmark-BuqDN4WO.js +0 -20
  749. package/dist/checkmark-circle-OqcwA6N6.js +0 -28
  750. package/dist/checkmark-circle-fill-BfcUovCf.js +0 -30
  751. package/dist/checkmark-small-CBORXg_J.js +0 -20
  752. package/dist/chevron-down-CjRta08O.js +0 -20
  753. package/dist/chevron-left-BEm04mIh.js +0 -20
  754. package/dist/chevron-right-B2GkHG0J.js +0 -20
  755. package/dist/chevron-up-BKfe5Btb.js +0 -20
  756. package/dist/circle-C-uuRI8F.js +0 -30
  757. package/dist/circle-small-filled-Bkh5_ZEu.js +0 -20
  758. package/dist/clock-BWfWiMxz.js +0 -28
  759. package/dist/coins-Cw-jDTUz.js +0 -30
  760. package/dist/constants-BSBlqXY7.js +0 -231
  761. package/dist/contract-PFVBW8xa.js +0 -20
  762. package/dist/countries-BE4iGVAo.js +0 -41
  763. package/dist/country-zZC2TAQB.js +0 -25
  764. package/dist/cross-B37j1-r4.js +0 -20
  765. package/dist/cross-circle-fill-CcjwpLj2.js +0 -30
  766. package/dist/cross-circle-fill-small-CJ4fddNo.js +0 -20
  767. package/dist/cs-CZ-BJSrh3Vp.js +0 -7
  768. package/dist/cs-CZ-CMXGY6Ep.js +0 -7
  769. package/dist/cs-CZ-Ci8c58xJ.js +0 -7
  770. package/dist/cs-CZ-Cu1v5FA8.js +0 -7
  771. package/dist/cs-CZ-lJQmuyHq.js +0 -7
  772. package/dist/da-DK-B9O3xbY6.js +0 -7
  773. package/dist/da-DK-BNwXg4DX.js +0 -7
  774. package/dist/da-DK-C1kmOHvo.js +0 -7
  775. package/dist/da-DK-D53M_d04.js +0 -7
  776. package/dist/da-DK-DjAV5d9A.js +0 -7
  777. package/dist/de-DE-B3sSNcDv.js +0 -7
  778. package/dist/de-DE-C9N6F5oM.js +0 -7
  779. package/dist/de-DE-CjMOQMqQ.js +0 -7
  780. package/dist/de-DE-qJPTCQlG.js +0 -7
  781. package/dist/de-DE-qSBQE-6M.js +0 -7
  782. package/dist/de-DE-w4l6boYT.js +0 -7
  783. package/dist/decision-makers-group-DAoxQRJ3.js +0 -4169
  784. package/dist/decisionMakerRoles-APTR-Ah_.js +0 -185
  785. package/dist/document-1-B3vw8uuK.js +0 -20
  786. package/dist/document-person-CERdIfH0.js +0 -28
  787. package/dist/download-CthdK4dV.js +0 -23
  788. package/dist/edit-1-BW7NwWP7.js +0 -20
  789. package/dist/el-GR-BLNCX9mm.js +0 -7
  790. package/dist/el-GR-Bx996PXx.js +0 -7
  791. package/dist/el-GR-CgoxpC-Q.js +0 -7
  792. package/dist/el-GR-DaAMIpOR.js +0 -7
  793. package/dist/el-GR-DqTetsjB.js +0 -7
  794. package/dist/el-GR-pGsVWsOm.js +0 -7
  795. package/dist/en-US-B82BbZaB.js +0 -7
  796. package/dist/en-US-BUmtG-Wj.js +0 -27
  797. package/dist/en-US-C3i5Oge2.js +0 -7
  798. package/dist/en-US-C8karqc5.js +0 -7
  799. package/dist/en-US-CJPD8qHc.js +0 -7
  800. package/dist/en-US-D0fscfsz.js +0 -7
  801. package/dist/en-US-DapC--Cs.js +0 -7
  802. package/dist/entityAssociationUtil-CLBR9osP.js +0 -59
  803. package/dist/error-CpJV-CLa.js +0 -36
  804. package/dist/es-ES-C14ZT-97.js +0 -7
  805. package/dist/es-ES-DeT4zIDW.js +0 -7
  806. package/dist/es-ES-DyB2KXfT.js +0 -7
  807. package/dist/es-ES-U4-lDfZq.js +0 -7
  808. package/dist/es-ES-tVQDUTJN.js +0 -7
  809. package/dist/es-ES-wvcyuTNN.js +0 -7
  810. package/dist/es-LA-B5IRDCf_.js +0 -7
  811. package/dist/es-LA-B_hzWiiE.js +0 -7
  812. package/dist/es-LA-CG_cu1hM.js +0 -7
  813. package/dist/es-LA-ChLRkx-r.js +0 -7
  814. package/dist/es-LA-mFT_9PL_.js +0 -7
  815. package/dist/et-EE-4_ZUNt3W.js +0 -7
  816. package/dist/et-EE-BCWBT8XN.js +0 -7
  817. package/dist/et-EE-BQEyJFZb.js +0 -7
  818. package/dist/et-EE-DSK7kb3n.js +0 -7
  819. package/dist/et-EE-DWVzz1wR.js +0 -7
  820. package/dist/external-link-CFgynH5A.js +0 -20
  821. package/dist/fi-FI-B-7uBAf5.js +0 -7
  822. package/dist/fi-FI-BeJtSWIh.js +0 -7
  823. package/dist/fi-FI-Caa9ydMd.js +0 -7
  824. package/dist/fi-FI-D06EzKrW.js +0 -7
  825. package/dist/fi-FI-DgMsQBRO.js +0 -7
  826. package/dist/form-rules-zzbZ2bV6.js +0 -1089
  827. package/dist/formatCurrency-Cq3WFpdZ.js +0 -23
  828. package/dist/formatValidationError-BHvKLMYZ.js +0 -23
  829. package/dist/fr-FR-8a-RK9xd.js +0 -7
  830. package/dist/fr-FR-BCfqr4jm.js +0 -7
  831. package/dist/fr-FR-BTJoQq71.js +0 -7
  832. package/dist/fr-FR-CDv300-8.js +0 -7
  833. package/dist/fr-FR-D7DTFYe4.js +0 -7
  834. package/dist/fr-FR-Dl4NL-Nc.js +0 -7
  835. package/dist/genUtils-Ce61IJs8.js +0 -60
  836. package/dist/getDefaultRegistrationNumberType-CI1NVzJR.js +0 -1055
  837. package/dist/getFormSlice-DzRO0UUx.js +0 -52
  838. package/dist/getLegalEntityCountry-CNE5uei8.js +0 -17
  839. package/dist/getName-s7qmFean.js +0 -35
  840. package/dist/getProblemsForEntity-Bh9nSdOW.js +0 -16
  841. package/dist/getTrustedDecisionMakers-DX3nImM5.js +0 -25
  842. package/dist/gift-0jLCte2h.js +0 -20
  843. package/dist/graph-DrxuzQF7.js +0 -32
  844. package/dist/graph-up-4qLbS2Ds.js +0 -38
  845. package/dist/headquarter-3o2GHW5H.js +0 -42
  846. package/dist/hotel-pZlrEAK8.js +0 -33
  847. package/dist/hr-HR-B11sggmG.js +0 -7
  848. package/dist/hr-HR-BjxPRJ1o.js +0 -7
  849. package/dist/hr-HR-COdiWKoq.js +0 -7
  850. package/dist/hr-HR-CXH5M5JZ.js +0 -7
  851. package/dist/hr-HR-me1zsMas.js +0 -7
  852. package/dist/http-DsJtugN1.js +0 -204
  853. package/dist/hu-HU-BNlsrO-l.js +0 -7
  854. package/dist/hu-HU-BQ5310Yi.js +0 -7
  855. package/dist/hu-HU-D1ZZwcl0.js +0 -7
  856. package/dist/hu-HU-DkSsL94T.js +0 -7
  857. package/dist/hu-HU-Dp6xOBN_.js +0 -7
  858. package/dist/image-tfgNnE3G.js +0 -23
  859. package/dist/info-DJW5JooY.js +0 -32
  860. package/dist/info-filled-C5mP6T4Z.js +0 -32
  861. package/dist/it-IT-BORQC-7u.js +0 -7
  862. package/dist/it-IT-BlaVymCj.js +0 -7
  863. package/dist/it-IT-CawjvBDX.js +0 -7
  864. package/dist/it-IT-Cnk7j_gC.js +0 -7
  865. package/dist/it-IT-DIIRAF4_.js +0 -7
  866. package/dist/it-IT-x4LV31GV.js +0 -7
  867. package/dist/ja-JP-CyXnoIu3.js +0 -7
  868. package/dist/ja-JP-DBne3dbI.js +0 -7
  869. package/dist/ja-JP-DS8zN3mY.js +0 -7
  870. package/dist/ja-JP-Dpe9Odla.js +0 -7
  871. package/dist/ja-JP-DrHQO_Se.js +0 -7
  872. package/dist/ja-JP-h3E8hgLv.js +0 -7
  873. package/dist/legal-entity-type-0MfCGzUf.js +0 -13
  874. package/dist/legalArrangementUtils-xvCxpgzJ.js +0 -113
  875. package/dist/location-Dk0rAiaT.js +0 -23
  876. package/dist/lt-LT-8kOI6QVq.js +0 -7
  877. package/dist/lt-LT-B18sQY9g.js +0 -7
  878. package/dist/lt-LT-Byl8QeWO.js +0 -7
  879. package/dist/lt-LT-D3ZUJfjr.js +0 -7
  880. package/dist/lt-LT-Fc1lOUlz.js +0 -7
  881. package/dist/lv-LV-C70c94CI.js +0 -7
  882. package/dist/lv-LV-CXifQKfG.js +0 -7
  883. package/dist/lv-LV-DctYQmfH.js +0 -7
  884. package/dist/lv-LV-Mj_iV56f.js +0 -7
  885. package/dist/lv-LV-adiXoKhv.js +0 -7
  886. package/dist/mail-DG7MBDNE.js +0 -20
  887. package/dist/mapAddressLocalizationToJpAddressSchema-TUaHGQh6.js +0 -26
  888. package/dist/mapExistingFile-CwGW1ru4.js +0 -55
  889. package/dist/mapJpAddressSchemaToAddressLocalizations-CdP6PRAO.js +0 -73
  890. package/dist/mapLegalEntityToIndividualSchema-ByhXwZqs.js +0 -214
  891. package/dist/mapTransferInstrumentToPayoutAccount-6eLKhumO.js +0 -44
  892. package/dist/minus-circle-filled-DglqAgJW.js +0 -30
  893. package/dist/nl-NL-BIpptPn4.js +0 -7
  894. package/dist/nl-NL-BWGCqpWp.js +0 -7
  895. package/dist/nl-NL-Bv8Zk-6e.js +0 -7
  896. package/dist/nl-NL-DOB0b0m4.js +0 -7
  897. package/dist/nl-NL-ehxkZFQd.js +0 -7
  898. package/dist/nl-NL-jt4eYGEY.js +0 -7
  899. package/dist/no-NO-BG1sYkpp.js +0 -7
  900. package/dist/no-NO-CeZQnyyD.js +0 -7
  901. package/dist/no-NO-Chwg5Roi.js +0 -7
  902. package/dist/no-NO-Dx_Z3uoZ.js +0 -7
  903. package/dist/no-NO-P5tRWhV9.js +0 -7
  904. package/dist/options-horizontal-CTUn7IEx.js +0 -30
  905. package/dist/partner-1StoI4_W.js +0 -30
  906. package/dist/pay-by-link-plane-Sa_qkL8C.js +0 -33
  907. package/dist/payout-BAYSxSqU.js +0 -38
  908. package/dist/pdf-uNYg4Mqz.js +0 -22315
  909. package/dist/pdf.worker.min-gK7UJW5a.js +0 -74644
  910. package/dist/person-Da15_s3G.js +0 -23
  911. package/dist/pl-PL-BsXtscoI.js +0 -7
  912. package/dist/pl-PL-CWFdZf24.js +0 -7
  913. package/dist/pl-PL-DSbuyzBx.js +0 -7
  914. package/dist/pl-PL-J9S3_lCf.js +0 -7
  915. package/dist/pl-PL-_KG-ZD1N.js +0 -7
  916. package/dist/plus-BQccvKkd.js +0 -20
  917. package/dist/plus-circle-filled-CqC30FRL.js +0 -30
  918. package/dist/processCapabilities-DRD0Aq2i.js +0 -874
  919. package/dist/processValidationErrors-oxuCOsth.js +0 -62
  920. package/dist/pt-BR-B2q9Nl16.js +0 -7
  921. package/dist/pt-BR-BYbyk6xS.js +0 -7
  922. package/dist/pt-BR-Cph-P8oH.js +0 -7
  923. package/dist/pt-BR-D1yTuXWd2.js +0 -7
  924. package/dist/pt-BR-fKlNUybd.js +0 -7
  925. package/dist/pt-PT-C1gtp2_N.js +0 -7
  926. package/dist/pt-PT-CQQkh5PS.js +0 -7
  927. package/dist/pt-PT-D8ldyR-j.js +0 -7
  928. package/dist/pt-PT-DAvsI-Tr.js +0 -7
  929. package/dist/pt-PT-DhokEMPi.js +0 -7
  930. package/dist/pt-PT-IPhkbQvT.js +0 -7
  931. package/dist/recurring-DSR1fNMh.js +0 -23
  932. package/dist/resolveEnvironment-BYEL10Nc.js +0 -2524
  933. package/dist/revenue-accelerate-CPhAVpPK.js +0 -30
  934. package/dist/ro-RO-C6xoaASq.js +0 -7
  935. package/dist/ro-RO-CP_IrOlX.js +0 -7
  936. package/dist/ro-RO-CQJk7Cpo.js +0 -7
  937. package/dist/ro-RO-CnMe6Mfw.js +0 -7
  938. package/dist/ro-RO-_BLhsnIB.js +0 -7
  939. package/dist/save-DQ-mJX8e.js +0 -20
  940. package/dist/search-DWqWTW_K.js +0 -30
  941. package/dist/show-BbhlD3IY.js +0 -23
  942. package/dist/sk-SK-BOc9IqyW.js +0 -7
  943. package/dist/sk-SK-Bb1CdAzD.js +0 -7
  944. package/dist/sk-SK-Br1Y4_CN.js +0 -7
  945. package/dist/sk-SK-Bx2_85dW.js +0 -7
  946. package/dist/sk-SK-C889qQFo.js +0 -7
  947. package/dist/sl-SI-B-Xa0hlk.js +0 -7
  948. package/dist/sl-SI-BQc61Sz2.js +0 -7
  949. package/dist/sl-SI-DHPadSTy.js +0 -7
  950. package/dist/sl-SI-DO9c7geI.js +0 -7
  951. package/dist/sl-SI-bkhhInrg.js +0 -7
  952. package/dist/solution-payments-D4BORMsX.js +0 -20
  953. package/dist/store-DWaq3ZiC.js +0 -20
  954. package/dist/sv-SE-BXrlr0X5.js +0 -7
  955. package/dist/sv-SE-Dk81lopg.js +0 -7
  956. package/dist/sv-SE-DzsWB30f.js +0 -7
  957. package/dist/sv-SE-IBYnJfbW.js +0 -7
  958. package/dist/sv-SE-X89Q6ZAq.js +0 -7
  959. package/dist/sv-SE-l_UVgmVu.js +0 -7
  960. package/dist/terminal-1-crR-pS_R.js +0 -30
  961. package/dist/translation-BOm4lmPx.js +0 -657
  962. package/dist/types/components/GlobalEntry/globalEntryKeyMapping.d.ts +0 -15
  963. package/dist/types/components/GlobalEntry/utils.d.ts +0 -30
  964. package/dist/types/components/Shared/fields/TaxInformationField/TaxIdNumberTypeSelector/getDefaultTaxIdNumberType.d.ts +0 -30
  965. package/dist/types/components/Shared/fields/TaxInformationField/TaxIdNumberTypeSelector/inferTaxIdNumberType.d.ts +0 -13
  966. package/dist/types/core/models/api/attachment.d.ts +0 -7
  967. package/dist/types/core/models/api/document.d.ts +0 -25
  968. package/dist/types/core/models/api/entity-type.d.ts +0 -5
  969. package/dist/types/core/models/api/legal-arrangement.d.ts +0 -24
  970. package/dist/types/core/models/api/legal-entity-type.d.ts +0 -8
  971. package/dist/types/core/models/api/legal-entity.d.ts +0 -36
  972. package/dist/types/core/models/api/problem.d.ts +0 -12
  973. package/dist/types/core/models/api/remediating-action.d.ts +0 -5
  974. package/dist/types/core/models/api/transfer-instrument.d.ts +0 -33
  975. package/dist/types/core/models/api/trusted-fields-provider.d.ts +0 -5
  976. package/dist/types/core/models/api/verification-error.d.ts +0 -19
  977. package/dist/types-BeveNAZK.js +0 -19
  978. package/dist/types-wRlt8bxb.js +0 -58
  979. package/dist/upload-D85xAAAm.js +0 -23
  980. package/dist/useAdaptiveWorkflow-DsQESk9f.js +0 -28
  981. package/dist/useBusinessDetailsData-Bja80UYy.js +0 -4722
  982. package/dist/useBusinessLines-BhSN6qCH.js +0 -27
  983. package/dist/useCanSeeIntroduction-BcfQC4IP.js +0 -38
  984. package/dist/useDataMissingRemediations-msU1AJvo.js +0 -39
  985. package/dist/useForm-DbDFfb2S.js +0 -502
  986. package/dist/useHideTaskStepper-CbMcV9mk.js +0 -26
  987. package/dist/useId-oOIS1nsj.js +0 -73
  988. package/dist/useIndustryCodes-uAj90IyS.js +0 -32
  989. package/dist/useLegalEntity-QQXN6YOm.js +0 -48
  990. package/dist/useNavigate-CiKOI5QV.js +0 -246
  991. package/dist/useOnboardingStatus-CsGUjkm-.js +0 -23
  992. package/dist/usePciQuestionnaireList-CFNJD8pS.js +0 -26
  993. package/dist/useSalesChannels-BvGJ9PT6.js +0 -47
  994. package/dist/useScenarios-CGcmXgJv.js +0 -55
  995. package/dist/useTaskLandedEvent-pmN03gtI.js +0 -26
  996. package/dist/useTaskStatus-CgrhdaE_.js +0 -23
  997. package/dist/useTermsOfServiceStatus-DbJDklA2.js +0 -39
  998. package/dist/useTrustMembers-f13Kf1Zk.js +0 -152
  999. package/dist/useUnincorporatedPartnershipMembers-K5jkCKfJ.js +0 -70
  1000. package/dist/useUpdateBusinessLines-DCKYTzxd.js +0 -43
  1001. package/dist/utils-2tir5QtF.js +0 -52
  1002. package/dist/utils-BUOt0VrX.js +0 -179
  1003. package/dist/utils-DBIDcVUN.js +0 -214
  1004. package/dist/validate-BpZBKknS.js +0 -224
  1005. package/dist/validate-CPTQceEQ.js +0 -151
  1006. package/dist/validate-YBDlgvjy.js +0 -429
  1007. package/dist/validate-u6nDNwf1.js +0 -126
  1008. package/dist/validateExtractionResult-dH4TewHf.js +0 -343
  1009. package/dist/validationError-B-B3GC86.js +0 -55
  1010. package/dist/warning-circle-fill-BDTmKU1s.js +0 -30
  1011. package/dist/warning-diamond-filled-BjDL-xa8.js +0 -30
  1012. package/dist/webinar-YMbPoCx3.js +0 -33
@@ -1,1857 +0,0 @@
1
- try {
2
- let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
3
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "c792f12b-a47e-4e78-b97b-36276701b307", e._sentryDebugIdIdentifier = "sentry-dbid-c792f12b-a47e-4e78-b97b-36276701b307");
4
- } catch (e) {}
5
- import { r as useTranslation } from "./translation-BOm4lmPx.js";
6
- import { T as datasetUtilities, ft as useSettingsContext, j as useToggleContext, k as Header } from "./resolveEnvironment-BYEL10Nc.js";
7
- import { t as Typography } from "./Typography-CAc_f5Iq.js";
8
- import { t as Loader } from "./Loader-BEpMlKm2.js";
9
- import { t as Button } from "./Button-DfRmINzF.js";
10
- import { n as httpGet, s as useApiContext } from "./http-DsJtugN1.js";
11
- import { t as LegalEntityTypes } from "./legal-entity-type-0MfCGzUf.js";
12
- import { t as cloneObject } from "./genUtils-Ce61IJs8.js";
13
- import { y as reverseMapping } from "./processCapabilities-DRD0Aq2i.js";
14
- import { f as hasSolePropInLegalEntity } from "./entityAssociationUtil-CLBR9osP.js";
15
- import { t as isEeaCountry } from "./country-zZC2TAQB.js";
16
- import { i as useAnalyticsContext } from "./Modal-BsivDPTd.js";
17
- import { a as SettingNames, t as InputText } from "./InputText-CTpVF0Mu.js";
18
- import { n as useAssociatedLegalEntity, t as getFormSlice } from "./getFormSlice-DzRO0UUx.js";
19
- import { n as useInvalidateRootLegalEntity, r as useToastContext } from "./useId-oOIS1nsj.js";
20
- import { t as EndStateLayout } from "./EndStateLayout-BK1Hh02g.js";
21
- import { f as translateTranslatable, r as Field, t as Select } from "./Select-ByVcS_J2.js";
22
- import { r as formatObject } from "./utils-DBIDcVUN.js";
23
- import { d as COUNTRIES_WITH_STATES_DATASET, f as addressFields, m as useCreateLegalEntity, o as getKeyForField, p as useUpdateLegalEntity } from "./StateField-CsO_28Co.js";
24
- import { M as FormContextProvider, d as useFormContext, f as addValidityToForms, g as useMultiForm, k as createFormUtils, m as FormFlow, p as getRequiredForms, t as RadioGroup, u as CountryField, y as useFormComposer } from "./RadioGroup-D8DRUJ2o.js";
25
- import { t as ErrorPanel } from "./ErrorPanel-tnFOlOZU.js";
26
- import { t as Checkbox } from "./Checkbox-B730k3Yy.js";
27
- import { a as getPrefixedAddressFieldNames, o as nestAddressSchema, t as AddressFields } from "./AddressFields-BsxEdBvQ.js";
28
- import { t as useTaskLandedEvent } from "./useTaskLandedEvent-pmN03gtI.js";
29
- import { n as isMaintenanceModeError, t as processValidationErrors } from "./processValidationErrors-oxuCOsth.js";
30
- import { t as localizeDateString } from "./localizeDateString-Dxlqr4rL.js";
31
- import { a as isValidationError } from "./validationError-B-B3GC86.js";
32
- import { t as InputDate } from "./InputDate-Ci60MBrH.js";
33
- import { i as getPrefixedFieldProps, n as getFieldProps } from "./getProps-DVqK7eRw.js";
34
- import { t as Link } from "./Link-c2jAgGgc.js";
35
- import { t as formatValidationError } from "./formatValidationError-BHvKLMYZ.js";
36
- import { t as currencyByCountry } from "./types-wRlt8bxb.js";
37
- import { t as NewSummary } from "./NewSummary-DxWLTnJy.js";
38
- import { a as LegalFormField, i as InputCurrency, n as Currency, o as mapFinancialReportsToFinancialInformation, r as InputNumber, s as mapFinancialInformationToFinancialReport, t as CURRENCY_FIELD } from "./Currency-BKTf95Wp.js";
39
- import { t as businessFinancingMultiformRules } from "./validate-u6nDNwf1.js";
40
- import { useEffect, useMemo, useRef, useState } from "preact/hooks";
41
- import { Fragment, jsx, jsxs } from "preact/jsx-runtime";
42
- import { useQuery } from "@tanstack/preact-query";
43
- //#region src/components/EFP/mapping/businessFinancingKeyMappings.ts
44
- var businessFinancingBaseMapping = {
45
- legalProceedingsDate: "organization.dateOfInitiationOfLegalProceeding",
46
- legalInformationInsolvency: "organization.statusOfLegalProceeding",
47
- legalEntityIdentifier: "organization.globalLegalEntityIdentifier",
48
- naceCode: "organization.economicSector",
49
- legalForm: "organization.legalForm",
50
- legalName: "organization.legalName",
51
- registrationAddressCity: "organization.registeredAddress.city",
52
- registrationAddressCountry: "organization.registeredAddress.country",
53
- registrationAddressPostalCode: "organization.registeredAddress.postalCode",
54
- registrationAddressStateOrProvince: "organization.registeredAddress.stateOrProvince",
55
- registrationAddressStreet: "organization.registeredAddress.street",
56
- registrationAddressStreet2: "organization.registeredAddress.street2"
57
- };
58
- var businessFinancingIndividualMapping = {
59
- gender: "individual.birthData.genderCode",
60
- countryOfBirth: "individual.birthData.birthCountry"
61
- };
62
- var businessFinancingSoleProprietorMapping = {
63
- legalProceedingsDate: "soleProprietorship.dateOfInitiationOfLegalProceeding",
64
- legalInformationInsolvency: "soleProprietorship.statusOfLegalProceeding",
65
- naceCode: "soleProprietorship.economicSector"
66
- };
67
- var businessFinancingComponentsKeyMapping = { ...businessFinancingBaseMapping };
68
- ({ ...businessFinancingIndividualMapping });
69
- var businessFinancingSoleProprietorComponentsKeyMapping = { ...businessFinancingSoleProprietorMapping };
70
- var businessFinancingApiKeyMapping = { ...reverseMapping(businessFinancingBaseMapping) };
71
- var businessFinancingIndividualApiKeyMapping = { ...reverseMapping(businessFinancingIndividualMapping) };
72
- var businessFinancingSoleProprietorApiKeyMapping = { ...reverseMapping(businessFinancingSoleProprietorMapping) };
73
- //#endregion
74
- //#region src/components/EFP/mapping/mapBusinessFinancingToLegalEntity.ts
75
- var mapBusinessFinancingToLegalEntity = (data, isIndividualOrSoleProprietor, customMapping) => {
76
- if (customMapping) return formatObject(data, customMapping);
77
- return formatObject(data, isIndividualOrSoleProprietor ? businessFinancingSoleProprietorApiKeyMapping : businessFinancingApiKeyMapping);
78
- };
79
- //#endregion
80
- //#region src/components/EFP/tasks/BusinessFinancingDropin/types.ts
81
- var BusinessFinancingPages = {
82
- COMPANY_PAGE: "company",
83
- SOLE_PROPRIETOR_PAGE: "soleProprietor",
84
- PARENT_COMPANY_PAGE: "parentCompany",
85
- ULTIMATE_PARENT_COMPANY_PAGE: "ultimateParentCompany"
86
- };
87
- var BusinessFinancingRadioIds = {
88
- YES: "Yes",
89
- NO: "No"
90
- };
91
- var businessFinancingRadioItems = [{
92
- id: BusinessFinancingRadioIds.YES,
93
- name: "yes"
94
- }, {
95
- id: BusinessFinancingRadioIds.NO,
96
- name: "no"
97
- }];
98
- var businessFinancingParentRadioItems = [{
99
- id: BusinessFinancingRadioIds.YES,
100
- name: "yes"
101
- }, {
102
- id: BusinessFinancingRadioIds.NO,
103
- name: "noIdontKnow"
104
- }];
105
- var companySchemaKeys = [
106
- "legalForm",
107
- "naceCode",
108
- "numberOfEmployees",
109
- "doesYourCompanyHaveLEI",
110
- "legalEntityIdentifier",
111
- "isCompanyOwnedByAnotherCompany",
112
- "isParentOwnedByAnotherCompany",
113
- "financialReportingDate",
114
- "currency",
115
- "balanceSheetTotal",
116
- "annualTurnover",
117
- "legalInformationInsolvency",
118
- "legalProceedingsDate"
119
- ];
120
- var soleProprietorSchemaKeys = [
121
- "gender",
122
- "countryOfBirth",
123
- "naceCode",
124
- "legalInformationInsolvency",
125
- "legalProceedingsDate"
126
- ];
127
- var parentCompaniesSchemaKeys = [
128
- "legalName",
129
- "legalForm",
130
- "naceCode",
131
- "numberOfEmployees",
132
- "doesYourCompanyHaveLEI",
133
- "legalEntityIdentifier",
134
- "isThisAddressTheMainHeadquarters",
135
- "financialReportingDate",
136
- "currency",
137
- "balanceSheetTotal",
138
- "annualTurnover",
139
- "legalInformationInsolvency",
140
- "legalProceedingsDate",
141
- "registrationAddressStreet",
142
- "registrationAddressStreet2",
143
- "registrationAddressCity",
144
- "registrationAddressStateOrProvince",
145
- "registrationAddressPostalCode",
146
- "registrationAddressCountry",
147
- "sameAddressAsRootEntity"
148
- ];
149
- var businessFinancingForms = {
150
- company: {
151
- formId: "company",
152
- formName: "businessInformation",
153
- fields: [...companySchemaKeys]
154
- },
155
- soleProprietor: {
156
- formId: "soleProprietor",
157
- formName: "businessInformation",
158
- fields: [...soleProprietorSchemaKeys]
159
- },
160
- parentCompany: {
161
- formId: "parentCompany",
162
- formName: "parentCompanyInformation",
163
- fields: [...parentCompaniesSchemaKeys]
164
- },
165
- ultimateParentCompany: {
166
- formId: "ultimateParentCompany",
167
- formName: "ultimateParentCompanyInformation",
168
- fields: [...parentCompaniesSchemaKeys]
169
- }
170
- };
171
- var BusinessFinancingIndices = {
172
- COMPANY: "company",
173
- SOLE_PROPRIETOR: "soleProprietor",
174
- PARENT_COMPANY: "parentCompany",
175
- ULTIMATE_PARENT_COMPANY: "ultimateParentCompany"
176
- };
177
- //#endregion
178
- //#region src/components/EFP/tasks/BusinessFinancingDropin/utils.ts
179
- /**
180
- * Deep-merges freshly processed validation errors into the previous ones, keyed by formId.
181
- * Merging (rather than replacing) is required because sibling entities (e.g. parent and
182
- * ultimate parent company) are submitted in parallel and each may contribute errors to the
183
- * shared summary bucket within a single submit.
184
- *
185
- * NOTE: This never removes an error, so callers must reset validation errors at the start of
186
- * each submit to avoid showing stale errors from a previous attempt.
187
- */
188
- var mergeValidationErrors = (previousValidationErrors, newValidationErrors) => Object.entries(newValidationErrors ?? {}).reduce((acc, [formId, formErrors]) => ({
189
- ...acc,
190
- [formId]: {
191
- ...acc[formId],
192
- ...formErrors
193
- }
194
- }), { ...previousValidationErrors });
195
- var getLegalEntityId = (businessFinancingIndex, rootLegalEntity) => {
196
- if (!rootLegalEntity) return void 0;
197
- if (businessFinancingIndex === BusinessFinancingIndices.COMPANY || businessFinancingIndex === BusinessFinancingIndices.SOLE_PROPRIETOR) return rootLegalEntity.id;
198
- if (!rootLegalEntity?.entityAssociations) return void 0;
199
- const businessFinancingEntityType = BusinessFinancingIndices.PARENT_COMPANY ? "immediateParentCompany" : "ultimateParentCompany";
200
- return (rootLegalEntity.entityAssociations?.find((entity) => entity.type === businessFinancingEntityType))?.legalEntityId;
201
- };
202
- var USER_LOCALE = typeof navigator !== "undefined" ? navigator.language : "en-US";
203
- var entityHasParentCompany = (data) => data.company?.isCompanyOwnedByAnotherCompany && data.company?.isCompanyOwnedByAnotherCompany === "Yes";
204
- var entityHasUltimateParentCompany = (data) => data.company?.isParentOwnedByAnotherCompany && data.company?.isParentOwnedByAnotherCompany === "Yes";
205
- var financialReportsToString = (financialReports) => {
206
- return {
207
- ...financialReports,
208
- numberOfEmployees: financialReports.numberOfEmployees ? financialReports.numberOfEmployees.toString() : void 0,
209
- annualTurnover: financialReports.annualTurnover ? financialReports.annualTurnover.toString() : void 0,
210
- balanceSheetTotal: financialReports.balanceSheetTotal ? financialReports.balanceSheetTotal.toString() : void 0
211
- };
212
- };
213
- /**
214
- * Prepares sole proprietor business financing data for submission.
215
- * IMPORTANT: Both root LE (individual) and sole prop LE MUST exist before calling this.
216
- * This function always returns UPDATE payloads (with IDs), never CREATE payloads.
217
- */
218
- var prepareSoleProprietorBusinessFinancingSubmitData = (data, rootLegalEntity, soleProprietorLegalEntity) => {
219
- const businessFinancingData = data.soleProprietor;
220
- if (!businessFinancingData || !rootLegalEntity?.id || !soleProprietorLegalEntity?.id) return null;
221
- const individualChanges = mapBusinessFinancingToLegalEntity(businessFinancingData, true, businessFinancingIndividualApiKeyMapping);
222
- const { identificationData: _identificationData, ...individualWithoutIdData } = rootLegalEntity.individual || {};
223
- const individualPayload = {
224
- id: rootLegalEntity.id,
225
- individual: {
226
- ...individualWithoutIdData,
227
- ...individualChanges.individual
228
- }
229
- };
230
- const solePropChanges = mapBusinessFinancingToLegalEntity(businessFinancingData, true, businessFinancingSoleProprietorApiKeyMapping);
231
- if (!solePropChanges.soleProprietorship) return null;
232
- const formStatusOfLegalProceeding = businessFinancingData.legalInformationInsolvency;
233
- if (formStatusOfLegalProceeding === "iDontKnow") solePropChanges.soleProprietorship.statusOfLegalProceeding = "noLegalActionsTaken";
234
- if (formStatusOfLegalProceeding === "iDontKnow" || formStatusOfLegalProceeding === "noLegalActionsTaken") solePropChanges.soleProprietorship.dateOfInitiationOfLegalProceeding = "";
235
- return {
236
- individualPayload,
237
- solePropPayload: {
238
- id: soleProprietorLegalEntity.id,
239
- soleProprietorship: {
240
- ...soleProprietorLegalEntity.soleProprietorship,
241
- ...solePropChanges.soleProprietorship
242
- }
243
- }
244
- };
245
- };
246
- var prepareBusinessFinancingSubmitData = (businessFinancingIndex, data, rootLegalEntity) => {
247
- const businessFinancingData = data[businessFinancingIndex];
248
- if (!businessFinancingData) return null;
249
- if (businessFinancingIndex === BusinessFinancingIndices.PARENT_COMPANY && !entityHasParentCompany(data)) return null;
250
- if (businessFinancingIndex === BusinessFinancingIndices.ULTIMATE_PARENT_COMPANY && (!entityHasUltimateParentCompany(data) || !entityHasParentCompany(data))) return null;
251
- const businessFinancingDetails = mapBusinessFinancingToLegalEntity(businessFinancingData);
252
- const isSoleProprietor = businessFinancingIndex === BusinessFinancingIndices.SOLE_PROPRIETOR;
253
- if (isSoleProprietor) throw new Error("Use prepareSoleProprietorBusinessFinancingSubmitData for sole proprietor business financing");
254
- else if (isSoleProprietor === false) {
255
- if (!businessFinancingDetails.organization) return null;
256
- const businessFinancingCountry = businessFinancingDetails.organization.registeredAddress?.country || rootLegalEntity?.organization?.registeredAddress?.country;
257
- const companyData = businessFinancingData;
258
- if (companyData.financialReportingDate && isEeaCountry(businessFinancingCountry)) {
259
- const { balanceSheetTotal: bst, ...restFinancialReport } = mapFinancialInformationToFinancialReport({
260
- currency: companyData.currency,
261
- financialReportingDate: companyData.financialReportingDate,
262
- numberOfEmployees: companyData.numberOfEmployees ? Number(companyData.numberOfEmployees) : void 0,
263
- balanceSheetTotal: companyData.balanceSheetTotal ? Number(companyData.balanceSheetTotal) : void 0,
264
- annualTurnover: companyData.annualTurnover ? Number(companyData.annualTurnover) : void 0
265
- });
266
- const businessFinancingFinancialReport = {
267
- ...restFinancialReport,
268
- netAssets: bst
269
- };
270
- businessFinancingDetails.organization.financialReports = [businessFinancingFinancialReport];
271
- }
272
- if (!isEeaCountry(businessFinancingCountry)) businessFinancingDetails.organization.financialReports = void 0;
273
- const formStatusOfLegalProceeding = businessFinancingData.legalInformationInsolvency;
274
- if (formStatusOfLegalProceeding === "iDontKnow") businessFinancingDetails.organization.statusOfLegalProceeding = "noLegalActionsTaken";
275
- if (formStatusOfLegalProceeding === "iDontKnow" || formStatusOfLegalProceeding === "noLegalActionsTaken") businessFinancingDetails.organization.dateOfInitiationOfLegalProceeding = "";
276
- if (companyData.sameAddressAsRootEntity && rootLegalEntity?.organization?.registeredAddress) businessFinancingDetails.organization.registeredAddress = { ...rootLegalEntity.organization.registeredAddress };
277
- if (companyData.isThisAddressTheMainHeadquarters) businessFinancingDetails.organization.principalPlaceOfBusiness = { ...businessFinancingDetails.organization.registeredAddress };
278
- if (companyData.doesYourCompanyHaveLEI !== "Yes") delete businessFinancingDetails.organization.globalLegalEntityIdentifier;
279
- }
280
- const businessFinancingLegalEntityId = getLegalEntityId(businessFinancingIndex, rootLegalEntity);
281
- if (businessFinancingLegalEntityId) {
282
- delete businessFinancingDetails.type;
283
- businessFinancingDetails.id = businessFinancingLegalEntityId;
284
- } else {
285
- delete businessFinancingDetails.id;
286
- businessFinancingDetails.type = isSoleProprietor ? LegalEntityTypes.SOLE_PROPRIETORSHIP : LegalEntityTypes.ORGANIZATION;
287
- }
288
- return businessFinancingDetails;
289
- };
290
- var appendBusinessFinancingData = (legalOrganization, businessFinancingData) => {
291
- if (!legalOrganization || !businessFinancingData) return businessFinancingData;
292
- const clonedBusinessFinancingData = { ...businessFinancingData };
293
- let financialReportData = {};
294
- if (legalOrganization.financialReports) {
295
- financialReportData = financialReportsToString(mapFinancialReportsToFinancialInformation((Array.isArray(legalOrganization.financialReports) ? legalOrganization.financialReports : [legalOrganization.financialReports]).map(({ netAssets, ...rest }) => ({
296
- ...rest,
297
- balanceSheetTotal: rest.balanceSheetTotal ?? netAssets
298
- })), false));
299
- if (financialReportData.numberOfEmployees) financialReportData.numberOfEmployees = financialReportData.numberOfEmployees.toString();
300
- }
301
- return {
302
- ...clonedBusinessFinancingData,
303
- ...financialReportData,
304
- numberOfEmployees: financialReportData.numberOfEmployees ? financialReportData.numberOfEmployees.toString() : void 0,
305
- doesYourCompanyHaveLEI: legalOrganization.globalLegalEntityIdentifier ? "Yes" : "No",
306
- isThisAddressTheMainHeadquarters: legalOrganization.principalPlaceOfBusiness ? "Yes" : clonedBusinessFinancingData.isThisAddressTheMainHeadquarters
307
- };
308
- };
309
- var appendSoleProprietorBusinessFinancingData = (legalArrangement, businessFinancingData) => {
310
- if (!legalArrangement || !businessFinancingData) return businessFinancingData;
311
- return {
312
- ...businessFinancingData,
313
- naceCode: businessFinancingData.naceCode ?? legalArrangement.economicSector,
314
- legalInformationInsolvency: businessFinancingData.legalInformationInsolvency ?? legalArrangement.statusOfLegalProceeding,
315
- legalProceedingsDate: businessFinancingData.legalProceedingsDate ?? legalArrangement.dateOfInitiationOfLegalProceeding
316
- };
317
- };
318
- var handleBusinessFinancingFormSubmission = async (businessFinancingType, details, createFunction, updateFunction, entityId) => {
319
- if (!details) throw new Error(`Missing details for ${businessFinancingType}`);
320
- try {
321
- if (entityId) return await updateFunction({
322
- ...details,
323
- id: entityId
324
- });
325
- return await createFunction(details);
326
- } catch (error) {
327
- const businessFinancingError = /* @__PURE__ */ new Error(`Form submission failed for ${businessFinancingType}`);
328
- businessFinancingError.actualError = error;
329
- businessFinancingError.businessFinancingType = businessFinancingError;
330
- throw businessFinancingError;
331
- }
332
- };
333
- var getCompanySchemaKeys = (country, currentData, schemaKeys) => {
334
- const fieldsToRemove = [];
335
- if (!isEeaCountry(country)) fieldsToRemove.push("financialReportingDate", "balanceSheetTotal", "annualTurnover", "currency", "numberOfEmployees");
336
- if (currentData.isCompanyOwnedByAnotherCompany !== "Yes") fieldsToRemove.push("isParentOwnedByAnotherCompany");
337
- if (currentData.doesYourCompanyHaveLEI !== "Yes") fieldsToRemove.push("legalEntityIdentifier");
338
- if (!currentData?.legalInformationInsolvency || ["noLegalActionsTaken", "iDontKnow"].includes(currentData?.legalInformationInsolvency)) fieldsToRemove.push("legalProceedingsDate");
339
- return schemaKeys.filter((field) => !fieldsToRemove.includes(field));
340
- };
341
- var getSoleProprietorSchemaKeys = (currentData, schemaKeys) => {
342
- const fieldsToRemove = [];
343
- if (!currentData?.legalInformationInsolvency || ["noLegalActionsTaken", "iDontKnow"].includes(currentData?.legalInformationInsolvency)) fieldsToRemove.push("legalProceedingsDate");
344
- return schemaKeys.filter((field) => !fieldsToRemove.includes(field));
345
- };
346
- var getParentCompanySchemaKeys = (currentData, schemaKeys, rootEntityAddress) => {
347
- const fieldsToRemove = [];
348
- const companyCountry = currentData?.sameAddressAsRootEntity && rootEntityAddress ? rootEntityAddress.country : currentData?.registrationAddressCountry;
349
- if (!isEeaCountry(companyCountry)) fieldsToRemove.push("financialReportingDate", "balanceSheetTotal", "annualTurnover", "currency", "numberOfEmployees");
350
- if (currentData?.sameAddressAsRootEntity) fieldsToRemove.concat([
351
- "registrationAddressStreet",
352
- "registrationAddressStreet2",
353
- "registrationAddressCity",
354
- "registrationAddressStateOrProvince",
355
- "registrationAddressPostalCode",
356
- "registrationAddressCountry"
357
- ]);
358
- if (companyCountry && !COUNTRIES_WITH_STATES_DATASET.includes(companyCountry)) fieldsToRemove.push("registrationAddressStateOrProvince");
359
- if (currentData.doesYourCompanyHaveLEI !== "Yes") fieldsToRemove.push("legalEntityIdentifier");
360
- if (!currentData?.legalInformationInsolvency || ["noLegalActionsTaken", "iDontKnow"].includes(currentData?.legalInformationInsolvency)) fieldsToRemove.push("legalProceedingsDate");
361
- return schemaKeys.filter((field) => !fieldsToRemove.includes(field));
362
- };
363
- var getBusinessFinancingFields = (country, data, rootEntityAddress) => {
364
- let requiredFields = void 0, optionalFields = void 0;
365
- if (!data) return [requiredFields, optionalFields];
366
- const { company, soleProprietor, parentCompany = {}, ultimateParentCompany = {} } = data;
367
- if (soleProprietor) {
368
- requiredFields = {};
369
- optionalFields = {};
370
- requiredFields.soleProprietor = getSoleProprietorSchemaKeys(soleProprietor, soleProprietorSchemaKeys);
371
- delete requiredFields.company;
372
- return [requiredFields, optionalFields];
373
- }
374
- const handleStreet2 = (requiredFields, schema) => {
375
- const street2Idx = requiredFields.indexOf("registrationAddressStreet2");
376
- if (street2Idx > -1) {
377
- requiredFields.splice(street2Idx, 1);
378
- optionalFields = {
379
- ...optionalFields,
380
- [schema]: ["registrationAddressStreet2"]
381
- };
382
- }
383
- return requiredFields;
384
- };
385
- if (company) {
386
- requiredFields = {};
387
- optionalFields = {};
388
- requiredFields.company = getCompanySchemaKeys(country, company, companySchemaKeys);
389
- }
390
- if (company?.isCompanyOwnedByAnotherCompany === "Yes") {
391
- let parentCompanyRequiredFields = getParentCompanySchemaKeys(parentCompany, parentCompaniesSchemaKeys, rootEntityAddress);
392
- parentCompanyRequiredFields = handleStreet2(parentCompanyRequiredFields, "parentCompany");
393
- requiredFields = {
394
- ...requiredFields,
395
- parentCompany: parentCompanyRequiredFields
396
- };
397
- }
398
- if (company?.isParentOwnedByAnotherCompany === "Yes") {
399
- let ultimateParentCompanyRequiredFields = getParentCompanySchemaKeys(ultimateParentCompany, parentCompaniesSchemaKeys, rootEntityAddress);
400
- ultimateParentCompanyRequiredFields = handleStreet2(ultimateParentCompanyRequiredFields, "ultimateParentCompany");
401
- requiredFields = {
402
- ...requiredFields,
403
- ultimateParentCompany: ultimateParentCompanyRequiredFields
404
- };
405
- }
406
- return [requiredFields, optionalFields];
407
- };
408
- var getAddressCountryForParentCompany = (parentCompany, leAddress) => {
409
- return parentCompany?.sameAddressAsRootEntity && leAddress ? leAddress?.country : parentCompany?.registrationAddressCountry;
410
- };
411
- //#endregion
412
- //#region src/components/EmbeddedDropins/BusinessFinancingComponent/utils.ts
413
- var getTranslatedGender = (t, gender) => {
414
- if (!gender) return void 0;
415
- const key = {
416
- M: "male",
417
- F: "female",
418
- U: "preferNotToSay"
419
- }[gender];
420
- return key ? t(($) => $[key]) : gender;
421
- };
422
- var getTranslatedLegalInsolvency = (t, insolvencyData) => {
423
- if (!insolvencyData) return void 0;
424
- return insolvencyData === "noLegalActionsTaken" ? t(($) => $["no"]) : t(($) => $[insolvencyData]);
425
- };
426
- var getValidUserLocale = (locale) => {
427
- try {
428
- new Intl.NumberFormat(locale);
429
- return locale;
430
- } catch (error) {
431
- console.warn(`Invalid locale '${locale}' provided. Falling back to 'en-US'.`, error);
432
- return "en-US";
433
- }
434
- };
435
- var getFormattedAmount = (value, currency) => {
436
- if (!value) return void 0;
437
- const userLocale = getValidUserLocale(USER_LOCALE);
438
- return `${currency} ${Number(value).toLocaleString(userLocale)}`;
439
- };
440
- var formatDataForSummary = (language, commonT, t, datasetUtils, data, rootLeAddress) => {
441
- const summaryData = cloneObject(data) || {};
442
- const { company, parentCompany, ultimateParentCompany, soleProprietor } = summaryData;
443
- const rootLeAddressCountry = rootLeAddress?.country;
444
- if (soleProprietor) {
445
- soleProprietor.naceCode = soleProprietor.naceCodeLabel;
446
- soleProprietor.countryOfBirth = soleProprietor.countryOfBirth ? datasetUtils.getCountryName(soleProprietor.countryOfBirth) ?? void 0 : void 0;
447
- soleProprietor.legalInformationInsolvency = getTranslatedLegalInsolvency(t, soleProprietor.legalInformationInsolvency);
448
- soleProprietor.legalProceedingsDate = soleProprietor.legalProceedingsDate ? localizeDateString(soleProprietor.legalProceedingsDate, language) : void 0;
449
- if (soleProprietor.gender) soleProprietor.gender = getTranslatedGender(t, soleProprietor.gender);
450
- }
451
- if (company) {
452
- company.legalForm = company.legalFormLabel;
453
- company.naceCode = company.naceCodeLabel;
454
- company.legalEntityIdentifier = company.legalEntityIdentifier ?? "None";
455
- company.legalInformationInsolvency = getTranslatedLegalInsolvency(t, company?.legalInformationInsolvency);
456
- company.annualTurnover = getFormattedAmount(company.annualTurnover, company.currency);
457
- company.balanceSheetTotal = getFormattedAmount(company.balanceSheetTotal, company.currency);
458
- const { legalProceedingsDate, financialReportingDate } = company;
459
- company.legalProceedingsDate = legalProceedingsDate ? localizeDateString(legalProceedingsDate, language) : void 0;
460
- company.financialReportingDate = financialReportingDate ? localizeDateString(financialReportingDate, language) : void 0;
461
- }
462
- if (parentCompany) {
463
- const { legalName, legalFormLabel, naceCodeLabel, country, legalEntityIdentifier, legalInformationInsolvency, annualTurnover, currency, balanceSheetTotal, legalProceedingsDate, financialReportingDate, sameAddressAsRootEntity } = parentCompany;
464
- if (legalName) {
465
- parentCompany.legalForm = legalFormLabel;
466
- parentCompany.naceCode = naceCodeLabel;
467
- parentCompany.country = country ? datasetUtils.getCountryName(country) : "";
468
- const registrationAddress = nestAddressSchema("registrationAddress", parentCompany);
469
- if (registrationAddress) {
470
- for (const field in parentCompany) if (/^registrationAddress[A-Z]/.test(field)) delete parentCompany[field];
471
- const country = registrationAddress.country;
472
- const streetLabel = getKeyForField("street", country);
473
- const street2Label = getKeyForField("street2", country);
474
- const { street, street2, ...registrationAddressRest } = registrationAddress;
475
- parentCompany.registrationAddress = {
476
- ...registrationAddressRest,
477
- [commonT(($) => $[streetLabel])]: street,
478
- [commonT(($) => $[street2Label])]: street2,
479
- country: datasetUtils.getCountryName(country)
480
- };
481
- }
482
- parentCompany.legalEntityIdentifier = legalEntityIdentifier ?? "None";
483
- parentCompany.legalInformationInsolvency = getTranslatedLegalInsolvency(t, legalInformationInsolvency);
484
- parentCompany.annualTurnover = getFormattedAmount(annualTurnover, currency);
485
- parentCompany.balanceSheetTotal = getFormattedAmount(balanceSheetTotal, currency);
486
- parentCompany.legalProceedingsDate = legalProceedingsDate ? localizeDateString(legalProceedingsDate, language) : void 0;
487
- parentCompany.financialReportingDate = financialReportingDate ? localizeDateString(financialReportingDate, language) : void 0;
488
- if (sameAddressAsRootEntity) {
489
- delete parentCompany.country;
490
- summaryData.parentCompany = {
491
- ...parentCompany,
492
- registrationAddress: {
493
- ...rootLeAddress,
494
- stateOrProvince: rootLeAddress?.stateOrProvince,
495
- country: datasetUtils.getCountryName(rootLeAddressCountry)
496
- }
497
- };
498
- }
499
- }
500
- }
501
- if (ultimateParentCompany) {
502
- const { legalName, legalFormLabel, naceCodeLabel, country, legalEntityIdentifier, legalInformationInsolvency, annualTurnover, currency, balanceSheetTotal, legalProceedingsDate, financialReportingDate, sameAddressAsRootEntity } = ultimateParentCompany;
503
- if (legalName) {
504
- ultimateParentCompany.legalForm = legalFormLabel;
505
- ultimateParentCompany.naceCode = naceCodeLabel;
506
- ultimateParentCompany.country = country ? datasetUtils.getCountryName(country) : "";
507
- const registrationAddress = nestAddressSchema("registrationAddress", ultimateParentCompany);
508
- if (registrationAddress) {
509
- for (const field in ultimateParentCompany) if (/^registrationAddress[A-Z]/.test(field)) delete ultimateParentCompany[field];
510
- const country = registrationAddress.country;
511
- const streetLabel = getKeyForField("street", country);
512
- const street2Label = getKeyForField("street2", country);
513
- const { street, street2, ...registrationAddressRest } = registrationAddress;
514
- ultimateParentCompany.registrationAddress = {
515
- ...registrationAddressRest,
516
- [commonT(($) => $[streetLabel])]: street,
517
- [commonT(($) => $[street2Label])]: street2,
518
- country: datasetUtils.getCountryName(country)
519
- };
520
- }
521
- ultimateParentCompany.legalEntityIdentifier = legalEntityIdentifier ?? "None";
522
- ultimateParentCompany.legalInformationInsolvency = getTranslatedLegalInsolvency(t, legalInformationInsolvency);
523
- ultimateParentCompany.annualTurnover = getFormattedAmount(annualTurnover, currency);
524
- ultimateParentCompany.balanceSheetTotal = getFormattedAmount(balanceSheetTotal, currency);
525
- ultimateParentCompany.legalProceedingsDate = legalProceedingsDate ? localizeDateString(legalProceedingsDate, language) : void 0;
526
- ultimateParentCompany.financialReportingDate = financialReportingDate ? localizeDateString(financialReportingDate, language) : void 0;
527
- if (sameAddressAsRootEntity) {
528
- delete ultimateParentCompany.country;
529
- summaryData.ultimateParentCompany = {
530
- ...ultimateParentCompany,
531
- registrationAddress: {
532
- ...rootLeAddress,
533
- stateOrProvince: rootLeAddress?.stateOrProvince,
534
- country: datasetUtils.getCountryName(rootLeAddressCountry)
535
- }
536
- };
537
- }
538
- }
539
- }
540
- return summaryData;
541
- };
542
- //#endregion
543
- //#region src/components/EFP/mapping/mapLegalEntityToBusinessFinancing.ts
544
- var mapLegalEntityToBusinessFinancing = (legalEntity) => {
545
- if (legalEntity.type === LegalEntityTypes.SOLE_PROPRIETORSHIP) return formatObject(legalEntity, businessFinancingSoleProprietorComponentsKeyMapping);
546
- if (legalEntity.type === LegalEntityTypes.INDIVIDUAL) {
547
- if (legalEntity.entityAssociations?.find((ea) => ea.entityType === LegalEntityTypes.SOLE_PROPRIETORSHIP && ea.associatorId === legalEntity.id)) {
548
- const solePropMapped = formatObject(legalEntity, businessFinancingSoleProprietorComponentsKeyMapping);
549
- const birthData = legalEntity.individual?.birthData;
550
- return {
551
- ...solePropMapped,
552
- gender: birthData?.genderCode,
553
- countryOfBirth: birthData?.birthCountry
554
- };
555
- }
556
- }
557
- return formatObject(legalEntity, businessFinancingComponentsKeyMapping);
558
- };
559
- //#endregion
560
- //#region src/api/datasets/useNaceCodes.ts
561
- var getNaceCodes = async (baseUrl) => {
562
- return httpGet({
563
- baseUrl,
564
- path: `datasets/naceCodes`
565
- });
566
- };
567
- var useNaceCodes = (options) => {
568
- const { baseUrl } = useApiContext();
569
- return useQuery({
570
- queryKey: ["naceCodes"],
571
- queryFn: () => getNaceCodes(baseUrl.value),
572
- ...options
573
- });
574
- };
575
- //#endregion
576
- //#region src/components/EFP/fields/NaceCodeField/NaceCodeField.tsx
577
- function NaceCodeField({ name = "naceCode", data, valid, errorMessage, label, readonly, handleChangeFor }) {
578
- const { t: commonT } = useTranslation("common");
579
- const { data: naceCodesData } = useNaceCodes();
580
- const handleChangeForRef = useRef(handleChangeFor);
581
- useEffect(() => {
582
- handleChangeForRef.current = handleChangeFor;
583
- }, [handleChangeFor]);
584
- const handleChangeForNaceCode = (e) => {
585
- const naceCodeEvent = { target: {
586
- name: "naceCode",
587
- value: e.target.value
588
- } };
589
- handleChangeFor("naceCode")(naceCodeEvent);
590
- };
591
- useEffect(() => {
592
- const naceCodeEvent = { target: {
593
- name: "naceCodeLabel",
594
- value: naceCodesData?.find((naceCode) => naceCode.id === data.naceCode)?.name
595
- } };
596
- handleChangeForRef.current("naceCodeLabel")(naceCodeEvent);
597
- }, [data.naceCode, naceCodesData]);
598
- return /* @__PURE__ */ jsx(Field, {
599
- name,
600
- label,
601
- errorMessage,
602
- isValid: valid.naceCode,
603
- children: (childProps) => /* @__PURE__ */ jsx(Select, {
604
- ...childProps,
605
- name,
606
- placeholder: commonT(($) => $["selectOne"]),
607
- selected: data.naceCode,
608
- items: naceCodesData ?? [],
609
- readonly: readonly && !!data,
610
- onChange: handleChangeForNaceCode
611
- })
612
- });
613
- }
614
- var BusinessFinancing_module_default = {
615
- "business-financing-lei-radio": "_business-financing-lei-radio_l7xhq_1",
616
- businessFinancingLeiRadio: "_business-financing-lei-radio_l7xhq_1",
617
- "business-financing-title": "_business-financing-title_l7xhq_7",
618
- businessFinancingTitle: "_business-financing-title_l7xhq_7",
619
- "business-financing-body": "_business-financing-body_l7xhq_12",
620
- businessFinancingBody: "_business-financing-body_l7xhq_12",
621
- "business-financing-exposure-financials": "_business-financing-exposure-financials_l7xhq_16",
622
- businessFinancingExposureFinancials: "_business-financing-exposure-financials_l7xhq_16",
623
- "business-financing-structured-address": "_business-financing-structured-address_l7xhq_24",
624
- businessFinancingStructuredAddress: "_business-financing-structured-address_l7xhq_24"
625
- };
626
- //#endregion
627
- //#region src/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingBusinessInformation.tsx
628
- var businessInformationFields = [
629
- "legalForm",
630
- "naceCode",
631
- "naceCodeLabel",
632
- "legalFormLabel",
633
- "doesYourCompanyHaveLEI",
634
- "legalEntityIdentifier"
635
- ];
636
- function BusinessFinancingBusinessInformation(props) {
637
- const { data, valid, errors, country, handleFieldChange, fieldValidationErrors, targetPage, sectionHeading, hideSectionHeading, isSoleProprietor } = props;
638
- const { t: businessFinancingT } = useTranslation("businessFinancing");
639
- const { t: commonT } = useTranslation("common");
640
- const formUtils = createFormUtils(props, commonT);
641
- if (!handleFieldChange) return;
642
- const isMainCompany = targetPage === BusinessFinancingPages.COMPANY_PAGE;
643
- return /* @__PURE__ */ jsxs(Fragment, { children: [
644
- !hideSectionHeading && /* @__PURE__ */ jsx(Typography, {
645
- el: "h3",
646
- variant: "title",
647
- className: BusinessFinancing_module_default.businessFinancingTitle,
648
- children: sectionHeading ? businessFinancingT(($) => $[sectionHeading]) : businessFinancingT(($) => $["businessInformation"])
649
- }),
650
- !isSoleProprietor && /* @__PURE__ */ jsx(LegalFormField, {
651
- name: "legalForm",
652
- countryCode: country,
653
- data: { legalForm: data?.legalForm },
654
- valid: { legalForm: valid?.legalForm },
655
- errorMessage: formUtils.getErrorMessage("legalForm", errors, fieldValidationErrors),
656
- handleChangeFor: handleFieldChange,
657
- readonly: false,
658
- label: businessFinancingT(($) => $["businessStructure"])
659
- }),
660
- /* @__PURE__ */ jsx(NaceCodeField, {
661
- name: "naceCode",
662
- data: { naceCode: data?.naceCode },
663
- valid: { naceCode: valid?.naceCode },
664
- errorMessage: formUtils.getErrorMessage("naceCode", errors, fieldValidationErrors),
665
- handleChangeFor: handleFieldChange,
666
- readonly: false,
667
- label: businessFinancingT(($) => $["industryAndNaceCode"])
668
- }),
669
- !isSoleProprietor && /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Field, {
670
- el: "fieldset",
671
- name: "doesYourCompanyHaveLEI",
672
- label: businessFinancingT(($) => $[isMainCompany ? "doesYourCompanyHaveLEI" : "doesThisCompanyHaveLEI"]),
673
- helper: /* @__PURE__ */ jsxs(Typography, {
674
- el: "div",
675
- variant: "body",
676
- color: "secondary",
677
- className: BusinessFinancing_module_default.businessFinancingBody,
678
- children: [
679
- businessFinancingT(($) => $["anLEIIsAUniqueCode"]),
680
- " ",
681
- /* @__PURE__ */ jsx(Link, {
682
- href: "https://search.gleif.org/#/search/",
683
- external: true,
684
- inline: true,
685
- children: businessFinancingT(($) => $["lookUpYourLEI"])
686
- })
687
- ]
688
- }),
689
- errorMessage: formUtils.getErrorMessage("doesYourCompanyHaveLEI", errors, fieldValidationErrors),
690
- children: (childProps) => /* @__PURE__ */ jsx(RadioGroup, {
691
- ...childProps,
692
- name: "doesYourCompanyHaveLEI",
693
- items: isMainCompany ? businessFinancingRadioItems : businessFinancingParentRadioItems,
694
- value: data?.doesYourCompanyHaveLEI,
695
- disabled: false,
696
- className: BusinessFinancing_module_default.businessFinancingLeiRadio,
697
- onChange: handleFieldChange("doesYourCompanyHaveLEI"),
698
- "aria-required": true,
699
- "aria-invalid": !valid?.doesYourCompanyHaveLEI
700
- })
701
- }), data?.doesYourCompanyHaveLEI === "Yes" && /* @__PURE__ */ jsx(Field, {
702
- name: "legalEntityIdentifier",
703
- label: businessFinancingT(($) => $["legalEntityIdentifier"]),
704
- errorMessage: formUtils.getErrorMessage("legalEntityIdentifier", errors, fieldValidationErrors),
705
- isValid: valid?.legalEntityIdentifier,
706
- helper: commonT(($) => $["enterNCharactersWithAMixForExample"], {
707
- numChars: 20,
708
- example: "529900T8BM49AURSDO55"
709
- }),
710
- children: (childProps) => /* @__PURE__ */ jsx(InputText, {
711
- ...childProps,
712
- name: "legalEntityIdentifier",
713
- value: data?.legalEntityIdentifier,
714
- readonly: false,
715
- onInput: handleFieldChange("legalEntityIdentifier", "input"),
716
- onBlur: handleFieldChange("legalEntityIdentifier", "blur"),
717
- "aria-required": true,
718
- "aria-invalid": !valid?.legalEntityIdentifier,
719
- isValid: valid?.legalEntityIdentifier
720
- })
721
- })] })
722
- ] });
723
- }
724
- //#endregion
725
- //#region src/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingFinancialInformation.tsx
726
- var TODAY_DATE$1 = (/* @__PURE__ */ new Date()).toISOString().split("T")[0];
727
- var financialInformationFields = [
728
- "numberOfEmployees",
729
- "financialReportingDate",
730
- "legalEntityIdentifier",
731
- "currency",
732
- "balanceSheetTotal",
733
- "annualTurnover"
734
- ];
735
- function BusinessFinancingFinancialInformation(props) {
736
- const { data, valid, errors, country, sectionHeading, handleFieldChange, fieldValidationErrors } = props;
737
- const { t: businessFinancingT, i18n: i18next } = useTranslation("businessFinancing");
738
- const { t: commonT } = useTranslation("common");
739
- const formUtils = createFormUtils(props, commonT);
740
- const currenciesForCurrCountry = useMemo(() => currencyByCountry[country] ?? [], [country]);
741
- if (!handleFieldChange) return;
742
- const financialData = data;
743
- const financialErrors = errors;
744
- const isFinancialDataValid = valid;
745
- const [firstCurrency] = currenciesForCurrCountry;
746
- const defaultCurrency = firstCurrency ?? "EUR";
747
- if (currenciesForCurrCountry.length === 1 && data?.currency !== firstCurrency) handleFieldChange("currency")(firstCurrency);
748
- return /* @__PURE__ */ jsxs("section", { children: [
749
- /* @__PURE__ */ jsx(Typography, {
750
- el: "h3",
751
- variant: "title",
752
- className: BusinessFinancing_module_default.businessFinancingTitle,
753
- children: sectionHeading ? businessFinancingT(($) => $[sectionHeading]) : businessFinancingT(($) => $["businessFinancials"])
754
- }),
755
- /* @__PURE__ */ jsx(Field, {
756
- name: "numberOfEmployees",
757
- label: businessFinancingT(($) => $["numberOfEmployees"]),
758
- helper: businessFinancingT(($) => $["theNumberOfIndividualsReceivingAWageOrSalary"]),
759
- errorMessage: formUtils.getErrorMessage("numberOfEmployees", errors, fieldValidationErrors),
760
- isValid: valid?.numberOfEmployees,
761
- children: (childProps) => /* @__PURE__ */ jsx(InputNumber, {
762
- ...childProps,
763
- "aria-required": true,
764
- "aria-invalid": !valid?.numberOfEmployees,
765
- name: "numberOfEmployees",
766
- min: "0",
767
- step: "1",
768
- value: data?.numberOfEmployees,
769
- onInput: handleFieldChange("numberOfEmployees", "input"),
770
- onBlur: handleFieldChange("numberOfEmployees", "blur")
771
- })
772
- }),
773
- currenciesForCurrCountry?.length > 1 && /* @__PURE__ */ jsx(Currency, {
774
- country,
775
- data: formUtils.getFieldData(financialData, CURRENCY_FIELD),
776
- errors: formUtils.getFieldErrors(financialErrors, fieldValidationErrors, CURRENCY_FIELD),
777
- handleChangeFor: handleFieldChange,
778
- labels: { currency: businessFinancingT(($) => $["financialStatementReportingCurrency"]) },
779
- readonly: formUtils.isReadOnly("currency"),
780
- valid: formUtils.getFieldValid(isFinancialDataValid, CURRENCY_FIELD)
781
- }),
782
- /* @__PURE__ */ jsxs("div", {
783
- className: BusinessFinancing_module_default.businessFinancingExposureFinancials,
784
- children: [
785
- /* @__PURE__ */ jsx(Field, {
786
- name: "balanceSheetTotal",
787
- label: businessFinancingT(($) => $["balanceSheetTotal"]),
788
- helper: businessFinancingT(($) => $["theSumOfTotalLiabilities"]),
789
- errorMessage: formUtils.getErrorMessage("balanceSheetTotal", errors, fieldValidationErrors),
790
- isValid: valid?.balanceSheetTotal,
791
- children: (childProps) => /* @__PURE__ */ jsx(InputCurrency, {
792
- ...childProps,
793
- "aria-required": formUtils.isRequiredField("balanceSheetTotal"),
794
- "aria-invalid": !valid?.balanceSheetTotal,
795
- locale: i18next.language,
796
- currency: data?.currency ?? defaultCurrency,
797
- amount: data?.balanceSheetTotal ? Number(data?.balanceSheetTotal) : void 0,
798
- onAmountChanged: handleFieldChange("balanceSheetTotal")
799
- })
800
- }),
801
- /* @__PURE__ */ jsx(Field, {
802
- name: "financialReportingDate",
803
- label: businessFinancingT(($) => $["statementReportingDate"]),
804
- helper: businessFinancingT(($) => $["useTheMoreRecentOfTheReportingDates"]),
805
- errorMessage: formUtils.getErrorMessage("financialReportingDate", errors, fieldValidationErrors),
806
- isValid: valid?.financialReportingDate,
807
- children: (childProps) => /* @__PURE__ */ jsx(InputDate, {
808
- ...childProps,
809
- name: "financialReportingDate",
810
- value: data?.financialReportingDate,
811
- onInput: handleFieldChange("financialReportingDate", "input"),
812
- onBlur: handleFieldChange("financialReportingDate", "blur"),
813
- "aria-required": true,
814
- "aria-invalid": !valid?.financialReportingDate,
815
- max: TODAY_DATE$1
816
- })
817
- }),
818
- /* @__PURE__ */ jsx(Field, {
819
- name: "annualTurnover",
820
- label: businessFinancingT(($) => $["annualTurnover"]),
821
- helper: businessFinancingT(($) => $["theAnnualSalesRevenue"]),
822
- errorMessage: formUtils.getErrorMessage("annualTurnover", errors, fieldValidationErrors),
823
- isValid: valid?.annualTurnover,
824
- children: (childProps) => /* @__PURE__ */ jsx(InputCurrency, {
825
- ...childProps,
826
- name: "annualTurnover",
827
- "aria-required": formUtils.isRequiredField("annualTurnover"),
828
- "aria-invalid": !valid?.annualTurnover,
829
- locale: i18next.language,
830
- currency: data?.currency ?? defaultCurrency,
831
- amount: data?.annualTurnover ? Number(data?.annualTurnover) : void 0,
832
- onAmountChanged: handleFieldChange("annualTurnover")
833
- })
834
- })
835
- ]
836
- })
837
- ] });
838
- }
839
- //#endregion
840
- //#region src/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingLegalInformation.tsx
841
- var TODAY_DATE = (/* @__PURE__ */ new Date()).toISOString().split("T")[0];
842
- var legalInformationFields = ["legalInformationInsolvency", "legalProceedingsDate"];
843
- function BusinessFinancingLegalInformation(props) {
844
- const { data, valid, errors, fieldValidationErrors, handleFieldChange, sectionHeading } = props;
845
- const { t: businessFinancingT } = useTranslation("businessFinancing");
846
- const { t: commonT } = useTranslation("common");
847
- const formUtils = createFormUtils(props, commonT);
848
- if (!handleFieldChange) return;
849
- const legalInformationInsolvencyItems = [
850
- {
851
- id: "noLegalActionsTaken",
852
- name: commonT(($) => $["no"])
853
- },
854
- {
855
- id: "underJudicialAdministration",
856
- name: businessFinancingT(($) => $["yesTheCompanyIsUnderJudicialAdministration"])
857
- },
858
- {
859
- id: "bankruptcyInsolvency",
860
- name: businessFinancingT(($) => $["yesTheCompanyIsFilingForBankruptcy"])
861
- },
862
- {
863
- id: "otherLegalMeasures",
864
- name: businessFinancingT(($) => $["yesTheCompanyIsFacingOtherLegalMeasures"])
865
- },
866
- {
867
- id: "iDontKnow",
868
- name: commonT(($) => $["iDontKnow"])
869
- }
870
- ];
871
- const showLegalProceedingsDateField = data?.legalInformationInsolvency && !["noLegalActionsTaken", "iDontKnow"].includes(data?.legalInformationInsolvency);
872
- return /* @__PURE__ */ jsxs(Fragment, { children: [
873
- /* @__PURE__ */ jsx(Typography, {
874
- el: "h3",
875
- variant: "title",
876
- className: BusinessFinancing_module_default.businessFinancingTitle,
877
- children: sectionHeading ? businessFinancingT(($) => $[sectionHeading]) : businessFinancingT(($) => $["legalInformation"])
878
- }),
879
- /* @__PURE__ */ jsx(Field, {
880
- name: "legalInformationInsolvency",
881
- label: businessFinancingT(($) => $["legalInformationInsolvency"]),
882
- errorMessage: formUtils.getErrorMessage("legalInformationInsolvency", errors, fieldValidationErrors),
883
- isValid: valid?.legalInformationInsolvency,
884
- children: (childProps) => /* @__PURE__ */ jsx(Select, {
885
- ...childProps,
886
- onChange: handleFieldChange("legalInformationInsolvency", "blur"),
887
- name: "legalInformationInsolvency",
888
- placeholder: commonT(($) => $["selectOne"]),
889
- selected: data?.legalInformationInsolvency,
890
- items: legalInformationInsolvencyItems,
891
- "aria-required": true,
892
- "aria-invalid": !valid?.legalInformationInsolvency
893
- })
894
- }),
895
- showLegalProceedingsDateField && /* @__PURE__ */ jsx(Field, {
896
- name: "legalProceedingsDate",
897
- label: businessFinancingT(($) => $["legalProceedingsDate"]),
898
- errorMessage: formUtils.getErrorMessage("legalProceedingsDate", errors, fieldValidationErrors),
899
- isValid: valid?.legalProceedingsDate,
900
- children: (childProps) => /* @__PURE__ */ jsx(InputDate, {
901
- ...childProps,
902
- name: "legalProceedingsDate",
903
- value: data.legalProceedingsDate,
904
- onInput: handleFieldChange("legalProceedingsDate", "input"),
905
- onBlur: handleFieldChange("legalProceedingsDate", "blur"),
906
- "aria-required": true,
907
- "aria-invalid": !valid?.legalProceedingsDate,
908
- max: TODAY_DATE
909
- })
910
- })
911
- ] });
912
- }
913
- //#endregion
914
- //#region src/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingOwnershipStructure.tsx
915
- var ownershipStructureFields = ["isCompanyOwnedByAnotherCompany", "isParentOwnedByAnotherCompany"];
916
- function BusinessFinancingOwnershipStructure(props) {
917
- const { data, valid, errors = {}, legalEntity, fieldValidationErrors, handleFieldChange } = props;
918
- const { t: businessFinancingT } = useTranslation("businessFinancing");
919
- const { t: commonT } = useTranslation("common");
920
- const formUtils = createFormUtils(props, commonT);
921
- if (!handleFieldChange) return;
922
- return /* @__PURE__ */ jsxs(Fragment, { children: [
923
- /* @__PURE__ */ jsx(Typography, {
924
- el: "h3",
925
- variant: "title",
926
- className: BusinessFinancing_module_default.businessFinancingTitle,
927
- children: businessFinancingT(($) => $["ownershipStructure"])
928
- }),
929
- /* @__PURE__ */ jsx(Field, {
930
- el: "fieldset",
931
- name: "isCompanyOwnedByAnotherCompany",
932
- label: businessFinancingT(($) => $["isCompanyOwnedByAnotherCompany"], { company: legalEntity?.organization ? legalEntity.organization.legalName : "" }),
933
- errorMessage: formUtils.getErrorMessage("isCompanyOwnedByAnotherCompany", errors, fieldValidationErrors),
934
- helper: /* @__PURE__ */ jsx(Typography, {
935
- el: "div",
936
- variant: "body",
937
- color: "secondary",
938
- className: BusinessFinancing_module_default.businessFinancingBody,
939
- children: businessFinancingT(($) => $["thisMeansYouHaveAParentCompany"])
940
- }),
941
- children: (childProps) => /* @__PURE__ */ jsx(RadioGroup, {
942
- ...childProps,
943
- name: "isCompanyOwnedByAnotherCompany",
944
- items: businessFinancingRadioItems,
945
- value: data?.isCompanyOwnedByAnotherCompany,
946
- className: BusinessFinancing_module_default.businessFinancingLeiRadio,
947
- disabled: false,
948
- onChange: handleFieldChange("isCompanyOwnedByAnotherCompany"),
949
- "aria-required": true,
950
- "aria-invalid": !valid?.isCompanyOwnedByAnotherCompany
951
- })
952
- }),
953
- data?.isCompanyOwnedByAnotherCompany === "Yes" && /* @__PURE__ */ jsx(Field, {
954
- el: "fieldset",
955
- name: "isParentOwnedByAnotherCompany",
956
- label: businessFinancingT(($) => $["isParentOwnedByAnotherCompany"]),
957
- helper: /* @__PURE__ */ jsx(Typography, {
958
- el: "div",
959
- variant: "body",
960
- color: "secondary",
961
- className: BusinessFinancing_module_default.businessFinancingBody,
962
- children: businessFinancingT(($) => $["thisMeansYouHaveAnUltimateParentCompany"])
963
- }),
964
- errorMessage: formUtils.getErrorMessage("isParentOwnedByAnotherCompany", errors, fieldValidationErrors),
965
- children: (childProps) => /* @__PURE__ */ jsx(RadioGroup, {
966
- ...childProps,
967
- name: "isParentOwnedByAnotherCompany",
968
- items: businessFinancingRadioItems,
969
- value: data.isParentOwnedByAnotherCompany,
970
- className: BusinessFinancing_module_default.businessFinancingLeiRadio,
971
- disabled: false,
972
- onChange: handleFieldChange("isParentOwnedByAnotherCompany"),
973
- "aria-required": true,
974
- "aria-invalid": !valid?.isParentOwnedByAnotherCompany
975
- })
976
- })
977
- ] });
978
- }
979
- //#endregion
980
- //#region src/components/EFP/tasks/BusinessFinancingDropin/AdditionalFieldsForBusinessFinancingCompany.tsx
981
- function AdditionalFieldsForBusinessFinancingCompany(props) {
982
- const { t: businessFinancingT } = useTranslation("businessFinancing");
983
- const { t: commonT } = useTranslation("common");
984
- const { form: { handleChangeFor, data, setValid } } = useFormContext();
985
- const { country, formVerificationErrors, legalEntity, fieldValidationErrors } = props;
986
- const formUtils = createFormUtils(props, commonT);
987
- const handleChange = (fieldName, mode) => handleChangeFor("company", fieldName, mode);
988
- const ownershipStructureProps = getFieldProps(props, ownershipStructureFields);
989
- const businessInformationProps = getFieldProps(props, businessInformationFields);
990
- const financialInformationProps = getFieldProps(props, financialInformationFields);
991
- const legalInformationProps = getFieldProps(props, legalInformationFields);
992
- if ((currencyByCountry[country] ?? [])?.length === 1) setValid("company", "currency", true);
993
- return /* @__PURE__ */ jsxs("form", {
994
- "data-testid": "businessFinancingCompany",
995
- children: [
996
- /* @__PURE__ */ jsx(Header, {
997
- title: businessFinancingT(($) => $["additionalInformationForBusinessFinancing"]),
998
- description: businessFinancingT(($) => $["weNeedAFewMoreDetailsAboutYouAndYourBusiness"]),
999
- secondary: true
1000
- }),
1001
- /* @__PURE__ */ jsx(ErrorPanel, {
1002
- verificationErrors: formVerificationErrors,
1003
- validationErrors: fieldValidationErrors,
1004
- formUtils,
1005
- id: "ariaErrorField"
1006
- }),
1007
- /* @__PURE__ */ jsx(BusinessFinancingBusinessInformation, {
1008
- ...businessInformationProps,
1009
- handleFieldChange: handleChange,
1010
- country,
1011
- targetPage: BusinessFinancingPages.COMPANY_PAGE,
1012
- sectionHeading: "businessInformation",
1013
- data: formUtils.getFieldData(data?.company ?? {}, businessInformationFields)
1014
- }),
1015
- isEeaCountry(country) && /* @__PURE__ */ jsx(BusinessFinancingFinancialInformation, {
1016
- ...financialInformationProps,
1017
- handleFieldChange: handleChange,
1018
- country,
1019
- targetPage: BusinessFinancingPages.COMPANY_PAGE,
1020
- data: formUtils.getFieldData(data?.company ?? {}, financialInformationFields)
1021
- }),
1022
- /* @__PURE__ */ jsx(BusinessFinancingLegalInformation, {
1023
- ...legalInformationProps,
1024
- country,
1025
- handleFieldChange: handleChange,
1026
- targetPage: BusinessFinancingPages.COMPANY_PAGE,
1027
- sectionHeading: "legalInformation",
1028
- data: formUtils.getFieldData(data?.company ?? {}, legalInformationFields)
1029
- }),
1030
- /* @__PURE__ */ jsx(BusinessFinancingOwnershipStructure, {
1031
- ...ownershipStructureProps,
1032
- legalEntity,
1033
- handleFieldChange: handleChange,
1034
- data: formUtils.getFieldData(data?.company ?? {}, ownershipStructureFields)
1035
- })
1036
- ]
1037
- });
1038
- }
1039
- //#endregion
1040
- //#region src/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingBasicCompanyInformation.tsx
1041
- var basicInformationFields = ["legalName"];
1042
- function BusinessFinancingBasicCompanyInformation(props) {
1043
- const { data, valid, errors, fieldValidationErrors, handleFieldChange, sectionHeading } = props;
1044
- const { t: businessFinancingT } = useTranslation("businessFinancing");
1045
- const { t: commonT } = useTranslation("common");
1046
- const formUtils = createFormUtils(props, commonT);
1047
- if (!handleFieldChange) return;
1048
- return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Typography, {
1049
- el: "h3",
1050
- variant: "title",
1051
- className: BusinessFinancing_module_default.businessFinancingTitle,
1052
- children: sectionHeading ? businessFinancingT(($) => $[sectionHeading]) : businessFinancingT(($) => $["basicCompanyInformation"])
1053
- }), /* @__PURE__ */ jsx(Field, {
1054
- name: "legalName",
1055
- label: businessFinancingT(($) => $["legalName"]),
1056
- errorMessage: formUtils.getErrorMessage("legalName", errors, fieldValidationErrors),
1057
- isValid: valid?.legalName,
1058
- helper: businessFinancingT(($) => $["legalNameIsUsedToIdentifyABusinessWithTheGovernment"]),
1059
- helperPosition: "below",
1060
- children: (childProps) => /* @__PURE__ */ jsx(InputText, {
1061
- ...childProps,
1062
- name: "legalName",
1063
- value: data?.legalName,
1064
- readonly: false,
1065
- onInput: handleFieldChange("legalName", "input"),
1066
- onBlur: handleFieldChange("legalName", "blur"),
1067
- "aria-required": true,
1068
- "aria-invalid": !valid?.legalName
1069
- })
1070
- })] });
1071
- }
1072
- //#endregion
1073
- //#region src/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingRegisteredAddress.tsx
1074
- var registeredAddressFields = [
1075
- "isThisAddressTheMainHeadquarters",
1076
- "sameAddressAsRootEntity",
1077
- ...getPrefixedAddressFieldNames("registrationAddress")
1078
- ];
1079
- function BusinessFinancingRegisteredAddress(props) {
1080
- const { data, valid, errors, fieldValidationErrors, handleFieldChange, formId, legalEntity, sectionHeading } = props;
1081
- const { t: businessFinancingT, i18n } = useTranslation("businessFinancing");
1082
- const { t: commonT } = useTranslation("common");
1083
- const { form } = useFormContext();
1084
- const formUtils = createFormUtils(props, commonT);
1085
- const datasetUtils = datasetUtilities(i18n.language);
1086
- if (!handleFieldChange) return;
1087
- const addressFieldsProps = getPrefixedFieldProps({
1088
- ...getFormSlice(form, formId),
1089
- handleFieldChange
1090
- }, "registrationAddress", addressFields);
1091
- return /* @__PURE__ */ jsxs(Fragment, { children: [
1092
- /* @__PURE__ */ jsx(Typography, {
1093
- el: "h3",
1094
- variant: "title",
1095
- className: BusinessFinancing_module_default.businessFinancingTitle,
1096
- children: sectionHeading ? translateTranslatable(commonT, sectionHeading) : commonT(($) => $["registeredAddress"])
1097
- }),
1098
- /* @__PURE__ */ jsx(Field, {
1099
- name: "sameAddressAsRootEntity",
1100
- errorMessage: formatValidationError(errors?.sameAddressAsRootEntity?.errorMessage, commonT),
1101
- isValid: valid?.sameAddressAsRootEntity,
1102
- children: (childProps) => /* @__PURE__ */ jsx(Checkbox, {
1103
- ...childProps,
1104
- "aria-required": formUtils.isRequiredField("sameAddressAsRootEntity"),
1105
- "aria-invalid": !valid?.sameAddressAsRootEntity,
1106
- name: "sameAddressAsRootEntity",
1107
- label: businessFinancingT(($) => $["sameAddressAsRootEntity"], { rootLegalEntityName: legalEntity?.organization?.legalName ?? "" }),
1108
- checked: data?.sameAddressAsRootEntity ?? false,
1109
- onChange: handleFieldChange("sameAddressAsRootEntity")
1110
- })
1111
- }),
1112
- data?.sameAddressAsRootEntity && legalEntity?.organization?.registeredAddress ? /* @__PURE__ */ jsxs("div", {
1113
- className: BusinessFinancing_module_default.businessFinancingStructuredAddress,
1114
- children: [
1115
- /* @__PURE__ */ jsx("div", { children: legalEntity.organization.registeredAddress.street }),
1116
- /* @__PURE__ */ jsx("div", { children: legalEntity.organization.registeredAddress.street2 }),
1117
- /* @__PURE__ */ jsxs("div", { children: [
1118
- legalEntity.organization.registeredAddress.city,
1119
- " ",
1120
- legalEntity.organization.registeredAddress.postalCode ? `, ${legalEntity.organization.registeredAddress.postalCode}` : ""
1121
- ] }),
1122
- /* @__PURE__ */ jsx("div", { children: legalEntity.organization.registeredAddress.stateOrProvince }),
1123
- /* @__PURE__ */ jsx("div", { children: legalEntity.organization.registeredAddress.country ? datasetUtils.getCountryName(legalEntity.organization.registeredAddress.country) : "" })
1124
- ]
1125
- }) : /* @__PURE__ */ jsx(AddressFields, {
1126
- ...addressFieldsProps,
1127
- addressType: "registrationAddress"
1128
- }),
1129
- /* @__PURE__ */ jsx(Field, {
1130
- el: "fieldset",
1131
- name: "isThisAddressTheMainHeadquarters",
1132
- label: businessFinancingT(($) => $["areTheMainHeadquartersAtThisAddress"]),
1133
- helper: businessFinancingT(($) => $["addressRegisteredWithGovernment"]),
1134
- errorMessage: formUtils.getErrorMessage("isThisAddressTheMainHeadquarters", errors, fieldValidationErrors),
1135
- children: (childProps) => /* @__PURE__ */ jsx(RadioGroup, {
1136
- ...childProps,
1137
- name: "isThisAddressTheMainHeadquarters",
1138
- items: businessFinancingRadioItems,
1139
- value: data?.isThisAddressTheMainHeadquarters,
1140
- className: BusinessFinancing_module_default.businessFinancingLeiRadio,
1141
- disabled: false,
1142
- onChange: handleFieldChange("isThisAddressTheMainHeadquarters"),
1143
- "aria-required": true,
1144
- "aria-invalid": !valid?.isThisAddressTheMainHeadquarters
1145
- })
1146
- })
1147
- ] });
1148
- }
1149
- //#endregion
1150
- //#region src/components/EFP/tasks/BusinessFinancingDropin/AdditionalFieldsForBusinessFinancingParentCompany.tsx
1151
- var parentCompanyFormId$1 = businessFinancingForms.parentCompany.formId;
1152
- function AdditionalFieldsForBusinessFinancingParentCompany(props) {
1153
- const { t: businessFinancingT } = useTranslation("businessFinancing");
1154
- const { t: commonT } = useTranslation("common");
1155
- const { form: { handleChangeFor, data, setValid } } = useFormContext();
1156
- const { country, formVerificationErrors, fieldValidationErrors, legalEntity } = props;
1157
- const formUtils = createFormUtils(props, commonT);
1158
- const handleChange = (fieldName, mode) => handleChangeFor("parentCompany", fieldName, mode);
1159
- setValid("parentCompany", "sameAddressAsRootEntity", true);
1160
- const basicCompanyInformationProps = getFieldProps(props, basicInformationFields);
1161
- const registeredAddressProps = getFieldProps(props, registeredAddressFields);
1162
- const businessInformationProps = getFieldProps(props, businessInformationFields);
1163
- const financialInformationProps = getFieldProps(props, financialInformationFields);
1164
- const legalInformationProps = getFieldProps(props, legalInformationFields);
1165
- const addressCountry = getAddressCountryForParentCompany(data?.parentCompany, legalEntity?.organization?.registeredAddress);
1166
- if ((currencyByCountry[addressCountry ?? country] ?? [])?.length === 1) setValid("parentCompany", "currency", true);
1167
- return /* @__PURE__ */ jsxs("form", {
1168
- "data-testid": "businessFinancingParentCompany",
1169
- children: [
1170
- /* @__PURE__ */ jsx(Typography, {
1171
- el: "h1",
1172
- variant: "title-l",
1173
- className: BusinessFinancing_module_default.businessFinancingBody,
1174
- children: businessFinancingT(($) => $["parentCompanyInformation"])
1175
- }),
1176
- /* @__PURE__ */ jsx(Typography, {
1177
- el: "p",
1178
- variant: "body",
1179
- className: BusinessFinancing_module_default.businessFinancingBody,
1180
- children: businessFinancingT(($) => $["inThePreviousStepOwnedByAParentCompany"])
1181
- }),
1182
- /* @__PURE__ */ jsx(ErrorPanel, {
1183
- verificationErrors: formVerificationErrors,
1184
- validationErrors: fieldValidationErrors,
1185
- formUtils,
1186
- id: "ariaErrorField"
1187
- }),
1188
- /* @__PURE__ */ jsx(BusinessFinancingBasicCompanyInformation, {
1189
- ...basicCompanyInformationProps,
1190
- sectionHeading: "parentCompanyInformation",
1191
- handleFieldChange: handleChange,
1192
- data: formUtils.getFieldData(data?.parentCompany ?? {}, basicInformationFields)
1193
- }),
1194
- /* @__PURE__ */ jsx(BusinessFinancingRegisteredAddress, {
1195
- ...registeredAddressProps,
1196
- formId: parentCompanyFormId$1,
1197
- sectionHeading: "parentCompanyAddress",
1198
- defaultData: data?.parentCompany,
1199
- legalEntity,
1200
- handleFieldChange: handleChange,
1201
- data: formUtils.getFieldData(data?.parentCompany ?? {}, registeredAddressFields)
1202
- }),
1203
- /* @__PURE__ */ jsx(BusinessFinancingBusinessInformation, {
1204
- ...businessInformationProps,
1205
- hideSectionHeading: true,
1206
- country: addressCountry ?? country,
1207
- targetPage: BusinessFinancingPages.PARENT_COMPANY_PAGE,
1208
- handleFieldChange: handleChange,
1209
- data: formUtils.getFieldData(data?.parentCompany ?? {}, businessInformationFields)
1210
- }),
1211
- isEeaCountry(addressCountry) && /* @__PURE__ */ jsx(BusinessFinancingFinancialInformation, {
1212
- ...financialInformationProps,
1213
- country: addressCountry ?? country,
1214
- targetPage: BusinessFinancingPages.PARENT_COMPANY_PAGE,
1215
- handleFieldChange: handleChange,
1216
- data: formUtils.getFieldData(data?.parentCompany ?? {}, financialInformationFields)
1217
- }),
1218
- /* @__PURE__ */ jsx(BusinessFinancingLegalInformation, {
1219
- ...legalInformationProps,
1220
- country: addressCountry ?? country,
1221
- targetPage: BusinessFinancingPages.PARENT_COMPANY_PAGE,
1222
- sectionHeading: "legalInformation",
1223
- handleFieldChange: handleChange,
1224
- data: formUtils.getFieldData(data?.parentCompany ?? {}, legalInformationFields)
1225
- })
1226
- ]
1227
- });
1228
- }
1229
- //#endregion
1230
- //#region src/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingSoleProprietorPersonalInformation.tsx
1231
- var soleProprietorPersonalInformationFields = ["gender", "countryOfBirth"];
1232
- function BusinessFinancingSoleProprietorPersonalInformation(props) {
1233
- const { data, valid, errors, handleFieldChange, fieldValidationErrors, sectionHeading } = props;
1234
- const { t: businessFinancingT } = useTranslation("businessFinancing");
1235
- const { t: commonT } = useTranslation("common");
1236
- const formUtils = createFormUtils(props, commonT);
1237
- if (!handleFieldChange) return;
1238
- const genderItems = [
1239
- {
1240
- id: "M",
1241
- name: businessFinancingT(($) => $["male"])
1242
- },
1243
- {
1244
- id: "F",
1245
- name: businessFinancingT(($) => $["female"])
1246
- },
1247
- {
1248
- id: "U",
1249
- name: businessFinancingT(($) => $["preferNotToSay"])
1250
- }
1251
- ];
1252
- return /* @__PURE__ */ jsxs(Fragment, { children: [
1253
- /* @__PURE__ */ jsx(Typography, {
1254
- el: "h3",
1255
- variant: "title",
1256
- className: BusinessFinancing_module_default.businessFinancingTitle,
1257
- children: sectionHeading ? businessFinancingT(($) => $[sectionHeading]) : businessFinancingT(($) => $["personalInformation"])
1258
- }),
1259
- /* @__PURE__ */ jsx(CountryField, {
1260
- data: { country: data?.countryOfBirth },
1261
- valid: { country: valid?.countryOfBirth },
1262
- name: "countryOfBirth",
1263
- errors: { country: formUtils.getErrorMessage("countryOfBirth", errors, fieldValidationErrors) },
1264
- labels: { country: businessFinancingT(($) => $["countryOfBirth"]) },
1265
- readonly: formUtils.isReadOnly("countryOfBirth"),
1266
- handleChangeFor: () => handleFieldChange("countryOfBirth", "input")
1267
- }),
1268
- /* @__PURE__ */ jsx(Field, {
1269
- name: "gender",
1270
- label: businessFinancingT(($) => $["gender"]),
1271
- errorMessage: formUtils.getErrorMessage("gender", errors, fieldValidationErrors),
1272
- isValid: valid?.gender,
1273
- children: (childProps) => /* @__PURE__ */ jsx(Select, {
1274
- ...childProps,
1275
- onChange: handleFieldChange("gender", "blur"),
1276
- name: "gender",
1277
- placeholder: commonT(($) => $["selectOne"]),
1278
- selected: data?.gender,
1279
- items: genderItems,
1280
- "aria-required": true,
1281
- "aria-invalid": !valid?.gender
1282
- })
1283
- })
1284
- ] });
1285
- }
1286
- //#endregion
1287
- //#region src/components/EFP/tasks/BusinessFinancingDropin/AdditionalFieldsForBusinessFinancingSoleProprietor.tsx
1288
- function AdditionalFieldsForBusinessFinancingSoleProprietor(props) {
1289
- const { t: businessFinancingT } = useTranslation("businessFinancing");
1290
- const { t: commonT } = useTranslation("common");
1291
- const { form: { handleChangeFor, data } } = useFormContext();
1292
- const { country, formVerificationErrors, fieldValidationErrors } = props;
1293
- const formUtils = createFormUtils(props, commonT);
1294
- const handleChange = (fieldName, mode) => handleChangeFor("soleProprietor", fieldName, mode);
1295
- const personalInformationProps = getFieldProps(props, soleProprietorPersonalInformationFields);
1296
- const businessInformationProps = getFieldProps(props, ["naceCode", "naceCodeLabel"]);
1297
- const legalInformationProps = getFieldProps(props, legalInformationFields);
1298
- return /* @__PURE__ */ jsxs("form", {
1299
- "data-testid": "businessFinancingCompany",
1300
- children: [
1301
- /* @__PURE__ */ jsx(Header, {
1302
- title: businessFinancingT(($) => $["additionalInformationForBusinessFinancing"]),
1303
- description: businessFinancingT(($) => $["weNeedAFewMoreDetailsAboutYouAndYourBusiness"]),
1304
- secondary: true
1305
- }),
1306
- /* @__PURE__ */ jsx(ErrorPanel, {
1307
- verificationErrors: formVerificationErrors,
1308
- validationErrors: fieldValidationErrors,
1309
- formUtils,
1310
- id: "ariaErrorField"
1311
- }),
1312
- /* @__PURE__ */ jsx(BusinessFinancingSoleProprietorPersonalInformation, {
1313
- ...personalInformationProps,
1314
- handleFieldChange: handleChange,
1315
- country,
1316
- targetPage: BusinessFinancingPages.SOLE_PROPRIETOR_PAGE,
1317
- sectionHeading: "personalInformation",
1318
- data: formUtils.getFieldData(data?.soleProprietor ?? {}, soleProprietorPersonalInformationFields)
1319
- }),
1320
- /* @__PURE__ */ jsx(BusinessFinancingBusinessInformation, {
1321
- ...businessInformationProps,
1322
- handleFieldChange: handleChange,
1323
- country,
1324
- targetPage: BusinessFinancingPages.SOLE_PROPRIETOR_PAGE,
1325
- sectionHeading: "businessInformation",
1326
- isSoleProprietor: true,
1327
- data: formUtils.getFieldData(data?.soleProprietor ?? {}, ["naceCode", "naceCodeLabel"])
1328
- }),
1329
- /* @__PURE__ */ jsx(BusinessFinancingLegalInformation, {
1330
- ...legalInformationProps,
1331
- country,
1332
- handleFieldChange: handleChange,
1333
- targetPage: BusinessFinancingPages.SOLE_PROPRIETOR_PAGE,
1334
- sectionHeading: "legalInformation",
1335
- data: formUtils.getFieldData(data?.soleProprietor ?? {}, legalInformationFields)
1336
- })
1337
- ]
1338
- });
1339
- }
1340
- //#endregion
1341
- //#region src/components/EFP/tasks/BusinessFinancingDropin/AdditionalFieldsForBusinessFinancingUltimateParentCompany.tsx
1342
- var ultimateParentCompanyFormId$1 = businessFinancingForms.ultimateParentCompany.formId;
1343
- function AdditionalFieldsForBusinessFinancingUltimateParentCompany(props) {
1344
- const { formVerificationErrors, country, fieldValidationErrors, legalEntity } = props;
1345
- const { t: businessFinancingT } = useTranslation("businessFinancing");
1346
- const { t: commonT } = useTranslation("common");
1347
- const formUtils = createFormUtils(props, commonT);
1348
- const { form: { handleChangeFor, data, setValid } } = useFormContext();
1349
- const handleChange = (fieldName, mode) => handleChangeFor("ultimateParentCompany", fieldName, mode);
1350
- setValid("ultimateParentCompany", "sameAddressAsRootEntity", true);
1351
- const basicCompanyInformationProps = getFieldProps(props, basicInformationFields);
1352
- const registeredAddressProps = getFieldProps(props, registeredAddressFields);
1353
- const businessInformationProps = getFieldProps(props, businessInformationFields);
1354
- const financialInformationProps = getFieldProps(props, financialInformationFields);
1355
- const legalInformationProps = getFieldProps(props, legalInformationFields);
1356
- const addressCountry = getAddressCountryForParentCompany(data?.ultimateParentCompany, legalEntity?.organization?.registeredAddress);
1357
- if ((currencyByCountry[addressCountry ?? country] ?? [])?.length === 1) setValid("ultimateParentCompany", "currency", true);
1358
- return /* @__PURE__ */ jsxs("form", {
1359
- "data-testid": "businessFinancingUltimateParentCompany",
1360
- children: [
1361
- /* @__PURE__ */ jsx(Typography, {
1362
- el: "h1",
1363
- variant: "title-l",
1364
- className: BusinessFinancing_module_default.businessFinancingBody,
1365
- children: commonT(($) => $["ultimateParentCompanyInformation"])
1366
- }),
1367
- /* @__PURE__ */ jsx(Typography, {
1368
- el: "p",
1369
- variant: "body",
1370
- className: BusinessFinancing_module_default.businessFinancingBody,
1371
- children: businessFinancingT(($) => $["inThePreviousStepOwnedByAnUltimateParentCompany"])
1372
- }),
1373
- /* @__PURE__ */ jsx(ErrorPanel, {
1374
- verificationErrors: formVerificationErrors,
1375
- validationErrors: fieldValidationErrors,
1376
- formUtils,
1377
- id: "ariaErrorField"
1378
- }),
1379
- /* @__PURE__ */ jsx(BusinessFinancingBasicCompanyInformation, {
1380
- ...basicCompanyInformationProps,
1381
- sectionHeading: "ultimateParentCompanyInformation",
1382
- handleFieldChange: handleChange,
1383
- data: formUtils.getFieldData(data?.ultimateParentCompany ?? {}, basicInformationFields)
1384
- }),
1385
- /* @__PURE__ */ jsx(BusinessFinancingRegisteredAddress, {
1386
- ...registeredAddressProps,
1387
- formId: ultimateParentCompanyFormId$1,
1388
- sectionHeading: "ultimateParentCompanyAddress",
1389
- defaultData: data?.ultimateParentCompany,
1390
- handleFieldChange: handleChange,
1391
- data: formUtils.getFieldData(data?.ultimateParentCompany ?? {}, registeredAddressFields),
1392
- legalEntity
1393
- }),
1394
- /* @__PURE__ */ jsx(BusinessFinancingBusinessInformation, {
1395
- ...businessInformationProps,
1396
- hideSectionHeading: true,
1397
- country: addressCountry ?? country,
1398
- targetPage: BusinessFinancingPages.ULTIMATE_PARENT_COMPANY_PAGE,
1399
- handleFieldChange: handleChange,
1400
- data: formUtils.getFieldData(data?.ultimateParentCompany ?? {}, businessInformationFields)
1401
- }),
1402
- isEeaCountry(addressCountry) && /* @__PURE__ */ jsx(BusinessFinancingFinancialInformation, {
1403
- ...financialInformationProps,
1404
- country: addressCountry ?? country,
1405
- targetPage: BusinessFinancingPages.ULTIMATE_PARENT_COMPANY_PAGE,
1406
- handleFieldChange: handleChange,
1407
- data: formUtils.getFieldData(data?.ultimateParentCompany ?? {}, financialInformationFields)
1408
- }),
1409
- /* @__PURE__ */ jsx(BusinessFinancingLegalInformation, {
1410
- ...legalInformationProps,
1411
- country: addressCountry ?? country,
1412
- sectionHeading: "legalInformation",
1413
- targetPage: BusinessFinancingPages.ULTIMATE_PARENT_COMPANY_PAGE,
1414
- handleFieldChange: handleChange,
1415
- data: formUtils.getFieldData(data?.ultimateParentCompany ?? {}, legalInformationFields)
1416
- })
1417
- ]
1418
- });
1419
- }
1420
- //#endregion
1421
- //#region src/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingSummary.tsx
1422
- var omittedSummaryKeys = [
1423
- "naceCodeLabel",
1424
- "legalFormLabel",
1425
- "currency",
1426
- "doesYourCompanyHaveLEI",
1427
- "sameAddressAsRootEntity"
1428
- ];
1429
- var customLabels = {
1430
- legalForm: "businessStructure",
1431
- naceCode: "industryAndNaceCode",
1432
- balanceSheetTotal: "totalAssets",
1433
- annualTurnover: "annualTurnover",
1434
- legalInformationInsolvency: "legalProceedings",
1435
- isCompanyOwnedByAnotherCompany: "hasParentCompany",
1436
- isParentOwnedByAnotherCompany: "hasUltimateParentCompany",
1437
- isThisAddressTheMainHeadquarters: "addressIsHeadquarters"
1438
- };
1439
- var isOmmitted = (key) => {
1440
- return omittedSummaryKeys.includes(key);
1441
- };
1442
- var isCustomLabel = (key) => {
1443
- return key in customLabels;
1444
- };
1445
- /**
1446
- * Business and data layer around Summary, processing all the data
1447
- */
1448
- var BusinessFinancingSummary = ({ forms, items, handleEditForm, children }) => {
1449
- const { t: businessFinancingT } = useTranslation("businessFinancing");
1450
- const { t: commonT } = useTranslation("common");
1451
- const formatItemForStructuredList = (data) => {
1452
- if (!data) return [];
1453
- const structuredListItems = Object.entries(data).map(([key, value]) => {
1454
- if (isOmmitted(key) || !value) return;
1455
- return {
1456
- term: isCustomLabel(key) ? businessFinancingT(($) => $[customLabels[key]]) : commonT(($) => $[key]),
1457
- details: value
1458
- };
1459
- }).filter((v) => v !== void 0);
1460
- const structuredListItemsWithInnerForms = [];
1461
- structuredListItems.map((it) => {
1462
- if (typeof it?.details === "object") structuredListItemsWithInnerForms.push(...formatItemForStructuredList(it?.details));
1463
- else structuredListItemsWithInnerForms.push(it);
1464
- });
1465
- return structuredListItemsWithInnerForms;
1466
- };
1467
- const processSummarySections = (forms) => {
1468
- return forms.map(({ formId, formName }) => ({
1469
- formId,
1470
- label: commonT(($) => $[formName]),
1471
- items: formatItemForStructuredList(items[formId])
1472
- }));
1473
- };
1474
- return /* @__PURE__ */ jsx(NewSummary, {
1475
- handleEditForm,
1476
- sections: processSummarySections(forms),
1477
- children
1478
- });
1479
- };
1480
- //#endregion
1481
- //#region src/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingDropin.tsx
1482
- var getOrgAnalyticsData = (prefix, details) => {
1483
- const org = details?.organization;
1484
- const soleProp = details?.soleProprietorship;
1485
- const entity = org || soleProp;
1486
- if (!entity) return {};
1487
- return {
1488
- [`${prefix}--economicSector`]: entity?.economicSector ?? "",
1489
- [`${prefix}--legalForm`]: org?.legalForm ?? "",
1490
- [`${prefix}--statusOfLegalProceeding`]: entity?.statusOfLegalProceeding ?? ""
1491
- };
1492
- };
1493
- var businessFinancingFormsRequiredFields = {
1494
- soleProprietor: businessFinancingForms.soleProprietor.fields,
1495
- company: businessFinancingForms.company.fields,
1496
- parentCompany: businessFinancingForms.parentCompany.fields,
1497
- ultimateParentCompany: businessFinancingForms.ultimateParentCompany.fields
1498
- };
1499
- var parentCompanyFormId = businessFinancingForms.parentCompany.formId;
1500
- var companyFormId = businessFinancingForms.company.formId;
1501
- var ultimateParentCompanyFormId = businessFinancingForms.ultimateParentCompany.formId;
1502
- function BusinessFinancingDropin(props) {
1503
- const { country, rootLegalEntity, externalOnSubmit, externalOnSubmitLabel, isStandaloneComponent, handleHomeClick } = props;
1504
- const { t: businessFinancingT } = useTranslation("businessFinancing");
1505
- const { t: commonT, i18n } = useTranslation("common");
1506
- const userEvents = useAnalyticsContext();
1507
- const invalidateRootLegalEntity = useInvalidateRootLegalEntity();
1508
- const { mutateAsync: createLegalEntity } = useCreateLegalEntity();
1509
- const { mutateAsync: updateLegalEntity } = useUpdateLegalEntity();
1510
- const { data: immediateParentCompany, isLoading: immediateParentCompanyIsLoading } = useAssociatedLegalEntity(rootLegalEntity, "immediateParentCompany");
1511
- const { data: ultimateParentCompany, isLoading: ultimateParentCompanyIsLoading } = useAssociatedLegalEntity(rootLegalEntity, "ultimateParentCompany");
1512
- const { data: soleProprietor, isLoading: soleProprietorIsLoading } = useAssociatedLegalEntity(rootLegalEntity, "soleProprietorship");
1513
- /**
1514
- * Analytics
1515
- */
1516
- useTaskLandedEvent("BUSINESS_FINANCING");
1517
- const derivedData = useMemo(() => {
1518
- if (immediateParentCompanyIsLoading || ultimateParentCompanyIsLoading || soleProprietorIsLoading) return void 0;
1519
- const isSoleProprietor = hasSolePropInLegalEntity(rootLegalEntity);
1520
- const dataFromResponse = {};
1521
- if (isSoleProprietor && soleProprietor) {
1522
- dataFromResponse.soleProprietor = mapLegalEntityToBusinessFinancing(rootLegalEntity);
1523
- dataFromResponse.soleProprietor = appendSoleProprietorBusinessFinancingData(soleProprietor.soleProprietorship, dataFromResponse.soleProprietor);
1524
- } else if (rootLegalEntity.type === LegalEntityTypes.ORGANIZATION) {
1525
- dataFromResponse.company = mapLegalEntityToBusinessFinancing(rootLegalEntity);
1526
- dataFromResponse.company = appendBusinessFinancingData(rootLegalEntity.organization, dataFromResponse.company);
1527
- dataFromResponse.company.isCompanyOwnedByAnotherCompany = "No";
1528
- dataFromResponse.company.isParentOwnedByAnotherCompany = "No";
1529
- if (immediateParentCompany) {
1530
- dataFromResponse.parentCompany = mapLegalEntityToBusinessFinancing(immediateParentCompany);
1531
- dataFromResponse.parentCompany = appendBusinessFinancingData(immediateParentCompany.organization, dataFromResponse.parentCompany);
1532
- dataFromResponse.company.isCompanyOwnedByAnotherCompany = "Yes";
1533
- }
1534
- if (ultimateParentCompany) {
1535
- dataFromResponse.ultimateParentCompany = mapLegalEntityToBusinessFinancing(ultimateParentCompany);
1536
- dataFromResponse.ultimateParentCompany = appendBusinessFinancingData(ultimateParentCompany.organization, dataFromResponse.ultimateParentCompany);
1537
- dataFromResponse.company.isParentOwnedByAnotherCompany = "Yes";
1538
- }
1539
- }
1540
- return dataFromResponse;
1541
- }, [
1542
- immediateParentCompanyIsLoading,
1543
- ultimateParentCompanyIsLoading,
1544
- soleProprietorIsLoading,
1545
- rootLegalEntity,
1546
- immediateParentCompany,
1547
- ultimateParentCompany,
1548
- soleProprietor
1549
- ]);
1550
- const datasetUtils = datasetUtilities(i18n.language);
1551
- const [problems, setProblems] = useState();
1552
- const [loadingStatus, setLoadingStatus] = useState("success");
1553
- const [showEndState, setShowEndState] = useState(false);
1554
- const { showToast } = useToastContext();
1555
- const { isSettingEnabled } = useSettingsContext();
1556
- const { isFeatureEnabled } = useToggleContext();
1557
- const showBusinessFinancingFirst = isSettingEnabled(SettingNames.ShowBusinessFinancingFirst);
1558
- const onSubmit = async () => {
1559
- setLoadingStatus("loading");
1560
- if (!umfData) return;
1561
- setProblems((prevProblems) => ({
1562
- ...prevProblems,
1563
- validationErrors: {}
1564
- }));
1565
- const isSoleProprietor = hasSolePropInLegalEntity(rootLegalEntity);
1566
- const mainEntityDetails = !isSoleProprietor ? prepareBusinessFinancingSubmitData(BusinessFinancingIndices.COMPANY, umfData, rootLegalEntity) : null;
1567
- const soleProprietorPayloads = isSoleProprietor ? prepareSoleProprietorBusinessFinancingSubmitData(umfData, rootLegalEntity, soleProprietor) : null;
1568
- const parentCompanyBusinessFinancingDetails = !isSoleProprietor ? prepareBusinessFinancingSubmitData(BusinessFinancingIndices.PARENT_COMPANY, umfData, rootLegalEntity) : null;
1569
- const ultimateParentCompanyBusinessFinancingDetails = !isSoleProprietor ? prepareBusinessFinancingSubmitData(BusinessFinancingIndices.ULTIMATE_PARENT_COMPANY, umfData, rootLegalEntity) : null;
1570
- if (isSoleProprietor) {
1571
- if (!soleProprietorPayloads || !rootLegalEntity || !soleProprietor?.id) {
1572
- showToast({
1573
- label: businessFinancingT(($) => $["missingCompanyDetails"]),
1574
- variant: "error"
1575
- });
1576
- return;
1577
- }
1578
- try {
1579
- await handleBusinessFinancingFormSubmission(BusinessFinancingIndices.SOLE_PROPRIETOR, soleProprietorPayloads.individualPayload, createLegalEntity, updateLegalEntity, rootLegalEntity.id);
1580
- const eventsAdditionalData = { ...getOrgAnalyticsData("SoleProprietor", await handleBusinessFinancingFormSubmission(BusinessFinancingIndices.SOLE_PROPRIETOR, soleProprietorPayloads.solePropPayload, createLegalEntity, updateLegalEntity, soleProprietor.id)) };
1581
- userEvents.addTaskEvent("Success", {
1582
- actionType: "submit",
1583
- returnValue: [BusinessFinancingIndices.SOLE_PROPRIETOR],
1584
- additionalData: eventsAdditionalData
1585
- });
1586
- await invalidateRootLegalEntity();
1587
- if (showBusinessFinancingFirst || isStandaloneComponent) setShowEndState(true);
1588
- else externalOnSubmit?.({ ...umfData });
1589
- setProblems({});
1590
- } catch (e) {
1591
- showToast({
1592
- label: commonT(($) => $["failedToUpdateDetails"]),
1593
- variant: "error"
1594
- });
1595
- handleSubmissionError(e, BusinessFinancingIndices.SOLE_PROPRIETOR);
1596
- } finally {
1597
- setLoadingStatus("success");
1598
- }
1599
- } else {
1600
- if (!mainEntityDetails || !rootLegalEntity) {
1601
- showToast({
1602
- label: businessFinancingT(($) => $["missingCompanyDetails"]),
1603
- variant: "error"
1604
- });
1605
- return;
1606
- }
1607
- let parentCompanyFailed = false;
1608
- let ultimateParentCompanyFailed = false;
1609
- try {
1610
- const promises = [];
1611
- if (parentCompanyBusinessFinancingDetails) {
1612
- const parentCompanyPromise = handleBusinessFinancingFormSubmission(BusinessFinancingIndices.PARENT_COMPANY, parentCompanyBusinessFinancingDetails, createLegalEntity, updateLegalEntity, parentCompanyBusinessFinancingDetails?.id);
1613
- promises.push(parentCompanyPromise);
1614
- }
1615
- if (ultimateParentCompanyBusinessFinancingDetails) {
1616
- const ultimateParentCompanyPromise = handleBusinessFinancingFormSubmission(BusinessFinancingIndices.ULTIMATE_PARENT_COMPANY, ultimateParentCompanyBusinessFinancingDetails, createLegalEntity, updateLegalEntity, ultimateParentCompanyBusinessFinancingDetails?.id);
1617
- promises.push(ultimateParentCompanyPromise);
1618
- }
1619
- const results = await Promise.allSettled(promises);
1620
- const businessFinancingEntityAssociations = [...rootLegalEntity.entityAssociations ? rootLegalEntity.entityAssociations.filter((entityAssociation) => entityAssociation.type !== "immediateParentCompany" && entityAssociation.type !== "ultimateParentCompany") : []];
1621
- const entitiesToTrack = [BusinessFinancingIndices.COMPANY];
1622
- results.forEach((result, index) => {
1623
- const businessFinancingType = index === 0 ? BusinessFinancingIndices.PARENT_COMPANY : BusinessFinancingIndices.ULTIMATE_PARENT_COMPANY;
1624
- if (result.status === "fulfilled") {
1625
- const response = result.value;
1626
- if (businessFinancingType === BusinessFinancingIndices.PARENT_COMPANY) {
1627
- businessFinancingEntityAssociations.push({
1628
- type: "immediateParentCompany",
1629
- legalEntityId: response.id,
1630
- associatorId: mainEntityDetails.id
1631
- });
1632
- entitiesToTrack.push(BusinessFinancingIndices.PARENT_COMPANY);
1633
- } else if (businessFinancingType === BusinessFinancingIndices.ULTIMATE_PARENT_COMPANY) {
1634
- businessFinancingEntityAssociations.push({
1635
- type: "ultimateParentCompany",
1636
- legalEntityId: response.id,
1637
- associatorId: mainEntityDetails.id
1638
- });
1639
- entitiesToTrack.push(BusinessFinancingIndices.ULTIMATE_PARENT_COMPANY);
1640
- }
1641
- } else {
1642
- if (businessFinancingType === BusinessFinancingIndices.PARENT_COMPANY) parentCompanyFailed = true;
1643
- else if (businessFinancingType === BusinessFinancingIndices.ULTIMATE_PARENT_COMPANY) ultimateParentCompanyFailed = true;
1644
- handleSubmissionError(result.reason, businessFinancingType);
1645
- }
1646
- });
1647
- if (!parentCompanyFailed && !ultimateParentCompanyFailed) {
1648
- mainEntityDetails.entityAssociations = [...businessFinancingEntityAssociations];
1649
- const eventsAdditionalData = {
1650
- ...getOrgAnalyticsData("Business", mainEntityDetails),
1651
- ...getOrgAnalyticsData("ParentCompany", parentCompanyBusinessFinancingDetails),
1652
- ...getOrgAnalyticsData("UltimateParentCompany", ultimateParentCompanyBusinessFinancingDetails)
1653
- };
1654
- try {
1655
- await handleBusinessFinancingFormSubmission(BusinessFinancingIndices.COMPANY, mainEntityDetails, createLegalEntity, updateLegalEntity, mainEntityDetails?.id);
1656
- userEvents.addTaskEvent("Success", {
1657
- actionType: "submit",
1658
- returnValue: entitiesToTrack,
1659
- additionalData: eventsAdditionalData
1660
- });
1661
- await invalidateRootLegalEntity();
1662
- if (showBusinessFinancingFirst || isStandaloneComponent) setShowEndState(true);
1663
- else externalOnSubmit?.({ ...umfData });
1664
- setProblems({});
1665
- } catch (e) {
1666
- showToast({
1667
- label: commonT(($) => $["failedToUpdateDetails"]),
1668
- variant: "error"
1669
- });
1670
- handleSubmissionError(e, BusinessFinancingIndices.COMPANY);
1671
- }
1672
- }
1673
- } catch (e) {
1674
- if (!parentCompanyFailed && !ultimateParentCompanyFailed) handleSubmissionError(e, BusinessFinancingIndices.COMPANY);
1675
- showToast({
1676
- label: commonT(($) => $["failedToUpdateDetails"]),
1677
- variant: "error"
1678
- });
1679
- } finally {
1680
- setLoadingStatus("success");
1681
- }
1682
- }
1683
- };
1684
- const handleSubmissionError = (error, businessFinancingType) => {
1685
- const keyMapping = businessFinancingType === BusinessFinancingIndices.SOLE_PROPRIETOR ? {
1686
- ...businessFinancingIndividualApiKeyMapping,
1687
- ...businessFinancingSoleProprietorApiKeyMapping
1688
- } : businessFinancingApiKeyMapping;
1689
- if (isValidationError(error.actualError)) {
1690
- const validationErrors = processValidationErrors(error.actualError, void 0, keyMapping);
1691
- setProblems((prevProblems) => ({
1692
- ...prevProblems,
1693
- validationErrors: mergeValidationErrors(prevProblems?.validationErrors, validationErrors)
1694
- }));
1695
- } else if (isMaintenanceModeError(error)) showToast({
1696
- label: commonT(($) => $["maintenanceModeMessage"]),
1697
- variant: "error",
1698
- duration: "indefinite"
1699
- });
1700
- else showToast({
1701
- label: commonT(($) => $["failedToUpdateDetails"]),
1702
- variant: "error"
1703
- });
1704
- };
1705
- const [requiredFields, setRequiredFields] = useState(void 0);
1706
- const [optionalFields, setOptionalFields] = useState(void 0);
1707
- const addressCountry = useRef(void 0);
1708
- const form = useMultiForm({
1709
- requiredFields,
1710
- optionalFields,
1711
- defaultData: derivedData,
1712
- rules: businessFinancingMultiformRules({
1713
- country: addressCountry.current || country,
1714
- isFeatureEnabled,
1715
- t: commonT
1716
- })
1717
- });
1718
- const { data: umfData = derivedData, isValid, errors, valid } = form;
1719
- const businessFinancingRequiredForms = useMemo(() => {
1720
- let updateForms = {};
1721
- if (umfData?.soleProprietor) updateForms = { soleProprietor: { ...businessFinancingForms.soleProprietor } };
1722
- else {
1723
- updateForms = { company: { ...businessFinancingForms.company } };
1724
- const showParentCompany = umfData?.company?.isCompanyOwnedByAnotherCompany === "Yes";
1725
- const showUltimateParentCompany = umfData?.company?.isParentOwnedByAnotherCompany === "Yes";
1726
- if (showParentCompany) updateForms = {
1727
- ...updateForms,
1728
- parentCompany: businessFinancingForms.parentCompany
1729
- };
1730
- if (showParentCompany && showUltimateParentCompany) updateForms = {
1731
- ...updateForms,
1732
- ultimateParentCompany: businessFinancingForms.ultimateParentCompany
1733
- };
1734
- }
1735
- return updateForms;
1736
- }, [
1737
- umfData?.soleProprietor,
1738
- umfData?.company?.isCompanyOwnedByAnotherCompany,
1739
- umfData?.company?.isParentOwnedByAnotherCompany
1740
- ]);
1741
- useEffect(() => {
1742
- const [requiredFields, optionalFields] = getBusinessFinancingFields(country, umfData, rootLegalEntity?.organization?.registeredAddress);
1743
- setRequiredFields(requiredFields);
1744
- setOptionalFields(optionalFields);
1745
- }, [umfData, rootLegalEntity?.organization?.registeredAddress]);
1746
- const forms = useMemo(() => {
1747
- return addValidityToForms(getRequiredForms(businessFinancingRequiredForms, businessFinancingFormsRequiredFields, {}), isValid, problems);
1748
- }, [
1749
- businessFinancingRequiredForms,
1750
- isValid,
1751
- businessFinancingFormsRequiredFields,
1752
- problems
1753
- ]);
1754
- const { handleNextClick, handleBackClick, activeForm, gotoFormByFormIndex, gotoFormByFormId, steps, shouldValidate } = useFormComposer({
1755
- problems,
1756
- forms,
1757
- onSubmit
1758
- });
1759
- if (activeForm.formId === "parentCompany" || activeForm.formId === "ultimateParentCompany") addressCountry.current = umfData?.[activeForm.formId]?.registrationAddressCountry;
1760
- const renderActiveForm = (selectedForm) => /* @__PURE__ */ jsxs("div", { children: [
1761
- selectedForm.formId === "soleProprietor" && /* @__PURE__ */ jsx(AdditionalFieldsForBusinessFinancingSoleProprietor, {
1762
- data: derivedData?.soleProprietor,
1763
- legalEntity: rootLegalEntity,
1764
- heading: businessFinancingT(($) => $["additionalInformationForBusinessFinancing"]),
1765
- id: selectedForm.formId,
1766
- country,
1767
- shouldValidate,
1768
- fieldValidationErrors: problems?.validationErrors?.[selectedForm?.formId],
1769
- formVerificationErrors: problems?.verificationErrors?.[selectedForm?.formId],
1770
- errors: errors?.soleProprietor,
1771
- valid: valid?.soleProprietor
1772
- }),
1773
- selectedForm.formId === companyFormId && /* @__PURE__ */ jsx(AdditionalFieldsForBusinessFinancingCompany, {
1774
- data: derivedData?.company,
1775
- legalEntity: rootLegalEntity,
1776
- heading: businessFinancingT(($) => $["additionalInformationForBusinessFinancing"]),
1777
- id: companyFormId,
1778
- country,
1779
- shouldValidate,
1780
- fieldValidationErrors: problems?.validationErrors?.[selectedForm?.formId],
1781
- formVerificationErrors: problems?.verificationErrors?.[selectedForm?.formId],
1782
- errors: errors?.company,
1783
- valid: valid?.company
1784
- }),
1785
- selectedForm.formId === parentCompanyFormId && /* @__PURE__ */ jsx(AdditionalFieldsForBusinessFinancingParentCompany, {
1786
- data: derivedData?.parentCompany,
1787
- heading: businessFinancingT(($) => $["parentCompanyInformation"]),
1788
- id: companyFormId,
1789
- country,
1790
- shouldValidate,
1791
- errors: errors?.parentCompany,
1792
- legalEntity: rootLegalEntity
1793
- }),
1794
- selectedForm.formId === ultimateParentCompanyFormId && /* @__PURE__ */ jsx(AdditionalFieldsForBusinessFinancingUltimateParentCompany, {
1795
- data: derivedData?.ultimateParentCompany,
1796
- heading: commonT(($) => $["ultimateParentCompanyInformation"]),
1797
- id: companyFormId,
1798
- country,
1799
- shouldValidate,
1800
- errors: errors?.ultimateParentCompany,
1801
- legalEntity: rootLegalEntity
1802
- })
1803
- ] });
1804
- if (!derivedData?.company && !derivedData?.soleProprietor) return /* @__PURE__ */ jsx(Loader, {});
1805
- const allValidationErrors = problems?.validationErrors && Object.values(problems.validationErrors)?.reduce((acc, validError) => ({
1806
- ...acc,
1807
- ...validError
1808
- }), {});
1809
- const allVerificationErrors = problems?.verificationErrors && Object.values(problems.verificationErrors)?.reduce((acc, verifError) => ({
1810
- ...acc,
1811
- ...verifError
1812
- }), {});
1813
- const formUtils = createFormUtils({ labels: {} }, commonT);
1814
- const handleEditForm = (formId) => {
1815
- const formIndex = forms.findIndex((form) => form.formId === formId);
1816
- if (formIndex >= 0) gotoFormByFormIndex(formIndex);
1817
- };
1818
- const summaryComponent = /* @__PURE__ */ jsx(BusinessFinancingSummary, {
1819
- items: formatDataForSummary(i18n.language, commonT, businessFinancingT, datasetUtils, umfData, rootLegalEntity?.organization?.registeredAddress),
1820
- handleEditForm,
1821
- forms,
1822
- children: /* @__PURE__ */ jsx(ErrorPanel, {
1823
- validationErrors: allValidationErrors,
1824
- verificationErrors: allVerificationErrors,
1825
- formUtils,
1826
- id: "ariaErrorField",
1827
- slot: "errorPanel"
1828
- })
1829
- });
1830
- return showEndState ? /* @__PURE__ */ jsx(EndStateLayout, {
1831
- title: businessFinancingT(($) => $["submissionReceived"]),
1832
- description: businessFinancingT(($) => $["theInformationProvidedIsBeingReviewed"]),
1833
- action: externalOnSubmit && !showBusinessFinancingFirst ? /* @__PURE__ */ jsx(Button, {
1834
- onClick: () => externalOnSubmit?.({ ...umfData }),
1835
- children: externalOnSubmitLabel || commonT(($) => $["finish"])
1836
- }) : void 0
1837
- }) : /* @__PURE__ */ jsx(FormContextProvider, {
1838
- form,
1839
- children: /* @__PURE__ */ jsx(FormFlow, {
1840
- summaryComponent,
1841
- currentStep: steps.current,
1842
- disableNextButton: !activeForm.isValid,
1843
- forms,
1844
- activeForm,
1845
- gotoFormByFormIndex,
1846
- gotoFormByFormId,
1847
- handleBackClick,
1848
- handleCancelClick: handleHomeClick,
1849
- handleNextClick,
1850
- loadingStatus,
1851
- totalSteps: steps.total,
1852
- children: /* @__PURE__ */ jsx("div", { children: renderActiveForm(activeForm || (derivedData?.soleProprietor ? businessFinancingForms.soleProprietor : businessFinancingForms.company)) })
1853
- })
1854
- });
1855
- }
1856
- //#endregion
1857
- export { BusinessFinancingDropin as t };