@adyen/kyc-components 3.71.2 → 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.
- package/dist/{AcceptTermsOfServiceComponent-DMzlz5ur.js → AcceptTermsOfServiceComponent-Bt8sRAoc.js} +2 -2
- package/dist/{AccountSetupRejected-B_ll-DYK.js → AccountSetupRejected-BwL6Q3-7.js} +3 -3
- package/dist/{BusinessDetailsDropin--GT26UUf.js → BusinessDetailsDropin-z-LBYatN.js} +195 -98
- package/dist/BusinessFinancingPage-BZ0ukckI.js +35 -0
- package/dist/{BusinessTypeSelection-DrKppT76.js → BusinessTypeSelectionPage-Bl0fkgrq.js} +46 -40
- package/dist/{CXEL7IU7-BadU4Quy.js → CXEL7IU7-BDgMbrmd.js} +3 -3
- package/dist/{CreateIndividualComponent-Cw8jncCj.js → CreateIndividualComponent-BYcoaXRs.js} +257 -370
- package/dist/{CustomerSupport-hGFkG8i3.js → CustomerSupport-C1aqVIO5.js} +3 -3
- package/dist/{DebugModal-DWrh3Luo.js → DebugModal-sw85K_ur.js} +11 -10
- package/dist/DecisionMakerDetailsPage-uOytW22H.js +80 -0
- package/dist/{DecisionMakers-DEspQGcu.js → DecisionMakers-CCWH6S3m.js} +5 -5
- package/dist/{EmbedShell-B_11fu1C.js → EmbedShell-n61dt-oX.js} +3 -3
- package/dist/{EventEmitter-Bq8xlXVA.js → EventEmitter-D4j8YPMw.js} +897 -1119
- package/dist/{HASRA6WW-CzhpDwYQ.js → HASRA6WW-c_NjaqBL.js} +2 -2
- package/dist/{I3HPI4QX-DYJ1Uod-.js → I3HPI4QX-7hHBw-hy.js} +3 -3
- package/dist/{Introduction-ocOgetqy.js → Introduction-BIciUCV2.js} +14 -6
- package/dist/LegalRepresentativeDetailsPage-B5NB1_0c.js +55 -0
- package/dist/PayoutDetailsPage-csmuS7XY.js +57 -0
- package/dist/{Review-dujxCIfE.js → Review-OUouKkBK.js} +3 -3
- package/dist/RootBusinessDetailsPage-8GCh8CZ9.js +43 -0
- package/dist/RootIndividualDetailsPage-zZl4WLcr.js +71 -0
- package/dist/{SingpassSelection-BF6kWg3g.js → SingpassSelection-DZx1cQy-.js} +2 -2
- package/dist/SoleProprietorshipPage-WVtWeQL6.js +45 -0
- package/dist/{SourceOfFunds.module-caoQ--io.js → SourceOfFunds.module-3s3uanVF.js} +2 -2
- package/dist/{SourceOfFundsDropin-Bhk41z_b.js → SourceOfFundsPage-6mejBSsi.js} +38 -20
- package/dist/{TaskItemStatus-PMtq1Pi9.js → TaskItemStatus-BTND6V1w.js} +2 -2
- package/dist/{TaxReportingDropin-zwlu6qxX.js → TaxReportingDropin-Canpx2fK.js} +5 -5
- package/dist/{TrustOuter-BsEoJkzE.js → TrustDetailsPage-DSDYwyW0.js} +17 -29
- package/dist/TrustMemberCompanyPage-D7V4OAf4.js +55 -0
- package/dist/TrustMemberIndividualPage-C9zoI3NZ.js +60 -0
- package/dist/UnincorporatedPartnershipIndividualPage-BKEuBPUD.js +60 -0
- package/dist/UnincorporatedPartnershipMemberCompanyPage-Ij6N40YA.js +58 -0
- package/dist/adyen-kyc-components.js +1 -1
- package/dist/adyenConfig.js +2 -2
- package/dist/{bg-BG-CzEF3tzV.js → bg-BG-CZRQZyXO.js} +12 -5
- package/dist/{core-BGMNir1l.js → core-C1rJ5Pjl.js} +687 -573
- package/dist/{cs-CZ-TMjslGp_.js → cs-CZ-BbUFgifZ.js} +12 -5
- package/dist/{css-DB40kUpv.js → css-FlY03KiS.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/individual.js +4 -4
- 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-BfjwC9Z8.js → json-C0fKu7KI.js} +2 -2
- 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/{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-cxU_oLhE.js → plaintext-VVpKsKsN.js} +2 -2
- 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 +175 -223
- package/dist/styles-CLV89_hH.js +175 -223
- package/dist/{sv-SE-Daslxeqr.js → sv-SE-f1T7PBSW.js} +12 -5
- package/dist/terms-of-service.js +4 -4
- 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 +2 -1
- 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/ExperimentContext/types.d.ts +11 -6
- package/dist/types/core/models/api/document.d.ts +1 -1
- package/dist/types/hooks/useDataConflicts.d.ts +1 -5
- package/dist/types/stores/globalStore/calculateTaskStatus.d.ts +3 -1
- 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/{utils-CxEv8UGu.js → utils-DD_s-Xlo.js} +1 -1
- package/dist/{utils-9cd3ykqp.js → utils-UcNoMAHV.js} +4 -4
- package/dist/{yaml-BGFeLEJY.js → yaml-BipFvPsw.js} +2 -2
- package/package.json +1 -1
- 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
|
@@ -5,12 +5,12 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
5
5
|
{
|
|
6
6
|
try {
|
|
7
7
|
let e2 = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n2 = new e2.Error().stack;
|
|
8
|
-
n2 && (e2._sentryDebugIds = e2._sentryDebugIds || {}, e2._sentryDebugIds[n2] = "
|
|
8
|
+
n2 && (e2._sentryDebugIds = e2._sentryDebugIds || {}, e2._sentryDebugIds[n2] = "f8e06c7c-0847-49fa-8cd1-dd6b4192c7e1", e2._sentryDebugIdIdentifier = "sentry-dbid-f8e06c7c-0847-49fa-8cd1-dd6b4192c7e1");
|
|
9
9
|
} catch (e2) {
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
;
|
|
13
|
-
import {
|
|
13
|
+
import { ea as createContext, eb as createSignal, ec as onMount, ed as createEffect, e8 as createMemo, e9 as createComponent, ee as Portal, ef as Show, eg as template, eh as insert, ei as createRenderEffect, ej as className, ek as clearDelegatedEvents, el as delegateEvents, em as useContext, en as onCleanup, eo as sortFns, ep as mutationSortFns, eq as on, er as setAttribute, es as getSidedProp, et as use, eu as createUniqueId, ev as batch, ew as getQueryStatusLabel, ex as getMutationStatusColor, ey as getQueryStatusColor, ez as getQueryStatusColorByLabel, eA as displayValue, eB as For, eC as convertRemToPixels, eD as untrack, eE as $TRACK, eF as useTransition, eG as spread, eH as mergeProps, eI as createRoot, eJ as serialize, eK as Index, eL as updateNestedDataByPath, eM as addEventListener, eN as stringify, eO as Match, eP as Switch, eQ as deleteNestedDataByPath, eR as splitProps, eS as Dynamic, eT as createComputed } from "./EventEmitter-D4j8YPMw.js";
|
|
14
14
|
var isNonNullable = (i2) => i2 != null;
|
|
15
15
|
var filterNonNullable = (arr) => arr.filter(isNonNullable);
|
|
16
16
|
function chain(callbacks) {
|
|
@@ -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] = "8d82a516-57b2-4105-b513-3a12a9449163", e._sentryDebugIdIdentifier = "sentry-dbid-8d82a516-57b2-4105-b513-3a12a9449163");
|
|
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, D as Devtools, Q as QueryDevtoolsContext } from "./HASRA6WW-
|
|
11
|
-
import {
|
|
10
|
+
import { c as createLocalStorage, T as THEME_PREFERENCE, P as PiPProvider, a as ThemeContext, D as Devtools, 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 DevtoolsComponent = (props) => {
|
|
13
13
|
const [localStore, setLocalStore] = createLocalStorage({
|
|
14
14
|
prefix: "TanstackQueryDevtools"
|
|
@@ -2,17 +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] = "4613bab6-fd3f-46d9-94f2-8668237e19a0", e._sentryDebugIdIdentifier = "sentry-dbid-4613bab6-fd3f-46d9-94f2-8668237e19a0");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsxs, Fragment, jsx } from "preact/jsx-runtime";
|
|
11
11
|
import { useMemo as useMemo$1, useState, useEffect } from "preact/hooks";
|
|
12
|
-
import {
|
|
13
|
-
import { S as StepProgressIndicator } from "./AcceptTermsOfServiceComponent-
|
|
12
|
+
import { ah as TaskTypes, i as LegalEntityType, dq as getTranslationKeysByPrefix, u as useI18nContext, a2 as useLegalEntity, ao as ROOT_LE, a0 as Loader, a as useAnalyticsContext, B as Button } from "./EventEmitter-D4j8YPMw.js";
|
|
13
|
+
import { S as StepProgressIndicator } from "./AcceptTermsOfServiceComponent-Bt8sRAoc.js";
|
|
14
14
|
import { useMemo } from "preact/compat";
|
|
15
|
-
import { u as useCanSeeIntroduction, a as useLegalEntityType } from "./core-
|
|
15
|
+
import { u as useCanSeeIntroduction, a as useLegalEntityType } from "./core-C1rJ5Pjl.js";
|
|
16
16
|
import { t as toCapitalized } from "./toCapitalized-Bq7laD0b.js";
|
|
17
17
|
var IntroductionScreens = ((IntroductionScreens2) => {
|
|
18
18
|
IntroductionScreens2["PROLOGUE"] = "PROLOGUE";
|
|
@@ -135,7 +135,14 @@ const IntroductionScreen = ({
|
|
|
135
135
|
] })
|
|
136
136
|
] });
|
|
137
137
|
};
|
|
138
|
-
|
|
138
|
+
function Introduction({ onExitIntroduction, tasks }) {
|
|
139
|
+
const { data: rootLe, isLoading } = useLegalEntity(ROOT_LE);
|
|
140
|
+
if (isLoading || !rootLe) {
|
|
141
|
+
return /* @__PURE__ */ jsx(Loader, { size: "large" });
|
|
142
|
+
}
|
|
143
|
+
return /* @__PURE__ */ jsx(IntroductionInner, { legalEntity: rootLe, onExitIntroduction, tasks });
|
|
144
|
+
}
|
|
145
|
+
const IntroductionInner = ({
|
|
139
146
|
legalEntity,
|
|
140
147
|
onExitIntroduction,
|
|
141
148
|
tasks
|
|
@@ -243,5 +250,6 @@ const Introduction = ({
|
|
|
243
250
|
] }) : null;
|
|
244
251
|
};
|
|
245
252
|
export {
|
|
246
|
-
Introduction
|
|
253
|
+
Introduction,
|
|
254
|
+
IntroductionInner
|
|
247
255
|
};
|
|
@@ -0,0 +1,55 @@
|
|
|
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] = "adf21bb0-138d-4527-9d85-7774a388e2ea", e._sentryDebugIdIdentifier = "sentry-dbid-adf21bb0-138d-4527-9d85-7774a388e2ea");
|
|
6
|
+
} catch (e) {
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
;
|
|
10
|
+
import { jsx } from "preact/jsx-runtime";
|
|
11
|
+
import { a2 as useLegalEntity, a6 as skipToken, ao as ROOT_LE, b as useExperimentsContext, a0 as Loader, a3 as getLegalEntityCountry, aG as EntityType, ah as TaskTypes, aJ as noop } from "./EventEmitter-D4j8YPMw.js";
|
|
12
|
+
import { G as useCapabilityProblems, N as getProblemsForEntity, Q as isOnfidoAutofillFlowEnabled, R as IndividualOnfidoDropin, U as IndividualDropin } from "./CreateIndividualComponent-BYcoaXRs.js";
|
|
13
|
+
function LegalRepresentativeDetailsPage({
|
|
14
|
+
legalRepresentativeId,
|
|
15
|
+
asModal = false,
|
|
16
|
+
hideSidebar = false,
|
|
17
|
+
onSubmit,
|
|
18
|
+
/** below from {@link DropinProps} */
|
|
19
|
+
handleBackClick,
|
|
20
|
+
handleCloseClick,
|
|
21
|
+
handleHomeClick = noop
|
|
22
|
+
}) {
|
|
23
|
+
const { data: legalRepresentativeLe } = useLegalEntity(legalRepresentativeId ?? skipToken);
|
|
24
|
+
const { data: rootLe } = useLegalEntity(ROOT_LE);
|
|
25
|
+
const capabilityProblems = useCapabilityProblems();
|
|
26
|
+
const { isExperimentEnabled } = useExperimentsContext();
|
|
27
|
+
if (!rootLe || legalRepresentativeId && !legalRepresentativeLe) {
|
|
28
|
+
return /* @__PURE__ */ jsx(Loader, {});
|
|
29
|
+
}
|
|
30
|
+
const country = getLegalEntityCountry(legalRepresentativeLe ?? rootLe);
|
|
31
|
+
const problems = capabilityProblems ? getProblemsForEntity(capabilityProblems, EntityType.LEGAL_ENTITY, rootLe.id) : void 0;
|
|
32
|
+
const isOnfidoAutofillFlow = isOnfidoAutofillFlowEnabled(
|
|
33
|
+
country,
|
|
34
|
+
TaskTypes.LEGAL_REPRESENTATIVE_DETAILS,
|
|
35
|
+
isExperimentEnabled
|
|
36
|
+
);
|
|
37
|
+
const props = {
|
|
38
|
+
taskType: TaskTypes.LEGAL_REPRESENTATIVE_DETAILS,
|
|
39
|
+
taskName: "legalRepresentativeDetails",
|
|
40
|
+
legalEntityResponse: legalRepresentativeLe,
|
|
41
|
+
parentLegalEntity: rootLe,
|
|
42
|
+
problems,
|
|
43
|
+
country,
|
|
44
|
+
asModal,
|
|
45
|
+
hideSidebar,
|
|
46
|
+
onSubmit,
|
|
47
|
+
handleBackClick,
|
|
48
|
+
handleCloseClick,
|
|
49
|
+
handleHomeClick
|
|
50
|
+
};
|
|
51
|
+
return isOnfidoAutofillFlow ? /* @__PURE__ */ jsx(IndividualOnfidoDropin, { ...props }) : /* @__PURE__ */ jsx(IndividualDropin, { ...props });
|
|
52
|
+
}
|
|
53
|
+
export {
|
|
54
|
+
LegalRepresentativeDetailsPage
|
|
55
|
+
};
|
|
@@ -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] = "ddb7c7ca-409e-4f24-a2ec-ca730579197e", e._sentryDebugIdIdentifier = "sentry-dbid-ddb7c7ca-409e-4f24-a2ec-ca730579197e");
|
|
6
|
+
} catch (e) {
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
;
|
|
10
|
+
import { jsx } from "preact/jsx-runtime";
|
|
11
|
+
import { a2 as useLegalEntity, ao as ROOT_LE, U as useAssociatedLegalEntity, i as LegalEntityType, de as useCapabilities, a0 as Loader, aG as EntityType, ab as keysOf } from "./EventEmitter-D4j8YPMw.js";
|
|
12
|
+
import { G as useCapabilityProblems, N as getProblemsForEntity } from "./CreateIndividualComponent-BYcoaXRs.js";
|
|
13
|
+
import { P as PayoutDetailsDropin } from "./core-C1rJ5Pjl.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,15 @@
|
|
|
2
2
|
{
|
|
3
3
|
try {
|
|
4
4
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "fb1c3bbb-003c-4074-8a21-5e3eeec0c036", e._sentryDebugIdIdentifier = "sentry-dbid-fb1c3bbb-003c-4074-8a21-5e3eeec0c036");
|
|
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,
|
|
13
|
-
import { D as DropinLayout } from "./core-
|
|
12
|
+
import { m as useApiContext, a5 as useMutation, a4 as httpPost, u as useI18nContext, W as useToastContext, L as LoaderWrapper, b2 as FormHeader, bq as Checkbox, bd as ActionBar } from "./EventEmitter-D4j8YPMw.js";
|
|
13
|
+
import { D as DropinLayout } from "./core-C1rJ5Pjl.js";
|
|
14
14
|
const confirmReview = async (legalEntityId, baseUrl) => {
|
|
15
15
|
return httpPost({
|
|
16
16
|
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] = "8d0c7989-826a-4c34-9550-1d7812c1c3a0", e._sentryDebugIdIdentifier = "sentry-dbid-8d0c7989-826a-4c34-9550-1d7812c1c3a0");
|
|
6
|
+
} catch (e) {
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
;
|
|
10
|
+
import { jsx } from "preact/jsx-runtime";
|
|
11
|
+
import { aF as useAccountHolder, a2 as useLegalEntity, ao as ROOT_LE, a0 as Loader, aA as isPartOfTrustFromLegalEntity, aG as EntityType, a3 as getLegalEntityCountry, ah as TaskTypes } from "./EventEmitter-D4j8YPMw.js";
|
|
12
|
+
import { G as useCapabilityProblems, N as getProblemsForEntity } from "./CreateIndividualComponent-BYcoaXRs.js";
|
|
13
|
+
import { B as BusinessDetailsDropin } from "./BusinessDetailsDropin-z-LBYatN.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] = "c457f6f0-03f6-4242-84dd-54e4da3f7a74", e._sentryDebugIdIdentifier = "sentry-dbid-c457f6f0-03f6-4242-84dd-54e4da3f7a74");
|
|
6
|
+
} catch (e) {
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
;
|
|
10
|
+
import { jsx } from "preact/jsx-runtime";
|
|
11
|
+
import { a2 as useLegalEntity, ao as ROOT_LE, b as useExperimentsContext, aF as useAccountHolder, a0 as Loader, a3 as getLegalEntityCountry, aA as isPartOfTrustFromLegalEntity, aG as EntityType, ah as TaskTypes, aJ as noop } from "./EventEmitter-D4j8YPMw.js";
|
|
12
|
+
import { G as useCapabilityProblems, N as getProblemsForEntity, Q as isOnfidoAutofillFlowEnabled, R as IndividualOnfidoDropin, U as IndividualDropin } from "./CreateIndividualComponent-BYcoaXRs.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] = "
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "2e974bd9-bfb4-41df-9140-5d6b3dbab4fa", e._sentryDebugIdIdentifier = "sentry-dbid-2e974bd9-bfb4-41df-9140-5d6b3dbab4fa");
|
|
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,
|
|
12
|
+
import { u as useI18nContext, D as useForm, T as Typography, F as Field, b5 as RadioGroupCard, B as Button, d4 as Svg, i as LegalEntityType } from "./EventEmitter-D4j8YPMw.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] = "48c6a708-a18a-489e-8eeb-ed9782217e22", e._sentryDebugIdIdentifier = "sentry-dbid-48c6a708-a18a-489e-8eeb-ed9782217e22");
|
|
6
|
+
} catch (e) {
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
;
|
|
10
|
+
import { jsx } from "preact/jsx-runtime";
|
|
11
|
+
import { a2 as useLegalEntity, ao as ROOT_LE, a6 as skipToken, a0 as Loader, aG as EntityType, a3 as getLegalEntityCountry, ah as TaskTypes } from "./EventEmitter-D4j8YPMw.js";
|
|
12
|
+
import { G as useCapabilityProblems, N as getProblemsForEntity } from "./CreateIndividualComponent-BYcoaXRs.js";
|
|
13
|
+
import { B as BusinessDetailsDropin } from "./BusinessDetailsDropin-z-LBYatN.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] = "
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "e7dd1a24-166d-4d8b-a4ab-0b03f70c5a5d", e._sentryDebugIdIdentifier = "sentry-dbid-e7dd1a24-166d-4d8b-a4ab-0b03f70c5a5d");
|
|
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,
|
|
12
|
+
import { u as useI18nContext, am as TaskStatus } from "./EventEmitter-D4j8YPMw.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,18 +2,18 @@
|
|
|
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] = "5ff010d5-7cb6-467d-a9c2-b10dd0fc1b94", e._sentryDebugIdIdentifier = "sentry-dbid-5ff010d5-7cb6-467d-a9c2-b10dd0fc1b94");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
|
|
11
|
+
import { m as useApiContext, p as useQuery, q as httpGet, Q as useInvalidateRootLegalEntity, a5 as useMutation, a4 as httpPost, i as LegalEntityType, l as localizeDateString, T as Typography, e3 as Currencies, u as useI18nContext, F as Field, e4 as InputGroup, t as Select, I as InputText, y as InputDate, b6 as TextArea, R as RadioGroup, b8 as CountryField, ak as Modal, aq as Alert, B as Button, k as isEmpty, D as useForm, E as useGlobalDataSlice, G as ErrorPanel, H as createFormUtils, a0 as Loader, a1 as Icon, $ as getFormProps, ar as Card, as as StructuredList, at as IconButton, d5 as isEmpty$1, d4 as Svg, W as useToastContext, au as createLogger, e5 as Dropzone, a7 as useQueryClient, a2 as useLegalEntity, ao as ROOT_LE, X as useStateContext, a as useAnalyticsContext, e6 as useLegalEntities, aG as EntityType, a3 as getLegalEntityCountry } from "./EventEmitter-D4j8YPMw.js";
|
|
12
|
+
import { f as formatObject, E as Confirm, T as TileGroup, r as createDocumentRequest, u as useCreateLegalEntity, a as useUpdateLegalEntity, c as getPropsFromConfigurations, d as getRequiredForms, e as addValidityToForms, h as useFormComposer, w as documentApiUtils, G as useCapabilityProblems, N as getProblemsForEntity } from "./CreateIndividualComponent-BYcoaXRs.js";
|
|
11
13
|
import { useState, useMemo, useEffect, useCallback, useRef } from "preact/hooks";
|
|
12
|
-
import {
|
|
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-Cw8jncCj.js";
|
|
14
|
-
import { A as Avatar, v as validateDateNotInTheFuture, n as normalizedTaskStatusStore, h as hasDataChanged, F as FormWrapper } from "./core-BGMNir1l.js";
|
|
14
|
+
import { A as Avatar, v as validateDateNotInTheFuture, n as normalizedTaskStatusStore, h as hasDataChanged, F as FormWrapper } from "./core-C1rJ5Pjl.js";
|
|
15
15
|
import { signal } from "@preact/signals";
|
|
16
|
-
import { s as styles, T as TaskStatusIndicator } from "./SourceOfFunds.module-
|
|
16
|
+
import { s as styles, T as TaskStatusIndicator } from "./SourceOfFunds.module-3s3uanVF.js";
|
|
17
17
|
import { a as formatAmountWithCurrency } from "./formatCurrency-CMOSdJMB.js";
|
|
18
18
|
import { t as toCapitalized } from "./toCapitalized-Bq7laD0b.js";
|
|
19
19
|
import isURL from "validator/es/lib/isURL.js";
|
|
@@ -1645,6 +1645,7 @@ const SOFFinancierModal = (props) => {
|
|
|
1645
1645
|
/* @__PURE__ */ jsx(
|
|
1646
1646
|
Select,
|
|
1647
1647
|
{
|
|
1648
|
+
minimal: true,
|
|
1648
1649
|
name: "currency",
|
|
1649
1650
|
"aria-label": i18n.get("currency"),
|
|
1650
1651
|
isMulti: false,
|
|
@@ -2384,8 +2385,9 @@ const SourceOfFundsGettingStarted = ({
|
|
|
2384
2385
|
hasSourceOfFunds && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
2385
2386
|
/* @__PURE__ */ jsx(Typography, { className: styles.sourceOfFundsGettingStartedBody, children: i18n.get("addAllSourcesOfFundsBeingUsed") }),
|
|
2386
2387
|
errorObjects && errorObjects.map((errorObj, index) => {
|
|
2387
|
-
var _a2;
|
|
2388
|
+
var _a2, _b2;
|
|
2388
2389
|
const uniqueActions = getUniqueRemediationActions(errorObj);
|
|
2390
|
+
const errorItems = ((_a2 = errorObj.subErrors) == null ? void 0 : _a2.map((subError) => subError.message)) || [];
|
|
2389
2391
|
return /* @__PURE__ */ jsxs(
|
|
2390
2392
|
Alert,
|
|
2391
2393
|
{
|
|
@@ -2393,14 +2395,7 @@ const SourceOfFundsGettingStarted = ({
|
|
|
2393
2395
|
className: styles.sourceOfFundsGettingStartedError,
|
|
2394
2396
|
variant: "error",
|
|
2395
2397
|
children: [
|
|
2396
|
-
((
|
|
2397
|
-
List,
|
|
2398
|
-
{
|
|
2399
|
-
items: errorObj == null ? void 0 : errorObj.subErrors.map(
|
|
2400
|
-
(subError) => subError.message
|
|
2401
|
-
)
|
|
2402
|
-
}
|
|
2403
|
-
),
|
|
2398
|
+
((_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
2399
|
uniqueActions.length > 0 && /* @__PURE__ */ jsx("div", { className: styles.sourceOfFundsGettingStartedErrorActions, children: uniqueActions.filter((action) => action.code !== "1_519").map((action, i) => /* @__PURE__ */ jsx(
|
|
2405
2400
|
Button,
|
|
2406
2401
|
{
|
|
@@ -2466,6 +2461,7 @@ const SOFUploadModal = (props) => {
|
|
|
2466
2461
|
firstService
|
|
2467
2462
|
);
|
|
2468
2463
|
const [documentType, setDocumentType] = useState();
|
|
2464
|
+
const [selectedBusinessLineId, setSelectedBusinessLineId] = useState("");
|
|
2469
2465
|
const [documentLists, setDocumentLists] = useState([]);
|
|
2470
2466
|
const onRadioChange = (selectedId) => {
|
|
2471
2467
|
setSelectedService(selectedId);
|
|
@@ -2482,11 +2478,15 @@ const SOFUploadModal = (props) => {
|
|
|
2482
2478
|
}, [businessLines]);
|
|
2483
2479
|
const canUpload = useMemo(() => selectedService && documentType, [selectedService, documentType]);
|
|
2484
2480
|
useEffect(() => {
|
|
2485
|
-
var _a2, _b;
|
|
2481
|
+
var _a2, _b, _c;
|
|
2486
2482
|
if (selectedService) {
|
|
2487
2483
|
const selectedType = (_b = (_a2 = businessLines == null ? void 0 : businessLines.find(
|
|
2488
2484
|
(businessLine) => businessLine.service === selectedService
|
|
2489
2485
|
)) == null ? void 0 : _a2.sourceOfFunds) == null ? void 0 : _b.type;
|
|
2486
|
+
const getSelectedBusinessLineId = (_c = businessLines == null ? void 0 : businessLines.find(
|
|
2487
|
+
(businessLine) => businessLine.service === selectedService
|
|
2488
|
+
)) == null ? void 0 : _c.id;
|
|
2489
|
+
setSelectedBusinessLineId(getSelectedBusinessLineId ?? "");
|
|
2490
2490
|
if (selectedType) {
|
|
2491
2491
|
const lists = getDocumentLists(selectedType);
|
|
2492
2492
|
const items = lists.map((list) => ({
|
|
@@ -2496,7 +2496,7 @@ const SOFUploadModal = (props) => {
|
|
|
2496
2496
|
setDocumentLists(items);
|
|
2497
2497
|
}
|
|
2498
2498
|
}
|
|
2499
|
-
}, [selectedService]);
|
|
2499
|
+
}, [selectedService, setSelectedBusinessLineId, i18n, businessLines]);
|
|
2500
2500
|
const documentRequirements = useMemo(() => {
|
|
2501
2501
|
return documentType ? getDocumentRequirements[documentType] : [];
|
|
2502
2502
|
}, [documentType]);
|
|
@@ -2506,8 +2506,8 @@ const SOFUploadModal = (props) => {
|
|
|
2506
2506
|
return;
|
|
2507
2507
|
}
|
|
2508
2508
|
const formattedDocument = await createDocumentRequest({
|
|
2509
|
-
entityId:
|
|
2510
|
-
entityType: "
|
|
2509
|
+
entityId: selectedBusinessLineId,
|
|
2510
|
+
entityType: "businessLine",
|
|
2511
2511
|
documentType: "proofOfFundingOrWealthSource",
|
|
2512
2512
|
page1: files[0],
|
|
2513
2513
|
description: `$SERVICE_NAME:${selectedService}--TYPE_NAME:${documentType}`
|
|
@@ -2695,7 +2695,7 @@ const SourceOfFundsUpload = ({
|
|
|
2695
2695
|
] })
|
|
2696
2696
|
}
|
|
2697
2697
|
),
|
|
2698
|
-
/* @__PURE__ */ jsx("div", { className: styles.sourceOfFundsGettingStartedActions, children:
|
|
2698
|
+
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
2699
|
!!docToDelete && /* @__PURE__ */ jsx(
|
|
2700
2700
|
Confirm,
|
|
2701
2701
|
{
|
|
@@ -3030,6 +3030,24 @@ function SourceOfFundsDropin({
|
|
|
3030
3030
|
)
|
|
3031
3031
|
] }) });
|
|
3032
3032
|
}
|
|
3033
|
+
const SourceOfFundsPage = ({ onSubmit, handleHomeClick }) => {
|
|
3034
|
+
const { data: rootLe } = useLegalEntity(ROOT_LE);
|
|
3035
|
+
const capabilityProblems = useCapabilityProblems();
|
|
3036
|
+
if (!rootLe) {
|
|
3037
|
+
return /* @__PURE__ */ jsx(Loader, {});
|
|
3038
|
+
}
|
|
3039
|
+
const problems = capabilityProblems ? getProblemsForEntity(capabilityProblems, EntityType.LEGAL_ENTITY, rootLe.id) : void 0;
|
|
3040
|
+
return /* @__PURE__ */ jsx(
|
|
3041
|
+
SourceOfFundsDropin,
|
|
3042
|
+
{
|
|
3043
|
+
legalEntityResponse: rootLe,
|
|
3044
|
+
country: getLegalEntityCountry(rootLe),
|
|
3045
|
+
problems,
|
|
3046
|
+
onSubmit,
|
|
3047
|
+
handleHomeClick
|
|
3048
|
+
}
|
|
3049
|
+
);
|
|
3050
|
+
};
|
|
3033
3051
|
export {
|
|
3034
|
-
|
|
3052
|
+
SourceOfFundsPage
|
|
3035
3053
|
};
|
|
@@ -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] = "
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "c7201cad-8227-420a-b0c4-46c6aa521d5d", e._sentryDebugIdIdentifier = "sentry-dbid-c7201cad-8227-420a-b0c4-46c6aa521d5d");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsx, jsxs } from "preact/jsx-runtime";
|
|
11
11
|
import cx from "classnames";
|
|
12
|
-
import { a0 as Loader, a1 as Icon, u as useI18nContext,
|
|
12
|
+
import { a0 as Loader, a1 as Icon, u as useI18nContext, am as TaskStatus, db as KEYBOARD_KEYS } from "./EventEmitter-D4j8YPMw.js";
|
|
13
13
|
const tag = "adyen-kyc-tag";
|
|
14
14
|
const tagGrey = "adyen-kyc-tag-grey";
|
|
15
15
|
const tagBlue = "adyen-kyc-tag-blue";
|
|
@@ -2,18 +2,18 @@
|
|
|
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] = "d360ea7c-8392-4412-9194-31ce9a4013e2", e._sentryDebugIdIdentifier = "sentry-dbid-d360ea7c-8392-4412-9194-31ce9a4013e2");
|
|
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, cO as useFormContext,
|
|
13
|
-
import { a as useUpdateLegalEntity,
|
|
12
|
+
import { m as useApiContext, p as useQuery, q as httpGet, T as Typography, u as useI18nContext, cO as useFormContext, aq as Alert, F as Field, R as RadioGroup, $ as getFormProps, a1 as Icon, d5 as isEmpty, d4 as Svg, B as Button, ar as Card, as as StructuredList, at as IconButton, k as isEmpty$1, Q as useInvalidateRootLegalEntity, a as useAnalyticsContext, a2 as useLegalEntity, ao as ROOT_LE, au as createLogger, a0 as Loader } from "./EventEmitter-D4j8YPMw.js";
|
|
13
|
+
import { a as useUpdateLegalEntity, K as useMultiForm, d as getRequiredForms, e as addValidityToForms, h as useFormComposer, L as FormContextProvider, M as FormFlow } from "./CreateIndividualComponent-BYcoaXRs.js";
|
|
14
14
|
import { signal } from "@preact/signals";
|
|
15
|
-
import { s as styles$1, T as TaskStatusIndicator } from "./SourceOfFunds.module-
|
|
16
|
-
import { n as normalizedTaskStatusStore } from "./core-
|
|
15
|
+
import { s as styles$1, T as TaskStatusIndicator } from "./SourceOfFunds.module-3s3uanVF.js";
|
|
16
|
+
import { n as normalizedTaskStatusStore } from "./core-C1rJ5Pjl.js";
|
|
17
17
|
const getTaxClassification = async (legalEntityId, baseUrl) => {
|
|
18
18
|
return httpGet({
|
|
19
19
|
baseUrl,
|