@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.
- package/dist/{AcceptTermsOfServiceComponent-Dsv4mY-k.js → AcceptTermsOfServiceComponent-Ib77t0y9.js} +11 -198
- package/dist/{AccountSetupRejected-Cz2iWdPE.js → AccountSetupRejected-Dcrt_Wjb.js} +3 -3
- package/dist/{BusinessDetailsDropin-CxJ7Ga0q.js → BusinessDetailsDropin-D10LCgSY.js} +199 -98
- package/dist/BusinessFinancingPage-CVRFAPxm.js +35 -0
- package/dist/{BusinessTypeSelection-wbCak0Us.js → BusinessTypeSelectionPage-DK4PY3_p.js} +47 -40
- package/dist/{CXEL7IU7-B9HOZi-H.js → CXEL7IU7-DyO75Uac.js} +3 -3
- package/dist/{CreateIndividualComponent-C3uFsTUT.js → CreateIndividualComponent-BiMYdvQq.js} +265 -1227
- package/dist/CreateTransferInstrumentComponent-CaBD_3yr.js +1082 -0
- package/dist/{CustomerSupport-BuxhbwRm.js → CustomerSupport-BqyayBTP.js} +4 -3
- package/dist/{DebugModal-B_DAGmya.js → DebugModal-CO_clhiW.js} +12 -11
- package/dist/DecisionMakerDetailsPage-C0wmo475.js +80 -0
- package/dist/{DecisionMakers-L6oYW0-J.js → DecisionMakers-B2rmqsfW.js} +6 -5
- package/dist/{EventEmitter-DTdpTyY7.js → EventEmitter-BmWcyurq.js} +1015 -1407
- package/dist/FormNavigation-W4SYacAX.js +205 -0
- package/dist/{HASRA6WW-CBmvzSwj.js → HASRA6WW-Cj_9-H1H.js} +2 -2
- package/dist/{I3HPI4QX-9ko0FQd6.js → I3HPI4QX-CCkDLYPH.js} +3 -3
- package/dist/{Introduction-C16zT64A.js → Introduction-DlsETOX7.js} +14 -6
- package/dist/LegalRepresentativeDetailsPage-Dbp83K05.js +55 -0
- package/dist/ManageIndividualComponent-D-47IZH6.js +190 -0
- package/dist/Modal-6j0jkYFX.js +135 -0
- package/dist/PayoutDetailsPage-CWAOATOb.js +57 -0
- package/dist/{Review-BbsJ9Iv_.js → Review-B0v_A189.js} +4 -3
- package/dist/RootBusinessDetailsPage-D_3xc6YN.js +43 -0
- package/dist/RootIndividualDetailsPage-CT-rsvpD.js +71 -0
- package/dist/{EmbedShell-DpZpuM-4.js → ShadowStylesRoot-DMxqA0py.js} +28 -10
- package/dist/{SingpassSelection-Biuh42TV.js → SingpassSelection-DB5BHBy1.js} +2 -2
- package/dist/SoleProprietorshipPage-CFZ3F57F.js +45 -0
- package/dist/{SourceOfFunds.module-CwVf62zO.js → SourceOfFunds.module-sL22I1gI.js} +2 -2
- package/dist/{SourceOfFundsDropin-Bz8cTP4R.js → SourceOfFundsPage-Tde0WbSG.js} +44 -20
- package/dist/Tag-DdkVScyr.js +41 -0
- package/dist/{TaskItemStatus-DzTphBn7.js → TaskItemStatus-DqNACVFe.js} +4 -32
- package/dist/{TaxReportingDropin-xDar-7mC.js → TaxReportingDropin-CPQZXr1j.js} +6 -5
- package/dist/{TrustOuter-2GEllVo3.js → TrustDetailsPage-BGkbFLaG.js} +20 -29
- package/dist/TrustMemberCompanyPage-CQi1xGDz.js +55 -0
- package/dist/TrustMemberIndividualPage-BI_XyXhS.js +60 -0
- package/dist/UnincorporatedPartnershipIndividualPage-B6gLv55I.js +60 -0
- package/dist/UnincorporatedPartnershipMemberCompanyPage-jHwnxg3n.js +58 -0
- package/dist/adyen-individual.js +41 -0
- package/dist/adyen-kyc-components.js +3 -6
- package/dist/adyen-manage-individual.js +41 -0
- package/dist/adyen-terms-of-service.js +47 -0
- package/dist/adyen-terms-of-service.vue_vue_type_script_lang-CLUMW5mI.js +34 -0
- package/dist/adyen-transfer-instrument.js +59 -0
- package/dist/adyen-transfer-instrument.vue_vue_type_script_lang-uEpG3KG3.js +45 -0
- package/dist/{bg-BG-CzEF3tzV.js → bg-BG-CZRQZyXO.js} +12 -5
- package/dist/{cs-CZ-TMjslGp_.js → cs-CZ-BbUFgifZ.js} +12 -5
- package/dist/{css-CypmaTn8.js → css-CFY1scQ9.js} +2 -2
- package/dist/{da-DK-DWzvDWZJ.js → da-DK-CP71BFS7.js} +12 -5
- package/dist/{de-DE-BtIL-7gp.js → de-DE-DY56JGZt.js} +12 -5
- package/dist/{el-GR-DHSSlqbw.js → el-GR-CnENEp5c.js} +12 -5
- package/dist/{es-ES-OwkE9-Cu.js → es-ES-dV62vQcV.js} +28 -21
- package/dist/{et-EE-DvixWnLd.js → et-EE-BBgAN3Wc.js} +12 -5
- package/dist/{fi-FI-DZiXWe_g.js → fi-FI-DVmGWIxn.js} +12 -5
- package/dist/{fr-FR-BBwiWhiT.js → fr-FR-VwG8Rg7R.js} +12 -5
- package/dist/{hr-HR-DJYofWKU.js → hr-HR-Bs_lxjxQ.js} +12 -5
- package/dist/{hu-HU-k9c6wZld.js → hu-HU-8dVSiOZM.js} +12 -5
- package/dist/{core-BsRrVyKB.js → index-D6YGuPb5.js} +810 -1908
- package/dist/{it-IT-oOwbWW3K.js → it-IT-DvwWMDl1.js} +12 -5
- package/dist/{ja-JP-CT3g8Hhn.js → ja-JP-BB6zzyEg.js} +12 -5
- package/dist/{json-DDReVYSW.js → json-RoVXbcQq.js} +2 -2
- package/dist/localizeDateString-DtxuKMqB.js +27 -0
- package/dist/{lt-LT-CVHIsEF8.js → lt-LT-BQtNojlb.js} +12 -5
- package/dist/{lv-LV-BFx0cvZ2.js → lv-LV-BpEw5uN5.js} +12 -5
- package/dist/mapExistingFile-CwT8TZ5D.js +870 -0
- package/dist/{nl-NL-rmSZu4Rf.js → nl-NL-vBEBXTP-.js} +12 -5
- package/dist/{no-NO-BOnQvimN.js → no-NO-BFhTqUoD.js} +12 -5
- package/dist/{pl-PL-5j22An4E.js → pl-PL-dsGZvzVf.js} +12 -5
- package/dist/{plaintext-Cjcgjaqv.js → plaintext-DpBLPLCO.js} +2 -2
- package/dist/{terms-of-service-preact.js → preact/adyen-individual.js} +4 -4
- package/dist/{individual-react.js → preact/adyen-manage-individual.js} +4 -4
- package/dist/{terms-of-service-react.js → preact/adyen-terms-of-service.js} +5 -4
- package/dist/preact/adyen-transfer-instrument.js +16 -0
- package/dist/{pt-PT-DP8U1qyu.js → pt-PT-BB38pZbh.js} +12 -5
- package/dist/{ro-RO-BTdtoC6P.js → ro-RO-BgxNxoxJ.js} +12 -5
- package/dist/{sk-SK-DYTx4mOB.js → sk-SK-rtDeCztl.js} +12 -5
- package/dist/{sl-SI-D8CiUN69.js → sl-SI-qoGCwUdU.js} +12 -5
- package/dist/style.css +1942 -1990
- package/dist/styles-CLV89_hH.js +1942 -1990
- package/dist/{sv-SE-Daslxeqr.js → sv-SE-f1T7PBSW.js} +12 -5
- package/dist/types/api/transferInstruments/useTransferInstrument.d.ts +2 -1
- package/dist/types/components/BankAccount/forms/BankDocument/types.d.ts +2 -0
- package/dist/types/components/BankAccount/forms/PayoutDetails/types.d.ts +2 -5
- package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/types.d.ts +1 -11
- package/dist/types/components/BankAccount/pages/PayoutDetailsPage.d.ts +14 -0
- package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/PayoutDetailsDropin.d.ts +1 -1
- package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/payoutDetailsFormConfig.d.ts +12 -1
- package/dist/types/components/Business/forms/BusinessDetails/forms.d.ts +14 -0
- package/dist/types/components/Business/forms/BusinessDetails/types.d.ts +1 -0
- package/dist/types/components/Business/forms/ProofOfOwnershipDocument/ProofOfOwnershipDocument.d.ts +2 -0
- package/dist/types/components/Business/forms/ProofOfOwnershipDocument/types.d.ts +8 -0
- package/dist/types/components/Business/forms/rules.d.ts +0 -1
- package/dist/types/components/Business/mapping/businessDetails/businessDetailsKeyMappings.d.ts +1 -1
- package/dist/types/components/Business/mapping/businessDetails/solePropBusinessDetailsKeyMappings.d.ts +1 -1
- package/dist/types/components/Business/pages/RootBusinessDetailsPage.d.ts +8 -0
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +1 -3
- package/dist/types/components/EFP/pages/BusinessFinancingPage.d.ts +7 -0
- package/dist/types/components/EFP/pages/SourceOfFundsPage.d.ts +7 -0
- package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/DropinComposer.d.ts +1 -1
- package/dist/types/components/Individual/forms/Individual/IdDocumentUpload/types.d.ts +1 -0
- package/dist/types/components/Individual/forms/Individual/IdVerificationMethod/IdVerificationMethod.d.ts +0 -1
- package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/IdVerificationMethod.types.d.ts +0 -2
- package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.types.d.ts +2 -1
- package/dist/types/components/Individual/pages/DecisionMakerDetailsPage.d.ts +20 -0
- package/dist/types/components/Individual/pages/LegalRepresentativeDetailsPage.d.ts +12 -0
- package/dist/types/components/Individual/pages/RootIndividualDetailsPage.d.ts +16 -0
- package/dist/types/components/Individual/tasks/DecisionMakers/types.d.ts +0 -2
- package/dist/types/components/Shared/Introduction/Introduction.d.ts +4 -2
- package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
- package/dist/types/components/Shared/forms/BusinessTypeSelection/BusinessTypeSelection.d.ts +1 -1
- package/dist/types/components/Shared/forms/BusinessTypeSelection/types.d.ts +3 -5
- package/dist/types/components/Shared/forms/DocumentUpload/DocumentUpload.d.ts +1 -1
- package/dist/types/components/Shared/forms/DocumentUpload/types.d.ts +5 -0
- package/dist/types/components/Shared/pages/BusinessTypeSelectionPage.d.ts +2 -0
- package/dist/types/components/Shared/tasks/TaskList/TaskList.d.ts +7 -1
- package/dist/types/components/Shared/tasks/TaskList/types.d.ts +0 -6
- package/dist/types/components/Shared/tasks/TaskList/utils.d.ts +1 -0
- package/dist/types/components/SoleProprietorship/pages/SoleProprietorshipPage.d.ts +8 -0
- package/dist/types/components/Trust/pages/TrustDetailsPage.d.ts +10 -0
- package/dist/types/components/Trust/pages/TrustMemberCompanyPage.d.ts +11 -0
- package/dist/types/components/Trust/pages/TrustMemberIndividualPage.d.ts +16 -0
- package/dist/types/components/Trust/pages/TrustMemberRoleAndTypePage.d.ts +9 -0
- package/dist/types/components/Trust/tasks/TrustMembers/TrustMembersOverview.d.ts +4 -7
- package/dist/types/components/UnincorporatedPartnership/hooks/useUnincorporatedPartnershipNavigation.d.ts +0 -2
- package/dist/types/components/UnincorporatedPartnership/pages/UnincorporatedPartnershipIndividualPage.d.ts +16 -0
- package/dist/types/components/UnincorporatedPartnership/pages/UnincorporatedPartnershipMemberCompanyPage.d.ts +11 -0
- package/dist/types/components/UnincorporatedPartnership/pages/UnincorporatedPartnershipMemberRoleAndTypePage.d.ts +8 -0
- package/dist/types/components/UnincorporatedPartnership/tasks/UnincorporatedPartnershipMembers/UnincorporatedPartnershipMembersOverview.d.ts +1 -5
- package/dist/types/components/UnincorporatedPartnership/tasks/UnincorporatedPartnershipRoleAndType/UnincorporatedPartnershipRoleAndType.d.ts +1 -1
- package/dist/types/components/ui/molecules/Dropzone/types.d.ts +1 -0
- package/dist/types/context/AnalyticsContext/AnalyticsProvider.d.ts +2 -2
- package/dist/types/context/ExperimentContext/ExperimentsContextProvider.d.ts +1 -1
- package/dist/types/context/ExperimentContext/types.d.ts +6 -6
- package/dist/types/core/EmbedShell/EmbedShell.d.ts +3 -4
- package/dist/types/core/environment/resolveEnvironment.d.ts +1 -0
- package/dist/types/core/models/api/document.d.ts +1 -1
- package/dist/types/embeds/ShadowStylesRoot.d.ts +3 -0
- package/dist/types/embeds/baseEmbedProps.d.ts +30 -0
- package/dist/types/embeds/individual/AdyenIndividualPreact.d.ts +3 -0
- package/dist/types/embeds/individual/adyen-individual.types.d.ts +30 -0
- package/dist/types/embeds/manage-individual/AdyenManageIndividualPreact.d.ts +3 -0
- package/dist/types/embeds/manage-individual/adyen-manage-individual.d.ts +1 -0
- package/dist/types/embeds/manage-individual/adyen-manage-individual.types.d.ts +29 -0
- package/dist/types/embeds/terms-of-service/AdyenTermsOfServicePreact.d.ts +3 -0
- package/dist/types/embeds/terms-of-service/adyen-terms-of-service.types.d.ts +30 -0
- package/dist/types/embeds/transfer-instrument/AdyenTransferInstrumentPreact.d.ts +3 -0
- package/dist/types/embeds/transfer-instrument/adyen-transfer-instrument.types.d.ts +36 -0
- package/dist/types/hooks/useDataConflicts.d.ts +1 -5
- package/dist/types/stores/globalStore/taskTypes.d.ts +0 -1
- package/dist/types/utils/country.d.ts +3 -2
- package/dist/types/utils/entityStatusUtil.d.ts +1 -1
- package/dist/types/utils/getDisplayErrorMessage.d.ts +3 -0
- package/dist/useToastContext-DiQ_PGrE.js +33 -0
- package/dist/{utils-Fkk087z-.js → utils-Bl8l2XY4.js} +4 -4
- package/dist/vue/adyen-individual.js +43 -0
- package/dist/vue/adyen-manage-individual.js +46 -0
- package/dist/vue/adyen-terms-of-service.js +26 -0
- package/dist/vue/adyen-transfer-instrument.js +28 -0
- package/dist/{yaml-GnQQmt7i.js → yaml-DEzkYiMR.js} +2 -2
- package/package.json +28 -61
- package/dist/adyenConfig.js +0 -34
- package/dist/individual-preact.js +0 -15
- package/dist/individual-vue.js +0 -35
- package/dist/individual.js +0 -58
- package/dist/listToRecord-CO3M1Q74.js +0 -19
- package/dist/terms-of-service.js +0 -58
- package/dist/transfer-instrument-preact.js +0 -32
- package/dist/transfer-instrument-react.js +0 -32
- package/dist/transfer-instrument-vue.js +0 -41
- package/dist/transfer-instrument.js +0 -38
- package/dist/types/components/BankAccount/forms/PayoutDetails/utils.d.ts +0 -2
- package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/PreferInstantVerificationMethod/PreferInstantVerificationMethod.d.ts +0 -22
- package/dist/types/components/Individual/forms/Individual/IndividualOuter.d.ts +0 -26
- package/dist/types/components/Trust/tasks/TrustDropin/TrustOuter.d.ts +0 -10
- package/dist/types/components/ui/atoms/List/List.d.ts +0 -9
- package/dist/types/embeds/adyenConfig.d.ts +0 -22
- package/dist/types/embeds/individual/individual.types.d.ts +0 -12
- package/dist/types/embeds/individual/preact/Individual.d.ts +0 -15
- package/dist/types/embeds/individual/react/Individual.d.ts +0 -20
- package/dist/types/embeds/individual/vue/individual.types.d.ts +0 -9
- package/dist/types/embeds/terms-of-service/preact/TermsOfService.d.ts +0 -10
- package/dist/types/embeds/terms-of-service/react/TermsOfService.d.ts +0 -20
- package/dist/types/embeds/terms-of-service/terms-of-service.types.d.ts +0 -8
- package/dist/types/embeds/transfer-instrument/preact/TransferInstrument.d.ts +0 -15
- package/dist/types/embeds/transfer-instrument/react/TransferInstrument.d.ts +0 -20
- package/dist/types/embeds/transfer-instrument/transfer-instrument.types.d.ts +0 -17
- package/dist/types/embeds/transfer-instrument/vue/transfer-instrument.types.d.ts +0 -9
- package/dist/types/embeds/types.d.ts +0 -19
- package/dist/types/embeds/utils.d.ts +0 -7
- 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] = "
|
|
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 {
|
|
13
|
-
import {
|
|
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-
|
|
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: "
|
|
83
|
+
name: "individualMember"
|
|
83
84
|
},
|
|
84
85
|
company: {
|
|
85
86
|
id: "company",
|
|
86
|
-
name: "
|
|
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 = (
|
|
136
|
-
|
|
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
|
|
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(
|
|
168
|
-
const currentLegalEntityType =
|
|
169
|
-
const currentCompanyTypesValue = (_a =
|
|
170
|
-
const capabilities = getCapabilities(
|
|
171
|
-
const country = getLegalEntityCountry(
|
|
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
|
-
|
|
177
|
-
(_b =
|
|
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(
|
|
175
|
+
(item) => item === getDefaultLegalArrangementOrSuborganizationType(rootLegalEntity, accountHolder)
|
|
182
176
|
);
|
|
183
|
-
const defaultTrusteeType =
|
|
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
|
|
189
|
+
const isTrust = targetLegalArrangement === "aTrust";
|
|
190
|
+
const isUnincorporatedPartnership = targetLegalArrangement === "partnershipUnincorporated";
|
|
191
|
+
const trustOrUnincorporatedPartnership = isTrust || isUnincorporatedPartnership && isExperimentEnabled("EnableUnincorporatedPartnershipInHO");
|
|
196
192
|
const targetLegalEntityType = getTargetLegalEntityType(
|
|
197
|
-
(
|
|
198
|
-
(
|
|
199
|
-
(
|
|
200
|
-
|
|
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:
|
|
265
|
+
await updateLegalEntity({ ...updateLegalEntityPayload, id: rootLegalEntity.id });
|
|
270
266
|
userEvents.addTaskEvent("Success", trackingPayload);
|
|
271
267
|
}
|
|
272
268
|
if (targetLegalEntityType === LegalEntityType.INDIVIDUAL) {
|
|
273
|
-
if (hasSolePropInLegalEntity(
|
|
269
|
+
if (hasSolePropInLegalEntity(rootLegalEntity)) {
|
|
274
270
|
setLoadingStatus("loading");
|
|
275
271
|
const updateLegalEntityPayload = {
|
|
276
272
|
entityAssociations: []
|
|
277
273
|
};
|
|
278
|
-
await updateLegalEntity({ ...updateLegalEntityPayload, 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:
|
|
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: (
|
|
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: (
|
|
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
|
-
|
|
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: (
|
|
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
|
-
|
|
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] = "
|
|
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-
|
|
11
|
-
import {
|
|
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"
|