@adyen/kyc-components 3.85.0 → 3.86.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 (398) hide show
  1. package/dist/{AcceptTermsOfServiceComponent-DWt6MA7A.js → AcceptTermsOfServiceComponent-DzMlzUjz.js} +16 -17
  2. package/dist/{Accordion-DQSd9JrF.js → Accordion-ZHPTn2Gl.js} +2 -2
  3. package/dist/{AccountSetupRejected-Y2jV7DOd.js → AccountSetupRejected-DON-7H74.js} +4 -4
  4. package/dist/{Address-CN31gTRW.js → Address-ChPj2pfR.js} +337 -22
  5. package/dist/{Alert-B2qwr9au.js → Alert-CeZqoFeT.js} +3 -3
  6. package/dist/{Avatar-CrL6cVDB.js → Avatar-zXT7v3KF.js} +2 -2
  7. package/dist/{BusinessDetailsMultiformDropin-BB1mTi0Z.js → BusinessDetailsMultiformDropin-DKiYg8gJ.js} +89 -3112
  8. package/dist/{BusinessFinancingComponent-BevBrUTE.js → BusinessFinancingComponent-BRziB5i-.js} +6 -6
  9. package/dist/{BusinessFinancingDropin-BgU5hfv0.js → BusinessFinancingDropin-CUmKL5bO.js} +21 -38
  10. package/dist/{BusinessFinancingPage-u2Xu42u-.js → BusinessFinancingPage-DhhnCxFQ.js} +4 -4
  11. package/dist/{BusinessTypeSelectionPage-BNxEzkjO.js → BusinessTypeSelectionPage-B_dVM7cC.js} +9 -8
  12. package/dist/Card-Bz2B4J0v.js +82 -0
  13. package/dist/ConstitutionalDocument-Dt9O9bVo.js +143 -0
  14. package/dist/{CountryField-CFppUh42.js → CountryField-Bv9P8dRJ.js} +110 -78
  15. package/dist/CreateIndividualComponent-Mw4AiW_M.js +71 -0
  16. package/dist/CreateTransferInstrumentComponent-usUQlcH_.js +66 -0
  17. package/dist/{Currency-Zz8j3LFf.js → Currency-SzvigNNo.js} +8 -63
  18. package/dist/{CustomerSupport-CkqG00fn.js → CustomerSupport-C_KLB51k.js} +21 -9
  19. package/dist/{DebugModal-Cxp_Lbjk.js → DebugModal-DYolUZQS.js} +9 -9
  20. package/dist/{DecisionMakerDetailsPage-kpoxsSYP.js → DecisionMakerDetailsPage-C2BzKLSi.js} +7 -7
  21. package/dist/{DecisionMakers-DMboYynJ.js → DecisionMakers-DTYzQWdY.js} +18 -20
  22. package/dist/{EmbeddedStatus-DdZv9Kwp.js → EmbeddedStatus-jepajhAF.js} +3 -3
  23. package/dist/{EndStateLayout-Cswr0wiZ.js → EndStateLayout-DQm7Xrqx.js} +2 -2
  24. package/dist/{useFormContext-DrrsFJH7.js → FormFlow-A9b0QEcM.js} +10 -16
  25. package/dist/{FormNavigation-DrejHtXO.js → FormNavigation-DEdNWaAc.js} +5 -5
  26. package/dist/{useGlobalData-rR_jnTzW.js → FormWrapper-DjWyqVD2.js} +12 -79
  27. package/dist/{IndividualOnfidoDropin-CydUe7_6.js → IndividualOnfido-BMIkKHvJ.js} +8187 -6328
  28. package/dist/IndividualOnfidoDropin-DBQF0Onh.js +2502 -0
  29. package/dist/{InputText-EX5kyD9L.js → InputText-BG-TiSNN.js} +4 -4
  30. package/dist/{Introduction-DncY2r7T.js → Introduction-BgoEJd8o.js} +4 -4
  31. package/dist/{JpAddress-BTfvrykR.js → JpAddress-Jxj9u4D5.js} +8 -8
  32. package/dist/{LegalRepresentativeDetailsPage-DxqaU2W7.js → LegalRepresentativeDetailsPage-BH5AnQhk.js} +5 -5
  33. package/dist/{ListItem-pn0XFAz_.js → ListItem-DIDj0vuO.js} +3 -3
  34. package/dist/{ManageIndividualComponent-CKRuUS0t.js → ManageIndividualComponent-CJKXW8rK.js} +5 -5
  35. package/dist/{ManageTermsOfServiceComponent-DDgriC3w.js → ManageTermsOfServiceComponent-DNf00D1s.js} +5 -5
  36. package/dist/{ManageTransferInstrumentComponent-BoQn6JaV.js → ManageTransferInstrumentComponent-gVWN389q.js} +14 -13
  37. package/dist/{MaybeModal-B1X7K4z1.js → MaybeModal-D51ALTH6.js} +3 -3
  38. package/dist/{Modal-ConNvgj4.js → Modal-C9aImxis.js} +2 -2
  39. package/dist/OnboardingDropinComponent-D-tQ12Sy.js +9791 -0
  40. package/dist/{PayoutDetailsDropin-CHOa81Ot.js → PayoutDetailsDropin-CxWPXV7j.js} +288 -158
  41. package/dist/{Review-BAuL4AQ-.js → Review-CRhM6n_P.js} +8 -8
  42. package/dist/RootBusinessDetailsPage-DZrT_e0g.js +61 -0
  43. package/dist/{RootBusinessLinesPage-D-YRRyIW.js → RootBusinessLinesPage-CJUpoVy5.js} +267 -144
  44. package/dist/RootIndividualDetailsPage-pqVuzOoJ.js +80 -0
  45. package/dist/{SignPCIComponent-B6FQiV5E.js → SignPCIComponent-BNbx3OzX.js} +11 -11
  46. package/dist/{SingpassSelection-DxGUYazk.js → SingpassSelection-BAa3S705.js} +4 -5
  47. package/dist/SoleProprietorshipPage-Bhw3GBKP.js +60 -0
  48. package/dist/{SourceOfFundsPage-Ce-Mim_H.js → SourceOfFundsPage-CJXpHSgo.js} +24 -29
  49. package/dist/{StepProgressIndicator-BymtNCPV.js → StepProgressIndicator-Dncrs7ra.js} +2 -2
  50. package/dist/{StoreProvider-BYjTSjnX.js → StoreProvider-CWnZNw9D.js} +427 -305
  51. package/dist/{TaskItemStatus-BholBQ7C.js → TaskItemStatus-D3ri_-L2.js} +3 -3
  52. package/dist/{TaxReportingDropin-CSa5vto5.js → TaxReportingDropin-Du7KU--L.js} +15 -17
  53. package/dist/{TrustDetailsPage-CYMeuEyr.js → TrustDetailsPage-SGmHwgzj.js} +24 -32
  54. package/dist/{TrustMemberCompanyPage-DICY9KDR.js → TrustMemberCompanyPage-BkQ9q4_T.js} +6 -6
  55. package/dist/{TrustMemberIndividualPage-DUGmI852.js → TrustMemberIndividualPage-CIr73hS-.js} +5 -5
  56. package/dist/UnincorporatedPartnershipIndividualPage-DQxHTyUp.js +65 -0
  57. package/dist/{UnincorporatedPartnershipMemberCompanyPage-CuvkBZ2N.js → UnincorporatedPartnershipMemberCompanyPage-DOWqNUHn.js} +6 -6
  58. package/dist/VerificationErrorAlert-DDsMxj76.js +79 -0
  59. package/dist/{ViewVerificationStatusComponent-zXuO8CY1.js → ViewVerificationStatusComponent-Hqp0gnec.js} +4 -4
  60. package/dist/adyen-business-financing.js +3 -3
  61. package/dist/adyen-individual-configuration.js +3 -3
  62. package/dist/adyen-individual-status.js +3 -3
  63. package/dist/adyen-kyc-components.js +20 -20
  64. package/dist/adyen-onboarding.js +2 -2
  65. package/dist/adyen-terms-of-service-management.js +3 -3
  66. package/dist/adyen-terms-of-service-status.js +3 -3
  67. package/dist/adyen-transfer-instrument-configuration.js +3 -3
  68. package/dist/adyen-transfer-instrument-management.js +3 -3
  69. package/dist/adyen-verification-status.js +3 -3
  70. package/dist/{bg-BG-fr-xfUBV.js → bg-BG-B1GR6lKu.js} +3 -1
  71. package/dist/{bg-BG-BIOMFPaW.js → bg-BG-BC1dwNN2.js} +2 -5
  72. package/dist/bg-BG-BJo9yIYj.js +13 -0
  73. package/dist/bg-BG-D8qq7TQJ.js +94 -0
  74. package/dist/bg-BG-a6CQ0hKw.js +13 -0
  75. package/dist/{bg-BG-Cs_1PU3v.js → bg-BG-e6Rs6yz_.js} +4 -1
  76. package/dist/{cs-CZ-DNWTRefA.js → cs-CZ-2foXfkBk.js} +2 -5
  77. package/dist/cs-CZ-BAr1-JAS.js +13 -0
  78. package/dist/cs-CZ-ChGeQ9s0.js +94 -0
  79. package/dist/{cs-CZ-C0sNB1Fm.js → cs-CZ-DBQXByj7.js} +3 -1
  80. package/dist/cs-CZ-LGBI1w0Z.js +13 -0
  81. package/dist/{cs-CZ-B2WAqmaW.js → cs-CZ-Q6NVYK-k.js} +4 -1
  82. package/dist/da-DK-914Viqia.js +13 -0
  83. package/dist/{da-DK-8dk9Q_Wk.js → da-DK-CjjWmhN6.js} +3 -1
  84. package/dist/da-DK-CyHH8kX3.js +94 -0
  85. package/dist/{da-DK-D-eeokQn.js → da-DK-DSYEF7Q1.js} +4 -1
  86. package/dist/{da-DK-D-PlwKvZ.js → da-DK-DU3_xdWg.js} +2 -5
  87. package/dist/da-DK-DoHb4ssx.js +13 -0
  88. package/dist/{de-DE-Dcs3W1fT.js → de-DE-B9-ILIdw.js} +4 -1
  89. package/dist/{de-DE-4GAd_srm.js → de-DE-BODG29hR.js} +2 -5
  90. package/dist/de-DE-BXKZNAA1.js +13 -0
  91. package/dist/de-DE-DL6SrIBE.js +94 -0
  92. package/dist/{de-DE-CCyKie8B.js → de-DE-DoQHxDRp.js} +3 -1
  93. package/dist/de-DE-R6YgDOo5.js +13 -0
  94. package/dist/{analytics-DkXXx2b6.js → debouncedInputEvent-B3Lwtvx_.js} +7 -21
  95. package/dist/{validate-DzaSMOa2.js → documentUtils-C2iCagu9.js} +3 -167
  96. package/dist/{dropinUtils-CCEDaAJW.js → dropinUtils-L9qJuAw0.js} +4 -20
  97. package/dist/el-GR-BnMw4HQ7.js +13 -0
  98. package/dist/{el-GR-D7zMcBtK.js → el-GR-CnoZeZlX.js} +3 -1
  99. package/dist/{el-GR-DBum-QDu.js → el-GR-DYjcbiSc.js} +4 -1
  100. package/dist/{el-GR-Ddnh0NhQ.js → el-GR-DcIdm3iK.js} +2 -5
  101. package/dist/el-GR-DgaUGjyJ.js +13 -0
  102. package/dist/el-GR-l0JeDNPy.js +94 -0
  103. package/dist/{en-US-DjF6iC7G.js → en-US-BxEW5N6f.js} +44 -5
  104. package/dist/{en-US-BwDZ0WHW.js → en-US-C5WyUweF.js} +3 -1
  105. package/dist/en-US-CTZwL084.js +13 -0
  106. package/dist/{en-US-BCFNoF5y.js → en-US-DYo4OF-P.js} +8 -7
  107. package/dist/{en-US-DdeSoN_2.js → en-US-gsp7CD_E.js} +5 -1
  108. package/dist/{es-ES-JvAvmB2A.js → es-ES-BMrse1nQ.js} +3 -1
  109. package/dist/es-ES-BWAlCq7R.js +13 -0
  110. package/dist/{es-ES-C7XjLOHi.js → es-ES-C-tTuMLH.js} +4 -1
  111. package/dist/es-ES-C1ClJ2XE.js +94 -0
  112. package/dist/{es-ES-C4lENXHH.js → es-ES-CMQqgMEJ.js} +2 -5
  113. package/dist/es-ES-dMSfTLXF.js +13 -0
  114. package/dist/{et-EE-SJf3_Ega.js → et-EE-BE8bHZns.js} +3 -1
  115. package/dist/et-EE-BG_Y29oV.js +94 -0
  116. package/dist/{et-EE-BUG05EDz.js → et-EE-BzLAp08F.js} +4 -1
  117. package/dist/et-EE-D9SV0taO.js +13 -0
  118. package/dist/{et-EE-3EQr-1cj.js → et-EE-DcpuYQwB.js} +2 -5
  119. package/dist/et-EE-l977xCZ_.js +13 -0
  120. package/dist/fi-FI-0ScajGUB.js +13 -0
  121. package/dist/{fi-FI-Byvvcxxq.js → fi-FI-4GTHkwOL.js} +2 -5
  122. package/dist/{fi-FI-Cy2hAl0B.js → fi-FI-Bmu7sndb.js} +3 -1
  123. package/dist/fi-FI-C7GrKbXx.js +13 -0
  124. package/dist/fi-FI-bIhXiQPL.js +94 -0
  125. package/dist/{fi-FI-CEzjKgiz.js → fi-FI-pyHLbmel.js} +4 -1
  126. package/dist/{MaskedInput-DB6EYmfa.js → fieldConfigurations-DVV23oeM.js} +616 -14
  127. package/dist/{fr-FR-E_UubsZ-.js → fr-FR-Ba-HRBQ7.js} +2 -5
  128. package/dist/fr-FR-Bj275MRb.js +94 -0
  129. package/dist/fr-FR-CqCcxkgA.js +13 -0
  130. package/dist/{fr-FR-DNJiLv9b.js → fr-FR-DG3tEkdN.js} +4 -1
  131. package/dist/fr-FR-o45TzYMp.js +13 -0
  132. package/dist/{fr-FR-BmW46mYd.js → fr-FR-ufKVxWpT.js} +3 -1
  133. package/dist/getFieldsWithExistingData-C6JBh3D6.js +22 -0
  134. package/dist/{getName-Dc03c4n_.js → getName-k5oRc0oZ.js} +9 -2
  135. package/dist/{hasDataChanged-CUdKM92N.js → hasDataChanged-CogwJI1I.js} +2 -2
  136. package/dist/{hr-HR-TVOgDkBf.js → hr-HR-BFx1T11G.js} +2 -5
  137. package/dist/{hr-HR-WMnlxMEY.js → hr-HR-BRFErTkv.js} +4 -1
  138. package/dist/{hr-HR-c1Si_0s4.js → hr-HR-BYXLJcPZ.js} +3 -1
  139. package/dist/hr-HR-CL0q_D2U.js +94 -0
  140. package/dist/hr-HR-CoCrArfg.js +13 -0
  141. package/dist/hr-HR-YG9hvMMj.js +13 -0
  142. package/dist/hu-HU-BrxUJuJh.js +13 -0
  143. package/dist/{hu-HU-B2nrl0pw.js → hu-HU-CJA8w351.js} +4 -1
  144. package/dist/hu-HU-DIurnBC3.js +13 -0
  145. package/dist/{hu-HU-DRONW_47.js → hu-HU-GXvzHwu9.js} +2 -5
  146. package/dist/{hu-HU-CibGC8KY.js → hu-HU-J4qBifyy.js} +3 -1
  147. package/dist/hu-HU-cLqGFTTR.js +94 -0
  148. package/dist/{iframeWidget-BWwxgbNs.js → iframeWidget-D2CKFlJk.js} +4 -4
  149. package/dist/{it-IT-BMjuva_2.js → it-IT-B_5GkLBx.js} +3 -1
  150. package/dist/{it-IT-DuBLJIdz.js → it-IT-Bw3VIHJB.js} +2 -5
  151. package/dist/it-IT-C0Qk47kh.js +94 -0
  152. package/dist/it-IT-CNS4NmYX.js +13 -0
  153. package/dist/it-IT-Cztl5jRY.js +13 -0
  154. package/dist/{it-IT-BRmX2jEi.js → it-IT-mhNjrQZn.js} +4 -1
  155. package/dist/{ja-JP-Cr_qjpZ2.js → ja-JP-BUrknIDB.js} +3 -1
  156. package/dist/{ja-JP-CCnzjx-u.js → ja-JP-BxEWI56P.js} +9 -1
  157. package/dist/{ja-JP-gRRH8Eph.js → ja-JP-CfrHlRGC.js} +4 -1
  158. package/dist/{ja-JP-CJ_j_HAA.js → ja-JP-DI7lRfpI.js} +2 -5
  159. package/dist/ja-JP-DSdZj-it.js +94 -0
  160. package/dist/ja-JP-DXkV1ta4.js +13 -0
  161. package/dist/{localizeDateString-rfEOu5f7.js → localizeDateString-ZCoTLjs1.js} +2 -2
  162. package/dist/lt-LT-BJTBEa5D.js +13 -0
  163. package/dist/lt-LT-C-dKiExL.js +94 -0
  164. package/dist/{lt-LT-BJQDUanx.js → lt-LT-C0Acftnm.js} +4 -1
  165. package/dist/lt-LT-D1viSP-v.js +13 -0
  166. package/dist/{lt-LT-DjNjg3Pl.js → lt-LT-L0wG5Pd2.js} +3 -1
  167. package/dist/{lt-LT-CBBDNCnp.js → lt-LT-ewVNPhQN.js} +2 -5
  168. package/dist/lv-LV-AkiOewnL.js +13 -0
  169. package/dist/{lv-LV-h3nTokkM.js → lv-LV-Bnq61WAt.js} +4 -1
  170. package/dist/{lv-LV-BpRfRfMz.js → lv-LV-DFvpmmGg.js} +3 -1
  171. package/dist/lv-LV-GI-ZDM0K.js +13 -0
  172. package/dist/{lv-LV-CtIe38WU.js → lv-LV-JqXvRt4T.js} +2 -5
  173. package/dist/lv-LV-UkEOuqFz.js +94 -0
  174. package/dist/{mapExistingFile-D_HVWRXe.js → mapExistingFile-txzqej6F.js} +5 -80
  175. package/dist/mapFinancialReportsToFinancialInformation-DoTIj0Q-.js +67 -0
  176. package/dist/mapJpAddressSchemaToAddressLocalizations-pPCQCgRx.js +63 -0
  177. package/dist/{mapLegalEntityToIndividualOnfidoSchema-DsQrqqP5.js → mapLegalEntityToIndividualOnfidoSchema-B8NxtO2j.js} +3 -63
  178. package/dist/{mapTransferInstrumentToPayoutAccount-MugvfqfK.js → mapTransferInstrumentToPayoutAccount-D9lyD7nx.js} +2 -2
  179. package/dist/nl-NL-B6B4Z_tr.js +13 -0
  180. package/dist/nl-NL-Cfr5hMtI.js +94 -0
  181. package/dist/{nl-NL-CE4l8R5l.js → nl-NL-DR1wVqQC.js} +2 -5
  182. package/dist/{nl-NL-oaBDOlm6.js → nl-NL-UhpFianh.js} +3 -1
  183. package/dist/nl-NL-VneIcgWO.js +13 -0
  184. package/dist/{nl-NL-YzDSCWLL.js → nl-NL-donw5yvS.js} +4 -1
  185. package/dist/no-NO-ASO8Je2l.js +94 -0
  186. package/dist/{no-NO-B1_YJlMP.js → no-NO-BZmigu6-.js} +2 -5
  187. package/dist/{no-NO-BTrfxWS7.js → no-NO-DRF-gOWI.js} +3 -1
  188. package/dist/{no-NO-Big2B13b.js → no-NO-Dev7r3VA.js} +4 -1
  189. package/dist/no-NO-Dn1LUbDp.js +13 -0
  190. package/dist/no-NO-Dqp598Ox.js +13 -0
  191. package/dist/payout-verification-instant-5u-wvFKv.js +41 -0
  192. package/dist/payout-verification-manual-BJsf7QPE.js +90 -0
  193. package/dist/{pl-PL-DGYFY42P.js → pl-PL-BKxhMICw.js} +2 -5
  194. package/dist/pl-PL-C1cP4Qpn.js +13 -0
  195. package/dist/pl-PL-CG4rvgUo.js +94 -0
  196. package/dist/{pl-PL-C72GTDxW.js → pl-PL-CHyLS1B7.js} +3 -1
  197. package/dist/{pl-PL-CL483jMb.js → pl-PL-DU_Xulyu.js} +4 -1
  198. package/dist/pl-PL-Zdh_Xu43.js +13 -0
  199. package/dist/{process-field-configurations-CiECrUSj.js → process-field-configurations-D2EUZow3.js} +3 -3
  200. package/dist/{pt-BR-CtFCi7U4.js → pt-BR-CFZE5Nop.js} +3 -1
  201. package/dist/{pt-BR-DJOzf0y2.js → pt-BR-DeXo4rsi.js} +4 -1
  202. package/dist/pt-BR-DkzLiK7Y.js +13 -0
  203. package/dist/pt-BR-DqLaaG4L.js +13 -0
  204. package/dist/pt-BR-IWTcYKu9.js +94 -0
  205. package/dist/{pt-BR-Co8OqKh-.js → pt-BR-wAIdhUru.js} +2 -5
  206. package/dist/{pt-PT-XAn7WGle.js → pt-PT-Bc9JI4eu.js} +3 -1
  207. package/dist/{pt-PT-pKLoM66X.js → pt-PT-C1qHVe7L.js} +2 -5
  208. package/dist/pt-PT-CoTUf3zo.js +13 -0
  209. package/dist/{pt-PT-B3qoJ3Fr.js → pt-PT-DkJdR6SS.js} +4 -1
  210. package/dist/pt-PT-LZZYQKaC.js +94 -0
  211. package/dist/pt-PT-uiREjC_e.js +13 -0
  212. package/dist/{resolveEnvironment-DTYC79J1.js → resolveEnvironment-CU4TOfg6.js} +3 -3
  213. package/dist/{ro-RO-Ct_BJvsc.js → ro-RO-BDjHimxe.js} +4 -1
  214. package/dist/{ro-RO-qX8X1Q1m.js → ro-RO-BFzooIri.js} +3 -1
  215. package/dist/ro-RO-C835aMET.js +13 -0
  216. package/dist/ro-RO-_HSYnLLu.js +13 -0
  217. package/dist/{ro-RO-D3rQ93wa.js → ro-RO-juw6hKRk.js} +2 -5
  218. package/dist/ro-RO-nVSeNtIQ.js +94 -0
  219. package/dist/{rules-BfrH23mO.js → rules-LaFMJfnA.js} +4 -5
  220. package/dist/{sk-SK-CmH1I1tp.js → sk-SK-BM57awWi.js} +2 -5
  221. package/dist/sk-SK-BX0wsQH4.js +94 -0
  222. package/dist/sk-SK-D6KtBU3q.js +13 -0
  223. package/dist/{sk-SK-CjdK4BKW.js → sk-SK-DRuiKuEp.js} +3 -1
  224. package/dist/sk-SK-K03EHmJF.js +13 -0
  225. package/dist/{sk-SK-FGK1FMMO.js → sk-SK-atqQJid1.js} +4 -1
  226. package/dist/{sl-SI-lPxRRPsh.js → sl-SI-CmYmQ6nG.js} +3 -1
  227. package/dist/{sl-SI-Cz28AFTz.js → sl-SI-CwKpXVCh.js} +4 -1
  228. package/dist/sl-SI-Dt7rovIT.js +94 -0
  229. package/dist/{sl-SI-hnlbW1OT.js → sl-SI-g2WSP0Tj.js} +2 -5
  230. package/dist/sl-SI-gM40Ay3W.js +13 -0
  231. package/dist/sl-SI-wYYQibM-.js +13 -0
  232. package/dist/style.css +931 -892
  233. package/dist/styles-CLV89_hH.js +931 -892
  234. package/dist/sv-SE-Bnhsdw8c.js +13 -0
  235. package/dist/{sv-SE-DLl7OGxl.js → sv-SE-CGCP_6VE.js} +4 -1
  236. package/dist/{sv-SE-BPpQ-05i.js → sv-SE-CHomf31L.js} +3 -1
  237. package/dist/{sv-SE-7Cbo1oic.js → sv-SE-Cfs0NHgG.js} +2 -5
  238. package/dist/sv-SE-DqzH809e.js +94 -0
  239. package/dist/sv-SE-uisfAT9L.js +13 -0
  240. package/dist/{useForm-CNi1k1NR.js → trackNavigation-gyYoCNvj.js} +25 -8
  241. package/dist/types/api/businessLines/businessLines.types.d.ts +7 -2
  242. package/dist/types/api/businessLines/useDeleteBusinessLine.d.ts +5 -0
  243. package/dist/types/api/businessLines/useUpdateBusinessLines.d.ts +7 -0
  244. package/dist/types/api/businessLines/useUpdateSourceOfFunds.d.ts +1 -0
  245. package/dist/types/components/BankAccount/forms/BankDocument/types.d.ts +2 -2
  246. package/dist/types/components/BankAccount/forms/PayoutDetails/PayoutDetails.d.ts +0 -1
  247. package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/PayoutVerificationMethod.d.ts +1 -2
  248. package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/payoutVerificationMethodMetadata.d.ts +1 -1
  249. package/dist/types/components/BankAccount/mapping/payoutKeyMappings.d.ts +51 -51
  250. package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/PayoutDetailsDropin.d.ts +1 -0
  251. package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/utils.d.ts +3 -3
  252. package/dist/types/components/BankAccount/utils/payoutAccountUtil.d.ts +2 -2
  253. package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +1 -3
  254. package/dist/types/components/Business/tasks/BusinessDetailsDropin/utils.d.ts +1 -1
  255. package/dist/types/components/BusinessLines/fields/WebDataField/types.d.ts +2 -4
  256. package/dist/types/components/BusinessLines/forms/rules.d.ts +5 -0
  257. package/dist/types/components/BusinessLines/tasks/BusinessLines/BusinessLinesStore.d.ts +2 -0
  258. package/dist/types/components/BusinessLines/tasks/BusinessLines/ExistingBusinessLines/BusinessLineModal.d.ts +3 -2
  259. package/dist/types/components/BusinessLines/tasks/utils.d.ts +11 -2
  260. package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +124 -124
  261. package/dist/types/components/Shared/FormNavigation/FormNavigation.d.ts +1 -1
  262. package/dist/types/components/Shared/FormNavigation/types.d.ts +0 -2
  263. package/dist/types/components/Shared/FormWrapper/FormWrapper.d.ts +1 -3
  264. package/dist/types/components/Shared/Summary/Summary.d.ts +1 -1
  265. package/dist/types/components/Shared/Summary/types.d.ts +0 -2
  266. package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
  267. package/dist/types/components/Shared/tasks/CustomerSupport/mapping/customerSupportKeyMapping.d.ts +4 -0
  268. package/dist/types/context/ExperimentContext/types.d.ts +12 -0
  269. package/dist/types/core/errorMapping.d.ts +4 -1
  270. package/dist/types/core/user-events.d.ts +7 -9
  271. package/dist/types/hooks/{useAnalytics.d.ts → useAnalytics/useAnalytics.d.ts} +1 -7
  272. package/dist/types/utils/analytics/convertToEmbeddedEvent.d.ts +9 -0
  273. package/dist/types/utils/analytics/debouncedInputEvent.d.ts +19 -0
  274. package/dist/types/utils/analytics/getAnalyticsAssociatedEntityDetails.d.ts +13 -0
  275. package/dist/types/utils/{trackNavigation.d.ts → analytics/trackNavigation.d.ts} +1 -1
  276. package/dist/types/utils/entityStatusUtil.d.ts +1 -1
  277. package/dist/types/utils/filterProblemsByTaskForms.d.ts +12 -0
  278. package/dist/types/utils/getName.d.ts +1 -1
  279. package/dist/{types-DNH7oNbA.js → types-C1FJZQd1.js} +2 -2
  280. package/dist/{types-SBNit_kK.js → types-D0aacEF5.js} +27 -3
  281. package/dist/{types-DHmyPbAn.js → types-DQVZ5BSQ.js} +14 -2
  282. package/dist/{useAssociatedLegalEntity-CmhNWabq.js → useAssociatedLegalEntity-CuTN8T5x.js} +2 -2
  283. package/dist/{useDataset-C0A9qR_N.js → useDataset-C4vcroxo.js} +3 -3
  284. package/dist/{useMultiForm-CU58VvHX.js → useMultiForm-GpoMvhwU.js} +4 -4
  285. package/dist/{useOnboardingStatus-DuIJSnGH.js → useOnboardingStatus-Cifcsbcr.js} +1 -1
  286. package/dist/{useScenarios-T0NF0gUi.js → useScenarios-AyvycExm.js} +2 -2
  287. package/dist/{useTermsOfServiceStatus-1oGd6y18.js → useTermsOfServiceStatus-yhwwFpfh.js} +1 -1
  288. package/dist/{useToastContext-DHgUoF6x.js → useToastContext-CCxuinr_.js} +2 -2
  289. package/dist/{useUnincorporatedPartnershipMembers-57G1Bu4k.js → useUnincorporatedPartnershipMembers-D_N_aPNq.js} +62 -7
  290. package/dist/{utils-DZz9bCID.js → utils-U0nEMoML.js} +6 -46
  291. package/dist/validate-BRRbVwma.js +41 -0
  292. package/dist/{validate-Bz6-McmI.js → validate-Bqbj3vVS.js} +2 -2
  293. package/dist/{validationError-Ci4nlmhZ.js → validationError-DhRqgFgA.js} +2 -2
  294. package/package.json +1 -1
  295. package/dist/Card-N9psV2kP.js +0 -147
  296. package/dist/CreateIndividualComponent-BL3dK960.js +0 -71
  297. package/dist/CreateTransferInstrumentComponent-kxMU_XVD.js +0 -66
  298. package/dist/Divider-DiS12D_i.js +0 -239
  299. package/dist/Dropzone-DSyKXnbD.js +0 -218
  300. package/dist/Image-BhBefhke.js +0 -22
  301. package/dist/InputDate-C2j7qA_b.js +0 -43
  302. package/dist/InputGroup-WBfGDV5F.js +0 -32
  303. package/dist/LandingLayout-Ca68Z9DA.js +0 -60
  304. package/dist/Link-BS6Zpegg.js +0 -35
  305. package/dist/OnboardingDropinComponent-IKzrTT3r.js +0 -4274
  306. package/dist/RadioGroup-DhwjhH0X.js +0 -144
  307. package/dist/RegistrationAddress-BnyrwF-X.js +0 -2337
  308. package/dist/RootBusinessDetailsPage-BFR4Sxfp.js +0 -61
  309. package/dist/RootIndividualDetailsPage-D6lLtamt.js +0 -76
  310. package/dist/SoleProprietorshipPage-BKlAFmwp.js +0 -60
  311. package/dist/Spacer-BK3jDget.js +0 -18
  312. package/dist/TaxInformationField-DCjcBMwQ.js +0 -3094
  313. package/dist/TileGroup-BkTpSpVX.js +0 -174
  314. package/dist/UnincorporatedPartnershipIndividualPage-DZZc7sEn.js +0 -65
  315. package/dist/bafinUtils-DkP3ZoN4.js +0 -366
  316. package/dist/bg-BG-BLe6BCNz.js +0 -13
  317. package/dist/bg-BG-BPsOhDfg.js +0 -13
  318. package/dist/bg-BG-z3gZQvGq.js +0 -42
  319. package/dist/commonValidators-BLvtzPWZ.js +0 -24
  320. package/dist/cs-CZ-C5lyVYlZ.js +0 -42
  321. package/dist/cs-CZ-CHzJM-ii.js +0 -13
  322. package/dist/cs-CZ-xoLsda7i.js +0 -13
  323. package/dist/currency-BGwQyxBo.js +0 -36
  324. package/dist/da-DK-CYl2jko-.js +0 -42
  325. package/dist/da-DK-D-TJghBi.js +0 -13
  326. package/dist/da-DK-XNMYSp7w.js +0 -13
  327. package/dist/de-DE-BI7AAdOv.js +0 -13
  328. package/dist/de-DE-CCmlaL2F.js +0 -13
  329. package/dist/de-DE-DlUEkik0.js +0 -42
  330. package/dist/el-GR-DZ8GheJK.js +0 -42
  331. package/dist/el-GR-DoCIcce-.js +0 -13
  332. package/dist/el-GR-kYiInIQ9.js +0 -13
  333. package/dist/en-US-DYpvuCLO.js +0 -13
  334. package/dist/es-ES-CJMsyMAc.js +0 -13
  335. package/dist/es-ES-CnNU6AJv.js +0 -13
  336. package/dist/es-ES-D0c0MoqK.js +0 -42
  337. package/dist/et-EE-BR4OXRfV.js +0 -13
  338. package/dist/et-EE-C4Fwyr7-.js +0 -42
  339. package/dist/et-EE-sB7wkSA3.js +0 -13
  340. package/dist/fi-FI-BbqwYcLI.js +0 -13
  341. package/dist/fi-FI-bRXb-Q_i.js +0 -42
  342. package/dist/fi-FI-u5GxMZsq.js +0 -13
  343. package/dist/fieldConfigurations-BsOQ678Q.js +0 -448
  344. package/dist/form-rules-DhbF2mY4.js +0 -13
  345. package/dist/fr-FR-CMjrAkKl.js +0 -13
  346. package/dist/fr-FR-Cr-Y1vIy.js +0 -13
  347. package/dist/fr-FR-JLPKgufm.js +0 -42
  348. package/dist/hr-HR-Bhsop3CT.js +0 -13
  349. package/dist/hr-HR-D26Gz-HL.js +0 -42
  350. package/dist/hr-HR-D8cBxUFa.js +0 -13
  351. package/dist/hu-HU-BVfkOdJe.js +0 -13
  352. package/dist/hu-HU-BZCFneWx.js +0 -42
  353. package/dist/hu-HU-D2j1ISVk.js +0 -13
  354. package/dist/isEmpty-B0GMAw4K.js +0 -23
  355. package/dist/it-IT-C7Sg1k4p.js +0 -13
  356. package/dist/it-IT-CwA8megO.js +0 -13
  357. package/dist/it-IT-mScKLwBR.js +0 -42
  358. package/dist/ja-JP-DyELKS9Q.js +0 -42
  359. package/dist/ja-JP-GSbqID7o.js +0 -13
  360. package/dist/jpAddressSchema-ULGNNt5U.js +0 -27
  361. package/dist/lt-LT-C5nNCk4_.js +0 -13
  362. package/dist/lt-LT-CLPQVRpJ.js +0 -42
  363. package/dist/lt-LT-DSiutpRl.js +0 -13
  364. package/dist/lv-LV-C62XiDE5.js +0 -13
  365. package/dist/lv-LV-CEK8Re4d.js +0 -13
  366. package/dist/lv-LV-Cu-MJMVO.js +0 -42
  367. package/dist/mapJpAddressSchemaToAddressLocalizations-D7YGYa9S.js +0 -147
  368. package/dist/nl-NL-BOJ6zuBr.js +0 -13
  369. package/dist/nl-NL-DOQPxTX-.js +0 -13
  370. package/dist/nl-NL-pVdpCCOx.js +0 -42
  371. package/dist/no-NO-CRULNwNn.js +0 -42
  372. package/dist/no-NO-Cp3-tDMw.js +0 -13
  373. package/dist/no-NO-CuwTDFSf.js +0 -13
  374. package/dist/pl-PL-1-MrLPXu.js +0 -13
  375. package/dist/pl-PL-CtDHmbhp.js +0 -13
  376. package/dist/pl-PL-CxCiWdAF.js +0 -42
  377. package/dist/pt-BR-Br_cHzGx.js +0 -13
  378. package/dist/pt-BR-DnKEuslh.js +0 -13
  379. package/dist/pt-BR-apPtB2cK.js +0 -42
  380. package/dist/pt-PT-CLwCij2I.js +0 -13
  381. package/dist/pt-PT-Coa6J7SM.js +0 -42
  382. package/dist/pt-PT-cjbtYBUX.js +0 -13
  383. package/dist/ro-RO-BTqq5BPM.js +0 -42
  384. package/dist/ro-RO-CGhIjlpU.js +0 -13
  385. package/dist/ro-RO-Cmk-sVDr.js +0 -13
  386. package/dist/sk-SK-Bo5nvxWQ.js +0 -13
  387. package/dist/sk-SK-Do6CKNU4.js +0 -13
  388. package/dist/sk-SK-welR06By.js +0 -42
  389. package/dist/sl-SI-B9N6vA08.js +0 -42
  390. package/dist/sl-SI-CrTRlNnN.js +0 -13
  391. package/dist/sl-SI-cY-L2ma-.js +0 -13
  392. package/dist/sv-SE-BtwPrLEA.js +0 -13
  393. package/dist/sv-SE-D6al0j6W.js +0 -42
  394. package/dist/sv-SE-WPziDPQa.js +0 -13
  395. package/dist/types/utils/analytics.d.ts +0 -31
  396. package/dist/utils-AieP90ex.js +0 -29
  397. package/dist/utils-Bd79Y_6k.js +0 -165
  398. package/dist/validate-WO7yAOk4.js +0 -382
