@adyen/kyc-components 3.80.0 → 3.81.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (297) hide show
  1. package/dist/{AcceptTermsOfServiceComponent-DKDi6iRX.js → AcceptTermsOfServiceComponent-DUZ8m-El.js} +46 -45
  2. package/dist/{AccountSetupRejected-P-8-WKZp.js → AccountSetupRejected-DSGGI8JF.js} +2 -2
  3. package/dist/{Avatar-Bsc58neS.js → Avatar-DY9KPxi_.js} +1 -1
  4. package/dist/{BusinessDetailsDropin-CL-7UQcT.js → BusinessDetailsDropin-CCW1NBK5.js} +36 -63
  5. package/dist/{BusinessFinancingComponent-D1XrIsPc.js → BusinessFinancingComponent-Dn4d85NX.js} +3 -3
  6. package/dist/{BusinessFinancingDropin-DQ56QSPj.js → BusinessFinancingDropin-BpRf2LTA.js} +76 -78
  7. package/dist/{BusinessFinancingPage-B6M7ESoA.js → BusinessFinancingPage-t8vqkZMT.js} +3 -3
  8. package/dist/{BusinessTypeSelectionPage-CFignJ19.js → BusinessTypeSelectionPage-Bk3GHlFq.js} +4 -4
  9. package/dist/{ContractViewer-DiT_8GRM.js → ContractViewer-B2LwC3wV.js} +4 -11
  10. package/dist/{CreateIndividualComponent-DkX98cSx.js → CreateIndividualComponent-DcHuBu_q.js} +3 -3
  11. package/dist/{CreateTransferInstrumentComponent-SaPgQY2J.js → CreateTransferInstrumentComponent-_ZekKCzs.js} +2 -2
  12. package/dist/{CustomerSupport-XD8NZGtZ.js → CustomerSupport-BMHMLSZ9.js} +5 -5
  13. package/dist/{DebugModal-Dx55VMz1.js → DebugModal-CxVACxM4.js} +4 -4
  14. package/dist/{DecisionMakerDetailsPage-3fUQSm8D.js → DecisionMakerDetailsPage-R_PPht3A.js} +3 -3
  15. package/dist/{DecisionMakers-DHeZux6T.js → DecisionMakers-Bxdj0aIF.js} +29 -39
  16. package/dist/DetailViewLayout-Z9cuUp4X.js +65 -0
  17. package/dist/{EmbeddedStatus-BXBTxeW1.js → EmbeddedStatus-CDIMc5D0.js} +2 -2
  18. package/dist/EndStateLayout-ChS903yq.js +71 -0
  19. package/dist/{FormFlow-Urrg9vMm.js → FormFlow-gcCKgNQt.js} +2 -2
  20. package/dist/{IndividualOnfidoDropin-VYVSjf_C.js → IndividualOnfidoDropin-JrEsqyDz.js} +443 -247
  21. package/dist/{Introduction-DZCNLnIC.js → Introduction-DTjWG0SY.js} +3 -3
  22. package/dist/{LegalRepresentativeDetailsPage-zEJCKboy.js → LegalRepresentativeDetailsPage-BAVFc1rZ.js} +3 -3
  23. package/dist/{ManageIndividualComponent-BPI2aesr.js → ManageIndividualComponent-BHsbHn8F.js} +3 -3
  24. package/dist/{ManageTermsOfServiceComponent-BzkhmJMD.js → ManageTermsOfServiceComponent-Dl1Rs8mi.js} +3 -3
  25. package/dist/{ManageTransferInstrumentComponent-nlmjHqMN.js → ManageTransferInstrumentComponent-D1ntoR1k.js} +16 -42
  26. package/dist/{OnboardingDropinComponent-DkkC-O2y.js → OnboardingDropinComponent-Dvq5Ocum.js} +49 -37
  27. package/dist/{Review-CrcnPOYr.js → Review-Mn0Fnm2U.js} +3 -3
  28. package/dist/{RootBusinessDetailsPage-DHv2mk_-.js → RootBusinessDetailsPage-DoCCJDUa.js} +17 -17
  29. package/dist/{RootIndividualDetailsPage-D6AiPFI0.js → RootIndividualDetailsPage-C5WnGiHW.js} +3 -3
  30. package/dist/{SignPCIComponent-B3UDh5F8.js → SignPCIComponent-BGnCTWk_.js} +87 -85
  31. package/dist/{SingpassSelection-DDoYQM_e.js → SingpassSelection-BqY3v7Hq.js} +1 -1
  32. package/dist/{SoleProprietorshipPage-CKWYdVS_.js → SoleProprietorshipPage-VL2n0omM.js} +3 -3
  33. package/dist/{SourceOfFundsPage-D0kJCtH3.js → SourceOfFundsPage-BsHdnsPV.js} +11 -11
  34. package/dist/{StoreProvider-nqVR_kWS.js → StoreProvider-Fbl3I9L7.js} +3232 -2959
  35. package/dist/{TaskItemStatus-o-rpFU9k.js → TaskItemStatus-CC4mw_PB.js} +1 -1
  36. package/dist/{TaskStatusIndicator-6bpYVt4Z.js → TaskStatusIndicator-B7G7gqRt.js} +1 -1
  37. package/dist/{TaxReportingDropin-wcsNHxqr.js → TaxReportingDropin-C8Z2k6kC.js} +8 -8
  38. package/dist/{TileGroup-BrD32_Y0.js → TileGroup-B7_1rrEe.js} +1 -1
  39. package/dist/{TrustDetailsPage-DBoP1d57.js → TrustDetailsPage-q8pyPH40.js} +5 -5
  40. package/dist/{TrustMemberCompanyPage-CH47pq1l.js → TrustMemberCompanyPage-BT4dvwuF.js} +4 -4
  41. package/dist/{TrustMemberIndividualPage-g6tCyoZp.js → TrustMemberIndividualPage-CwxurDZs.js} +3 -3
  42. package/dist/{UnincorporatedPartnershipIndividualPage-BANlV7bn.js → UnincorporatedPartnershipIndividualPage-2Z7Ljh7Y.js} +3 -3
  43. package/dist/{UnincorporatedPartnershipMemberCompanyPage-BSrxjjH_.js → UnincorporatedPartnershipMemberCompanyPage-DD7ihKcb.js} +3 -3
  44. package/dist/{VerificationErrorAlert-w9MIQ2hH.js → VerificationErrorAlert-Cbls8Urj.js} +2 -2
  45. package/dist/{ViewVerificationStatusComponent-DAx2BfA6.js → ViewVerificationStatusComponent-BZbgVCiJ.js} +3 -3
  46. package/dist/adyen-business-financing.js +2 -2
  47. package/dist/adyen-individual.js +2 -2
  48. package/dist/adyen-kyc-components.js +14 -14
  49. package/dist/adyen-manage-individual.js +2 -2
  50. package/dist/adyen-manage-terms-of-service.js +2 -2
  51. package/dist/adyen-manage-transfer-instruments.js +2 -2
  52. package/dist/adyen-onboarding.js +2 -2
  53. package/dist/adyen-terms-of-service.js +2 -2
  54. package/dist/adyen-transfer-instrument.js +2 -2
  55. package/dist/adyen-verification-status.js +2 -2
  56. package/dist/bg-BG-9uVrFuHv.js +23 -0
  57. package/dist/bg-BG-B0-ZcjR0.js +22 -0
  58. package/dist/bg-BG-BYkC3yKf.js +58 -0
  59. package/dist/bg-BG-CMomhopf.js +35 -0
  60. package/dist/bg-BG-Dlzl9Szn.js +36 -0
  61. package/dist/bg-BG-NMIts2sa.js +35 -0
  62. package/dist/bg-BG-hFblesn-.js +15 -0
  63. package/dist/cs-CZ-B8IPRc47.js +15 -0
  64. package/dist/cs-CZ-BkyFDlAU.js +36 -0
  65. package/dist/cs-CZ-Csr_35T-.js +35 -0
  66. package/dist/cs-CZ-DMzortvO.js +35 -0
  67. package/dist/cs-CZ-Dk1ePReM.js +22 -0
  68. package/dist/cs-CZ-Wzc382q6.js +23 -0
  69. package/dist/cs-CZ-zTkICtXj.js +58 -0
  70. package/dist/da-DK-B5KNtXL8.js +36 -0
  71. package/dist/da-DK-BTpZzEgA.js +15 -0
  72. package/dist/da-DK-CeNMXUfE.js +23 -0
  73. package/dist/da-DK-D0N1TVVU.js +58 -0
  74. package/dist/da-DK-DStNe471.js +22 -0
  75. package/dist/da-DK-Dm8o1giq.js +35 -0
  76. package/dist/da-DK-q2b_1elr.js +35 -0
  77. package/dist/de-DE-BA9tcpNQ.js +36 -0
  78. package/dist/de-DE-CGoBPCPv.js +22 -0
  79. package/dist/de-DE-D2ByeIZs.js +35 -0
  80. package/dist/de-DE-DMFaycio.js +35 -0
  81. package/dist/de-DE-DjOUNvp6.js +15 -0
  82. package/dist/de-DE-Dtuu-nE7.js +58 -0
  83. package/dist/de-DE-JI-7mvxy.js +23 -0
  84. package/dist/el-GR-B69zcWyB.js +22 -0
  85. package/dist/el-GR-CGeBAkDN.js +35 -0
  86. package/dist/el-GR-Cu9HwD-f.js +15 -0
  87. package/dist/el-GR-DGW388LZ.js +35 -0
  88. package/dist/el-GR-DIhHT2q_.js +36 -0
  89. package/dist/el-GR-DaO38A1s.js +58 -0
  90. package/dist/el-GR-DfNOPkLq.js +23 -0
  91. package/dist/en-US-546hB2Wn.js +60 -0
  92. package/dist/en-US-BQpgt41j.js +37 -0
  93. package/dist/en-US-BTYdAWXp.js +15 -0
  94. package/dist/en-US-DHq7VYFs.js +23 -0
  95. package/dist/en-US-DX4NHkX-.js +38 -0
  96. package/dist/en-US-SbE0c1gn.js +36 -0
  97. package/dist/es-ES-BsQpwaPN.js +58 -0
  98. package/dist/es-ES-CKMfS8Yy.js +22 -0
  99. package/dist/es-ES-Cj7q7fWO.js +15 -0
  100. package/dist/es-ES-DOVPTeyf.js +23 -0
  101. package/dist/es-ES-RXwbiHjS.js +36 -0
  102. package/dist/es-ES-WWftn3JX.js +35 -0
  103. package/dist/es-ES-pXHx3ODy.js +35 -0
  104. package/dist/et-EE-BJIsPOnh.js +23 -0
  105. package/dist/et-EE-D5lRJbMZ.js +35 -0
  106. package/dist/et-EE-DF_GqBgK.js +58 -0
  107. package/dist/et-EE-Dor3enPS.js +15 -0
  108. package/dist/et-EE-Dw-aPF7J.js +22 -0
  109. package/dist/et-EE-QLVnr6Vl.js +35 -0
  110. package/dist/et-EE-ZssIqWkO.js +36 -0
  111. package/dist/fi-FI-BJ9RzrL3.js +58 -0
  112. package/dist/fi-FI-BNcnKrJ9.js +15 -0
  113. package/dist/fi-FI-D522KHGk.js +23 -0
  114. package/dist/fi-FI-D9E_KaJi.js +35 -0
  115. package/dist/fi-FI-DT351N-G.js +35 -0
  116. package/dist/fi-FI-DmiggQEL.js +36 -0
  117. package/dist/fi-FI-REYOX46I.js +22 -0
  118. package/dist/fr-FR-BNXXNUX_.js +35 -0
  119. package/dist/fr-FR-Bn3D6mmY.js +15 -0
  120. package/dist/fr-FR-CNR5-s9g.js +58 -0
  121. package/dist/fr-FR-Cv0k-3Xc.js +35 -0
  122. package/dist/fr-FR-D9qaP6nx.js +22 -0
  123. package/dist/fr-FR-DInQKkTd.js +23 -0
  124. package/dist/fr-FR-N5wYE2BZ.js +36 -0
  125. package/dist/{getFieldsWithExistingData-D1vVVeaf.js → getFieldsWithExistingData-BjmOzrhP.js} +1 -1
  126. package/dist/{hasDataChanged-DIVMD4Rh.js → hasDataChanged-f49kid1W.js} +2 -2
  127. package/dist/hr-HR-5iwKtfgh.js +36 -0
  128. package/dist/hr-HR-B8AZ4eHJ.js +35 -0
  129. package/dist/hr-HR-CNzbyo9r.js +15 -0
  130. package/dist/hr-HR-CbxEvbrE.js +22 -0
  131. package/dist/hr-HR-CjA4MWAU.js +58 -0
  132. package/dist/hr-HR-CzSrqEFA.js +35 -0
  133. package/dist/hr-HR-DzS44Gpv.js +23 -0
  134. package/dist/hu-HU-Aq1LsWah.js +36 -0
  135. package/dist/hu-HU-BSOiZA7a.js +15 -0
  136. package/dist/hu-HU-D0C6UfXB.js +22 -0
  137. package/dist/hu-HU-DRi6Dz9U.js +35 -0
  138. package/dist/hu-HU-NhwFr6o-.js +58 -0
  139. package/dist/hu-HU-xCvNM5TU.js +23 -0
  140. package/dist/hu-HU-zK6nUqWr.js +35 -0
  141. package/dist/{LandingLayout-CddoBOJ4.js → isIdNowModalOpen-C3cyeMaK.js} +11 -2
  142. package/dist/it-IT-8DEagvb2.js +36 -0
  143. package/dist/it-IT-BV9K87FK.js +58 -0
  144. package/dist/it-IT-BeYbInCQ.js +35 -0
  145. package/dist/it-IT-Biduphjt.js +22 -0
  146. package/dist/it-IT-C_fNHhjE.js +35 -0
  147. package/dist/it-IT-CjEYONJg.js +23 -0
  148. package/dist/it-IT-DvM-9LpM.js +15 -0
  149. package/dist/ja-JP-B2txEVPx.js +22 -0
  150. package/dist/ja-JP-BGAJQs1g.js +36 -0
  151. package/dist/ja-JP-BUz3qN-V.js +23 -0
  152. package/dist/ja-JP-C1OQ16fo.js +35 -0
  153. package/dist/ja-JP-DXcP0ojZ.js +58 -0
  154. package/dist/ja-JP-GXkLvnQ4.js +15 -0
  155. package/dist/ja-JP-weDU8GLW.js +35 -0
  156. package/dist/{localizeDateString-DLWgJuND.js → localizeDateString-aA76e6GH.js} +1 -1
  157. package/dist/lt-LT-B6CJ4ULI.js +23 -0
  158. package/dist/lt-LT-BUYY0LaT.js +35 -0
  159. package/dist/lt-LT-C_YMgjp9.js +22 -0
  160. package/dist/lt-LT-DNjXmQPv.js +15 -0
  161. package/dist/lt-LT-HZOWQKZT.js +36 -0
  162. package/dist/lt-LT-_MzAcXJo.js +35 -0
  163. package/dist/lt-LT-tXTApHm2.js +58 -0
  164. package/dist/lv-LV-B3sT3_cw.js +22 -0
  165. package/dist/lv-LV-B9js9VoA.js +35 -0
  166. package/dist/lv-LV-CRhXAjn6.js +35 -0
  167. package/dist/lv-LV-ChOoZuhc.js +15 -0
  168. package/dist/lv-LV-DSaQNC67.js +58 -0
  169. package/dist/lv-LV-DTtuyfHS.js +23 -0
  170. package/dist/lv-LV-F-Z4lDCV.js +36 -0
  171. package/dist/{mapFinancialReportsToFinancialInformation-anU-0sl0.js → mapFinancialReportsToFinancialInformation-Dx35AZ1B.js} +2 -2
  172. package/dist/mapScriptLocalization-H2Re3k5X.js +35 -0
  173. package/dist/nl-NL-BHqiO21q.js +15 -0
  174. package/dist/nl-NL-C-xUU2N3.js +36 -0
  175. package/dist/nl-NL-DLedC3mO.js +35 -0
  176. package/dist/nl-NL-Dbx0ZmI7.js +35 -0
  177. package/dist/nl-NL-DywVQ9km.js +58 -0
  178. package/dist/nl-NL-G1wVnmzT.js +22 -0
  179. package/dist/nl-NL-Zcq0bXd-.js +23 -0
  180. package/dist/no-NO-47ncaBZY.js +36 -0
  181. package/dist/no-NO-B8oxqfNI.js +58 -0
  182. package/dist/no-NO-BTtAuqCb.js +22 -0
  183. package/dist/no-NO-BxReX6oF.js +23 -0
  184. package/dist/no-NO-C0sfkp82.js +35 -0
  185. package/dist/no-NO-CKT9kLAH.js +15 -0
  186. package/dist/no-NO-CpVal4cV.js +35 -0
  187. package/dist/pl-PL--qPaNyJD.js +22 -0
  188. package/dist/pl-PL-1ylK-_FE.js +35 -0
  189. package/dist/pl-PL-C89s21hn.js +58 -0
  190. package/dist/pl-PL-CZLzkboH.js +36 -0
  191. package/dist/pl-PL-D6heiKsH.js +15 -0
  192. package/dist/pl-PL-DAPGaxWi.js +35 -0
  193. package/dist/pl-PL-T6uD5--R.js +23 -0
  194. package/dist/pt-PT-BY9rcwcF.js +35 -0
  195. package/dist/pt-PT-BkvMsoK4.js +35 -0
  196. package/dist/pt-PT-BvK00TeI.js +58 -0
  197. package/dist/pt-PT-CN4ws8N7.js +36 -0
  198. package/dist/pt-PT-D2elvnDU.js +15 -0
  199. package/dist/pt-PT-Dk48OVtf.js +22 -0
  200. package/dist/pt-PT-N0njcfLO.js +23 -0
  201. package/dist/{resolveEnvironment-BOHs0YoH.js → resolveEnvironment-zIeibPQJ.js} +3 -3
  202. package/dist/ro-RO-BLuOjrS0.js +22 -0
  203. package/dist/ro-RO-CpGd9emB.js +58 -0
  204. package/dist/ro-RO-DJLWmWZ4.js +35 -0
  205. package/dist/ro-RO-DL9V1CMj.js +15 -0
  206. package/dist/ro-RO-Dfx0g3bU.js +35 -0
  207. package/dist/ro-RO-Ic1SzBgx.js +23 -0
  208. package/dist/ro-RO-RylOvc5g.js +36 -0
  209. package/dist/{rules-DF6nIpnn.js → rules-DMMZWi5Q.js} +2 -2
  210. package/dist/sk-SK-B7o3L57C.js +35 -0
  211. package/dist/sk-SK-BSioQTMW.js +15 -0
  212. package/dist/sk-SK-BfJKbtGy.js +36 -0
  213. package/dist/sk-SK-C1Ky2nl_.js +22 -0
  214. package/dist/sk-SK-CiD0FeLN.js +23 -0
  215. package/dist/sk-SK-DlX5KvBV.js +58 -0
  216. package/dist/sk-SK-iO863_t2.js +35 -0
  217. package/dist/sl-SI-BB7iVcFI.js +22 -0
  218. package/dist/sl-SI-BylvpF-X.js +15 -0
  219. package/dist/sl-SI-C8CMAkD0.js +35 -0
  220. package/dist/sl-SI-Cth2Qa5T.js +35 -0
  221. package/dist/sl-SI-DklUFzaY.js +36 -0
  222. package/dist/sl-SI-MZoDApq9.js +23 -0
  223. package/dist/sl-SI-NI2OJAvm.js +58 -0
  224. package/dist/style.css +737 -489
  225. package/dist/styles-CLV89_hH.js +737 -489
  226. package/dist/sv-SE-Bwh0wKFk.js +35 -0
  227. package/dist/sv-SE-CAZpDX9G.js +58 -0
  228. package/dist/sv-SE-DCFSf4Oj.js +23 -0
  229. package/dist/sv-SE-DbI-1JqN.js +22 -0
  230. package/dist/sv-SE-Dwz1yTrB.js +15 -0
  231. package/dist/sv-SE-OPOHtqtP.js +35 -0
  232. package/dist/sv-SE-qduyDIzY.js +36 -0
  233. package/dist/types/api/idNowProvider/useIdNowProvider.d.ts +9 -5
  234. package/dist/types/components/Business/forms/BusinessDetails/forms.d.ts +1 -1
  235. package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +29 -32
  236. package/dist/types/components/EmbeddedDropins/ManageTransferInstrumentComponent/ManageTransferInstrumentOverviewItemModal/ManageTransferInstrumentOverviewItemModal.d.ts +0 -1
  237. package/dist/types/components/Individual/fields/NameFields/types.d.ts +4 -18
  238. package/dist/types/components/Individual/forms/IndividualOnfido/IdNowVerificationModal/IdNowVerificationModal.d.ts +4 -0
  239. package/dist/types/components/Individual/forms/IndividualOnfido/IdNowVerificationModal/isIdNowModalOpen.d.ts +16 -0
  240. package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/validateExtractionResult.d.ts +12 -0
  241. package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.types.d.ts +3 -1
  242. package/dist/types/components/Individual/helpers/shouldShowMotionCapture.d.ts +2 -2
  243. package/dist/types/components/Individual/pages/DecisionMakerDetailsPage.d.ts +2 -1
  244. package/dist/types/components/Shared/fields/LocalizedLegalCompanyNameField/fieldConfig.d.ts +4 -5
  245. package/dist/types/components/Shared/fields/LocalizedLegalCompanyNameField/types.d.ts +4 -5
  246. package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
  247. package/dist/types/components/ui/atoms/Modal/MaybeModal.d.ts +1 -1
  248. package/dist/types/components/ui/layout/DetailViewLayout/DetailViewLayout.d.ts +12 -0
  249. package/dist/types/components/ui/layout/EndStateLayout/EndStateLayout.d.ts +13 -0
  250. package/dist/types/components/ui/layout/LandingLayout/LandingLayout.d.ts +7 -2
  251. package/dist/types/core/models/api/individual.d.ts +5 -10
  252. package/dist/types/core/models/api/legal-arrangement.d.ts +0 -8
  253. package/dist/types/core/models/api/organization.d.ts +4 -8
  254. package/dist/types/core/models/api/scriptLocalization.d.ts +9 -0
  255. package/dist/types/hooks/useMultiForm/types.d.ts +4 -4
  256. package/dist/types/language/types.d.ts +2 -0
  257. package/dist/types/types/localizedScriptSchema.d.ts +22 -0
  258. package/dist/types/utils/entityStatusUtil.d.ts +1 -1
  259. package/dist/types/utils/getName.d.ts +1 -0
  260. package/dist/types/utils/mapScriptLocalization.d.ts +55 -0
  261. package/dist/{useMultiForm-CD30RFXS.js → useMultiForm-BOVByA_E.js} +6 -3
  262. package/dist/{useOnboardingStatus-_s90wk5C.js → useOnboardingStatus-BNwuglKy.js} +1 -1
  263. package/dist/{useTermsOfServiceStatus-DCkVaRvN.js → useTermsOfServiceStatus-lCNo2Bdd.js} +1 -1
  264. package/dist/{useUpdateLegalEntity-xfJlMkrb.js → useUpdateLegalEntity-CcUHqJyo.js} +2 -2
  265. package/dist/{utils-CusOxwr8.js → utils-Jk_zHwaz.js} +4 -4
  266. package/dist/{validate-Dnz1cwsS.js → validate-DUUyXWgS.js} +1 -1
  267. package/dist/{validate-C3WaahoD.js → validate-gCfuQFAB.js} +1 -1
  268. package/package.json +4 -4
  269. package/dist/FormEndState-D_8_v1NU.js +0 -59
  270. package/dist/bg-BG-HpLj_LOM.js +0 -16
  271. package/dist/cs-CZ-CQ_M3lEp.js +0 -16
  272. package/dist/da-DK-k4JW3iVF.js +0 -16
  273. package/dist/de-DE-C7mjtS5w.js +0 -16
  274. package/dist/el-GR-CEQrkYHW.js +0 -16
  275. package/dist/en-US-DDagIr01.js +0 -16
  276. package/dist/es-ES-DB1c74Kv.js +0 -16
  277. package/dist/et-EE-xIegUSuv.js +0 -16
  278. package/dist/fi-FI-NCxneAqU.js +0 -16
  279. package/dist/fr-FR-daiUnUwo.js +0 -16
  280. package/dist/hr-HR-BAUywqDj.js +0 -16
  281. package/dist/hu-HU-3GQojIHR.js +0 -16
  282. package/dist/it-IT-pDWPFHEh.js +0 -16
  283. package/dist/ja-JP-scPXJ93L.js +0 -16
  284. package/dist/lt-LT-BcGNy8Ti.js +0 -16
  285. package/dist/lv-LV-CBD07r1Y.js +0 -16
  286. package/dist/nl-NL-BxJUDHMK.js +0 -16
  287. package/dist/no-NO-Drup6Jyy.js +0 -16
  288. package/dist/pl-PL-BXv8Mmzb.js +0 -16
  289. package/dist/pt-PT-D8nU-UM2.js +0 -16
  290. package/dist/ro-RO-CG33OwqS.js +0 -16
  291. package/dist/sk-SK-DV_xkO69.js +0 -16
  292. package/dist/sl-SI-B5yeoadY.js +0 -16
  293. package/dist/sv-SE-CfxyR53r.js +0 -16
  294. package/dist/types/components/Individual/mapping/mapLocalization.d.ts +0 -3
  295. package/dist/types/components/ui/atoms/OutlinedIcon/OutlinedIcon.d.ts +0 -5
  296. package/dist/types/components/ui/molecules/FormEndState/FormEndState.d.ts +0 -2
  297. package/dist/types/components/ui/molecules/FormEndState/types.d.ts +0 -8
