@adyen/kyc-components 3.71.3 → 3.73.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 (189) hide show
  1. package/dist/{AcceptTermsOfServiceComponent-Dsv4mY-k.js → AcceptTermsOfServiceComponent-Ib77t0y9.js} +11 -198
  2. package/dist/{AccountSetupRejected-Cz2iWdPE.js → AccountSetupRejected-Dcrt_Wjb.js} +3 -3
  3. package/dist/{BusinessDetailsDropin-CxJ7Ga0q.js → BusinessDetailsDropin-D10LCgSY.js} +199 -98
  4. package/dist/BusinessFinancingPage-CVRFAPxm.js +35 -0
  5. package/dist/{BusinessTypeSelection-wbCak0Us.js → BusinessTypeSelectionPage-DK4PY3_p.js} +47 -40
  6. package/dist/{CXEL7IU7-B9HOZi-H.js → CXEL7IU7-DyO75Uac.js} +3 -3
  7. package/dist/{CreateIndividualComponent-C3uFsTUT.js → CreateIndividualComponent-BiMYdvQq.js} +265 -1227
  8. package/dist/CreateTransferInstrumentComponent-CaBD_3yr.js +1082 -0
  9. package/dist/{CustomerSupport-BuxhbwRm.js → CustomerSupport-BqyayBTP.js} +4 -3
  10. package/dist/{DebugModal-B_DAGmya.js → DebugModal-CO_clhiW.js} +12 -11
  11. package/dist/DecisionMakerDetailsPage-C0wmo475.js +80 -0
  12. package/dist/{DecisionMakers-L6oYW0-J.js → DecisionMakers-B2rmqsfW.js} +6 -5
  13. package/dist/{EventEmitter-DTdpTyY7.js → EventEmitter-BmWcyurq.js} +1015 -1407
  14. package/dist/FormNavigation-W4SYacAX.js +205 -0
  15. package/dist/{HASRA6WW-CBmvzSwj.js → HASRA6WW-Cj_9-H1H.js} +2 -2
  16. package/dist/{I3HPI4QX-9ko0FQd6.js → I3HPI4QX-CCkDLYPH.js} +3 -3
  17. package/dist/{Introduction-C16zT64A.js → Introduction-DlsETOX7.js} +14 -6
  18. package/dist/LegalRepresentativeDetailsPage-Dbp83K05.js +55 -0
  19. package/dist/ManageIndividualComponent-D-47IZH6.js +190 -0
  20. package/dist/Modal-6j0jkYFX.js +135 -0
  21. package/dist/PayoutDetailsPage-CWAOATOb.js +57 -0
  22. package/dist/{Review-BbsJ9Iv_.js → Review-B0v_A189.js} +4 -3
  23. package/dist/RootBusinessDetailsPage-D_3xc6YN.js +43 -0
  24. package/dist/RootIndividualDetailsPage-CT-rsvpD.js +71 -0
  25. package/dist/{EmbedShell-DpZpuM-4.js → ShadowStylesRoot-DMxqA0py.js} +28 -10
  26. package/dist/{SingpassSelection-Biuh42TV.js → SingpassSelection-DB5BHBy1.js} +2 -2
  27. package/dist/SoleProprietorshipPage-CFZ3F57F.js +45 -0
  28. package/dist/{SourceOfFunds.module-CwVf62zO.js → SourceOfFunds.module-sL22I1gI.js} +2 -2
  29. package/dist/{SourceOfFundsDropin-Bz8cTP4R.js → SourceOfFundsPage-Tde0WbSG.js} +44 -20
  30. package/dist/Tag-DdkVScyr.js +41 -0
  31. package/dist/{TaskItemStatus-DzTphBn7.js → TaskItemStatus-DqNACVFe.js} +4 -32
  32. package/dist/{TaxReportingDropin-xDar-7mC.js → TaxReportingDropin-CPQZXr1j.js} +6 -5
  33. package/dist/{TrustOuter-2GEllVo3.js → TrustDetailsPage-BGkbFLaG.js} +20 -29
  34. package/dist/TrustMemberCompanyPage-CQi1xGDz.js +55 -0
  35. package/dist/TrustMemberIndividualPage-BI_XyXhS.js +60 -0
  36. package/dist/UnincorporatedPartnershipIndividualPage-B6gLv55I.js +60 -0
  37. package/dist/UnincorporatedPartnershipMemberCompanyPage-jHwnxg3n.js +58 -0
  38. package/dist/adyen-individual.js +41 -0
  39. package/dist/adyen-kyc-components.js +3 -6
  40. package/dist/adyen-manage-individual.js +41 -0
  41. package/dist/adyen-terms-of-service.js +47 -0
  42. package/dist/adyen-terms-of-service.vue_vue_type_script_lang-CLUMW5mI.js +34 -0
  43. package/dist/adyen-transfer-instrument.js +59 -0
  44. package/dist/adyen-transfer-instrument.vue_vue_type_script_lang-uEpG3KG3.js +45 -0
  45. package/dist/{bg-BG-CzEF3tzV.js → bg-BG-CZRQZyXO.js} +12 -5
  46. package/dist/{cs-CZ-TMjslGp_.js → cs-CZ-BbUFgifZ.js} +12 -5
  47. package/dist/{css-CypmaTn8.js → css-CFY1scQ9.js} +2 -2
  48. package/dist/{da-DK-DWzvDWZJ.js → da-DK-CP71BFS7.js} +12 -5
  49. package/dist/{de-DE-BtIL-7gp.js → de-DE-DY56JGZt.js} +12 -5
  50. package/dist/{el-GR-DHSSlqbw.js → el-GR-CnENEp5c.js} +12 -5
  51. package/dist/{es-ES-OwkE9-Cu.js → es-ES-dV62vQcV.js} +28 -21
  52. package/dist/{et-EE-DvixWnLd.js → et-EE-BBgAN3Wc.js} +12 -5
  53. package/dist/{fi-FI-DZiXWe_g.js → fi-FI-DVmGWIxn.js} +12 -5
  54. package/dist/{fr-FR-BBwiWhiT.js → fr-FR-VwG8Rg7R.js} +12 -5
  55. package/dist/{hr-HR-DJYofWKU.js → hr-HR-Bs_lxjxQ.js} +12 -5
  56. package/dist/{hu-HU-k9c6wZld.js → hu-HU-8dVSiOZM.js} +12 -5
  57. package/dist/{core-BsRrVyKB.js → index-D6YGuPb5.js} +810 -1908
  58. package/dist/{it-IT-oOwbWW3K.js → it-IT-DvwWMDl1.js} +12 -5
  59. package/dist/{ja-JP-CT3g8Hhn.js → ja-JP-BB6zzyEg.js} +12 -5
  60. package/dist/{json-DDReVYSW.js → json-RoVXbcQq.js} +2 -2
  61. package/dist/localizeDateString-DtxuKMqB.js +27 -0
  62. package/dist/{lt-LT-CVHIsEF8.js → lt-LT-BQtNojlb.js} +12 -5
  63. package/dist/{lv-LV-BFx0cvZ2.js → lv-LV-BpEw5uN5.js} +12 -5
  64. package/dist/mapExistingFile-CwT8TZ5D.js +870 -0
  65. package/dist/{nl-NL-rmSZu4Rf.js → nl-NL-vBEBXTP-.js} +12 -5
  66. package/dist/{no-NO-BOnQvimN.js → no-NO-BFhTqUoD.js} +12 -5
  67. package/dist/{pl-PL-5j22An4E.js → pl-PL-dsGZvzVf.js} +12 -5
  68. package/dist/{plaintext-Cjcgjaqv.js → plaintext-DpBLPLCO.js} +2 -2
  69. package/dist/{terms-of-service-preact.js → preact/adyen-individual.js} +4 -4
  70. package/dist/{individual-react.js → preact/adyen-manage-individual.js} +4 -4
  71. package/dist/{terms-of-service-react.js → preact/adyen-terms-of-service.js} +5 -4
  72. package/dist/preact/adyen-transfer-instrument.js +16 -0
  73. package/dist/{pt-PT-DP8U1qyu.js → pt-PT-BB38pZbh.js} +12 -5
  74. package/dist/{ro-RO-BTdtoC6P.js → ro-RO-BgxNxoxJ.js} +12 -5
  75. package/dist/{sk-SK-DYTx4mOB.js → sk-SK-rtDeCztl.js} +12 -5
  76. package/dist/{sl-SI-D8CiUN69.js → sl-SI-qoGCwUdU.js} +12 -5
  77. package/dist/style.css +1942 -1990
  78. package/dist/styles-CLV89_hH.js +1942 -1990
  79. package/dist/{sv-SE-Daslxeqr.js → sv-SE-f1T7PBSW.js} +12 -5
  80. package/dist/types/api/transferInstruments/useTransferInstrument.d.ts +2 -1
  81. package/dist/types/components/BankAccount/forms/BankDocument/types.d.ts +2 -0
  82. package/dist/types/components/BankAccount/forms/PayoutDetails/types.d.ts +2 -5
  83. package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/types.d.ts +1 -11
  84. package/dist/types/components/BankAccount/pages/PayoutDetailsPage.d.ts +14 -0
  85. package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/PayoutDetailsDropin.d.ts +1 -1
  86. package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/payoutDetailsFormConfig.d.ts +12 -1
  87. package/dist/types/components/Business/forms/BusinessDetails/forms.d.ts +14 -0
  88. package/dist/types/components/Business/forms/BusinessDetails/types.d.ts +1 -0
  89. package/dist/types/components/Business/forms/ProofOfOwnershipDocument/ProofOfOwnershipDocument.d.ts +2 -0
  90. package/dist/types/components/Business/forms/ProofOfOwnershipDocument/types.d.ts +8 -0
  91. package/dist/types/components/Business/forms/rules.d.ts +0 -1
  92. package/dist/types/components/Business/mapping/businessDetails/businessDetailsKeyMappings.d.ts +1 -1
  93. package/dist/types/components/Business/mapping/businessDetails/solePropBusinessDetailsKeyMappings.d.ts +1 -1
  94. package/dist/types/components/Business/pages/RootBusinessDetailsPage.d.ts +8 -0
  95. package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +1 -3
  96. package/dist/types/components/EFP/pages/BusinessFinancingPage.d.ts +7 -0
  97. package/dist/types/components/EFP/pages/SourceOfFundsPage.d.ts +7 -0
  98. package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/DropinComposer.d.ts +1 -1
  99. package/dist/types/components/Individual/forms/Individual/IdDocumentUpload/types.d.ts +1 -0
  100. package/dist/types/components/Individual/forms/Individual/IdVerificationMethod/IdVerificationMethod.d.ts +0 -1
  101. package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/IdVerificationMethod.types.d.ts +0 -2
  102. package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.types.d.ts +2 -1
  103. package/dist/types/components/Individual/pages/DecisionMakerDetailsPage.d.ts +20 -0
  104. package/dist/types/components/Individual/pages/LegalRepresentativeDetailsPage.d.ts +12 -0
  105. package/dist/types/components/Individual/pages/RootIndividualDetailsPage.d.ts +16 -0
  106. package/dist/types/components/Individual/tasks/DecisionMakers/types.d.ts +0 -2
  107. package/dist/types/components/Shared/Introduction/Introduction.d.ts +4 -2
  108. package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
  109. package/dist/types/components/Shared/forms/BusinessTypeSelection/BusinessTypeSelection.d.ts +1 -1
  110. package/dist/types/components/Shared/forms/BusinessTypeSelection/types.d.ts +3 -5
  111. package/dist/types/components/Shared/forms/DocumentUpload/DocumentUpload.d.ts +1 -1
  112. package/dist/types/components/Shared/forms/DocumentUpload/types.d.ts +5 -0
  113. package/dist/types/components/Shared/pages/BusinessTypeSelectionPage.d.ts +2 -0
  114. package/dist/types/components/Shared/tasks/TaskList/TaskList.d.ts +7 -1
  115. package/dist/types/components/Shared/tasks/TaskList/types.d.ts +0 -6
  116. package/dist/types/components/Shared/tasks/TaskList/utils.d.ts +1 -0
  117. package/dist/types/components/SoleProprietorship/pages/SoleProprietorshipPage.d.ts +8 -0
  118. package/dist/types/components/Trust/pages/TrustDetailsPage.d.ts +10 -0
  119. package/dist/types/components/Trust/pages/TrustMemberCompanyPage.d.ts +11 -0
  120. package/dist/types/components/Trust/pages/TrustMemberIndividualPage.d.ts +16 -0
  121. package/dist/types/components/Trust/pages/TrustMemberRoleAndTypePage.d.ts +9 -0
  122. package/dist/types/components/Trust/tasks/TrustMembers/TrustMembersOverview.d.ts +4 -7
  123. package/dist/types/components/UnincorporatedPartnership/hooks/useUnincorporatedPartnershipNavigation.d.ts +0 -2
  124. package/dist/types/components/UnincorporatedPartnership/pages/UnincorporatedPartnershipIndividualPage.d.ts +16 -0
  125. package/dist/types/components/UnincorporatedPartnership/pages/UnincorporatedPartnershipMemberCompanyPage.d.ts +11 -0
  126. package/dist/types/components/UnincorporatedPartnership/pages/UnincorporatedPartnershipMemberRoleAndTypePage.d.ts +8 -0
  127. package/dist/types/components/UnincorporatedPartnership/tasks/UnincorporatedPartnershipMembers/UnincorporatedPartnershipMembersOverview.d.ts +1 -5
  128. package/dist/types/components/UnincorporatedPartnership/tasks/UnincorporatedPartnershipRoleAndType/UnincorporatedPartnershipRoleAndType.d.ts +1 -1
  129. package/dist/types/components/ui/molecules/Dropzone/types.d.ts +1 -0
  130. package/dist/types/context/AnalyticsContext/AnalyticsProvider.d.ts +2 -2
  131. package/dist/types/context/ExperimentContext/ExperimentsContextProvider.d.ts +1 -1
  132. package/dist/types/context/ExperimentContext/types.d.ts +6 -6
  133. package/dist/types/core/EmbedShell/EmbedShell.d.ts +3 -4
  134. package/dist/types/core/environment/resolveEnvironment.d.ts +1 -0
  135. package/dist/types/core/models/api/document.d.ts +1 -1
  136. package/dist/types/embeds/ShadowStylesRoot.d.ts +3 -0
  137. package/dist/types/embeds/baseEmbedProps.d.ts +30 -0
  138. package/dist/types/embeds/individual/AdyenIndividualPreact.d.ts +3 -0
  139. package/dist/types/embeds/individual/adyen-individual.types.d.ts +30 -0
  140. package/dist/types/embeds/manage-individual/AdyenManageIndividualPreact.d.ts +3 -0
  141. package/dist/types/embeds/manage-individual/adyen-manage-individual.d.ts +1 -0
  142. package/dist/types/embeds/manage-individual/adyen-manage-individual.types.d.ts +29 -0
  143. package/dist/types/embeds/terms-of-service/AdyenTermsOfServicePreact.d.ts +3 -0
  144. package/dist/types/embeds/terms-of-service/adyen-terms-of-service.types.d.ts +30 -0
  145. package/dist/types/embeds/transfer-instrument/AdyenTransferInstrumentPreact.d.ts +3 -0
  146. package/dist/types/embeds/transfer-instrument/adyen-transfer-instrument.types.d.ts +36 -0
  147. package/dist/types/hooks/useDataConflicts.d.ts +1 -5
  148. package/dist/types/stores/globalStore/taskTypes.d.ts +0 -1
  149. package/dist/types/utils/country.d.ts +3 -2
  150. package/dist/types/utils/entityStatusUtil.d.ts +1 -1
  151. package/dist/types/utils/getDisplayErrorMessage.d.ts +3 -0
  152. package/dist/useToastContext-DiQ_PGrE.js +33 -0
  153. package/dist/{utils-Fkk087z-.js → utils-Bl8l2XY4.js} +4 -4
  154. package/dist/vue/adyen-individual.js +43 -0
  155. package/dist/vue/adyen-manage-individual.js +46 -0
  156. package/dist/vue/adyen-terms-of-service.js +26 -0
  157. package/dist/vue/adyen-transfer-instrument.js +28 -0
  158. package/dist/{yaml-GnQQmt7i.js → yaml-DEzkYiMR.js} +2 -2
  159. package/package.json +28 -61
  160. package/dist/adyenConfig.js +0 -34
  161. package/dist/individual-preact.js +0 -15
  162. package/dist/individual-vue.js +0 -35
  163. package/dist/individual.js +0 -58
  164. package/dist/listToRecord-CO3M1Q74.js +0 -19
  165. package/dist/terms-of-service.js +0 -58
  166. package/dist/transfer-instrument-preact.js +0 -32
  167. package/dist/transfer-instrument-react.js +0 -32
  168. package/dist/transfer-instrument-vue.js +0 -41
  169. package/dist/transfer-instrument.js +0 -38
  170. package/dist/types/components/BankAccount/forms/PayoutDetails/utils.d.ts +0 -2
  171. package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/PreferInstantVerificationMethod/PreferInstantVerificationMethod.d.ts +0 -22
  172. package/dist/types/components/Individual/forms/Individual/IndividualOuter.d.ts +0 -26
  173. package/dist/types/components/Trust/tasks/TrustDropin/TrustOuter.d.ts +0 -10
  174. package/dist/types/components/ui/atoms/List/List.d.ts +0 -9
  175. package/dist/types/embeds/adyenConfig.d.ts +0 -22
  176. package/dist/types/embeds/individual/individual.types.d.ts +0 -12
  177. package/dist/types/embeds/individual/preact/Individual.d.ts +0 -15
  178. package/dist/types/embeds/individual/react/Individual.d.ts +0 -20
  179. package/dist/types/embeds/individual/vue/individual.types.d.ts +0 -9
  180. package/dist/types/embeds/terms-of-service/preact/TermsOfService.d.ts +0 -10
  181. package/dist/types/embeds/terms-of-service/react/TermsOfService.d.ts +0 -20
  182. package/dist/types/embeds/terms-of-service/terms-of-service.types.d.ts +0 -8
  183. package/dist/types/embeds/transfer-instrument/preact/TransferInstrument.d.ts +0 -15
  184. package/dist/types/embeds/transfer-instrument/react/TransferInstrument.d.ts +0 -20
  185. package/dist/types/embeds/transfer-instrument/transfer-instrument.types.d.ts +0 -17
  186. package/dist/types/embeds/transfer-instrument/vue/transfer-instrument.types.d.ts +0 -9
  187. package/dist/types/embeds/types.d.ts +0 -19
  188. package/dist/types/embeds/utils.d.ts +0 -7
  189. package/dist/utils-Du6OO4ZK.js +0 -27
