@adyen/kyc-components 3.84.3 → 3.85.0-beta.2

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 (336) hide show
  1. package/dist/{AcceptTermsOfServiceComponent-CBGVGhCW.js → AcceptTermsOfServiceComponent-CJR2_QBv.js} +15 -13
  2. package/dist/Accordion-CiEmIhNX.js +88 -0
  3. package/dist/{AccountSetupRejected-iWgw_f_y.js → AccountSetupRejected-BjJaN_L0.js} +4 -4
  4. package/dist/{Address-t4VOfLT-.js → Address-DvpndZyX.js} +10 -10
  5. package/dist/{Alert-BeizfGIR.js → Alert-ZQaJKZwM.js} +3 -75
  6. package/dist/{Avatar-DuU-qQK8.js → Avatar-Bg9ZnJVR.js} +1 -1
  7. package/dist/{BusinessDetailsDropin-DvcYg_X0.js → BusinessDetailsMultiformDropin-FeI19Yeu.js} +2124 -250
  8. package/dist/{BusinessFinancingComponent-CtKIHS5N.js → BusinessFinancingComponent-P6tUs_cF.js} +5 -5
  9. package/dist/{BusinessFinancingDropin-lPPamXGa.js → BusinessFinancingDropin-5PQROpGM.js} +105 -62
  10. package/dist/{BusinessFinancingPage-Di-Nv2Ml.js → BusinessFinancingPage-Z7KdR2Wb.js} +4 -4
  11. package/dist/{BusinessTypeSelectionPage-BXdmcFx7.js → BusinessTypeSelectionPage-CEiJxKFT.js} +7 -7
  12. package/dist/{Card-B1eYN1iZ.js → Card-DeKeyEgr.js} +4 -4
  13. package/dist/{CountryField-DePvueIq.js → CountryField-DpZS-UHE.js} +82 -291
  14. package/dist/{CreateIndividualComponent-BF8U9HmX.js → CreateIndividualComponent-uV41ZKqu.js} +6 -6
  15. package/dist/{CreateTransferInstrumentComponent-Rd6n91ch.js → CreateTransferInstrumentComponent--fLgxkGc.js} +6 -6
  16. package/dist/{Currency-CCNB-Owq.js → Currency-dvDSJvr6.js} +6 -6
  17. package/dist/{CustomerSupport-dzWyAxLD.js → CustomerSupport-BsSMzVHV.js} +9 -8
  18. package/dist/{DebugModal-Db4z3HFJ.js → DebugModal-CDJit0my.js} +128 -42
  19. package/dist/{DecisionMakerDetailsPage-CQ5uaVPM.js → DecisionMakerDetailsPage-WUOxEF2W.js} +7 -7
  20. package/dist/{DecisionMakers-BjZNaC3U.js → DecisionMakers--fCz0mrC.js} +149 -115
  21. package/dist/Divider-CQmSV-3K.js +239 -0
  22. package/dist/{Dropzone-DS3DzY-A.js → Dropzone-CjTl0Cl4.js} +4 -4
  23. package/dist/{EmbeddedStatus-COuKpXSJ.js → EmbeddedStatus-BfyrjDBn.js} +3 -3
  24. package/dist/{EndStateLayout-DHbUjBQL.js → EndStateLayout-DtnC_jmT.js} +1 -1
  25. package/dist/{FormNavigation-C8985odz.js → FormNavigation-BVFCNan3.js} +3 -3
  26. package/dist/Image-3OQ_b33w.js +22 -0
  27. package/dist/{IndividualOnfidoDropin-BnPU46GN.js → IndividualOnfidoDropin-DxGZH7qE.js} +64 -41
  28. package/dist/{InputDate-BqYvvnqX.js → InputDate-Lj3IQq5B.js} +2 -2
  29. package/dist/{InputText-rkMNHFYM.js → InputText-DqycMV0z.js} +3 -3
  30. package/dist/{Introduction-BsZibeHx.js → Introduction-B_eEyK4D.js} +4 -4
  31. package/dist/{JpAddress-7_Wvn6w-.js → JpAddress-DbmfH7ao.js} +7 -7
  32. package/dist/LandingLayout-DAR4uCsx.js +60 -0
  33. package/dist/{LegalRepresentativeDetailsPage-BLoNELP2.js → LegalRepresentativeDetailsPage-JtrwqFp_.js} +5 -5
  34. package/dist/Link-BePoWmqK.js +35 -0
  35. package/dist/ListItem-AIDLbwJg.js +69 -0
  36. package/dist/{ManageIndividualComponent-DuMx-hok.js → ManageIndividualComponent-CdI1XXUO.js} +5 -5
  37. package/dist/{ManageTermsOfServiceComponent-BPJJxecg.js → ManageTermsOfServiceComponent-C9C7j-Ig.js} +5 -5
  38. package/dist/{ManageTransferInstrumentComponent-D13HhKpC.js → ManageTransferInstrumentComponent-j3e19U67.js} +12 -12
  39. package/dist/{MaskedInput-DK17jkn8.js → MaskedInput-BBpUba4Q.js} +5 -5
  40. package/dist/MaybeModal-BfUZzrFT.js +25 -0
  41. package/dist/{Modal-CeWqn3jD.js → Modal-QC3t2pZm.js} +1 -1
  42. package/dist/OnboardingDropinComponent-CR_pOocw.js +4274 -0
  43. package/dist/{PayoutDetailsDropin-CxXIfBo2.js → PayoutDetailsDropin-C4ZOkpq_.js} +311 -81
  44. package/dist/RadioGroup-B0eqJ4-H.js +144 -0
  45. package/dist/{RegistrationAddress-coO57t4c.js → RegistrationAddress-DEZgJ98J.js} +36 -33
  46. package/dist/{Review-BFb6Ykw1.js → Review-BH30PNwx.js} +8 -7
  47. package/dist/RootBusinessDetailsPage-CB6RWU2g.js +61 -0
  48. package/dist/{OnboardingDropinComponent-BlMzaK2Z.js → RootBusinessLinesPage-CtY_KP7f.js} +845 -5342
  49. package/dist/{RootIndividualDetailsPage-BEe-U1FO.js → RootIndividualDetailsPage-C6TUZLlV.js} +5 -5
  50. package/dist/{SignPCIComponent-D5KQ4t2I.js → SignPCIComponent-Lc4CIjC7.js} +10 -8
  51. package/dist/{SingpassSelection-wIFBjJkx.js → SingpassSelection-Cwocy94c.js} +5 -4
  52. package/dist/SoleProprietorshipPage-DIotXS-E.js +60 -0
  53. package/dist/{SourceOfFundsPage-B0js4JTw.js → SourceOfFundsPage-D6X8IktQ.js} +37 -32
  54. package/dist/{StepProgressIndicator-axxG6zQK.js → StepProgressIndicator-BRtUTJA2.js} +1 -1
  55. package/dist/{StoreProvider-BulXd4Hf.js → StoreProvider-DX9X_rtC.js} +107 -102
  56. package/dist/{TaskItemStatus-DykYxx-L.js → TaskItemStatus-DTxnqkA5.js} +3 -3
  57. package/dist/{TaxInformationField-vBwS4Gdq.js → TaxInformationField-CAhkfn-Q.js} +28 -26
  58. package/dist/{TaxReportingDropin-T-05itkR.js → TaxReportingDropin-zqqyQfEx.js} +17 -13
  59. package/dist/{TileGroup-CWIb67Fa.js → TileGroup-DPM4gpzr.js} +4 -4
  60. package/dist/{TrustDetailsPage-XpVwVUFb.js → TrustDetailsPage-BaqBKpei.js} +24 -22
  61. package/dist/{TrustMemberCompanyPage-CPZ8ZzqF.js → TrustMemberCompanyPage-DQvZ4BOf.js} +22 -9
  62. package/dist/{TrustMemberIndividualPage-um9OLnSy.js → TrustMemberIndividualPage-Du6IjMHg.js} +5 -5
  63. package/dist/{UnincorporatedPartnershipIndividualPage-CvQOUpDy.js → UnincorporatedPartnershipIndividualPage-ii0O1m-J.js} +5 -5
  64. package/dist/UnincorporatedPartnershipMemberCompanyPage-X3m8PR8H.js +76 -0
  65. package/dist/{ViewVerificationStatusComponent-aOEFCjUd.js → ViewVerificationStatusComponent-wM09RJoi.js} +4 -4
  66. package/dist/adyen-business-financing.js +3 -3
  67. package/dist/adyen-individual-configuration.js +3 -3
  68. package/dist/adyen-individual-status.js +3 -3
  69. package/dist/adyen-kyc-components.js +20 -20
  70. package/dist/adyen-onboarding.js +2 -2
  71. package/dist/adyen-terms-of-service-management.js +3 -3
  72. package/dist/adyen-terms-of-service-status.js +3 -3
  73. package/dist/adyen-transfer-instrument-configuration.js +3 -3
  74. package/dist/adyen-transfer-instrument-management.js +3 -3
  75. package/dist/adyen-verification-status.js +3 -3
  76. package/dist/analytics-CSO2dqDO.js +123 -0
  77. package/dist/{bafinUtils-DOsm2O1i.js → bafinUtils-lxvWZZEW.js} +8 -57
  78. package/dist/{bg-BG-B37z4fjM.js → bg-BG-BIOMFPaW.js} +3 -1
  79. package/dist/bg-BG-BLe6BCNz.js +13 -0
  80. package/dist/bg-BG-BPsOhDfg.js +13 -0
  81. package/dist/bg-BG-fr-xfUBV.js +110 -0
  82. package/dist/commonValidators-B3Rif_Pi.js +24 -0
  83. package/dist/cs-CZ-C0sNB1Fm.js +110 -0
  84. package/dist/cs-CZ-CHzJM-ii.js +13 -0
  85. package/dist/{cs-CZ-2D8o2KB0.js → cs-CZ-DNWTRefA.js} +3 -1
  86. package/dist/cs-CZ-xoLsda7i.js +13 -0
  87. package/dist/da-DK-8dk9Q_Wk.js +110 -0
  88. package/dist/{da-DK-CplImqOX.js → da-DK-D-PlwKvZ.js} +3 -1
  89. package/dist/da-DK-D-TJghBi.js +13 -0
  90. package/dist/da-DK-XNMYSp7w.js +13 -0
  91. package/dist/{de-DE-DNOzlYEY.js → de-DE-4GAd_srm.js} +3 -1
  92. package/dist/de-DE-BI7AAdOv.js +13 -0
  93. package/dist/de-DE-CCmlaL2F.js +13 -0
  94. package/dist/de-DE-CCyKie8B.js +110 -0
  95. package/dist/debugStore-BvbyN1Oi.js +14 -0
  96. package/dist/dropinUtils-BB4B9BSv.js +196 -0
  97. package/dist/el-GR-D7zMcBtK.js +110 -0
  98. package/dist/{el-GR-DAFcmbwE.js → el-GR-Ddnh0NhQ.js} +3 -1
  99. package/dist/el-GR-DoCIcce-.js +13 -0
  100. package/dist/el-GR-kYiInIQ9.js +13 -0
  101. package/dist/{en-US-CEc3gxgl.js → en-US-BCFNoF5y.js} +2 -1
  102. package/dist/en-US-BwDZ0WHW.js +110 -0
  103. package/dist/en-US-DYpvuCLO.js +13 -0
  104. package/dist/{en-US-xHi63gSK.js → en-US-DjF6iC7G.js} +12 -1
  105. package/dist/{es-ES-BPI-KmDv.js → es-ES-C4lENXHH.js} +3 -1
  106. package/dist/es-ES-CJMsyMAc.js +13 -0
  107. package/dist/es-ES-CnNU6AJv.js +13 -0
  108. package/dist/es-ES-JvAvmB2A.js +110 -0
  109. package/dist/{et-EE-CMXpGRz8.js → et-EE-3EQr-1cj.js} +3 -1
  110. package/dist/et-EE-BR4OXRfV.js +13 -0
  111. package/dist/et-EE-SJf3_Ega.js +110 -0
  112. package/dist/et-EE-sB7wkSA3.js +13 -0
  113. package/dist/fi-FI-BbqwYcLI.js +13 -0
  114. package/dist/{fi-FI-C5SwgUIc.js → fi-FI-Byvvcxxq.js} +3 -1
  115. package/dist/fi-FI-Cy2hAl0B.js +110 -0
  116. package/dist/fi-FI-u5GxMZsq.js +13 -0
  117. package/dist/{fieldConfigurations-BBmPG-CS.js → fieldConfigurations-QIDm3nkC.js} +12 -306
  118. package/dist/fr-FR-BmW46mYd.js +110 -0
  119. package/dist/fr-FR-CMjrAkKl.js +13 -0
  120. package/dist/fr-FR-Cr-Y1vIy.js +13 -0
  121. package/dist/{fr-FR-CAqqgh3X.js → fr-FR-E_UubsZ-.js} +3 -1
  122. package/dist/{getName-N_Hu5gE7.js → getName-DQuF2UWl.js} +2 -2
  123. package/dist/{hasDataChanged-C32ujCoA.js → hasDataChanged-QgzClnGa.js} +2 -2
  124. package/dist/hr-HR-Bhsop3CT.js +13 -0
  125. package/dist/hr-HR-D8cBxUFa.js +13 -0
  126. package/dist/{hr-HR-oTvJUvqr.js → hr-HR-TVOgDkBf.js} +3 -1
  127. package/dist/hr-HR-c1Si_0s4.js +110 -0
  128. package/dist/hu-HU-BVfkOdJe.js +13 -0
  129. package/dist/hu-HU-CibGC8KY.js +110 -0
  130. package/dist/hu-HU-D2j1ISVk.js +13 -0
  131. package/dist/{hu-HU-DA-bZKop.js → hu-HU-DRONW_47.js} +3 -1
  132. package/dist/{iframeWidget-iA0G4IZI.js → iframeWidget-LY36YmR3.js} +4 -4
  133. package/dist/{isEmpty-CD8E4UFi.js → isEmpty-uIgxe5k7.js} +2 -2
  134. package/dist/it-IT-BMjuva_2.js +110 -0
  135. package/dist/it-IT-C7Sg1k4p.js +13 -0
  136. package/dist/it-IT-CwA8megO.js +13 -0
  137. package/dist/{it-IT-CpKAGuyU.js → it-IT-DuBLJIdz.js} +3 -1
  138. package/dist/{ja-JP-7DhgV_0J.js → ja-JP-CCnzjx-u.js} +28 -2
  139. package/dist/{ja-JP-C4569I8p.js → ja-JP-CJ_j_HAA.js} +3 -1
  140. package/dist/ja-JP-Cr_qjpZ2.js +110 -0
  141. package/dist/ja-JP-GSbqID7o.js +13 -0
  142. package/dist/{localizeDateString-DHsCnGIt.js → localizeDateString-BKtxO1zQ.js} +1 -1
  143. package/dist/lt-LT-C5nNCk4_.js +13 -0
  144. package/dist/{lt-LT-DfJ0ojxY.js → lt-LT-CBBDNCnp.js} +3 -1
  145. package/dist/lt-LT-DSiutpRl.js +13 -0
  146. package/dist/lt-LT-DjNjg3Pl.js +110 -0
  147. package/dist/lv-LV-BpRfRfMz.js +110 -0
  148. package/dist/lv-LV-C62XiDE5.js +13 -0
  149. package/dist/lv-LV-CEK8Re4d.js +13 -0
  150. package/dist/{lv-LV-d0ldbfMh.js → lv-LV-CtIe38WU.js} +3 -1
  151. package/dist/{mapExistingFile-CZ8JIq0y.js → mapExistingFile-BfHRGybY.js} +4 -4
  152. package/dist/{mapJpAddressSchemaToAddressLocalizations-CYDc6_WR.js → mapJpAddressSchemaToAddressLocalizations-Bh2EFFbk.js} +53 -6
  153. package/dist/{mapLegalEntityToIndividualOnfidoSchema-DpDvE22C.js → mapLegalEntityToIndividualOnfidoSchema-ixUzJxt_.js} +4 -4
  154. package/dist/{mapTransferInstrumentToPayoutAccount-B_Z8lux3.js → mapTransferInstrumentToPayoutAccount-DqDMLrLp.js} +6 -3
  155. package/dist/nl-NL-BOJ6zuBr.js +13 -0
  156. package/dist/{nl-NL-DdVmtkAu.js → nl-NL-CE4l8R5l.js} +3 -1
  157. package/dist/nl-NL-DOQPxTX-.js +13 -0
  158. package/dist/nl-NL-oaBDOlm6.js +110 -0
  159. package/dist/{no-NO-C0WUoV9N.js → no-NO-B1_YJlMP.js} +3 -1
  160. package/dist/no-NO-BTrfxWS7.js +110 -0
  161. package/dist/no-NO-Cp3-tDMw.js +13 -0
  162. package/dist/no-NO-CuwTDFSf.js +13 -0
  163. package/dist/pl-PL-1-MrLPXu.js +13 -0
  164. package/dist/pl-PL-C72GTDxW.js +110 -0
  165. package/dist/pl-PL-CtDHmbhp.js +13 -0
  166. package/dist/{pl-PL-Byfw9EGz.js → pl-PL-DGYFY42P.js} +3 -1
  167. package/dist/process-field-configurations-CPiaN7XP.js +304 -0
  168. package/dist/pt-BR-Br_cHzGx.js +13 -0
  169. package/dist/{pt-BR-DUUAs_Pm.js → pt-BR-Co8OqKh-.js} +3 -1
  170. package/dist/pt-BR-CtFCi7U4.js +110 -0
  171. package/dist/pt-BR-DnKEuslh.js +13 -0
  172. package/dist/pt-PT-CLwCij2I.js +13 -0
  173. package/dist/pt-PT-XAn7WGle.js +110 -0
  174. package/dist/pt-PT-cjbtYBUX.js +13 -0
  175. package/dist/{pt-PT-BVZxK7ae.js → pt-PT-pKLoM66X.js} +3 -1
  176. package/dist/{resolveEnvironment-HVVOrOBr.js → resolveEnvironment-B9LzegI4.js} +3 -3
  177. package/dist/ro-RO-CGhIjlpU.js +13 -0
  178. package/dist/ro-RO-Cmk-sVDr.js +13 -0
  179. package/dist/{ro-RO-Ck3Azc56.js → ro-RO-D3rQ93wa.js} +3 -1
  180. package/dist/ro-RO-qX8X1Q1m.js +110 -0
  181. package/dist/{rules-CpkxtBrw.js → rules-BMGZ46_e.js} +9 -5
  182. package/dist/sk-SK-Bo5nvxWQ.js +13 -0
  183. package/dist/sk-SK-CjdK4BKW.js +110 -0
  184. package/dist/{sk-SK-jxAlqkeI.js → sk-SK-CmH1I1tp.js} +3 -1
  185. package/dist/sk-SK-Do6CKNU4.js +13 -0
  186. package/dist/sl-SI-CrTRlNnN.js +13 -0
  187. package/dist/sl-SI-cY-L2ma-.js +13 -0
  188. package/dist/{sl-SI-CjvFCQ3H.js → sl-SI-hnlbW1OT.js} +3 -1
  189. package/dist/sl-SI-lPxRRPsh.js +110 -0
  190. package/dist/style.css +577 -544
  191. package/dist/styles-CLV89_hH.js +577 -544
  192. package/dist/{sv-SE-CSjJPRt1.js → sv-SE-7Cbo1oic.js} +3 -1
  193. package/dist/sv-SE-BPpQ-05i.js +110 -0
  194. package/dist/sv-SE-BtwPrLEA.js +13 -0
  195. package/dist/sv-SE-WPziDPQa.js +13 -0
  196. package/dist/types/components/BankAccount/fields/BankAccountFormat/types.d.ts +2 -1
  197. package/dist/types/components/BankAccount/fields/PreferredCurrency/PreferredCurrency.d.ts +10 -0
  198. package/dist/types/components/BankAccount/forms/PayoutAccount/types.d.ts +2 -0
  199. package/dist/types/components/BankAccount/forms/PayoutCountryDetails/PayoutCountryDetails.d.ts +3 -0
  200. package/dist/types/components/BankAccount/forms/PayoutCountryDetails/types.d.ts +11 -0
  201. package/dist/types/components/BankAccount/forms/PayoutDetails/PayoutDetails.d.ts +6 -0
  202. package/dist/types/components/BankAccount/forms/PayoutDetails/types.d.ts +2 -0
  203. package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/utils.d.ts +2 -0
  204. package/dist/types/components/BankAccount/mapping/mapPayoutAccountSchemaToApiBankAccount.d.ts +3 -2
  205. package/dist/types/components/BankAccount/mapping/mapPayoutDetailsToTransferInstrument.d.ts +2 -1
  206. package/dist/types/components/BankAccount/mapping/mapTransferInstrumentToPayoutAccount.d.ts +1 -1
  207. package/dist/types/components/BankAccount/mapping/payoutKeyMappings.d.ts +2 -0
  208. package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/payoutDetailsFormConfig.d.ts +1 -1
  209. package/dist/types/components/BankAccount/utils/payoutAccountUtil.d.ts +3 -2
  210. package/dist/types/components/Business/forms/BasicInformation/BasicInformationMultiform.d.ts +5 -3
  211. package/dist/types/components/Business/forms/RegistrationDocument/types.d.ts +3 -3
  212. package/dist/types/components/Business/forms/TaxDocument/types.d.ts +3 -3
  213. package/dist/types/components/Business/pages/RootBusinessDetailsPage.d.ts +1 -1
  214. package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +0 -1
  215. package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/BusinessDetailsMultiform.d.ts +2 -1
  216. package/dist/types/components/Business/utils/applyVerifiedBusinessData.d.ts +5 -0
  217. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingBasicCompanyInformation.d.ts +0 -1
  218. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingBusinessInformation.d.ts +0 -1
  219. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingFinancialInformation.d.ts +0 -1
  220. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingOwnershipStructure.d.ts +0 -1
  221. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingRegisteredAddress.d.ts +0 -1
  222. package/dist/types/components/Individual/fields/NameFields/NameFields.d.ts +3 -0
  223. package/dist/types/components/Individual/tasks/DecisionMakers/utils.d.ts +3 -0
  224. package/dist/types/components/Shared/devex/DebugListener/DebugFormData.d.ts +1 -0
  225. package/dist/types/components/Shared/devex/DebugListener/debugStore.d.ts +5 -0
  226. package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
  227. package/dist/types/components/SoleProprietorship/pages/SoleProprietorshipPage.d.ts +1 -2
  228. package/dist/types/components/Trust/pages/TrustMemberCompanyPage.d.ts +1 -2
  229. package/dist/types/components/UnincorporatedPartnership/pages/UnincorporatedPartnershipMemberCompanyPage.d.ts +1 -2
  230. package/dist/types/components/ui/atoms/ListItem/ListItem.d.ts +1 -2
  231. package/dist/types/context/ExperimentContext/types.d.ts +4 -8
  232. package/dist/types/core/models/api/transfer-instrument.d.ts +2 -0
  233. package/dist/types/core/process-field-configurations.d.ts +2 -2
  234. package/dist/types/datasets/generators/getAccountFormatForCountry.d.ts +1 -0
  235. package/dist/types/stores/globalStore/taskTypes.d.ts +1 -1
  236. package/dist/types/{core → utils}/analytics.d.ts +5 -5
  237. package/dist/types/utils/entityStatusUtil.d.ts +1 -1
  238. package/dist/{types-YZCbv6wT.js → types-B8B2a7MQ.js} +2 -2
  239. package/dist/{types-Cnytncbd.js → types-DHmyPbAn.js} +5 -9
  240. package/dist/{types-DREIZpxT.js → types-DhTTtRCo.js} +2 -2
  241. package/dist/{useAssociatedLegalEntity-CtPwbvkG.js → useAssociatedLegalEntity-Ga-FKuMn.js} +1 -1
  242. package/dist/{useDataset-BhtLJw8i.js → useDataset-DZSHpx6s.js} +3 -3
  243. package/dist/{useForm-CkDciBI3.js → useForm-Dj2YKs6k.js} +8 -79
  244. package/dist/useFormContext-DW_Slas-.js +222 -0
  245. package/dist/{useGlobalData-BUgIp9O-.js → useGlobalData-DpDm0x5x.js} +10 -8
  246. package/dist/{RadioGroup-CDIi5JOR.js → useMultiForm-B07GoQbD.js} +6 -339
  247. package/dist/{useOnboardingStatus-C617NeV-.js → useOnboardingStatus-Cn0R_NIZ.js} +1 -1
  248. package/dist/{useScenarios-pcYq7HkO.js → useScenarios-Dt2xmzlt.js} +2 -2
  249. package/dist/{useTermsOfServiceStatus-DAhlGfSf.js → useTermsOfServiceStatus-D6iXFeAp.js} +1 -1
  250. package/dist/{useToastContext-SPgtDHvP.js → useToastContext-9176-zEj.js} +2 -2
  251. package/dist/{useUnincorporatedPartnershipMembers-AfBFy7Yl.js → useUnincorporatedPartnershipMembers-6JvFEoTe.js} +5 -5
  252. package/dist/{utils-C6VZF1lW.js → utils-BbfCeKoQ.js} +7 -7
  253. package/dist/{utils-DKPIAe71.js → utils-C3YOzi3q.js} +2 -2
  254. package/dist/{utils-CfNHCh35.js → utils-Cnzy9BrL.js} +3 -3
  255. package/dist/{validate-0hhEAEOS.js → validate-3hlm9O5d.js} +7 -7
  256. package/dist/{validate-nQU_m5nS.js → validate-C5RnmxAh.js} +2 -2
  257. package/dist/{validate-zp9cKIZQ.js → validate-CchLxW_F.js} +3 -3
  258. package/dist/{validationError-C4LAQpBz.js → validationError-9xZhdWqV.js} +2 -2
  259. package/package.json +4 -4
  260. package/dist/RootBusinessDetailsPage-BsbiSuH4.js +0 -1977
  261. package/dist/SoleProprietorshipPage-BKxqOwer.js +0 -49
  262. package/dist/UnincorporatedPartnershipMemberCompanyPage-BPEUAWOw.js +0 -63
  263. package/dist/analytics-_iYLDAnN.js +0 -61
  264. package/dist/bg-BG-B8A8D_hg.js +0 -47
  265. package/dist/bg-BG-CC5Y7izP.js +0 -13
  266. package/dist/bg-BG-DPkib_ah.js +0 -13
  267. package/dist/cs-CZ-B0dmNTJm.js +0 -13
  268. package/dist/cs-CZ-B7A0WNBx.js +0 -47
  269. package/dist/cs-CZ-E0sZTsrs.js +0 -13
  270. package/dist/da-DK-9M2wm0kt.js +0 -47
  271. package/dist/da-DK-HNKnBXb5.js +0 -13
  272. package/dist/da-DK-quX5LuPc.js +0 -13
  273. package/dist/de-DE-1wVDROIy.js +0 -13
  274. package/dist/de-DE-B2QaSUv3.js +0 -13
  275. package/dist/de-DE-CLuLBUrb.js +0 -47
  276. package/dist/el-GR-BKT02owO.js +0 -13
  277. package/dist/el-GR-BN7mIwED.js +0 -47
  278. package/dist/el-GR-C2BsVqjY.js +0 -13
  279. package/dist/en-US-BEgdeTV4.js +0 -13
  280. package/dist/en-US-BWtUZoXL.js +0 -47
  281. package/dist/es-ES-DCkqCwAK.js +0 -13
  282. package/dist/es-ES-Dc4Z3rGg.js +0 -13
  283. package/dist/es-ES-i_Fk7A9r.js +0 -47
  284. package/dist/et-EE-DKJ8Kn8O.js +0 -47
  285. package/dist/et-EE-DbRebqzm.js +0 -13
  286. package/dist/et-EE-sGRn_-QJ.js +0 -13
  287. package/dist/fi-FI-BQxUuIP0.js +0 -13
  288. package/dist/fi-FI-BXJbm9sZ.js +0 -13
  289. package/dist/fi-FI-CF4-CyIe.js +0 -47
  290. package/dist/fr-FR-C4LPqbx5.js +0 -47
  291. package/dist/fr-FR-DvgcaqM8.js +0 -13
  292. package/dist/fr-FR-t2k348rx.js +0 -13
  293. package/dist/hr-HR-BiZNiGG9.js +0 -13
  294. package/dist/hr-HR-Dlw8mrQW.js +0 -13
  295. package/dist/hr-HR-TslbqIeE.js +0 -47
  296. package/dist/hu-HU-6VmfqBr5.js +0 -13
  297. package/dist/hu-HU-CgBQ5Skc.js +0 -47
  298. package/dist/hu-HU-DLynQejq.js +0 -13
  299. package/dist/it-IT-BXsakLEg.js +0 -47
  300. package/dist/it-IT-BgdxIaNM.js +0 -13
  301. package/dist/it-IT-PJbf57vA.js +0 -13
  302. package/dist/ja-JP-B--vgrAi.js +0 -47
  303. package/dist/ja-JP-BBzuYv6e.js +0 -13
  304. package/dist/lt-LT-57A37eCA.js +0 -13
  305. package/dist/lt-LT-C_sT0Isz.js +0 -13
  306. package/dist/lt-LT-UnMr3oB3.js +0 -47
  307. package/dist/lv-LV-7VOOOEZ-.js +0 -13
  308. package/dist/lv-LV-C54zKY0H.js +0 -47
  309. package/dist/lv-LV-Cwzt1ESp.js +0 -13
  310. package/dist/nl-NL-A444CaCG.js +0 -47
  311. package/dist/nl-NL-D0wVWeHf.js +0 -13
  312. package/dist/nl-NL-DiH4q7K-.js +0 -13
  313. package/dist/no-NO-BeVzpadb.js +0 -13
  314. package/dist/no-NO-D57T2p2M.js +0 -47
  315. package/dist/no-NO-JHMzV-ae.js +0 -13
  316. package/dist/pl-PL-0BphD78z.js +0 -13
  317. package/dist/pl-PL-B3RxZ32y.js +0 -47
  318. package/dist/pl-PL-De41L6O6.js +0 -13
  319. package/dist/pt-BR-BvAy7bfZ.js +0 -13
  320. package/dist/pt-BR-CjfX1fDM.js +0 -47
  321. package/dist/pt-BR-D7RCymsU.js +0 -13
  322. package/dist/pt-PT-BH1abg6H.js +0 -13
  323. package/dist/pt-PT-CgXkfMUc.js +0 -13
  324. package/dist/pt-PT-D79GMAC5.js +0 -47
  325. package/dist/ro-RO-1W3Bw0U7.js +0 -13
  326. package/dist/ro-RO-Dj-2um-k.js +0 -47
  327. package/dist/ro-RO-raS4E2ww.js +0 -13
  328. package/dist/sk-SK-BTujkOgF.js +0 -13
  329. package/dist/sk-SK-Es-5xiuY.js +0 -13
  330. package/dist/sk-SK-JN-Ll7bm.js +0 -47
  331. package/dist/sl-SI-BT9PpQII.js +0 -13
  332. package/dist/sl-SI-Cq4LxAvb.js +0 -13
  333. package/dist/sl-SI-nUZNETVU.js +0 -47
  334. package/dist/sv-SE-8dFj9z4D.js +0 -47
  335. package/dist/sv-SE-Csib2Zj_.js +0 -13
  336. package/dist/sv-SE-EbNvb_L7.js +0 -13
