@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
@@ -2,16 +2,17 @@
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] = "fcd64795-6ae5-4328-aff4-b8ac568b25ea", e._sentryDebugIdIdentifier = "sentry-dbid-fcd64795-6ae5-4328-aff4-b8ac568b25ea");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "878aa34f-e847-454e-9c95-490f45b39775", e._sentryDebugIdIdentifier = "sentry-dbid-878aa34f-e847-454e-9c95-490f45b39775");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
10
  import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
11
+ import { b as useI18nContext, x as useAnalyticsContext, al as useExperimentsContext, ae as useAccountHolder, dk as getCapabilities, Q as getLegalEntityCountry, L as LegalEntityType, n as useForm, aj as LoaderWrapper, T as Typography, F as Field, dl as EntityTypeRadioGroupCard, aN as RadioGroupCard, O as Button, N as Icon, aa as hasSolePropInLegalEntity, P as useLegalEntity, aq as ROOT_LE, M as Loader } from "./EventEmitter-BmWcyurq.js";
11
12
  import { useState, useEffect } from "preact/hooks";
12
- import { a2 as useLegalEntity, a0 as Loader, an as ROOT_LE, u as useI18nContext, a as useAnalyticsContext, W as useToastContext, b as useExperimentsContext, dt as getCapabilities, a3 as getLegalEntityCountry, i as LegalEntityType, D as useForm, L as LoaderWrapper, T as Typography, F as Field, du as EntityTypeRadioGroupCard, b6 as RadioGroupCard, B as Button, S as Spacer, a1 as Icon, aD as hasSolePropInLegalEntity } from "./EventEmitter-DTdpTyY7.js";
13
- import { a as useUpdateLegalEntity } from "./CreateIndividualComponent-C3uFsTUT.js";
14
- import { u as useSelectionOptions, g as getBusinessType, a as getDefaultLegalArrangementOrSuborganizationType, l as legalArrangementMetadata, b as getTargetLegalEntityType, c as businessTypeIcons, d as determineOrganizationTypeToUpdate } from "./utils-Fkk087z-.js";
13
+ import { a as useUpdateLegalEntity } from "./CreateIndividualComponent-BiMYdvQq.js";
14
+ import { u as useToastContext, S as Spacer } from "./useToastContext-DiQ_PGrE.js";
15
+ import { u as useSelectionOptions, g as getBusinessType, a as getDefaultLegalArrangementOrSuborganizationType, l as legalArrangementMetadata, b as getTargetLegalEntityType, c as businessTypeIcons, d as determineOrganizationTypeToUpdate } from "./utils-Bl8l2XY4.js";
15
16
  const businessTypeExamples = /* @__PURE__ */ Object.assign({ "../localized/legalEntityTypeExamples/AT.json": () => import("./AT-EpV7jN58.js"), "../localized/legalEntityTypeExamples/AU.json": () => import("./AU-pBsEvEUy.js"), "../localized/legalEntityTypeExamples/BE.json": () => import("./BE-CU5o9cmc.js"), "../localized/legalEntityTypeExamples/BR.json": () => import("./BR-ORoHRwTk.js"), "../localized/legalEntityTypeExamples/CA.json": () => import("./CA-VXNq-m6m.js"), "../localized/legalEntityTypeExamples/CH.json": () => import("./CH-B_-afpD_.js"), "../localized/legalEntityTypeExamples/CZ.json": () => import("./CZ-CTw_bQIu.js"), "../localized/legalEntityTypeExamples/DE.json": () => import("./DE-D_jIDxOH.js"), "../localized/legalEntityTypeExamples/DK.json": () => import("./DK-dBzrfgpQ.js"), "../localized/legalEntityTypeExamples/ES.json": () => import("./ES-DYbZmFcJ.js"), "../localized/legalEntityTypeExamples/FI.json": () => import("./FI-C9nRvop7.js"), "../localized/legalEntityTypeExamples/FR.json": () => import("./FR-BycGQO4W.js"), "../localized/legalEntityTypeExamples/GB.json": () => import("./GB-DFyzo5sN.js"), "../localized/legalEntityTypeExamples/HK.json": () => import("./HK-WqZ5UBEF.js"), "../localized/legalEntityTypeExamples/HR.json": () => import("./HR-CRa19tH1.js"), "../localized/legalEntityTypeExamples/HU.json": () => import("./HU-D5NCweWf.js"), "../localized/legalEntityTypeExamples/IE.json": () => import("./IE-rhATS57q.js"), "../localized/legalEntityTypeExamples/IT.json": () => import("./IT-wD7dHdYD.js"), "../localized/legalEntityTypeExamples/LT.json": () => import("./LT-0F72uCyI.js"), "../localized/legalEntityTypeExamples/NL.json": () => import("./NL-q2U2l276.js"), "../localized/legalEntityTypeExamples/NO.json": () => import("./NO-CX12Zsf_.js"), "../localized/legalEntityTypeExamples/PL.json": () => import("./PL-CwCXF3Yu.js"), "../localized/legalEntityTypeExamples/PT.json": () => import("./PT-Dei5v1nD.js"), "../localized/legalEntityTypeExamples/RO.json": () => import("./RO-Dxk08mOu.js"), "../localized/legalEntityTypeExamples/SE.json": () => import("./SE-AP3gLiyy.js"), "../localized/legalEntityTypeExamples/SG.json": () => import("./SG-DMcOb17i.js"), "../localized/legalEntityTypeExamples/SI.json": () => import("./SI-BXe-yndm.js"), "../localized/legalEntityTypeExamples/SK.json": () => import("./SK-DwdgoGnD.js"), "../localized/legalEntityTypeExamples/US.json": () => import("./US-DHxLSqeC.js") });