@@ -0,0 +1,57 @@
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] = "23120005-8c00-4205-927e-e917180e01d9", e._sentryDebugIdIdentifier = "sentry-dbid-23120005-8c00-4205-927e-e917180e01d9");
6
+ } catch (e) {
7
+ }
8
+ }
9
+ ;
10
+ import { jsx } from "preact/jsx-runtime";
11
+ import { P as useLegalEntity, aq as ROOT_LE, z as useAssociatedLegalEntity, L as LegalEntityType, cT as useCapabilities, M as Loader, af as EntityType, cI as keysOf } from "./EventEmitter-BmWcyurq.js";
12
+ import { b as useCapabilityProblems, k as getProblemsForEntity } from "./CreateIndividualComponent-BiMYdvQq.js";
13
+ import { P as PayoutDetailsDropin } from "./CreateTransferInstrumentComponent-CaBD_3yr.js";
14
+ function PayoutDetailsPage({
15
+ transferInstrumentId,
16
+ setTransferInstrumentId,
17
+ taskType,
18
+ openBankingPartnerConfigId,
19
+ onSubmit,
20
+ handleHomeClick
21
+ }) {
22
+ const { data: rootLe } = useLegalEntity(ROOT_LE);
23
+ const { data: associatedLe, isLoading: associatedLeIsLoading } = useAssociatedLegalEntity(
24
+ rootLe,
25
+ [
26
+ LegalEntityType.SOLE_PROPRIETORSHIP,
27
+ LegalEntityType.TRUST,
28
+ LegalEntityType.UNINCORPORATED_PARTNERSHIP
29
+ ]
30
+ );
31
+ const capabilities = useCapabilities();
32
+ const capabilityProblems = useCapabilityProblems();
33
+ if (!rootLe || associatedLeIsLoading) {
34
+ return /* @__PURE__ */ jsx(Loader, {});
35
+ }
36
+ const capabilityNames = capabilities ? keysOf(capabilities) : [];
37
+ const problems = capabilityProblems && transferInstrumentId ? getProblemsForEntity(capabilityProblems, EntityType.BANK_ACCOUNT, transferInstrumentId) : void 0;
38
+ return /* @__PURE__ */ jsx(
39
+ PayoutDetailsDropin,
40
+ {
41
+ taskType,
42
+ currentTransferInstrumentId: transferInstrumentId,
43
+ setCurrentTransferInstrumentId: setTransferInstrumentId,
44
+ legalEntityResponse: rootLe,
45
+ associatedLegalArrangement: associatedLe,
46
+ capabilities: capabilityNames,
47
+ problems,
48
+ onSubmit,
49
+ handleHomeClick,
50
+ navigateBackToTaskList: handleHomeClick,
51
+ openBankingPartnerConfigId
52
+ }
53
+ );
54
+ }
55
+ export {
56
+ PayoutDetailsPage
57
+ };
@@ -2,15 +2,16 @@
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] = "397833db-7cc0-494a-b8b3-08f2ed1955bf", e._sentryDebugIdIdentifier = "sentry-dbid-397833db-7cc0-494a-b8b3-08f2ed1955bf");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "5dd992f3-d2be-487f-a9f1-946aa4b3692d", e._sentryDebugIdIdentifier = "sentry-dbid-5dd992f3-d2be-487f-a9f1-946aa4b3692d");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
10
  import { jsx, jsxs } from "preact/jsx-runtime";