@@ -0,0 +1,222 @@
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] = "1b503b1d-758c-4699-b0c7-e2c665c9ebc3", e._sentryDebugIdIdentifier = "sentry-dbid-1b503b1d-758c-4699-b0c7-e2c665c9ebc3");
6
+ } catch (e) {
7
+ }
8
+ }
9
+ ;
10
+ import { jsx, jsxs } from "preact/jsx-runtime";
11
+ import { useMemo, useRef, useState, useContext } from "preact/hooks";
12
+ import cx from "classnames";
13
+ import { P as useAnalyticsContext, u as useTranslation, B as Button, V as IconButton } from "./StoreProvider-DX9X_rtC.js";
14
+ import { L as LoaderWrapper } from "./useForm-Dj2YKs6k.js";
15
+ import { M as MaybeModal } from "./MaybeModal-BfUZzrFT.js";
16
+ import { F as FormRouterContextProvider } from "./dropinUtils-BB4B9BSv.js";
17
+ import { C as Confirm } from "./useDataset-DZSHpx6s.js";
18
+ import { e as Summary } from "./CountryField-DpZS-UHE.js";
19
+ import { createContext } from "preact";
20
+ const FormContext = createContext(null);
21
+ function FormContextProvider({
22
+ children,
23
+ form
24
+ }) {
25
+ const contextValue = useMemo(
26
+ () => ({
27
+ form
28
+ }),
29
+ [form]
30
+ );
31
+ return /* @__PURE__ */ jsx(FormContext.Provider, { value: contextValue, children });
32
+ }
33
+ const progressBar = "adyen-kyc-progress-bar";
34
+ const progressBarRounded = "adyen-kyc-progress-bar-rounded";
35
+ const progressBarIndicator = "adyen-kyc-progress-bar-indicator";
36
+ const styles$1 = {
37
+ progressBar,
38
+ progressBarRounded,
39
+ progressBarIndicator
40
+ };
41
+ const ProgressBar = ({ progress, ariaLabel, rounded = false }) => {
42
+ const clamp = (value) => {
43
+ return Math.min(Math.max(value, 0), 100);
44
+ };
45
+ const clampedProgress = clamp(progress);
46
+ const cssWidth = `${clampedProgress}%`;
47
+ const className = cx(styles$1.progressBar, {
48
+ [styles$1.progressBarRounded]: rounded
49
+ });
50
+ return /* @__PURE__ */ jsx(
51
+ "div",
52
+ {
53
+ className,
54
+ role: "progressbar",
55
+ "aria-label": ariaLabel,
56
+ "aria-valuenow": clampedProgress,
57
+ "aria-valuemin": 0,
58
+ "aria-valuemax": 100,
59
+ children: /* @__PURE__ */ jsxs("div", { className: styles$1.progressBarIndicator, style: { width: cssWidth }, children: [
60
+ progress,
61
+ "%"
62
+ ] })
63
+ }
64
+ );
65
+ };
66
+ const formFlow = "adyen-kyc-form-flow";
67
+ const formFlowContent = "adyen-kyc-form-flow-content";
68
+ const formFlowFooter = "adyen-kyc-form-flow-footer";
69
+ const formFlowFooterBorder = "adyen-kyc-form-flow-footer-border";
70
+ const formFlowActions = "adyen-kyc-form-flow-actions";
71
+ const formFlowActionGroup = "adyen-kyc-form-flow-action-group";
72
+ const styles = {
73
+ formFlow,
74
+ formFlowContent,
75
+ formFlowFooter,
76
+ formFlowFooterBorder,
77
+ formFlowActions,
78
+ formFlowActionGroup
79
+ };
80
+ const FormFlow = ({
81
+ asModal = false,
82
+ children,
83
+ currentStep = 0,
84
+ disableBackButton,
85
+ disableNextButton,
86
+ disableSaveButton,
87
+ forms,
88
+ gotoFormByFormIndex,
89
+ handleBackClick,
90
+ handleCancelClick,
91
+ handleNextClick,
92
+ handleSaveClick,
93
+ loadingStatus,
94
+ summary,
95
+ totalSteps = 1
96
+ }) => {
97
+ const contentRef = useRef(null);
98
+ const userEvents = useAnalyticsContext();
99
+ const { t } = useTranslation("common");
100
+ const [isConfirmPresented, setIsConfirmPresented] = useState(false);
101
+ const [isSaving, setIsSaving] = useState(false);
102
+ const [isSubmitting, setIsSubmitting] = useState(false);
103
+ const isLoading = loadingStatus === "loading";
104
+ const isActionDisabled = isSaving || isSubmitting || isConfirmPresented || isLoading;
105
+ const isSaveButtonVisible = handleSaveClick !== void 0;
106
+ const isFirstStep = currentStep === 0;
107
+ const isLastStep = currentStep === totalSteps - 1;
108
+ const isSingleStepForm = isFirstStep && isLastStep;
109
+ const hasProblems = summary?.problems?.verificationErrors !== void 0;
110
+ const progress = Math.floor(currentStep / (totalSteps - 1) * 100);
111
+ const scrollToTop = () => {
112
+ if (contentRef.current) {
113
+ contentRef.current.scroll({
114
+ top: 0,
115
+ behavior: "smooth"
116
+ });
117
+ }
118
+ };
119
+ const handleSubmit = () => {
120
+ setIsSubmitting(true);
121
+ Promise.resolve(handleNextClick()).then(() => {
122
+ setIsSubmitting(false);
123
+ scrollToTop();
124
+ });
125
+ };
126
+ const handleSave = () => {
127
+ setIsSaving(true);
128
+ Promise.resolve(handleSaveClick?.()).then(() => {
129
+ setIsSaving(false);
130
+ });
131
+ };
132
+ const handleNext = () => {
133
+ scrollToTop();
134
+ handleNextClick();
135
+ };
136
+ const handleBack = () => {
137
+ scrollToTop();
138
+ handleBackClick?.();
139
+ };
140
+ const handleDismiss = () => {
141
+ setIsConfirmPresented(true);
142
+ };
143
+ const handleCancelDismiss = () => {
144
+ setIsConfirmPresented(false);
145
+ };
146
+ const handleConfirmDismiss = () => {
147
+ setIsConfirmPresented(false);
148
+ handleCancelClick?.();
149
+ };
150
+ const handleSkip = () => {
151
+ userEvents.addPageEvent("Clicked button", {
152
+ actionType: "skip",
153
+ label: "skip"
154
+ });
155
+ gotoFormByFormIndex(currentStep + 1);
156
+ };
157
+ const footerClassName = cx(styles.formFlowFooter, {
158
+ [styles.formFlowFooterBorder]: isSingleStepForm
159
+ });
160
+ return /* @__PURE__ */ jsxs(MaybeModal, { inline: !asModal, onClose: handleDismiss, size: "large", children: [
161
+ /* @__PURE__ */ jsxs("div", { ref: contentRef, className: styles.formFlow, children: [
162
+ /* @__PURE__ */ jsx("div", { className: styles.formFlowContent, children: /* @__PURE__ */ jsx(LoaderWrapper, { status: loadingStatus, formOpacityWhenLoading: 0, loaderSize: "large", children: /* @__PURE__ */ jsx(FormRouterContextProvider, { forms, setFormIndex: gotoFormByFormIndex, children: isLastStep && summary !== void 0 ? /* @__PURE__ */ jsx(Summary, { ...summary, forms, gotoForm: gotoFormByFormIndex }) : children }) }) }),
163
+ /* @__PURE__ */ jsxs("div", { className: footerClassName, children: [
164
+ !isSingleStepForm && /* @__PURE__ */ jsx(ProgressBar, { ariaLabel: t(($) => $["progress"]), progress }),
165
+ /* @__PURE__ */ jsxs("div", { className: styles.formFlowActions, children: [
166
+ isFirstStep || handleBackClick === void 0 ? /* @__PURE__ */ jsx(
167
+ Button,
168
+ {
169
+ disabled: isActionDisabled || disableBackButton,
170
+ onClick: handleDismiss,
171
+ variant: "secondary",
172
+ children: t(($) => $["cancel"])
173
+ }
174
+ ) : /* @__PURE__ */ jsx(
175
+ Button,
176
+ {
177
+ disabled: isActionDisabled || disableBackButton,
178
+ icon: "chevron-left",
179
+ onClick: handleBack,
180
+ variant: "secondary",
181
+ children: t(($) => $["back"])
182
+ }
183
+ ),
184
+ isLastStep ? /* @__PURE__ */ jsx(Button, { onClick: handleSubmit, loading: isSubmitting, children: t(($) => $["submit"]) }) : /* @__PURE__ */ jsxs("div", { className: styles.formFlowActionGroup, children: [
185
+ isSaveButtonVisible && /* @__PURE__ */ jsx(
186
+ IconButton,
187
+ {
188
+ ariaLabel: t(($) => $["finishLater"]),
189
+ disabled: isActionDisabled || disableSaveButton,
190
+ loading: isSaving,
191
+ icon: "save",
192
+ onClick: handleSave,
193
+ variant: "secondary"
194
+ }
195
+ ),
196
+ hasProblems && /* @__PURE__ */ jsx(Button, { onClick: handleSkip, disabled: isActionDisabled, variant: "secondary", children: t(($) => $["skip"]) }),
197
+ /* @__PURE__ */ jsx(Button, { onClick: handleNext, disabled: isActionDisabled || disableNextButton, children: t(($) => $["continue"]) })
198
+ ] })
199
+ ] })
200
+ ] })
201
+ ] }),
202
+ isConfirmPresented && /* @__PURE__ */ jsx(
203
+ Confirm,
204
+ {
205
+ confirmText: t(($) => $["leave"]),
206
+ description: t(($) => $["unsavedChangesDescription"]),
207
+ onCancel: handleCancelDismiss,
208
+ onConfirm: handleConfirmDismiss,
209
+ title: t(($) => $["unsavedChanges"])
210
+ }
211
+ )
212
+ ] });
213
+ };
214
+ function useFormContext() {
215
+ const context = useContext(FormContext);
216
+ return context;
217
+ }
218
+ export {
219
+ FormContextProvider as F,
220
+ FormFlow as a,
221
+ useFormContext as u
222
+ };
@@ -2,21 +2,23 @@
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] = "f161dfc7-6c47-4406-aea6-65d64abd7b7b", e._sentryDebugIdIdentifier = "sentry-dbid-f161dfc7-6c47-4406-aea6-65d64abd7b7b");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "4faa5654-a08e-46a8-8590-efdfac331abd", e._sentryDebugIdIdentifier = "sentry-dbid-4faa5654-a08e-46a8-8590-efdfac331abd");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
10
  import { jsxs, jsx } from "preact/jsx-runtime";