16
17
  const getBusinessTypeExamplesForCountry = async (country) => {
17
18
  const importForCountry = businessTypeExamples[`../localized/legalEntityTypeExamples/${country}.json`];
@@ -79,11 +80,11 @@ const trusteeTypes = ["individual", "company"];
79
80
  const trusteeTypeMetadata = {
80
81
  individual: {
81
82
  id: "individual",
82
- name: "individual"
83
+ name: "individualMember"
83
84
  },
84
85
  company: {
85
86
  id: "company",
86
- name: "company"
87
+ name: "companyMember"
87
88
  }
88
89
  };
89
90
  const getFormSchema = (isLegalArrangement, isTrust) => {
@@ -132,24 +133,17 @@ const businessTypeSelectionStepTitles = {
132
133
  ]: "changeYourBusinessSetup"
133
134
  };
134
135
  const BusinessTypeIcon = (option) => /* @__PURE__ */ jsx(Icon, { name: businessTypeIcons[option] });
135
- const BusinessTypeSelection = (props) => {
136
- const { data, isLoading } = useLegalEntity(ROOT_LE);
137
- if (isLoading || !data) {
138
- return /* @__PURE__ */ jsx(Loader, {});
139
- }
140
- return /* @__PURE__ */ jsx(BusinessTypeSelectionInner, { ...props, legalEntity: data });
141
- };
142
- const BusinessTypeSelectionInner = ({
143
- legalEntityResponse,
144
- accountHolder,
136
+ const BusinessTypeSelection = ({
137
+ rootLegalEntity,
145
138
  onComplete,
146
139
  onBack
147
140
  }) => {
148
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
141
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
149
142
  const { i18n } = useI18nContext();
150
143
  const userEvents = useAnalyticsContext();
151
144
  const { showToast } = useToastContext();
152
145
  const { isExperimentEnabled } = useExperimentsContext();
146
+ const { accountHolder } = useAccountHolder();
153
147
  const [loadingStatus, setLoadingStatus] = useState();
154
148
  const [currentStep, setCurrentStep] = useState(
155
149
  0
@@ -164,23 +158,23 @@ const BusinessTypeSelectionInner = ({
164
158
  2
165
159
  /* WE_CANNOT_SET_UP_ACCOUNT */
166
160
  ].includes(currentStep) || currentStep === 0 && Boolean(onBack);
167
- const { legalArrangementOptions, adjustedBusinessTypeMetadata: businessTypeMetadata } = useSelectionOptions(legalEntityResponse);
168
- const currentLegalEntityType = legalEntityResponse == null ? void 0 : legalEntityResponse.type;
169
- const currentCompanyTypesValue = (_a = legalEntityResponse == null ? void 0 : legalEntityResponse.organization) == null ? void 0 : _a.type;
170
- const capabilities = getCapabilities(legalEntityResponse);
171
- const country = getLegalEntityCountry(legalEntityResponse);
161
+ const { legalArrangementOptions, adjustedBusinessTypeMetadata: businessTypeMetadata } = useSelectionOptions(rootLegalEntity);
162
+ const currentLegalEntityType = rootLegalEntity.type;
163
+ const currentCompanyTypesValue = (_a = rootLegalEntity.organization) == null ? void 0 : _a.type;
164
+ const capabilities = getCapabilities(rootLegalEntity);
165
+ const country = getLegalEntityCountry(rootLegalEntity);
172
166
  const defaultBusinessType = getBusinessType(
173
167
  businessTypeMetadata,
174
168
  country,
175
169
  accountHolder,
176
- legalEntityResponse == null ? void 0 : legalEntityResponse.type,
177
- (_b = legalEntityResponse == null ? void 0 : legalEntityResponse.organization) == null ? void 0 : _b.type,
170
+ rootLegalEntity.type,
171
+ (_b = rootLegalEntity.organization) == null ? void 0 : _b.type,
178
172
  capabilities
179
173
  );
180
174
  const defaultLegalArrangementType = legalArrangementOptions.find(
181
- (item) => item === getDefaultLegalArrangementOrSuborganizationType(legalEntityResponse, accountHolder)
175
+ (item) => item === getDefaultLegalArrangementOrSuborganizationType(rootLegalEntity, accountHolder)
182
176
  );
183
- const defaultTrusteeType = legalEntityResponse.type === LegalEntityType.INDIVIDUAL ? trusteeTypeMetadata.individual : trusteeTypeMetadata.company;
177
+ const defaultTrusteeType = rootLegalEntity.type === LegalEntityType.INDIVIDUAL ? trusteeTypeMetadata.individual : trusteeTypeMetadata.company;
184
178
  const { handleChangeFor, triggerValidation, data, valid, errors, isValid } = useForm({
185
179
  schema: formSchema,
186
180
  defaultData: {
@@ -192,12 +186,14 @@ const BusinessTypeSelectionInner = ({
192
186
  });
193
187
  const newAccountHolder = ((_c = data.businessType) == null ? void 0 : _c.accountHolder) || ((_d = data.legalArrangement) == null ? void 0 : _d.accountHolder);
194
188
  const targetLegalArrangement = (_e = data.legalArrangement) == null ? void 0 : _e.id;
195
- const trustOrUnincorporatedPartnership = ((_f = data.legalArrangement) == null ? void 0 : _f.id) === "aTrust" || ((_g = data.legalArrangement) == null ? void 0 : _g.id) === "partnershipUnincorporated" && isExperimentEnabled("EnableUnincorporatedPartnershipInHO");
189
+ const isTrust = targetLegalArrangement === "aTrust";
190
+ const isUnincorporatedPartnership = targetLegalArrangement === "partnershipUnincorporated";
191
+ const trustOrUnincorporatedPartnership = isTrust || isUnincorporatedPartnership && isExperimentEnabled("EnableUnincorporatedPartnershipInHO");
196
192
  const targetLegalEntityType = getTargetLegalEntityType(
197
- (_h = data.businessType) == null ? void 0 : _h.id,
198
- (_i = data.legalArrangement) == null ? void 0 : _i.id,
199
- (_j = data.trusteeType) == null ? void 0 : _j.id,
200
- legalEntityResponse == null ? void 0 : legalEntityResponse.type
193
+ (_f = data.businessType) == null ? void 0 : _f.id,
194
+ (_g = data.legalArrangement) == null ? void 0 : _g.id,
195
+ (_h = data.trusteeType) == null ? void 0 : _h.id,
196
+ rootLegalEntity.type
201
197
  );
202
198
  const isLegalEntityTypeChanging = currentLegalEntityType !== targetLegalEntityType;
203
199
  const isLegalArrangementChanging = currentCompanyTypesValue !== targetLegalArrangement;
@@ -266,16 +262,16 @@ const BusinessTypeSelectionInner = ({
266
262
  const updateLegalEntityPayload = {
267
263
  type: targetLegalEntityType
268
264
  };
269
- await updateLegalEntity({ ...updateLegalEntityPayload, id: legalEntityResponse == null ? void 0 : legalEntityResponse.id });
265
+ await updateLegalEntity({ ...updateLegalEntityPayload, id: rootLegalEntity.id });
270
266
  userEvents.addTaskEvent("Success", trackingPayload);
271
267
  }
272
268
  if (targetLegalEntityType === LegalEntityType.INDIVIDUAL) {
273
- if (hasSolePropInLegalEntity(legalEntityResponse)) {
269
+ if (hasSolePropInLegalEntity(rootLegalEntity)) {
274
270
  setLoadingStatus("loading");
275
271
  const updateLegalEntityPayload = {
276
272
  entityAssociations: []
277
273
  };
278
- await updateLegalEntity({ ...updateLegalEntityPayload, id: legalEntityResponse == null ? void 0 : legalEntityResponse.id });
274
+ await updateLegalEntity({ ...updateLegalEntityPayload, id: rootLegalEntity.id });
279
275
  userEvents.addTaskEvent("Success", trackingPayload);
280
276
  }
281
277
  return;
@@ -289,7 +285,7 @@ const BusinessTypeSelectionInner = ({
289
285
  organization: {
290
286
  type: targetOrganizationType
291
287
  },
292
- id: legalEntityResponse == null ? void 0 : legalEntityResponse.id
288
+ id: rootLegalEntity.id
293
289
  }));
294
290
  userEvents.addTaskEvent("Success", trackingPayload);
295
291
  }
@@ -330,7 +326,7 @@ const BusinessTypeSelectionInner = ({
330
326
  {
331
327
  el: "fieldset",
332
328
  name: "businessType",
333
- errorMessage: (_k = errors.businessType) == null ? void 0 : _k.errorMessage,
329
+ errorMessage: (_i = errors.businessType) == null ? void 0 : _i.errorMessage,
334
330
  showErrorIconBottom: true,
335
331
  isValid: valid.businessType,
336
332
  children: (childProps) => {
@@ -359,7 +355,7 @@ const BusinessTypeSelectionInner = ({
359
355
  {
360
356
  name: "legalArrangement",
361
357
  el: "fieldset",
362
- errorMessage: (_l = errors.legalArrangement) == null ? void 0 : _l.errorMessage,
358
+ errorMessage: (_j = errors.legalArrangement) == null ? void 0 : _j.errorMessage,
363
359
  showErrorIconBottom: true,
364
360
  isValid: valid.legalArrangement,
365
361
  children: (childProps) => {
@@ -387,10 +383,11 @@ const BusinessTypeSelectionInner = ({
387
383
  el: "fieldset",
388
384
  name: "trusteeType",
389
385
  label: i18n.get(
390
- ((_m = data.legalArrangement) == null ? void 0 : _m.id) === "aTrust" ? "whatTypeOfTrusteeAreYou" : "whatTypeOfOPartnershipAreYou"
386
+ isTrust ? "whatTypeOfTrusteeAreYou" : "whatTypeOfPartnershipAreYou"
391
387
  ),
388
+ helper: isUnincorporatedPartnership ? i18n.get("whatTypeOfPartnershipAreYouGuidance") : void 0,
392
389
  className: "adyen-kyc-u-margin-top-32",
393
- errorMessage: (_n = errors.trusteeType) == null ? void 0 : _n.errorMessage,
390
+ errorMessage: (_k = errors.trusteeType) == null ? void 0 : _k.errorMessage,
394
391
  showErrorIconBottom: true,
395
392
  isValid: valid.trusteeType,
396
393
  children: (childProps) => {
@@ -443,6 +440,16 @@ const BusinessTypeSelectionInner = ({
443
440
  ] })
444
441
  ] }) });
445
442
  };
443
+ const BusinessTypeSelectionPage = ({
444
+ onComplete,
445
+ onBack
446
+ }) => {
447
+ const { data: rootLe, isLoading } = useLegalEntity(ROOT_LE);
448
+ if (isLoading || !rootLe) {
449
+ return /* @__PURE__ */ jsx(Loader, {});
450
+ }
451
+ return /* @__PURE__ */ jsx(BusinessTypeSelection, { onComplete, onBack, rootLegalEntity: rootLe });
452
+ };
446
453
  export {
447
- BusinessTypeSelection
454
+ BusinessTypeSelectionPage
448
455
  };
@@ -2,13 +2,13 @@
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] = "748ff1fe-7ece-49b4-a128-c44c24cf91e2", e._sentryDebugIdIdentifier = "sentry-dbid-748ff1fe-7ece-49b4-a128-c44c24cf91e2");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "5c9b4b5b-2c03-4d36-9d4a-99dbdd68d195", e._sentryDebugIdIdentifier = "sentry-dbid-5c9b4b5b-2c03-4d36-9d4a-99dbdd68d195");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
- import { c as createLocalStorage, T as THEME_PREFERENCE, P as PiPProvider, a as ThemeContext, b as ParentPanel, C as ContentView, Q as QueryDevtoolsContext } from "./HASRA6WW-CBmvzSwj.js";
11
- import { ea as getPreferredColorScheme, eb as createMemo, ec as createComponent } from "./EventEmitter-DTdpTyY7.js";
10
+ import { c as createLocalStorage, T as THEME_PREFERENCE, P as PiPProvider, a as ThemeContext, b as ParentPanel, C as ContentView, Q as QueryDevtoolsContext } from "./HASRA6WW-Cj_9-H1H.js";
11
+ import { e1 as getPreferredColorScheme, e2 as createMemo, e3 as createComponent } from "./EventEmitter-BmWcyurq.js";
12
12
  var DevtoolsPanelComponent = (props) => {
13
13
  const [localStore, setLocalStore] = createLocalStorage({
14
14
  prefix: "TanstackQueryDevtools"