11
11
  import { useState } from "preact/hooks";
12
- import { m as useApiContext, a5 as useMutation, a4 as httpPost, u as useI18nContext, W as useToastContext, L as LoaderWrapper, b3 as FormHeader, bt as Checkbox, bf as ActionBar } from "./EventEmitter-DTdpTyY7.js";
13
- import { D as DropinLayout } from "./core-BsRrVyKB.js";
12
+ import { u as useApiContext, V as useMutation, U as httpPost, b as useI18nContext, aj as LoaderWrapper, aK as FormHeader, b9 as Checkbox, aY as ActionBar } from "./EventEmitter-BmWcyurq.js";
13
+ import { u as useToastContext } from "./useToastContext-DiQ_PGrE.js";
14
+ import { D as DropinLayout } from "./index-D6YGuPb5.js";
14
15
  const confirmReview = async (legalEntityId, baseUrl) => {
15
16
  return httpPost({
16
17
  baseUrl,
@@ -0,0 +1,43 @@
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] = "f4de6261-6a66-47a4-af35-b571ad4fa043", e._sentryDebugIdIdentifier = "sentry-dbid-f4de6261-6a66-47a4-af35-b571ad4fa043");
6
+ } catch (e) {
7
+ }
8
+ }
9
+ ;
10
+ import { jsx } from "preact/jsx-runtime";
11
+ import { ae as useAccountHolder, P as useLegalEntity, aq as ROOT_LE, M as Loader, a9 as isPartOfTrustFromLegalEntity, af as EntityType, Q as getLegalEntityCountry, ah as TaskTypes } from "./EventEmitter-BmWcyurq.js";
12
+ import { b as useCapabilityProblems, k as getProblemsForEntity } from "./CreateIndividualComponent-BiMYdvQq.js";
13
+ import { B as BusinessDetailsDropin } from "./BusinessDetailsDropin-D10LCgSY.js";
14
+ const RootBusinessDetailsPage = ({
15
+ isTargetLegalEntityType = false,
16
+ onSubmit,
17
+ handleHomeClick
18
+ }) => {
19
+ const { accountHolder } = useAccountHolder();
20
+ const { data: rootLe } = useLegalEntity(ROOT_LE);
21
+ const capabilityProblems = useCapabilityProblems();
22
+ if (!rootLe) {
23
+ return /* @__PURE__ */ jsx(Loader, {});
24
+ }
25
+ const hasTrust = accountHolder === "aTrust" || isPartOfTrustFromLegalEntity(rootLe);
26
+ const problems = capabilityProblems ? getProblemsForEntity(capabilityProblems, EntityType.LEGAL_ENTITY, rootLe.id) : void 0;
27
+ return /* @__PURE__ */ jsx(
28
+ BusinessDetailsDropin,
29
+ {
30
+ taskType: TaskTypes.BUSINESS_DETAILS,
31
+ taskName: hasTrust ? "businessTrusteeDetails" : "businessDetails",
32
+ legalEntityResponse: rootLe,
33
+ problems,
34
+ country: getLegalEntityCountry(rootLe),
35
+ isTargetLegalEntityType,
36
+ onSubmit,
37
+ handleHomeClick
38
+ }
39
+ );
40
+ };
41
+ export {
42
+ RootBusinessDetailsPage
43
+ };
@@ -0,0 +1,71 @@
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] = "08093bf3-74fa-463c-8147-5d232fd301c6", e._sentryDebugIdIdentifier = "sentry-dbid-08093bf3-74fa-463c-8147-5d232fd301c6");
6
+ } catch (e) {
7
+ }
8
+ }
9
+ ;
10
+ import { jsx } from "preact/jsx-runtime";
11
+ import { P as useLegalEntity, aq as ROOT_LE, al as useExperimentsContext, ae as useAccountHolder, M as Loader, Q as getLegalEntityCountry, a9 as isPartOfTrustFromLegalEntity, af as EntityType, ah as TaskTypes, ak as noop } from "./EventEmitter-BmWcyurq.js";
12
+ import { b as useCapabilityProblems, k as getProblemsForEntity, m as isOnfidoAutofillFlowEnabled, I as IndividualOnfidoDropin, n as IndividualDropin } from "./CreateIndividualComponent-BiMYdvQq.js";
13
+ function RootIndividualDetailsPage({
14
+ asModal = false,
15
+ hideSidebar = false,
16
+ isTargetLegalEntityType = false,
17
+ onSubmit,
18
+ trustedFields,
19
+ trustedFieldsProvider,
20
+ /** below from {@link DropinProps} */
21
+ handleBackClick,
22
+ handleCloseClick,
23
+ handleHomeClick = noop
24
+ }) {
25
+ const { data: rootLe } = useLegalEntity(ROOT_LE);
26
+ const capabilityProblems = useCapabilityProblems();
27
+ const { isExperimentEnabled } = useExperimentsContext();
28
+ const { accountHolder } = useAccountHolder();
29
+ if (!rootLe) {
30
+ return /* @__PURE__ */ jsx(Loader, {});
31
+ }
32
+ const country = getLegalEntityCountry(rootLe);
33
+ const hasTrust = accountHolder === "aTrust" || isPartOfTrustFromLegalEntity(rootLe);
34
+ const problems = capabilityProblems ? getProblemsForEntity(capabilityProblems, EntityType.LEGAL_ENTITY, rootLe.id) : void 0;
35
+ const isOnfidoAutofillFlow = isOnfidoAutofillFlowEnabled(
36
+ country,
37
+ TaskTypes.INDIVIDUAL,
38
+ isExperimentEnabled
39
+ );
40
+ const props = {
41
+ taskType: TaskTypes.INDIVIDUAL,
42
+ taskName: hasTrust ? "individualTrusteeDetails" : "individualDetails",
43
+ legalEntityResponse: rootLe,
44
+ problems,
45
+ country,
46
+ asModal,
47
+ hideSidebar,
48
+ isTargetLegalEntityType,
49
+ onSubmit,
50
+ trustedFieldsProvider,
51
+ handleBackClick,
52
+ handleCloseClick,
53
+ handleHomeClick
54
+ };
55
+ return isOnfidoAutofillFlow ? /* @__PURE__ */ jsx(
56
+ IndividualOnfidoDropin,
57
+ {
58
+ ...props,
59
+ trustedFields
60
+ }
61
+ ) : /* @__PURE__ */ jsx(
62
+ IndividualDropin,
63
+ {
64
+ ...props,
65
+ trustedFields
66
+ }
67
+ );
68
+ }
69
+ export {
70
+ RootIndividualDetailsPage
71
+ };
@@ -2,14 +2,14 @@
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] = "72ebf547-b6d9-42f0-bbe9-3857122ce496", e._sentryDebugIdIdentifier = "sentry-dbid-72ebf547-b6d9-42f0-bbe9-3857122ce496");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "1057112c-0f97-462d-af26-45eec1c62852", e._sentryDebugIdIdentifier = "sentry-dbid-1057112c-0f97-462d-af26-45eec1c62852");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
10
  import { jsxs, jsx, Fragment } from "preact/jsx-runtime";