11
11
  import { useContext, useState, useCallback, useMemo } from "preact/hooks";
12
- import { br as StateContext, u as useTranslation, P as useAnalyticsContext, X as useExperimentsContext, B as Button } from "./StoreProvider-BulXd4Hf.js";
13
- import { M as MaybeModal, L as LoaderWrapper } from "./useForm-CkDciBI3.js";
14
- import { a as ModalContent, c as ModalHeader, b as ModalFooter } from "./Modal-CeWqn3jD.js";
12
+ import { br as StateContext, u as useTranslation, P as useAnalyticsContext, X as useExperimentsContext, B as Button } from "./StoreProvider-DX9X_rtC.js";
13
+ import { L as LoaderWrapper } from "./useForm-Dj2YKs6k.js";
14
+ import { M as MaybeModal } from "./MaybeModal-BfUZzrFT.js";
15
+ import { a as ModalContent, c as ModalHeader, b as ModalFooter } from "./Modal-QC3t2pZm.js";
15
16
  import { S as Spacer } from "./Spacer-BK3jDget.js";
16
- import { S as StepProgressIndicator } from "./StepProgressIndicator-axxG6zQK.js";
17
- import { t as trackNavigation, F as FormRouterContextProvider, h as summaryStep, i as Summary } from "./CountryField-DePvueIq.js";
18
- import { F as FormNavigation } from "./FormNavigation-C8985odz.js";
19
- import { a as debounce } from "./analytics-_iYLDAnN.js";
17
+ import { S as StepProgressIndicator } from "./StepProgressIndicator-BRtUTJA2.js";
18
+ import { t as trackNavigation, F as FormRouterContextProvider } from "./dropinUtils-BB4B9BSv.js";
19
+ import { F as FormNavigation } from "./FormNavigation-BVFCNan3.js";
20
+ import { d as summaryStep, e as Summary } from "./CountryField-DpZS-UHE.js";
21
+ import { a as debounce } from "./analytics-CSO2dqDO.js";
20
22
  function useStateContext() {
21
23
  const context = useContext(StateContext);
22
24
  return context;
@@ -2,76 +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] = "242c1a06-f370-4479-a519-82ba10456072", e._sentryDebugIdIdentifier = "sentry-dbid-242c1a06-f370-4479-a519-82ba10456072");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "9ea4f306-d1de-4155-9f5d-10810808dc86", e._sentryDebugIdIdentifier = "sentry-dbid-9ea4f306-d1de-4155-9f5d-10810808dc86");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
- import { b as useApiContext, a7 as useMutation, k as httpPost, aK as useQueryClient, ak as objectsDeepEqual, N as createLogger, a9 as isEmpty, P as useAnalyticsContext, u as useTranslation, B as Button, V as IconButton, W as noop } from "./StoreProvider-BulXd4Hf.js";
11
- import { a as useInvalidateRootLegalEntity } from "./useToastContext-SPgtDHvP.js";
12
- import { jsx, jsxs } from "preact/jsx-runtime";
13
- import { useMemo, useCallback, useReducer, useEffect, useRef, useState, useContext } from "preact/hooks";
14
- import { V as ValidationResult, M as MaybeModal, L as LoaderWrapper, c as useId } from "./useForm-CkDciBI3.js";
15
- import { k as isNotEmptyValidator, F as FormRouterContextProvider, i as Summary, R as Radio } from "./CountryField-DePvueIq.js";
16
- import cx from "classnames";
17
- import { C as Confirm } from "./useDataset-BhtLJw8i.js";
18
- import { createContext } from "preact";
19
- const createLegalEntity = async (legalEntityId, baseUrl, data) => {
20
- return httpPost(
21
- {
22
- baseUrl,
23
- path: `legalEntities/${legalEntityId}/create`
24
- },
25
- data
26
- );
27
- };
28
- const useCreateLegalEntity = (options) => {
29
- const { rootLegalEntityId, baseUrl } = useApiContext();
30
- return useMutation({
31
- mutationFn: (payload) => {
32
- return createLegalEntity(rootLegalEntityId.value, baseUrl.value, payload);
33
- },
34
- ...options
35
- });
36
- };
37
- const updateLegalEntity = async (rootLegalEntityId, baseUrl, data) => {
38
- return httpPost(
39
- {
40
- baseUrl,
41
- path: `legalEntities/${rootLegalEntityId}`
42
- },
43
- data
44
- );
45
- };
46
- const useUpdateLegalEntity = (options) => {
47
- const { rootLegalEntityId, baseUrl } = useApiContext();
48
- const invalidateRootLegalEntity = useInvalidateRootLegalEntity();
49
- const queryClient = useQueryClient();
50
- return useMutation({
51
- mutationFn: (payload) => updateLegalEntity(rootLegalEntityId.value, baseUrl.value, payload),
52
- onSuccess: async (response, payload) => {
53
- if (response.id === rootLegalEntityId.value) {
54
- await invalidateRootLegalEntity();
55
- } else {
56
- queryClient.setQueryData(["legalEntity", payload.id], response);
57
- }
58
- },
59
- ...options
60
- });
61
- };
62
- const FormContext = createContext(null);
63
- function FormContextProvider({
64
- children,
65
- form
66
- }) {
67
- const contextValue = useMemo(
68
- () => ({
69
- form
70
- }),
71
- [form]
72
- );
73
- return /* @__PURE__ */ jsx(FormContext.Provider, { value: contextValue, children });
74
- }
10
+ import { useCallback, useMemo, useReducer, useEffect } from "preact/hooks";
11
+ import { ai as objectsDeepEqual, N as createLogger, aa as isEmpty } from "./StoreProvider-DX9X_rtC.js";
12
+ import { V as ValidationResult } from "./useForm-Dj2YKs6k.js";
13
+ import { a as isNotEmptyValidator } from "./commonValidators-B3Rif_Pi.js";
75
14
  const omitKeys = (obj, omit) => Object.keys(obj).filter((k) => !omit.includes(k)).reduce((a, c) => {
76
15
  a[c] = obj[c];
77
16
  return a;
@@ -920,278 +859,6 @@ function useMultiForm({
920
859
  asyncErrors: state.asyncErrors
921
860
  };
922
861
  }
923
- const progressBar = "adyen-kyc-progress-bar";
924
- const progressBarRounded = "adyen-kyc-progress-bar-rounded";
925
- const progressBarIndicator = "adyen-kyc-progress-bar-indicator";
926
- const styles$1 = {
927
- progressBar,
928
- progressBarRounded,
929
- progressBarIndicator
930
- };
931
- const ProgressBar = ({ progress, ariaLabel, rounded = false }) => {
932
- const clamp = (value) => {
933
- return Math.min(Math.max(value, 0), 100);
934
- };
935
- const clampedProgress = clamp(progress);
936
- const cssWidth = `${clampedProgress}%`;
937
- const className = cx(styles$1.progressBar, {
938
- [styles$1.progressBarRounded]: rounded
939
- });
940
- return /* @__PURE__ */ jsx(
941
- "div",
942
- {
943
- className,
944
- role: "progressbar",
945
- "aria-label": ariaLabel,
946
- "aria-valuenow": clampedProgress,
947
- "aria-valuemin": 0,
948
- "aria-valuemax": 100,
949
- children: /* @__PURE__ */ jsxs("div", { className: styles$1.progressBarIndicator, style: { width: cssWidth }, children: [
950
- progress,
951
- "%"
952
- ] })
953
- }
954
- );
955
- };
956
- const formFlow = "adyen-kyc-form-flow";
957
- const formFlowContent = "adyen-kyc-form-flow-content";
958
- const formFlowFooter = "adyen-kyc-form-flow-footer";
959
- const formFlowFooterBorder = "adyen-kyc-form-flow-footer-border";
960
- const formFlowActions = "adyen-kyc-form-flow-actions";
961
- const formFlowActionGroup = "adyen-kyc-form-flow-action-group";
962
- const styles = {
963
- formFlow,
964
- formFlowContent,
965
- formFlowFooter,
966
- formFlowFooterBorder,
967
- formFlowActions,
968
- formFlowActionGroup
969
- };
970
- const FormFlow = ({
971
- asModal = false,
972
- children,
973
- currentStep = 0,
974
- disableBackButton,
975
- disableNextButton,
976
- disableSaveButton,
977
- forms,
978
- gotoFormByFormIndex,
979
- handleBackClick,
980
- handleCancelClick,
981
- handleNextClick,
982
- handleSaveClick,
983
- loadingStatus,
984
- summary,
985
- totalSteps = 1
986
- }) => {
987
- const contentRef = useRef(null);
988
- const userEvents = useAnalyticsContext();
989
- const { t } = useTranslation("common");
990
- const [isConfirmPresented, setIsConfirmPresented] = useState(false);
991
- const [isSaving, setIsSaving] = useState(false);
992
- const [isSubmitting, setIsSubmitting] = useState(false);
993
- const isLoading = loadingStatus === "loading";
994
- const isActionDisabled = isSaving || isSubmitting || isConfirmPresented || isLoading;
995
- const isSaveButtonVisible = handleSaveClick !== void 0;
996
- const isFirstStep = currentStep === 0;
997
- const isLastStep = currentStep === totalSteps - 1;
998
- const isSingleStepForm = isFirstStep && isLastStep;
999
- const hasProblems = summary?.problems?.verificationErrors !== void 0;
1000
- const progress = Math.floor(currentStep / (totalSteps - 1) * 100);
1001
- const scrollToTop = () => {
1002
- if (contentRef.current) {
1003
- contentRef.current.scroll({
1004
- top: 0,
1005
- behavior: "smooth"
1006
- });
1007
- }
1008
- };
1009
- const handleSubmit = () => {
1010
- setIsSubmitting(true);
1011
- Promise.resolve(handleNextClick()).then(() => {
1012
- setIsSubmitting(false);
1013
- scrollToTop();
1014
- });
1015
- };
1016
- const handleSave = () => {
1017
- setIsSaving(true);
1018
- Promise.resolve(handleSaveClick?.()).then(() => {
1019
- setIsSaving(false);
1020
- });
1021
- };
1022
- const handleNext = () => {
1023
- scrollToTop();
1024
- handleNextClick();
1025
- };
1026
- const handleBack = () => {
1027
- scrollToTop();
1028
- handleBackClick?.();
1029
- };
1030
- const handleDismiss = () => {
1031
- setIsConfirmPresented(true);
1032
- };
1033
- const handleCancelDismiss = () => {
1034
- setIsConfirmPresented(false);
1035
- };
1036
- const handleConfirmDismiss = () => {
1037
- setIsConfirmPresented(false);
1038
- handleCancelClick?.();
1039
- };
1040
- const handleSkip = () => {
1041
- userEvents.addPageEvent("Clicked button", {
1042
- actionType: "skip",
1043
- label: "skip"
1044
- });
1045
- gotoFormByFormIndex(currentStep + 1);
1046
- };
1047
- const footerClassName = cx(styles.formFlowFooter, {
1048
- [styles.formFlowFooterBorder]: isSingleStepForm
1049
- });
1050
- return /* @__PURE__ */ jsxs(MaybeModal, { inline: !asModal, onClose: handleDismiss, size: "large", children: [
1051
- /* @__PURE__ */ jsxs("div", { ref: contentRef, className: styles.formFlow, children: [
1052
- /* @__PURE__ */ jsx("div", { className: styles.formFlowContent, children: /* @__PURE__ */ jsx(LoaderWrapper, { status: loadingStatus, formOpacityWhenLoading: 0, loaderSize: "large", children: /* @__PURE__ */ jsx(FormRouterContextProvider, { forms, setFormIndex: gotoFormByFormIndex, children: isLastStep && summary !== void 0 ? /* @__PURE__ */ jsx(Summary, { ...summary, forms, gotoForm: gotoFormByFormIndex }) : children }) }) }),
1053
- /* @__PURE__ */ jsxs("div", { className: footerClassName, children: [
1054
- !isSingleStepForm && /* @__PURE__ */ jsx(ProgressBar, { ariaLabel: t(($) => $["progress"]), progress }),
1055
- /* @__PURE__ */ jsxs("div", { className: styles.formFlowActions, children: [
1056
- isFirstStep || handleBackClick === void 0 ? /* @__PURE__ */ jsx(
1057
- Button,
1058
- {
1059
- disabled: isActionDisabled || disableBackButton,
1060
- onClick: handleDismiss,
1061
- variant: "secondary",
1062
- children: t(($) => $["cancel"])
1063
- }
1064
- ) : /* @__PURE__ */ jsx(
1065
- Button,
1066
- {
1067
- disabled: isActionDisabled || disableBackButton,
1068
- icon: "chevron-left",
1069
- onClick: handleBack,
1070
- variant: "secondary",
1071
- children: t(($) => $["back"])
1072
- }
1073
- ),
1074
- isLastStep ? /* @__PURE__ */ jsx(Button, { onClick: handleSubmit, loading: isSubmitting, children: t(($) => $["submit"]) }) : /* @__PURE__ */ jsxs("div", { className: styles.formFlowActionGroup, children: [
1075
- isSaveButtonVisible && /* @__PURE__ */ jsx(
1076
- IconButton,
1077
- {
1078
- ariaLabel: t(($) => $["finishLater"]),
1079
- disabled: isActionDisabled || disableSaveButton,
1080
- loading: isSaving,
1081
- icon: "save",
1082
- onClick: handleSave,
1083
- variant: "secondary"
1084
- }
1085
- ),
1086
- hasProblems && /* @__PURE__ */ jsx(Button, { onClick: handleSkip, disabled: isActionDisabled, variant: "secondary", children: t(($) => $["skip"]) }),
1087
- /* @__PURE__ */ jsx(Button, { onClick: handleNext, disabled: isActionDisabled || disableNextButton, children: t(($) => $["continue"]) })
1088
- ] })
1089
- ] })
1090
- ] })
1091
- ] }),
1092
- isConfirmPresented && /* @__PURE__ */ jsx(
1093
- Confirm,
1094
- {
1095
- confirmText: t(($) => $["leave"]),
1096
- description: t(($) => $["unsavedChangesDescription"]),
1097
- onCancel: handleCancelDismiss,
1098
- onConfirm: handleConfirmDismiss,
1099
- title: t(($) => $["unsavedChanges"])
1100
- }
1101
- )
1102
- ] });
1103
- };
1104
- function useFormContext() {
1105
- const context = useContext(FormContext);
1106
- return context;
1107
- }
1108
- const RadioWithLabel = ({
1109
- value,
1110
- label,
1111
- content,
1112
- groupName,
1113
- checked = false,
1114
- disabled = false,
1115
- onClick
1116
- }) => {
1117
- const id = useId("radio");
1118
- return /* @__PURE__ */ jsxs("label", { htmlFor: id, className: "adyen-kyc-input-radio", children: [
1119
- /* @__PURE__ */ jsx(
1120
- Radio,
1121
- {
1122
- id,
1123
- checked,
1124
- groupName,
1125
- onClick,
1126
- value,
1127
- disabled
1128
- }
1129
- ),
1130
- /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-input-radio__content", children: [
1131
- /* @__PURE__ */ jsx("span", { className: "adyen-kyc-input-radio__label adyen-kyc-label__text", children: label }),
1132
- content
1133
- ] })
1134
- ] });
1135
- };
1136
- function RadioGroup({
1137
- items = [],
1138
- name,
1139
- onChange = noop,
1140
- value,
1141
- disabled = false,
1142
- horizontal = false,
1143
- showContentOnlyOnSelected = false,
1144
- className,
1145
- enableTracking = false
1146
- }) {
1147
- const { t, i18n } = useTranslation("common");
1148
- const userEvents = useAnalyticsContext();
1149
- const handleChange = (id) => {
1150
- if (enableTracking) {
1151
- userEvents.addFieldEvent("Interacted with form field", {
1152
- actionType: "input",
1153
- field: name,
1154
- returnValue: value
1155
- });
1156
- }
1157
- onChange(id);
1158
- };
1159
- return /* @__PURE__ */ jsx(
1160
- "div",
1161
- {
1162
- className: cx([
1163
- "adyen-kyc-radio-group",
1164
- { "adyen-kyc-radio-group--horizontal": horizontal },
1165
- className
1166
- ]),
1167
- children: items.map((item) => {
1168
- const isSelected = item.id === value;
1169
- const visibleContent = isSelected || !showContentOnlyOnSelected ? item.content : void 0;
1170
- const keyExists = i18n.exists(item.name, { ns: "common" });
1171
- return /* @__PURE__ */ jsx(
1172
- RadioWithLabel,
1173
- {
1174
- value: item.id,
1175
- label: keyExists ? t(($) => $[item.name]) : item.name,
1176
- content: visibleContent,
1177
- groupName: name,
1178
- checked: isSelected,
1179
- disabled,
1180
- onClick: () => handleChange(item.id)
1181
- },
1182
- item.id
1183
- );
1184
- })
1185
- }
1186
- );
1187
- }
1188
862
  export {
1189
- FormContextProvider as F,
1190
- RadioGroup as R,
1191
- useMultiForm as a,
1192
- FormFlow as b,
1193
- useCreateLegalEntity as c,
1194
- useUpdateLegalEntity as d,
1195
- RadioWithLabel as e,
1196
- useFormContext as u
863
+ useMultiForm as u
1197
864
  };
