@adyen/kyc-components 3.71.3 → 3.72.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 (131) hide show
  1. package/dist/{AcceptTermsOfServiceComponent-Dsv4mY-k.js → AcceptTermsOfServiceComponent-Bt8sRAoc.js} +2 -2
  2. package/dist/{AccountSetupRejected-Cz2iWdPE.js → AccountSetupRejected-BwL6Q3-7.js} +3 -3
  3. package/dist/{BusinessDetailsDropin-CxJ7Ga0q.js → BusinessDetailsDropin-z-LBYatN.js} +195 -98
  4. package/dist/BusinessFinancingPage-BZ0ukckI.js +35 -0
  5. package/dist/{BusinessTypeSelection-wbCak0Us.js → BusinessTypeSelectionPage-Bl0fkgrq.js} +46 -40
  6. package/dist/{CXEL7IU7-B9HOZi-H.js → CXEL7IU7-BDgMbrmd.js} +3 -3
  7. package/dist/{CreateIndividualComponent-C3uFsTUT.js → CreateIndividualComponent-BYcoaXRs.js} +257 -370
  8. package/dist/{CustomerSupport-BuxhbwRm.js → CustomerSupport-C1aqVIO5.js} +3 -3
  9. package/dist/{DebugModal-B_DAGmya.js → DebugModal-sw85K_ur.js} +10 -10
  10. package/dist/DecisionMakerDetailsPage-uOytW22H.js +80 -0
  11. package/dist/{DecisionMakers-L6oYW0-J.js → DecisionMakers-CCWH6S3m.js} +5 -5
  12. package/dist/{EmbedShell-DpZpuM-4.js → EmbedShell-n61dt-oX.js} +3 -3
  13. package/dist/{EventEmitter-DTdpTyY7.js → EventEmitter-D4j8YPMw.js} +977 -1226
  14. package/dist/{HASRA6WW-CBmvzSwj.js → HASRA6WW-c_NjaqBL.js} +2 -2
  15. package/dist/{I3HPI4QX-9ko0FQd6.js → I3HPI4QX-7hHBw-hy.js} +3 -3
  16. package/dist/{Introduction-C16zT64A.js → Introduction-BIciUCV2.js} +14 -6
  17. package/dist/LegalRepresentativeDetailsPage-B5NB1_0c.js +55 -0
  18. package/dist/PayoutDetailsPage-csmuS7XY.js +57 -0
  19. package/dist/{Review-BbsJ9Iv_.js → Review-OUouKkBK.js} +3 -3
  20. package/dist/RootBusinessDetailsPage-8GCh8CZ9.js +43 -0
  21. package/dist/RootIndividualDetailsPage-zZl4WLcr.js +71 -0
  22. package/dist/{SingpassSelection-Biuh42TV.js → SingpassSelection-DZx1cQy-.js} +2 -2
  23. package/dist/SoleProprietorshipPage-WVtWeQL6.js +45 -0
  24. package/dist/{SourceOfFunds.module-CwVf62zO.js → SourceOfFunds.module-3s3uanVF.js} +2 -2
  25. package/dist/{SourceOfFundsDropin-Bz8cTP4R.js → SourceOfFundsPage-6mejBSsi.js} +38 -20
  26. package/dist/{TaskItemStatus-DzTphBn7.js → TaskItemStatus-BTND6V1w.js} +2 -2
  27. package/dist/{TaxReportingDropin-xDar-7mC.js → TaxReportingDropin-Canpx2fK.js} +5 -5
  28. package/dist/{TrustOuter-2GEllVo3.js → TrustDetailsPage-DSDYwyW0.js} +17 -29
  29. package/dist/TrustMemberCompanyPage-D7V4OAf4.js +55 -0
  30. package/dist/TrustMemberIndividualPage-C9zoI3NZ.js +60 -0
  31. package/dist/UnincorporatedPartnershipIndividualPage-BKEuBPUD.js +60 -0
  32. package/dist/UnincorporatedPartnershipMemberCompanyPage-Ij6N40YA.js +58 -0
  33. package/dist/adyen-kyc-components.js +1 -1
  34. package/dist/adyenConfig.js +2 -2
  35. package/dist/{bg-BG-CzEF3tzV.js → bg-BG-CZRQZyXO.js} +12 -5
  36. package/dist/{core-BsRrVyKB.js → core-C1rJ5Pjl.js} +681 -559
  37. package/dist/{cs-CZ-TMjslGp_.js → cs-CZ-BbUFgifZ.js} +12 -5
  38. package/dist/{css-CypmaTn8.js → css-FlY03KiS.js} +2 -2
  39. package/dist/{da-DK-DWzvDWZJ.js → da-DK-CP71BFS7.js} +12 -5
  40. package/dist/{de-DE-BtIL-7gp.js → de-DE-DY56JGZt.js} +12 -5
  41. package/dist/{el-GR-DHSSlqbw.js → el-GR-CnENEp5c.js} +12 -5
  42. package/dist/{es-ES-OwkE9-Cu.js → es-ES-dV62vQcV.js} +28 -21
  43. package/dist/{et-EE-DvixWnLd.js → et-EE-BBgAN3Wc.js} +12 -5
  44. package/dist/{fi-FI-DZiXWe_g.js → fi-FI-DVmGWIxn.js} +12 -5
  45. package/dist/{fr-FR-BBwiWhiT.js → fr-FR-VwG8Rg7R.js} +12 -5
  46. package/dist/{hr-HR-DJYofWKU.js → hr-HR-Bs_lxjxQ.js} +12 -5
  47. package/dist/{hu-HU-k9c6wZld.js → hu-HU-8dVSiOZM.js} +12 -5
  48. package/dist/individual.js +4 -4
  49. package/dist/{it-IT-oOwbWW3K.js → it-IT-DvwWMDl1.js} +12 -5
  50. package/dist/{ja-JP-CT3g8Hhn.js → ja-JP-BB6zzyEg.js} +12 -5
  51. package/dist/{json-DDReVYSW.js → json-C0fKu7KI.js} +2 -2
  52. package/dist/{lt-LT-CVHIsEF8.js → lt-LT-BQtNojlb.js} +12 -5
  53. package/dist/{lv-LV-BFx0cvZ2.js → lv-LV-BpEw5uN5.js} +12 -5
  54. package/dist/{nl-NL-rmSZu4Rf.js → nl-NL-vBEBXTP-.js} +12 -5
  55. package/dist/{no-NO-BOnQvimN.js → no-NO-BFhTqUoD.js} +12 -5
  56. package/dist/{pl-PL-5j22An4E.js → pl-PL-dsGZvzVf.js} +12 -5
  57. package/dist/{plaintext-Cjcgjaqv.js → plaintext-VVpKsKsN.js} +2 -2
  58. package/dist/{pt-PT-DP8U1qyu.js → pt-PT-BB38pZbh.js} +12 -5
  59. package/dist/{ro-RO-BTdtoC6P.js → ro-RO-BgxNxoxJ.js} +12 -5
  60. package/dist/{sk-SK-DYTx4mOB.js → sk-SK-rtDeCztl.js} +12 -5
  61. package/dist/{sl-SI-D8CiUN69.js → sl-SI-qoGCwUdU.js} +12 -5
  62. package/dist/style.css +175 -223
  63. package/dist/styles-CLV89_hH.js +175 -223
  64. package/dist/{sv-SE-Daslxeqr.js → sv-SE-f1T7PBSW.js} +12 -5
  65. package/dist/terms-of-service.js +4 -4
  66. package/dist/types/api/transferInstruments/useTransferInstrument.d.ts +2 -1
  67. package/dist/types/components/BankAccount/forms/BankDocument/types.d.ts +2 -0
  68. package/dist/types/components/BankAccount/forms/PayoutDetails/types.d.ts +2 -5
  69. package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/types.d.ts +1 -11
  70. package/dist/types/components/BankAccount/pages/PayoutDetailsPage.d.ts +14 -0
  71. package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/PayoutDetailsDropin.d.ts +1 -1
  72. package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/payoutDetailsFormConfig.d.ts +12 -1
  73. package/dist/types/components/Business/forms/BusinessDetails/forms.d.ts +14 -0
  74. package/dist/types/components/Business/forms/BusinessDetails/types.d.ts +1 -0
  75. package/dist/types/components/Business/forms/ProofOfOwnershipDocument/ProofOfOwnershipDocument.d.ts +2 -0
  76. package/dist/types/components/Business/forms/ProofOfOwnershipDocument/types.d.ts +8 -0
  77. package/dist/types/components/Business/forms/rules.d.ts +0 -1
  78. package/dist/types/components/Business/mapping/businessDetails/businessDetailsKeyMappings.d.ts +1 -1
  79. package/dist/types/components/Business/mapping/businessDetails/solePropBusinessDetailsKeyMappings.d.ts +1 -1
  80. package/dist/types/components/Business/pages/RootBusinessDetailsPage.d.ts +8 -0
  81. package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +1 -3
  82. package/dist/types/components/EFP/pages/BusinessFinancingPage.d.ts +7 -0
  83. package/dist/types/components/EFP/pages/SourceOfFundsPage.d.ts +7 -0
  84. package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/DropinComposer.d.ts +1 -1
  85. package/dist/types/components/Individual/forms/Individual/IdDocumentUpload/types.d.ts +1 -0
  86. package/dist/types/components/Individual/forms/Individual/IdVerificationMethod/IdVerificationMethod.d.ts +0 -1
  87. package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/IdVerificationMethod.types.d.ts +0 -2
  88. package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.types.d.ts +2 -1
  89. package/dist/types/components/Individual/pages/DecisionMakerDetailsPage.d.ts +20 -0
  90. package/dist/types/components/Individual/pages/LegalRepresentativeDetailsPage.d.ts +12 -0
  91. package/dist/types/components/Individual/pages/RootIndividualDetailsPage.d.ts +16 -0
  92. package/dist/types/components/Individual/tasks/DecisionMakers/types.d.ts +0 -2
  93. package/dist/types/components/Shared/Introduction/Introduction.d.ts +4 -2
  94. package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
  95. package/dist/types/components/Shared/forms/BusinessTypeSelection/BusinessTypeSelection.d.ts +1 -1
  96. package/dist/types/components/Shared/forms/BusinessTypeSelection/types.d.ts +3 -5
  97. package/dist/types/components/Shared/forms/DocumentUpload/DocumentUpload.d.ts +1 -1
  98. package/dist/types/components/Shared/forms/DocumentUpload/types.d.ts +5 -0
  99. package/dist/types/components/Shared/pages/BusinessTypeSelectionPage.d.ts +2 -0
  100. package/dist/types/components/Shared/tasks/TaskList/TaskList.d.ts +7 -1
  101. package/dist/types/components/Shared/tasks/TaskList/types.d.ts +0 -6
  102. package/dist/types/components/Shared/tasks/TaskList/utils.d.ts +1 -0
  103. package/dist/types/components/SoleProprietorship/pages/SoleProprietorshipPage.d.ts +8 -0
  104. package/dist/types/components/Trust/pages/TrustDetailsPage.d.ts +10 -0
  105. package/dist/types/components/Trust/pages/TrustMemberCompanyPage.d.ts +11 -0
  106. package/dist/types/components/Trust/pages/TrustMemberIndividualPage.d.ts +16 -0
  107. package/dist/types/components/Trust/pages/TrustMemberRoleAndTypePage.d.ts +9 -0
  108. package/dist/types/components/Trust/tasks/TrustMembers/TrustMembersOverview.d.ts +4 -7
  109. package/dist/types/components/UnincorporatedPartnership/hooks/useUnincorporatedPartnershipNavigation.d.ts +0 -2
  110. package/dist/types/components/UnincorporatedPartnership/pages/UnincorporatedPartnershipIndividualPage.d.ts +16 -0
  111. package/dist/types/components/UnincorporatedPartnership/pages/UnincorporatedPartnershipMemberCompanyPage.d.ts +11 -0
  112. package/dist/types/components/UnincorporatedPartnership/pages/UnincorporatedPartnershipMemberRoleAndTypePage.d.ts +8 -0
  113. package/dist/types/components/UnincorporatedPartnership/tasks/UnincorporatedPartnershipMembers/UnincorporatedPartnershipMembersOverview.d.ts +1 -5
  114. package/dist/types/components/UnincorporatedPartnership/tasks/UnincorporatedPartnershipRoleAndType/UnincorporatedPartnershipRoleAndType.d.ts +1 -1
  115. package/dist/types/components/ui/molecules/Dropzone/types.d.ts +1 -0
  116. package/dist/types/context/ExperimentContext/types.d.ts +6 -6
  117. package/dist/types/core/models/api/document.d.ts +1 -1
  118. package/dist/types/hooks/useDataConflicts.d.ts +1 -5
  119. package/dist/types/stores/globalStore/taskTypes.d.ts +0 -1
  120. package/dist/types/utils/country.d.ts +3 -2
  121. package/dist/types/utils/entityStatusUtil.d.ts +1 -1
  122. package/dist/types/utils/getDisplayErrorMessage.d.ts +3 -0
  123. package/dist/{utils-Du6OO4ZK.js → utils-DD_s-Xlo.js} +1 -1
  124. package/dist/{utils-Fkk087z-.js → utils-UcNoMAHV.js} +4 -4
  125. package/dist/{yaml-GnQQmt7i.js → yaml-BipFvPsw.js} +2 -2
  126. package/package.json +1 -1
  127. package/dist/types/components/BankAccount/forms/PayoutDetails/utils.d.ts +0 -2
  128. package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/PreferInstantVerificationMethod/PreferInstantVerificationMethod.d.ts +0 -22
  129. package/dist/types/components/Individual/forms/Individual/IndividualOuter.d.ts +0 -26
  130. package/dist/types/components/Trust/tasks/TrustDropin/TrustOuter.d.ts +0 -10
  131. package/dist/types/components/ui/atoms/List/List.d.ts +0 -9