11
- import { dn as refreshSession, B as Button, a0 as Loader, bA as SettingsProvider, bB as ExperimentsContextProvider, bC as ApiProvider, bD as QueryClientProvider, bE as StoreProvider, bF as AnalyticsProvider, bG as I18nProvider, bz as EventEmitter, bH as DebugListener, bI as ToastContextProvider, bJ as StateProvider, bK as ReactQueryDevtools2, bN as setSdkTokenHandler } from "./EventEmitter-DTdpTyY7.js";
12
- import { useState, useEffect } from "preact/hooks";
11
+ import { dg as refreshSession, O as Button, M as Loader, bg as SettingsProvider, bh as ExperimentsContextProvider, bi as ApiProvider, bj as QueryClientProvider, bk as StoreProvider, bl as AnalyticsProvider, bm as I18nProvider, bf as EventEmitter, bn as DebugListener, bo as ToastContextProvider, bp as StateProvider, bq as ReactQueryDevtools2, bu as setSdkTokenHandler, br as normalizeEnvironment } from "./EventEmitter-BmWcyurq.js";
12
+ import { useState, useEffect, useRef } from "preact/hooks";
13
13
  function injectCss(shadowRoot) {
14
14
  {
15
15
  import("./styles-CLV89_hH.js").then(({ css }) => {
@@ -17,13 +17,13 @@ function injectCss(shadowRoot) {
17
17
  styleEl.appendChild(document.createTextNode(css));
18
18
  shadowRoot.appendChild(styleEl);
19
19
  }).catch((err) => console.error("Error loading styles", err));
20
+ return () => {
21
+ };
20
22
  }
21
23
  }
22
24
  const EmbedShell = ({
23
25
  children,
24
- // TODO: consider changing name to rootLegalEntity, here and in OnboardingComponents
25
- /** Root legal entity */
26
- legalEntityId,
26
+ rootLegalEntityId,
27
27
  settings,
28
28
  experiments,
29
29
  // HO-only
@@ -55,14 +55,14 @@ const EmbedShell = ({
55
55
  if (isLoading) {
56
56
  return /* @__PURE__ */ jsx(Loader, {});
57
57
  }
58
- return /* @__PURE__ */ jsx(SettingsProvider, { settings, children: /* @__PURE__ */ jsx(ExperimentsContextProvider, { experiments, refreshExperiments, children: /* @__PURE__ */ jsx(ApiProvider, { rootLegalEntityId: legalEntityId, baseUrl, children: /* @__PURE__ */ jsx(QueryClientProvider, { children: /* @__PURE__ */ jsxs(Fragment, { children: [
58
+ return /* @__PURE__ */ jsx(SettingsProvider, { settings, children: /* @__PURE__ */ jsx(ExperimentsContextProvider, { experiments, refreshExperiments, children: /* @__PURE__ */ jsx(ApiProvider, { rootLegalEntityId, baseUrl, children: /* @__PURE__ */ jsx(QueryClientProvider, { children: /* @__PURE__ */ jsxs(Fragment, { children: [
59
59
  /* @__PURE__ */ jsxs(StoreProvider, { children: [
60
- /* @__PURE__ */ jsx("span", { className: "adyen-kyc__sdk-version", hidden: true, children: "3.71.3" }),
60
+ /* @__PURE__ */ jsx("span", { className: "adyen-kyc__sdk-version", hidden: true, children: "3.73.0-beta.0" }),
61
61
  /* @__PURE__ */ jsx(
62
62
  AnalyticsProvider,
63
63
  {
64
64
  componentName,
65
- legalEntityId,
65
+ rootLegalEntityId,
66
66
  children: /* @__PURE__ */ jsxs(I18nProvider, { locale, eventEmitter, children: [
67
67
  /* @__PURE__ */ jsx(DebugListener, {}),
68
68
  /* @__PURE__ */ jsx("div", { className: "adyen-kyc-ui-element-container-wrapper", children: /* @__PURE__ */ jsx("div", { className: "adyen-kyc-ui-element-container", children: /* @__PURE__ */ jsx(ToastContextProvider, { children: /* @__PURE__ */ jsx(StateProvider, { children }) }) }) })
@@ -73,7 +73,25 @@ const EmbedShell = ({
73
73
  /* @__PURE__ */ jsx(ReactQueryDevtools2, {})
74
74
  ] }) }) }) }) });
75
75
  };
76
+ const environmentMap = Object.freeze({
77
+ live: "https://onboardingcomponents-live.adyen.com/",
78
+ test: "https://test.adyen.com/"
79
+ });
80
+ const resolveEnvironment = (environment) => environmentMap[environment] ?? normalizeEnvironment(environment);
81
+ const ShadowStylesRoot = ({
82
+ injectCss: injectCss2
83
+ }) => {
84
+ const ref = useRef(null);
85
+ useEffect(() => {
86
+ var _a;
87
+ const root = (_a = ref.current) == null ? void 0 : _a.getRootNode();
88
+ return injectCss2(root);
89
+ }, [injectCss2]);
90
+ return /* @__PURE__ */ jsx("span", { ref });
91
+ };
76
92
  export {
77
93
  EmbedShell as E,
78
- injectCss as i
94
+ ShadowStylesRoot as S,
95
+ injectCss as i,
96
+ resolveEnvironment as r
79
97
  };
@@ -2,14 +2,14 @@
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] = "de09e0b9-2029-4b52-8c1f-abef4ded72d2", e._sentryDebugIdIdentifier = "sentry-dbid-de09e0b9-2029-4b52-8c1f-abef4ded72d2");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "c0d16581-4f86-4090-910a-baaadd71c5ca", e._sentryDebugIdIdentifier = "sentry-dbid-c0d16581-4f86-4090-910a-baaadd71c5ca");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
10
  import { jsx, jsxs } from "preact/jsx-runtime";
11
11
  import { useState } from "preact/hooks";
12
- import { u as useI18nContext, D as useForm, T as Typography, F as Field, b6 as RadioGroupCard, B as Button, d8 as Svg, i as LegalEntityType } from "./EventEmitter-DTdpTyY7.js";
12
+ import { b as useI18nContext, n as useForm, T as Typography, F as Field, aN as RadioGroupCard, O as Button, cH as Svg, L as LegalEntityType } from "./EventEmitter-BmWcyurq.js";
13
13
  const setupAccountMethods = ["singpass", "manual"];
14
14
  const setupAccountMethodFields = ["setupAccountMethod"];
15
15
  const getSingpassSelectionDisabled = (legalEntityType) => {
@@ -0,0 +1,45 @@
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] = "0ec8b803-7899-4c3f-ad11-529da9bba0e7", e._sentryDebugIdIdentifier = "sentry-dbid-0ec8b803-7899-4c3f-ad11-529da9bba0e7");
6
+ } catch (e) {
7
+ }
8
+ }
9
+ ;
10
+ import { jsx } from "preact/jsx-runtime";
11
+ import { P as useLegalEntity, aq as ROOT_LE, a6 as skipToken, M as Loader, af as EntityType, Q as getLegalEntityCountry, ah as TaskTypes } from "./EventEmitter-BmWcyurq.js";
12
+ import { b as useCapabilityProblems, k as getProblemsForEntity } from "./CreateIndividualComponent-BiMYdvQq.js";
13
+ import { B as BusinessDetailsDropin } from "./BusinessDetailsDropin-D10LCgSY.js";
14
+ function SoleProprietorshipPage({
15
+ solePropId,
16
+ isTargetLegalEntityType = false,
17
+ onSubmit,
18
+ handleHomeClick
19
+ }) {
20
+ const { data: rootLe } = useLegalEntity(ROOT_LE);
21
+ const { data: solePropLe } = useLegalEntity(solePropId ?? skipToken);
22
+ const capabilityProblems = useCapabilityProblems();
23
+ if (!rootLe || solePropId && !solePropLe) {
24
+ return /* @__PURE__ */ jsx(Loader, {});
25
+ }
26
+ const problems = capabilityProblems && solePropId ? getProblemsForEntity(capabilityProblems, EntityType.LEGAL_ENTITY, solePropId) : void 0;
27
+ const country = getLegalEntityCountry(solePropLe ?? rootLe);
28
+ return /* @__PURE__ */ jsx(
29
+ BusinessDetailsDropin,
30
+ {
31
+ taskType: TaskTypes.SOLE_PROPRIETOR_COMPANY,
32
+ taskName: "soleProprietorship",
33
+ legalEntityResponse: rootLe,
34
+ associatedLegalArrangement: solePropLe,
35
+ problems,
36
+ country,
37
+ isTargetLegalEntityType,
38
+ onSubmit,
39
+ handleHomeClick
40
+ }
41
+ );
42
+ }
43
+ export {
44
+ SoleProprietorshipPage
45
+ };
@@ -2,14 +2,14 @@
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] = "f8f82bd0-9fcb-49f9-9341-55682329154d", e._sentryDebugIdIdentifier = "sentry-dbid-f8f82bd0-9fcb-49f9-9341-55682329154d");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "07bcfbbc-286f-4db0-a33c-fda5601a1802", e._sentryDebugIdIdentifier = "sentry-dbid-07bcfbbc-286f-4db0-a33c-fda5601a1802");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
10
  import { jsxs, jsx } from "preact/jsx-runtime";
11
11
  import cx from "classnames";
12
- import { u as useI18nContext, al as TaskStatus } from "./EventEmitter-DTdpTyY7.js";
12
+ import { b as useI18nContext, a0 as TaskStatus } from "./EventEmitter-BmWcyurq.js";
13
13
  const inTaskStatus = "adyen-kyc-in-task-status";
14
14
  const inTaskStatusIndicator = "adyen-kyc-in-task-status-indicator";
15
15
  const inTaskStatusIndicatorSuccess = "adyen-kyc-in-task-status-indicator-success";
@@ -2,20 +2,26 @@
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] = "e93f9560-7f70-40d9-8e3d-ff76f81f9cc9", e._sentryDebugIdIdentifier = "sentry-dbid-e93f9560-7f70-40d9-8e3d-ff76f81f9cc9");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "4156467a-0917-4e5b-83d9-4c423ed2000e", e._sentryDebugIdIdentifier = "sentry-dbid-4156467a-0917-4e5b-83d9-4c423ed2000e");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
10
  import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
11
+ import { u as useApiContext, a as useQuery, h as httpGet, y as useInvalidateRootLegalEntity, V as useMutation, U as httpPost, L as LegalEntityType, T as Typography, dZ as Currencies, b as useI18nContext, F as Field, d_ as InputGroup, S as Select, I as InputText, k as InputDate, aO as TextArea, R as RadioGroup, aQ as CountryField, X as Alert, O as Button, i as isEmpty, n as useForm, p as useGlobalDataSlice, E as ErrorPanel, q as createFormUtils, M as Loader, N as Icon, K as getFormProps, Z as Card, _ as StructuredList, $ as IconButton, cJ as isEmpty$1, cH as Svg, a1 as createLogger, d$ as Dropzone, bv as useQueryClient, P as useLegalEntity, aq as ROOT_LE, D as useStateContext, x as useAnalyticsContext, e0 as useLegalEntities, af as EntityType, Q as getLegalEntityCountry } from "./EventEmitter-BmWcyurq.js";
12
+ import { C as Confirm, T as TileGroup, u as useCreateLegalEntity, a as useUpdateLegalEntity, b as useCapabilityProblems, k as getProblemsForEntity } from "./CreateIndividualComponent-BiMYdvQq.js";
11
13
  import { useState, useMemo, useEffect, useCallback, useRef } from "preact/hooks";
12
- import { m as useApiContext, p as useQuery, q as httpGet, U as useInvalidateRootLegalEntity, a5 as useMutation, a4 as httpPost, i as LegalEntityType, l as localizeDateString, T as Typography, e6 as Currencies, u as useI18nContext, F as Field, e7 as InputGroup, t as Select, I as InputText, y as InputDate, b7 as TextArea, R as RadioGroup, b9 as CountryField, aj as Modal, ap as Alert, B as Button, at as Confirm, k as isEmpty, D as useForm, G as useGlobalDataSlice, H as ErrorPanel, J as createFormUtils, a0 as Loader, a1 as Icon, $ as getFormProps, aq as Card, ar as StructuredList, as as IconButton, d6 as isEmpty$1, d8 as Svg, dv as List, W as useToastContext, au as createLogger, e8 as Dropzone, a6 as useQueryClient, a2 as useLegalEntity, X as useStateContext, a as useAnalyticsContext, e9 as useLegalEntities, an as ROOT_LE } from "./EventEmitter-DTdpTyY7.js";
13
- import { f as formatObject, T as TileGroup, r as createDocumentRequest, u as useCreateLegalEntity, a as useUpdateLegalEntity, d as getPropsFromConfigurations, e as getRequiredForms, h as addValidityToForms, i as useFormComposer, v as documentApiUtils } from "./CreateIndividualComponent-C3uFsTUT.js";
14
- import { A as Avatar, v as validateDateNotInTheFuture, n as normalizedTaskStatusStore, h as hasDataChanged, F as FormWrapper } from "./core-BsRrVyKB.js";
14
+ import { v as validateDateNotInTheFuture, n as normalizedTaskStatusStore, h as hasDataChanged } from "./index-D6YGuPb5.js";
15
+ import { u as useToastContext } from "./useToastContext-DiQ_PGrE.js";
16
+ import { f as formatObject, o as createDocumentRequest, a as getPropsFromConfigurations, b as getRequiredForms, c as addValidityToForms, d as useFormComposer, q as documentApiUtils } from "./mapExistingFile-CwT8TZ5D.js";
17
+ import { F as FormWrapper } from "./CreateTransferInstrumentComponent-CaBD_3yr.js";
15
18
  import { signal } from "@preact/signals";
16
- import { s as styles, T as TaskStatusIndicator } from "./SourceOfFunds.module-CwVf62zO.js";
19
+ import { s as styles, T as TaskStatusIndicator } from "./SourceOfFunds.module-sL22I1gI.js";
17
20
  import { a as formatAmountWithCurrency } from "./formatCurrency-CMOSdJMB.js";
21
+ import { l as localizeDateString } from "./localizeDateString-DtxuKMqB.js";
18
22
  import { t as toCapitalized } from "./toCapitalized-Bq7laD0b.js";
23
+ import { A as Avatar } from "./ManageIndividualComponent-D-47IZH6.js";
24
+ import { M as Modal } from "./Modal-6j0jkYFX.js";
19
25
  import isURL from "validator/es/lib/isURL.js";
20
26
  const getBusinessLines = async (legalEntityId, baseUrl) => {
21
27
  return httpGet({
@@ -1645,6 +1651,7 @@ const SOFFinancierModal = (props) => {
1645
1651
  /* @__PURE__ */ jsx(
1646
1652
  Select,
1647
1653
  {
1654
+ minimal: true,
1648
1655
  name: "currency",
1649
1656
  "aria-label": i18n.get("currency"),
1650
1657
  isMulti: false,
@@ -2384,8 +2391,9 @@ const SourceOfFundsGettingStarted = ({
2384
2391
  hasSourceOfFunds && /* @__PURE__ */ jsxs(Fragment, { children: [
2385
2392
  /* @__PURE__ */ jsx(Typography, { className: styles.sourceOfFundsGettingStartedBody, children: i18n.get("addAllSourcesOfFundsBeingUsed") }),
2386
2393
  errorObjects && errorObjects.map((errorObj, index) => {
2387
- var _a2;
2394
+ var _a2, _b2;
2388
2395
  const uniqueActions = getUniqueRemediationActions(errorObj);
2396
+ const errorItems = ((_a2 = errorObj.subErrors) == null ? void 0 : _a2.map((subError) => subError.message)) || [];
2389
2397
  return /* @__PURE__ */ jsxs(
2390
2398
  Alert,
2391
2399
  {
@@ -2393,14 +2401,7 @@ const SourceOfFundsGettingStarted = ({
2393
2401
  className: styles.sourceOfFundsGettingStartedError,
2394
2402
  variant: "error",
2395
2403
  children: [
2396
- ((_a2 = errorObj == null ? void 0 : errorObj.subErrors) == null ? void 0 : _a2.length) && /* @__PURE__ */ jsx(
2397
- List,
2398
- {
2399
- items: errorObj == null ? void 0 : errorObj.subErrors.map(
2400
- (subError) => subError.message
2401
- )
2402
- }
2403
- ),
2404
+ ((_b2 = errorObj == null ? void 0 : errorObj.subErrors) == null ? void 0 : _b2.length) && /* @__PURE__ */ jsx("ul", { children: errorItems.map((item, i) => /* @__PURE__ */ jsx("li", { children: item }, i)) }),
2404
2405
  uniqueActions.length > 0 && /* @__PURE__ */ jsx("div", { className: styles.sourceOfFundsGettingStartedErrorActions, children: uniqueActions.filter((action) => action.code !== "1_519").map((action, i) => /* @__PURE__ */ jsx(
2405
2406
  Button,
2406
2407
  {
@@ -2466,6 +2467,7 @@ const SOFUploadModal = (props) => {
2466
2467
  firstService
2467
2468
  );
2468
2469
  const [documentType, setDocumentType] = useState();
2470
+ const [selectedBusinessLineId, setSelectedBusinessLineId] = useState("");
2469
2471
  const [documentLists, setDocumentLists] = useState([]);
2470
2472
  const onRadioChange = (selectedId) => {
2471
2473
  setSelectedService(selectedId);
@@ -2482,11 +2484,15 @@ const SOFUploadModal = (props) => {
2482
2484
  }, [businessLines]);
2483
2485
  const canUpload = useMemo(() => selectedService && documentType, [selectedService, documentType]);
2484
2486
  useEffect(() => {
2485
- var _a2, _b;
2487
+ var _a2, _b, _c;
2486
2488
  if (selectedService) {
2487
2489
  const selectedType = (_b = (_a2 = businessLines == null ? void 0 : businessLines.find(
2488
2490
  (businessLine) => businessLine.service === selectedService
2489
2491
  )) == null ? void 0 : _a2.sourceOfFunds) == null ? void 0 : _b.type;
2492
+ const getSelectedBusinessLineId = (_c = businessLines == null ? void 0 : businessLines.find(
2493
+ (businessLine) => businessLine.service === selectedService
2494
+ )) == null ? void 0 : _c.id;
2495
+ setSelectedBusinessLineId(getSelectedBusinessLineId ?? "");
2490
2496
  if (selectedType) {
2491
2497
  const lists = getDocumentLists(selectedType);
2492
2498
  const items = lists.map((list) => ({
@@ -2496,7 +2502,7 @@ const SOFUploadModal = (props) => {
2496
2502
  setDocumentLists(items);
2497
2503
  }
2498
2504
  }
2499
- }, [selectedService]);
2505
+ }, [selectedService, setSelectedBusinessLineId, i18n, businessLines]);
2500
2506
  const documentRequirements = useMemo(() => {
2501
2507
  return documentType ? getDocumentRequirements[documentType] : [];
2502
2508
  }, [documentType]);
@@ -2506,8 +2512,8 @@ const SOFUploadModal = (props) => {
2506
2512
  return;
2507
2513
  }
2508
2514
  const formattedDocument = await createDocumentRequest({
2509
- entityId: legalEntityId,
2510
- entityType: "legalEntity",
2515
+ entityId: selectedBusinessLineId,
2516
+ entityType: "businessLine",
2511
2517
  documentType: "proofOfFundingOrWealthSource",
2512
2518
  page1: files[0],
2513
2519
  description: `$SERVICE_NAME:${selectedService}--TYPE_NAME:${documentType}`
@@ -2695,7 +2701,7 @@ const SourceOfFundsUpload = ({
2695
2701
  ] })
2696
2702
  }
2697
2703
  ),
2698
- /* @__PURE__ */ jsx("div", { className: styles.sourceOfFundsGettingStartedActions, children: handleNavigateToSummary && /* @__PURE__ */ jsx(Button, { variant: "secondary", onClick: handleNavigateToSummary, children: i18n.get("cancel") }) }),
2704
+ handleNavigateToSummary && /* @__PURE__ */ jsx("div", { className: styles.sourceOfFundsGettingStartedActions, children: /* @__PURE__ */ jsx(Button, { variant: "secondary", onClick: handleNavigateToSummary, children: (documents == null ? void 0 : documents.length) > 0 ? i18n.get("finish") : i18n.get("cancel") }) }),
2699
2705
  !!docToDelete && /* @__PURE__ */ jsx(
2700
2706
  Confirm,
2701
2707
  {
@@ -3030,6 +3036,24 @@ function SourceOfFundsDropin({
3030
3036
  )
3031
3037
  ] }) });
3032
3038
  }
3039
+ const SourceOfFundsPage = ({ onSubmit, handleHomeClick }) => {
3040
+ const { data: rootLe } = useLegalEntity(ROOT_LE);
3041
+ const capabilityProblems = useCapabilityProblems();
3042
+ if (!rootLe) {
3043
+ return /* @__PURE__ */ jsx(Loader, {});
3044
+ }
3045
+ const problems = capabilityProblems ? getProblemsForEntity(capabilityProblems, EntityType.LEGAL_ENTITY, rootLe.id) : void 0;
3046
+ return /* @__PURE__ */ jsx(
3047
+ SourceOfFundsDropin,
3048
+ {
3049
+ legalEntityResponse: rootLe,
3050
+ country: getLegalEntityCountry(rootLe),
3051
+ problems,
3052
+ onSubmit,
3053
+ handleHomeClick
3054
+ }
3055
+ );
3056
+ };
3033
3057
  export {
3034
- SourceOfFundsDropin
3058
+ SourceOfFundsPage
3035
3059
  };
@@ -0,0 +1,41 @@
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] = "d3d560fc-1879-4a5c-bbdf-08bb2d8c3fef", e._sentryDebugIdIdentifier = "sentry-dbid-d3d560fc-1879-4a5c-bbdf-08bb2d8c3fef");
6
+ } catch (e) {
7
+ }
8
+ }
9
+ ;
10
+ import { jsx } from "preact/jsx-runtime";
11
+ import cx from "classnames";
12
+ const tag = "adyen-kyc-tag";
13
+ const tagGrey = "adyen-kyc-tag-grey";
14
+ const tagBlue = "adyen-kyc-tag-blue";
15
+ const tagOrange = "adyen-kyc-tag-orange";
16
+ const tagRed = "adyen-kyc-tag-red";
17
+ const tagTeal = "adyen-kyc-tag-teal";
18
+ const tagGreen = "adyen-kyc-tag-green";
19
+ const styles = {
20
+ tag,
21
+ tagGrey,
22
+ tagBlue,
23
+ tagOrange,
24
+ tagRed,
25
+ tagTeal,
26
+ tagGreen
27
+ };
28
+ const variantMap = {
29
+ grey: styles.tagGrey,
30
+ teal: styles.tagTeal,
31
+ red: styles.tagRed,
32
+ green: styles.tagGreen,
33
+ orange: styles.tagOrange,
34
+ blue: styles.tagBlue
35
+ };
36
+ const Tag = ({ className, variant = "blue", children }) => {
37
+ return /* @__PURE__ */ jsx("span", { className: cx(styles.tag, variantMap[variant], className), children });
38
+ };
39
+ export {
40
+ Tag as T
41
+ };
@@ -2,41 +2,14 @@
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] = "858c9874-0cdd-4a14-b5d9-c9d3dd6e7a65", e._sentryDebugIdIdentifier = "sentry-dbid-858c9874-0cdd-4a14-b5d9-c9d3dd6e7a65");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "84d938c5-d06c-489a-a5ea-644c1f35f28c", e._sentryDebugIdIdentifier = "sentry-dbid-84d938c5-d06c-489a-a5ea-644c1f35f28c");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
- import { jsx, jsxs } from "preact/jsx-runtime";
10
+ import { jsxs, jsx } from "preact/jsx-runtime";
11
11
  import cx from "classnames";
12
- import { a0 as Loader, a1 as Icon, u as useI18nContext, al as TaskStatus, dd as KEYBOARD_KEYS } from "./EventEmitter-DTdpTyY7.js";
13
- const tag = "adyen-kyc-tag";
14
- const tagGrey = "adyen-kyc-tag-grey";
15
- const tagBlue = "adyen-kyc-tag-blue";
16
- const tagOrange = "adyen-kyc-tag-orange";
17
- const tagRed = "adyen-kyc-tag-red";
18
- const tagTeal = "adyen-kyc-tag-teal";
19
- const tagGreen = "adyen-kyc-tag-green";
20
- const styles = {
21
- tag,
22
- tagGrey,
23
- tagBlue,
24
- tagOrange,
25
- tagRed,
26
- tagTeal,
27
- tagGreen
28
- };
29
- const variantMap = {
30
- grey: styles.tagGrey,
31
- teal: styles.tagTeal,
32
- red: styles.tagRed,
33
- green: styles.tagGreen,
34
- orange: styles.tagOrange,
35
- blue: styles.tagBlue
36
- };
37
- const Tag = ({ className, variant = "blue", children }) => {
38
- return /* @__PURE__ */ jsx("span", { className: cx(styles.tag, variantMap[variant], className), children });
39
- };
12
+ import { M as Loader, N as Icon, b as useI18nContext, a0 as TaskStatus, cQ as KEYBOARD_KEYS } from "./EventEmitter-BmWcyurq.js";
40
13
  const Status = ({ text, className, iconStatusClass, icon, size = "small" }) => {
41
14
  const containerClasses = cx("adyen-kyc-status", className);
42
15
  const iconClasses = cx("adyen-kyc-status__icon", iconStatusClass, {
@@ -147,6 +120,5 @@ const TaskItemStatus = ({
147
120
  }
148
121
  };
149
122
  export {
150
- Tag as T,
151
- TaskItemStatus as a
123
+ TaskItemStatus as T
152
124
  };
@@ -2,18 +2,19 @@
2
2
  {
3
3
  try {
4
4
  let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
5
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "df49878d-e229-4389-8fdf-d612ee977521", e._sentryDebugIdIdentifier = "sentry-dbid-df49878d-e229-4389-8fdf-d612ee977521");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "7689fe12-c556-47f9-a643-5d37f41e3d98", e._sentryDebugIdIdentifier = "sentry-dbid-7689fe12-c556-47f9-a643-5d37f41e3d98");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
10
  import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
11
11
  import { useState, useRef, useEffect, useMemo, useCallback } from "preact/hooks";
12
- import { m as useApiContext, p as useQuery, q as httpGet, T as Typography, u as useI18nContext, cQ as useFormContext, ap as Alert, F as Field, R as RadioGroup, $ as getFormProps, a1 as Icon, d6 as isEmpty, d8 as Svg, B as Button, aq as Card, ar as StructuredList, as as IconButton, k as isEmpty$1, U as useInvalidateRootLegalEntity, a as useAnalyticsContext, a2 as useLegalEntity, au as createLogger, a0 as Loader, an as ROOT_LE } from "./EventEmitter-DTdpTyY7.js";
13
- import { a as useUpdateLegalEntity, J as useMultiForm, e as getRequiredForms, h as addValidityToForms, i as useFormComposer, K as FormContextProvider, L as FormFlow } from "./CreateIndividualComponent-C3uFsTUT.js";
12
+ import { u as useApiContext, a as useQuery, h as httpGet, T as Typography, b as useI18nContext, cp as useFormContext, X as Alert, F as Field, R as RadioGroup, K as getFormProps, N as Icon, cJ as isEmpty, cH as Svg, O as Button, Z as Card, _ as StructuredList, $ as IconButton, i as isEmpty$1, y as useInvalidateRootLegalEntity, x as useAnalyticsContext, P as useLegalEntity, aq as ROOT_LE, a1 as createLogger, M as Loader } from "./EventEmitter-BmWcyurq.js";
13
+ import { a as useUpdateLegalEntity, h as useMultiForm, F as FormContextProvider, j as FormFlow } from "./CreateIndividualComponent-BiMYdvQq.js";
14
+ import { b as getRequiredForms, c as addValidityToForms, d as useFormComposer } from "./mapExistingFile-CwT8TZ5D.js";
14
15
  import { signal } from "@preact/signals";
15
- import { s as styles$1, T as TaskStatusIndicator } from "./SourceOfFunds.module-CwVf62zO.js";
16
- import { n as normalizedTaskStatusStore } from "./core-BsRrVyKB.js";
16
+ import { s as styles$1, T as TaskStatusIndicator } from "./SourceOfFunds.module-sL22I1gI.js";
17
+ import { n as normalizedTaskStatusStore } from "./index-D6YGuPb5.js";
17
18
  const getTaxClassification = async (legalEntityId, baseUrl) => {
18
19
  return httpGet({
19
20
  baseUrl,