@@ -7,7 +7,7 @@
7
7
  }
8
8
  }
9
9
  ;
10
- import { b as useApiContext, j as useQuery, o as httpGet } from "./StoreProvider-BulXd4Hf.js";
10
+ import { b as useApiContext, j as useQuery, o as httpGet } from "./StoreProvider-DX9X_rtC.js";
11
11
  const getOnboardingStatus = async (legalEntityId, baseUrl) => {
12
12
  return httpGet({
13
13
  baseUrl,
@@ -2,12 +2,12 @@
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] = "9b78ddab-f0a0-4088-a572-9765db6a1524", e._sentryDebugIdIdentifier = "sentry-dbid-9b78ddab-f0a0-4088-a572-9765db6a1524");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "05167b81-0e71-4bb3-af12-8a1d7f96975e", e._sentryDebugIdIdentifier = "sentry-dbid-05167b81-0e71-4bb3-af12-8a1d7f96975e");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
- import { b as useApiContext, j as useQuery, a8 as entriesOf, q as skipToken, aq as Scenarios, o as httpGet } from "./StoreProvider-BulXd4Hf.js";
10
+ import { b as useApiContext, j as useQuery, aC as entriesOf, q as skipToken, ao as Scenarios, o as httpGet } from "./StoreProvider-DX9X_rtC.js";
11
11
  const getScenarios = async (legalEntityId, baseUrl, legalEntityType, countryCode) => {
12
12
  const scenarioParams = new URLSearchParams({
13
13
  ...countryCode && { countryCode },
@@ -7,7 +7,7 @@
7
7
  }
8
8
  }
9
9
  ;
10
- import { b as useApiContext, j as useQuery, o as httpGet } from "./StoreProvider-BulXd4Hf.js";
10
+ import { b as useApiContext, j as useQuery, o as httpGet } from "./StoreProvider-DX9X_rtC.js";
11
11
  const getTermsOfServiceAcceptanceInfos = async (legalEntityId, baseUrl) => {
12
12
  return httpGet({
13
13
  baseUrl,
@@ -2,12 +2,12 @@
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] = "8a5e6699-bfb8-4454-b497-0ef8416f896b", e._sentryDebugIdIdentifier = "sentry-dbid-8a5e6699-bfb8-4454-b497-0ef8416f896b");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "1db42124-36fd-4973-93c5-27c697cab264", e._sentryDebugIdIdentifier = "sentry-dbid-1db42124-36fd-4973-93c5-27c697cab264");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
- import { N as createLogger, aK as useQueryClient, b as useApiContext, aN as ToastContext } from "./StoreProvider-BulXd4Hf.js";
10
+ import { N as createLogger, aF as useQueryClient, b as useApiContext, aK as ToastContext } from "./StoreProvider-DX9X_rtC.js";
11
11
  import { useCallback, useContext } from "preact/hooks";
12
12
  const logger = createLogger();
13
13
  const QUERIES_TO_INVALIDATE_WHEN_ROOT_LE_IS_INVALIDATED = [