@@ -2,16 +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] = "fcd64795-6ae5-4328-aff4-b8ac568b25ea", e._sentryDebugIdIdentifier = "sentry-dbid-fcd64795-6ae5-4328-aff4-b8ac568b25ea");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "416219f1-a6ed-4ddf-b47c-f0fd95f0dae7", e._sentryDebugIdIdentifier = "sentry-dbid-416219f1-a6ed-4ddf-b47c-f0fd95f0dae7");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
10
  import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
11
+ import { u as useI18nContext, a as useAnalyticsContext, W as useToastContext, b as useExperimentsContext, aF as useAccountHolder, dr as getCapabilities, a3 as getLegalEntityCountry, i as LegalEntityType, D as useForm, L as LoaderWrapper, T as Typography, F as Field, ds as EntityTypeRadioGroupCard, b5 as RadioGroupCard, B as Button, S as Spacer, a1 as Icon, aB as hasSolePropInLegalEntity, a2 as useLegalEntity, ao as ROOT_LE, a0 as Loader } from "./EventEmitter-D4j8YPMw.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-BYcoaXRs.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-UcNoMAHV.js";
15
15
  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
16
  const getBusinessTypeExamplesForCountry = async (country) => {
17
17
  const importForCountry = businessTypeExamples[`../localized/legalEntityTypeExamples/${country}.json`];
@@ -79,11 +79,11 @@ const trusteeTypes = ["individual", "company"];
79
79
  const trusteeTypeMetadata = {
80
80
  individual: {
81
81
  id: "individual",
82
- name: "individual"
82
+ name: "individualMember"
83
83
  },
84
84
  company: {
85
85
  id: "company",
86
- name: "company"
86
+ name: "companyMember"
87
87
  }
88
88
  };
89
89
  const getFormSchema = (isLegalArrangement, isTrust) => {
@@ -132,24 +132,17 @@ const businessTypeSelectionStepTitles = {
132
132
  ]: "changeYourBusinessSetup"
133
133
  };
134
134
  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,
135
+ const BusinessTypeSelection = ({
136
+ rootLegalEntity,
145
137
  onComplete,
146
138
  onBack
147
139
  }) => {
148
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
140
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
149
141
  const { i18n } = useI18nContext();
150
142
  const userEvents = useAnalyticsContext();
151
143
  const { showToast } = useToastContext();
152
144
  const { isExperimentEnabled } = useExperimentsContext();
145
+ const { accountHolder } = useAccountHolder();
153
146
  const [loadingStatus, setLoadingStatus] = useState();
154
147
  const [currentStep, setCurrentStep] = useState(
155
148
  0
@@ -164,23 +157,23 @@ const BusinessTypeSelectionInner = ({
164
157
  2
165
158
  /* WE_CANNOT_SET_UP_ACCOUNT */
166
159
  ].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);
160
+ const { legalArrangementOptions, adjustedBusinessTypeMetadata: businessTypeMetadata } = useSelectionOptions(rootLegalEntity);
161
+ const currentLegalEntityType = rootLegalEntity.type;
162
+ const currentCompanyTypesValue = (_a = rootLegalEntity.organization) == null ? void 0 : _a.type;
163
+ const capabilities = getCapabilities(rootLegalEntity);
164
+ const country = getLegalEntityCountry(rootLegalEntity);
172
165
  const defaultBusinessType = getBusinessType(
173
166
  businessTypeMetadata,
174
167
  country,
175
168
  accountHolder,
176
- legalEntityResponse == null ? void 0 : legalEntityResponse.type,
177
- (_b = legalEntityResponse == null ? void 0 : legalEntityResponse.organization) == null ? void 0 : _b.type,
169
+ rootLegalEntity.type,
170
+ (_b = rootLegalEntity.organization) == null ? void 0 : _b.type,
178
171
  capabilities
179
172
  );
180
173
  const defaultLegalArrangementType = legalArrangementOptions.find(
181
- (item) => item === getDefaultLegalArrangementOrSuborganizationType(legalEntityResponse, accountHolder)
174
+ (item) => item === getDefaultLegalArrangementOrSuborganizationType(rootLegalEntity, accountHolder)
182
175
  );
183
- const defaultTrusteeType = legalEntityResponse.type === LegalEntityType.INDIVIDUAL ? trusteeTypeMetadata.individual : trusteeTypeMetadata.company;
176
+ const defaultTrusteeType = rootLegalEntity.type === LegalEntityType.INDIVIDUAL ? trusteeTypeMetadata.individual : trusteeTypeMetadata.company;
184
177
  const { handleChangeFor, triggerValidation, data, valid, errors, isValid } = useForm({
185
178
  schema: formSchema,
186
179
  defaultData: {
@@ -192,12 +185,14 @@ const BusinessTypeSelectionInner = ({
192
185
  });
193
186
  const newAccountHolder = ((_c = data.businessType) == null ? void 0 : _c.accountHolder) || ((_d = data.legalArrangement) == null ? void 0 : _d.accountHolder);
194
187
  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");
188
+ const isTrust = targetLegalArrangement === "aTrust";
189
+ const isUnincorporatedPartnership = targetLegalArrangement === "partnershipUnincorporated";
190
+ const trustOrUnincorporatedPartnership = isTrust || isUnincorporatedPartnership && isExperimentEnabled("EnableUnincorporatedPartnershipInHO");
196
191
  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
192
+ (_f = data.businessType) == null ? void 0 : _f.id,
193
+ (_g = data.legalArrangement) == null ? void 0 : _g.id,
194
+ (_h = data.trusteeType) == null ? void 0 : _h.id,
195
+ rootLegalEntity.type
201
196
  );
202
197
  const isLegalEntityTypeChanging = currentLegalEntityType !== targetLegalEntityType;
203
198
  const isLegalArrangementChanging = currentCompanyTypesValue !== targetLegalArrangement;
@@ -266,16 +261,16 @@ const BusinessTypeSelectionInner = ({
266
261
  const updateLegalEntityPayload = {
267
262
  type: targetLegalEntityType
268
263
  };
269
- await updateLegalEntity({ ...updateLegalEntityPayload, id: legalEntityResponse == null ? void 0 : legalEntityResponse.id });
264
+ await updateLegalEntity({ ...updateLegalEntityPayload, id: rootLegalEntity.id });
270
265
  userEvents.addTaskEvent("Success", trackingPayload);
271
266
  }
272
267
  if (targetLegalEntityType === LegalEntityType.INDIVIDUAL) {
273
- if (hasSolePropInLegalEntity(legalEntityResponse)) {
268
+ if (hasSolePropInLegalEntity(rootLegalEntity)) {
274
269
  setLoadingStatus("loading");
275
270
  const updateLegalEntityPayload = {
276
271
  entityAssociations: []
277
272
  };
278
- await updateLegalEntity({ ...updateLegalEntityPayload, id: legalEntityResponse == null ? void 0 : legalEntityResponse.id });
273
+ await updateLegalEntity({ ...updateLegalEntityPayload, id: rootLegalEntity.id });
279
274
  userEvents.addTaskEvent("Success", trackingPayload);
280
275
  }
281
276
  return;
@@ -289,7 +284,7 @@ const BusinessTypeSelectionInner = ({
289
284
  organization: {
290
285
  type: targetOrganizationType
291
286
  },
292
- id: legalEntityResponse == null ? void 0 : legalEntityResponse.id
287
+ id: rootLegalEntity.id
293
288
  }));
294
289
  userEvents.addTaskEvent("Success", trackingPayload);
295
290
  }
@@ -330,7 +325,7 @@ const BusinessTypeSelectionInner = ({
330
325
  {
331
326
  el: "fieldset",
332
327
  name: "businessType",
333
- errorMessage: (_k = errors.businessType) == null ? void 0 : _k.errorMessage,
328
+ errorMessage: (_i = errors.businessType) == null ? void 0 : _i.errorMessage,
334
329
  showErrorIconBottom: true,
335
330
  isValid: valid.businessType,
336
331
  children: (childProps) => {
@@ -359,7 +354,7 @@ const BusinessTypeSelectionInner = ({
359
354
  {
360
355
  name: "legalArrangement",
361
356
  el: "fieldset",
362
- errorMessage: (_l = errors.legalArrangement) == null ? void 0 : _l.errorMessage,
357
+ errorMessage: (_j = errors.legalArrangement) == null ? void 0 : _j.errorMessage,
363
358
  showErrorIconBottom: true,
364
359
  isValid: valid.legalArrangement,
365
360
  children: (childProps) => {
@@ -387,10 +382,11 @@ const BusinessTypeSelectionInner = ({
387
382
  el: "fieldset",
388
383
  name: "trusteeType",
389
384
  label: i18n.get(
390
- ((_m = data.legalArrangement) == null ? void 0 : _m.id) === "aTrust" ? "whatTypeOfTrusteeAreYou" : "whatTypeOfOPartnershipAreYou"
385
+ isTrust ? "whatTypeOfTrusteeAreYou" : "whatTypeOfPartnershipAreYou"
391
386
  ),
387
+ helper: isUnincorporatedPartnership ? i18n.get("whatTypeOfPartnershipAreYouGuidance") : void 0,
392
388
  className: "adyen-kyc-u-margin-top-32",
393
- errorMessage: (_n = errors.trusteeType) == null ? void 0 : _n.errorMessage,
389
+ errorMessage: (_k = errors.trusteeType) == null ? void 0 : _k.errorMessage,
394
390
  showErrorIconBottom: true,
395
391
  isValid: valid.trusteeType,
396
392
  children: (childProps) => {
@@ -443,6 +439,16 @@ const BusinessTypeSelectionInner = ({
443
439
  ] })
444
440
  ] }) });
445
441
  };
442
+ const BusinessTypeSelectionPage = ({
443
+ onComplete,
444
+ onBack
445
+ }) => {
446
+ const { data: rootLe, isLoading } = useLegalEntity(ROOT_LE);
447
+ if (isLoading || !rootLe) {
448
+ return /* @__PURE__ */ jsx(Loader, {});
449
+ }
450
+ return /* @__PURE__ */ jsx(BusinessTypeSelection, { onComplete, onBack, rootLegalEntity: rootLe });
451
+ };
446
452
  export {
447
- BusinessTypeSelection
453
+ BusinessTypeSelectionPage
448
454
  };
@@ -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] = "9821d035-6173-4614-9c55-bd1aa88ff419", e._sentryDebugIdIdentifier = "sentry-dbid-9821d035-6173-4614-9c55-bd1aa88ff419");
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-c_NjaqBL.js";
11
+ import { e7 as getPreferredColorScheme, e8 as createMemo, e9 as createComponent } from "./EventEmitter-D4j8YPMw.js";
12
12
  var DevtoolsPanelComponent = (props) => {
13
13
  const [localStore, setLocalStore] = createLocalStorage({
14
14
  prefix: "TanstackQueryDevtools"