@@ -2,19 +2,19 @@
2
2
  {
3
3
  try {
4
4
  let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
5
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "237ef78f-4427-4a89-8461-57e33116e6b6", e._sentryDebugIdIdentifier = "sentry-dbid-237ef78f-4427-4a89-8461-57e33116e6b6");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "f9161a0c-13f9-40b0-9a52-43364cd1ce26", e._sentryDebugIdIdentifier = "sentry-dbid-f9161a0c-13f9-40b0-9a52-43364cd1ce26");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
10
  import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
11
11
  import { useState, useEffect, useCallback } from "preact/hooks";
12
- import { a as useApiContext, bo as useInvalidateRootLegalEntity, bp as useMutation, t as httpPost, r as useQuery, B as skipToken, x as httpGet, a0 as createLogger, u as useI18nContext, c as useTranslation, a3 as useAnalyticsContext, a9 as useToastContext, aa as useExperimentsContext, bt as getLanguageCode, ay as useForm, K as Alert, G as Button, a6 as LoaderWrapper, aD as Field, bu as Select, bv as Checkbox, aS as ActionBar, bw as MaybeModal, be as ModalContent, bg as ModalFooter, bx as StepProgressIndicator, bh as Spacer, O as LegalEntityTypes, aj as getOwnSignatories, C as doesLegalEntityRequiresLegalRepresentative, z as getLegalRepresentative, aq as getLegalEntityNameBasedOnType, aQ as FormNavigation, d as useLegalEntity, R as ROOT_LE, L as Loader, $ as TaskTypes } from "./StoreProvider-nqVR_kWS.js";
13
- import { u as useTermsOfServiceStatus, a as useTermsOfServiceAcceptanceInfos } from "./useTermsOfServiceStatus-DCkVaRvN.js";
14
- import { C as ContractViewer, O as OutlinedIcon } from "./ContractViewer-DiT_8GRM.js";
15
- import { F as FormEndState } from "./FormEndState-D_8_v1NU.js";
12
+ import { a as useApiContext, bm as useInvalidateRootLegalEntity, bn as useMutation, t as httpPost, r as useQuery, B as skipToken, x as httpGet, a0 as createLogger, c as useTranslation, a3 as useAnalyticsContext, a9 as useToastContext, aa as useExperimentsContext, br as getLanguageCode, ay as useForm, K as Alert, G as Button, a6 as LoaderWrapper, aD as Field, bs as Select, bt as Checkbox, aS as ActionBar, bu as MaybeModal, bv as ModalContent, bw as ModalFooter, bx as StepProgressIndicator, by as Spacer, O as LegalEntityTypes, aj as getOwnSignatories, C as doesLegalEntityRequiresLegalRepresentative, z as getLegalRepresentative, aq as getLegalEntityNameBasedOnType, aQ as FormNavigation, d as useLegalEntity, R as ROOT_LE, L as Loader, $ as TaskTypes } from "./StoreProvider-Fbl3I9L7.js";
13
+ import { u as useTermsOfServiceStatus, a as useTermsOfServiceAcceptanceInfos } from "./useTermsOfServiceStatus-lCNo2Bdd.js";
14
+ import { E as EndStateLayout } from "./EndStateLayout-ChS903yq.js";
16
15
  import { d as downloadFile } from "./file-CiG1D0zy.js";