@@ -1,239 +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] = "e26a2d37-8480-46ec-b446-2523c841c088", e._sentryDebugIdIdentifier = "sentry-dbid-e26a2d37-8480-46ec-b446-2523c841c088");
6
- } catch (e) {
7
- }
8
- }
9
- ;
10
- import { aa as isEmpty, b as useApiContext, j as useQuery, o as httpGet, u as useTranslation, V as IconButton } from "./StoreProvider-BYjTSjnX.js";
11
- import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
12
- import { useRef, useMemo, useState } from "preact/hooks";
13
- import { F as Field, c as Select } from "./useForm-CNi1k1NR.js";
14
- import { L as List } from "./CountryField-CFppUh42.js";
15
- const industryCodeFieldValidation = () => ({
16
- industryCodes: {
17
- modes: ["blur"],
18
- validate: (industryCode) => !isEmpty(industryCode),
19
- errorMessage: "fieldIsRequired"
20
- }
21
- });
22
- const industryCodeFieldMetadata = {
23
- label: "industry",
24
- validators: [
25
- industryCodeFieldValidation().industryCodes
26
- ]
27
- };
28
- const fetchIndustryCodes = async (legalEntityId, baseUrl, businessLineTypes) => {
29
- const results = await Promise.all(
30
- businessLineTypes.map((businessLineType) => {
31
- return httpGet({
32
- baseUrl,
33
- path: `legalEntities/${legalEntityId}/businessLines/${businessLineType}/industryCodes`
34
- });
35
- })
36
- );
37
- const deduped = [];
38
- for (const result of results) {
39
- for (const industryCodeDTO of result) {
40
- const found = deduped.find((item) => item.code === industryCodeDTO.code);
41
- if (!found) {
42
- deduped.push(industryCodeDTO);
43
- }
44
- }
45
- }
46
- return deduped;
47
- };
48
- const useIndustryCodes = (businessLineTypes, options) => {
49
- const { rootLegalEntityId, baseUrl } = useApiContext();
50
- return useQuery({
51
- queryKey: ["industryCodes", businessLineTypes.join(",")],
52
- queryFn: () => fetchIndustryCodes(rootLegalEntityId.value, baseUrl.value, businessLineTypes),
53
- ...options
54
- });
55
- };
56
- const industryCodesContent = "adyen-kyc-industry-codes-content";
57
- const industryCodesSelection = "adyen-kyc-industry-codes-selection";
58
- const styles$1 = {
59
- industryCodesContent,
60
- industryCodesSelection
61
- };
62
- const INDUSTRY_CODE_FIELD = ["industryCodes"];
63
- function IndustryCodeField({
64
- data,
65
- valid,
66
- errors,
67
- labels,
68
- placeholders,
69
- readonly,
70
- handleChangeFor,
71
- guidanceText,
72
- setErrors,
73
- // need to manually set errors due to nested select components
74
- setValid,
75
- // need to manually set validation due to nested select components
76
- businessLineTypes,
77
- single = false
78
- }) {
79
- const { t } = useTranslation("businessLines");
80
- const industryCodesRef = useRef(null);
81
- const { data: industryCodes } = useIndustryCodes(businessLineTypes);
82
- const allIndustryCodeSelectItems = useMemo(
83
- () => industryCodes?.map((entry) => ({
84
- id: entry.code,
85
- name: `${entry.code} - ${entry.description}`
86
- })) ?? [],
87
- [industryCodes]
88
- );
89
- const selectableIndustryCodes = allIndustryCodeSelectItems.filter(
90
- (i) => !data.industryCodes?.map((selectedCode) => selectedCode.id).includes(i.id)
91
- );
92
- const selectedCodes = data.industryCodes;
93
- const [items, setItems] = useState(
94
- selectedCodes && selectedCodes.length > 0 ? selectedCodes.map((i) => {
95
- return {
96
- value: i,
97
- touched: true
98
- };
99
- }) : [{ value: { id: "", name: "" }, touched: false }]
100
- );
101
- const updateIndustryCodes = (value) => {
102
- handleChangeFor("industryCodes")(value);
103
- };
104
- const addIndustryCodeField = (e) => {
105
- if (items[items.length - 1].value.id === "") {
106
- handleIndustryCodeFocusOut(e, items.length - 1);
107
- return;
108
- }
109
- const newItems = [...items, { value: { id: "", name: "" }, touched: false }];
110
- setItems(newItems);
111
- updateIndustryCodes(newItems.map((item) => item.value));
112
- };
113
- const removeField = (indexToRemove) => {
114
- const newItems = items.filter((_, index) => index !== indexToRemove);
115
- setItems(newItems);
116
- updateIndustryCodes(newItems.map((item) => item.value));
117
- };
118
- const handleSelectIndustryCode = (indexToUpdate, selectedItem) => {
119
- setItems((prevItems) => {
120
- const newItems = [...prevItems];
121
- newItems[indexToUpdate] = {
122
- value: {
123
- id: selectedItem.id,
124
- name: selectedItem.name
125
- },
126
- touched: true
127
- };
128
- updateIndustryCodes(
129
- newItems.map((item) => {
130
- return {
131
- id: item.value.id,
132
- name: item.value.name
133
- };
134
- })
135
- );
136
- return newItems;
137
- });
138
- };
139
- const handleIndustryCodeFocusOut = (e, index) => {
140
- if (industryCodesRef.current && !industryCodesRef.current.contains(e.relatedTarget)) {
141
- setItems((prevItems) => {
142
- if (prevItems[index].value.id || prevItems[index].touched) {
143
- return prevItems;
144
- }
145
- const newItems = [...prevItems];
146
- newItems[index] = { ...newItems[index], touched: true };
147
- const isGroupInvalid = newItems.some((item) => item.value.id === "");
148
- if (isGroupInvalid) {
149
- setErrors?.(
150
- "industryCodes",
151
- {
152
- isValid: false,
153
- errorMessage: "fieldIsRequired",
154
- hasError: true
155
- },
156
- "industryCodesForm"
157
- );
158
- setValid?.("industryCodes", false, "industryCodesForm");
159
- } else {
160
- setErrors?.("industryCodes", null, "industryCodesForm");
161
- setValid?.("industryCodes", true, "industryCodesForm");
162
- }
163
- return newItems;
164
- });
165
- }
166
- };
167
- return /* @__PURE__ */ jsx(
168
- Field,
169
- {
170
- name: "industryCodes",
171
- label: labels?.industryCodes || t(($) => $["industry"]),
172
- errorMessage: errors.industryCodes,
173
- isValid: valid.industryCodes,
174
- formatGuidance: guidanceText.industryCodes,
175
- showErrorIcon: false,
176
- children: (childProps) => /* @__PURE__ */ jsx(Wrapper, { single, children: /* @__PURE__ */ jsx("div", { className: styles$1.industryCodesContent, ref: industryCodesRef, children: items.map((code, index) => {
177
- const isInvalid = code.touched && code.value.id === "";
178
- return /* @__PURE__ */ jsxs("div", { className: styles$1.industryCodesSelection, children: [
179
- /* @__PURE__ */ jsx(
180
- Select,
181
- {
182
- ...childProps,
183
- id: `industryCodeSelection-${index}`,
184
- name: `industryCodeSelection-${index}`,
185
- selected: code.value,
186
- placeholder: placeholders?.industryCodes || t(($) => $["industryCode__placeholder"]),
187
- items: allIndustryCodeSelectItems,
188
- excludedValues: allIndustryCodeSelectItems.filter(
189
- (i) => !selectableIndustryCodes.includes(i)
190
- ),
191
- readonly: readonly && !!data.industryCodes,
192
- onSelect: (selectedItem) => handleSelectIndustryCode(index, selectedItem),
193
- isInvalid,
194
- onBlur: (e) => handleIndustryCodeFocusOut(e, index)
195
- }
196
- ),
197
- !single && /* @__PURE__ */ jsxs(Fragment, { children: [
198
- /* @__PURE__ */ jsx(
199
- IconButton,
200
- {
201
- ariaLabel: t(($) => $["removeIndustryCode"]),
202
- variant: "tertiary",
203
- icon: "minusCircleFilled",
204
- circle: true,
205
- onClick: () => removeField(index),
206
- disabled: items.length === 1 || readonly
207
- }
208
- ),
209
- /* @__PURE__ */ jsx(
210
- IconButton,
211
- {
212
- ariaLabel: t(($) => $["addIndustryCode"]),
213
- variant: "tertiary",
214
- icon: "plusCircleFilled",
215
- circle: true,
216
- onClick: addIndustryCodeField,
217
- disabled: readonly || code.value.id === "" || code.value.id !== "" && index !== items.length - 1 || selectableIndustryCodes.length === 0
218
- }
219
- )
220
- ] })
221
- ] }, code.value.id);
222
- }) }) })
223
- }
224
- );
225
- }
226
- function Wrapper({ single, children }) {
227
- return single ? children : /* @__PURE__ */ jsx(List, { dividers: false, variant: "grouped-primary", children });
228
- }
229
- const divider = "adyen-kyc-divider";
230
- const styles = {
231
- divider
232
- };
233
- const Divider = () => /* @__PURE__ */ jsx("hr", { className: styles.divider });
234
- export {
235
- Divider as D,
236
- INDUSTRY_CODE_FIELD as I,
237
- IndustryCodeField as a,
238
- industryCodeFieldMetadata as i
239
- };
@@ -1,218 +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] = "b31f91e4-4b2c-4f19-89ff-0cb610f94f41", e._sentryDebugIdIdentifier = "sentry-dbid-b31f91e4-4b2c-4f19-89ff-0cb610f94f41");
6
- } catch (e) {
7
- }
8
- }
9
- ;
10
- import { jsxs, jsx, Fragment } from "preact/jsx-runtime";
11
- import { f as defaultFileValidationOptions, h as fileValidationRules, S as StateContextSetter, D as DropzoneFile, e as bytesToSize } from "./validate-DzaSMOa2.js";
12
- import cx from "classnames";
13
- import { useRef, useState, useMemo, useEffect } from "preact/hooks";
14
- import { u as useTranslation, P as useAnalyticsContext, B as Button, x as Typography, U as Icon } from "./StoreProvider-BYjTSjnX.js";
15
- import { a as useForm } from "./useForm-CNi1k1NR.js";
16
- function Dropzone(props) {
17
- const {
18
- name,
19
- label = "",
20
- multiple = false,
21
- disabled = false,
22
- required = true,
23
- defaultData,
24
- id,
25
- isOptional = false,
26
- maxNumberOfFiles = defaultFileValidationOptions.maxNumberOfFiles,
27
- maxSize = defaultFileValidationOptions.maxSize,
28
- allowedFileTypes = defaultFileValidationOptions.allowedFileTypes,
29
- showMinimal,
30
- hidePageCount,
31
- onChange: propsOnChange,
32
- handleFieldChange,
33
- errors: errorProp,
34
- fieldValidationErrors,
35
- valid: validProp,
36
- enableTracking = false,
37
- extraDropzoneDescription
38
- } = props;
39
- const { t } = useTranslation("ui");
40
- const userEvents = useAnalyticsContext();
41
- const fileInput = useRef(null);
42
- const [dragged, setDragged] = useState(false);
43
- const stateRef = useRef({ setState: null });
44
- const rules = useMemo(
45
- () => fileValidationRules({
46
- maxSize,
47
- allowedFileTypes,
48
- maxNumberOfFiles,
49
- isOptional
50
- }),
51
- [allowedFileTypes, isOptional, maxNumberOfFiles, maxSize]
52
- );
53
- const form = useForm({
54
- ...props,
55
- schema: [name],
56
- defaultData: defaultData || [],
57
- rules: {
58
- [name]: rules
59
- }
60
- });
61
- let { data, valid, errors, fieldProblems, handleChangeFor } = form;
62
- const { setValid, setData, isValid, triggerValidation } = form;
63
- if (handleFieldChange) {
64
- handleChangeFor = handleFieldChange;
65
- data = defaultData;
66
- errors = errorProp;
67
- valid = validProp;
68
- fieldProblems = fieldValidationErrors;
69
- }
70
- const isRequired = errors?.[name]?.errorMessage === "fieldIsRequired";
71
- const allowedFiletypes = allowedFileTypes.join(", ");
72
- const hasMaxNumberOfFiles = data?.[name]?.length >= maxNumberOfFiles;
73
- useEffect(() => {
74
- stateRef?.current?.setState?.({
75
- type: "addToState",
76
- value: { data, valid, errors, fieldProblems, dataStoreId: id }
77
- });
78
- }, [data, valid, errors, isValid]);
79
- const selectFile = () => fileInput.current?.click();
80
- const handleFileDelete = (fileToDelete) => handleChangeFor(
81
- name,
82
- "input"
83
- )(data?.[name]?.filter((file) => file !== fileToDelete));
84
- const handleDragEnter = (e) => {
85
- e.preventDefault();
86
- e.stopPropagation();
87
- };
88
- const handleDragLeave = (e) => {
89
- if (disabled) return;
90
- e.preventDefault();
91
- e.stopPropagation();
92
- setDragged(false);
93
- };
94
- const handleDragOver = (e) => {
95
- if (disabled) return;
96
- e.preventDefault();
97
- e.stopPropagation();
98
- setDragged(true);
99
- };
100
- const handleDrop = (e) => {
101
- if (disabled) return;
102
- e.preventDefault();
103
- e.stopPropagation();
104
- if (e.dataTransfer) updateFiles(e.dataTransfer);
105
- setDragged(false);
106
- };
107
- const handleFileChange = (e) => updateFiles(e.target);
108
- const updateFiles = ({ files }) => {
109
- if (enableTracking) {
110
- userEvents.addFieldEvent("Interacted with form field", {
111
- actionType: "change",
112
- field: name || "file picker"
113
- });
114
- }
115
- const currentFiles = data?.[name] || [];
116
- handleChangeFor(name, "input")([...currentFiles, ...files ?? []]);
117
- };
118
- useEffect(() => {
119
- const currentFiles = data?.[name] || [];
120
- if (isValid) {
121
- propsOnChange?.([...currentFiles]);
122
- }
123
- }, [isValid, data]);
124
- useEffect(() => {
125
- if (defaultData?.[name]?.[0]) {
126
- setData(name, defaultData?.[name]);
127
- triggerValidation();
128
- } else {
129
- setData(name, null);
130
- }
131
- }, [defaultData]);
132
- useEffect(() => {
133
- const currentFiles = data?.[name];
134
- const hasFiles = currentFiles && currentFiles.length > 0;
135
- if (isOptional && !hasFiles) {
136
- setValid(name, true);
137
- }
138
- }, [isOptional, data]);
139
- const renderInnerContent = () => showMinimal ? /* @__PURE__ */ jsxs(Fragment, { children: [
140
- /* @__PURE__ */ jsx("div", { className: "adyen-kyc-dropzone__button", children: /* @__PURE__ */ jsx(Button, { onClick: selectFile, disabled, fullWidth: true, children: t(($) => $["browseFiles"]) }) }),
141
- /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-dropzone__extras", children: [
142
- /* @__PURE__ */ jsx(Typography, { color: "secondary", children: t(($) => $["supportedFileTypes"], { fileTypes: allowedFiletypes }) }),
143
- /* @__PURE__ */ jsx(Typography, { color: "secondary", children: t(($) => $[hidePageCount ? "maxFileSizeOnly" : "maxFileSize"], {
144
- maxSize: bytesToSize(maxSize)
145
- }) })
146
- ] })
147
- ] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
148
- /* @__PURE__ */ jsx("div", { className: "adyen-kyc-dropzone__icon", children: /* @__PURE__ */ jsx(Icon, { name: "upload" }) }),
149
- /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-dropzone__labels", children: [
150
- /* @__PURE__ */ jsx(Typography, { el: "h4", variant: "body-strongest", children: t(($) => $[multiple ? "dropFilesToUpload" : "dropFileToUpload"]) }),
151
- extraDropzoneDescription && /* @__PURE__ */ jsx(Typography, { color: "secondary", children: extraDropzoneDescription }),
152
- /* @__PURE__ */ jsx(Typography, { color: "secondary", children: t(($) => $["supportedFileTypes"], { fileTypes: allowedFiletypes }) }),
153
- /* @__PURE__ */ jsx(Typography, { color: "secondary", children: t(($) => $[hidePageCount ? "maxFileSizeOnly" : "maxFileSize"], {
154
- maxSize: bytesToSize(maxSize)
155
- }) }),
156
- /* @__PURE__ */ jsx(Typography, { color: "secondary", children: t(($) => $["upToFiles"], { maxFiles: maxNumberOfFiles }) })
157
- ] }),
158
- /* @__PURE__ */ jsx("div", { className: "adyen-kyc-dropzone__button", children: /* @__PURE__ */ jsx(Button, { onClick: selectFile, variant: "secondary", children: t(($) => $["browseFiles"]) }) })
159
- ] });
160
- return /* @__PURE__ */ jsxs("div", { children: [
161
- /* @__PURE__ */ jsx(StateContextSetter, { stateRef }),
162
- label && /* @__PURE__ */ jsx(
163
- "div",
164
- {
165
- className: cx("adyen-kyc-label__text", {
166
- "adyen-kyc-label__text--error": isRequired
167
- }),
168
- children: label
169
- }
170
- ),
171
- data?.[name]?.map((file) => /* @__PURE__ */ jsx(
172
- DropzoneFile,
173
- {
174
- file,
175
- onDelete: () => handleFileDelete(file),
176
- errorMessage: errors?.[name]?.errorMessage
177
- },
178
- file
179
- )),
180
- !hasMaxNumberOfFiles && /* @__PURE__ */ jsxs(
181
- "div",
182
- {
183
- role: "region",
184
- className: cx("adyen-kyc-dropzone", {
185
- "adyen-kyc-dropzone--dragged": dragged,
186
- "adyen-kyc-dropzone--error": !dragged && isRequired
187
- }),
188
- onDrop: handleDrop,
189
- onDragOver: handleDragOver,
190
- onDragEnter: handleDragEnter,
191
- onDragLeave: handleDragLeave,
192
- children: [
193
- renderInnerContent(),
194
- /* @__PURE__ */ jsx(
195
- "input",
196
- {
197
- className: "adyen-kyc-dropzone__input",
198
- ref: fileInput,
199
- disabled,
200
- multiple,
201
- accept: allowedFiletypes,
202
- onChange: handleFileChange,
203
- type: "file",
204
- "aria-required": required,
205
- "aria-label": label,
206
- "aria-invalid": !valid,
207
- "data-testid": "dropzone-input"
208
- }
209
- )
210
- ]
211
- }
212
- ),
213
- isRequired && /* @__PURE__ */ jsx("div", { className: "adyen-kyc-error-text", children: t(($) => $["fieldIsRequired"]) })
214
- ] });
215
- }
216
- export {
217
- Dropzone as D
218
- };
@@ -1,22 +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] = "628ba535-dccb-46b9-9a81-bf9cf778f171", e._sentryDebugIdIdentifier = "sentry-dbid-628ba535-dccb-46b9-9a81-bf9cf778f171");
6
- } catch (e) {
7
- }
8
- }
9
- ;
10
- import { jsx } from "preact/jsx-runtime";
11
- import { Suspense } from "preact/compat";
12
- import { L as Loader } from "./StoreProvider-BYjTSjnX.js";
13
- const Image = ({
14
- lazyLoadedImage,
15
- className
16
- }) => {
17
- const LazyLoadedImageComponent = lazyLoadedImage;
18
- return /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(Loader, {}), children: /* @__PURE__ */ jsx(LazyLoadedImageComponent, { className, "aria-hidden": true }) });
19
- };
20
- export {
21
- Image as I
22
- };
@@ -1,43 +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] = "845c91e4-48ac-4282-bc00-5997cfd33d49", e._sentryDebugIdIdentifier = "sentry-dbid-845c91e4-48ac-4282-bc00-5997cfd33d49");
6
- } catch (e) {
7
- }
8
- }
9
- ;
10
- import { jsx } from "preact/jsx-runtime";
11
- import { useMemo } from "preact/hooks";
12
- import { a as InputBase } from "./InputText-EX5kyD9L.js";
13
- const checkDateInputSupport = () => {
14
- const input = document.createElement("input");
15
- input.setAttribute("type", "date");
16
- return input.type === "date";
17
- };
18
- const formatDate = (value) => {
19
- const date = value.replace(/\D|\s/g, "").replace(/^(00)(.*)?/, "01$2").replace(/^(3[2-9])(.*)?/, "0$1$2").replace(/^([4-9])(.*)?/, "0$1").replace(/^([0-9]{2})(00)(.*)?/, "$101").replace(/^(3[01])(02)(.*)?/, "29$2").replace(/^([0-9]{2})([2-9]|1[3-9])(.*)?/, "$10$2").replace(/^([0-9]{2})([0-9]{2})([0-9])/, "$1/$2/$3").replace(/^([0-9]{2})([0-9])/, "$1/$2");
20
- const [day = "", month = "", year = ""] = date.split("/");
21
- if (year.length === 4 && day === "29" && month === "02" && (Number(year) % 4 !== 0 || year.substring(2, 4) === "00" && Number(year) % 400 !== 0)) {
22
- return date.replace(/^29/, "28");
23
- }
24
- return date;
25
- };
26
- const formatDateObj = (date) => date.toJSON().slice(0, 10);
27
- function InputDate(props) {
28
- const isDateInputSupported = useMemo(checkDateInputSupport, []);
29
- const { onInput } = props;
30
- const handleInput = (e) => {
31
- const { value } = e.target;
32
- e.target.value = formatDate(value);
33
- onInput(e);
34
- };
35
- if (isDateInputSupported) {
36
- return /* @__PURE__ */ jsx(InputBase, { ...props, type: "date" });
37
- }
38
- return /* @__PURE__ */ jsx(InputBase, { ...props, onInput: handleInput, maxLength: 10 });
39
- }
40
- export {
41
- InputDate as I,
42
- formatDateObj as f
43
- };
@@ -1,32 +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] = "982492e0-b2a7-4141-82ba-c79e74587917", e._sentryDebugIdIdentifier = "sentry-dbid-982492e0-b2a7-4141-82ba-c79e74587917");
6
- } catch (e) {
7
- }
8
- }
9
- ;
10
- import { jsx } from "preact/jsx-runtime";
11
- import cx from "classnames";
12
- const InputGroup = ({
13
- id,
14
- isFocused,
15
- isInvalid = false,
16
- className,
17
- children
18
- }) => {
19
- const classNames = cx(
20
- "adyen-kyc-input-group",
21
- {
22
- "adyen-kyc-input-group--invalid": isInvalid,
23
- "adyen-kyc-input-group--valid": !isInvalid,
24
- "adyen-kyc-input-group--focused": isFocused
25
- },
26
- className
27
- );
28
- return /* @__PURE__ */ jsx("div", { id, "data-testid": id, className: classNames, children });
29
- };
30
- export {
31
- InputGroup as I
32
- };
@@ -1,60 +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] = "6177544b-87fa-4643-8ba1-8c20548cbbce", e._sentryDebugIdIdentifier = "sentry-dbid-6177544b-87fa-4643-8ba1-8c20548cbbce");
6
- } catch (e) {
7
- }
8
- }
9
- ;
10
- import { jsxs, jsx } from "preact/jsx-runtime";
11
- import { x as Typography } from "./StoreProvider-BYjTSjnX.js";
12
- import { S as StackLayout } from "./CountryField-CFppUh42.js";
13
- const landingLayoutImage = "adyen-kyc-landing-layout-image";
14
- const landingLayoutActions = "adyen-kyc-landing-layout-actions";
15
- const landingLayoutErrors = "adyen-kyc-landing-layout-errors";
16
- const landingLayoutDisclaimer = "adyen-kyc-landing-layout-disclaimer";
17
- const landingLayoutCenter = "adyen-kyc-landing-layout-center";
18
- const styles = {
19
- landingLayoutImage,
20
- landingLayoutActions,
21
- landingLayoutErrors,
22
- landingLayoutDisclaimer,
23
- landingLayoutCenter
24
- };
25
- const LandingLayout = ({
26
- actions,
27
- content,
28
- description,
29
- error,
30
- disclaimer,
31
- helpAction,
32
- media,
33
- title
34
- }) => {
35
- return /* @__PURE__ */ jsxs(StackLayout, { gap: "large", align: "center", children: [
36
- media && /* @__PURE__ */ jsx("div", { role: "region", className: styles.landingLayoutImage, children: media }),
37
- error && /* @__PURE__ */ jsx("div", { className: styles.landingLayoutErrors, children: error }),
38
- /* @__PURE__ */ jsxs(StackLayout, { gap: "small", children: [
39
- /* @__PURE__ */ jsx(Typography, { el: "h2", className: styles.landingLayoutCenter, variant: "title-l", children: title }),
40
- description && /* @__PURE__ */ jsx(Typography, { className: styles.landingLayoutCenter, variant: "body", color: "primary", children: description }),
41
- helpAction
42
- ] }),
43
- content,
44
- /* @__PURE__ */ jsx("div", { className: styles.landingLayoutActions, children: /* @__PURE__ */ jsxs(StackLayout, { gap: "small", children: [
45
- actions,
46
- disclaimer && /* @__PURE__ */ jsx(
47
- Typography,
48
- {
49
- variant: "caption",
50
- color: "tertiary",
51
- className: styles.landingLayoutDisclaimer,
52
- children: disclaimer
53
- }
54
- )
55
- ] }) })
56
- ] });
57
- };
58
- export {
59
- LandingLayout as L
60
- };
@@ -1,35 +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] = "082652ad-e8b1-4e6d-a4c1-926badba34a6", e._sentryDebugIdIdentifier = "sentry-dbid-082652ad-e8b1-4e6d-a4c1-926badba34a6");
6
- } catch (e) {
7
- }
8
- }
9
- ;
10
- import { jsxs, jsx } from "preact/jsx-runtime";
11
- import cx from "classnames";
12
- import { U as Icon } from "./StoreProvider-BYjTSjnX.js";
13
- const link = "adyen-kyc-link";
14
- const linkDefault = "adyen-kyc-link-default";
15
- const linkInline = "adyen-kyc-link-inline";
16
- const styles = {
17
- link,
18
- linkDefault,
19
- linkInline
20
- };
21
- const Link = ({ children, external = false, href, inline = false }) => {
22
- const rel = external ? "external noopener noreferrer" : void 0;
23
- const target = external ? "_blank" : "_self";
24
- const className = cx(styles.link, {
25
- [styles.linkInline]: inline,
26
- [styles.linkDefault]: !inline
27
- });
28
- return /* @__PURE__ */ jsxs("a", { className, href, rel, target, children: [
29
- children,
30
- external && !inline && /* @__PURE__ */ jsx(Icon, { name: "external-link" })
31
- ] });
32
- };
33
- export {
34
- Link as L
35
- };