@adyen/kyc-components 4.0.0-compact.3 → 4.0.0-compact.7

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 (1064) hide show
  1. package/dist/4-people-BtDi7O9A.js +24 -0
  2. package/dist/AcceptTermsOfServiceComponent-BFqDontt.js +650 -0
  3. package/dist/Accordion-B2vSnESS.js +88 -0
  4. package/dist/AccountSetupRejected-f8rcBzZj.js +26 -0
  5. package/dist/ActionBar-CijauUSe.js +31 -0
  6. package/dist/Address-Bj7zJ6yZ.js +1112 -0
  7. package/dist/Alert-CFmX9yNV.js +169 -0
  8. package/dist/Avatar-DWU7t_0U.js +60 -0
  9. package/dist/BusinessFinancingComponent-_DvatBRp.js +55 -0
  10. package/dist/BusinessFinancingDropin-BuATaIOz.js +2235 -0
  11. package/dist/BusinessFinancingPage-Bpu78Ynn.js +43 -0
  12. package/dist/BusinessTypeSelectionPage-gsT7g7u8.js +446 -0
  13. package/dist/Card-OQuFzmxm.js +90 -0
  14. package/dist/Checkbox-5Sc5pzsh.js +74 -0
  15. package/dist/Confirm-C0J_JwMM.js +64 -0
  16. package/dist/ConstitutionalDocument-Bw5T0g5Q.js +2361 -0
  17. package/dist/ContactDetails-CXTim9KR.js +396 -0
  18. package/dist/ContextGuidance-074d6FWy.js +34 -0
  19. package/dist/ContractViewer-DcQHIGMU.js +935 -0
  20. package/dist/CountryField-DxZlK1rV.js +66 -0
  21. package/dist/CreateIndividualComponent-BppUrKMC.js +65 -0
  22. package/dist/CreateTransferInstrumentComponent-Cl2NOJb6.js +56 -0
  23. package/dist/Currency-CIgj9KwH.js +238 -0
  24. package/dist/CustomerSupport-UenL9SqQ.js +156 -0
  25. package/dist/DebugModal-KXKodU9u.js +416 -0
  26. package/dist/DecisionMakerDetailsPage-Xwe1qYtH.js +104 -0
  27. package/dist/DecisionMakers-CJDodZSl.js +858 -0
  28. package/dist/Dropzone-kpihpy7N.js +224 -0
  29. package/dist/EmbeddedStatus-BJjPDUeS.js +97 -0
  30. package/dist/EndStateLayout-Cx1NUGVq.js +71 -0
  31. package/dist/EntityAssociation-BtQeHZOq.js +178 -0
  32. package/dist/EntityGuidanceStatus-DyMVy3R4.js +106 -0
  33. package/dist/ErrorPanel-CAALFKmE.js +194 -0
  34. package/dist/Field-Bs7wGDqk.js +141 -0
  35. package/dist/FormNavigation-BtSvWPRY.js +144 -0
  36. package/dist/FormWrapper-B3N3YosC.js +135 -0
  37. package/dist/Header-vslG1ugE.js +83 -0
  38. package/dist/Image-CAucF9wz.js +27 -0
  39. package/dist/Individual.rules-CP2tzjmO.js +383 -0
  40. package/dist/IndividualDropin-xfXkDkrM.js +5168 -0
  41. package/dist/InputDate-CLxqciJA.js +43 -0
  42. package/dist/InputGroup-WBfGDV5F.js +32 -0
  43. package/dist/InputText-BdCbTzL9.js +134 -0
  44. package/dist/Introduction-BRWdnVv5.js +256 -0
  45. package/dist/JpAddress-BSEenMj0.js +329 -0
  46. package/dist/LandingLayout-kl7TkBGx.js +60 -0
  47. package/dist/LegalCompanyNameField-DzAxAnD9.js +138 -0
  48. package/dist/LegalRepresentativeDetailsPage--yY_D66i.js +55 -0
  49. package/dist/Link-CXYU8cLY.js +35 -0
  50. package/dist/List-BAzyC6sw.js +83 -0
  51. package/dist/ListItem-HD5_HiQ2.js +69 -0
  52. package/dist/LoaderWrapper-C2PvjjQc.js +42 -0
  53. package/dist/ManageIndividualComponent-BGaAbJjj.js +46 -0
  54. package/dist/ManageTermsOfServiceComponent-DFjaajE4.js +52 -0
  55. package/dist/ManageTransferInstrumentComponent-Dndkwh_d.js +292 -0
  56. package/dist/MaskedInput-BSW18fxr.js +811 -0
  57. package/dist/MaybeModal-xIjl3I31.js +36 -0
  58. package/dist/Modal-CZ-HuGUO.js +147 -0
  59. package/dist/Name-D6EhveoK.js +81 -0
  60. package/dist/OnboardingDropinComponent-CHtcVTHh.js +2672 -0
  61. package/dist/PayoutDetailsDropin-C2pNMAZS.js +4978 -0
  62. package/dist/Radio-BMtxBpnn.js +39 -0
  63. package/dist/RadioGroup-CxcIXYzs.js +100 -0
  64. package/dist/RadioGroupCard-Y214QWmQ.js +152 -0
  65. package/dist/Review-B2NCN4h_.js +84 -0
  66. package/dist/RootBusinessDetailsPage-hr5fLCIH.js +50 -0
  67. package/dist/RootBusinessLinesPage-DSna9haW.js +1553 -0
  68. package/dist/RootIndividualDetailsPage-BItguz9n.js +62 -0
  69. package/dist/Select-DaCJsYNl.js +868 -0
  70. package/dist/SignPCIComponent-C2YjBxQM.js +307 -0
  71. package/dist/SingpassSelection-B3ozCH9I.js +132 -0
  72. package/dist/SoleProprietorshipPage-DIzzhgjr.js +50 -0
  73. package/dist/SourceOfFundsPage-C3kXyE7G.js +2162 -0
  74. package/dist/Spacer-BK3jDget.js +18 -0
  75. package/dist/StepProgressIndicator-BSGlNU3K.js +78 -0
  76. package/dist/StoreProvider-99-ewU62.js +4793 -0
  77. package/dist/StructuredList-CVMZBzwq.js +61 -0
  78. package/dist/Summary-D0GcSMNn.js +220 -0
  79. package/dist/TaskVerificationStatus-DZIw2ztV.js +129 -0
  80. package/dist/TaxInformationField-BxQvx1zK.js +3741 -0
  81. package/dist/TaxReportingDropin-BqvAQH2c.js +503 -0
  82. package/dist/TextArea-BjsWgkR-.js +103 -0
  83. package/dist/TileGroup-C-5-VREz.js +203 -0
  84. package/dist/TrustDetailsPage-YROGiuFJ.js +2172 -0
  85. package/dist/TrustMemberCompanyPage-Z2EuqPEI.js +68 -0
  86. package/dist/TrustMemberIndividualPage-DmNp3D89.js +64 -0
  87. package/dist/TrustMemberRoleAndTypePage-BEOtdItr.js +1087 -0
  88. package/dist/TrustMembersOverview-GybHMIEU.js +439 -0
  89. package/dist/UnincorporatedPartnershipIndividualPage-BCYxSTlv.js +63 -0
  90. package/dist/UnincorporatedPartnershipMemberCompanyPage-Buez4OHl.js +71 -0
  91. package/dist/UnincorporatedPartnershipMemberRoleAndTypePage-Cfpe0BuU.js +292 -0
  92. package/dist/UnincorporatedPartnershipMembersOverview-B3Vi088r.js +173 -0
  93. package/dist/VerificationErrorAlert-C6_ewC7c.js +60 -0
  94. package/dist/ViewVerificationStatusComponent-DpA4jlct.js +181 -0
  95. package/dist/accountHolderUtils-Btu9mMnM.js +66 -0
  96. package/dist/adyen-business-financing.js +8 -4
  97. package/dist/adyen-individual-configuration.js +8 -4
  98. package/dist/adyen-individual-status.js +5 -4
  99. package/dist/adyen-invited-decision-maker.js +87 -0
  100. package/dist/adyen-kyc-components.js +23 -21
  101. package/dist/adyen-onboarding.js +8 -4
  102. package/dist/adyen-terms-of-service-management.js +8 -4
  103. package/dist/adyen-terms-of-service-status.js +5 -4
  104. package/dist/adyen-transfer-instrument-configuration.js +8 -4
  105. package/dist/adyen-transfer-instrument-management.js +5 -4
  106. package/dist/adyen-verification-status.js +8 -4
  107. package/dist/arrow-right-BoqwUH_d.js +14 -0
  108. package/dist/bafinUtils-CIGv_BK8.js +80 -0
  109. package/dist/bag-BXVWLrwo.js +14 -0
  110. package/dist/bank-1GvaHPAZ.js +14 -0
  111. package/dist/bin-Ba-3ll8T.js +18 -0
  112. package/dist/business-lines-BAqTbnBw.js +135 -0
  113. package/dist/capital-9TKHySO7.js +17 -0
  114. package/dist/cash-stack-DwYu4xNy.js +22 -0
  115. package/dist/certificate-N2YFedpI.js +17 -0
  116. package/dist/checkmark-D9dGhGpG.js +14 -0
  117. package/dist/checkmark-circle-CFWClLQ6.js +20 -0
  118. package/dist/checkmark-circle-fill-DEB-tuGl.js +17 -0
  119. package/dist/checkmark-small-D3VNx2lo.js +14 -0
  120. package/dist/chevron-down-C7SUSYfl.js +14 -0
  121. package/dist/chevron-left-BXmd-S46.js +14 -0
  122. package/dist/chevron-right-jE6RwM2B.js +14 -0
  123. package/dist/chevron-up-BdfNcqzq.js +14 -0
  124. package/dist/circle-BJPTMCWB.js +17 -0
  125. package/dist/circle-small-filled-BuO8Vg8j.js +14 -0
  126. package/dist/clock-DAzaBRWk.js +20 -0
  127. package/dist/coins-DYdzG5e_.js +17 -0
  128. package/dist/commonValidators-DTt6he7v.js +24 -0
  129. package/dist/company-types-value-D_mKv5PT.js +23 -0
  130. package/dist/contract-BfJb1t6M.js +14 -0
  131. package/dist/cross-CDS_eot4.js +14 -0
  132. package/dist/cross-circle-fill-C-EJ57Yn.js +17 -0
  133. package/dist/cross-circle-fill-small-DkPjsuBH.js +14 -0
  134. package/dist/currency-CrdnaaDu.js +35 -0
  135. package/dist/da-DK-B3Pg-MWO.js +13 -0
  136. package/dist/da-DK-CGWvmdkq.js +38 -0
  137. package/dist/da-DK-Cd5IQPv3.js +75 -0
  138. package/dist/da-DK-DQ4ZYSea.js +65 -0
  139. package/dist/da-DK-DzcTI92X.js +13 -0
  140. package/dist/da-DK-vcVNQJbX.js +63 -0
  141. package/dist/datasetUtil-BHQp0-xL.js +58 -0
  142. package/dist/de-DE-C9NH2zMh.js +75 -0
  143. package/dist/de-DE-CWEW2yqg.js +63 -0
  144. package/dist/de-DE-CkbOZ6S_.js +65 -0
  145. package/dist/de-DE-DHDJhahG.js +38 -0
  146. package/dist/de-DE-S6qDey1L.js +13 -0
  147. package/dist/de-DE-dPfrbCii.js +13 -0
  148. package/dist/debouncedInputEvent-Cv2S512Y.js +46 -0
  149. package/dist/decision-makers-group-DrvpnEqj.js +1944 -0
  150. package/dist/digital-wallet-Bx5YM1LY.js +46 -0
  151. package/dist/document-1-qlSTF558.js +14 -0
  152. package/dist/document-blurred-BiWap0xs.js +37 -0
  153. package/dist/document-cut-off-aQezqOif.js +32 -0
  154. package/dist/document-expired-BhBXaWWQ.js +38 -0
  155. package/dist/document-front-DYuhZGeQ.js +30 -0
  156. package/dist/document-person-CDbnTOdV.js +20 -0
  157. package/dist/download-BZQB1WkZ.js +17 -0
  158. package/dist/dropinUtils--st1YpV6.js +200 -0
  159. package/dist/edit-1-DAqtnOIx.js +14 -0
  160. package/dist/en-US-BSQXKu6d.js +54 -0
  161. package/dist/en-US-CjjPhkB5.js +65 -0
  162. package/dist/en-US-D1sB335h.js +61 -0
  163. package/dist/en-US-DLY20x1O.js +13 -0
  164. package/dist/en-US-DYP6rAvA.js +75 -0
  165. package/dist/en-US-DoiQhi0j.js +38 -0
  166. package/dist/en-US-cVpRgdC8.js +13 -0
  167. package/dist/es-ES--IvNed_Q.js +13 -0
  168. package/dist/es-ES-BAolMrZ0.js +65 -0
  169. package/dist/es-ES-BYl5-PFR.js +13 -0
  170. package/dist/es-ES-CDgjGql5.js +63 -0
  171. package/dist/es-ES-CxnsKEh4.js +38 -0
  172. package/dist/es-ES-DK-7qtDf.js +75 -0
  173. package/dist/external-link-Cg6pJaSJ.js +14 -0
  174. package/dist/fi-FI-57-xkioo.js +38 -0
  175. package/dist/fi-FI-BJLU1JHw.js +75 -0
  176. package/dist/fi-FI-BUixKfXH.js +13 -0
  177. package/dist/fi-FI-CsZlDJFb.js +63 -0
  178. package/dist/fi-FI-D8WrLxxq.js +65 -0
  179. package/dist/fi-FI-DFxljML-.js +13 -0
  180. package/dist/fieldConfigurations-BUT9DTUH.js +21 -0
  181. package/dist/filterProblemsByTaskForms-Cz7iQtms.js +30 -0
  182. package/dist/form-rules-DhbF2mY4.js +13 -0
  183. package/dist/formUtils-C_sWWLS3.js +107 -0
  184. package/dist/fr-FR-B2je0smB.js +75 -0
  185. package/dist/fr-FR-BM-qNLci.js +13 -0
  186. package/dist/fr-FR-Beljeilc.js +65 -0
  187. package/dist/fr-FR-BxiX8Zfi.js +38 -0
  188. package/dist/fr-FR-DPehHVb6.js +13 -0
  189. package/dist/fr-FR-VoxPkXSc.js +63 -0
  190. package/dist/funds-in-CInoUdmG.js +21 -0
  191. package/dist/getName-CnZDw7kV.js +41 -0
  192. package/dist/getProblemsForEntity-D8qEVVOM.js +24 -0
  193. package/dist/getProps-Cc3J2-z9.js +148 -0
  194. package/dist/getTrustedFields-C5-mXl-l.js +64 -0
  195. package/dist/gift-omNInZeB.js +14 -0
  196. package/dist/graph-DunG_uu1.js +21 -0
  197. package/dist/graph-up-BZze4i6m.js +20 -0
  198. package/dist/headquarter-BhpSibFO.js +21 -0
  199. package/dist/hotel-Cp7VgGCJ.js +22 -0
  200. package/dist/house-BhyBQdR3.js +21 -0
  201. package/dist/id-blurred-B5lHEP8M.js +59 -0
  202. package/dist/id-cut-off-Ba1FRzKO.js +55 -0
  203. package/dist/id-front-CpNWN6nG.js +52 -0
  204. package/dist/id-glare-DgCQON8k.js +49 -0
  205. package/dist/iframeWidget-DqeucjDU.js +234 -0
  206. package/dist/image-CmB0ioUM.js +17 -0
  207. package/dist/info-Bb_-xIEK.js +21 -0
  208. package/dist/info-filled-CK8LB339.js +17 -0
  209. package/dist/instant-verification-UrnuHTYn.js +40 -0
  210. package/dist/isEmpty-CUuXL9Na.js +23 -0
  211. package/dist/isNewEntity-7Vw_eQBr.js +13 -0
  212. package/dist/it-IT-5a7NHVFo.js +65 -0
  213. package/dist/it-IT-D63gRTDc.js +13 -0
  214. package/dist/it-IT-DOBp2-MP.js +13 -0
  215. package/dist/it-IT-DZjw9LNC.js +63 -0
  216. package/dist/it-IT-Dhwa9Ecj.js +75 -0
  217. package/dist/it-IT-masgjk9F.js +38 -0
  218. package/dist/ja-JP-B3wVYIJU.js +151 -0
  219. package/dist/ja-JP-Bc4U0S8-.js +75 -0
  220. package/dist/ja-JP-BoxeBgOv.js +32 -0
  221. package/dist/ja-JP-BqluCflj.js +63 -0
  222. package/dist/ja-JP-Bv3ru9Xq.js +125 -0
  223. package/dist/ja-JP-CbgaW99b.js +54 -0
  224. package/dist/ja-JP-CceCDXLB.js +55 -0
  225. package/dist/ja-JP-CvNJvxkQ.js +218 -0
  226. package/dist/ja-JP-DL0IjTzn.js +13 -0
  227. package/dist/ja-JP-DSvZhFNY.js +65 -0
  228. package/dist/ja-JP-FWHXsXlW.js +24 -0
  229. package/dist/ja-JP-bz7ekGnF.js +27 -0
  230. package/dist/ja-JP-g6VOUGXZ.js +136 -0
  231. package/dist/ja-JP-vv3-YsHU.js +38 -0
  232. package/dist/japanSupportUtils-CGWcXGP2.js +16 -0
  233. package/dist/jpAddressSchema-DEOyz9Yo.js +26 -0
  234. package/dist/localizeDateString-D6tFShQu.js +27 -0
  235. package/dist/location-itJfxrDQ.js +17 -0
  236. package/dist/mail-VHTlAusn.js +14 -0
  237. package/dist/manual-verification-BO8zgAYT.js +41 -0
  238. package/dist/mapExistingFile-BM9f5AeG.js +230 -0
  239. package/dist/mapJpAddressSchemaToAddressLocalizations-Cu4hdrYE.js +162 -0
  240. package/dist/mapLegalEntityToIndividualSchema-DVKTWyvx.js +206 -0
  241. package/dist/mapTransferInstrumentToPayoutAccount--gtugk3J.js +34 -0
  242. package/dist/minus-circle-filled-ZhtJ0GD3.js +17 -0
  243. package/dist/nl-NL-B0fvINJj.js +75 -0
  244. package/dist/nl-NL-CmURERx_.js +65 -0
  245. package/dist/nl-NL-D1b5RUJ0.js +38 -0
  246. package/dist/nl-NL-KQ6bciOb.js +13 -0
  247. package/dist/nl-NL-SjOGmGk5.js +13 -0
  248. package/dist/nl-NL-lcNM54vV.js +63 -0
  249. package/dist/no-NO-BAWVf0GX.js +13 -0
  250. package/dist/no-NO-CTrVITNu.js +63 -0
  251. package/dist/no-NO-Dkh4SWbB.js +38 -0
  252. package/dist/no-NO-Ds3VioxT.js +13 -0
  253. package/dist/no-NO-Jw7Gae-a.js +75 -0
  254. package/dist/no-NO-qyqWODMp.js +65 -0
  255. package/dist/onfido-logo-BSkKPH10.js +14 -0
  256. package/dist/options-horizontal-GuXvLvV3.js +18 -0
  257. package/dist/partner-QD27Vy4w.js +18 -0
  258. package/dist/passport-blurred-CVG493IJ.js +59 -0
  259. package/dist/passport-cut-off-COzA_TmB.js +56 -0
  260. package/dist/passport-front-WJleLixT.js +52 -0
  261. package/dist/passport-front-green-CZVkCa1n.js +232 -0
  262. package/dist/passport-glare-BP5WnJZj.js +50 -0
  263. package/dist/patternValidators-vYKnE5-t.js +83 -0
  264. package/dist/pay-by-link-plane-BpY8Q6-B.js +22 -0
  265. package/dist/payout-DtB68BcZ.js +20 -0
  266. package/dist/payout-verification-instant-BzpfOQLD.js +41 -0
  267. package/dist/payout-verification-manual-gNEoeZkV.js +90 -0
  268. package/dist/person-IVZG3t3_.js +17 -0
  269. package/dist/plaid-logo-FsZ7kfL-.js +14 -0
  270. package/dist/plus-DiALAL8-.js +14 -0
  271. package/dist/plus-circle-filled-BzHtTqEN.js +17 -0
  272. package/dist/process-field-configurations-Dl2Isz78.js +324 -0
  273. package/dist/pt-BR-BRdIEO2O.js +38 -0
  274. package/dist/pt-BR-BaTE6BB_.js +75 -0
  275. package/dist/pt-BR-BfDe_8iW.js +13 -0
  276. package/dist/pt-BR-BxoOF8jB.js +65 -0
  277. package/dist/pt-BR-Ct4s4jXV.js +13 -0
  278. package/dist/pt-BR-DA44Wgbt.js +63 -0
  279. package/dist/recurring-DKNs9K3x.js +17 -0
  280. package/dist/reporting-D5ABpLO_.js +16 -0
  281. package/dist/resolveEnvironment-B_JokQ0n.js +84 -0
  282. package/dist/revenue-accelerate-D7Sp0V4a.js +17 -0
  283. package/dist/review-D4TUjcWF.js +17 -0
  284. package/dist/roleMetadata-eM6T7GeQ.js +66 -0
  285. package/dist/save-BfqO2JBI.js +14 -0
  286. package/dist/search-Cmzbf5zI.js +17 -0
  287. package/dist/show-IdbU1C6P.js +17 -0
  288. package/dist/singpass-logo-wY4xsmTX.js +17 -0
  289. package/dist/singpass-verification-instant-JCqTr7Mv.js +40 -0
  290. package/dist/singpass-verification-manual-DQ7XW6R3.js +34 -0
  291. package/dist/sl-SI-BAIm-qBe.js +13 -0
  292. package/dist/sl-SI-BZpXMHiG.js +13 -0
  293. package/dist/sl-SI-CvUzNn9Z.js +38 -0
  294. package/dist/sl-SI-D8dDckrW.js +55 -0
  295. package/dist/sl-SI-DEaeEVKB.js +24 -0
  296. package/dist/sl-SI-DTvJT7fC.js +65 -0
  297. package/dist/sl-SI-DZHePXbK.js +63 -0
  298. package/dist/sl-SI-DbfswGh0.js +75 -0
  299. package/dist/sl-SI-DqUEy_Cm.js +32 -0
  300. package/dist/sl-SI-hxwQIw_i.js +13 -0
  301. package/dist/solution-payments-DpyE_sdS.js +14 -0
  302. package/dist/store-Btc4GcmU.js +14 -0
  303. package/dist/style.css +2642 -2946
  304. package/dist/styles-CLV89_hH.js +2642 -2946
  305. package/dist/summaryItem-CAQCQSkt.js +18 -0
  306. package/dist/sv-SE-0PQ-U1u6.js +13 -0
  307. package/dist/sv-SE-BZNey_8S.js +13 -0
  308. package/dist/sv-SE-BsLkPEzn.js +38 -0
  309. package/dist/sv-SE-D_Efxy3s.js +75 -0
  310. package/dist/sv-SE-Dq56vGlB.js +63 -0
  311. package/dist/sv-SE-N-Hqwcjq.js +65 -0
  312. package/dist/tax-reporting-graph-hgoilCHZ.js +504 -0
  313. package/dist/terminal-1-D1pwXCoi.js +18 -0
  314. package/dist/tink-logo-DDyjz5eJ.js +17 -0
  315. package/dist/types/api/address/useAddressCleanse.d.ts +1 -1
  316. package/dist/types/api/address/useRetrieveAddress.d.ts +1 -1
  317. package/dist/types/api/address/useRetrieveFromPostcodeJp.d.ts +1 -1
  318. package/dist/types/api/address/useSearchAddress.d.ts +1 -2
  319. package/dist/types/api/businessLines/useBusinessLines.d.ts +3 -3
  320. package/dist/types/api/businessLines/useCreateBusinessLine.d.ts +2 -2
  321. package/dist/types/api/businessLines/useDeleteBusinessLine.d.ts +2 -2
  322. package/dist/types/api/businessLines/useUpdateBusinessLines.d.ts +2 -2
  323. package/dist/types/api/businessLines/useUpdateSourceOfFunds.d.ts +2 -2
  324. package/dist/types/api/check/useCheck.d.ts +1 -2
  325. package/dist/types/api/companyDataSet/useClearCompanyData.d.ts +2 -2
  326. package/dist/types/api/companySearch/useCompanySearch.d.ts +1 -2
  327. package/dist/types/api/companySelection/useCompanySelection.d.ts +1 -1
  328. package/dist/types/api/configurations/useScenarios.d.ts +3 -161
  329. package/dist/types/api/configurations/useSupportedCountries.d.ts +1 -1
  330. package/dist/types/api/configurations/useTaskTypes.d.ts +1 -1
  331. package/dist/types/api/configurations/useVersionConfiguration.d.ts +1 -1
  332. package/dist/types/api/createLegalEntity/useCreateLegalEntity.d.ts +2 -2
  333. package/dist/types/api/datasets/useLegalForms.d.ts +1 -1
  334. package/dist/types/api/datasets/useNaceCodes.d.ts +1 -1
  335. package/dist/types/api/datasets/useSourceOfFundsTypes.d.ts +1 -1
  336. package/dist/types/api/documentValidation/useDocumentValidate.d.ts +2 -4
  337. package/dist/types/api/documents/useCreateDocument.d.ts +2 -2
  338. package/dist/types/api/documents/useDeleteDocument.d.ts +2 -2
  339. package/dist/types/api/documents/useDocument.d.ts +2 -2
  340. package/dist/types/api/documents/useDocuments.d.ts +4 -0
  341. package/dist/types/api/documents/useUpdateDocument.d.ts +2 -2
  342. package/dist/types/api/entityVerifications/useVerifyIdNumber.d.ts +2 -2
  343. package/dist/types/api/idNowProvider/useIdNowProvider.d.ts +3 -4
  344. package/dist/types/api/idVerificationProviders/idVerificationStartCheck.d.ts +2 -2
  345. package/dist/types/api/idVerificationProviders/useExtractDocumentInformation.d.ts +2 -2
  346. package/dist/types/api/idVerificationProviders/useIdVerificationToken.d.ts +3 -3
  347. package/dist/types/api/industryCodes/useIndustryCodes.d.ts +1 -2
  348. package/dist/types/api/legalEntity/useConfirmReview.d.ts +2 -2
  349. package/dist/types/api/legalEntity/useLegalEntity.d.ts +8 -389
  350. package/dist/types/api/legalEntity/useUpdateLegalEntity.d.ts +2 -2
  351. package/dist/types/api/onboardingStatus/useGenerateOnboardingLink.d.ts +2 -2
  352. package/dist/types/api/onboardingStatus/useOnboardingStatus.d.ts +1 -1
  353. package/dist/types/api/openId/useOpenIdAuthorizationLink.d.ts +1 -2
  354. package/dist/types/api/pci/usePciQuestionnaireList.d.ts +1 -1
  355. package/dist/types/api/pci/usePciStatus.d.ts +1 -1
  356. package/dist/types/api/pci/usePciTemplate.d.ts +1 -1
  357. package/dist/types/api/pci/useSignPci.d.ts +2 -3
  358. package/dist/types/api/providersConfiguration/useProviderStatus.d.ts +1 -1
  359. package/dist/types/api/queryKeys.d.ts +4 -2
  360. package/dist/types/api/taskStatus/useTaskStatus.d.ts +2 -2
  361. package/dist/types/api/taxClassification/useTaxClassification.d.ts +1 -1
  362. package/dist/types/api/termsOfService/useAcceptTermsOfService.d.ts +2 -3
  363. package/dist/types/api/termsOfService/useAcceptedTermsOfService.d.ts +1 -7
  364. package/dist/types/api/termsOfService/useTermsOfService.d.ts +1 -1
  365. package/dist/types/api/termsOfService/useTermsOfServiceAcceptanceInfos.d.ts +1 -1
  366. package/dist/types/api/termsOfService/useTermsOfServiceStatus.d.ts +1 -1
  367. package/dist/types/api/tinVerification/useVerifyTin.d.ts +1 -1
  368. package/dist/types/api/transferInstruments/useBankVerificationProviders.d.ts +1 -1
  369. package/dist/types/api/transferInstruments/useCreateTrustedTransferInstrument.d.ts +1 -1
  370. package/dist/types/api/transferInstruments/useDeleteTransferInstrument.d.ts +1 -1
  371. package/dist/types/api/transferInstruments/useHandleBankVerificationError.d.ts +1 -1
  372. package/dist/types/api/transferInstruments/useTransferInstrument.d.ts +2 -2
  373. package/dist/types/api/transferInstruments/useTransferInstruments.d.ts +1 -1
  374. package/dist/types/api/transferInstruments/useUpdateTransferInstrument.d.ts +1 -1
  375. package/dist/types/api/transferInstruments/useUpdateTrustedTransferInstrument.d.ts +15 -0
  376. package/dist/types/api/types.d.ts +3 -2
  377. package/dist/types/api/uiAnalytics/useAnalyticsSession.d.ts +2 -2
  378. package/dist/types/api/uiAnalytics/usePushAnalyticEvent.d.ts +2 -2
  379. package/dist/types/api/validation/useValidateAccountIdentification.d.ts +2 -3
  380. package/dist/types/api/validation/useValidatePhoneNumber.d.ts +1 -1
  381. package/dist/types/components/Apps/tasks/TaskList/utils.d.ts +4 -0
  382. package/dist/types/components/BankAccount/forms/BankDocument/BankDocumentClassification.d.ts +1 -2
  383. package/dist/types/components/BankAccount/forms/BankDocument/types.d.ts +0 -1
  384. package/dist/types/components/BankAccount/forms/BankVerification/types.d.ts +1 -0
  385. package/dist/types/components/BankAccount/forms/BankVerification/verification/overlay/BankVerificationOverlay.d.ts +1 -1
  386. package/dist/types/components/BankAccount/forms/PayoutDetails/rules.d.ts +1 -1
  387. package/dist/types/components/BankAccount/forms/PayoutDetails/types.d.ts +0 -1
  388. package/dist/types/components/BankAccount/mapping/payoutKeyMappings.d.ts +439 -439
  389. package/dist/types/components/BankAccount/pages/PayoutDetailsPage.d.ts +3 -3
  390. package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/PayoutDetailsDropin.d.ts +1 -1
  391. package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/utils.d.ts +1 -1
  392. package/dist/types/components/BankAccount/utils/payoutAccountUtil.d.ts +1 -1
  393. package/dist/types/components/Business/forms/AdditionalInformation/AdditionalInformation.d.ts +0 -2
  394. package/dist/types/components/Business/forms/AdditionalInformation/utils.d.ts +0 -3
  395. package/dist/types/components/Business/forms/BusinessDetails/form-ids.d.ts +2 -0
  396. package/dist/types/components/Business/forms/BusinessDetails/forms.d.ts +12 -11
  397. package/dist/types/components/Business/forms/BusinessDetails/types.d.ts +2 -1
  398. package/dist/types/components/Business/forms/BusinessSelection/BusinessInformationCard/BusinessInformationCard.d.ts +4 -4
  399. package/dist/types/components/Business/forms/CompanyStructure/CompanyStructure.d.ts +0 -1
  400. package/dist/types/components/Business/forms/FinancialInformation/formatFinancialInformationSummary.d.ts +4 -0
  401. package/dist/types/components/Business/forms/FinancialInformation/mapping/mapFinancialInformationToFinancialReport.d.ts +3 -0
  402. package/dist/types/components/Business/forms/FinancialInformation/mapping/mapFinancialReportsToFinancialInformation.d.ts +3 -0
  403. package/dist/types/components/Business/forms/rules.d.ts +10 -10
  404. package/dist/types/components/Business/mapping/businessDetails/businessBankAccountTaxIdUtils.d.ts +7 -0
  405. package/dist/types/components/Business/mapping/businessDetails/mapBusinessDetailsSchemaToLegalEntity.d.ts +4 -2
  406. package/dist/types/components/Business/mapping/businessDetails/mapLegalEntityToBusinessDetailsSchema.d.ts +8 -1
  407. package/dist/types/components/Business/pages/RootBusinessDetailsPage.d.ts +1 -2
  408. package/dist/types/components/Business/tasks/BusinessDetailsDropin/BusinessDetailsDropin.d.ts +1 -1
  409. package/dist/types/components/Business/tasks/BusinessDetailsDropin/businessDetailsStore.d.ts +0 -2
  410. package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +7 -2
  411. package/dist/types/components/Business/tasks/BusinessDetailsDropin/utils.d.ts +3 -4
  412. package/dist/types/components/Business/utils/companyUtil.d.ts +0 -10
  413. package/dist/types/components/Business/utils/useBusinessDetailsData.d.ts +21 -0
  414. package/dist/types/components/BusinessLines/constants.d.ts +2 -0
  415. package/dist/types/components/BusinessLines/fields/Carousel/Carousel.d.ts +10 -10
  416. package/dist/types/components/BusinessLines/fields/SctaField/types.d.ts +1 -1
  417. package/dist/types/components/BusinessLines/fields/WebDataField/types.d.ts +1 -1
  418. package/dist/types/components/BusinessLines/pages/RootBusinessLinesPage.d.ts +1 -2
  419. package/dist/types/components/BusinessLines/tasks/BusinessLines/BusinessLineModal/BusinessLineModal.d.ts +2 -1
  420. package/dist/types/components/BusinessLines/tasks/BusinessLines/BusinessLinesDropin.d.ts +1 -1
  421. package/dist/types/components/BusinessLines/tasks/types.d.ts +2 -0
  422. package/dist/types/components/BusinessLines/tasks/utils.d.ts +10 -7
  423. package/dist/types/components/Contract/tasks/ServiceAgreementDropin/types.d.ts +1 -1
  424. package/dist/types/components/EFP/fields/LegalFormField/LegalFormField.d.ts +1 -1
  425. package/dist/types/components/EFP/fields/NaceCodeField/NaceCodeField.d.ts +1 -1
  426. package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +5771 -541
  427. package/dist/types/components/EFP/mapping/mapBusinessFinancingToLegalEntity.d.ts +3 -2
  428. package/dist/types/components/EFP/mapping/mapLegalEntityToBusinessFinancing.d.ts +1 -1
  429. package/dist/types/components/EFP/pages/BusinessFinancingPage.d.ts +1 -2
  430. package/dist/types/components/EFP/pages/SourceOfFundsPage.d.ts +1 -2
  431. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/AdditionalFieldsForBusinessFinancingSoleProprietor.d.ts +2 -0
  432. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingSoleProprietorPersonalInformation.d.ts +4 -0
  433. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/types.d.ts +28 -0
  434. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/utils.d.ts +14 -3
  435. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/validate.d.ts +10 -1
  436. package/dist/types/components/EFP/tasks/SourceOfFundsDropin/types.d.ts +20 -21
  437. package/dist/types/components/EFP/tasks/SourceOfFundsDropin/utils.d.ts +6 -4
  438. package/dist/types/components/EFP/tasks/TaxReportingDropin/utils.d.ts +1 -2
  439. package/dist/types/components/EmbeddedDropins/BusinessFinancingComponent/utils.d.ts +2 -1
  440. package/dist/types/components/EmbeddedDropins/CreateIndividualComponent/CreateIndividualComponent.d.ts +2 -2
  441. package/dist/types/components/EmbeddedDropins/InvitedDecisionMakerComponent/InvitedDecisionMakerComponent.d.ts +4 -0
  442. package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/DropinComposer.d.ts +1 -1
  443. package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/RouterDropinComposer.d.ts +4 -0
  444. package/dist/types/components/Individual/fields/DriversLicense/DriversLicense.types.d.ts +1 -1
  445. package/dist/types/components/Individual/fields/IdentityNumber/fieldConfig.d.ts +4 -3
  446. package/dist/types/components/Individual/forms/AdditionalPersonalDetails/AdditionalPersonalDetails.types.d.ts +29 -0
  447. package/dist/types/components/Individual/forms/AdditionalPersonalDetails/Identity/Identity.types.d.ts +13 -0
  448. package/dist/types/components/Individual/forms/AdditionalPersonalDetails/Identity/TypeOfIdentity/index.d.ts +11 -0
  449. package/dist/types/components/Individual/forms/AdditionalPersonalDetails/Identity/validate.d.ts +4 -0
  450. package/dist/types/components/Individual/forms/AdditionalPersonalDetails/validate.d.ts +22 -0
  451. package/dist/types/components/Individual/forms/BasicDetails/BasicDetails.types.d.ts +22 -0
  452. package/dist/types/components/Individual/forms/BasicDetails/validate.d.ts +8 -0
  453. package/dist/types/components/Individual/forms/DataConflictsModal/ConflictRow.d.ts +12 -0
  454. package/dist/types/components/Individual/forms/DataConflictsModal/DataConflictsModal.d.ts +24 -0
  455. package/dist/types/components/Individual/forms/IdDocumentUpload/types.d.ts +43 -0
  456. package/dist/types/components/Individual/forms/IdDocumentUpload/utils.d.ts +3 -0
  457. package/dist/types/components/Individual/forms/IdNowVerificationModal/isIdNowModalOpen.d.ts +18 -0
  458. package/dist/types/components/Individual/forms/IdVerificationMethod/IdVerificationMethod.types.d.ts +21 -0
  459. package/dist/types/components/Individual/forms/IdVerificationMethod/OnfidoVerificationModal/OnfidoVerificationModal.d.ts +7 -0
  460. package/dist/types/components/Individual/forms/IdVerificationMethod/UploadedDocument/UploadedDocument.d.ts +7 -0
  461. package/dist/types/components/Individual/forms/IdVerificationMethod/individualOnfidoConflictsSchema.d.ts +46 -0
  462. package/dist/types/components/Individual/forms/IdVerificationMethod/mapExtractionResultToSchema.d.ts +4 -0
  463. package/dist/types/components/Individual/forms/IdVerificationMethod/validateExtractionResult.d.ts +12 -0
  464. package/dist/types/components/Individual/forms/Individual.d.ts +56 -0
  465. package/dist/types/components/Individual/forms/Individual.rules.d.ts +45 -0
  466. package/dist/types/components/Individual/forms/Individual.types.d.ts +60 -0
  467. package/dist/types/components/Individual/forms/ProofOfRelationship/types.d.ts +14 -0
  468. package/dist/types/components/Individual/forms/ProofOfResidency/types.d.ts +39 -0
  469. package/dist/types/components/Individual/forms/SignatoryQuestionnaire/SignatoryQuestionnaire.types.d.ts +6 -0
  470. package/dist/types/components/Individual/forms/UboQuestionnaire/UboQuestionnaire.types.d.ts +13 -0
  471. package/dist/types/components/Individual/forms/UboQuestionnaire/UboQuestionnaireModalContent.d.ts +7 -0
  472. package/dist/types/components/Individual/forms/form-ids.d.ts +2 -0
  473. package/dist/types/components/Individual/helpers/bafinUtils.d.ts +3 -2
  474. package/dist/types/components/Individual/helpers/mandateIdVerificationForMotionCapture.d.ts +2 -3
  475. package/dist/types/components/Individual/helpers/roleUtils.d.ts +1 -1
  476. package/dist/types/components/Individual/mapping/adjustOnfidoIdentificationData.d.ts +1 -1
  477. package/dist/types/components/Individual/mapping/getOnfidoIdentityTypeToApiIdentityTypeMap.d.ts +1 -1
  478. package/dist/types/components/Individual/mapping/individualKeyMappings.d.ts +6 -12
  479. package/dist/types/components/Individual/mapping/mapApiDocumentToIndividualDocuments.d.ts +2 -2
  480. package/dist/types/components/Individual/mapping/mapIndividualDocumentToApiDocument.d.ts +2 -3
  481. package/dist/types/components/Individual/mapping/mapIndividualSchemaToLegalEntity.d.ts +5 -0
  482. package/dist/types/components/Individual/mapping/mapLegalEntityToIndividualSchema.d.ts +3 -0
  483. package/dist/types/components/Individual/pages/DecisionMakerDetailsPage.d.ts +6 -7
  484. package/dist/types/components/Individual/pages/LegalRepresentativeDetailsPage.d.ts +2 -2
  485. package/dist/types/components/Individual/pages/RootIndividualDetailsPage.d.ts +2 -2
  486. package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerDetails/utils.d.ts +2 -14
  487. package/dist/types/components/Individual/tasks/DecisionMakers/RemediationAlerts/remediation.config.d.ts +0 -2
  488. package/dist/types/components/Individual/tasks/DecisionMakers/types.d.ts +8 -0
  489. package/dist/types/components/Individual/tasks/DecisionMakers/utils.d.ts +1 -1
  490. package/dist/types/components/Individual/tasks/IndividualDropin/IndividualDropin.d.ts +2 -2
  491. package/dist/types/components/Individual/tasks/IndividualDropin/individualFormConfig.d.ts +3 -3
  492. package/dist/types/components/Shared/EntityAssociation/EntityAssociation.d.ts +0 -1
  493. package/dist/types/components/Shared/FormFlow/FormFlow.d.ts +1 -1
  494. package/dist/types/components/Shared/FormFlow/FormFlow.types.d.ts +2 -0
  495. package/dist/types/components/Shared/Introduction/copy.d.ts +3 -3
  496. package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/BusinessRegistrationNumberField.d.ts +1 -1
  497. package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/fieldConfig.d.ts +10 -0
  498. package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/types.d.ts +2 -1
  499. package/dist/types/components/Shared/fields/CountryField/types.d.ts +2 -1
  500. package/dist/types/components/Shared/fields/CountryOfGoverningLawField/CountryOfGoverningLawField.d.ts +1 -1
  501. package/dist/types/components/Shared/fields/CountryOfGoverningLawField/types.d.ts +1 -1
  502. package/dist/types/components/Shared/fields/Currency/Currency.d.ts +1 -1
  503. package/dist/types/components/Shared/fields/Currency/types.d.ts +1 -1
  504. package/dist/types/components/Shared/fields/DBANameField/DBANameField.d.ts +1 -1
  505. package/dist/types/components/Shared/fields/DBANameField/types.d.ts +1 -1
  506. package/dist/types/components/Shared/fields/DateOfIncorporationField/DateOfIncorporationField.d.ts +1 -1
  507. package/dist/types/components/Shared/fields/DateOfIncorporationField/types.d.ts +3 -1
  508. package/dist/types/components/Shared/fields/EInvoicingCodeField/EInvoicingCodeField.d.ts +1 -1
  509. package/dist/types/components/Shared/fields/EInvoicingCodeField/types.d.ts +1 -1
  510. package/dist/types/components/Shared/fields/IdFieldTypeSelector/countryIdNumberTypes.d.ts +121 -1
  511. package/dist/types/components/Shared/fields/IndustryCodeField/IndustryCodeField.d.ts +1 -1
  512. package/dist/types/components/Shared/fields/IndustryCodeField/types.d.ts +1 -1
  513. package/dist/types/components/Shared/fields/LegalCompanyNameField/fieldConfig.d.ts +12 -6
  514. package/dist/types/components/Shared/fields/LegalCompanyNameField/types.d.ts +3 -1
  515. package/dist/types/components/Shared/fields/LocalizedNameFields/types.d.ts +9 -0
  516. package/dist/types/components/Shared/fields/LocalizedNameFields/validate.d.ts +5 -0
  517. package/dist/types/components/Shared/fields/NumberOfEmployees/NumberOfEmployees.d.ts +1 -1
  518. package/dist/types/components/Shared/fields/NumberOfEmployees/types.d.ts +1 -1
  519. package/dist/types/components/Shared/fields/PhoneField/PhoneField.d.ts +1 -1
  520. package/dist/types/components/Shared/fields/PhoneField/fieldConfig.d.ts +5 -0
  521. package/dist/types/components/Shared/fields/PhoneField/types.d.ts +2 -1
  522. package/dist/types/components/Shared/fields/StateField/StateField.d.ts +1 -1
  523. package/dist/types/components/Shared/fields/StateField/fieldConfig.d.ts +8 -0
  524. package/dist/types/components/Shared/fields/StateField/types.d.ts +1 -1
  525. package/dist/types/components/Shared/fields/StockExchangeMICField/StockExchangeMICField.d.ts +1 -1
  526. package/dist/types/components/Shared/fields/StockExchangeMICField/types.d.ts +1 -1
  527. package/dist/types/components/Shared/fields/StockISINField/StockISINField.d.ts +1 -1
  528. package/dist/types/components/Shared/fields/StockISINField/types.d.ts +1 -1
  529. package/dist/types/components/Shared/fields/StockTickerSymbol/StockTickerSymbolField.d.ts +1 -1
  530. package/dist/types/components/Shared/fields/StockTickerSymbol/types.d.ts +1 -1
  531. package/dist/types/components/Shared/fields/TaxInformationField/TaxInformationField.d.ts +1 -1
  532. package/dist/types/components/Shared/fields/TaxInformationField/fieldConfig.d.ts +6 -0
  533. package/dist/types/components/Shared/fields/TaxInformationField/types.d.ts +2 -1
  534. package/dist/types/components/Shared/fields/VatNumberField/VatNumberField.d.ts +1 -1
  535. package/dist/types/components/Shared/fields/VatNumberField/types.d.ts +1 -1
  536. package/dist/types/components/Shared/forms/Address/Address.d.ts +1 -1
  537. package/dist/types/components/Shared/forms/Address/localized/jp/jpAddressSchema.d.ts +3 -1
  538. package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
  539. package/dist/types/components/Shared/forms/BusinessTypeSelection/utils.d.ts +1 -1
  540. package/dist/types/components/Trust/forms/Trust/rules.d.ts +2 -2
  541. package/dist/types/components/Trust/hooks/useTrustMemberNavigation.hook.d.ts +1 -1
  542. package/dist/types/components/Trust/pages/TrustDetailsPage.d.ts +1 -2
  543. package/dist/types/components/Trust/pages/TrustMemberCompanyPage.d.ts +3 -3
  544. package/dist/types/components/Trust/pages/TrustMemberIndividualPage.d.ts +5 -5
  545. package/dist/types/components/Trust/pages/TrustMemberRoleAndTypePage.d.ts +2 -2
  546. package/dist/types/components/Trust/tasks/RoleAndTypeDropin/formatRoleAndEntityTypeSummary.d.ts +1 -1
  547. package/dist/types/components/Trust/tasks/TrustDropin/TrustMultiform.d.ts +2 -1
  548. package/dist/types/components/Trust/tasks/TrustMembers/TrustMembersOverview.d.ts +1 -2
  549. package/dist/types/components/UnincorporatedPartnership/hooks/useUnincorporatedPartnershipNavigation.d.ts +1 -1
  550. package/dist/types/components/UnincorporatedPartnership/pages/UnincorporatedPartnershipIndividualPage.d.ts +5 -5
  551. package/dist/types/components/UnincorporatedPartnership/pages/UnincorporatedPartnershipMemberCompanyPage.d.ts +3 -3
  552. package/dist/types/components/UnincorporatedPartnership/pages/UnincorporatedPartnershipMemberRoleAndTypePage.d.ts +1 -1
  553. package/dist/types/components/ui/atoms/Card/Card.d.ts +19 -0
  554. package/dist/types/components/ui/atoms/Loader/Loader.d.ts +11 -1
  555. package/dist/types/components/ui/atoms/MultiSelectList/MultiSelectList.d.ts +0 -1
  556. package/dist/types/components/ui/atoms/Svg/Svg.d.ts +0 -1
  557. package/dist/types/components/ui/atoms/Tile/Tile.d.ts +2 -1
  558. package/dist/types/components/ui/molecules/EmbeddedStatus/statusToTag.d.ts +2 -2
  559. package/dist/types/components/ui/molecules/ErrorPanel/ErrorPanel.d.ts +0 -1
  560. package/dist/types/context/ExperimentContext/types.d.ts +19 -42
  561. package/dist/types/context/QueryContext/QueryClient.d.ts +1 -1
  562. package/dist/types/context/StateContext/types.d.ts +2 -3
  563. package/dist/types/core/models/api/individual.d.ts +3 -0
  564. package/dist/types/core/models/api/instant-id-verification.d.ts +1 -1
  565. package/dist/types/core/models/api/legal-arrangement.d.ts +3 -0
  566. package/dist/types/core/models/api/legal-entity-association.d.ts +1 -1
  567. package/dist/types/core/process-field-configurations.d.ts +0 -5
  568. package/dist/types/core/services/types.d.ts +1 -1
  569. package/dist/types/core/user-events.d.ts +4 -2
  570. package/dist/types/embeds/baseEmbedProps.d.ts +0 -21
  571. package/dist/types/embeds/business-financing/adyen-business-financing.d.ts +2 -1
  572. package/dist/types/embeds/individual-configuration/adyen-individual-configuration.d.ts +5 -1
  573. package/dist/types/embeds/individual-configuration/adyen-individual-configuration.types.d.ts +2 -2
  574. package/dist/types/embeds/invited-decision-maker/adyen-invited-decision-maker.d.ts +5 -0
  575. package/dist/types/embeds/invited-decision-maker/adyen-invited-decision-maker.types.d.ts +34 -0
  576. package/dist/types/embeds/onboarding/adyen-onboarding.d.ts +2 -1
  577. package/dist/types/embeds/terms-of-service-management/adyen-terms-of-service-management.d.ts +5 -1
  578. package/dist/types/embeds/transfer-instrument-configuration/adyen-transfer-instrument-configuration.d.ts +2 -1
  579. package/dist/types/embeds/verification-status/adyen-verification-status.d.ts +2 -1
  580. package/dist/types/hooks/useAssociatedLegalEntity.d.ts +1 -1
  581. package/dist/types/hooks/useForm/types.d.ts +0 -8
  582. package/dist/types/hooks/useLegalCompanyNameField/useLegalCompanyNameField.d.ts +4 -2
  583. package/dist/types/hooks/usePageLandedEvent.d.ts +7 -0
  584. package/dist/types/hooks/useUboQuestionnaire.d.ts +2 -2
  585. package/dist/types/language/types.d.ts +7 -2
  586. package/dist/types/language/utils.d.ts +1 -2
  587. package/dist/types/router/DefaultRouteRedirect.d.ts +8 -0
  588. package/dist/types/router/MemoryRouterContext.d.ts +9 -0
  589. package/dist/types/router/OnboardingRouter.d.ts +39 -0
  590. package/dist/types/router/SuspenseRoute.d.ts +7 -0
  591. package/dist/types/router/getDefaultTask.d.ts +16 -0
  592. package/dist/types/router/routeConfig.d.ts +68 -0
  593. package/dist/types/router/useCurrentTask.d.ts +5 -0
  594. package/dist/types/router/useNavigate.d.ts +7 -0
  595. package/dist/types/stores/formState.d.ts +1 -1
  596. package/dist/types/stores/globalStore/taskStatus.d.ts +5 -3
  597. package/dist/types/types/assert.d.ts +1 -0
  598. package/dist/types/types/form-rules.d.ts +0 -1
  599. package/dist/types/utils/addLinkedFields.d.ts +0 -2
  600. package/dist/types/utils/analytics/debouncedInputEvent.d.ts +1 -0
  601. package/dist/types/utils/analytics/getPrefilledDetails.d.ts +28 -0
  602. package/dist/types/utils/api/documentUtils.d.ts +6 -0
  603. package/dist/types/utils/api/processCapabilitites.d.ts +14 -2
  604. package/dist/types/utils/birthDateUtils.d.ts +0 -17
  605. package/dist/types/utils/entityAssociationUtil.d.ts +3 -4
  606. package/dist/types/utils/entityStatusUtil.d.ts +1 -1
  607. package/dist/types/utils/fieldConfigurations.d.ts +0 -2
  608. package/dist/types/utils/formUtils.d.ts +1 -6
  609. package/dist/types/utils/getDisplayErrorMessage.d.ts +1 -2
  610. package/dist/types/utils/getFieldsWithExistingData.d.ts +2 -3
  611. package/dist/types/utils/getName.d.ts +1 -1
  612. package/dist/types/utils/japanSupportUtils.d.ts +2 -1
  613. package/dist/types/utils/logger.d.ts +0 -1
  614. package/dist/types/utils/makeSelectItemForRole.d.ts +1 -1
  615. package/dist/types/utils/performance.d.ts +64 -0
  616. package/dist/types/utils/regex/patternValidators.d.ts +1 -1
  617. package/dist/types/utils/translation.d.ts +3 -2
  618. package/dist/types/utils/validatorUtils.d.ts +2 -1
  619. package/dist/types/utils/verification/helpers/verifyIdNumber.d.ts +3 -2
  620. package/dist/types-B7GElie6.js +138 -0
  621. package/dist/types-BQL9Lsg4.js +74 -0
  622. package/dist/types-C8io4KaH.js +64 -0
  623. package/dist/types-DwXc_yI8.js +34 -0
  624. package/dist/unincorporated-partnership-MeN1dp53.js +97 -0
  625. package/dist/upload-BmUXjsaU.js +17 -0
  626. package/dist/us-check-C1rTBsCY.js +46 -0
  627. package/dist/us-check-account-number-9lI1dXNC.js +48 -0
  628. package/dist/us-check-routing-number-s_KaAGSM.js +49 -0
  629. package/dist/useAssociatedLegalEntity-ETDoz1H2.js +34 -0
  630. package/dist/useBusinessDetailsData-FrL0b9Ni.js +5197 -0
  631. package/dist/useBusinessLines-C5NQ5pE8.js +29 -0
  632. package/dist/useCanSeeIntroduction-BdZJ7k-_.js +48 -0
  633. package/dist/useCreateLegalEntity-DrcLoNYT.js +32 -0
  634. package/dist/useDataMissingRemediations-Zgtpw7uZ.js +41 -0
  635. package/dist/useDataset-Cap5ZjTr.js +76 -0
  636. package/dist/useDeleteTransferInstrument-B2wRj-qL.js +32 -0
  637. package/dist/useForm-DqUW2TbW.js +582 -0
  638. package/dist/useFormContext-CkuaJPUI.js +201 -0
  639. package/dist/useGlobalData-5Z6W3or1.js +68 -0
  640. package/dist/useId-BZ0PA7jP.js +24 -0
  641. package/dist/useMultiForm-Dm2IEMH9.js +873 -0
  642. package/dist/useNavigate-CI0N-POy.js +265 -0
  643. package/dist/useOnboardingStatus-H7Xqe2GC.js +28 -0
  644. package/dist/usePciQuestionnaireList-BF7TPjbQ.js +29 -0
  645. package/dist/useSalesChannels-DYGRfKeh.js +65 -0
  646. package/dist/useScenarios-CibP5LVa.js +48 -0
  647. package/dist/useSetting-CbBaitp6.js +19 -0
  648. package/dist/useTaskStatus-1OZ2clnm.js +51 -0
  649. package/dist/useTermsOfServiceStatus-Dg_nBQgt.js +43 -0
  650. package/dist/useToastContext-D643iewp.js +49 -0
  651. package/dist/useTrustMembers-BTCDIu6B.js +163 -0
  652. package/dist/useUnincorporatedPartnershipMembers-BM9dNg4i.js +99 -0
  653. package/dist/useUpdateBusinessLines-BuW6Vnof.js +339 -0
  654. package/dist/useUpdateLegalEntity-tRw1V_Mt.js +40 -0
  655. package/dist/utils-BasWTkqk.js +159 -0
  656. package/dist/utils-BnolcW6V.js +237 -0
  657. package/dist/utils-D9h2Aq2w.js +778 -0
  658. package/dist/utils-PkTZS9uf.js +58 -0
  659. package/dist/utils-b_KUV0wb.js +29 -0
  660. package/dist/validate-CtxacqMv.js +434 -0
  661. package/dist/validate-K0fmvoFj.js +108 -0
  662. package/dist/validationError-DdlWONz2.js +86 -0
  663. package/dist/warning-circle-fill-DBvt921B.js +17 -0
  664. package/dist/warning-diamond-filled-Lb2od2ry.js +17 -0
  665. package/dist/webinar-m9nuFZBt.js +22 -0
  666. package/dist/yapily-logo-BduxhNRA.js +17 -0
  667. package/package.json +88 -56
  668. package/dist/4-people-BzyXLUF9.js +0 -24
  669. package/dist/AcceptTermsOfServiceComponent-DmtE39CC.js +0 -642
  670. package/dist/Accordion-C-BvE1VA.js +0 -88
  671. package/dist/AccountSetupRejected-DDoI43lB.js +0 -26
  672. package/dist/ActionBar-Dzrzolec.js +0 -31
  673. package/dist/Address-e41CN3CB.js +0 -1317
  674. package/dist/Alert-Dk-oZlnx.js +0 -159
  675. package/dist/Avatar-efxn8pKz.js +0 -60
  676. package/dist/BusinessDetailsDropin-DDh_D2hv.js +0 -2359
  677. package/dist/BusinessFinancingComponent-C04uRrhE.js +0 -55
  678. package/dist/BusinessFinancingDropin-_OlSqohS.js +0 -1843
  679. package/dist/BusinessFinancingPage-DdMugwOa.js +0 -43
  680. package/dist/BusinessTypeSelectionPage-vkCTEFEJ.js +0 -426
  681. package/dist/Card-CqXQA0AI.js +0 -82
  682. package/dist/ConstitutionalDocument-CcwyClZ7.js +0 -143
  683. package/dist/ContractViewer-Byp71k2e.js +0 -935
  684. package/dist/CountryField-CzRN1OE8.js +0 -843
  685. package/dist/CreateIndividualComponent-BNeY6u8q.js +0 -71
  686. package/dist/CreateTransferInstrumentComponent-B8cNHRdF.js +0 -63
  687. package/dist/Currency-BBt4yo5i.js +0 -183
  688. package/dist/CustomerSupport-CObTT8cH.js +0 -153
  689. package/dist/DebugModal-DJcim6UP.js +0 -413
  690. package/dist/DecisionMakerDetailsPage-CrQgRW8X.js +0 -106
  691. package/dist/DecisionMakers-B-3aMddf.js +0 -842
  692. package/dist/EmbeddedStatus-C_5DguHv.js +0 -99
  693. package/dist/EndStateLayout-CwdrDEYY.js +0 -71
  694. package/dist/EntityAssociation-C413vcu6.js +0 -159
  695. package/dist/EntityGuidanceStatus-C6b8i7os.js +0 -105
  696. package/dist/FormFlow-PppMJ6OA.js +0 -186
  697. package/dist/FormNavigation-DL47b_QR.js +0 -144
  698. package/dist/FormWrapper-BOrTn1C8.js +0 -135
  699. package/dist/IndividualOnfido-CmmyKC7J.js +0 -9631
  700. package/dist/IndividualOnfidoDropin-BsCb6dvy.js +0 -2569
  701. package/dist/InputText-BfL9DgWp.js +0 -249
  702. package/dist/Introduction-CBMl7v2M.js +0 -300
  703. package/dist/JpAddress-BCwWQ0Ul.js +0 -271
  704. package/dist/LegalRepresentativeDetailsPage-CDURNY_v.js +0 -60
  705. package/dist/ListItem-BhUSZdS5.js +0 -69
  706. package/dist/ManageIndividualComponent-wYIuZdQ8.js +0 -46
  707. package/dist/ManageTermsOfServiceComponent-6RBHbbsn.js +0 -52
  708. package/dist/ManageTransferInstrumentComponent-BDyWbySW.js +0 -287
  709. package/dist/MaybeModal-CG0BAO68.js +0 -36
  710. package/dist/Modal-CJ_hgcGb.js +0 -149
  711. package/dist/OnboardingDropinComponent-D3dYF_4W.js +0 -7617
  712. package/dist/PayoutDetailsDropin-DxALk48X.js +0 -4840
  713. package/dist/Review-C_JnI94L.js +0 -83
  714. package/dist/RootBusinessDetailsPage-BE3Uck1r.js +0 -46
  715. package/dist/RootBusinessLinesPage-DknXuZgi.js +0 -1484
  716. package/dist/RootIndividualDetailsPage-BIj988Sh.js +0 -71
  717. package/dist/SignPCIComponent-BjVEKTlw.js +0 -304
  718. package/dist/SingpassSelection-Bkbz_bGo.js +0 -130
  719. package/dist/SoleProprietorshipPage-DSOEsSfJ.js +0 -46
  720. package/dist/SourceOfFundsPage-cWwthA_A.js +0 -2383
  721. package/dist/Spacer-D4I0f08n.js +0 -1416
  722. package/dist/StepProgressIndicator-FNAEisRr.js +0 -78
  723. package/dist/StoreProvider-jtUYKLRz.js +0 -7707
  724. package/dist/Summary-COehg8IT.js +0 -204
  725. package/dist/TaxReportingDropin-BBkhMcPn.js +0 -501
  726. package/dist/TrustDetailsPage-50i4_lFA.js +0 -2149
  727. package/dist/TrustMemberCompanyPage-v2Md1srF.js +0 -57
  728. package/dist/TrustMemberIndividualPage-Bn6TXkhN.js +0 -66
  729. package/dist/TrustMemberRoleAndTypePage-C_NPNe6_.js +0 -985
  730. package/dist/TrustMembersOverview-FcSsQZ3Z.js +0 -438
  731. package/dist/UnincorporatedPartnershipIndividualPage-zsyk9RTz.js +0 -65
  732. package/dist/UnincorporatedPartnershipMemberCompanyPage-FP75ZgOg.js +0 -60
  733. package/dist/UnincorporatedPartnershipMemberRoleAndTypePage-n6SndOAj.js +0 -281
  734. package/dist/UnincorporatedPartnershipMembersOverview-BbW2q9EI.js +0 -172
  735. package/dist/VerificationErrorAlert-B7jRGdgn.js +0 -79
  736. package/dist/ViewVerificationStatusComponent-CuUmC319.js +0 -180
  737. package/dist/arrow-right-KxA3SvQj.js +0 -14
  738. package/dist/bag-BPumznWh.js +0 -14
  739. package/dist/bank-D6FiNBhs.js +0 -14
  740. package/dist/bin-Bz6KOIeE.js +0 -18
  741. package/dist/business-lines-DboUCbXw.js +0 -135
  742. package/dist/capital-GVQ3svwN.js +0 -17
  743. package/dist/cash-stack-D9AoDDwt.js +0 -22
  744. package/dist/certificate-CdEWgHQf.js +0 -17
  745. package/dist/checkmark-Q7x6tGhy.js +0 -14
  746. package/dist/checkmark-circle-fill-CsvN5_PL.js +0 -17
  747. package/dist/checkmark-circle-x7dzbp3I.js +0 -20
  748. package/dist/checkmark-small-D35myntq.js +0 -14
  749. package/dist/chevron-down-C2iDorpW.js +0 -14
  750. package/dist/chevron-left-ztPO84q-.js +0 -14
  751. package/dist/chevron-right-C_JN0oDt.js +0 -14
  752. package/dist/chevron-up-CgG8n25g.js +0 -14
  753. package/dist/circle-Bt3Nlr3q.js +0 -17
  754. package/dist/circle-small-filled-YMzP6yQU.js +0 -14
  755. package/dist/clock-BZHremOA.js +0 -20
  756. package/dist/coins-fkAk6dCo.js +0 -17
  757. package/dist/contract-BTa4HltT.js +0 -14
  758. package/dist/cross-Cn09MtQ_.js +0 -14
  759. package/dist/cross-circle-fill-maan7Z5S.js +0 -17
  760. package/dist/cross-circle-fill-small-DCz52AuN.js +0 -14
  761. package/dist/da-DK-BlU1EczG.js +0 -30
  762. package/dist/da-DK-DEdQ-QPp.js +0 -13
  763. package/dist/da-DK-DYpfNZdP.js +0 -37
  764. package/dist/da-DK-Dc0QYG8m.js +0 -68
  765. package/dist/da-DK-DqkN5oIu.js +0 -13
  766. package/dist/da-DK-jK7c9UL0.js +0 -57
  767. package/dist/de-DE-BXt1K0Tr.js +0 -37
  768. package/dist/de-DE-COuUdtao.js +0 -13
  769. package/dist/de-DE-DrSSblam.js +0 -13
  770. package/dist/de-DE-Dz2OsS1F.js +0 -68
  771. package/dist/de-DE-s0B-XZyp.js +0 -30
  772. package/dist/de-DE-wmerDL2e.js +0 -57
  773. package/dist/debouncedInputEvent-HhImBs4O.js +0 -109
  774. package/dist/decision-makers-group-CgddXgrx.js +0 -1944
  775. package/dist/digital-wallet-D_IpxnkN.js +0 -46
  776. package/dist/document-1-C08ut-Dt.js +0 -14
  777. package/dist/document-blurred-2Zpodj3_.js +0 -37
  778. package/dist/document-cut-off-ClS7RiOp.js +0 -32
  779. package/dist/document-expired-CjksBq-N.js +0 -38
  780. package/dist/document-front-DiAairT3.js +0 -30
  781. package/dist/document-person-vxlA6C5f.js +0 -20
  782. package/dist/documentUtils-DIcRD9lR.js +0 -218
  783. package/dist/download-Drhk9k1f.js +0 -17
  784. package/dist/dropinUtils-BK1u6OTG.js +0 -200
  785. package/dist/edit-1-CFoDTMvQ.js +0 -14
  786. package/dist/el-GR-CdgLZhuO.js +0 -13
  787. package/dist/en-US-CzEL6t1W.js +0 -55
  788. package/dist/en-US-D-B35AoN.js +0 -68
  789. package/dist/en-US-Dg505Oh3.js +0 -37
  790. package/dist/en-US-d4WBvUW7.js +0 -118
  791. package/dist/en-US-fyGPkcqX.js +0 -13
  792. package/dist/en-US-gsp7CD_E.js +0 -57
  793. package/dist/es-ES-BI_jdT67.js +0 -68
  794. package/dist/es-ES-BhNhIf08.js +0 -37
  795. package/dist/es-ES-DNGEW6V_.js +0 -13
  796. package/dist/es-ES-Qnc0Q6JH.js +0 -57
  797. package/dist/es-ES-ShWaSuJd.js +0 -13
  798. package/dist/es-ES-esfwvKwz.js +0 -30
  799. package/dist/external-link-DCMYUMfW.js +0 -14
  800. package/dist/fi-FI-ChApf7lf.js +0 -13
  801. package/dist/fi-FI-CjB6QC01.js +0 -30
  802. package/dist/fi-FI-CoI_94Fv.js +0 -13
  803. package/dist/fi-FI-Dn2MC8uW.js +0 -57
  804. package/dist/fi-FI-hwzizPnr.js +0 -68
  805. package/dist/fi-FI-ysUrBilO.js +0 -37
  806. package/dist/fr-FR-BSvSKazD.js +0 -37
  807. package/dist/fr-FR-BWX14yb7.js +0 -57
  808. package/dist/fr-FR-Br7OeDIe.js +0 -13
  809. package/dist/fr-FR-C1XqLftn.js +0 -30
  810. package/dist/fr-FR-CYZXbwc9.js +0 -68
  811. package/dist/fr-FR-Q3urMjbl.js +0 -13
  812. package/dist/funds-in-D8bj0aoE.js +0 -21
  813. package/dist/getFieldsWithExistingData-DxCFyXNd.js +0 -22
  814. package/dist/getName-BS-pHwl0.js +0 -41
  815. package/dist/gift-CQ_DEma7.js +0 -14
  816. package/dist/graph-BJmqglH2.js +0 -21
  817. package/dist/graph-up-Bq6adtlX.js +0 -20
  818. package/dist/hasDataChanged-CWdnpJrE.js +0 -19
  819. package/dist/headquarter-DNYyuuFq.js +0 -21
  820. package/dist/hotel-BuNql78Z.js +0 -22
  821. package/dist/house-B6sNRj-B.js +0 -21
  822. package/dist/id-blurred-9dzBOWCE.js +0 -59
  823. package/dist/id-cut-off-CohJCI2h.js +0 -55
  824. package/dist/id-front-CSZfvdRg.js +0 -52
  825. package/dist/id-glare-Q2JWo5ts.js +0 -49
  826. package/dist/id-verification-instant-BUVBO4R3.js +0 -58
  827. package/dist/id-verification-manual-B3YZALYU.js +0 -55
  828. package/dist/iframeWidget-Uz4rHS0r.js +0 -234
  829. package/dist/image-BSihO8lR.js +0 -17
  830. package/dist/info-filled-SQotHmT9.js +0 -17
  831. package/dist/info-vHTZWoJ7.js +0 -21
  832. package/dist/instant-verification-Dvvkyfmp.js +0 -40
  833. package/dist/it-IT-B0YGvVgW.js +0 -57
  834. package/dist/it-IT-BAvsF2TB.js +0 -13
  835. package/dist/it-IT-C_YDqVNT.js +0 -30
  836. package/dist/it-IT-Erh1DIlj.js +0 -68
  837. package/dist/it-IT-Qfzc8jnW.js +0 -37
  838. package/dist/it-IT-vdMlF0Ha.js +0 -13
  839. package/dist/localizeDateString-DgSdo3D5.js +0 -27
  840. package/dist/location-Q4oKvnkl.js +0 -17
  841. package/dist/mail-BOdyoVqB.js +0 -14
  842. package/dist/manual-verification-BvZWqA00.js +0 -41
  843. package/dist/mapExistingFile-CqrlnmFQ.js +0 -156
  844. package/dist/mapFinancialReportsToFinancialInformation-ZmhVRj3f.js +0 -67
  845. package/dist/mapJpAddressSchemaToAddressLocalizations-D6HjhjJT.js +0 -63
  846. package/dist/mapLegalEntityToIndividualOnfidoSchema-COcit7Hx.js +0 -146
  847. package/dist/mapTransferInstrumentToPayoutAccount-DfJHF9H8.js +0 -33
  848. package/dist/minus-circle-filled-kC2IUvKz.js +0 -17
  849. package/dist/nl-NL-BMUYBqlF.js +0 -57
  850. package/dist/nl-NL-BwKrj-29.js +0 -13
  851. package/dist/nl-NL-C3YJkSIj.js +0 -13
  852. package/dist/nl-NL-D7gBNWEY.js +0 -37
  853. package/dist/nl-NL-DyeSX0PH.js +0 -30
  854. package/dist/nl-NL-O9GCHMDA.js +0 -68
  855. package/dist/no-NO-B6OPS2CA.js +0 -13
  856. package/dist/no-NO-C-gCYc9q.js +0 -37
  857. package/dist/no-NO-CA1aR6Wh.js +0 -68
  858. package/dist/no-NO-D4BECLky.js +0 -130
  859. package/dist/no-NO-DKbWxgF-.js +0 -57
  860. package/dist/no-NO-DPRsAb_o.js +0 -30
  861. package/dist/onfido-logo-BWSv__sQ.js +0 -14
  862. package/dist/options-horizontal-CBmbNv7R.js +0 -18
  863. package/dist/partner-CPjsrePY.js +0 -18
  864. package/dist/passport-blurred-B4UDQfmc.js +0 -59
  865. package/dist/passport-cut-off-C0N2mgLk.js +0 -56
  866. package/dist/passport-front-BwA7wR91.js +0 -52
  867. package/dist/passport-front-green-BL4HmtsB.js +0 -232
  868. package/dist/passport-glare-Mg2ixsYA.js +0 -50
  869. package/dist/pay-by-link-plane-BVZndh67.js +0 -22
  870. package/dist/payout-ChUEoLjt.js +0 -20
  871. package/dist/payout-verification-instant-5u-wvFKv.js +0 -41
  872. package/dist/payout-verification-manual-BH2mu0UW.js +0 -90
  873. package/dist/person-DGjUU4S4.js +0 -17
  874. package/dist/plaid-logo-CtActXTN.js +0 -14
  875. package/dist/plus-CWXA5wdX.js +0 -14
  876. package/dist/plus-circle-filled-CbC0u2Y1.js +0 -17
  877. package/dist/process-field-configurations-N1jHgPa8.js +0 -324
  878. package/dist/pt-BR--kaJvtE6.js +0 -57
  879. package/dist/pt-BR-BKQRvAfq.js +0 -13
  880. package/dist/pt-BR-C-C4ZJ9x.js +0 -30
  881. package/dist/pt-BR-NtLaWlnZ.js +0 -68
  882. package/dist/pt-BR-gh27BC86.js +0 -13
  883. package/dist/pt-BR-ur86nRrK.js +0 -37
  884. package/dist/pt-PT-B4F_5NWi.js +0 -55
  885. package/dist/pt-PT-BZ5ZZm6G.js +0 -57
  886. package/dist/pt-PT-Bf4IV7wp.js +0 -13
  887. package/dist/pt-PT-CFY1O_K0.js +0 -13
  888. package/dist/pt-PT-CIo3mlXL.js +0 -24
  889. package/dist/pt-PT-CVNEcs32.js +0 -37
  890. package/dist/pt-PT-D2Xe-OdG.js +0 -13
  891. package/dist/pt-PT-DSxxVA0f.js +0 -68
  892. package/dist/pt-PT-DVKtHjIY.js +0 -13
  893. package/dist/pt-PT-DYihdcJx.js +0 -13
  894. package/dist/pt-PT-Dm5DRDrd.js +0 -32
  895. package/dist/pt-PT-DpDxAynk.js +0 -13
  896. package/dist/pt-PT-JVqqgvPs.js +0 -54
  897. package/dist/pt-PT-LbneTcRx.js +0 -30
  898. package/dist/pt-PT-TKg5FLat.js +0 -27
  899. package/dist/recurring-CkL4cCM2.js +0 -17
  900. package/dist/reporting-DerosUNm.js +0 -16
  901. package/dist/resolveEnvironment-DZ77JxLV.js +0 -164
  902. package/dist/revenue-accelerate-Dp4Ns_5c.js +0 -17
  903. package/dist/review-CxIN9azU.js +0 -17
  904. package/dist/rules-_v8BprU3.js +0 -317
  905. package/dist/save-Fgy7EDid.js +0 -14
  906. package/dist/search-C4GZ-Rc1.js +0 -17
  907. package/dist/show-yPjPmEf8.js +0 -17
  908. package/dist/singpass-logo-BkMSwiGY.js +0 -17
  909. package/dist/singpass-verification-instant-hY4eGFwl.js +0 -40
  910. package/dist/singpass-verification-manual-DwhRpy5Q.js +0 -34
  911. package/dist/sl-SI-8SzKx7XD.js +0 -30
  912. package/dist/sl-SI-CUCrzJQv.js +0 -37
  913. package/dist/sl-SI-DdjgSySI.js +0 -13
  914. package/dist/sl-SI-DtdGMD6i.js +0 -57
  915. package/dist/solution-payments-CNAat9h7.js +0 -14
  916. package/dist/store-IuAkDRAp.js +0 -14
  917. package/dist/sv-SE-B7cpKp1l.js +0 -30
  918. package/dist/sv-SE-BHkYspm-.js +0 -130
  919. package/dist/sv-SE-C6uPh9g5.js +0 -37
  920. package/dist/sv-SE-K1QT1cOt.js +0 -68
  921. package/dist/sv-SE-kR514dO1.js +0 -57
  922. package/dist/sv-SE-zTiw1bUU.js +0 -13
  923. package/dist/tax-reporting-graph-DjzwRgE6.js +0 -504
  924. package/dist/terminal-1-_me9J9h0.js +0 -18
  925. package/dist/tink-logo-BcIv93ND.js +0 -17
  926. package/dist/types/components/Business/tasks/BusinessDetailsDropin/mandatoryFields.d.ts +0 -3
  927. package/dist/types/components/Individual/fields/DecisionMakerRole/DecisionMakerRole.d.ts +0 -3
  928. package/dist/types/components/Individual/fields/DecisionMakerRole/NomineeDecisionMakerRole.d.ts +0 -10
  929. package/dist/types/components/Individual/fields/DecisionMakerRole/types.d.ts +0 -23
  930. package/dist/types/components/Individual/fields/LocalizedNameFields/types.d.ts +0 -9
  931. package/dist/types/components/Individual/fields/NameFields/validate.d.ts +0 -4
  932. package/dist/types/components/Individual/forms/Individual/IdDocumentUpload/IdDocumentAlreadyUpload.d.ts +0 -2
  933. package/dist/types/components/Individual/forms/Individual/IdDocumentUpload/IdDocumentInstantVerification.d.ts +0 -3
  934. package/dist/types/components/Individual/forms/Individual/IdDocumentUpload/IdDocumentUpload.d.ts +0 -3
  935. package/dist/types/components/Individual/forms/Individual/IdDocumentUpload/types.d.ts +0 -53
  936. package/dist/types/components/Individual/forms/Individual/IdDocumentUpload/utils.d.ts +0 -3
  937. package/dist/types/components/Individual/forms/Individual/IdVerificationMethod/IdVerificationMethod.d.ts +0 -3
  938. package/dist/types/components/Individual/forms/Individual/IdVerificationMethod/idVerificationMethodMetadata.d.ts +0 -15
  939. package/dist/types/components/Individual/forms/Individual/IdVerificationMethod/types.d.ts +0 -14
  940. package/dist/types/components/Individual/forms/Individual/Individual.d.ts +0 -9
  941. package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/Identity.d.ts +0 -2
  942. package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/IdentityAu/IdentityAu.d.ts +0 -2
  943. package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/IdentityAu/validate.d.ts +0 -3
  944. package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/IdentityHK/IdentityHK.d.ts +0 -2
  945. package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/IdentityHK/validate.d.ts +0 -3
  946. package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/IdentityNZ/IdentityNZ.d.ts +0 -2
  947. package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/IdentityNZ/validate.d.ts +0 -3
  948. package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/TypeOfIdentity/index.d.ts +0 -11
  949. package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/identityUS/IdentityUS.d.ts +0 -4
  950. package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/types.d.ts +0 -14
  951. package/dist/types/components/Individual/forms/Individual/PersonalDetails/PersonalDetails.d.ts +0 -3
  952. package/dist/types/components/Individual/forms/Individual/PersonalDetails/types.d.ts +0 -41
  953. package/dist/types/components/Individual/forms/Individual/PersonalDetails/validate.d.ts +0 -21
  954. package/dist/types/components/Individual/forms/Individual/ProofOfRelationship/types.d.ts +0 -14
  955. package/dist/types/components/Individual/forms/Individual/ProofOfResidency/types.d.ts +0 -39
  956. package/dist/types/components/Individual/forms/Individual/rules.d.ts +0 -40
  957. package/dist/types/components/Individual/forms/Individual/types.d.ts +0 -51
  958. package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/AdditionalPersonalDetails.types.d.ts +0 -29
  959. package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/Identity/Identity.types.d.ts +0 -13
  960. package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/Identity/TypeOfIdentity/index.d.ts +0 -11
  961. package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/Identity/validate.d.ts +0 -4
  962. package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/validate.d.ts +0 -22
  963. package/dist/types/components/Individual/forms/IndividualOnfido/BasicDetails/BasicDetails.types.d.ts +0 -22
  964. package/dist/types/components/Individual/forms/IndividualOnfido/BasicDetails/validate.d.ts +0 -6
  965. package/dist/types/components/Individual/forms/IndividualOnfido/DataConflictsModal/ConflictRow.d.ts +0 -12
  966. package/dist/types/components/Individual/forms/IndividualOnfido/DataConflictsModal/DataConflictsModal.d.ts +0 -24
  967. package/dist/types/components/Individual/forms/IndividualOnfido/IdNowVerificationModal/isIdNowModalOpen.d.ts +0 -17
  968. package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/IdVerificationMethod.types.d.ts +0 -20
  969. package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/OnfidoVerificationModal/OnfidoVerificationModal.d.ts +0 -7
  970. package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/UploadedDocument/UploadedDocument.d.ts +0 -7
  971. package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/individualOnfidoConflictsSchema.d.ts +0 -46
  972. package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/mapExtractionResultToSchema.d.ts +0 -4
  973. package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/validateExtractionResult.d.ts +0 -12
  974. package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.d.ts +0 -52
  975. package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.rules.d.ts +0 -46
  976. package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.types.d.ts +0 -59
  977. package/dist/types/components/Individual/forms/IndividualOnfido/SignatoryQuestionnaire/SignatoryQuestionnaire.types.d.ts +0 -6
  978. package/dist/types/components/Individual/forms/IndividualOnfido/UboQuestionnaire/UboQuestionnaire.types.d.ts +0 -13
  979. package/dist/types/components/Individual/forms/IndividualOnfido/UboQuestionnaire/UboQuestionnaireModalContent.d.ts +0 -7
  980. package/dist/types/components/Individual/helpers/isOnfidoAutofillFlowEnabled.d.ts +0 -4
  981. package/dist/types/components/Individual/mapping/adjustIdentificationData.d.ts +0 -3
  982. package/dist/types/components/Individual/mapping/getIdentityTypeToApiIdentityTypeMap.d.ts +0 -3
  983. package/dist/types/components/Individual/mapping/individualOnfidoKeyMappings.d.ts +0 -8
  984. package/dist/types/components/Individual/mapping/mapIndividualOnfidoSchemaToLegalEntity.d.ts +0 -5
  985. package/dist/types/components/Individual/mapping/mapIndividualToLegalEntity.d.ts +0 -3
  986. package/dist/types/components/Individual/mapping/mapLegalEntityToIndividual.d.ts +0 -3
  987. package/dist/types/components/Individual/mapping/mapLegalEntityToIndividualOnfidoSchema.d.ts +0 -3
  988. package/dist/types/components/Individual/tasks/IndividualOnfidoDropin/IndividualOnfidoDropin.d.ts +0 -2
  989. package/dist/types/components/Individual/tasks/IndividualOnfidoDropin/individualOnfidoFormConfig.d.ts +0 -4
  990. package/dist/types/components/Shared/forms/BusinessTypeSelection/EntityTypeRadioGroupCard.d.ts +0 -11
  991. package/dist/types/components/Shared/forms/FinancialInformation/formatFinancialInformationSummary.d.ts +0 -4
  992. package/dist/types/components/Shared/forms/FinancialInformation/mapping/mapFinancialInformationToFinancialReport.d.ts +0 -3
  993. package/dist/types/components/Shared/forms/FinancialInformation/mapping/mapFinancialReportsToFinancialInformation.d.ts +0 -3
  994. package/dist/types/components/Shared/tasks/TaskList/utils.d.ts +0 -8
  995. package/dist/types/components/ui/molecules/Card/Card.d.ts +0 -3
  996. package/dist/types/components/ui/molecules/Card/types.d.ts +0 -26
  997. package/dist/types/embeds/EmbedBaseElement.d.ts +0 -41
  998. package/dist/types/embeds/EmbedCore.d.ts +0 -22
  999. package/dist/types/embeds/business-financing/AdyenBusinessFinancing.d.ts +0 -14
  1000. package/dist/types/embeds/individual-configuration/AdyenIndividual.d.ts +0 -12
  1001. package/dist/types/embeds/individual-status/AdyenManageIndividual.d.ts +0 -12
  1002. package/dist/types/embeds/onboarding/AdyenOnboarding.d.ts +0 -12
  1003. package/dist/types/embeds/terms-of-service-management/AdyenTermsOfService.d.ts +0 -12
  1004. package/dist/types/embeds/terms-of-service-status/AdyenManageTermsOfService.d.ts +0 -12
  1005. package/dist/types/embeds/transfer-instrument-configuration/AdyenTransferInstrument.d.ts +0 -16
  1006. package/dist/types/embeds/transfer-instrument-management/AdyenManageTransferInstrument.d.ts +0 -14
  1007. package/dist/types/embeds/verification-status/AdyenVerificationStatus.d.ts +0 -20
  1008. package/dist/types-BnnF5_7m.js +0 -34
  1009. package/dist/types-D0u3f6aG.js +0 -87
  1010. package/dist/types-Dk94b8kx.js +0 -161
  1011. package/dist/types-sYQKhaSL.js +0 -74
  1012. package/dist/upload-BF65P4KM.js +0 -17
  1013. package/dist/us-check-CYY6Crhr.js +0 -46
  1014. package/dist/us-check-account-number-C7KE5YzX.js +0 -48
  1015. package/dist/us-check-routing-number-DUbhsYAR.js +0 -49
  1016. package/dist/useAssociatedLegalEntity-00JVCmQ7.js +0 -33
  1017. package/dist/useCreateLegalEntity-BvvwB9r0.js +0 -31
  1018. package/dist/useDataset-8WyOJBhU.js +0 -220
  1019. package/dist/useForm-DLxHtZTP.js +0 -1624
  1020. package/dist/useGlobalData-D9dz7GIi.js +0 -68
  1021. package/dist/useMultiForm--sSlt50X.js +0 -864
  1022. package/dist/useOnboardingStatus-91zhqzLd.js +0 -27
  1023. package/dist/useScenarios-CqKpYbe_.js +0 -46
  1024. package/dist/useTermsOfServiceStatus-DLQVpbik.js +0 -42
  1025. package/dist/useToastContext-FI3dwzzs.js +0 -60
  1026. package/dist/useUnincorporatedPartnershipMembers-CdQDPlZq.js +0 -99
  1027. package/dist/useUpdateBusinessLines-BulhyPjH.js +0 -46
  1028. package/dist/useUpdateLegalEntity-Q3Icdeo6.js +0 -39
  1029. package/dist/utils-DQLhii3U.js +0 -774
  1030. package/dist/utils-DV0_GilJ.js +0 -237
  1031. package/dist/validate-BD3wn-YX.js +0 -100
  1032. package/dist/validate-H-iE__-w.js +0 -41
  1033. package/dist/validationError-B5aoMbe_.js +0 -86
  1034. package/dist/warning-circle-fill-CEN1WL7A.js +0 -17
  1035. package/dist/warning-diamond-filled-BfXMlVrG.js +0 -17
  1036. package/dist/webinar-DqjqrNEv.js +0 -22
  1037. package/dist/yapily-logo-CZ4ywjwA.js +0 -17
  1038. /package/dist/types/components/{Shared → Apps}/tasks/TaskList/PayoutAccountTaskListItem.d.ts +0 -0
  1039. /package/dist/types/components/{Shared → Apps}/tasks/TaskList/TaskList.d.ts +0 -0
  1040. /package/dist/types/components/{Shared → Apps}/tasks/TaskList/TaskListGroup.d.ts +0 -0
  1041. /package/dist/types/components/{Shared → Apps}/tasks/TaskList/TaskListItem.d.ts +0 -0
  1042. /package/dist/types/components/{Shared → Apps}/tasks/TaskList/types.d.ts +0 -0
  1043. /package/dist/types/components/{Shared → Business}/forms/FinancialInformation/FinancialInformation.d.ts +0 -0
  1044. /package/dist/types/components/{Shared → Business}/forms/FinancialInformation/ReportedValue.d.ts +0 -0
  1045. /package/dist/types/components/{Shared → Business}/forms/FinancialInformation/types.d.ts +0 -0
  1046. /package/dist/types/components/{Shared → Business}/forms/FinancialInformation/validate.d.ts +0 -0
  1047. /package/dist/types/components/Individual/forms/{IndividualOnfido/AdditionalPersonalDetails → AdditionalPersonalDetails}/AdditionalPersonalDetails.d.ts +0 -0
  1048. /package/dist/types/components/Individual/forms/{IndividualOnfido/AdditionalPersonalDetails → AdditionalPersonalDetails}/Identity/Identity.d.ts +0 -0
  1049. /package/dist/types/components/Individual/forms/{IndividualOnfido/BasicDetails → BasicDetails}/BasicDetails.d.ts +0 -0
  1050. /package/dist/types/components/Individual/forms/{IndividualOnfido/GuidanceQuestion → GuidanceQuestion}/GuidanceQuestion.d.ts +0 -0
  1051. /package/dist/types/components/Individual/forms/{Individual/IdDocumentUpload → IdDocumentUpload}/IdDocumentManualUpload.d.ts +0 -0
  1052. /package/dist/types/components/Individual/forms/{IndividualOnfido/IdNowVerificationModal → IdNowVerificationModal}/IdNowVerificationModal.d.ts +0 -0
  1053. /package/dist/types/components/Individual/forms/{Individual/IdVerification → IdVerification}/IdVerification.d.ts +0 -0
  1054. /package/dist/types/components/Individual/forms/{Individual/IdVerification → IdVerification}/idVerificationProviderId.d.ts +0 -0
  1055. /package/dist/types/components/Individual/forms/{Individual/IdVerification → IdVerification}/types.d.ts +0 -0
  1056. /package/dist/types/components/Individual/forms/{IndividualOnfido/IdVerificationMethod → IdVerificationMethod}/IdVerificationMethod.d.ts +0 -0
  1057. /package/dist/types/components/Individual/forms/{IndividualOnfido/ManualIdUpload → ManualIdUpload}/ManualIdUpload.d.ts +0 -0
  1058. /package/dist/types/components/Individual/forms/{Individual/ProofOfRelationship → ProofOfRelationship}/index.d.ts +0 -0
  1059. /package/dist/types/components/Individual/forms/{Individual/ProofOfResidency → ProofOfResidency}/ProofOfResidency.d.ts +0 -0
  1060. /package/dist/types/components/Individual/forms/{IndividualOnfido/SignatoryQuestionnaire → SignatoryQuestionnaire}/SignatoryQuestionnaire.d.ts +0 -0
  1061. /package/dist/types/components/Individual/forms/{IndividualOnfido/SignatoryQuestionnaire → SignatoryQuestionnaire}/SignatoryQuestionnaireModalContent.d.ts +0 -0
  1062. /package/dist/types/components/Individual/forms/{IndividualOnfido/UboQuestionnaire → UboQuestionnaire}/UboQuestionnaire.d.ts +0 -0
  1063. /package/dist/types/components/Individual/tasks/{IndividualOnfidoDropin/IndividualOnfidoStore.d.ts → IndividualDropin/IndividualStore.d.ts} +0 -0
  1064. /package/dist/types/components/{Individual → Shared}/fields/LocalizedNameFields/LocalizedNameFields.d.ts +0 -0