17
- import { l as localizeDateString } from "./localizeDateString-DLWgJuND.js";
16
+ import { l as localizeDateString } from "./localizeDateString-aA76e6GH.js";
17
+ import { C as ContractViewer } from "./ContractViewer-B2LwC3wV.js";
18
18
  const acceptTermsOfService = async (legalEntityId, baseUrl, termsOfServiceDocumentId, data) => {
19
19
  return httpPost(
20
20
  {
@@ -175,8 +175,7 @@ function ServiceAgreementDropin({
175
175
  asModal = false,
176
176
  handleCloseClick
177
177
  }) {
178
- const { i18n } = useI18nContext();
179
- const { i18n: i18next } = useTranslation();
178
+ const { t, i18n } = useTranslation(["contract", "common"]);
180
179
  const userEvents = useAnalyticsContext();
181
180
  const { showToast } = useToastContext();
182
181
  const { isExperimentEnabled } = useExperimentsContext();
@@ -204,10 +203,6 @@ function ServiceAgreementDropin({
204
203
  const canSign = serviceAgreementTypes?.includes(activeForm?.serviceAgreementType) && !activeForm?.acceptanceId;
205
204
  const isLastStep = activeFormIndex === forms.length - 1;
206
205
  const showSignedAlert = !!activeForm?.acceptanceId;
207
- const translationKeys = {
208
- home: "goToOverview",
209
- next: canSign ? "sign" : "continue"
210
- };
211
206
  const { refetch: downloadAcceptedTermsAsPdf } = useAcceptedTermsOfService(
212
207
  activeForm?.acceptanceId,
213
208
  "PDF",
@@ -217,7 +212,7 @@ function ServiceAgreementDropin({
217
212
  );
218
213
  const handleServiceAgreementIsNotAvailableInThatLanguage = useCallback(() => {
219
214
  showToast({
220
- label: i18n.get("failedToGetServiceAgreementInSelectedLanguageFallbackToEn"),
215
+ label: t(($) => $["failedToGetServiceAgreementInSelectedLanguageFallbackToEn"]),
221
216
  variant: "error"
222
217
  });
223
218
  }, [i18n, showToast]);
@@ -225,7 +220,7 @@ function ServiceAgreementDropin({
225
220
  handleServiceAgreementIsNotAvailableInThatLanguage,
226
221
  acceptanceId: activeForm?.acceptanceId,
227
222
  serviceAgreementType: activeForm?.serviceAgreementType,
228
- language: getLanguageCode(i18next.language)
223
+ language: getLanguageCode(i18n.language)
229
224
  });
230
225
  const { handleChangeFor, triggerValidation, data, valid, isValid, errors } = useForm({
231
226
  schema: ["signer", "acceptServiceAgreement"],
@@ -262,7 +257,7 @@ function ServiceAgreementDropin({
262
257
  await handleSign(legalEntityResponse.id, serviceAgreement.id, { acceptedBy: data.signer });
263
258
  setLoadingStatus("success");
264
259
  showToast({
265
- label: i18n.get("serviceAgreementSignedSuccessfully"),
260
+ label: t(($) => $["serviceAgreementSignedSuccessfully"]),
266
261
  variant: "success"
267
262
  });
268
263
  userEvents.addTaskEvent("Success", baseTracking);
@@ -270,7 +265,7 @@ function ServiceAgreementDropin({
270
265
  data.signer = void 0;
271
266
  } catch (e) {
272
267
  setLoadingStatus("success");
273
- showToast({ label: i18n.get("serviceAgreementSignFailed"), variant: "error" });
268
+ showToast({ label: t(($) => $["signingFailed"]), variant: "error" });
274
269
  userEvents.addTaskEvent("Encountered error", {
275
270
  ...baseTracking,
276
271
  returnType: e?.errorCode || "backend",
@@ -288,7 +283,7 @@ function ServiceAgreementDropin({
288
283
  const goHome = () => {
289
284
  userEvents.addPageEvent("Clicked button", {
290
285
  actionType: "back",
291
- label: translationKeys.home
286
+ label: "goToOverview"
292
287
  });
293
288
  handleHomeClick();
294
289
  };
@@ -319,17 +314,20 @@ function ServiceAgreementDropin({
319
314
  const onDownloadAcceptedTermsOfServiceDocument = async () => {
320
315
  const { isError, isSuccess, data: data2 } = await downloadAcceptedTermsAsPdf();
321
316
  if (isSuccess && data2?.document) {
322
- await downloadFile(data2.document, `${i18n.get(activeForm.formName)}.pdf`);
317
+ await downloadFile(
318
+ data2.document,
319
+ `${t(($) => $[activeForm.formName], { ns: "common" })}.pdf`
320
+ );
323
321
  }
324
322
  if (isError) {
325
323
  showToast({
326
- label: i18n.get("failedToDownloadAcceptedServiceAgreementDocument"),
324
+ label: t(($) => $["failedToDownloadAcceptedServiceAgreementDocument"]),
327
325
  variant: "error"
328
326
  });
329
327
  }
330
328
  };
331
329
  const onDownloadUnacceptedTermsOfServiceDocument = async () => {
332
- const languageCode = getLanguageCode(i18next.language);
330
+ const languageCode = getLanguageCode(i18n.language);
333
331
  const requestAndDownload = async (languageCode2) => {
334
332
  const response = await getTermsOfService(rootLegalEntityId.value, baseUrl.value, {
335
333
  type: activeForm.serviceAgreementType,
@@ -339,11 +337,14 @@ function ServiceAgreementDropin({
339
337
  if (!response?.document) {
340
338
  throw new Error(`No terms Of service document found in response`);
341
339
  }
342
- await downloadFile(response.document, `${i18n.get(activeForm.formName)}.pdf`);
340
+ await downloadFile(
341
+ response.document,
342
+ `${t(($) => $[activeForm.formName], { ns: "common" })}.pdf`
343
+ );
343
344
  };
344
345
  try {
345
346
  const availableLanguages = ["fr", "en"];
346
- if (availableLanguages.includes(i18next.language)) {
347
+ if (availableLanguages.includes(i18n.language)) {
347
348
  await requestAndDownload(languageCode);
348
349
  }
349
350
  await requestAndDownload("en");
@@ -353,7 +354,7 @@ function ServiceAgreementDropin({
353
354
  return;
354
355
  }
355
356
  showToast({
356
- label: i18n.get("failedToDownloadServiceAgreementDocument"),
357
+ label: t(($) => $["failedToDownloadServiceAgreementDocument"]),
357
358
  variant: "error"
358
359
  });
359
360
  }
@@ -364,8 +365,8 @@ function ServiceAgreementDropin({
364
365
  {
365
366
  variant: signers.length ? "info" : "warning",
366
367
  className: "adyen-kyc-u-margin-top-16",
367
- title: i18n.get(signers.length ? "isYourNameMissingFromSigners" : "thereAreNoSigners"),
368
- children: /* @__PURE__ */ jsx(Button, { onClick: handleAddSigner, variant: "link", children: i18n.get("addYourselfAsSigner") })
368
+ title: t(($) => $[signers.length ? "isYourNameMissingFromSigners" : "thereAreNoSigners"]),
369
+ children: /* @__PURE__ */ jsx(Button, { onClick: handleAddSigner, variant: "link", children: t(($) => $["addYourselfAsSigner"]) })
369
370
  }
370
371
  );
371
372
  const getSignedName = (acceptanceId) => {
@@ -381,11 +382,9 @@ function ServiceAgreementDropin({
381
382
  {
382
383
  variant: "success",
383
384
  className: styles.adyenKycSignedAlert,
384
- title: i18n.get("signedByOn", {
385
- values: {
386
- date: localizeDateString(activeForm.createdAt, i18n.locale) ?? "",
387
- signer: getSignedName(activeForm.acceptanceId)
388
- }
385
+ title: t(($) => $["signedByOn"], {
386
+ date: localizeDateString(activeForm.createdAt, i18n.language) ?? "",
387
+ signer: getSignedName(activeForm.acceptanceId)
389
388
  })
390
389
  }
391
390
  );
@@ -440,11 +439,11 @@ function ServiceAgreementDropin({
440
439
  variant: "secondary",
441
440
  onClick: activeForm?.acceptanceId ? onDownloadAcceptedTermsOfServiceDocument : onDownloadUnacceptedTermsOfServiceDocument,
442
441
  icon: "download",
443
- children: i18n.get("downloadAsPdf")
442
+ children: t(($) => $["downloadAsPdf"])
444
443
  }
445
444
  ) })
446
445
  ] }),
447
- !forms.length && /* @__PURE__ */ jsx(Alert, { variant: "info", title: i18n.get("nothingNeedsToBeSigned") })
446
+ !forms.length && /* @__PURE__ */ jsx(Alert, { variant: "info", title: t(($) => $["nothingNeedsToBeSigned"]) })
448
447
  ]
449
448
  }
450
449
  ),
@@ -453,7 +452,7 @@ function ServiceAgreementDropin({
453
452
  Field,
454
453
  {
455
454
  name: "signer",
456
- label: i18n.get("signer"),
455
+ label: t(($) => $["signer"]),
457
456
  className: "adyen-kyc-u-margin-top-32 adyen-kyc-u-width-half",
458
457
  errorMessage: errors.signer?.errorMessage,
459
458
  isValid: valid.signer,
@@ -464,7 +463,7 @@ function ServiceAgreementDropin({
464
463
  ...childProps,
465
464
  onChange: handleChangeFor("signer", "blur"),
466
465
  name: "signer",
467
- placeholder: i18n.get("selectSigner"),
466
+ placeholder: t(($) => $["selectSigner"]),
468
467
  selected: data.signer,
469
468
  items: signers
470
469
  }
@@ -483,7 +482,7 @@ function ServiceAgreementDropin({
483
482
  Checkbox,
484
483
  {
485
484
  ...childProps,
486
- label: i18n.get("iHaveReadAndIAcceptTheseTerms"),
485
+ label: t(($) => $["iHaveReadAndIAcceptTheseTerms"]),
487
486
  checked: data.acceptServiceAgreement ?? false,
488
487
  name: "acceptServiceAgreement",
489
488
  onChange: handleChangeFor("acceptServiceAgreement")
@@ -496,13 +495,13 @@ function ServiceAgreementDropin({
496
495
  ActionBar,
497
496
  {
498
497
  onHome: goHome,
499
- homeButtonLabel: i18n.get(translationKeys.home),
498
+ homeButtonLabel: t(($) => $["goToOverview"], { ns: "common" }),
500
499
  onNext: canSign ? handleSignClick : () => gotoForm(activeFormIndex + 1),
501
- nextButtonLabel: i18n.get(translationKeys.next),
500
+ nextButtonLabel: t(($) => $[canSign ? "sign" : "continue"], { ns: "common" }),
502
501
  nextButtonDisabled: forms.length === 0 || !canSign && isLastStep,
503
502
  onBack: () => gotoForm(activeFormIndex - 1),
504
503
  hideBackButton: activeFormIndex === 0,
505
- backButtonLabel: i18n.get("previous")
504
+ backButtonLabel: t(($) => $["previous"], { ns: "common" })
506
505
  }
507
506
  )
508
507
  ]
@@ -519,11 +518,13 @@ function ServiceAgreementDropin({
519
518
  setHasFinished(true);
520
519
  }
521
520
  };
522
- const endScreen = hasFinished && /* @__PURE__ */ jsxs(FormEndState, { children: [
523
- /* @__PURE__ */ jsx("template", { slot: "title", children: i18n.get("serviceAgreementSignedAndDated") }),
524
- /* @__PURE__ */ jsx(OutlinedIcon, { slot: "icon", name: "check" }),
525
- /* @__PURE__ */ jsx("div", { slot: "content", children: /* @__PURE__ */ jsx(Button, { onClick: () => handleCloseClick, children: i18n.get("finish") }) })
526
- ] });
521
+ const endScreen = hasFinished && /* @__PURE__ */ jsx(
522
+ EndStateLayout,
523
+ {
524
+ title: t(($) => $["serviceAgreementSignedAndDated"]),
525
+ action: /* @__PURE__ */ jsx(Button, { onClick: () => handleCloseClick, fullWidth: true, children: t(($) => $["finish"], { ns: "common" }) })
526
+ }
527
+ );
527
528
  return /* @__PURE__ */ jsx(MaybeModal, { inline: !asModal, onClose: handleCloseClick, children: /* @__PURE__ */ jsxs(ModalContent, { children: [
528
529
  /* @__PURE__ */ jsxs("article", { className: "adyen-kyc-service-agreement-content", children: [
529
530
  !asEmbedded && sidebar,
@@ -546,10 +547,10 @@ function ServiceAgreementDropin({
546
547
  icon: "chevron-left",
547
548
  onClick: () => gotoForm(activeFormIndex - 1),
548
549
  variant: "secondary",
549
- children: i18n.get("back")
550
+ children: t(($) => $["back"], { ns: "common" })
550
551
  }
551
552
  ),
552
- /* @__PURE__ */ jsx(Button, { variant: canSign ? "primary" : "secondary", onClick: handleClick, children: i18n.get(canSign ? "signAndContinue" : "continue") })
553
+ /* @__PURE__ */ jsx(Button, { variant: canSign ? "primary" : "secondary", onClick: handleClick, children: canSign ? t(($) => $["signAndContinue"]) : t(($) => $["continue"], { ns: "common" }) })
553
554
  ] })
554
555
  ] }) });
555
556
  }
@@ -8,8 +8,8 @@
8
8
  }
9
9
  ;
10
10
  import { jsxs, jsx } from "preact/jsx-runtime";
11
- import { c as useTranslation, A as AlertIcon, F as FormHeader } from "./StoreProvider-nqVR_kWS.js";
12
- import { D as DropinLayout } from "./OnboardingDropinComponent-DkkC-O2y.js";
11
+ import { c as useTranslation, A as AlertIcon, F as FormHeader } from "./StoreProvider-Fbl3I9L7.js";
12
+ import { D as DropinLayout } from "./OnboardingDropinComponent-Dvq5Ocum.js";
13
13
  function AccountSetupRejected() {
14
14
  const { t } = useTranslation();
15
15
  const content = /* @__PURE__ */ jsxs("div", { children: [
@@ -9,7 +9,7 @@
9
9
  ;
10
10
  import { jsx } from "preact/jsx-runtime";
11
11
  import cx from "classnames";
12
- import { a7 as Icon } from "./StoreProvider-nqVR_kWS.js";
12
+ import { a7 as Icon } from "./StoreProvider-Fbl3I9L7.js";
13
13
  const avatar = "adyen-kyc-avatar";
14
14
  const avatarLabel = "adyen-kyc-avatar-label";
15
15
  const avatarPrimary = "adyen-kyc-avatar-primary";
@@ -2,20 +2,21 @@
2
2
  {
3
3
  try {
4
4
  let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
5
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "43b76209-554a-44f8-90ba-584a84d71a82", e._sentryDebugIdIdentifier = "sentry-dbid-43b76209-554a-44f8-90ba-584a84d71a82");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "fbf2f2fc-e22c-45ee-a4cc-38b980c11b99", e._sentryDebugIdIdentifier = "sentry-dbid-fbf2f2fc-e22c-45ee-a4cc-38b980c11b99");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
10
  import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
11
- import { u as useI18nContext, dy as MemoizedDocumentUpload, G as Button, bc as Modal, be as ModalContent, N as Typography, as as CountryCodes, Y as CompanyTypesValues, f0 as useGlobalData, eS as getForms, $ as TaskTypes, f1 as BasicInformation, ds as getFormProps, f2 as CompanyStructure, f3 as AdditionalInformation, eM as MemoizedConstitutionalDocument, O as LegalEntityTypes, eL as FinancialInformation, cg as getDocument, ch as mapExistingFile, ci as getPageName, bA as formatObject, bm as entriesOf, b8 as businessDetailsComponentsKeyMapping, f4 as solePropBusinessDetailsKeyMapping, f5 as getDefaultRegistrationNumberType, f6 as getDefaultVatNumberType, b3 as objectsDeepEqual, d_ as operationalAddressIsSameIds, eO as COUNTRIES_USING_COMPANY_SEARCH, f7 as FIELDS_NEEDED_FOR_COMPANY_SEARCH, dh as keysOf, i as isUndefinedOrNull, dL as isDateOlderThanAYear, aN as summaryItem, f8 as solePropBusinessDetailsApiKeyMapping, e$ as businessDetailsApiKeyMapping, f9 as isRegistrationNumberAbsentStateV4Scenario, di as isEmpty, fa as COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT, cl as createDocumentRequest, ba as datasetUtilities, cG as mapAddressLabels, eK as companyTypeMetadata, a0 as createLogger, cF as filterOutUnwantedAssociationsIfRootLE, bU as isValidationError, bV as processValidationErrors, bW as isMaintenanceModeError, fb as getProp, at as isEmpty$1, fc as documentFormsIds, av as resolveFieldMetadata, e8 as registrationNumberDefaultFieldMetadata, fd as inferCompanyRegistrationNumberType, fe as getCompanyRegistrationNumberOptions, e9 as registrationNumberDefaultFieldConfig, cb as taxInformationDefaultFieldMetadata, ff as countryToTaxInfoTypeMap, cc as taxInformationDefaultFieldConfig, fg as getKeyForField, co as drop, ao as getOwnEntityAssociations, cP as doArraysMatch, cL as getFileExtention, X as useAccountHolder, a9 as useToastContext, a3 as useAnalyticsContext, aa as useExperimentsContext, v as useSettingsContext, a as useApiContext, dV as verifiedBusiness, br as useQueryClient, fh as useStateContext, w as SettingNames, fi as setIsBankAccountRequestedForOrganization, bP as getAssociatedLeAnalyticsPayload, bb as getCapabilityProblems, cp as documentApiUtils, cD as composePerScenarioFormConfigurations, cx as useScenarioConfiguration, eW as rules, cy as getPropsFromConfigurations, eX as useCompanySearch, fj as useCompanySelection, eY as useVerifyTin, bQ as getRequiredForms, bR as addValidityToForms, fk as useClearCompanyData, bS as useFormComposer, fl as setVerifiedBusiness, fm as FormWrapper, bi as Confirm, fn as solePropBusinessDetailsDocumentMapping, e_ as businessDetailsDocumentMapping } from "./StoreProvider-nqVR_kWS.js";
11
+ import { u as useI18nContext, dy as MemoizedDocumentUpload, G as Button, be as Modal, bv as ModalContent, N as Typography, as as CountryCodes, Y as CompanyTypesValues, f0 as useGlobalData, eS as getForms, $ as TaskTypes, f1 as BasicInformation, ds as getFormProps, f2 as CompanyStructure, f3 as AdditionalInformation, eM as MemoizedConstitutionalDocument, O as LegalEntityTypes, eL as FinancialInformation, ch as getDocument, ci as mapExistingFile, cj as getPageName, bB as formatObject, bk as entriesOf, ba as businessDetailsComponentsKeyMapping, f4 as solePropBusinessDetailsKeyMapping, f5 as getDefaultRegistrationNumberType, f6 as getDefaultVatNumberType, b3 as objectsDeepEqual, d_ as operationalAddressIsSameIds, eO as COUNTRIES_USING_COMPANY_SEARCH, f7 as FIELDS_NEEDED_FOR_COMPANY_SEARCH, dj as keysOf, i as isUndefinedOrNull, dL as isDateOlderThanAYear, aN as summaryItem, f8 as solePropBusinessDetailsApiKeyMapping, e$ as businessDetailsApiKeyMapping, f9 as isRegistrationNumberAbsentStateV4Scenario, co as isEmpty, fa as COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT, cm as createDocumentRequest, bc as datasetUtilities, cI as mapAddressLabels, eK as companyTypeMetadata, a0 as createLogger, cH as filterOutUnwantedAssociationsIfRootLE, bV as isValidationError, bW as processValidationErrors, bX as isMaintenanceModeError, fb as getProp, at as isEmpty$1, fc as documentFormsIds, av as resolveFieldMetadata, e8 as registrationNumberDefaultFieldMetadata, fd as inferCompanyRegistrationNumberType, fe as getCompanyRegistrationNumberOptions, e9 as registrationNumberDefaultFieldConfig, cc as taxInformationDefaultFieldMetadata, ff as countryToTaxInfoTypeMap, cd as taxInformationDefaultFieldConfig, fg as getKeyForField, cq as drop, ao as getOwnEntityAssociations, cR as doArraysMatch, cN as getFileExtention, X as useAccountHolder, a9 as useToastContext, a3 as useAnalyticsContext, aa as useExperimentsContext, v as useSettingsContext, a as useApiContext, dV as verifiedBusiness, bp as useQueryClient, fh as useStateContext, w as SettingNames, fi as setIsBankAccountRequestedForOrganization, bQ as getAssociatedLeAnalyticsPayload, bd as getCapabilityProblems, cr as documentApiUtils, cF as composePerScenarioFormConfigurations, cz as useScenarioConfiguration, eW as rules, cA as getPropsFromConfigurations, eX as useCompanySearch, fj as useCompanySelection, eY as useVerifyTin, bR as getRequiredForms, bS as addValidityToForms, fk as useClearCompanyData, bT as useFormComposer, fl as setVerifiedBusiness, fm as FormWrapper, bg as Confirm, fn as solePropBusinessDetailsDocumentMapping, e_ as businessDetailsDocumentMapping } from "./StoreProvider-Fbl3I9L7.js";
12
12
  import { useState, useEffect, useRef, useMemo, useCallback } from "preact/hooks";
13
- import { u as useCreateLegalEntity, a as useUpdateLegalEntity } from "./useUpdateLegalEntity-xfJlMkrb.js";
14
- import { h as hasDataChanged } from "./hasDataChanged-DIVMD4Rh.js";
15
- import { o as organizationTypesToSkipCompanyStructureForm } from "./utils-CusOxwr8.js";
16
- import { g as getFieldsWithExistingData } from "./getFieldsWithExistingData-D1vVVeaf.js";
13
+ import { u as useCreateLegalEntity, a as useUpdateLegalEntity } from "./useUpdateLegalEntity-CcUHqJyo.js";
14
+ import { h as hasDataChanged } from "./hasDataChanged-f49kid1W.js";
15
+ import { o as organizationTypesToSkipCompanyStructureForm } from "./utils-Jk_zHwaz.js";
16
+ import { g as getFieldsWithExistingData } from "./getFieldsWithExistingData-BjmOzrhP.js";
17
17
  import cx from "classnames";
18
- import { m as mapFinancialReportsToFinancialInformation, a as mapFinancialInformationToFinancialReport } from "./mapFinancialReportsToFinancialInformation-anU-0sl0.js";
18
+ import { m as mapFinancialReportsToFinancialInformation, a as mapFinancialInformationToFinancialReport } from "./mapFinancialReportsToFinancialInformation-Dx35AZ1B.js";
19
+ import { a as mapApiScriptLocalizationToSchemaFields, m as mapSchemaFieldsToApiScriptLocalization } from "./mapScriptLocalization-H2Re3k5X.js";
19
20
  import { f as formatCurrency } from "./formatCurrency-CMOSdJMB.js";
20
21
  const stripWhitespace = (str) => str.replace(/\s/g, "");
21
22
  const toNormalizedString = (s) => stripWhitespace(s.toLowerCase());
@@ -692,21 +693,22 @@ const mapAdditionalInformation = (data, legalEntity) => {
692
693
  return { ...result, ...dbaNameFields, ...isUen };
693
694
  };
694
695
  const mapLocalization = (data) => {
695
- const mappings = [
696
- { formField: "jaHaniLegalCompanyName", script: "ja-Hani", legalEntityField: "legalName" },
697
- { formField: "jaKanaLegalCompanyName", script: "ja-Kana", legalEntityField: "legalName" }
698
- ];
699
- const localizedScriptsAndFields = data.organization?.localization || data.soleProprietorship?.localization;
700
- if (!localizedScriptsAndFields) {
701
- return;
696
+ const localization = data.organization?.localization;
697
+ if (!localization) return {};
698
+ let result = {};
699
+ for (const { script, fields } of localization) {
700
+ const schemaFieldsFromLocalization = mapApiScriptLocalizationToSchemaFields({
701
+ script,
702
+ fields: {
703
+ // mismatch between API `legalName` and schema `legalCompanyName`
704
+ legalCompanyName: fields.legalName
705
+ }
706
+ });
707
+ result = {
708
+ ...result,
709
+ ...schemaFieldsFromLocalization
710
+ };
702
711
  }
703
- const result = {};
704
- mappings.forEach((mapping) => {
705
- const value = localizedScriptsAndFields.find(
706
- (localization) => localization.script === mapping.script
707
- )?.fields?.[mapping.legalEntityField];
708
- result[mapping.formField] = value;
709
- });
710
712
  return result;
711
713
  };
712
714
  const mapLegalEntityToBusinessDetailsSchema = (legalEntity, parentEntity, isExperimentEnabled) => {
@@ -758,13 +760,15 @@ const mapLegalEntityToBusinessDetailsSchema = (legalEntity, parentEntity, isExpe
758
760
  companyFinancialInformation: {}
759
761
  };
760
762
  const businessDetailsSchema = legalEntity.type === "organization" ? orgSchema : buildSolePropSchema();
761
- const localization = mapLocalization(legalEntity);
762
763
  return entriesOf(businessDetailsSchema).reduce((componentData, [key]) => {
763
764
  switch (key) {
764
765
  case "basicInformation": {
765
766
  return {
766
767
  ...componentData,
767
- [key]: { ...mapBasicInformation(businessDetailsSchema[key]), ...localization ?? {} }
768
+ [key]: {
769
+ ...mapBasicInformation(businessDetailsSchema[key]),
770
+ ...mapLocalization(legalEntity)
771
+ }
768
772
  };
769
773
  }
770
774
  case "businessSelection": {
@@ -1034,7 +1038,14 @@ const mapBusinessDetailsSchemaToLegalEntity = (data, accountHolder, isExperiment
1034
1038
  const registrationNumber = COUNTRIES_USING_COMPANY_SEARCH.includes(
1035
1039
  data.basicInformation?.country
1036
1040
  ) ? data.basicInformation?.registrationNumber : data.additionalInformation?.registrationNumber;
1037
- const localization = processLocalizationFields(data.basicInformation);
1041
+ const localization = [
1042
+ mapSchemaFieldsToApiScriptLocalization(data.basicInformation ?? {}, "jaHani"),
1043
+ mapSchemaFieldsToApiScriptLocalization(data.basicInformation ?? {}, "jaKana")
1044
+ ].filter(({ fields }) => !isEmpty(fields)).map(({ script, fields }) => ({
1045
+ script,
1046
+ // mismatch between API `legalName` and schema `legalCompanyName`
1047
+ fields: { legalName: fields.legalCompanyName }
1048
+ }));
1038
1049
  const doingBusinessAs = data.additionalInformation?.doingBusinessAs ?? "";
1039
1050
  const entityObject = isEmpty(data.companyStructure) ? requestObj.soleProprietorship : requestObj.organization;
1040
1051
  if (entityObject) {
@@ -1050,7 +1061,7 @@ const mapBusinessDetailsSchemaToLegalEntity = (data, accountHolder, isExperiment
1050
1061
  requestObj.organization.registrationNumberAbsent = false;
1051
1062
  }
1052
1063
  }
1053
- if (localization) {
1064
+ if (requestObj.organization && entityObject && localization.length > 0) {
1054
1065
  entityObject.localization = localization;
1055
1066
  }
1056
1067
  if (data.additionalInformation?.exemptedFromRegistrationNumber && canSaveRegNumberAbsentState && requestObj.organization) {
@@ -1091,44 +1102,6 @@ const mapBusinessDetailsSchemaToLegalEntity = (data, accountHolder, isExperiment
1091
1102
  }
1092
1103
  return requestObj;
1093
1104
  };
1094
- const processLocalizationFields = (data) => {
1095
- if (!data) {
1096
- return;
1097
- }
1098
- const LOCALIZATION_FIELDS = {
1099
- jaHaniLegalCompanyName: { script: "ja-Hani", fieldName: "legalName" },
1100
- jaKanaLegalCompanyName: { script: "ja-Kana", fieldName: "legalName" }
1101
- };
1102
- const localization = {};
1103
- Object.keys(LOCALIZATION_FIELDS).forEach((field) => {
1104
- const basicInformationFieldSchemaField = field;
1105
- if (data[basicInformationFieldSchemaField]) {
1106
- const script = LOCALIZATION_FIELDS[basicInformationFieldSchemaField]?.script;
1107
- const fieldName = LOCALIZATION_FIELDS[basicInformationFieldSchemaField]?.fieldName;
1108
- if (script && localization[script]) {
1109
- localization[script] = {
1110
- fields: {
1111
- ...localization[script].fields,
1112
- [fieldName]: data[basicInformationFieldSchemaField]
1113
- }
1114
- };
1115
- } else if (script && !localization[script]) {
1116
- localization[script] = {
1117
- fields: {
1118
- [fieldName]: data[basicInformationFieldSchemaField]
1119
- }
1120
- };
1121
- }
1122
- }
1123
- });
1124
- if (Object.keys(localization).length === 0) {
1125
- return;
1126
- }
1127
- return Object.keys(localization).map((script) => ({
1128
- script,
1129
- fields: { ...localization[script].fields }
1130
- }));
1131
- };
1132
1105
  const MANDATORY_FIELDS_BUSINESS_DETAILS = [
1133
1106
  "basicInformation.legalCompanyName",
1134
1107
  "basicInformation.country"
@@ -2,15 +2,15 @@
2
2
  {
3
3
  try {
4
4
  let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
5
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "8a42ea9b-4859-4af4-a402-4329753b07ad", e._sentryDebugIdIdentifier = "sentry-dbid-8a42ea9b-4859-4af4-a402-4329753b07ad");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "e0ca6f85-dbdc-4235-9aa2-3d243dfd6295", e._sentryDebugIdIdentifier = "sentry-dbid-e0ca6f85-dbdc-4235-9aa2-3d243dfd6295");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
10
  import { jsx } from "preact/jsx-runtime";
11
11
  import { useMemo } from "preact/hooks";
12
- import { d as useLegalEntity, g as getLegalEntityCountry, L as Loader } from "./StoreProvider-nqVR_kWS.js";
13
- import { B as BusinessFinancingDropin } from "./BusinessFinancingDropin-DQ56QSPj.js";
12
+ import { d as useLegalEntity, g as getLegalEntityCountry, L as Loader } from "./StoreProvider-Fbl3I9L7.js";
13
+ import { B as BusinessFinancingDropin } from "./BusinessFinancingDropin-BpRf2LTA.js";
14
14
  function BusinessFinancingComponent({
15
15
  legalEntityId,
16
16
  onSubmitSuccess