@@ -1,1843 +0,0 @@
1
- ;
2
- {
3
- try {
4
- let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
5
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "bd0fbda1-4547-4927-9e06-7f3bffa5a5ec", e._sentryDebugIdIdentifier = "sentry-dbid-bd0fbda1-4547-4927-9e06-7f3bffa5a5ec");
6
- } catch (e) {
7
- }
8
- }
9
- ;
10
- import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
11
- import { useRef, useEffect, useMemo, useState } from "preact/hooks";
12
- import { u as useCreateLegalEntity } from "./useCreateLegalEntity-BvvwB9r0.js";
13
- import { c as useInvalidateRootLegalEntity, a as useToastContext } from "./useToastContext-FI3dwzzs.js";
14
- import { u as useUpdateLegalEntity } from "./useUpdateLegalEntity-Q3Icdeo6.js";
15
- import { a_ as reverseMapping, a$ as isEeaCountry, r as LegalEntityTypes, aB as cloneObject, b as useApiContext, j as useQuery, m as httpGet, V as useI18nContext, u as useTranslation, G as Typography, z as translateStringOrObject, a2 as useAnalyticsContext, o as useSettingsContext, L as Loader, B as Button } from "./StoreProvider-jtUYKLRz.js";
16
- import { F as FormContextProvider, a as FormFlow } from "./FormFlow-PppMJ6OA.js";
17
- import { I as InputText, S as SettingNames } from "./InputText-BfL9DgWp.js";
18
- import { u as useAssociatedLegalEntity } from "./useAssociatedLegalEntity-00JVCmQ7.js";
19
- import { g as getRequiredForms, a as addValidityToForms, u as useFormComposer } from "./dropinUtils-BK1u6OTG.js";
20
- import { u as useMultiForm } from "./useMultiForm--sSlt50X.js";
21
- import { E as EndStateLayout } from "./EndStateLayout-CwdrDEYY.js";
22
- import { i as isValidationError, p as processValidationErrors, a as isMaintenanceModeError } from "./validationError-B5aoMbe_.js";
23
- import { a as datasetUtilities } from "./useDataset-8WyOJBhU.js";
24
- import { l as localizeDateString } from "./localizeDateString-DgSdo3D5.js";
25
- import { m as mapFinancialReportsToFinancialInformation, a as mapFinancialInformationToFinancialReport } from "./mapFinancialReportsToFinancialInformation-ZmhVRj3f.js";
26
- import { f as formatObject } from "./utils-DNSfZiio.js";
27
- import { c as createFormUtils, a as Link, d as getFieldProps, H as Header, E as ErrorPanel } from "./CountryField-CzRN1OE8.js";
28
- import { R as RadioGroup, I as InputDate, u as useFormContext, g as getAddressSchemaForCountry, C as COUNTRIES_WITH_STATES_DATASET, A as Address, d as getAddressSchemaLabelsByCountry } from "./Address-e41CN3CB.js";
29
- import { c as currencyByCountry } from "./types-D0u3f6aG.js";
30
- import { F as Field, S as Select } from "./useForm-DLxHtZTP.js";
31
- import { L as LegalFormField, I as InputNumber, b as Currency, C as CURRENCY_FIELD, a as InputCurrency } from "./Currency-BBt4yo5i.js";
32
- import { C as Checkbox } from "./debouncedInputEvent-HhImBs4O.js";
33
- import { b as businessFinancingMultiformRules } from "./validate-BD3wn-YX.js";
34
- const businessFinancingBaseMapping = {
35
- legalProceedingsDate: "organization.dateOfInitiationOfLegalProceeding",
36
- legalInformationInsolvency: "organization.statusOfLegalProceeding",
37
- legalEntityIdentifier: "organization.globalLegalEntityIdentifier",
38
- naceCode: "organization.economicSector",
39
- legalForm: "organization.legalForm",
40
- legalName: "organization.legalName",
41
- "registrationAddress.city": "organization.registeredAddress.city",
42
- "registrationAddress.country": "organization.registeredAddress.country",
43
- "registrationAddress.postalCode": "organization.registeredAddress.postalCode",
44
- "registrationAddress.stateOrProvince": "organization.registeredAddress.stateOrProvince",
45
- "registrationAddress.address": "organization.registeredAddress.street",
46
- "registrationAddress.otherAddressInformation": "organization.registeredAddress.street2"
47
- };
48
- const businessFinancingComponentsKeyMapping = {
49
- ...businessFinancingBaseMapping
50
- };
51
- const businessFinancingApiKeyMapping = {
52
- ...reverseMapping(businessFinancingBaseMapping)
53
- };
54
- const mapBusinessFinancingToLegalEntity = (data) => ({
55
- ...formatObject(
56
- data,
57
- businessFinancingApiKeyMapping
58
- )
59
- });
60
- const BusinessFinancingPages = {
61
- COMPANY_PAGE: "company",
62
- PARENT_COMPANY_PAGE: "parentCompany",
63
- ULTIMATE_PARENT_COMPANY_PAGE: "ultimateParentCompany"
64
- };
65
- const BusinessFinancingRadioIds = {
66
- YES: "Yes",
67
- NO: "No"
68
- };
69
- const businessFinancingRadioItems = [
70
- {
71
- id: BusinessFinancingRadioIds.YES,
72
- name: "yes"
73
- },
74
- {
75
- id: BusinessFinancingRadioIds.NO,
76
- name: "no"
77
- }
78
- ];
79
- const businessFinancingParentRadioItems = [
80
- {
81
- id: BusinessFinancingRadioIds.YES,
82
- name: "yes"
83
- },
84
- {
85
- id: BusinessFinancingRadioIds.NO,
86
- name: "noIdontKnow"
87
- }
88
- ];
89
- const companySchemaKeys = [
90
- "legalForm",
91
- "naceCode",
92
- "numberOfEmployees",
93
- "doesYourCompanyHaveLEI",
94
- "legalEntityIdentifier",
95
- "isCompanyOwnedByAnotherCompany",
96
- "isParentOwnedByAnotherCompany",
97
- "financialReportingDate",
98
- "currency",
99
- "netAssets",
100
- "annualTurnover",
101
- "legalInformationInsolvency",
102
- "legalProceedingsDate"
103
- ];
104
- const parentCompaniesSchemaKeys = [
105
- "legalName",
106
- "legalForm",
107
- "naceCode",
108
- "numberOfEmployees",
109
- "doesYourCompanyHaveLEI",
110
- "legalEntityIdentifier",
111
- "isThisAddressTheMainHeadquarters",
112
- "financialReportingDate",
113
- "currency",
114
- "netAssets",
115
- "annualTurnover",
116
- "legalInformationInsolvency",
117
- "legalProceedingsDate",
118
- "registrationAddress",
119
- "sameAddressAsRootEntity"
120
- ];
121
- const businessFinancingForms = {
122
- company: {
123
- formId: "company",
124
- formName: "yourBusinessInformation",
125
- fields: [...companySchemaKeys]
126
- },
127
- parentCompany: {
128
- formId: "parentCompany",
129
- formName: "parentCompanyInformation",
130
- fields: [...parentCompaniesSchemaKeys]
131
- },
132
- ultimateParentCompany: {
133
- formId: "ultimateParentCompany",
134
- formName: "ultimateParentCompanyInformation",
135
- fields: [...parentCompaniesSchemaKeys]
136
- }
137
- };
138
- const BusinessFinancingIndices = {
139
- COMPANY: "company",
140
- PARENT_COMPANY: "parentCompany",
141
- ULTIMATE_PARENT_COMPANY: "ultimateParentCompany"
142
- };
143
- const getLegalEntityId = (businessFinancingIndex, rootLegalEntity) => {
144
- if (!rootLegalEntity) return void 0;
145
- if (businessFinancingIndex === BusinessFinancingIndices.COMPANY) return rootLegalEntity.id;
146
- if (!rootLegalEntity?.entityAssociations) return void 0;
147
- const businessFinancingEntityType = "immediateParentCompany";
148
- const businessFinancingEntityAssociation = rootLegalEntity.entityAssociations?.find(
149
- (entity) => entity.type === businessFinancingEntityType
150
- );
151
- return businessFinancingEntityAssociation?.legalEntityId;
152
- };
153
- const USER_LOCALE = typeof navigator !== "undefined" ? navigator.language : "en-US";
154
- const entityHasParentCompany = (data) => data.company?.isCompanyOwnedByAnotherCompany && data.company?.isCompanyOwnedByAnotherCompany === "Yes";
155
- const entityHasUltimateParentCompany = (data) => data.company?.isParentOwnedByAnotherCompany && data.company?.isParentOwnedByAnotherCompany === "Yes";
156
- const financialReportsToString = (financialReports) => {
157
- return {
158
- ...financialReports,
159
- numberOfEmployees: financialReports.numberOfEmployees ? financialReports.numberOfEmployees.toString() : void 0,
160
- netAssets: financialReports.netAssets ? financialReports.netAssets.toString() : void 0,
161
- annualTurnover: financialReports.annualTurnover ? financialReports.annualTurnover.toString() : void 0,
162
- balanceSheetTotal: financialReports.balanceSheetTotal ? financialReports.balanceSheetTotal.toString() : void 0
163
- };
164
- };
165
- const prepareBusinessFinancingSubmitData = (businessFinancingIndex, data, rootLegalEntity) => {
166
- const businessFinancingData = data[businessFinancingIndex];
167
- if (!businessFinancingData) return null;
168
- if (businessFinancingIndex === BusinessFinancingIndices.PARENT_COMPANY && !entityHasParentCompany(data)) {
169
- return null;
170
- }
171
- if (businessFinancingIndex === BusinessFinancingIndices.ULTIMATE_PARENT_COMPANY && (!entityHasUltimateParentCompany(data) || !entityHasParentCompany(data))) {
172
- return null;
173
- }
174
- const businessFinancingDetails = mapBusinessFinancingToLegalEntity(businessFinancingData);
175
- if (!businessFinancingDetails.organization) return null;
176
- const businessFinancingCountry = businessFinancingDetails.organization.registeredAddress?.country || rootLegalEntity?.organization?.registeredAddress?.country;
177
- if (businessFinancingData.financialReportingDate && isEeaCountry(businessFinancingCountry)) {
178
- const finReports = {
179
- currency: businessFinancingData.currency,
180
- financialReportingDate: businessFinancingData.financialReportingDate,
181
- numberOfEmployees: businessFinancingData.numberOfEmployees ? Number(businessFinancingData.numberOfEmployees) : void 0,
182
- netAssets: businessFinancingData.netAssets ? Number(businessFinancingData.netAssets) : void 0,
183
- annualTurnover: businessFinancingData.annualTurnover ? Number(businessFinancingData.annualTurnover) : void 0
184
- };
185
- const businessFinancingFinancialReport = mapFinancialInformationToFinancialReport(finReports);
186
- businessFinancingDetails.organization.financialReports = [businessFinancingFinancialReport];
187
- }
188
- if (!isEeaCountry(businessFinancingCountry)) {
189
- businessFinancingDetails.organization.financialReports = void 0;
190
- }
191
- if (businessFinancingDetails.organization.statusOfLegalProceeding === "iDontKnow") {
192
- businessFinancingDetails.organization.statusOfLegalProceeding = "noLegalActionsTaken";
193
- }
194
- if (businessFinancingDetails.organization.statusOfLegalProceeding === "iDontKnow" || businessFinancingDetails.organization.statusOfLegalProceeding === "noLegalActionsTaken") {
195
- businessFinancingDetails.organization.dateOfInitiationOfLegalProceeding = "";
196
- }
197
- if (businessFinancingData.sameAddressAsRootEntity && rootLegalEntity?.organization?.registeredAddress) {
198
- businessFinancingDetails.organization.registeredAddress = {
199
- ...rootLegalEntity.organization.registeredAddress
200
- };
201
- }
202
- if (businessFinancingData.isThisAddressTheMainHeadquarters) {
203
- businessFinancingDetails.organization.principalPlaceOfBusiness = {
204
- ...businessFinancingDetails.organization.registeredAddress
205
- };
206
- }
207
- if (businessFinancingData.doesYourCompanyHaveLEI !== "Yes") {
208
- delete businessFinancingDetails.organization.globalLegalEntityIdentifier;
209
- }
210
- const businessFinancingLegalEntityId = getLegalEntityId(businessFinancingIndex, rootLegalEntity);
211
- if (businessFinancingLegalEntityId) {
212
- delete businessFinancingDetails.type;
213
- businessFinancingDetails.id = businessFinancingLegalEntityId;
214
- } else {
215
- delete businessFinancingDetails.id;
216
- businessFinancingDetails.type = LegalEntityTypes.ORGANIZATION;
217
- }
218
- return businessFinancingDetails;
219
- };
220
- const appendBusinessFinancingData = (legalOrganization, businessFinancingData) => {
221
- if (!legalOrganization || !businessFinancingData) return businessFinancingData;
222
- const clonedBusinessFinancingData = { ...businessFinancingData };
223
- let financialReportData = {};
224
- if (legalOrganization.financialReports) {
225
- const financialReportsArray = Array.isArray(legalOrganization.financialReports) ? legalOrganization.financialReports : [legalOrganization.financialReports];
226
- const financialInformationSchema = mapFinancialReportsToFinancialInformation(
227
- financialReportsArray,
228
- false
229
- );
230
- financialReportData = financialReportsToString(financialInformationSchema);
231
- if (financialReportData.numberOfEmployees) {
232
- financialReportData.numberOfEmployees = financialReportData.numberOfEmployees.toString();
233
- }
234
- }
235
- return {
236
- ...clonedBusinessFinancingData,
237
- ...financialReportData,
238
- numberOfEmployees: financialReportData.numberOfEmployees ? financialReportData.numberOfEmployees.toString() : void 0,
239
- doesYourCompanyHaveLEI: legalOrganization.globalLegalEntityIdentifier ? "Yes" : "No",
240
- isThisAddressTheMainHeadquarters: legalOrganization.principalPlaceOfBusiness ? "Yes" : clonedBusinessFinancingData.isThisAddressTheMainHeadquarters
241
- };
242
- };
243
- const handleBusinessFinancingFormSubmission = async (businessFinancingType, details, createFunction, updateFunction, entityId) => {
244
- if (!details) return;
245
- try {
246
- if (entityId) {
247
- return await updateFunction({ ...details, id: entityId });
248
- }
249
- return await createFunction(details);
250
- } catch (error) {
251
- const businessFinancingError = new Error(`Form submission failed for ${businessFinancingType}`);
252
- businessFinancingError.actualError = error;
253
- businessFinancingError.businessFinancingType = businessFinancingError;
254
- throw businessFinancingError;
255
- }
256
- };
257
- const getCompanySchemaKeys = (country, currentData, schemaKeys) => {
258
- const fieldsToRemove = [];
259
- if (!isEeaCountry(country)) {
260
- fieldsToRemove.push(
261
- "financialReportingDate",
262
- "netAssets",
263
- "annualTurnover",
264
- "currency",
265
- "numberOfEmployees"
266
- );
267
- }
268
- if (currentData.isCompanyOwnedByAnotherCompany !== "Yes") {
269
- fieldsToRemove.push("isParentOwnedByAnotherCompany");
270
- }
271
- if (currentData.doesYourCompanyHaveLEI !== "Yes") {
272
- fieldsToRemove.push("legalEntityIdentifier");
273
- }
274
- if (!currentData?.legalInformationInsolvency || ["noLegalActionsTaken", "iDontKnow"].includes(currentData?.legalInformationInsolvency)) {
275
- fieldsToRemove.push("legalProceedingsDate");
276
- }
277
- return schemaKeys.filter((field) => !fieldsToRemove.includes(field));
278
- };
279
- const getParentCompanySchemaKeys = (currentData, schemaKeys) => {
280
- const fieldsToRemove = [];
281
- const companyCountry = currentData?.registrationAddress?.country;
282
- if (!isEeaCountry(companyCountry)) {
283
- fieldsToRemove.push(
284
- "financialReportingDate",
285
- "netAssets",
286
- "annualTurnover",
287
- "currency",
288
- "numberOfEmployees"
289
- );
290
- }
291
- if (currentData?.sameAddressAsRootEntity) {
292
- fieldsToRemove.push("registrationAddress");
293
- }
294
- if (currentData.doesYourCompanyHaveLEI !== "Yes") {
295
- fieldsToRemove.push("legalEntityIdentifier");
296
- }
297
- if (!currentData?.legalInformationInsolvency || ["noLegalActionsTaken", "iDontKnow"].includes(currentData?.legalInformationInsolvency)) {
298
- fieldsToRemove.push("legalProceedingsDate");
299
- }
300
- return schemaKeys.filter((field) => !fieldsToRemove.includes(field));
301
- };
302
- const getBusinessFinancingRequiredFields = (country, data) => {
303
- let requiredFields = {
304
- company: companySchemaKeys
305
- };
306
- if (!data) {
307
- return requiredFields;
308
- }
309
- const { company, parentCompany = {}, ultimateParentCompany = {} } = data;
310
- if (company) {
311
- requiredFields.company = getCompanySchemaKeys(country, company, companySchemaKeys);
312
- }
313
- if (company?.isCompanyOwnedByAnotherCompany === "Yes") {
314
- const parentCompanyRequiredFields = getParentCompanySchemaKeys(
315
- parentCompany,
316
- parentCompaniesSchemaKeys
317
- );
318
- requiredFields = {
319
- ...requiredFields,
320
- parentCompany: parentCompanyRequiredFields
321
- };
322
- }
323
- if (company?.isParentOwnedByAnotherCompany === "Yes") {
324
- const ultimateParentCompanyRequiredFields = getParentCompanySchemaKeys(
325
- ultimateParentCompany,
326
- parentCompaniesSchemaKeys
327
- );
328
- requiredFields = {
329
- ...requiredFields,
330
- ultimateParentCompany: ultimateParentCompanyRequiredFields
331
- };
332
- }
333
- return requiredFields;
334
- };
335
- const getAddressCountryForParentCompany = (parentCompany, leAddress) => {
336
- return parentCompany?.sameAddressAsRootEntity && leAddress ? leAddress?.country : parentCompany?.registrationAddress?.country;
337
- };
338
- const customLabels = {
339
- company: {
340
- legalForm: "businessStructure",
341
- naceCode: "industryAndNaceCode",
342
- netAssets: "totalAssets",
343
- annualTurnover: "annualTurnover",
344
- legalInformationInsolvency: "legalProceedings",
345
- isCompanyOwnedByAnotherCompany: "hasParentCompany",
346
- isParentOwnedByAnotherCompany: "hasUltimateParentCompany",
347
- isThisAddressTheMainHeadquarters: "addressIsHeadquarters"
348
- },
349
- parentCompany: {
350
- legalForm: "businessStructure",
351
- naceCode: "industryAndNaceCode",
352
- netAssets: "totalAssets",
353
- annualTurnover: "annualTurnover",
354
- legalInformationInsolvency: "legalProceedings",
355
- isThisAddressTheMainHeadquarters: "addressIsHeadquarters"
356
- },
357
- ultimateParentCompany: {
358
- legalForm: "businessStructure",
359
- naceCode: "industryAndNaceCode",
360
- netAssets: "totalAssets",
361
- annualTurnover: "annualTurnover",
362
- legalInformationInsolvency: "legalProceedings",
363
- isThisAddressTheMainHeadquarters: "addressIsHeadquarters"
364
- }
365
- };
366
- const getTranslatedLegalInsolvency = (t, insolvencyData) => {
367
- if (!insolvencyData) return void 0;
368
- return insolvencyData === "noLegalActionsTaken" ? t(($) => $["no"]) : t(($) => $[insolvencyData]);
369
- };
370
- const getValidUserLocale = (locale) => {
371
- try {
372
- new Intl.NumberFormat(locale);
373
- return locale;
374
- } catch (error) {
375
- console.warn(`Invalid locale '${locale}' provided. Falling back to 'en-US'.`, error);
376
- return "en-US";
377
- }
378
- };
379
- const getFormattedAmount = (value, currency) => {
380
- if (!value) return void 0;
381
- const userLocale = getValidUserLocale(USER_LOCALE);
382
- const formattedValue = Number(value).toLocaleString(userLocale);
383
- return `${currency} ${formattedValue}`;
384
- };
385
- const formatDataForSummary = (language, t, datasetUtils, data, rootLeAddress) => {
386
- const summaryData = cloneObject(data) || {};
387
- const { company, parentCompany, ultimateParentCompany } = summaryData;
388
- if (company) {
389
- company.legalForm = company.legalFormLabel;
390
- company.naceCode = company.naceCodeLabel;
391
- company.legalEntityIdentifier = company.legalEntityIdentifier ?? "None";
392
- company.legalInformationInsolvency = getTranslatedLegalInsolvency(
393
- t,
394
- company?.legalInformationInsolvency
395
- );
396
- company.annualTurnover = getFormattedAmount(company.annualTurnover, company.currency);
397
- company.netAssets = getFormattedAmount(company.netAssets, company.currency);
398
- const { legalProceedingsDate, financialReportingDate } = company;
399
- company.legalProceedingsDate = legalProceedingsDate ? localizeDateString(legalProceedingsDate, language) : void 0;
400
- company.financialReportingDate = financialReportingDate ? localizeDateString(financialReportingDate, language) : void 0;
401
- }
402
- if (parentCompany) {
403
- const {
404
- legalName,
405
- legalFormLabel,
406
- naceCodeLabel,
407
- country,
408
- legalEntityIdentifier,
409
- legalInformationInsolvency,
410
- annualTurnover,
411
- currency,
412
- netAssets,
413
- legalProceedingsDate,
414
- financialReportingDate,
415
- sameAddressAsRootEntity,
416
- registrationAddress
417
- } = parentCompany;
418
- if (legalName) {
419
- parentCompany.legalForm = legalFormLabel;
420
- parentCompany.naceCode = naceCodeLabel;
421
- parentCompany.country = country ? datasetUtils.getCountryName(country) : "";
422
- if (registrationAddress) {
423
- parentCompany.registrationAddress = {
424
- ...registrationAddress,
425
- country: datasetUtils.getCountryName(registrationAddress?.country)
426
- };
427
- }
428
- parentCompany.legalEntityIdentifier = legalEntityIdentifier ?? "None";
429
- parentCompany.legalInformationInsolvency = getTranslatedLegalInsolvency(
430
- t,
431
- legalInformationInsolvency
432
- );
433
- parentCompany.annualTurnover = getFormattedAmount(annualTurnover, currency);
434
- parentCompany.netAssets = getFormattedAmount(netAssets, currency);
435
- parentCompany.legalProceedingsDate = legalProceedingsDate ? localizeDateString(legalProceedingsDate, language) : void 0;
436
- parentCompany.financialReportingDate = financialReportingDate ? localizeDateString(financialReportingDate, language) : void 0;
437
- if (sameAddressAsRootEntity) {
438
- delete parentCompany.country;
439
- summaryData.parentCompany = {
440
- ...parentCompany,
441
- registrationAddress: {
442
- ...rootLeAddress,
443
- country: datasetUtils.getCountryName(rootLeAddress?.country)
444
- }
445
- };
446
- }
447
- }
448
- }
449
- if (ultimateParentCompany) {
450
- const {
451
- legalName,
452
- legalFormLabel,
453
- naceCodeLabel,
454
- country,
455
- legalEntityIdentifier,
456
- legalInformationInsolvency,
457
- annualTurnover,
458
- currency,
459
- netAssets,
460
- legalProceedingsDate,
461
- financialReportingDate,
462
- sameAddressAsRootEntity,
463
- registrationAddress
464
- } = ultimateParentCompany;
465
- if (legalName) {
466
- ultimateParentCompany.legalForm = legalFormLabel;
467
- ultimateParentCompany.naceCode = naceCodeLabel;
468
- ultimateParentCompany.country = country ? datasetUtils.getCountryName(country) : "";
469
- if (registrationAddress) {
470
- ultimateParentCompany.registrationAddress = {
471
- ...registrationAddress,
472
- country: datasetUtils.getCountryName(registrationAddress?.country)
473
- };
474
- }
475
- ultimateParentCompany.legalEntityIdentifier = legalEntityIdentifier ?? "None";
476
- ultimateParentCompany.legalInformationInsolvency = getTranslatedLegalInsolvency(
477
- t,
478
- legalInformationInsolvency
479
- );
480
- ultimateParentCompany.annualTurnover = getFormattedAmount(annualTurnover, currency);
481
- ultimateParentCompany.netAssets = getFormattedAmount(netAssets, currency);
482
- ultimateParentCompany.legalProceedingsDate = legalProceedingsDate ? localizeDateString(legalProceedingsDate, language) : void 0;
483
- ultimateParentCompany.financialReportingDate = financialReportingDate ? localizeDateString(financialReportingDate, language) : void 0;
484
- if (sameAddressAsRootEntity) {
485
- delete ultimateParentCompany.country;
486
- summaryData.ultimateParentCompany = {
487
- ...ultimateParentCompany,
488
- registrationAddress: {
489
- ...rootLeAddress,
490
- country: datasetUtils.getCountryName(rootLeAddress?.country)
491
- }
492
- };
493
- }
494
- }
495
- }
496
- return summaryData;
497
- };
498
- const mapLegalEntityToBusinessFinancing = (legalEntity) => formatObject(legalEntity, businessFinancingComponentsKeyMapping);
499
- const getNaceCodes = async (baseUrl) => {
500
- return httpGet({
501
- baseUrl,
502
- path: `datasets/naceCodes`
503
- });
504
- };
505
- const useNaceCodes = (options) => {
506
- const { baseUrl } = useApiContext();
507
- return useQuery({
508
- queryKey: ["naceCodes"],
509
- queryFn: () => getNaceCodes(baseUrl.value),
510
- ...options
511
- });
512
- };
513
- function NaceCodeField({
514
- name = "naceCode",
515
- data,
516
- valid,
517
- errorMessage,
518
- label,
519
- readonly,
520
- handleChangeFor,
521
- helperText
522
- }) {
523
- const { i18n } = useI18nContext();
524
- const { data: naceCodesData } = useNaceCodes();
525
- const handleChangeForRef = useRef(handleChangeFor);
526
- useEffect(() => {
527
- handleChangeForRef.current = handleChangeFor;
528
- }, [handleChangeFor]);
529
- const handleChangeForNaceCode = (e) => {
530
- const naceCodeEvent = {
531
- target: {
532
- name: "naceCode",
533
- value: e.target.value
534
- }
535
- };
536
- handleChangeFor("naceCode")(naceCodeEvent);
537
- };
538
- useEffect(() => {
539
- const selectedLabel = naceCodesData?.find((naceCode) => naceCode.id === data.naceCode)?.name;
540
- const naceCodeEvent = {
541
- target: {
542
- name: "naceCodeLabel",
543
- value: selectedLabel
544
- }
545
- };
546
- handleChangeForRef.current("naceCodeLabel")(naceCodeEvent);
547
- }, [data.naceCode, naceCodesData]);
548
- return /* @__PURE__ */ jsx(
549
- Field,
550
- {
551
- name,
552
- label: label || i18n.get("industryAndNaceCode"),
553
- errorMessage,
554
- isValid: valid.naceCode,
555
- helper: helperText?.naceCode,
556
- children: (childProps) => /* @__PURE__ */ jsx(
557
- Select,
558
- {
559
- ...childProps,
560
- name,
561
- placeholder: i18n.get("selectOne"),
562
- selected: data.naceCode,
563
- items: naceCodesData ?? [],
564
- readonly: readonly && !!data,
565
- onChange: handleChangeForNaceCode
566
- }
567
- )
568
- }
569
- );
570
- }
571
- const businessFinancingLeiRadio = "adyen-kyc-business-financing-lei-radio";
572
- const businessFinancingTitle = "adyen-kyc-business-financing-title";
573
- const businessFinancingBody = "adyen-kyc-business-financing-body";
574
- const businessFinancingExposureFinancials = "adyen-kyc-business-financing-exposure-financials";
575
- const businessFinancingStructuredAddress = "adyen-kyc-business-financing-structured-address";
576
- const styles = {
577
- businessFinancingLeiRadio,
578
- businessFinancingTitle,
579
- businessFinancingBody,
580
- businessFinancingExposureFinancials,
581
- businessFinancingStructuredAddress
582
- };
583
- const businessInformationFields = [
584
- "legalForm",
585
- "naceCode",
586
- "naceCodeLabel",
587
- "legalFormLabel",
588
- "doesYourCompanyHaveLEI",
589
- "legalEntityIdentifier"
590
- ];
591
- function BusinessFinancingBusinessInformation(props) {
592
- const {
593
- data,
594
- valid,
595
- errors,
596
- country,
597
- handleFieldChange,
598
- fieldValidationErrors,
599
- targetPage,
600
- sectionHeading,
601
- hideSectionHeading
602
- } = props;
603
- const { t: businessFinancingT } = useTranslation("businessFinancing");
604
- const { t: commonT } = useTranslation("common");
605
- const formUtils = createFormUtils(props, commonT);
606
- if (!handleFieldChange) {
607
- return;
608
- }
609
- const isMainCompany = targetPage === BusinessFinancingPages.COMPANY_PAGE;
610
- return /* @__PURE__ */ jsxs(Fragment, { children: [
611
- !hideSectionHeading && /* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", className: styles.businessFinancingTitle, children: sectionHeading ? businessFinancingT(($) => $[sectionHeading]) : businessFinancingT(($) => $["yourBusinessInformation"]) }),
612
- /* @__PURE__ */ jsx(
613
- LegalFormField,
614
- {
615
- name: "legalForm",
616
- countryCode: country,
617
- data: {
618
- legalForm: data?.legalForm
619
- },
620
- valid: { legalForm: valid?.legalForm },
621
- errorMessage: formUtils.getErrorMessage("legalForm", errors, fieldValidationErrors),
622
- handleChangeFor: handleFieldChange,
623
- readonly: false,
624
- label: formUtils.getLabel("legalForm", "businessStructure")
625
- }
626
- ),
627
- /* @__PURE__ */ jsx(
628
- NaceCodeField,
629
- {
630
- name: "naceCode",
631
- data: { naceCode: data?.naceCode },
632
- valid: { naceCode: valid?.naceCode },
633
- errorMessage: formUtils.getErrorMessage("naceCode", errors, fieldValidationErrors),
634
- handleChangeFor: handleFieldChange,
635
- readonly: false,
636
- label: formUtils.getLabel("naceCode", "industryAndNaceCode")
637
- }
638
- ),
639
- /* @__PURE__ */ jsx(
640
- Field,
641
- {
642
- el: "fieldset",
643
- name: "doesYourCompanyHaveLEI",
644
- label: businessFinancingT(
645
- ($) => $[isMainCompany ? "doesYourCompanyHaveLEI" : "doesThisCompanyHaveLEI"]
646
- ),
647
- helper: /* @__PURE__ */ jsxs(
648
- Typography,
649
- {
650
- el: "div",
651
- variant: "body",
652
- color: "secondary",
653
- className: styles.businessFinancingBody,
654
- children: [
655
- businessFinancingT(($) => $["anLEIIsAUniqueCode"]),
656
- " ",
657
- /* @__PURE__ */ jsx(Link, { href: "https://search.gleif.org/#/search/", external: true, inline: true, children: businessFinancingT(($) => $["lookUpYourLEI"]) })
658
- ]
659
- }
660
- ),
661
- errorMessage: formUtils.getErrorMessage(
662
- "doesYourCompanyHaveLEI",
663
- errors,
664
- fieldValidationErrors
665
- ),
666
- children: (childProps) => /* @__PURE__ */ jsx(
667
- RadioGroup,
668
- {
669
- ...childProps,
670
- name: "doesYourCompanyHaveLEI",
671
- items: isMainCompany ? businessFinancingRadioItems : businessFinancingParentRadioItems,
672
- value: data?.doesYourCompanyHaveLEI,
673
- disabled: false,
674
- className: styles.businessFinancingLeiRadio,
675
- onChange: handleFieldChange("doesYourCompanyHaveLEI"),
676
- "aria-required": true,
677
- "aria-invalid": !valid?.doesYourCompanyHaveLEI
678
- }
679
- )
680
- }
681
- ),
682
- data?.doesYourCompanyHaveLEI === "Yes" && /* @__PURE__ */ jsx(
683
- Field,
684
- {
685
- name: "legalEntityIdentifier",
686
- label: formUtils.getLabel("legalEntityIdentifier", "legalEntityIdentifier"),
687
- errorMessage: formUtils.getErrorMessage(
688
- "legalEntityIdentifier",
689
- errors,
690
- fieldValidationErrors
691
- ),
692
- isValid: valid?.legalEntityIdentifier,
693
- helper: commonT(($) => $["enterNCharactersWithAMixForExample"], {
694
- numChars: 20,
695
- example: "529900T8BM49AURSDO55"
696
- }),
697
- children: (childProps) => /* @__PURE__ */ jsx(
698
- InputText,
699
- {
700
- ...childProps,
701
- name: "legalEntityIdentifier",
702
- value: data?.legalEntityIdentifier,
703
- readonly: false,
704
- onInput: handleFieldChange("legalEntityIdentifier", "input"),
705
- onBlur: handleFieldChange("legalEntityIdentifier", "blur"),
706
- "aria-required": true,
707
- "aria-invalid": !valid?.legalEntityIdentifier,
708
- isValid: valid?.legalEntityIdentifier
709
- }
710
- )
711
- }
712
- )
713
- ] });
714
- }
715
- const TODAY_DATE$1 = (/* @__PURE__ */ new Date()).toISOString().split("T")[0];
716
- const financialInformationFields = [
717
- "numberOfEmployees",
718
- "financialReportingDate",
719
- "legalEntityIdentifier",
720
- "currency",
721
- "netAssets",
722
- "annualTurnover"
723
- ];
724
- function BusinessFinancingFinancialInformation(props) {
725
- const { data, valid, errors, country, sectionHeading, handleFieldChange, fieldValidationErrors } = props;
726
- const { t: businessFinancingT, i18n: i18next } = useTranslation("businessFinancing");
727
- const { t: commonT } = useTranslation("common");
728
- const formUtils = createFormUtils(props, commonT);
729
- const currenciesForCurrCountry = useMemo(() => currencyByCountry[country] ?? [], [country]);
730
- if (!handleFieldChange) {
731
- return;
732
- }
733
- const financialData = data;
734
- const financialErrors = errors;
735
- const isFinancialDataValid = valid;
736
- const [firstCurrency] = currenciesForCurrCountry;
737
- const defaultCurrency = firstCurrency ?? "EUR";
738
- if (currenciesForCurrCountry.length === 1 && data?.currency !== firstCurrency) {
739
- handleFieldChange("currency")(firstCurrency);
740
- }
741
- return /* @__PURE__ */ jsxs("section", { children: [
742
- /* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", className: styles.businessFinancingTitle, children: sectionHeading ? businessFinancingT(($) => $[sectionHeading]) : businessFinancingT(($) => $["businessFinancials"]) }),
743
- /* @__PURE__ */ jsx(
744
- Field,
745
- {
746
- name: "numberOfEmployees",
747
- label: formUtils.getLabel("numberOfEmployees", "numberOfEmployees"),
748
- helper: businessFinancingT(($) => $["theNumberOfIndividualsReceivingAWageOrSalary"]),
749
- errorMessage: formUtils.getErrorMessage("numberOfEmployees", errors, fieldValidationErrors),
750
- isValid: valid?.numberOfEmployees,
751
- children: (childProps) => /* @__PURE__ */ jsx(
752
- InputNumber,
753
- {
754
- ...childProps,
755
- "aria-required": true,
756
- "aria-invalid": !valid?.numberOfEmployees,
757
- name: "numberOfEmployees",
758
- min: "0",
759
- step: "1",
760
- value: data?.numberOfEmployees,
761
- onInput: handleFieldChange("numberOfEmployees", "input"),
762
- onBlur: handleFieldChange("numberOfEmployees", "blur")
763
- }
764
- )
765
- }
766
- ),
767
- currenciesForCurrCountry?.length > 1 && /* @__PURE__ */ jsx(
768
- Currency,
769
- {
770
- country,
771
- data: formUtils.getFieldData(financialData, CURRENCY_FIELD),
772
- errors: formUtils.getFieldErrors(financialErrors, fieldValidationErrors, CURRENCY_FIELD),
773
- handleChangeFor: handleFieldChange,
774
- labels: { currency: businessFinancingT(($) => $["financialStatementReportingCurrency"]) },
775
- readonly: formUtils.isReadOnly("currency"),
776
- valid: formUtils.getFieldValid(isFinancialDataValid, CURRENCY_FIELD)
777
- }
778
- ),
779
- /* @__PURE__ */ jsxs("div", { className: styles.businessFinancingExposureFinancials, children: [
780
- /* @__PURE__ */ jsx(
781
- Field,
782
- {
783
- name: "netAssets",
784
- label: formUtils.getLabel("netAssets", "balanceSheetTotal"),
785
- helper: businessFinancingT(($) => $["theSumOfTotalLiabilities"]),
786
- errorMessage: formUtils.getErrorMessage("netAssets", errors, fieldValidationErrors),
787
- children: (childProps) => /* @__PURE__ */ jsx(
788
- InputCurrency,
789
- {
790
- ...childProps,
791
- locale: i18next.language,
792
- currency: data?.currency ?? defaultCurrency,
793
- amount: data?.netAssets ? Number(data?.netAssets) : void 0,
794
- onAmountChanged: handleFieldChange("netAssets")
795
- }
796
- )
797
- }
798
- ),
799
- /* @__PURE__ */ jsx(
800
- Field,
801
- {
802
- name: "financialReportingDate",
803
- label: formUtils.getLabel("financialReportingDate", "statementReportingDate"),
804
- helper: businessFinancingT(($) => $["useTheMoreRecentOfTheReportingDates"]),
805
- errorMessage: formUtils.getErrorMessage(
806
- "financialReportingDate",
807
- errors,
808
- fieldValidationErrors
809
- ),
810
- isValid: valid?.financialReportingDate,
811
- children: (childProps) => /* @__PURE__ */ jsx(
812
- InputDate,
813
- {
814
- ...childProps,
815
- name: "financialReportingDate",
816
- value: data?.financialReportingDate,
817
- onInput: handleFieldChange("financialReportingDate", "input"),
818
- onBlur: handleFieldChange("financialReportingDate", "blur"),
819
- "aria-required": true,
820
- "aria-invalid": !valid?.financialReportingDate,
821
- max: TODAY_DATE$1
822
- }
823
- )
824
- }
825
- ),
826
- /* @__PURE__ */ jsx(
827
- Field,
828
- {
829
- name: "annualTurnover",
830
- label: formUtils.getLabel("annualTurnover", "annualTurnover"),
831
- helper: businessFinancingT(($) => $["theAnnualSalesRevenue"]),
832
- errorMessage: formUtils.getErrorMessage("annualTurnover", errors, fieldValidationErrors),
833
- children: (childProps) => /* @__PURE__ */ jsx(
834
- InputCurrency,
835
- {
836
- ...childProps,
837
- name: "annualTurnover",
838
- locale: i18next.language,
839
- currency: data?.currency ?? defaultCurrency,
840
- amount: data?.annualTurnover ? Number(data?.annualTurnover) : void 0,
841
- onAmountChanged: handleFieldChange("annualTurnover")
842
- }
843
- )
844
- }
845
- )
846
- ] })
847
- ] });
848
- }
849
- const TODAY_DATE = (/* @__PURE__ */ new Date()).toISOString().split("T")[0];
850
- const legalInformationFields = [
851
- "legalInformationInsolvency",
852
- "legalProceedingsDate"
853
- ];
854
- function BusinessFinancingLegalInformation(props) {
855
- const { data, valid, errors, fieldValidationErrors, handleFieldChange, sectionHeading } = props;
856
- const { t: businessFinancingT } = useTranslation("businessFinancing");
857
- const { t: commonT } = useTranslation("common");
858
- const formUtils = createFormUtils(props, commonT);
859
- if (!handleFieldChange) {
860
- return;
861
- }
862
- const legalInformationInsolvencyItems = [
863
- { id: "noLegalActionsTaken", name: commonT(($) => $["no"]) },
864
- {
865
- id: "underJudicialAdministration",
866
- name: businessFinancingT(($) => $["yesTheCompanyIsUnderJudicialAdministration"])
867
- },
868
- {
869
- id: "bankruptcyInsolvency",
870
- name: businessFinancingT(($) => $["yesTheCompanyIsFilingForBankruptcy"])
871
- },
872
- {
873
- id: "otherLegalMeasures",
874
- name: businessFinancingT(($) => $["yesTheCompanyIsFacingOtherLegalMeasures"])
875
- },
876
- { id: "iDontKnow", name: commonT(($) => $["iDontKnow"]) }
877
- ];
878
- const showLegalProceedingsDateField = data?.legalInformationInsolvency && !["noLegalActionsTaken", "iDontKnow"].includes(data?.legalInformationInsolvency);
879
- return /* @__PURE__ */ jsxs(Fragment, { children: [
880
- /* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", className: styles.businessFinancingTitle, children: sectionHeading ? businessFinancingT(($) => $[sectionHeading]) : businessFinancingT(($) => $["legalInformation"]) }),
881
- /* @__PURE__ */ jsx(
882
- Field,
883
- {
884
- name: "legalInformationInsolvency",
885
- label: formUtils.getLabel("legalInformationInsolvency", "legalInformationInsolvency"),
886
- errorMessage: formUtils.getErrorMessage(
887
- "legalInformationInsolvency",
888
- errors,
889
- fieldValidationErrors
890
- ),
891
- isValid: valid?.legalInformationInsolvency,
892
- children: (childProps) => /* @__PURE__ */ jsx(
893
- Select,
894
- {
895
- ...childProps,
896
- onChange: handleFieldChange("legalInformationInsolvency", "blur"),
897
- name: "legalInformationInsolvency",
898
- placeholder: commonT(($) => $["selectOne"]),
899
- selected: data?.legalInformationInsolvency,
900
- items: legalInformationInsolvencyItems,
901
- "aria-required": true,
902
- "aria-invalid": !valid?.legalInformationInsolvency
903
- }
904
- )
905
- }
906
- ),
907
- showLegalProceedingsDateField && /* @__PURE__ */ jsx(
908
- Field,
909
- {
910
- name: "legalProceedingsDate",
911
- label: formUtils.getLabel("legalProceedingsDate", "legalProceedingsDate"),
912
- errorMessage: formUtils.getErrorMessage(
913
- "legalProceedingsDate",
914
- errors,
915
- fieldValidationErrors
916
- ),
917
- isValid: valid?.legalProceedingsDate,
918
- children: (childProps) => /* @__PURE__ */ jsx(
919
- InputDate,
920
- {
921
- ...childProps,
922
- name: "legalProceedingsDate",
923
- value: data.legalProceedingsDate,
924
- onInput: handleFieldChange("legalProceedingsDate", "input"),
925
- onBlur: handleFieldChange("legalProceedingsDate", "blur"),
926
- "aria-required": true,
927
- "aria-invalid": !valid?.legalProceedingsDate,
928
- max: TODAY_DATE
929
- }
930
- )
931
- }
932
- )
933
- ] });
934
- }
935
- const ownershipStructureFields = [
936
- "isCompanyOwnedByAnotherCompany",
937
- "isParentOwnedByAnotherCompany"
938
- ];
939
- function BusinessFinancingOwnershipStructure(props) {
940
- const { data, valid, errors = {}, legalEntity, fieldValidationErrors, handleFieldChange } = props;
941
- const { t: businessFinancingT } = useTranslation("businessFinancing");
942
- const { t: commonT } = useTranslation("common");
943
- const formUtils = createFormUtils(props, commonT);
944
- if (!handleFieldChange) {
945
- return;
946
- }
947
- return /* @__PURE__ */ jsxs(Fragment, { children: [
948
- /* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", className: styles.businessFinancingTitle, children: businessFinancingT(($) => $["ownershipStructure"]) }),
949
- /* @__PURE__ */ jsx(
950
- Field,
951
- {
952
- el: "fieldset",
953
- name: "isCompanyOwnedByAnotherCompany",
954
- label: businessFinancingT(($) => $["isCompanyOwnedByAnotherCompany"], {
955
- company: legalEntity?.organization ? legalEntity.organization.legalName : ""
956
- }),
957
- errorMessage: formUtils.getErrorMessage(
958
- "isCompanyOwnedByAnotherCompany",
959
- errors,
960
- fieldValidationErrors
961
- ),
962
- helper: /* @__PURE__ */ jsx(
963
- Typography,
964
- {
965
- el: "div",
966
- variant: "body",
967
- color: "secondary",
968
- className: styles.businessFinancingBody,
969
- children: businessFinancingT(($) => $["thisMeansYouHaveAParentCompany"])
970
- }
971
- ),
972
- children: (childProps) => /* @__PURE__ */ jsx(
973
- RadioGroup,
974
- {
975
- ...childProps,
976
- name: "isCompanyOwnedByAnotherCompany",
977
- items: businessFinancingRadioItems,
978
- value: data?.isCompanyOwnedByAnotherCompany,
979
- className: styles.businessFinancingLeiRadio,
980
- disabled: false,
981
- onChange: handleFieldChange("isCompanyOwnedByAnotherCompany"),
982
- "aria-required": true,
983
- "aria-invalid": !valid?.isCompanyOwnedByAnotherCompany
984
- }
985
- )
986
- }
987
- ),
988
- data?.isCompanyOwnedByAnotherCompany === "Yes" && /* @__PURE__ */ jsx(
989
- Field,
990
- {
991
- el: "fieldset",
992
- name: "isParentOwnedByAnotherCompany",
993
- label: formUtils.getLabel("isParentOwnedByAnotherCompany"),
994
- helper: /* @__PURE__ */ jsx(
995
- Typography,
996
- {
997
- el: "div",
998
- variant: "body",
999
- color: "secondary",
1000
- className: styles.businessFinancingBody,
1001
- children: businessFinancingT(($) => $["thisMeansYouHaveAnUltimateParentCompany"])
1002
- }
1003
- ),
1004
- errorMessage: formUtils.getErrorMessage(
1005
- "isParentOwnedByAnotherCompany",
1006
- errors,
1007
- fieldValidationErrors
1008
- ),
1009
- children: (childProps) => /* @__PURE__ */ jsx(
1010
- RadioGroup,
1011
- {
1012
- ...childProps,
1013
- name: "isParentOwnedByAnotherCompany",
1014
- items: businessFinancingRadioItems,
1015
- value: data.isParentOwnedByAnotherCompany,
1016
- className: styles.businessFinancingLeiRadio,
1017
- disabled: false,
1018
- onChange: handleFieldChange("isParentOwnedByAnotherCompany"),
1019
- "aria-required": true,
1020
- "aria-invalid": !valid?.isParentOwnedByAnotherCompany
1021
- }
1022
- )
1023
- }
1024
- )
1025
- ] });
1026
- }
1027
- function AdditionalFieldsForBusinessFinancingCompany(props) {
1028
- const { t: businessFinancingT } = useTranslation("businessFinancing");
1029
- const { t: commonT } = useTranslation("common");
1030
- const {
1031
- form: { handleChangeFor, data, setValid }
1032
- } = useFormContext();
1033
- const { country, formVerificationErrors, legalEntity, fieldValidationErrors } = props;
1034
- const formUtils = createFormUtils(props, commonT);
1035
- const handleChange = (fieldName, mode) => handleChangeFor(fieldName, "company", mode);
1036
- const ownershipStructureProps = getFieldProps(props, ownershipStructureFields);
1037
- const businessInformationProps = getFieldProps(props, businessInformationFields);
1038
- const financialInformationProps = getFieldProps(props, financialInformationFields);
1039
- const legalInformationProps = getFieldProps(props, legalInformationFields);
1040
- const currenciesForCurrCountry = currencyByCountry[country] ?? [];
1041
- if (currenciesForCurrCountry?.length === 1) {
1042
- setValid("currency", true, "company");
1043
- }
1044
- return /* @__PURE__ */ jsxs("form", { className: "adyen-kyc__high-exposure-company", children: [
1045
- /* @__PURE__ */ jsx(
1046
- Header,
1047
- {
1048
- title: businessFinancingT(($) => $["additionalInformationForBusinessFinancing"]),
1049
- description: businessFinancingT(($) => $["toProcessYourFundsWeNeedMoreInformation"]),
1050
- secondary: true
1051
- }
1052
- ),
1053
- /* @__PURE__ */ jsx(
1054
- ErrorPanel,
1055
- {
1056
- verificationErrors: formVerificationErrors,
1057
- validationErrors: fieldValidationErrors,
1058
- formUtils,
1059
- id: "ariaErrorField"
1060
- }
1061
- ),
1062
- /* @__PURE__ */ jsx(
1063
- BusinessFinancingBusinessInformation,
1064
- {
1065
- ...businessInformationProps,
1066
- handleFieldChange: handleChange,
1067
- country,
1068
- targetPage: BusinessFinancingPages.COMPANY_PAGE,
1069
- sectionHeading: "yourBusinessInformation",
1070
- data: formUtils.getFieldData(data?.company ?? {}, businessInformationFields)
1071
- }
1072
- ),
1073
- isEeaCountry(country) && /* @__PURE__ */ jsx(
1074
- BusinessFinancingFinancialInformation,
1075
- {
1076
- ...financialInformationProps,
1077
- handleFieldChange: handleChange,
1078
- country,
1079
- targetPage: BusinessFinancingPages.COMPANY_PAGE,
1080
- data: formUtils.getFieldData(data?.company ?? {}, financialInformationFields)
1081
- }
1082
- ),
1083
- /* @__PURE__ */ jsx(
1084
- BusinessFinancingLegalInformation,
1085
- {
1086
- ...legalInformationProps,
1087
- country,
1088
- handleFieldChange: handleChange,
1089
- targetPage: BusinessFinancingPages.COMPANY_PAGE,
1090
- sectionHeading: "legalInformation",
1091
- data: formUtils.getFieldData(data?.company ?? {}, legalInformationFields)
1092
- }
1093
- ),
1094
- /* @__PURE__ */ jsx(
1095
- BusinessFinancingOwnershipStructure,
1096
- {
1097
- ...ownershipStructureProps,
1098
- legalEntity,
1099
- handleFieldChange: handleChange,
1100
- data: formUtils.getFieldData(data?.company ?? {}, ownershipStructureFields)
1101
- }
1102
- )
1103
- ] });
1104
- }
1105
- const basicInformationFields = [
1106
- "legalName"
1107
- ];
1108
- function BusinessFinancingBasicCompanyInformation(props) {
1109
- const { data, valid, errors, fieldValidationErrors, handleFieldChange, sectionHeading } = props;
1110
- const { t: businessFinancingT } = useTranslation("businessFinancing");
1111
- const { t: commonT } = useTranslation("common");
1112
- const formUtils = createFormUtils(props, commonT);
1113
- if (!handleFieldChange) {
1114
- return;
1115
- }
1116
- return /* @__PURE__ */ jsxs(Fragment, { children: [
1117
- /* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", className: styles.businessFinancingTitle, children: sectionHeading ? businessFinancingT(($) => $[sectionHeading]) : businessFinancingT(($) => $["basicCompanyInformation"]) }),
1118
- /* @__PURE__ */ jsx(
1119
- Field,
1120
- {
1121
- name: "legalName",
1122
- label: formUtils.getLabel("legalName", "legalName"),
1123
- errorMessage: formUtils.getErrorMessage("legalName", errors, fieldValidationErrors),
1124
- isValid: valid?.legalName,
1125
- helper: businessFinancingT(($) => $["legalNameIsUsedToIdentifyABusinessWithTheGovernment"]),
1126
- helperPosition: "below",
1127
- children: (childProps) => /* @__PURE__ */ jsx(
1128
- InputText,
1129
- {
1130
- ...childProps,
1131
- name: "legalName",
1132
- value: data?.legalName,
1133
- readonly: false,
1134
- onInput: handleFieldChange("legalName", "input"),
1135
- onBlur: handleFieldChange("legalName", "blur"),
1136
- "aria-required": true,
1137
- "aria-invalid": !valid?.legalName
1138
- }
1139
- )
1140
- }
1141
- )
1142
- ] });
1143
- }
1144
- const OPTIONAL_ADDRESS_FIELDS = ["otherAddressInformation"];
1145
- const registeredAddressFields = [
1146
- "isThisAddressTheMainHeadquarters",
1147
- "registrationAddress",
1148
- "sameAddressAsRootEntity"
1149
- ];
1150
- function BusinessFinancingRegisteredAddress(props) {
1151
- const {
1152
- data,
1153
- valid,
1154
- errors,
1155
- fieldValidationErrors,
1156
- shouldValidate,
1157
- defaultData,
1158
- handleFieldChange,
1159
- formId,
1160
- legalEntity,
1161
- sectionHeading
1162
- } = props;
1163
- const { t: businessFinancingT, i18n } = useTranslation("businessFinancing");
1164
- const { t: commonT } = useTranslation("common");
1165
- const formUtils = createFormUtils(props, commonT);
1166
- const addressCountry = data?.registrationAddress?.country;
1167
- const datasetUtils = datasetUtilities(i18n.language);
1168
- const addressSchema = useMemo(() => {
1169
- return getAddressSchemaForCountry(addressCountry).filter((field) => {
1170
- if (addressCountry) {
1171
- return !COUNTRIES_WITH_STATES_DATASET.includes(addressCountry) ? field !== "stateOrProvince" : true;
1172
- }
1173
- return true;
1174
- });
1175
- }, [addressCountry]);
1176
- if (!handleFieldChange) {
1177
- return;
1178
- }
1179
- const handleRegistrationAddressChange = (state) => {
1180
- if (!state.data.country) {
1181
- state.data.country = addressCountry;
1182
- }
1183
- handleFieldChange("registrationAddress")(state.data);
1184
- };
1185
- return /* @__PURE__ */ jsxs(Fragment, { children: [
1186
- /* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", className: styles.businessFinancingTitle, children: sectionHeading ? translateStringOrObject(commonT, sectionHeading) : commonT(($) => $["registeredAddress"]) }),
1187
- /* @__PURE__ */ jsx(
1188
- Field,
1189
- {
1190
- name: "sameAddressAsRootEntity",
1191
- errorMessage: errors?.sameAddressAsRootEntity?.errorMessage,
1192
- isValid: valid?.sameAddressAsRootEntity,
1193
- children: (childProps) => /* @__PURE__ */ jsx(
1194
- Checkbox,
1195
- {
1196
- ...childProps,
1197
- "aria-required": formUtils.isRequiredField("sameAddressAsRootEntity"),
1198
- "aria-invalid": !valid?.sameAddressAsRootEntity,
1199
- name: "sameAddressAsRootEntity",
1200
- label: businessFinancingT(($) => $["sameAddressAsRootEntity"], {
1201
- rootLegalEntityName: legalEntity?.organization?.legalName ?? ""
1202
- }),
1203
- checked: data?.sameAddressAsRootEntity ?? false,
1204
- onChange: handleFieldChange("sameAddressAsRootEntity")
1205
- }
1206
- )
1207
- }
1208
- ),
1209
- data?.sameAddressAsRootEntity && legalEntity?.organization?.registeredAddress ? /* @__PURE__ */ jsxs("div", { className: styles.businessFinancingStructuredAddress, children: [
1210
- /* @__PURE__ */ jsx("div", { children: legalEntity.organization.registeredAddress.street }),
1211
- /* @__PURE__ */ jsx("div", { children: legalEntity.organization.registeredAddress.street2 }),
1212
- /* @__PURE__ */ jsxs("div", { children: [
1213
- legalEntity.organization.registeredAddress.city,
1214
- " ",
1215
- legalEntity.organization.registeredAddress.postalCode ? `, ${legalEntity.organization.registeredAddress.postalCode}` : ""
1216
- ] }),
1217
- /* @__PURE__ */ jsx("div", { children: legalEntity.organization.registeredAddress.stateOrProvince }),
1218
- /* @__PURE__ */ jsx("div", { children: legalEntity.organization.registeredAddress.country ? datasetUtils.getCountryName(legalEntity.organization.registeredAddress.country) : "" })
1219
- ] }) : /* @__PURE__ */ jsx(
1220
- Address,
1221
- {
1222
- id: formId,
1223
- addressType: "registrationAddress",
1224
- data: { ...defaultData?.registrationAddress, country: addressCountry },
1225
- labels: addressCountry ? getAddressSchemaLabelsByCountry(addressCountry) : void 0,
1226
- countryCode: addressCountry,
1227
- requiredFields: addressSchema,
1228
- optionalFields: OPTIONAL_ADDRESS_FIELDS,
1229
- onChange: handleRegistrationAddressChange,
1230
- shouldValidate
1231
- }
1232
- ),
1233
- /* @__PURE__ */ jsx(
1234
- Field,
1235
- {
1236
- el: "fieldset",
1237
- name: "isThisAddressTheMainHeadquarters",
1238
- label: businessFinancingT(($) => $["areTheMainHeadquartersAtThisAddress"]),
1239
- helper: businessFinancingT(($) => $["addressRegisteredWithGovernment"]),
1240
- errorMessage: formUtils.getErrorMessage(
1241
- "isThisAddressTheMainHeadquarters",
1242
- errors,
1243
- fieldValidationErrors
1244
- ),
1245
- children: (childProps) => /* @__PURE__ */ jsx(
1246
- RadioGroup,
1247
- {
1248
- ...childProps,
1249
- name: "isThisAddressTheMainHeadquarters",
1250
- items: businessFinancingRadioItems,
1251
- value: data?.isThisAddressTheMainHeadquarters,
1252
- className: styles.businessFinancingLeiRadio,
1253
- disabled: false,
1254
- onChange: handleFieldChange("isThisAddressTheMainHeadquarters"),
1255
- "aria-required": true,
1256
- "aria-invalid": !valid?.isThisAddressTheMainHeadquarters
1257
- }
1258
- )
1259
- }
1260
- )
1261
- ] });
1262
- }
1263
- const parentCompanyFormId$1 = businessFinancingForms.parentCompany.formId;
1264
- function AdditionalFieldsForBusinessFinancingParentCompany(props) {
1265
- const { t: businessFinancingT } = useTranslation("businessFinancing");
1266
- const { t: commonT } = useTranslation("common");
1267
- const {
1268
- form: { handleChangeFor, data, setValid }
1269
- } = useFormContext();
1270
- const { country, formVerificationErrors, fieldValidationErrors, legalEntity } = props;
1271
- const formUtils = createFormUtils(
1272
- props,
1273
- commonT
1274
- );
1275
- const handleChange = (fieldName, mode) => handleChangeFor(fieldName, "parentCompany", mode);
1276
- setValid("sameAddressAsRootEntity", true, "parentCompany");
1277
- const basicCompanyInformationProps = getFieldProps(props, basicInformationFields);
1278
- const registeredAddressProps = getFieldProps(props, registeredAddressFields);
1279
- const businessInformationProps = getFieldProps(props, businessInformationFields);
1280
- const financialInformationProps = getFieldProps(props, financialInformationFields);
1281
- const legalInformationProps = getFieldProps(props, legalInformationFields);
1282
- const addressCountry = getAddressCountryForParentCompany(
1283
- data?.parentCompany,
1284
- legalEntity?.organization?.registeredAddress
1285
- );
1286
- const currenciesForCurrCountry = currencyByCountry[addressCountry ?? country] ?? [];
1287
- if (currenciesForCurrCountry?.length === 1) {
1288
- setValid("currency", true, "parentCompany");
1289
- }
1290
- return /* @__PURE__ */ jsxs("form", { className: "adyen-kyc__high-exposure-parent-company", children: [
1291
- /* @__PURE__ */ jsx(Typography, { el: "h1", variant: "title-l", className: styles.businessFinancingBody, children: commonT(($) => $["parentCompanyInformation"]) }),
1292
- /* @__PURE__ */ jsx(Typography, { el: "p", variant: "body", className: styles.businessFinancingBody, children: businessFinancingT(($) => $["inThePreviousStepOwnedByAParentCompany"]) }),
1293
- /* @__PURE__ */ jsx(
1294
- ErrorPanel,
1295
- {
1296
- verificationErrors: formVerificationErrors,
1297
- validationErrors: fieldValidationErrors,
1298
- formUtils,
1299
- id: "ariaErrorField"
1300
- }
1301
- ),
1302
- /* @__PURE__ */ jsx(
1303
- BusinessFinancingBasicCompanyInformation,
1304
- {
1305
- ...basicCompanyInformationProps,
1306
- sectionHeading: "parentCompanyInformation",
1307
- handleFieldChange: handleChange,
1308
- data: formUtils.getFieldData(data?.parentCompany ?? {}, basicInformationFields)
1309
- }
1310
- ),
1311
- /* @__PURE__ */ jsx(
1312
- BusinessFinancingRegisteredAddress,
1313
- {
1314
- ...registeredAddressProps,
1315
- formId: parentCompanyFormId$1,
1316
- sectionHeading: "parentCompanyAddress",
1317
- defaultData: data?.parentCompany,
1318
- legalEntity,
1319
- handleFieldChange: handleChange,
1320
- data: formUtils.getFieldData(data?.parentCompany ?? {}, registeredAddressFields)
1321
- }
1322
- ),
1323
- /* @__PURE__ */ jsx(
1324
- BusinessFinancingBusinessInformation,
1325
- {
1326
- ...businessInformationProps,
1327
- hideSectionHeading: true,
1328
- country: addressCountry ?? country,
1329
- targetPage: BusinessFinancingPages.PARENT_COMPANY_PAGE,
1330
- handleFieldChange: handleChange,
1331
- data: formUtils.getFieldData(data?.parentCompany ?? {}, businessInformationFields)
1332
- }
1333
- ),
1334
- isEeaCountry(addressCountry) && /* @__PURE__ */ jsx(
1335
- BusinessFinancingFinancialInformation,
1336
- {
1337
- ...financialInformationProps,
1338
- country: addressCountry ?? country,
1339
- targetPage: BusinessFinancingPages.PARENT_COMPANY_PAGE,
1340
- handleFieldChange: handleChange,
1341
- data: formUtils.getFieldData(data?.parentCompany ?? {}, financialInformationFields)
1342
- }
1343
- ),
1344
- /* @__PURE__ */ jsx(
1345
- BusinessFinancingLegalInformation,
1346
- {
1347
- ...legalInformationProps,
1348
- country: addressCountry ?? country,
1349
- targetPage: BusinessFinancingPages.PARENT_COMPANY_PAGE,
1350
- sectionHeading: "legalInformation",
1351
- handleFieldChange: handleChange,
1352
- data: formUtils.getFieldData(data?.parentCompany ?? {}, legalInformationFields)
1353
- }
1354
- )
1355
- ] });
1356
- }
1357
- const ultimateParentCompanyFormId$1 = businessFinancingForms.ultimateParentCompany.formId;
1358
- function AdditionalFieldsForBusinessFinancingUltimateParentCompany(props) {
1359
- const { formVerificationErrors, country, fieldValidationErrors, legalEntity } = props;
1360
- const { t: businessFinancingT } = useTranslation("businessFinancing");
1361
- const { t: commonT } = useTranslation("common");
1362
- const formUtils = createFormUtils(
1363
- props,
1364
- commonT
1365
- );
1366
- const {
1367
- form: { handleChangeFor, data, setValid }
1368
- } = useFormContext();
1369
- const handleChange = (fieldName, mode) => handleChangeFor(fieldName, "ultimateParentCompany", mode);
1370
- setValid("sameAddressAsRootEntity", true, "ultimateParentCompany");
1371
- const basicCompanyInformationProps = getFieldProps(props, basicInformationFields);
1372
- const registeredAddressProps = getFieldProps(props, registeredAddressFields);
1373
- const businessInformationProps = getFieldProps(props, businessInformationFields);
1374
- const financialInformationProps = getFieldProps(props, financialInformationFields);
1375
- const legalInformationProps = getFieldProps(props, legalInformationFields);
1376
- const addressCountry = getAddressCountryForParentCompany(
1377
- data?.ultimateParentCompany,
1378
- legalEntity?.organization?.registeredAddress
1379
- );
1380
- const currenciesForCurrCountry = currencyByCountry[addressCountry ?? country] ?? [];
1381
- if (currenciesForCurrCountry?.length === 1) {
1382
- setValid("currency", true, "ultimateParentCompany");
1383
- }
1384
- return /* @__PURE__ */ jsxs("form", { className: "adyen-kyc__high-exposure-ultimate-parent-company", children: [
1385
- /* @__PURE__ */ jsx(Typography, { el: "h1", variant: "title-l", className: styles.businessFinancingBody, children: commonT(($) => $["ultimateParentCompanyInformation"]) }),
1386
- /* @__PURE__ */ jsx(Typography, { el: "p", variant: "body", className: styles.businessFinancingBody, children: businessFinancingT(($) => $["inThePreviousStepOwnedByAnUltimateParentCompany"]) }),
1387
- /* @__PURE__ */ jsx(
1388
- ErrorPanel,
1389
- {
1390
- verificationErrors: formVerificationErrors,
1391
- validationErrors: fieldValidationErrors,
1392
- formUtils,
1393
- id: "ariaErrorField"
1394
- }
1395
- ),
1396
- /* @__PURE__ */ jsx(
1397
- BusinessFinancingBasicCompanyInformation,
1398
- {
1399
- ...basicCompanyInformationProps,
1400
- sectionHeading: "ultimateParentCompanyInformation",
1401
- handleFieldChange: handleChange,
1402
- data: formUtils.getFieldData(data?.ultimateParentCompany ?? {}, basicInformationFields)
1403
- }
1404
- ),
1405
- /* @__PURE__ */ jsx(
1406
- BusinessFinancingRegisteredAddress,
1407
- {
1408
- ...registeredAddressProps,
1409
- formId: ultimateParentCompanyFormId$1,
1410
- sectionHeading: "ultimateParentCompanyAddress",
1411
- defaultData: data?.ultimateParentCompany,
1412
- handleFieldChange: handleChange,
1413
- data: formUtils.getFieldData(data?.ultimateParentCompany ?? {}, registeredAddressFields),
1414
- legalEntity
1415
- }
1416
- ),
1417
- /* @__PURE__ */ jsx(
1418
- BusinessFinancingBusinessInformation,
1419
- {
1420
- ...businessInformationProps,
1421
- hideSectionHeading: true,
1422
- country: addressCountry ?? country,
1423
- targetPage: BusinessFinancingPages.ULTIMATE_PARENT_COMPANY_PAGE,
1424
- handleFieldChange: handleChange,
1425
- data: formUtils.getFieldData(data?.ultimateParentCompany ?? {}, businessInformationFields)
1426
- }
1427
- ),
1428
- isEeaCountry(addressCountry) && /* @__PURE__ */ jsx(
1429
- BusinessFinancingFinancialInformation,
1430
- {
1431
- ...financialInformationProps,
1432
- country: addressCountry ?? country,
1433
- targetPage: BusinessFinancingPages.ULTIMATE_PARENT_COMPANY_PAGE,
1434
- handleFieldChange: handleChange,
1435
- data: formUtils.getFieldData(
1436
- data?.ultimateParentCompany ?? {},
1437
- financialInformationFields
1438
- )
1439
- }
1440
- ),
1441
- /* @__PURE__ */ jsx(
1442
- BusinessFinancingLegalInformation,
1443
- {
1444
- ...legalInformationProps,
1445
- country: addressCountry ?? country,
1446
- sectionHeading: "legalInformation",
1447
- targetPage: BusinessFinancingPages.ULTIMATE_PARENT_COMPANY_PAGE,
1448
- handleFieldChange: handleChange,
1449
- data: formUtils.getFieldData(data?.ultimateParentCompany ?? {}, legalInformationFields)
1450
- }
1451
- )
1452
- ] });
1453
- }
1454
- const getOrgAnalyticsData = (prefix, details) => {
1455
- const org = details?.organization;
1456
- if (!org) return {};
1457
- return {
1458
- [`${prefix}--economicSector`]: org?.economicSector ?? "",
1459
- [`${prefix}--legalForm`]: org?.legalForm ?? "",
1460
- [`${prefix}--statusOfLegalProceeding`]: org?.statusOfLegalProceeding ?? ""
1461
- };
1462
- };
1463
- const businessFinancingFormsRequiredFields = {
1464
- company: businessFinancingForms.company.fields,
1465
- parentCompany: businessFinancingForms.parentCompany.fields,
1466
- ultimateParentCompany: businessFinancingForms.ultimateParentCompany.fields
1467
- };
1468
- const parentCompanyFormId = businessFinancingForms.parentCompany.formId;
1469
- const companyFormId = businessFinancingForms.company.formId;
1470
- const ultimateParentCompanyFormId = businessFinancingForms.ultimateParentCompany.formId;
1471
- function BusinessFinancingDropin(props) {
1472
- const {
1473
- country,
1474
- rootLegalEntity,
1475
- externalOnSubmit,
1476
- externalOnSubmitLabel,
1477
- isStandaloneComponent,
1478
- handleHomeClick
1479
- } = props;
1480
- const { t: businessFinancingT } = useTranslation("businessFinancing");
1481
- const { t: commonT, i18n } = useTranslation("common");
1482
- const userEvents = useAnalyticsContext();
1483
- const [defaultData, setDefaultData] = useState();
1484
- useRef(null);
1485
- const invalidateRootLegalEntity = useInvalidateRootLegalEntity();
1486
- const { mutateAsync: createLegalEntity } = useCreateLegalEntity();
1487
- const { mutateAsync: updateLegalEntity } = useUpdateLegalEntity();
1488
- const { data: immediateParentCompany, isLoading: immediateParentCompanyIsLoading } = useAssociatedLegalEntity(rootLegalEntity, "immediateParentCompany");
1489
- const { data: ultimateParentCompany, isLoading: ultimateParentCompanyIsLoading } = useAssociatedLegalEntity(rootLegalEntity, "ultimateParentCompany");
1490
- const derivedData = useMemo(() => {
1491
- if (immediateParentCompanyIsLoading || ultimateParentCompanyIsLoading) return void 0;
1492
- const dataFromResponse = {};
1493
- dataFromResponse.company = mapLegalEntityToBusinessFinancing(
1494
- rootLegalEntity
1495
- );
1496
- dataFromResponse.company = appendBusinessFinancingData(
1497
- rootLegalEntity.organization,
1498
- dataFromResponse.company
1499
- );
1500
- dataFromResponse.company.isCompanyOwnedByAnotherCompany = "No";
1501
- dataFromResponse.company.isParentOwnedByAnotherCompany = "No";
1502
- if (immediateParentCompany) {
1503
- dataFromResponse.parentCompany = mapLegalEntityToBusinessFinancing(
1504
- immediateParentCompany
1505
- );
1506
- dataFromResponse.parentCompany = appendBusinessFinancingData(
1507
- immediateParentCompany.organization,
1508
- dataFromResponse.parentCompany
1509
- );
1510
- dataFromResponse.company.isCompanyOwnedByAnotherCompany = "Yes";
1511
- }
1512
- if (ultimateParentCompany) {
1513
- dataFromResponse.ultimateParentCompany = mapLegalEntityToBusinessFinancing(
1514
- ultimateParentCompany
1515
- );
1516
- dataFromResponse.ultimateParentCompany = appendBusinessFinancingData(
1517
- ultimateParentCompany.organization,
1518
- dataFromResponse.ultimateParentCompany
1519
- );
1520
- dataFromResponse.company.isParentOwnedByAnotherCompany = "Yes";
1521
- }
1522
- return dataFromResponse;
1523
- }, [
1524
- immediateParentCompanyIsLoading,
1525
- ultimateParentCompanyIsLoading,
1526
- rootLegalEntity,
1527
- immediateParentCompany,
1528
- ultimateParentCompany
1529
- ]);
1530
- useEffect(() => {
1531
- userEvents.addTaskEvent("Landed on page", {
1532
- actionType: "start"
1533
- });
1534
- }, [userEvents]);
1535
- useEffect(() => {
1536
- if (derivedData) {
1537
- setDefaultData({ ...derivedData });
1538
- }
1539
- }, [derivedData]);
1540
- const datasetUtils = datasetUtilities(i18n.language);
1541
- const [problems, setProblems] = useState();
1542
- const [loadingStatus, setLoadingStatus] = useState("success");
1543
- const [showEndState, setShowEndState] = useState(false);
1544
- const [businessFinancingRequiredForms, setBusinessFinancingRequiredForms] = useState(businessFinancingForms);
1545
- const { showToast } = useToastContext();
1546
- const { isSettingEnabled } = useSettingsContext();
1547
- const showBusinessFinancingFirst = isSettingEnabled(SettingNames.ShowBusinessFinancingFirst);
1548
- const onSubmit = async () => {
1549
- setLoadingStatus("loading");
1550
- if (!umfData) {
1551
- return;
1552
- }
1553
- const companyBusinessFinancingDetails = prepareBusinessFinancingSubmitData(
1554
- BusinessFinancingIndices.COMPANY,
1555
- umfData,
1556
- rootLegalEntity
1557
- );
1558
- const parentCompanyBusinessFinancingDetails = prepareBusinessFinancingSubmitData(
1559
- BusinessFinancingIndices.PARENT_COMPANY,
1560
- umfData,
1561
- rootLegalEntity
1562
- );
1563
- const ultimateParentCompanyBusinessFinancingDetails = prepareBusinessFinancingSubmitData(
1564
- BusinessFinancingIndices.ULTIMATE_PARENT_COMPANY,
1565
- umfData,
1566
- rootLegalEntity
1567
- );
1568
- if (!companyBusinessFinancingDetails || !rootLegalEntity) {
1569
- showToast({ label: businessFinancingT(($) => $["missingCompanyDetails"]), variant: "error" });
1570
- return;
1571
- }
1572
- let parentCompanyFailed = false;
1573
- let ultimateParentCompanyFailed = false;
1574
- try {
1575
- const promises = [];
1576
- if (parentCompanyBusinessFinancingDetails) {
1577
- const parentCompanyPromise = handleBusinessFinancingFormSubmission(
1578
- BusinessFinancingIndices.PARENT_COMPANY,
1579
- parentCompanyBusinessFinancingDetails,
1580
- createLegalEntity,
1581
- updateLegalEntity,
1582
- parentCompanyBusinessFinancingDetails?.id
1583
- );
1584
- promises.push(parentCompanyPromise);
1585
- }
1586
- if (ultimateParentCompanyBusinessFinancingDetails) {
1587
- const ultimateParentCompanyPromise = handleBusinessFinancingFormSubmission(
1588
- BusinessFinancingIndices.ULTIMATE_PARENT_COMPANY,
1589
- ultimateParentCompanyBusinessFinancingDetails,
1590
- createLegalEntity,
1591
- updateLegalEntity,
1592
- ultimateParentCompanyBusinessFinancingDetails?.id
1593
- );
1594
- promises.push(ultimateParentCompanyPromise);
1595
- }
1596
- const results = await Promise.allSettled(promises);
1597
- const previousEntityAssociations = rootLegalEntity.entityAssociations ? rootLegalEntity.entityAssociations.filter(
1598
- (entityAssociation) => entityAssociation.type !== "immediateParentCompany" && entityAssociation.type !== "ultimateParentCompany"
1599
- ) : [];
1600
- const businessFinancingEntityAssociations = [
1601
- ...previousEntityAssociations
1602
- ];
1603
- const entitiesToTrack = [BusinessFinancingIndices.COMPANY];
1604
- results.forEach((result, index) => {
1605
- const businessFinancingType = index === 0 ? BusinessFinancingIndices.PARENT_COMPANY : BusinessFinancingIndices.ULTIMATE_PARENT_COMPANY;
1606
- if (result.status === "fulfilled") {
1607
- const response = result.value;
1608
- if (businessFinancingType === BusinessFinancingIndices.PARENT_COMPANY) {
1609
- businessFinancingEntityAssociations.push({
1610
- type: "immediateParentCompany",
1611
- legalEntityId: response.id,
1612
- associatorId: companyBusinessFinancingDetails.id
1613
- });
1614
- entitiesToTrack.push(BusinessFinancingIndices.PARENT_COMPANY);
1615
- } else if (businessFinancingType === BusinessFinancingIndices.ULTIMATE_PARENT_COMPANY) {
1616
- businessFinancingEntityAssociations.push({
1617
- type: "ultimateParentCompany",
1618
- legalEntityId: response.id,
1619
- associatorId: companyBusinessFinancingDetails.id
1620
- });
1621
- entitiesToTrack.push(BusinessFinancingIndices.ULTIMATE_PARENT_COMPANY);
1622
- }
1623
- } else {
1624
- if (businessFinancingType === BusinessFinancingIndices.PARENT_COMPANY) {
1625
- parentCompanyFailed = true;
1626
- } else if (businessFinancingType === BusinessFinancingIndices.ULTIMATE_PARENT_COMPANY) {
1627
- ultimateParentCompanyFailed = true;
1628
- }
1629
- handleSubmissionError(result.reason, businessFinancingType);
1630
- }
1631
- });
1632
- if (!parentCompanyFailed && !ultimateParentCompanyFailed) {
1633
- companyBusinessFinancingDetails.entityAssociations = [
1634
- ...businessFinancingEntityAssociations
1635
- ];
1636
- const eventsAdditionalData = {
1637
- ...getOrgAnalyticsData("Business", companyBusinessFinancingDetails),
1638
- ...getOrgAnalyticsData("ParentCompany", parentCompanyBusinessFinancingDetails),
1639
- ...getOrgAnalyticsData(
1640
- "UltimateParentCompany",
1641
- ultimateParentCompanyBusinessFinancingDetails
1642
- )
1643
- };
1644
- try {
1645
- await handleBusinessFinancingFormSubmission(
1646
- BusinessFinancingIndices.COMPANY,
1647
- companyBusinessFinancingDetails,
1648
- createLegalEntity,
1649
- updateLegalEntity,
1650
- companyBusinessFinancingDetails?.id
1651
- );
1652
- userEvents.addTaskEvent("Success", {
1653
- actionType: "submit",
1654
- returnValue: entitiesToTrack,
1655
- additionalData: eventsAdditionalData
1656
- });
1657
- await invalidateRootLegalEntity();
1658
- if (showBusinessFinancingFirst || isStandaloneComponent) {
1659
- setShowEndState(true);
1660
- } else {
1661
- externalOnSubmit?.({ ...umfData });
1662
- }
1663
- } catch (e) {
1664
- showToast({ label: commonT(($) => $["failedToUpdateDetails"]), variant: "error" });
1665
- handleSubmissionError(e, BusinessFinancingIndices.COMPANY);
1666
- }
1667
- setProblems({});
1668
- }
1669
- } catch (e) {
1670
- if (!parentCompanyFailed && !ultimateParentCompanyFailed) {
1671
- handleSubmissionError(e, BusinessFinancingIndices.COMPANY);
1672
- }
1673
- showToast({ label: commonT(($) => $["failedToUpdateDetails"]), variant: "error" });
1674
- } finally {
1675
- setLoadingStatus("success");
1676
- }
1677
- };
1678
- const handleSubmissionError = (error, businessFinancingType) => {
1679
- if (isValidationError(error.actualError)) {
1680
- const validationErrors = processValidationErrors(
1681
- error.actualError,
1682
- void 0,
1683
- businessFinancingApiKeyMapping
1684
- );
1685
- setProblems((prevProblems) => ({
1686
- ...prevProblems,
1687
- validationErrors: {
1688
- ...prevProblems?.validationErrors,
1689
- [businessFinancingType]: validationErrors?.[businessFinancingType] ?? {}
1690
- }
1691
- }));
1692
- } else if (isMaintenanceModeError(error)) {
1693
- showToast({
1694
- label: commonT(($) => $["maintenanceModeMessage"]),
1695
- variant: "error",
1696
- duration: "indefinite"
1697
- });
1698
- } else {
1699
- showToast({ label: commonT(($) => $["failedToUpdateDetails"]), variant: "error" });
1700
- }
1701
- };
1702
- const omittedSummaryKeys = [
1703
- "naceCodeLabel",
1704
- "legalFormLabel",
1705
- "currency",
1706
- "doesYourCompanyHaveLEI",
1707
- "sameAddressAsRootEntity"
1708
- ];
1709
- const [requiredFields, setRequiredFields] = useState(void 0);
1710
- const form = useMultiForm({
1711
- requiredFields,
1712
- defaultData: derivedData,
1713
- rules: businessFinancingMultiformRules
1714
- });
1715
- const { data: umfData = derivedData, isValid, errors, valid } = form;
1716
- useEffect(() => {
1717
- const showParentCompany = umfData?.company?.isCompanyOwnedByAnotherCompany === "Yes";
1718
- const showUltimateParentCompany = umfData?.company?.isParentOwnedByAnotherCompany === "Yes";
1719
- let updateForms = {
1720
- company: { ...businessFinancingForms.company }
1721
- };
1722
- if (showParentCompany) {
1723
- updateForms = { ...updateForms, parentCompany: businessFinancingForms.parentCompany };
1724
- }
1725
- if (showParentCompany && showUltimateParentCompany) {
1726
- updateForms = {
1727
- ...updateForms,
1728
- ultimateParentCompany: businessFinancingForms.ultimateParentCompany
1729
- };
1730
- }
1731
- setBusinessFinancingRequiredForms(updateForms);
1732
- }, [
1733
- umfData?.company?.isCompanyOwnedByAnotherCompany,
1734
- umfData?.company?.isParentOwnedByAnotherCompany
1735
- ]);
1736
- useEffect(() => {
1737
- const reqs = getBusinessFinancingRequiredFields(country, umfData);
1738
- setRequiredFields(reqs);
1739
- }, [umfData]);
1740
- const forms = useMemo(() => {
1741
- const requiredForms = getRequiredForms(
1742
- businessFinancingRequiredForms,
1743
- businessFinancingFormsRequiredFields,
1744
- {}
1745
- );
1746
- return addValidityToForms(requiredForms, isValid, problems);
1747
- }, [businessFinancingRequiredForms, isValid, businessFinancingFormsRequiredFields, problems]);
1748
- const {
1749
- handleNextClick,
1750
- handleBackClick,
1751
- activeForm,
1752
- gotoFormByFormIndex,
1753
- steps,
1754
- shouldValidate
1755
- } = useFormComposer({
1756
- problems,
1757
- forms,
1758
- onSubmit
1759
- });
1760
- const renderActiveForm = (selectedForm) => /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-form-wrapper", children: [
1761
- selectedForm.formId === companyFormId && /* @__PURE__ */ jsx(
1762
- AdditionalFieldsForBusinessFinancingCompany,
1763
- {
1764
- data: defaultData?.company,
1765
- legalEntity: rootLegalEntity,
1766
- heading: businessFinancingT(($) => $["additionalInformationForBusinessFinancing"]),
1767
- id: companyFormId,
1768
- country,
1769
- shouldValidate,
1770
- fieldValidationErrors: problems?.validationErrors?.[selectedForm?.formId],
1771
- formVerificationErrors: problems?.verificationErrors?.[selectedForm?.formId],
1772
- errors: errors?.company,
1773
- valid: valid?.company
1774
- }
1775
- ),
1776
- selectedForm.formId === parentCompanyFormId && /* @__PURE__ */ jsx(
1777
- AdditionalFieldsForBusinessFinancingParentCompany,
1778
- {
1779
- data: defaultData?.parentCompany,
1780
- heading: commonT(($) => $["parentCompanyInformation"]),
1781
- id: companyFormId,
1782
- country,
1783
- shouldValidate,
1784
- errors: errors?.parentCompany,
1785
- legalEntity: rootLegalEntity
1786
- }
1787
- ),
1788
- selectedForm.formId === ultimateParentCompanyFormId && /* @__PURE__ */ jsx(
1789
- AdditionalFieldsForBusinessFinancingUltimateParentCompany,
1790
- {
1791
- data: defaultData?.ultimateParentCompany,
1792
- heading: commonT(($) => $["ultimateParentCompanyInformation"]),
1793
- id: companyFormId,
1794
- country,
1795
- shouldValidate,
1796
- errors: errors?.ultimateParentCompany,
1797
- legalEntity: rootLegalEntity
1798
- }
1799
- )
1800
- ] });
1801
- if (!defaultData?.company) {
1802
- return /* @__PURE__ */ jsx(Loader, {});
1803
- }
1804
- return showEndState ? /* @__PURE__ */ jsx(
1805
- EndStateLayout,
1806
- {
1807
- title: businessFinancingT(($) => $["submissionReceived"]),
1808
- description: businessFinancingT(($) => $["theInformationProvidedIsBeingReviewed"]),
1809
- action: externalOnSubmit && !showBusinessFinancingFirst ? /* @__PURE__ */ jsx(Button, { onClick: () => externalOnSubmit?.({ ...umfData }), children: externalOnSubmitLabel || commonT(($) => $["finish"]) }) : void 0
1810
- }
1811
- ) : /* @__PURE__ */ jsx(FormContextProvider, { form, children: /* @__PURE__ */ jsx(
1812
- FormFlow,
1813
- {
1814
- summary: {
1815
- data: formatDataForSummary(
1816
- i18n.language,
1817
- businessFinancingT,
1818
- datasetUtils,
1819
- umfData,
1820
- rootLegalEntity?.organization?.registeredAddress
1821
- ),
1822
- omitted: {
1823
- keys: omittedSummaryKeys
1824
- },
1825
- problems,
1826
- labels: customLabels
1827
- },
1828
- currentStep: steps.current,
1829
- disableNextButton: !activeForm.isValid,
1830
- forms,
1831
- gotoFormByFormIndex,
1832
- handleBackClick,
1833
- handleCancelClick: handleHomeClick,
1834
- handleNextClick,
1835
- loadingStatus,
1836
- totalSteps: steps.total,
1837
- children: /* @__PURE__ */ jsx("div", { children: renderActiveForm(activeForm || businessFinancingForms.company) })
1838
- }
1839
- ) });
1840
- }
1841
- export {
1842
- BusinessFinancingDropin as B
1843
- };