@adyen/kyc-components 3.57.4 → 3.58.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/es/{B4MFY5CR-CbC6_vzo.js → B4MFY5CR-_iq130op.js} +1 -1
- package/dist/es/{HO4MOOFI-D-8lYv3J.js → HO4MOOFI-BrouQDMu.js} +2 -2
- package/dist/es/{HUY7CZI3-BHvO38iu.js → HUY7CZI3-07pJt4CB.js} +2 -2
- package/dist/es/{Introduction-DY17LuU0.js → Introduction-hqVjJq2m.js} +12 -1
- package/dist/es/adyen-kyc-components.es.js +1 -1
- package/dist/es/{bg-BG-TfrwAHSM.js → bg-BG-BBRoobbQ.js} +2 -0
- package/dist/es/{cs-CZ-ho_ywBEK.js → cs-CZ-ayQus68U.js} +2 -0
- package/dist/es/{css-DXUnKbNf.js → css-C92d5WcD.js} +1 -1
- package/dist/es/{da-DK-DZJF1FaY.js → da-DK-Ct4SzJso.js} +2 -0
- package/dist/es/{de-DE-B25fJNin.js → de-DE-DiCx4Je3.js} +2 -0
- package/dist/es/{el-GR-DTb_-Vz_.js → el-GR-D_xrKRCZ.js} +2 -0
- package/dist/es/{es-ES-DZ6sosjP.js → es-ES-DRwxjhQR.js} +2 -0
- package/dist/es/{et-EE-C_1JCxAI.js → et-EE-Bwi8YTvo.js} +2 -0
- package/dist/es/{fi-FI-CgnqRXRe.js → fi-FI-B7mjDfF2.js} +2 -0
- package/dist/es/{fr-FR-D8_u1qip.js → fr-FR-C3tWJfzX.js} +2 -0
- package/dist/es/{hr-HR-BwzK2PB9.js → hr-HR-C_zpTrJI.js} +2 -0
- package/dist/es/{hu-HU-BnsL9qEe.js → hu-HU-B1oY-zoH.js} +2 -0
- package/dist/es/{index-B_zVzlXg.js → index-DgiewAdj.js} +539 -281
- package/dist/es/{it-IT-BTWOlTci.js → it-IT-CgIredlK.js} +2 -0
- package/dist/es/{json-CsAYyJjw.js → json-DYilx73m.js} +1 -1
- package/dist/es/{lt-LT-DNGr3dH0.js → lt-LT-Csdyd99M.js} +2 -0
- package/dist/es/{lv-LV-Cfni8DJ9.js → lv-LV-XA7CIA01.js} +2 -0
- package/dist/es/{nl-NL-Btfceq49.js → nl-NL-B3Wrg5_z.js} +2 -0
- package/dist/es/{no-NO-B7LAbHK6.js → no-NO-BpduYOYo.js} +2 -0
- package/dist/es/{pl-PL-HJUk22yx.js → pl-PL-C3fwVuwv.js} +2 -0
- package/dist/es/{plaintext-gh8m94sP.js → plaintext-TI6YMNqC.js} +1 -1
- package/dist/es/{pt-PT-DLnvZGAx.js → pt-PT-BCsJrX3M.js} +2 -0
- package/dist/es/{ro-RO-BgPkmrFe.js → ro-RO-9UG_ovGp.js} +2 -0
- package/dist/es/{sk-SK-Ca7DYst6.js → sk-SK-OgAE6uGt.js} +2 -0
- package/dist/es/{sl-SI-e_4Ag1rs.js → sl-SI-C79LrLFg.js} +2 -0
- package/dist/es/{sv-SE-BCM3E7md.js → sv-SE-B1PE0QYc.js} +2 -0
- package/dist/es/{yaml-BkCDteM7.js → yaml-D4moATPr.js} +1 -1
- package/dist/style.css +56 -80
- package/dist/types/components/EFP/tasks/HighExposureDropin/HighExposureFinancialInformation.d.ts +1 -1
- package/dist/types/components/EFP/tasks/HighExposureDropin/types.d.ts +1 -0
- package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/DropinComposer.d.ts +1 -1
- package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/types.d.ts +1 -0
- package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.types.d.ts +1 -0
- package/dist/types/components/Individual/tasks/IndividualOnfidoDropin/IndividualOnfidoDropin.d.ts +1 -1
- package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
- package/dist/types/components/Shared/forms/ConstitutionalDocument/types.d.ts +2 -1
- package/dist/types/components/Trust/forms/Trust/types.d.ts +2 -0
- package/dist/types/components/Trust/forms/TrustRegistrationDetails/types.d.ts +3 -1
- package/dist/types/components/UnincorporatedPartnership/types/types.d.ts +2 -0
- package/dist/types/components/UnincorporatedPartnership/utils/unincorporatedParnershipUtil.d.ts +6 -0
- package/dist/types/components/index.d.ts +0 -2
- package/dist/types/components/ui/atoms/Link/Link.d.ts +2 -2
- package/dist/types/components/ui/atoms/Link/Link.types.d.ts +4 -10
- package/dist/types/components/ui/atoms/Remove/Remove.d.ts +0 -1
- package/dist/types/core/context/ExperimentContext/types.d.ts +2 -1
- package/dist/types/core/models/api/get-scenarios.d.ts +1 -0
- package/dist/types/core/models/api/legal-entity-association.d.ts +1 -1
- package/dist/types/core/models/api/legal-entity-type.d.ts +2 -1
- package/dist/types/core/models/api/legal-entity.d.ts +2 -0
- package/dist/types/core/models/api/unincorporated-partnership.d.ts +4 -0
- package/dist/types/core/types/AccountHolder.types.d.ts +1 -1
- package/dist/types/stores/globalStore/taskTypes.d.ts +7 -0
- package/dist/types/utils/entityStatusUtil.d.ts +1 -1
- package/dist/types/utils/mapping/componentApiMapping.d.ts +2 -0
- package/dist/types/utils/mapping/mapping.d.ts +2 -0
- package/package.json +1 -1
|
@@ -113,6 +113,7 @@ const defaultLocaleTranslations = {
|
|
|
113
113
|
annualTurnoverValue: "Annual turnover value",
|
|
114
114
|
aNomineeDirectorIsAppointed: "A nominee director is appointed to act on the interests of a third party.",
|
|
115
115
|
aNomineeShareholderHoldsShares: "A nominee shareholder holds shares on behalf of a third party.",
|
|
116
|
+
anUnincorporatedPartnership: "An Unincorporated Partnership",
|
|
116
117
|
anyInformationFromTheUploadedDocumentWillBeLost: "Any information from the uploaded document will be lost. You will need to manually add this data.",
|
|
117
118
|
anyInformationTakenFromThisDocument: "Any information taken from this document will be marked as unverified.",
|
|
118
119
|
apartmentSuite: "Apartment / Suite",
|
|
@@ -226,6 +227,7 @@ const defaultLocaleTranslations = {
|
|
|
226
227
|
businessStructure: "Business structure",
|
|
227
228
|
businessTrust: "Business trust",
|
|
228
229
|
businessTrusteeDetails: "Business trustee details",
|
|
230
|
+
businessTrustEntity: "Business Trust Entity",
|
|
229
231
|
byClickingSignIAcknowledgeAndAgree: "By clicking the Sign button, I acknowledge and agree to the following: ",
|
|
230
232
|
byClickingSubmitReview: "By clicking 'Submit review', you confirm that all of your information has been reviewed, and that all newly provided or already existing data is accurate and up-to-date.",
|
|
231
233
|
byProceedingToTheNextStepYouConfirmThatYouHaveReadUnderstandAndAcceptTheTerms: 'By proceeding to the next step, you confirm that you have read, understand, and accept the <a href="https://onfido.com/privacy/" target="_blank" rel="noopener noreferrer nofollow">Onfido Privacy Policy</a> and <a href="https://onfido.com/terms-of-service/" target="_blank" rel="noopener noreferrer nofollow">Onfido Terms of Service</a>.',
|
|
@@ -803,6 +805,7 @@ const defaultLocaleTranslations = {
|
|
|
803
805
|
gamblingProceedDetails: "Gambling proceed details",
|
|
804
806
|
gamblingWebsite: "Gambling website",
|
|
805
807
|
"GEMI-number": "GEMI number or ΑΡΙΘΜΟΣ Γ.Ε.ΜΗ (Γενικού Εμπορικού Μητρώου)",
|
|
808
|
+
generalPartnership: "General Partnership",
|
|
806
809
|
getSetUpInstantly: "Get set up instantly",
|
|
807
810
|
gettingStarted: "Get Started",
|
|
808
811
|
getYourBusinessVerifiedDetails: "Get your business's verified details instantly and skip uploading documents.",
|
|
@@ -1190,10 +1193,12 @@ const defaultLocaleTranslations = {
|
|
|
1190
1193
|
parentCompanyInformation: "Parent company information",
|
|
1191
1194
|
partitaIVA: "Partita IVA",
|
|
1192
1195
|
partnership: "Partnership",
|
|
1196
|
+
partnershipAgreement: "Partnership Agreement",
|
|
1193
1197
|
partnerShipAgreement: "Partnership agreement",
|
|
1194
1198
|
partnershipIncorporated: "Incorporated partnership",
|
|
1195
1199
|
partnershipIncorporatedDescription: "You and your partners have limited liability for business debts.",
|
|
1196
1200
|
partnershipOrAssociation: "Partnership or association",
|
|
1201
|
+
partnershipsUnincorporated: "Unincorporated partnerships",
|
|
1197
1202
|
partnershipUnincorporated: "Unincorporated partnership",
|
|
1198
1203
|
partnershipUnincorporatedDescription: "You or your partners are personally liable for business debts.",
|
|
1199
1204
|
passport: "Passport",
|
|
@@ -1313,6 +1318,7 @@ const defaultLocaleTranslations = {
|
|
|
1313
1318
|
registeredAddressHeaderDescription__PR: "Your address as it appears on your Department of State Registration.",
|
|
1314
1319
|
registeredAddressHeaderDescription__US: "Your address as it appears on your Secretary of State Registration.",
|
|
1315
1320
|
registeredAddressTrustHeaderDescription: "The address registered to your trust",
|
|
1321
|
+
registeredAddressUnincorporatedPartnershipHeaderDescription: "The address registered to your unincorporated partnership",
|
|
1316
1322
|
registeredBusinessAddress: "Registered business address",
|
|
1317
1323
|
registeredBusinessAddressDescription: "Your business's official address used for government and other legal purposes.",
|
|
1318
1324
|
registeredBusinessAddressDescription__withCountry: "Your business's official address used for government and other legal purposes in %{country}.",
|
|
@@ -1661,7 +1667,9 @@ const defaultLocaleTranslations = {
|
|
|
1661
1667
|
undefinedBeneficiaryDescription: "A class or group of beneficiaries that is not named, but defined in an ascertainable manner in the trust deed.",
|
|
1662
1668
|
underJudicialAdministration: "Yes, the company is under judicial administration, receivership or similar measures",
|
|
1663
1669
|
undoWithTimer: "Undo... %{secondsLeft}",
|
|
1664
|
-
unfortunatelyAnInstantProvider: "Unfortunately an instant provider isn
|
|
1670
|
+
unfortunatelyAnInstantProvider: "Unfortunately an instant provider isn’t available for this country.",
|
|
1671
|
+
unincorporatedDetails: "Unincorporated Partnership Details",
|
|
1672
|
+
unincorporatedPartnershipType: "Unincorporated Partnership Type",
|
|
1665
1673
|
uniqueIdentificationCode: "Unique identification code (ЕИК/UIC)",
|
|
1666
1674
|
unknown: "Unknown",
|
|
1667
1675
|
unlistedPublicUnitTrust: "Unlisted public unit trust",
|
|
@@ -1734,6 +1742,7 @@ const defaultLocaleTranslations = {
|
|
|
1734
1742
|
whatFinancialProductIsThisFor: "What financial product is this for?",
|
|
1735
1743
|
whatIsTheDifferenceBetweenTheseRoles: "What is the difference between these roles?",
|
|
1736
1744
|
whatTypeOfCompanyDoYouHave: "What type of company do you have?",
|
|
1745
|
+
whatTypeOfOPartnershipAreYou: "What type of unincorporated partnership are you?",
|
|
1737
1746
|
whatTypeOfTrusteeAreYou: "What type of trustee are you?",
|
|
1738
1747
|
whatTypeOfYourMembersEntity: "What's the type of your member's entity?",
|
|
1739
1748
|
whereCanIFindTheseNumbersOnMyDriversLicense: "Where can I find these numbers on my driver's license?",
|
|
@@ -1828,7 +1837,7 @@ const createLogger = (namespace) => {
|
|
|
1828
1837
|
};
|
|
1829
1838
|
let sdkToken;
|
|
1830
1839
|
let fetchSdkToken;
|
|
1831
|
-
const logger$
|
|
1840
|
+
const logger$U = createLogger("Session");
|
|
1832
1841
|
const setSdkToken = (token) => {
|
|
1833
1842
|
sdkToken = token;
|
|
1834
1843
|
};
|
|
@@ -1853,7 +1862,7 @@ const refreshSession = async () => {
|
|
|
1853
1862
|
setSdkToken(token);
|
|
1854
1863
|
isSessionRefreshed = true;
|
|
1855
1864
|
} catch (e) {
|
|
1856
|
-
logger$
|
|
1865
|
+
logger$U.error("Failed to fetch sdk token", e);
|
|
1857
1866
|
}
|
|
1858
1867
|
return isSessionRefreshed;
|
|
1859
1868
|
};
|
|
@@ -2092,7 +2101,7 @@ function useToastContext() {
|
|
|
2092
2101
|
}
|
|
2093
2102
|
return context;
|
|
2094
2103
|
}
|
|
2095
|
-
const logger$
|
|
2104
|
+
const logger$T = createLogger("useBankConfigurationHandler");
|
|
2096
2105
|
const useBankConfigurationHandlers = ({
|
|
2097
2106
|
handleGetBankVerificationVendors,
|
|
2098
2107
|
bankAccountCountry,
|
|
@@ -2110,7 +2119,7 @@ const useBankConfigurationHandlers = ({
|
|
|
2110
2119
|
const bankVerificationVendorsResponse = handleGetBankVerificationVendors ? await handleGetBankVerificationVendors(bankAccountCountry) : [];
|
|
2111
2120
|
setProvider(bankVerificationVendorsResponse == null ? void 0 : bankVerificationVendorsResponse[0]);
|
|
2112
2121
|
})().catch(() => {
|
|
2113
|
-
logger$
|
|
2122
|
+
logger$T.error();
|
|
2114
2123
|
setProvider(void 0);
|
|
2115
2124
|
}).finally(() => {
|
|
2116
2125
|
setLoadingStatus("success");
|
|
@@ -2337,12 +2346,12 @@ const unscalableIconNames = [
|
|
|
2337
2346
|
"upload",
|
|
2338
2347
|
"warning"
|
|
2339
2348
|
];
|
|
2340
|
-
const logger$
|
|
2349
|
+
const logger$S = createLogger("Icon");
|
|
2341
2350
|
const Svg = ({ className: className2, name, testId, title, type }) => {
|
|
2342
2351
|
const LazyLoadedSvg = svgs[name];
|
|
2343
2352
|
const viewBox = unscalableIconNames.includes(name) ? "0 0 16 16" : void 0;
|
|
2344
2353
|
if (!LazyLoadedSvg) {
|
|
2345
|
-
logger$
|
|
2354
|
+
logger$S.error(`No such svg: "${name}"`);
|
|
2346
2355
|
return null;
|
|
2347
2356
|
}
|
|
2348
2357
|
return /* @__PURE__ */ jsx("span", { className: cx(`adyen-kyc-${type}`, className2), "data-testid": testId, children: /* @__PURE__ */ jsx(Suspense, { fallback: null, children: viewBox ? /* @__PURE__ */ jsx(LazyLoadedSvg, { "aria-hidden": type === "icon", viewBox, title: title || name }) : /* @__PURE__ */ jsx(LazyLoadedSvg, { "aria-hidden": type === "icon", title: title || name }) }) });
|
|
@@ -2356,7 +2365,7 @@ const loaderSmall = "adyen-kyc-loader-small";
|
|
|
2356
2365
|
const loaderMedium = "adyen-kyc-loader-medium";
|
|
2357
2366
|
const loaderXsmall = "adyen-kyc-loader-xsmall";
|
|
2358
2367
|
const loaderDot = "adyen-kyc-loader-dot";
|
|
2359
|
-
const styles$
|
|
2368
|
+
const styles$y = {
|
|
2360
2369
|
loaderWrapper,
|
|
2361
2370
|
loaderWrapperInline,
|
|
2362
2371
|
loader,
|
|
@@ -2367,16 +2376,16 @@ const styles$x = {
|
|
|
2367
2376
|
loaderDot
|
|
2368
2377
|
};
|
|
2369
2378
|
const sizeMap = {
|
|
2370
|
-
xsmall: styles$
|
|
2371
|
-
small: styles$
|
|
2372
|
-
medium: styles$
|
|
2373
|
-
large: styles$
|
|
2379
|
+
xsmall: styles$y.loaderXsmall,
|
|
2380
|
+
small: styles$y.loaderSmall,
|
|
2381
|
+
medium: styles$y.loaderMedium,
|
|
2382
|
+
large: styles$y.loaderLarge
|
|
2374
2383
|
};
|
|
2375
|
-
const Loader = ({ inline = false, size = "large", dot = false }) => /* @__PURE__ */ jsx("div", { className: cx(styles$
|
|
2384
|
+
const Loader = ({ inline = false, size = "large", dot = false }) => /* @__PURE__ */ jsx("div", { className: cx(styles$y.loaderWrapper, { [styles$y.loaderWrapperInline]: inline }), children: /* @__PURE__ */ jsx(
|
|
2376
2385
|
"div",
|
|
2377
2386
|
{
|
|
2378
2387
|
role: "progressbar",
|
|
2379
|
-
className: cx(styles$
|
|
2388
|
+
className: cx(styles$y.loader, sizeMap[size], { [styles$y.loaderDot]: dot })
|
|
2380
2389
|
}
|
|
2381
2390
|
) });
|
|
2382
2391
|
const button = "adyen-kyc-button";
|
|
@@ -2392,7 +2401,7 @@ const buttonVariantCritical = "adyen-kyc-button-variant-critical";
|
|
|
2392
2401
|
const buttonVariantLink = "adyen-kyc-button-variant-link";
|
|
2393
2402
|
const buttonVariantSurface = "adyen-kyc-button-variant-surface";
|
|
2394
2403
|
const buttonSpinner = "adyen-kyc-button-spinner";
|
|
2395
|
-
const styles$
|
|
2404
|
+
const styles$x = {
|
|
2396
2405
|
button,
|
|
2397
2406
|
buttonFullWidth,
|
|
2398
2407
|
buttonLabel,
|
|
@@ -2421,17 +2430,17 @@ const ButtonBase = ({
|
|
|
2421
2430
|
}) => {
|
|
2422
2431
|
const isDisabled = disabled || loading;
|
|
2423
2432
|
const buttonVariantStyle = {
|
|
2424
|
-
primary: styles$
|
|
2425
|
-
secondary: styles$
|
|
2426
|
-
tertiary: styles$
|
|
2427
|
-
critical: styles$
|
|
2428
|
-
link: styles$
|
|
2429
|
-
surface: styles$
|
|
2430
|
-
};
|
|
2431
|
-
const rootClassName = cx(styles$
|
|
2432
|
-
[styles$
|
|
2433
|
-
[styles$
|
|
2434
|
-
[styles$
|
|
2433
|
+
primary: styles$x.buttonVariantPrimary,
|
|
2434
|
+
secondary: styles$x.buttonVariantSecondary,
|
|
2435
|
+
tertiary: styles$x.buttonVariantTertiary,
|
|
2436
|
+
critical: styles$x.buttonVariantCritical,
|
|
2437
|
+
link: styles$x.buttonVariantLink,
|
|
2438
|
+
surface: styles$x.buttonVariantSurface
|
|
2439
|
+
};
|
|
2440
|
+
const rootClassName = cx(styles$x.button, buttonVariantStyle[variant], {
|
|
2441
|
+
[styles$x.buttonShapeRectangle]: circle === false,
|
|
2442
|
+
[styles$x.buttonShapeCircle]: circle === true,
|
|
2443
|
+
[styles$x.buttonFullWidth]: fullWidth
|
|
2435
2444
|
});
|
|
2436
2445
|
const handleOnClick = (event) => {
|
|
2437
2446
|
event.preventDefault();
|
|
@@ -2449,7 +2458,7 @@ const ButtonBase = ({
|
|
|
2449
2458
|
onClick: handleOnClick,
|
|
2450
2459
|
type,
|
|
2451
2460
|
children: [
|
|
2452
|
-
loading && /* @__PURE__ */ jsx("div", { className: styles$
|
|
2461
|
+
loading && /* @__PURE__ */ jsx("div", { className: styles$x.buttonSpinner, children: /* @__PURE__ */ jsx(Loader, { size: "small" }) }),
|
|
2453
2462
|
children2
|
|
2454
2463
|
]
|
|
2455
2464
|
}
|
|
@@ -2476,8 +2485,8 @@ const Button = ({
|
|
|
2476
2485
|
type,
|
|
2477
2486
|
variant
|
|
2478
2487
|
};
|
|
2479
|
-
const labelClassname = cx(styles$
|
|
2480
|
-
[styles$
|
|
2488
|
+
const labelClassname = cx(styles$x.buttonLabel, {
|
|
2489
|
+
[styles$x.buttonLabelPadding]: variant !== "link"
|
|
2481
2490
|
});
|
|
2482
2491
|
return /* @__PURE__ */ jsx(ButtonBase, { ...buttonProps, children: /* @__PURE__ */ jsxs("div", { className: labelClassname, children: [
|
|
2483
2492
|
icon && /* @__PURE__ */ jsx(Icon, { name: icon }),
|
|
@@ -2503,13 +2512,13 @@ const IconButton = ({
|
|
|
2503
2512
|
testId,
|
|
2504
2513
|
variant
|
|
2505
2514
|
};
|
|
2506
|
-
return /* @__PURE__ */ jsx(ButtonBase, { ...buttonProps, children: /* @__PURE__ */ jsx("div", { className: styles$
|
|
2515
|
+
return /* @__PURE__ */ jsx(ButtonBase, { ...buttonProps, children: /* @__PURE__ */ jsx("div", { className: styles$x.buttonLabel, children: /* @__PURE__ */ jsx(Icon, { name: icon }) }) });
|
|
2507
2516
|
};
|
|
2508
2517
|
const divider = "adyen-kyc-divider";
|
|
2509
|
-
const styles$
|
|
2518
|
+
const styles$w = {
|
|
2510
2519
|
divider
|
|
2511
2520
|
};
|
|
2512
|
-
const Divider = () => /* @__PURE__ */ jsx("hr", { className: styles$
|
|
2521
|
+
const Divider = () => /* @__PURE__ */ jsx("hr", { className: styles$w.divider });
|
|
2513
2522
|
function FormHeader({
|
|
2514
2523
|
heading,
|
|
2515
2524
|
description,
|
|
@@ -2559,7 +2568,7 @@ const Typography = ({
|
|
|
2559
2568
|
const skeleton = "adyen-kyc-skeleton";
|
|
2560
2569
|
const skeletonCircle = "adyen-kyc-skeleton-circle";
|
|
2561
2570
|
const skeletonText = "adyen-kyc-skeleton-text";
|
|
2562
|
-
const styles$
|
|
2571
|
+
const styles$v = {
|
|
2563
2572
|
skeleton,
|
|
2564
2573
|
skeletonCircle,
|
|
2565
2574
|
skeletonText
|
|
@@ -2570,9 +2579,9 @@ const Skeleton = ({
|
|
|
2570
2579
|
height = "1em",
|
|
2571
2580
|
width
|
|
2572
2581
|
}) => {
|
|
2573
|
-
const classNames = cx(styles$
|
|
2574
|
-
[styles$
|
|
2575
|
-
[styles$
|
|
2582
|
+
const classNames = cx(styles$v.skeleton, {
|
|
2583
|
+
[styles$v.skeletonCircle]: circle,
|
|
2584
|
+
[styles$v.skeletonText]: text
|
|
2576
2585
|
});
|
|
2577
2586
|
return /* @__PURE__ */ jsx("div", { className: classNames, style: { height, width } });
|
|
2578
2587
|
};
|
|
@@ -2588,7 +2597,7 @@ const accordionContent = "adyen-kyc-accordion-content";
|
|
|
2588
2597
|
const accordionWithIcon = "adyen-kyc-accordion-with-icon";
|
|
2589
2598
|
const accordionArrow = "adyen-kyc-accordion-arrow";
|
|
2590
2599
|
const accordionArrowRight = "adyen-kyc-accordion-arrow-right";
|
|
2591
|
-
const styles$
|
|
2600
|
+
const styles$u = {
|
|
2592
2601
|
accordion,
|
|
2593
2602
|
accordionSummary,
|
|
2594
2603
|
accordionBasic,
|
|
@@ -2616,34 +2625,34 @@ const Accordion = ({
|
|
|
2616
2625
|
onToggle(e.newState === "closed" ? "close" : "open");
|
|
2617
2626
|
};
|
|
2618
2627
|
const variantMap2 = {
|
|
2619
|
-
basic: styles$
|
|
2620
|
-
info: styles$
|
|
2621
|
-
error: styles$
|
|
2622
|
-
warning: styles$
|
|
2623
|
-
success: styles$
|
|
2628
|
+
basic: styles$u.accordionBasic,
|
|
2629
|
+
info: styles$u.accordionInfo,
|
|
2630
|
+
error: styles$u.accordionError,
|
|
2631
|
+
warning: styles$u.accordionWarning,
|
|
2632
|
+
success: styles$u.accordionSuccess
|
|
2624
2633
|
};
|
|
2625
2634
|
return /* @__PURE__ */ jsxs(
|
|
2626
2635
|
"details",
|
|
2627
2636
|
{
|
|
2628
2637
|
onToggle: handleToggle,
|
|
2629
|
-
className: cx(className2, styles$
|
|
2630
|
-
[styles$
|
|
2631
|
-
[styles$
|
|
2638
|
+
className: cx(className2, styles$u.accordion, variantMap2[variant], {
|
|
2639
|
+
[styles$u.accordionWithIcon]: expandOnLeft,
|
|
2640
|
+
[styles$u.accordionNarrow]: narrow
|
|
2632
2641
|
}),
|
|
2633
2642
|
children: [
|
|
2634
|
-
/* @__PURE__ */ jsxs("summary", { className: styles$
|
|
2635
|
-
expandOnLeft && /* @__PURE__ */ jsx(Icon, { name: "chevron-down", className: styles$
|
|
2643
|
+
/* @__PURE__ */ jsxs("summary", { className: styles$u.accordionSummary, children: [
|
|
2644
|
+
expandOnLeft && /* @__PURE__ */ jsx(Icon, { name: "chevron-down", className: styles$u.accordionArrow }),
|
|
2636
2645
|
/* @__PURE__ */ jsx(Slot, { name: "icon" }),
|
|
2637
2646
|
/* @__PURE__ */ jsx(Typography, { el: "h3", variant: "body-strongest", children: /* @__PURE__ */ jsx(Slot, { name: "title", children: /* @__PURE__ */ jsx(Skeleton, {}) }) }),
|
|
2638
2647
|
!expandOnLeft && /* @__PURE__ */ jsx(
|
|
2639
2648
|
Icon,
|
|
2640
2649
|
{
|
|
2641
2650
|
name: "chevron-down",
|
|
2642
|
-
className: cx(styles$
|
|
2651
|
+
className: cx(styles$u.accordionArrow, styles$u.accordionArrowRight)
|
|
2643
2652
|
}
|
|
2644
2653
|
)
|
|
2645
2654
|
] }),
|
|
2646
|
-
/* @__PURE__ */ jsx("div", { className: styles$
|
|
2655
|
+
/* @__PURE__ */ jsx("div", { className: styles$u.accordionContent, children: /* @__PURE__ */ jsx(Slot, { name: "content", children: /* @__PURE__ */ jsx(Skeleton, {}) }) })
|
|
2647
2656
|
]
|
|
2648
2657
|
}
|
|
2649
2658
|
);
|
|
@@ -2664,7 +2673,7 @@ const alertIconError = "adyen-kyc-alert-icon-error";
|
|
|
2664
2673
|
const alertIconWarning = "adyen-kyc-alert-icon-warning";
|
|
2665
2674
|
const alertIconSuccess = "adyen-kyc-alert-icon-success";
|
|
2666
2675
|
const alertTitle = "adyen-kyc-alert-title";
|
|
2667
|
-
const styles$
|
|
2676
|
+
const styles$t = {
|
|
2668
2677
|
alert,
|
|
2669
2678
|
alertWithoutIcon,
|
|
2670
2679
|
alertExplanation,
|
|
@@ -2683,19 +2692,19 @@ const styles$s = {
|
|
|
2683
2692
|
alertTitle
|
|
2684
2693
|
};
|
|
2685
2694
|
const variantMap$1 = {
|
|
2686
|
-
basic: styles$
|
|
2687
|
-
info: styles$
|
|
2688
|
-
error: styles$
|
|
2689
|
-
warning: styles$
|
|
2690
|
-
success: styles$
|
|
2695
|
+
basic: styles$t.alertBasic,
|
|
2696
|
+
info: styles$t.alertInfo,
|
|
2697
|
+
error: styles$t.alertError,
|
|
2698
|
+
warning: styles$t.alertWarning,
|
|
2699
|
+
success: styles$t.alertSuccess
|
|
2691
2700
|
};
|
|
2692
2701
|
const iconVariantMap = {
|
|
2693
2702
|
basic: "",
|
|
2694
2703
|
// does not exist
|
|
2695
|
-
info: styles$
|
|
2696
|
-
error: styles$
|
|
2697
|
-
warning: styles$
|
|
2698
|
-
success: styles$
|
|
2704
|
+
info: styles$t.alertIconInfo,
|
|
2705
|
+
error: styles$t.alertIconError,
|
|
2706
|
+
warning: styles$t.alertIconWarning,
|
|
2707
|
+
success: styles$t.alertIconSuccess
|
|
2699
2708
|
};
|
|
2700
2709
|
const Alert = ({
|
|
2701
2710
|
title,
|
|
@@ -2721,7 +2730,7 @@ const Alert = ({
|
|
|
2721
2730
|
if (isValidElement(icon)) {
|
|
2722
2731
|
return icon;
|
|
2723
2732
|
}
|
|
2724
|
-
return /* @__PURE__ */ jsx("span", { className: cx(styles$
|
|
2733
|
+
return /* @__PURE__ */ jsx("span", { className: cx(styles$t.alertIcon, iconVariantMap[variant]), children: /* @__PURE__ */ jsx(AlertIcon, { variant }) });
|
|
2725
2734
|
};
|
|
2726
2735
|
const renderedIcon = renderIcon();
|
|
2727
2736
|
if (type === "collapsible") {
|
|
@@ -2730,7 +2739,7 @@ const Alert = ({
|
|
|
2730
2739
|
/* @__PURE__ */ jsx("template", { slot: "icon", children: renderedIcon }),
|
|
2731
2740
|
/* @__PURE__ */ jsxs("template", { slot: "content", children: [
|
|
2732
2741
|
children2,
|
|
2733
|
-
!!actions && /* @__PURE__ */ jsx("div", { className: styles$
|
|
2742
|
+
!!actions && /* @__PURE__ */ jsx("div", { className: styles$t.alertActions, children: actions })
|
|
2734
2743
|
] })
|
|
2735
2744
|
] });
|
|
2736
2745
|
}
|
|
@@ -2738,18 +2747,18 @@ const Alert = ({
|
|
|
2738
2747
|
return /* @__PURE__ */ jsxs(
|
|
2739
2748
|
"div",
|
|
2740
2749
|
{
|
|
2741
|
-
className: cx(styles$
|
|
2742
|
-
[styles$
|
|
2750
|
+
className: cx(styles$t.alert, className2, variantMap$1[variant], {
|
|
2751
|
+
[styles$t.alertWithoutIcon]: !renderedIcon
|
|
2743
2752
|
}),
|
|
2744
2753
|
role: "alert",
|
|
2745
2754
|
"data-testid": testId,
|
|
2746
2755
|
children: [
|
|
2747
|
-
/* @__PURE__ */ jsxs("div", { className: styles$
|
|
2756
|
+
/* @__PURE__ */ jsxs("div", { className: styles$t.alertHeader, children: [
|
|
2748
2757
|
renderedIcon,
|
|
2749
|
-
title && /* @__PURE__ */ jsx(Typography, { el: "h3", variant: "body-strongest", className: styles$
|
|
2750
|
-
!!actions && /* @__PURE__ */ jsx("div", { className: styles$
|
|
2758
|
+
title && /* @__PURE__ */ jsx(Typography, { el: "h3", variant: "body-strongest", className: styles$t.alertTitle, children: title }),
|
|
2759
|
+
!!actions && /* @__PURE__ */ jsx("div", { className: styles$t.alertActions, children: actions })
|
|
2751
2760
|
] }),
|
|
2752
|
-
!!children2 && /* @__PURE__ */ jsx("div", { className: styles$
|
|
2761
|
+
!!children2 && /* @__PURE__ */ jsx("div", { className: styles$t.alertExplanation, children: children2 })
|
|
2753
2762
|
]
|
|
2754
2763
|
}
|
|
2755
2764
|
);
|
|
@@ -2757,19 +2766,19 @@ const Alert = ({
|
|
|
2757
2766
|
return /* @__PURE__ */ jsxs(
|
|
2758
2767
|
"div",
|
|
2759
2768
|
{
|
|
2760
|
-
className: cx(styles$
|
|
2761
|
-
[styles$
|
|
2769
|
+
className: cx(styles$t.alert, className2, variantMap$1[variant], {
|
|
2770
|
+
[styles$t.alertWithoutIcon]: !renderedIcon
|
|
2762
2771
|
}),
|
|
2763
2772
|
role: "alert",
|
|
2764
2773
|
"data-testid": testId,
|
|
2765
2774
|
children: [
|
|
2766
|
-
/* @__PURE__ */ jsxs("div", { className: styles$
|
|
2775
|
+
/* @__PURE__ */ jsxs("div", { className: styles$t.alertHeader, children: [
|
|
2767
2776
|
renderedIcon,
|
|
2768
|
-
title && /* @__PURE__ */ jsx(Typography, { el: "h3", variant: "body-strongest", className: styles$
|
|
2777
|
+
title && /* @__PURE__ */ jsx(Typography, { el: "h3", variant: "body-strongest", className: styles$t.alertTitle, children: title }),
|
|
2769
2778
|
type === "dismissible" && /* @__PURE__ */ jsx(Button, { variant: "tertiary", icon: "cross", onClick: closeAlert, children: i18n.get("close") })
|
|
2770
2779
|
] }),
|
|
2771
|
-
!!children2 && /* @__PURE__ */ jsx("div", { className: styles$
|
|
2772
|
-
!!actions && /* @__PURE__ */ jsx("div", { className: styles$
|
|
2780
|
+
!!children2 && /* @__PURE__ */ jsx("div", { className: styles$t.alertExplanation, children: children2 }),
|
|
2781
|
+
!!actions && /* @__PURE__ */ jsx("div", { className: styles$t.alertActions, children: actions })
|
|
2773
2782
|
]
|
|
2774
2783
|
}
|
|
2775
2784
|
);
|
|
@@ -2788,45 +2797,6 @@ const AlertIcon = ({ variant }) => {
|
|
|
2788
2797
|
return /* @__PURE__ */ jsx(Icon, { name: "info-circle" });
|
|
2789
2798
|
}
|
|
2790
2799
|
};
|
|
2791
|
-
const logger$S = createLogger("Link");
|
|
2792
|
-
const isValidLink = (href) => {
|
|
2793
|
-
if (href === "#") {
|
|
2794
|
-
logger$S.error(
|
|
2795
|
-
'Links must include a valid href. If your href is "#", consider using a Button instead'
|
|
2796
|
-
);
|
|
2797
|
-
return false;
|
|
2798
|
-
}
|
|
2799
|
-
return true;
|
|
2800
|
-
};
|
|
2801
|
-
const Link = ({
|
|
2802
|
-
className: className2,
|
|
2803
|
-
children: children2,
|
|
2804
|
-
href,
|
|
2805
|
-
external,
|
|
2806
|
-
icon,
|
|
2807
|
-
onClick,
|
|
2808
|
-
iconPosition = "left"
|
|
2809
|
-
}) => {
|
|
2810
|
-
if (!isValidLink(href)) return null;
|
|
2811
|
-
const target = external ? "_blank" : "_self";
|
|
2812
|
-
const rel = external ? "external noopener noreferrer" : void 0;
|
|
2813
|
-
const showIcon = !!icon || external;
|
|
2814
|
-
const iconLeft = showIcon && iconPosition === "left" && !external;
|
|
2815
|
-
const classNames = cx("adyen-kyc-link", className2, {
|
|
2816
|
-
"adyen-kyc-link--with-icon": showIcon,
|
|
2817
|
-
"adyen-kyc-link--icon-left": iconLeft
|
|
2818
|
-
});
|
|
2819
|
-
return /* @__PURE__ */ jsxs("a", { href, className: classNames, target, rel, onClick, children: [
|
|
2820
|
-
/* @__PURE__ */ jsx("span", { className: "adyen-kyc-link__text adyen-kyc-link--inherit", children: children2 }),
|
|
2821
|
-
showIcon && /* @__PURE__ */ jsx(
|
|
2822
|
-
Icon,
|
|
2823
|
-
{
|
|
2824
|
-
name: external ? "external-link" : icon,
|
|
2825
|
-
className: "adyen-kyc-link__icon"
|
|
2826
|
-
}
|
|
2827
|
-
)
|
|
2828
|
-
] });
|
|
2829
|
-
};
|
|
2830
2800
|
const FormRouterContext = createContext$1(null);
|
|
2831
2801
|
function useFormRouterContext() {
|
|
2832
2802
|
const context = useContext$1(FormRouterContext);
|
|
@@ -2838,13 +2808,12 @@ function useFormRouterContext() {
|
|
|
2838
2808
|
const NavigateToFieldLink = ({ fieldName, label }) => {
|
|
2839
2809
|
const { goToFormByFieldName } = useFormRouterContext();
|
|
2840
2810
|
return /* @__PURE__ */ jsx(
|
|
2841
|
-
|
|
2811
|
+
Button,
|
|
2842
2812
|
{
|
|
2843
|
-
onClick: (
|
|
2844
|
-
e.preventDefault();
|
|
2813
|
+
onClick: () => {
|
|
2845
2814
|
goToFormByFieldName(fieldName);
|
|
2846
2815
|
},
|
|
2847
|
-
|
|
2816
|
+
variant: "link",
|
|
2848
2817
|
children: label
|
|
2849
2818
|
}
|
|
2850
2819
|
);
|
|
@@ -2891,7 +2860,7 @@ const list = "adyen-kyc-list";
|
|
|
2891
2860
|
const listNoMarkers = "adyen-kyc-list-no-markers";
|
|
2892
2861
|
const listItem = "adyen-kyc-list-item";
|
|
2893
2862
|
const listOrdered = "adyen-kyc-list-ordered";
|
|
2894
|
-
const styles$
|
|
2863
|
+
const styles$s = {
|
|
2895
2864
|
list,
|
|
2896
2865
|
listNoMarkers,
|
|
2897
2866
|
listItem,
|
|
@@ -2899,12 +2868,12 @@ const styles$r = {
|
|
|
2899
2868
|
};
|
|
2900
2869
|
function List({ className: className2, ordered, noMarkers, items }) {
|
|
2901
2870
|
const classNames = cx([
|
|
2902
|
-
styles$
|
|
2903
|
-
ordered && styles$
|
|
2904
|
-
noMarkers && styles$
|
|
2871
|
+
styles$s.list,
|
|
2872
|
+
ordered && styles$s.listOrdered,
|
|
2873
|
+
noMarkers && styles$s.listNoMarkers,
|
|
2905
2874
|
className2
|
|
2906
2875
|
]);
|
|
2907
|
-
return /* @__PURE__ */ jsx("ul", { className: classNames, children: items.map((item, idx) => /* @__PURE__ */ jsx("li", { className: styles$
|
|
2876
|
+
return /* @__PURE__ */ jsx("ul", { className: classNames, children: items.map((item, idx) => /* @__PURE__ */ jsx("li", { className: styles$s.listItem, children: item }, idx)) });
|
|
2908
2877
|
}
|
|
2909
2878
|
var DocumentType = /* @__PURE__ */ ((DocumentType2) => {
|
|
2910
2879
|
DocumentType2["BANK_STATEMENT"] = "bankStatement";
|
|
@@ -3206,6 +3175,7 @@ var LegalEntityType = /* @__PURE__ */ ((LegalEntityType2) => {
|
|
|
3206
3175
|
LegalEntityType2["ORGANIZATION"] = "organization";
|
|
3207
3176
|
LegalEntityType2["TRUST"] = "trust";
|
|
3208
3177
|
LegalEntityType2["SOLE_PROPRIETORSHIP"] = "soleProprietorship";
|
|
3178
|
+
LegalEntityType2["UNINCORPORATED_PARTNERSHIP"] = "unincorporatedPartnership";
|
|
3209
3179
|
return LegalEntityType2;
|
|
3210
3180
|
})(LegalEntityType || {});
|
|
3211
3181
|
var TransferInstrumentType = /* @__PURE__ */ ((TransferInstrumentType2) => {
|
|
@@ -5936,6 +5906,13 @@ var TaskTypes = /* @__PURE__ */ ((TaskTypes2) => {
|
|
|
5936
5906
|
TaskTypes2["TRUST_MEMBER_COMPANY"] = "TRUST_MEMBER_COMPANY";
|
|
5937
5907
|
TaskTypes2["TRUST_MEMBER_ROLE_AND_TYPE"] = "TRUST_MEMBER_ROLE_AND_TYPE";
|
|
5938
5908
|
TaskTypes2["TRUST_MEMBER_COMPANY_OWNER"] = "TRUST_MEMBER_COMPANY_OWNER";
|
|
5909
|
+
TaskTypes2["UNINCORPORATED_PARTNERSHIP"] = "UNINCORPORATED_PARTNERSHIP";
|
|
5910
|
+
TaskTypes2["UNINCORPORATED_PARTNERSHIP_MEMBER"] = "UNINCORPORATED_PARTNERSHIP_MEMBER";
|
|
5911
|
+
TaskTypes2["UNINCORPORATED_PARTNERSHIP_MEMBER_OVERVIEW"] = "UNINCORPORATED_PARTNERSHIP_MEMBER_OVERVIEW";
|
|
5912
|
+
TaskTypes2["UNINCORPORATED_PARTNERSHIP_MEMBER_INDIVIDUAL"] = "UNINCORPORATED_PARTNERSHIP_MEMBER_INDIVIDUAL";
|
|
5913
|
+
TaskTypes2["UNINCORPORATED_PARTNERSHIP_MEMBER_COMPANY"] = "UNINCORPORATED_PARTNERSHIP_MEMBER_COMPANY";
|
|
5914
|
+
TaskTypes2["UNINCORPORATED_PARTNERSHIP_MEMBER_ROLE_AND_TYPE"] = "UNINCORPORATED_PARTNERSHIP_MEMBER_ROLE_AND_TYPE";
|
|
5915
|
+
TaskTypes2["UNINCORPORATED_PARTNERSHIP_MEMBER_COMPANY_OWNER"] = "UNINCORPORATED_PARTNERSHIP_MEMBER_COMPANY_OWNER";
|
|
5939
5916
|
TaskTypes2["SOLE_PROPRIETOR_COMPANY"] = "SOLE_PROPRIETOR_COMPANY";
|
|
5940
5917
|
TaskTypes2["CAPABILITY_REJECTED"] = "CAPABILITY_REJECTED";
|
|
5941
5918
|
TaskTypes2["SINGPASS_SELECTION"] = "SINGPASS_SELECTION";
|
|
@@ -9909,6 +9886,29 @@ const getCountrySpecificTrustTypeOptions = (country) => {
|
|
|
9909
9886
|
return countrySpecificTrustTypeOption;
|
|
9910
9887
|
});
|
|
9911
9888
|
};
|
|
9889
|
+
const isPartOfUnincorporatedPartnership = (legalEntity) => {
|
|
9890
|
+
var _a2;
|
|
9891
|
+
return (_a2 = legalEntity == null ? void 0 : legalEntity.entityAssociations) == null ? void 0 : _a2.some(
|
|
9892
|
+
(ea) => ea.entityType === LegalEntityType.UNINCORPORATED_PARTNERSHIP && ea.associatorId === legalEntity.id
|
|
9893
|
+
);
|
|
9894
|
+
};
|
|
9895
|
+
const getOwnUnincorporatedPartnershipLegalEntityId = (legalEntity) => {
|
|
9896
|
+
var _a2, _b2;
|
|
9897
|
+
return (_b2 = (_a2 = legalEntity == null ? void 0 : legalEntity.entityAssociations) == null ? void 0 : _a2.find(
|
|
9898
|
+
(ea) => ea.entityType === LegalEntityType.UNINCORPORATED_PARTNERSHIP && ea.associatorId === legalEntity.id
|
|
9899
|
+
)) == null ? void 0 : _b2.legalEntityId;
|
|
9900
|
+
};
|
|
9901
|
+
const getOwnUnincorporatedPartnershipLegalEntityIdAsArray = (legalEntity) => {
|
|
9902
|
+
const legalEntityId = getOwnUnincorporatedPartnershipLegalEntityId(legalEntity);
|
|
9903
|
+
return legalEntityId ? [legalEntityId] : [];
|
|
9904
|
+
};
|
|
9905
|
+
const getOwnUnincorporatedPartnershipProblems = (legalEntity, capabilityProblems) => {
|
|
9906
|
+
var _a2;
|
|
9907
|
+
const legalEntityId = getOwnUnincorporatedPartnershipLegalEntityId(legalEntity);
|
|
9908
|
+
if (legalEntityId) {
|
|
9909
|
+
return (_a2 = capabilityProblems == null ? void 0 : capabilityProblems.LegalEntity) == null ? void 0 : _a2[legalEntityId];
|
|
9910
|
+
}
|
|
9911
|
+
};
|
|
9912
9912
|
var VerificationStatus = /* @__PURE__ */ ((VerificationStatus2) => {
|
|
9913
9913
|
VerificationStatus2["VALID"] = "valid";
|
|
9914
9914
|
VerificationStatus2["PENDING"] = "pending";
|
|
@@ -10907,6 +10907,27 @@ const trustBaseMapping = {
|
|
|
10907
10907
|
"trustRegistrationAddress.operationalAddress.address": "trust.principalPlaceOfBusiness.street",
|
|
10908
10908
|
"trustRegistrationAddress.operationalAddress.otherAddressInformation": "trust.principalPlaceOfBusiness.street2"
|
|
10909
10909
|
};
|
|
10910
|
+
const unincorporatedPartnershipBaseMapping = {
|
|
10911
|
+
"trustRegistrationDetails.trustType": "unincorporatedPartnership.type",
|
|
10912
|
+
"trustRegistrationDetails.legalName": "unincorporatedPartnership.name",
|
|
10913
|
+
"trustRegistrationDetails.doingBusinessAs": "unincorporatedPartnership.doingBusinessAs",
|
|
10914
|
+
"trustRegistrationDetails.hasDoingBusinessAs": "unincorporatedPartnership.doingBusinessAsAbsent",
|
|
10915
|
+
"trustRegistrationDetails.country": "unincorporatedPartnership.countryOfGoverningLaw",
|
|
10916
|
+
"trustRegistrationDetails.registrationNumber": "unincorporatedPartnership.registrationNumber",
|
|
10917
|
+
"trustRegistrationDetails.taxInformation": "unincorporatedPartnership.taxInformation",
|
|
10918
|
+
"trustRegistrationAddress.registrationAddress.city": "unincorporatedPartnership.registeredAddress.city",
|
|
10919
|
+
"trustRegistrationAddress.registrationAddress.country": "unincorporatedPartnership.registeredAddress.country",
|
|
10920
|
+
"trustRegistrationAddress.registrationAddress.postalCode": "unincorporatedPartnership.registeredAddress.postalCode",
|
|
10921
|
+
"trustRegistrationAddress.registrationAddress.stateOrProvince": "unincorporatedPartnership.registeredAddress.stateOrProvince",
|
|
10922
|
+
"trustRegistrationAddress.registrationAddress.address": "unincorporatedPartnership.registeredAddress.street",
|
|
10923
|
+
"trustRegistrationAddress.registrationAddress.otherAddressInformation": "unincorporatedPartnership.registeredAddress.street2",
|
|
10924
|
+
"trustRegistrationAddress.operationalAddress.city": "unincorporatedPartnership.principalPlaceOfBusiness.city",
|
|
10925
|
+
"trustRegistrationAddress.operationalAddress.country": "unincorporatedPartnership.principalPlaceOfBusiness.country",
|
|
10926
|
+
"trustRegistrationAddress.operationalAddress.postalCode": "unincorporatedPartnership.principalPlaceOfBusiness.postalCode",
|
|
10927
|
+
"trustRegistrationAddress.operationalAddress.stateOrProvince": "unincorporatedPartnership.principalPlaceOfBusiness.stateOrProvince",
|
|
10928
|
+
"trustRegistrationAddress.operationalAddress.address": "unincorporatedPartnership.principalPlaceOfBusiness.street",
|
|
10929
|
+
"trustRegistrationAddress.operationalAddress.otherAddressInformation": "unincorporatedPartnership.principalPlaceOfBusiness.street2"
|
|
10930
|
+
};
|
|
10910
10931
|
const solePropBaseMapping = {
|
|
10911
10932
|
"solePropNameAndCountry.country": "soleProprietorship.countryOfGoverningLaw",
|
|
10912
10933
|
"solePropNameAndCountry.legalCompanyName": "soleProprietorship.name",
|
|
@@ -11002,6 +11023,12 @@ const payoutComponentKeyMapping = {
|
|
|
11002
11023
|
const trustComponentsKeyMapping = {
|
|
11003
11024
|
...trustBaseMapping
|
|
11004
11025
|
};
|
|
11026
|
+
const unincorporatedPartnershipComponentsKeyMapping = {
|
|
11027
|
+
...unincorporatedPartnershipBaseMapping
|
|
11028
|
+
};
|
|
11029
|
+
const unincorporatedPartnershipApiKeyMapping = {
|
|
11030
|
+
...reverseObject(unincorporatedPartnershipBaseMapping)
|
|
11031
|
+
};
|
|
11005
11032
|
const trustApiKeyMapping = {
|
|
11006
11033
|
...reverseObject(trustBaseMapping)
|
|
11007
11034
|
};
|
|
@@ -11069,6 +11096,9 @@ const legalEntityDocumentToFieldMapping = {
|
|
|
11069
11096
|
},
|
|
11070
11097
|
[LegalEntityType.TRUST]: {
|
|
11071
11098
|
[DocumentType.CONSTITUTIONAL_DOCUMENT]: "trustConstitutionalDocument.constitutionalDocument"
|
|
11099
|
+
},
|
|
11100
|
+
[LegalEntityType.UNINCORPORATED_PARTNERSHIP]: {
|
|
11101
|
+
[DocumentType.CONSTITUTIONAL_DOCUMENT]: "trustConstitutionalDocument.constitutionalDocument"
|
|
11072
11102
|
}
|
|
11073
11103
|
};
|
|
11074
11104
|
const sourceOfFundsComponentsKeyMapping = {
|
|
@@ -11445,6 +11475,58 @@ const mapLegalEntityToTrust = (legalEntity, isExperimentEnabled) => {
|
|
|
11445
11475
|
}
|
|
11446
11476
|
return trustCompData;
|
|
11447
11477
|
};
|
|
11478
|
+
const mapLegalEntityToUnincorporatedPartnership = (legalEntity, isExperimentEnabled) => {
|
|
11479
|
+
var _a2, _b2, _c2, _d2, _e2, _f2, _g2;
|
|
11480
|
+
let trustCompData;
|
|
11481
|
+
if (legalEntity == null ? void 0 : legalEntity.unincorporatedPartnership) {
|
|
11482
|
+
trustCompData = formatObject(legalEntity, unincorporatedPartnershipComponentsKeyMapping);
|
|
11483
|
+
trustCompData.trustRegistrationDetails.country = legalEntity.unincorporatedPartnership.countryOfGoverningLaw;
|
|
11484
|
+
if ((_a2 = legalEntity.unincorporatedPartnership) == null ? void 0 : _a2.description) {
|
|
11485
|
+
trustCompData.trustRegistrationDetails.objectOfTrust = legalEntity.unincorporatedPartnership.description;
|
|
11486
|
+
}
|
|
11487
|
+
if ((_b2 = legalEntity.unincorporatedPartnership) == null ? void 0 : _b2.principalPlaceOfBusiness) {
|
|
11488
|
+
trustCompData.trustRegistrationAddress.operationalAddressIsSame = operationalAddressIsSameIds.OPERATIONAL_ADDRESS_IS_NOT_SAME;
|
|
11489
|
+
} else {
|
|
11490
|
+
if (!trustCompData.trustRegistrationAddress) {
|
|
11491
|
+
trustCompData.trustRegistrationAddress = {};
|
|
11492
|
+
}
|
|
11493
|
+
trustCompData.trustRegistrationAddress.operationalAddressIsSame = operationalAddressIsSameIds.OPERATIONAL_ADDRESS_IS_SAME;
|
|
11494
|
+
}
|
|
11495
|
+
if ((_d2 = (_c2 = legalEntity.unincorporatedPartnership) == null ? void 0 : _c2.taxInformation) == null ? void 0 : _d2.length) {
|
|
11496
|
+
const { country } = legalEntity.unincorporatedPartnership.registeredAddress;
|
|
11497
|
+
const countryTaxInformation = legalEntity.unincorporatedPartnership.taxInformation.find(
|
|
11498
|
+
(info) => info.country === country
|
|
11499
|
+
);
|
|
11500
|
+
if ((countryTaxInformation == null ? void 0 : countryTaxInformation.type) === "UEN") {
|
|
11501
|
+
trustCompData.trustRegistrationDetails.isUen = true;
|
|
11502
|
+
}
|
|
11503
|
+
if ((countryTaxInformation == null ? void 0 : countryTaxInformation.type) === "GST") {
|
|
11504
|
+
trustCompData.trustRegistrationDetails.isUen = false;
|
|
11505
|
+
}
|
|
11506
|
+
const taxNumberAbsent = countryTaxInformation == null ? void 0 : countryTaxInformation.numberAbsent;
|
|
11507
|
+
if (taxNumberAbsent !== void 0) {
|
|
11508
|
+
trustCompData.trustRegistrationDetails.exemptedFromTax = taxNumberAbsent;
|
|
11509
|
+
}
|
|
11510
|
+
}
|
|
11511
|
+
if ((_e2 = legalEntity == null ? void 0 : legalEntity.documentDetails) == null ? void 0 : _e2.length) {
|
|
11512
|
+
trustCompData = {
|
|
11513
|
+
...trustCompData,
|
|
11514
|
+
...mapApiDocumentToTrustDocument(legalEntity == null ? void 0 : legalEntity.id)
|
|
11515
|
+
};
|
|
11516
|
+
}
|
|
11517
|
+
if (isExperimentEnabled("EnableDoingBusinessAsNameV4")) {
|
|
11518
|
+
if (typeof ((_f2 = trustCompData == null ? void 0 : trustCompData.trustRegistrationDetails) == null ? void 0 : _f2.hasDoingBusinessAs) === "boolean") {
|
|
11519
|
+
trustCompData.trustRegistrationDetails.hasDoingBusinessAs = !legalEntity.unincorporatedPartnership.doingBusinessAsAbsent;
|
|
11520
|
+
if (!trustCompData.trustRegistrationDetails.hasDoingBusinessAs)
|
|
11521
|
+
(_g2 = legalEntity.unincorporatedPartnership) == null ? true : delete _g2.doingBusinessAs;
|
|
11522
|
+
}
|
|
11523
|
+
} else {
|
|
11524
|
+
trustCompData.trustRegistrationDetails.hasDoingBusinessAs = legalEntity.unincorporatedPartnership.doingBusinessAs ? legalEntity.unincorporatedPartnership.doingBusinessAs === legalEntity.unincorporatedPartnership.name ? false : true : void 0;
|
|
11525
|
+
trustCompData.trustRegistrationDetails.doingBusinessAs = legalEntity.unincorporatedPartnership.doingBusinessAs;
|
|
11526
|
+
}
|
|
11527
|
+
}
|
|
11528
|
+
return trustCompData;
|
|
11529
|
+
};
|
|
11448
11530
|
const mapTrustToLegalEntity = (data, isExperimentEnabled) => {
|
|
11449
11531
|
var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2, _j2, _k2;
|
|
11450
11532
|
const requestObj = {
|
|
@@ -11482,6 +11564,43 @@ const mapTrustToLegalEntity = (data, isExperimentEnabled) => {
|
|
|
11482
11564
|
requestObj.type = LegalEntityType.TRUST;
|
|
11483
11565
|
return requestObj;
|
|
11484
11566
|
};
|
|
11567
|
+
const mapUnincorporatedPartnershipToLegalEntity = (data, isExperimentEnabled) => {
|
|
11568
|
+
var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2, _j2, _k2;
|
|
11569
|
+
const requestObj = {
|
|
11570
|
+
...formatObject(data, unincorporatedPartnershipApiKeyMapping)
|
|
11571
|
+
};
|
|
11572
|
+
const taxId = (_c2 = (_b2 = (_a2 = data.trustRegistrationDetails) == null ? void 0 : _a2.taxInformation) == null ? void 0 : _b2.find(
|
|
11573
|
+
(tax) => {
|
|
11574
|
+
var _a3;
|
|
11575
|
+
return tax.country === ((_a3 = data.trustRegistrationDetails) == null ? void 0 : _a3.country);
|
|
11576
|
+
}
|
|
11577
|
+
)) == null ? void 0 : _c2.number;
|
|
11578
|
+
if (taxId || isExperimentEnabled("EnableRegistrationAndTaxAbsentStatesV4")) {
|
|
11579
|
+
requestObj.unincorporatedPartnership = updateTaxInformation(
|
|
11580
|
+
{
|
|
11581
|
+
taxId,
|
|
11582
|
+
country: (_d2 = data.trustRegistrationDetails) == null ? void 0 : _d2.country,
|
|
11583
|
+
exemptedFromTax: (_e2 = data.trustRegistrationDetails) == null ? void 0 : _e2.exemptedFromTax,
|
|
11584
|
+
entity: requestObj.unincorporatedPartnership
|
|
11585
|
+
},
|
|
11586
|
+
isExperimentEnabled("EnableRegistrationAndTaxAbsentStatesV4")
|
|
11587
|
+
);
|
|
11588
|
+
}
|
|
11589
|
+
if ((_f2 = data.trustRegistrationDetails) == null ? void 0 : _f2.objectOfTrust) {
|
|
11590
|
+
requestObj.unincorporatedPartnership.description = data.trustRegistrationDetails.objectOfTrust;
|
|
11591
|
+
}
|
|
11592
|
+
if (isExperimentEnabled("EnableDoingBusinessAsNameV4")) {
|
|
11593
|
+
requestObj.unincorporatedPartnership.doingBusinessAsAbsent = typeof ((_g2 = data.trustRegistrationDetails) == null ? void 0 : _g2.hasDoingBusinessAs) !== "undefined" ? !((_h2 = data.trustRegistrationDetails) == null ? void 0 : _h2.hasDoingBusinessAs) : void 0;
|
|
11594
|
+
if (requestObj.unincorporatedPartnership.doingBusinessAsAbsent) {
|
|
11595
|
+
requestObj.unincorporatedPartnership.doingBusinessAs = "";
|
|
11596
|
+
}
|
|
11597
|
+
} else {
|
|
11598
|
+
(_i2 = requestObj.unincorporatedPartnership) == null ? true : delete _i2.doingBusinessAsAbsent;
|
|
11599
|
+
requestObj.unincorporatedPartnership.doingBusinessAs = ((_j2 = data.trustRegistrationDetails) == null ? void 0 : _j2.doingBusinessAs) || ((_k2 = data.trustRegistrationDetails) == null ? void 0 : _k2.legalName);
|
|
11600
|
+
}
|
|
11601
|
+
requestObj.type = LegalEntityType.UNINCORPORATED_PARTNERSHIP;
|
|
11602
|
+
return requestObj;
|
|
11603
|
+
};
|
|
11485
11604
|
const mapLegalEntityToHighExposure = (legalEntity) => formatObject(legalEntity, highExposureComponentsKeyMapping);
|
|
11486
11605
|
const mapHighExposureToLegalEntity = (data) => ({
|
|
11487
11606
|
...formatObject(data, highExposureApiKeyMapping)
|
|
@@ -12068,11 +12187,17 @@ const emptyFieldsForSoleProp = [
|
|
|
12068
12187
|
"name",
|
|
12069
12188
|
"registeredAddress.country"
|
|
12070
12189
|
];
|
|
12190
|
+
const emptyFieldsForUnincorporatedPartnership = [
|
|
12191
|
+
"name",
|
|
12192
|
+
"countryOfGoverningLaw",
|
|
12193
|
+
"registeredAddress.country"
|
|
12194
|
+
];
|
|
12071
12195
|
const emptyFieldsByEntityType = {
|
|
12072
12196
|
[LegalEntityType.INDIVIDUAL]: emptyFieldsForIndividual,
|
|
12073
12197
|
[LegalEntityType.ORGANIZATION]: emptyFieldsForOrganization,
|
|
12074
12198
|
[LegalEntityType.TRUST]: emptyFieldsForTrust,
|
|
12075
|
-
[LegalEntityType.SOLE_PROPRIETORSHIP]: emptyFieldsForSoleProp
|
|
12199
|
+
[LegalEntityType.SOLE_PROPRIETORSHIP]: emptyFieldsForSoleProp,
|
|
12200
|
+
[LegalEntityType.UNINCORPORATED_PARTNERSHIP]: emptyFieldsForUnincorporatedPartnership
|
|
12076
12201
|
};
|
|
12077
12202
|
function isEmptyEntity(legalEntity) {
|
|
12078
12203
|
var _a2;
|
|
@@ -12318,6 +12443,16 @@ const calculateTaskStatus = ({
|
|
|
12318
12443
|
return calculateCustomerSupportTask(capabilityProblems, rootLegalEntity);
|
|
12319
12444
|
case TaskTypes.BUSINESS_FINANCING:
|
|
12320
12445
|
return calculateBusinessFinancingTaskStatus(capabilityProblems, rootLegalEntity);
|
|
12446
|
+
case TaskTypes.UNINCORPORATED_PARTNERSHIP: {
|
|
12447
|
+
const partnerIds = getOwnUnincorporatedPartnershipLegalEntityIdAsArray(rootLegalEntity);
|
|
12448
|
+
if (accountHolder === "anUnincorporatedPartnership" && partnerIds.length === 0)
|
|
12449
|
+
return {
|
|
12450
|
+
status: TaskStatus.EMPTY,
|
|
12451
|
+
reason: "newEntityAlwaysEmpty"
|
|
12452
|
+
};
|
|
12453
|
+
relevantEntityIds = partnerIds;
|
|
12454
|
+
break;
|
|
12455
|
+
}
|
|
12321
12456
|
}
|
|
12322
12457
|
return getRegularTaskStatus({
|
|
12323
12458
|
taskType,
|
|
@@ -12339,7 +12474,8 @@ const splitTaskIdentifier = (taskIdentifier) => {
|
|
|
12339
12474
|
const NEEDS_SUPPORT_DETAILS = [
|
|
12340
12475
|
"theCompanyIWorkFor",
|
|
12341
12476
|
"mySoleProprietorName",
|
|
12342
|
-
"aTrust"
|
|
12477
|
+
"aTrust",
|
|
12478
|
+
"anUnincorporatedPartnership"
|
|
12343
12479
|
];
|
|
12344
12480
|
const CAPABILITIES_REQUIRING_CUSTOMER_SUPPORT = ["receivePayments"];
|
|
12345
12481
|
const requireCustomerSupport = (accountHolder, capabilities) => {
|
|
@@ -12391,6 +12527,9 @@ const determineTaskIdentifiers = ({
|
|
|
12391
12527
|
}
|
|
12392
12528
|
});
|
|
12393
12529
|
}
|
|
12530
|
+
if (accountHolder === "anUnincorporatedPartnership") {
|
|
12531
|
+
tasks.push(TaskTypes.UNINCORPORATED_PARTNERSHIP);
|
|
12532
|
+
}
|
|
12394
12533
|
if (requireCustomerSupport(accountHolder, capabilities)) {
|
|
12395
12534
|
tasks.push("CUSTOMER_SUPPORT");
|
|
12396
12535
|
}
|
|
@@ -15332,6 +15471,26 @@ function PayoutAccount(props) {
|
|
|
15332
15471
|
)
|
|
15333
15472
|
] });
|
|
15334
15473
|
}
|
|
15474
|
+
const link = "adyen-kyc-link";
|
|
15475
|
+
const linkDefault = "adyen-kyc-link-default";
|
|
15476
|
+
const linkInline = "adyen-kyc-link-inline";
|
|
15477
|
+
const styles$r = {
|
|
15478
|
+
link,
|
|
15479
|
+
linkDefault,
|
|
15480
|
+
linkInline
|
|
15481
|
+
};
|
|
15482
|
+
const Link = ({ children: children2, external = false, href, inline = false }) => {
|
|
15483
|
+
const rel = external ? "external noopener noreferrer" : void 0;
|
|
15484
|
+
const target = external ? "_blank" : "_self";
|
|
15485
|
+
const className2 = cx(styles$r.link, {
|
|
15486
|
+
[styles$r.linkInline]: inline,
|
|
15487
|
+
[styles$r.linkDefault]: !inline
|
|
15488
|
+
});
|
|
15489
|
+
return /* @__PURE__ */ jsxs("a", { className: className2, href, rel, target, children: [
|
|
15490
|
+
children2,
|
|
15491
|
+
external && !inline && /* @__PURE__ */ jsx(Icon, { name: "external-link" })
|
|
15492
|
+
] });
|
|
15493
|
+
};
|
|
15335
15494
|
const Radio = ({
|
|
15336
15495
|
id,
|
|
15337
15496
|
value,
|
|
@@ -15502,6 +15661,7 @@ var ExperimentNames = /* @__PURE__ */ ((ExperimentNames2) => {
|
|
|
15502
15661
|
ExperimentNames2["EnableSolePropUsingBusinessDetails"] = "EnableSolePropUsingBusinessDetails";
|
|
15503
15662
|
ExperimentNames2["EnableLimitCountryBusinessAccountCustomers"] = "EnableLimitCountryBusinessAccountCustomers";
|
|
15504
15663
|
ExperimentNames2["EnableTrustMemberCompanyUsingBusinessDetails"] = "EnableTrustMemberCompanyUsingBusinessDetails";
|
|
15664
|
+
ExperimentNames2["EnableUnincorporatedPartnershipInHO"] = "EnableUnincorporatedPartnershipInHO";
|
|
15505
15665
|
return ExperimentNames2;
|
|
15506
15666
|
})(ExperimentNames || {});
|
|
15507
15667
|
function useDataset(datasetIdentifier2, skip) {
|
|
@@ -16041,6 +16201,7 @@ const getMustHaveSameAccountHolderNameText = (legalEntityType, accountHolderName
|
|
|
16041
16201
|
});
|
|
16042
16202
|
case LegalEntityType.ORGANIZATION:
|
|
16043
16203
|
case LegalEntityType.TRUST:
|
|
16204
|
+
case LegalEntityType.UNINCORPORATED_PARTNERSHIP:
|
|
16044
16205
|
return i18n.get("theBankAccountHolderMustHaveTheSameNameAsYourCompany_", {
|
|
16045
16206
|
values: { companyName: accountHolderName }
|
|
16046
16207
|
});
|
|
@@ -16310,7 +16471,7 @@ function PayoutVerificationMethod(props) {
|
|
|
16310
16471
|
}
|
|
16311
16472
|
),
|
|
16312
16473
|
/* @__PURE__ */ jsx(Typography, { children: i18n.get("adyenWillOnlyGetTemporaryAccess") }),
|
|
16313
|
-
/* @__PURE__ */ jsx(Link, { href: "https://www.adyen.com/policies-and-disclaimer/privacy-policy", external: true, children:
|
|
16474
|
+
/* @__PURE__ */ jsx(Typography, { variant: "caption", children: /* @__PURE__ */ jsx(Link, { href: "https://www.adyen.com/policies-and-disclaimer/privacy-policy", external: true, children: i18n.get("adyenPrivacyPolicy") }) })
|
|
16314
16475
|
] })
|
|
16315
16476
|
}
|
|
16316
16477
|
) : void 0
|
|
@@ -27165,7 +27326,7 @@ function PersonalDetails(props) {
|
|
|
27165
27326
|
);
|
|
27166
27327
|
const getAlertProps = () => {
|
|
27167
27328
|
if (typeof birthDateErrorMessage === "string") {
|
|
27168
|
-
return { title: birthDateErrorMessage, variant: "error" };
|
|
27329
|
+
return { title: i18n.get(birthDateErrorMessage), variant: "error" };
|
|
27169
27330
|
}
|
|
27170
27331
|
const translatableWarningMessage = getLegalRepresentativeWarningMessage({
|
|
27171
27332
|
data,
|
|
@@ -27812,6 +27973,7 @@ var ConstitutionalDocumentTypes = /* @__PURE__ */ ((ConstitutionalDocumentTypes2
|
|
|
27812
27973
|
ConstitutionalDocumentTypes2["BUSINESS_REGISTRATION_DOCUMENT"] = "businessRegistrationDocument";
|
|
27813
27974
|
ConstitutionalDocumentTypes2["TRUST_DEED"] = "trustDeed";
|
|
27814
27975
|
ConstitutionalDocumentTypes2["TRUST_INSTRUMENT"] = "trustInstrument";
|
|
27976
|
+
ConstitutionalDocumentTypes2["PARTNERSHIP_AGREEMENT"] = "partnershipAgreement";
|
|
27815
27977
|
return ConstitutionalDocumentTypes2;
|
|
27816
27978
|
})(ConstitutionalDocumentTypes || {});
|
|
27817
27979
|
const getConstitutionDocumentTypeOptionsMapping = (legalEntityType, country) => {
|
|
@@ -27851,6 +28013,13 @@ const getConstitutionDocumentTypeOptionsMapping = (legalEntityType, country) =>
|
|
|
27851
28013
|
{ id: ConstitutionalDocumentTypes.TAX_FILING, name: "taxFiling" }
|
|
27852
28014
|
];
|
|
27853
28015
|
}
|
|
28016
|
+
case LegalEntityType.UNINCORPORATED_PARTNERSHIP:
|
|
28017
|
+
return [
|
|
28018
|
+
{
|
|
28019
|
+
id: ConstitutionalDocumentTypes.PARTNERSHIP_AGREEMENT,
|
|
28020
|
+
name: "partnershipAgreement"
|
|
28021
|
+
}
|
|
28022
|
+
];
|
|
27854
28023
|
default:
|
|
27855
28024
|
return [
|
|
27856
28025
|
{ id: ConstitutionalDocumentTypes.TRUST_DEED, name: "trustDeed" },
|
|
@@ -28068,6 +28237,27 @@ function SoleProp(props) {
|
|
|
28068
28237
|
};
|
|
28069
28238
|
return /* @__PURE__ */ jsx("div", { className: "adyen-kyc-sol-prop", children: renderActiveForm(activeForm || solePropForms.solePropNameAndCountry) });
|
|
28070
28239
|
}
|
|
28240
|
+
const ALLOWED_UNINCORPORATED_PARTNERSHIP_COUNTRIES = [
|
|
28241
|
+
CountryCodes.Australia,
|
|
28242
|
+
CountryCodes.Belgium,
|
|
28243
|
+
CountryCodes.Canada,
|
|
28244
|
+
CountryCodes.CzechRepublic,
|
|
28245
|
+
CountryCodes.France,
|
|
28246
|
+
CountryCodes.Germany,
|
|
28247
|
+
CountryCodes.HongKong,
|
|
28248
|
+
CountryCodes.Hungary,
|
|
28249
|
+
CountryCodes.Ireland,
|
|
28250
|
+
CountryCodes.Netherlands,
|
|
28251
|
+
CountryCodes.NewZealand,
|
|
28252
|
+
CountryCodes.Poland,
|
|
28253
|
+
CountryCodes.Romania,
|
|
28254
|
+
CountryCodes.Singapore,
|
|
28255
|
+
CountryCodes.Slovakia,
|
|
28256
|
+
CountryCodes.Spain,
|
|
28257
|
+
CountryCodes.Switzerland,
|
|
28258
|
+
CountryCodes.UnitedKingdom,
|
|
28259
|
+
CountryCodes.UnitedStates
|
|
28260
|
+
];
|
|
28071
28261
|
const trustRegistrationDetailsValidations = {
|
|
28072
28262
|
trustType: {
|
|
28073
28263
|
modes: ["blur"],
|
|
@@ -28148,6 +28338,8 @@ function TrustRegistrationDetails(props) {
|
|
|
28148
28338
|
const isStrictNameAndAddressValidationEnabled = isExperimentEnabled(
|
|
28149
28339
|
ExperimentNames.StrictNameAndAddressValidationV4
|
|
28150
28340
|
);
|
|
28341
|
+
const { taskType } = props;
|
|
28342
|
+
const isUnincorporatedPartnership = taskType === TaskTypes.UNINCORPORATED_PARTNERSHIP;
|
|
28151
28343
|
const country = (sliceData == null ? void 0 : sliceData.country) ?? mergedProps.country;
|
|
28152
28344
|
const defaultData = useMemo(
|
|
28153
28345
|
() => ({ ...mergedProps.data, country }),
|
|
@@ -28263,11 +28455,11 @@ function TrustRegistrationDetails(props) {
|
|
|
28263
28455
|
id: "ariaErrorField"
|
|
28264
28456
|
}
|
|
28265
28457
|
),
|
|
28266
|
-
/* @__PURE__ */ jsx(
|
|
28458
|
+
!isUnincorporatedPartnership && /* @__PURE__ */ jsx(
|
|
28267
28459
|
Alert,
|
|
28268
28460
|
{
|
|
28269
28461
|
variant: "info",
|
|
28270
|
-
title: i18n.get("makeSureToHaveYourTrustDeed"),
|
|
28462
|
+
title: /* @__PURE__ */ jsx(Typography, { variant: "caption", color: "secondary", children: i18n.get("makeSureToHaveYourTrustDeed") }),
|
|
28271
28463
|
className: "adyen-kyc-u-margin-bottom-16"
|
|
28272
28464
|
}
|
|
28273
28465
|
),
|
|
@@ -28281,7 +28473,7 @@ function TrustRegistrationDetails(props) {
|
|
|
28281
28473
|
country: "countryRegionOfEstablishment"
|
|
28282
28474
|
}),
|
|
28283
28475
|
readonly: formUtils.isReadOnly("country"),
|
|
28284
|
-
allowedCountries: ALLOWED_TRUST_COUNTRIES,
|
|
28476
|
+
allowedCountries: isUnincorporatedPartnership ? ALLOWED_UNINCORPORATED_PARTNERSHIP_COUNTRIES : ALLOWED_TRUST_COUNTRIES,
|
|
28285
28477
|
classNameModifiers: ["country"],
|
|
28286
28478
|
handleChangeFor: () => (e) => {
|
|
28287
28479
|
handleChangeFor("country", "input")(e);
|
|
@@ -28293,7 +28485,9 @@ function TrustRegistrationDetails(props) {
|
|
|
28293
28485
|
Field,
|
|
28294
28486
|
{
|
|
28295
28487
|
name: "legalName",
|
|
28296
|
-
label: formUtils.getLabel(
|
|
28488
|
+
label: formUtils.getLabel(
|
|
28489
|
+
!isUnincorporatedPartnership ? "nameOfTrustAgreement" : "legalName"
|
|
28490
|
+
),
|
|
28297
28491
|
classNameModifiers: ["legalName"],
|
|
28298
28492
|
errorMessage: formUtils.getErrorMessage("legalName", errors, fieldProblems),
|
|
28299
28493
|
isValid: valid.legalName,
|
|
@@ -28329,7 +28523,7 @@ function TrustRegistrationDetails(props) {
|
|
|
28329
28523
|
setErrors
|
|
28330
28524
|
}
|
|
28331
28525
|
),
|
|
28332
|
-
formUtils.isRequiredField("trustType") && /* @__PURE__ */ jsx(
|
|
28526
|
+
formUtils.isRequiredField("trustType") && !isUnincorporatedPartnership && /* @__PURE__ */ jsx(
|
|
28333
28527
|
Field,
|
|
28334
28528
|
{
|
|
28335
28529
|
name: "trustType",
|
|
@@ -28454,10 +28648,11 @@ const trustRegistrationDetailsFormId = trustForms.trustRegistrationDetails.formI
|
|
|
28454
28648
|
const trustConstitutionalDocumentFormId = trustForms.trustConstitutionalDocument.formId;
|
|
28455
28649
|
function Trust(props) {
|
|
28456
28650
|
const { i18n } = useI18nContext();
|
|
28457
|
-
const { country, handleAddressSearch, handleFindAddress, activeForm } = props;
|
|
28651
|
+
const { country, handleAddressSearch, handleFindAddress, activeForm, taskType } = props;
|
|
28458
28652
|
const trustRegistrationDetailsFormProps = getFormProps(props, trustRegistrationDetailsFormId);
|
|
28459
28653
|
const trustRegistrationAddressFormProps = getNestedOuterFormPropsFromOuterFormProps(props, trustRegistrationAddressFormId);
|
|
28460
28654
|
const trustDocumentFormProps = getFormProps(props, trustConstitutionalDocumentFormId);
|
|
28655
|
+
const isUnincorporatedPartnership = taskType === TaskTypes.UNINCORPORATED_PARTNERSHIP;
|
|
28461
28656
|
const renderActiveForm = (activeForm2) => /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-trust", children: [
|
|
28462
28657
|
/* @__PURE__ */ jsx(
|
|
28463
28658
|
"div",
|
|
@@ -28469,7 +28664,8 @@ function Trust(props) {
|
|
|
28469
28664
|
...trustRegistrationDetailsFormProps,
|
|
28470
28665
|
heading: i18n.get("registrationDetails"),
|
|
28471
28666
|
id: trustRegistrationDetailsFormId,
|
|
28472
|
-
country
|
|
28667
|
+
country,
|
|
28668
|
+
taskType
|
|
28473
28669
|
}
|
|
28474
28670
|
)
|
|
28475
28671
|
}
|
|
@@ -28483,7 +28679,7 @@ function Trust(props) {
|
|
|
28483
28679
|
{
|
|
28484
28680
|
...trustRegistrationAddressFormProps,
|
|
28485
28681
|
heading: i18n.get("registeredAddress"),
|
|
28486
|
-
description: i18n.get("registeredAddressTrustHeaderDescription"),
|
|
28682
|
+
description: !isUnincorporatedPartnership ? i18n.get("registeredAddressTrustHeaderDescription") : i18n.get("registeredAddressUnincorporatedPartnershipHeaderDescription"),
|
|
28487
28683
|
id: trustRegistrationAddressFormId,
|
|
28488
28684
|
country,
|
|
28489
28685
|
problems: props == null ? void 0 : props.problems,
|
|
@@ -28503,7 +28699,7 @@ function Trust(props) {
|
|
|
28503
28699
|
{
|
|
28504
28700
|
...trustDocumentFormProps,
|
|
28505
28701
|
id: trustConstitutionalDocumentFormId,
|
|
28506
|
-
legalEntityType: LegalEntityType.TRUST,
|
|
28702
|
+
legalEntityType: isUnincorporatedPartnership ? LegalEntityType.UNINCORPORATED_PARTNERSHIP : LegalEntityType.TRUST,
|
|
28507
28703
|
country
|
|
28508
28704
|
}
|
|
28509
28705
|
)
|
|
@@ -31067,7 +31263,8 @@ const entityTypeToCorrespondingAccountHolderOption = {
|
|
|
31067
31263
|
[LegalEntityType.INDIVIDUAL]: "myName",
|
|
31068
31264
|
[LegalEntityType.ORGANIZATION]: "theCompanyIWorkFor",
|
|
31069
31265
|
[LegalEntityType.SOLE_PROPRIETORSHIP]: "mySoleProprietorName",
|
|
31070
|
-
[LegalEntityType.TRUST]: "aTrust"
|
|
31266
|
+
[LegalEntityType.TRUST]: "aTrust",
|
|
31267
|
+
[LegalEntityType.UNINCORPORATED_PARTNERSHIP]: "anUnincorporatedPartnership"
|
|
31071
31268
|
};
|
|
31072
31269
|
const getDefaultAccountHolderType = (legalEntityResponse, isTypeChanging = false, accountHolder) => {
|
|
31073
31270
|
if (accountHolder) {
|
|
@@ -31088,6 +31285,13 @@ const getDefaultAccountHolderType = (legalEntityResponse, isTypeChanging = false
|
|
|
31088
31285
|
)) {
|
|
31089
31286
|
return "aTrust";
|
|
31090
31287
|
}
|
|
31288
|
+
if (hasOwnEntityAssociationOfType(
|
|
31289
|
+
LegalEntityType.UNINCORPORATED_PARTNERSHIP,
|
|
31290
|
+
legalEntityResponse.entityAssociations,
|
|
31291
|
+
legalEntityResponse.id
|
|
31292
|
+
)) {
|
|
31293
|
+
return "anUnincorporatedPartnership";
|
|
31294
|
+
}
|
|
31091
31295
|
if (isTypeChanging || !isEmptyEntity(legalEntityResponse)) {
|
|
31092
31296
|
return entityTypeToCorrespondingAccountHolderOption[legalEntityResponse.type];
|
|
31093
31297
|
}
|
|
@@ -31461,7 +31665,7 @@ const legalArrangementMetadata = {
|
|
|
31461
31665
|
},
|
|
31462
31666
|
partnershipUnincorporated: {
|
|
31463
31667
|
id: "partnershipUnincorporated",
|
|
31464
|
-
accountHolder: "
|
|
31668
|
+
accountHolder: "anUnincorporatedPartnership",
|
|
31465
31669
|
name: "partnershipUnincorporated",
|
|
31466
31670
|
description: "partnershipUnincorporatedDescription"
|
|
31467
31671
|
},
|
|
@@ -31534,10 +31738,11 @@ const getDefaultLegalArrangementOrSuborganizationType = (legalEntityResponse, ac
|
|
|
31534
31738
|
return void 0;
|
|
31535
31739
|
};
|
|
31536
31740
|
const getTargetLegalEntityType = (businessType, legalArrangement, trusteeType, currentLegalEntityType) => {
|
|
31537
|
-
|
|
31741
|
+
const trustOrUnincorporatedPartnership = legalArrangement === "aTrust" || legalArrangement === "partnershipUnincorporated";
|
|
31742
|
+
if (businessType === "legalArrangement" && trustOrUnincorporatedPartnership && trusteeType === "company" || businessType === "company") {
|
|
31538
31743
|
return LegalEntityType.ORGANIZATION;
|
|
31539
31744
|
}
|
|
31540
|
-
if (businessType === "legalArrangement" &&
|
|
31745
|
+
if (businessType === "legalArrangement" && trustOrUnincorporatedPartnership && trusteeType === "individual" || businessType === "individual" || businessType === "soleProprietorship") {
|
|
31541
31746
|
return LegalEntityType.INDIVIDUAL;
|
|
31542
31747
|
}
|
|
31543
31748
|
if (legalArrangement && isLegalArrangementOrganizationSubtype(legalArrangement)) {
|
|
@@ -31556,6 +31761,8 @@ const convertApiFieldNameToSchemaFieldName = (apiField, legalEntityType, isExper
|
|
|
31556
31761
|
return (isExperimentEnabled == null ? void 0 : isExperimentEnabled("EnableSolePropUsingBusinessDetails")) ? apiField in solePropBusinessDetailsApiKeyMapping ? solePropBusinessDetailsApiKeyMapping[apiField] : void 0 : apiField in solePropApiKeyMapping ? solePropApiKeyMapping[apiField] : void 0;
|
|
31557
31762
|
case LegalEntityType.TRUST:
|
|
31558
31763
|
return apiField in trustApiKeyMapping ? trustApiKeyMapping[apiField] : void 0;
|
|
31764
|
+
case LegalEntityType.UNINCORPORATED_PARTNERSHIP:
|
|
31765
|
+
return apiField in unincorporatedPartnershipComponentsKeyMapping ? unincorporatedPartnershipComponentsKeyMapping[apiField] : void 0;
|
|
31559
31766
|
default:
|
|
31560
31767
|
throw Error("No valid legal entity type, cannot convert");
|
|
31561
31768
|
}
|
|
@@ -31648,7 +31855,7 @@ function VerifiedBusinessCard({
|
|
|
31648
31855
|
const { i18n } = useI18nContext();
|
|
31649
31856
|
const [expanded, setExpanded] = useState(false);
|
|
31650
31857
|
const address = (verifiedAddress == null ? void 0 : verifiedAddress.address) && (verifiedAddress == null ? void 0 : verifiedAddress.city) && (verifiedAddress == null ? void 0 : verifiedAddress.stateOrProvince) && (verifiedAddress == null ? void 0 : verifiedAddress.postalCode) ? `${verifiedAddress == null ? void 0 : verifiedAddress.address} ${verifiedAddress.city} ${verifiedAddress.stateOrProvince} ${verifiedAddress.postalCode}` : verifiedBusiness == null ? void 0 : verifiedBusiness.address;
|
|
31651
|
-
const addressLink =
|
|
31858
|
+
const addressLink = `https://www.google.com/maps/place/${address == null ? void 0 : address.replaceAll(" ", "+")}`;
|
|
31652
31859
|
const baseItems = useMemo(
|
|
31653
31860
|
() => [
|
|
31654
31861
|
{
|
|
@@ -31670,9 +31877,10 @@ function VerifiedBusinessCard({
|
|
|
31670
31877
|
},
|
|
31671
31878
|
{
|
|
31672
31879
|
term: i18n.get("address"),
|
|
31673
|
-
details: /* @__PURE__ */ jsxs(
|
|
31880
|
+
details: address && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
31674
31881
|
address,
|
|
31675
|
-
|
|
31882
|
+
/* @__PURE__ */ jsx("br", {}),
|
|
31883
|
+
/* @__PURE__ */ jsx(Link, { href: addressLink, external: true, children: i18n.get("showOnMap") })
|
|
31676
31884
|
] })
|
|
31677
31885
|
}
|
|
31678
31886
|
].filter((item) => !!item.details),
|
|
@@ -39879,16 +40087,16 @@ const saveBlobAsFile = (fileData, filename) => {
|
|
|
39879
40087
|
window.navigator.msSaveBlob(fileData, filename);
|
|
39880
40088
|
} else {
|
|
39881
40089
|
const blobUrl = window.URL.createObjectURL(fileData);
|
|
39882
|
-
const
|
|
39883
|
-
|
|
39884
|
-
|
|
39885
|
-
|
|
39886
|
-
if (typeof
|
|
39887
|
-
|
|
39888
|
-
}
|
|
39889
|
-
document.body.appendChild(
|
|
39890
|
-
|
|
39891
|
-
document.body.removeChild(
|
|
40090
|
+
const link2 = document.createElement("a");
|
|
40091
|
+
link2.style.display = "none";
|
|
40092
|
+
link2.href = blobUrl;
|
|
40093
|
+
link2.setAttribute("download", filename);
|
|
40094
|
+
if (typeof link2.download === "undefined") {
|
|
40095
|
+
link2.setAttribute("target", "_blank");
|
|
40096
|
+
}
|
|
40097
|
+
document.body.appendChild(link2);
|
|
40098
|
+
link2.click();
|
|
40099
|
+
document.body.removeChild(link2);
|
|
39892
40100
|
window.URL.revokeObjectURL(blobUrl);
|
|
39893
40101
|
}
|
|
39894
40102
|
};
|
|
@@ -42376,7 +42584,7 @@ function useAssociatedLegalArrangement({
|
|
|
42376
42584
|
const refreshAssociatedLegalArrangement = useCallback(() => {
|
|
42377
42585
|
var _a2;
|
|
42378
42586
|
const foundEntity = (_a2 = rootLegalEntity == null ? void 0 : rootLegalEntity.entityAssociations) == null ? void 0 : _a2.find(
|
|
42379
|
-
(entity) => entity.type === LegalEntityType.SOLE_PROPRIETORSHIP || entity.type === LegalEntityType.TRUST
|
|
42587
|
+
(entity) => entity.type === LegalEntityType.SOLE_PROPRIETORSHIP || entity.type === LegalEntityType.TRUST || entity.type === LegalEntityType.UNINCORPORATED_PARTNERSHIP
|
|
42380
42588
|
);
|
|
42381
42589
|
if (foundEntity == null ? void 0 : foundEntity.legalEntityId) {
|
|
42382
42590
|
getAssociatedEntity(foundEntity == null ? void 0 : foundEntity.legalEntityId).then((res) => setAssociatedLegalArrangement(res)).catch(logger$q.error);
|
|
@@ -43383,9 +43591,10 @@ const BusinessTypeSelection = ({
|
|
|
43383
43591
|
onBack,
|
|
43384
43592
|
handleUpdateLegalEntity
|
|
43385
43593
|
}) => {
|
|
43386
|
-
var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2, _j2, _k2, _l2;
|
|
43594
|
+
var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2, _j2, _k2, _l2, _m, _n;
|
|
43387
43595
|
const { i18n } = useI18nContext();
|
|
43388
43596
|
const { showToast } = useToastContext();
|
|
43597
|
+
const { isExperimentEnabled } = useExperimentsContext();
|
|
43389
43598
|
const [loadingStatus, setLoadingStatus] = useState();
|
|
43390
43599
|
const [currentStep, setCurrentStep] = useState(
|
|
43391
43600
|
0
|
|
@@ -43431,23 +43640,24 @@ const BusinessTypeSelection = ({
|
|
|
43431
43640
|
});
|
|
43432
43641
|
const newAccountHolder = ((_c2 = data.businessType) == null ? void 0 : _c2.accountHolder) || ((_d2 = data.legalArrangement) == null ? void 0 : _d2.accountHolder);
|
|
43433
43642
|
const targetLegalArrangement = (_e2 = data.legalArrangement) == null ? void 0 : _e2.id;
|
|
43643
|
+
const trustOrUnincorporatedPartnership = ((_f2 = data.legalArrangement) == null ? void 0 : _f2.id) === "aTrust" || ((_g2 = data.legalArrangement) == null ? void 0 : _g2.id) === "partnershipUnincorporated";
|
|
43434
43644
|
const targetLegalEntityType = getTargetLegalEntityType(
|
|
43435
|
-
(
|
|
43436
|
-
(
|
|
43437
|
-
(
|
|
43645
|
+
(_h2 = data.businessType) == null ? void 0 : _h2.id,
|
|
43646
|
+
(_i2 = data.legalArrangement) == null ? void 0 : _i2.id,
|
|
43647
|
+
(_j2 = data.trusteeType) == null ? void 0 : _j2.id,
|
|
43438
43648
|
legalEntityResponse == null ? void 0 : legalEntityResponse.type
|
|
43439
43649
|
);
|
|
43440
43650
|
const isLegalEntityTypeChanging = currentLegalEntityType !== targetLegalEntityType;
|
|
43441
43651
|
const isLegalArrangementChanging = currentCompanyTypesValue !== targetLegalArrangement;
|
|
43442
43652
|
useEffect(() => {
|
|
43443
|
-
var _a3
|
|
43653
|
+
var _a3;
|
|
43444
43654
|
setFormSchema(
|
|
43445
43655
|
getFormSchema(
|
|
43446
43656
|
((_a3 = data.businessType) == null ? void 0 : _a3.id) === "legalArrangement" && !!data.legalArrangement || currentStep === 1,
|
|
43447
|
-
|
|
43657
|
+
trustOrUnincorporatedPartnership
|
|
43448
43658
|
)
|
|
43449
43659
|
);
|
|
43450
|
-
}, [data.businessType, data.legalArrangement, currentStep]);
|
|
43660
|
+
}, [data.businessType, data.legalArrangement, currentStep, trustOrUnincorporatedPartnership]);
|
|
43451
43661
|
useEffect(() => {
|
|
43452
43662
|
userEvents.addTaskEvent("Landed on page", {
|
|
43453
43663
|
actionType: "start"
|
|
@@ -43469,7 +43679,7 @@ const BusinessTypeSelection = ({
|
|
|
43469
43679
|
);
|
|
43470
43680
|
return;
|
|
43471
43681
|
}
|
|
43472
|
-
if (targetLegalArrangement === "partnershipUnincorporated") {
|
|
43682
|
+
if (targetLegalArrangement === "partnershipUnincorporated" && !isExperimentEnabled(ExperimentNames.EnableUnincorporatedPartnershipInHO)) {
|
|
43473
43683
|
setCurrentStep(
|
|
43474
43684
|
2
|
|
43475
43685
|
/* WE_CANNOT_SET_UP_ACCOUNT */
|
|
@@ -43570,7 +43780,7 @@ const BusinessTypeSelection = ({
|
|
|
43570
43780
|
{
|
|
43571
43781
|
name: "businessType",
|
|
43572
43782
|
useLabelElement: false,
|
|
43573
|
-
errorMessage: (
|
|
43783
|
+
errorMessage: (_k2 = errors.businessType) == null ? void 0 : _k2.errorMessage,
|
|
43574
43784
|
showErrorIconBottom: true,
|
|
43575
43785
|
isValid: valid.businessType,
|
|
43576
43786
|
children: (childProps) => {
|
|
@@ -43599,7 +43809,7 @@ const BusinessTypeSelection = ({
|
|
|
43599
43809
|
{
|
|
43600
43810
|
name: "legalArrangement",
|
|
43601
43811
|
useLabelElement: false,
|
|
43602
|
-
errorMessage: (
|
|
43812
|
+
errorMessage: (_l2 = errors.legalArrangement) == null ? void 0 : _l2.errorMessage,
|
|
43603
43813
|
showErrorIconBottom: true,
|
|
43604
43814
|
isValid: valid.legalArrangement,
|
|
43605
43815
|
children: (childProps) => {
|
|
@@ -43621,14 +43831,16 @@ const BusinessTypeSelection = ({
|
|
|
43621
43831
|
}
|
|
43622
43832
|
}
|
|
43623
43833
|
),
|
|
43624
|
-
|
|
43834
|
+
trustOrUnincorporatedPartnership && /* @__PURE__ */ jsx(
|
|
43625
43835
|
Field,
|
|
43626
43836
|
{
|
|
43627
43837
|
name: "trusteeType",
|
|
43628
|
-
label: i18n.get(
|
|
43838
|
+
label: i18n.get(
|
|
43839
|
+
((_m = data.legalArrangement) == null ? void 0 : _m.id) === "aTrust" ? "whatTypeOfTrusteeAreYou" : "whatTypeOfOPartnershipAreYou"
|
|
43840
|
+
),
|
|
43629
43841
|
className: "adyen-kyc-u-margin-top-32",
|
|
43630
43842
|
useLabelElement: false,
|
|
43631
|
-
errorMessage: (
|
|
43843
|
+
errorMessage: (_n = errors.trusteeType) == null ? void 0 : _n.errorMessage,
|
|
43632
43844
|
showErrorIconBottom: true,
|
|
43633
43845
|
isValid: valid.trusteeType,
|
|
43634
43846
|
children: (childProps) => {
|
|
@@ -44088,6 +44300,11 @@ const businessTypeMapping = {
|
|
|
44088
44300
|
[LegalEntityType.INDIVIDUAL]: "individualTrustee",
|
|
44089
44301
|
[LegalEntityType.ORGANIZATION]: "companyTrustee"
|
|
44090
44302
|
/* COMPANY_TRUSTEE */
|
|
44303
|
+
},
|
|
44304
|
+
anUnincorporatedPartnership: {
|
|
44305
|
+
[LegalEntityType.INDIVIDUAL]: "partnershipUnincorporated",
|
|
44306
|
+
[LegalEntityType.ORGANIZATION]: "partnershipUnincorporated"
|
|
44307
|
+
/* UNINCORPORATED_PARTNERSHIP */
|
|
44091
44308
|
}
|
|
44092
44309
|
};
|
|
44093
44310
|
const companyTypesMapping = {
|
|
@@ -44138,7 +44355,6 @@ function useDataMissingRemediations({
|
|
|
44138
44355
|
};
|
|
44139
44356
|
}
|
|
44140
44357
|
const useSofStatus = (legalEntityResponse) => {
|
|
44141
|
-
const [sofStatus, setSofStatus] = useState(TaskStatus.PROCESSING);
|
|
44142
44358
|
const { data: businessLinesData } = useBusinessLines();
|
|
44143
44359
|
const sofErrors = useMemo(() => {
|
|
44144
44360
|
const sofError = { hasMissingDataError: false, hasInvalidInputError: false };
|
|
@@ -44183,24 +44399,28 @@ const useSofStatus = (legalEntityResponse) => {
|
|
|
44183
44399
|
}
|
|
44184
44400
|
return (banking == null ? void 0 : banking.allowed) || (issueBankAccount == null ? void 0 : issueBankAccount.allowed) || false;
|
|
44185
44401
|
}, [legalEntityResponse == null ? void 0 : legalEntityResponse.capabilities]);
|
|
44186
|
-
|
|
44187
|
-
const
|
|
44402
|
+
const sofStatus = useMemo(() => {
|
|
44403
|
+
const allBusinessLinesHaveSourceOfFunds = filteredBusinessLines == null ? void 0 : filteredBusinessLines.every(
|
|
44188
44404
|
(businessLine) => !isEmpty$2(businessLine.sourceOfFunds)
|
|
44189
44405
|
);
|
|
44190
|
-
|
|
44191
|
-
|
|
44192
|
-
|
|
44193
|
-
|
|
44194
|
-
} else if (hasAllSofCapabilitiesApproved) {
|
|
44195
|
-
setSofStatus(TaskStatus.FINISHED);
|
|
44196
|
-
} else {
|
|
44197
|
-
setSofStatus(TaskStatus.PROCESSING);
|
|
44406
|
+
const hasMissingRequiredData = !legalEntityResponse || !allBusinessLinesHaveSourceOfFunds || (sofErrors == null ? void 0 : sofErrors.hasMissingDataError);
|
|
44407
|
+
const hasInvalidInput = sofErrors == null ? void 0 : sofErrors.hasInvalidInputError;
|
|
44408
|
+
if (hasMissingRequiredData) {
|
|
44409
|
+
return TaskStatus.EMPTY;
|
|
44198
44410
|
}
|
|
44411
|
+
if (hasInvalidInput) {
|
|
44412
|
+
return TaskStatus.ERROR;
|
|
44413
|
+
}
|
|
44414
|
+
if (hasAllSofCapabilitiesApproved) {
|
|
44415
|
+
return TaskStatus.FINISHED;
|
|
44416
|
+
}
|
|
44417
|
+
return TaskStatus.PROCESSING;
|
|
44199
44418
|
}, [
|
|
44200
44419
|
sofErrors == null ? void 0 : sofErrors.hasInvalidInputError,
|
|
44201
44420
|
sofErrors == null ? void 0 : sofErrors.hasMissingDataError,
|
|
44202
44421
|
hasAllSofCapabilitiesApproved,
|
|
44203
|
-
filteredBusinessLines
|
|
44422
|
+
filteredBusinessLines,
|
|
44423
|
+
legalEntityResponse
|
|
44204
44424
|
]);
|
|
44205
44425
|
return { sofStatus };
|
|
44206
44426
|
};
|
|
@@ -44530,6 +44750,7 @@ function TaskList({
|
|
|
44530
44750
|
const getTaskStatus = useGetTaskStatus();
|
|
44531
44751
|
const hasTaskOfGroupAccountDetails = tasks.some((task) => LEGAL_ENTITY_BASE_TASKS.includes(task));
|
|
44532
44752
|
const hasTrust = accountHolder === "aTrust" || isPartOfTrustFromLegalEntity(legalEntityResponse);
|
|
44753
|
+
const hasUnincorporatedPartnership = accountHolder === "anUnincorporatedPartnership" || isPartOfUnincorporatedPartnership(legalEntityResponse);
|
|
44533
44754
|
const hasContractTasks = tasks.some((task) => CONTRACT_TASKS.includes(task));
|
|
44534
44755
|
const isCompany = tasks.some((task) => task === TaskTypes.COMPANY);
|
|
44535
44756
|
const companyTaskType = useMemo(() => {
|
|
@@ -44734,6 +44955,19 @@ function TaskList({
|
|
|
44734
44955
|
}
|
|
44735
44956
|
)
|
|
44736
44957
|
] }),
|
|
44958
|
+
hasUnincorporatedPartnership && /* @__PURE__ */ jsx(TaskListGroup, { title: i18n.get("partnershipsUnincorporated"), children: /* @__PURE__ */ jsx(
|
|
44959
|
+
TaskListItem,
|
|
44960
|
+
{
|
|
44961
|
+
onNavigateToTask: () => onNavigateToTask(TaskTypes.UNINCORPORATED_PARTNERSHIP),
|
|
44962
|
+
icon: "trust",
|
|
44963
|
+
titleKey: "unincorporatedDetails",
|
|
44964
|
+
status: getTaskStatus(TaskTypes.UNINCORPORATED_PARTNERSHIP),
|
|
44965
|
+
problems: getOwnUnincorporatedPartnershipProblems(
|
|
44966
|
+
legalEntityResponse,
|
|
44967
|
+
capabilityProblems
|
|
44968
|
+
)
|
|
44969
|
+
}
|
|
44970
|
+
) }),
|
|
44737
44971
|
tasks.includes(TaskTypes.SOURCE_OF_FUNDS) && /* @__PURE__ */ jsx(TaskListGroup, { title: i18n.get("financialProductInformation"), children: /* @__PURE__ */ jsx(
|
|
44738
44972
|
TaskListItem,
|
|
44739
44973
|
{
|
|
@@ -45251,15 +45485,7 @@ function HighExposureBusinessInformation({
|
|
|
45251
45485
|
helper: /* @__PURE__ */ jsxs("div", { children: [
|
|
45252
45486
|
/* @__PURE__ */ jsx("span", { children: i18n.get("anLEIIsAUniqueCode") }),
|
|
45253
45487
|
" ",
|
|
45254
|
-
/* @__PURE__ */ jsx(
|
|
45255
|
-
Link,
|
|
45256
|
-
{
|
|
45257
|
-
href: "https://search.gleif.org/#/search/",
|
|
45258
|
-
external: true,
|
|
45259
|
-
className: ["adyen-kyc__high-exposure-link"],
|
|
45260
|
-
children: i18n.get("lookUpYourLEI")
|
|
45261
|
-
}
|
|
45262
|
-
)
|
|
45488
|
+
/* @__PURE__ */ jsx(Link, { href: "https://search.gleif.org/#/search/", external: true, inline: true, children: i18n.get("lookUpYourLEI") })
|
|
45263
45489
|
] }),
|
|
45264
45490
|
errorMessage: formUtils.getErrorMessage("doesYourCompanyHaveLEI", errors, fieldProblems),
|
|
45265
45491
|
children: (childProps) => /* @__PURE__ */ jsx(
|
|
@@ -45323,19 +45549,23 @@ function HighExposureFinancialInformation({
|
|
|
45323
45549
|
fieldProblems,
|
|
45324
45550
|
handleChangeFor,
|
|
45325
45551
|
country,
|
|
45326
|
-
sectionHeading
|
|
45552
|
+
sectionHeading,
|
|
45553
|
+
setValidCurrency
|
|
45327
45554
|
}) {
|
|
45328
45555
|
var _a2;
|
|
45329
45556
|
const { i18n } = useI18nContext();
|
|
45330
45557
|
const financialData = data;
|
|
45331
45558
|
const financialErrors = errors;
|
|
45332
45559
|
const isFinancialDataValid = valid;
|
|
45333
|
-
const currenciesForCurrCountry = currencyByCountry[country] ?? [];
|
|
45560
|
+
const currenciesForCurrCountry = useMemo(() => currencyByCountry[country] ?? [], [country]);
|
|
45334
45561
|
const [firstCurrency] = currenciesForCurrCountry;
|
|
45335
45562
|
const defaultCurrency = firstCurrency ?? "EUR";
|
|
45336
|
-
|
|
45337
|
-
|
|
45338
|
-
|
|
45563
|
+
useEffect(() => {
|
|
45564
|
+
if ((currenciesForCurrCountry == null ? void 0 : currenciesForCurrCountry.length) === 1) {
|
|
45565
|
+
financialData.currency = firstCurrency;
|
|
45566
|
+
setValidCurrency("currency", true);
|
|
45567
|
+
}
|
|
45568
|
+
}, [currenciesForCurrCountry, firstCurrency, setValidCurrency, financialData]);
|
|
45339
45569
|
return /* @__PURE__ */ jsxs("section", { children: [
|
|
45340
45570
|
/* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", children: i18n.get(sectionHeading || "financialInformation") }),
|
|
45341
45571
|
/* @__PURE__ */ jsx(
|
|
@@ -45603,7 +45833,7 @@ function AdditionalFieldsForHighExposureCompany(props) {
|
|
|
45603
45833
|
(currentData) => getCompanySchemaKeys(country, currentData, companySchemaKeys),
|
|
45604
45834
|
[]
|
|
45605
45835
|
);
|
|
45606
|
-
const { handleChangeFor, data, schema, valid, errors, fieldProblems } = useForm({
|
|
45836
|
+
const { handleChangeFor, data, schema, valid, errors, fieldProblems, setValid } = useForm({
|
|
45607
45837
|
...props,
|
|
45608
45838
|
schema: getFormSchema2,
|
|
45609
45839
|
defaultData: highExposureCompanyDetailsData,
|
|
@@ -45673,7 +45903,8 @@ function AdditionalFieldsForHighExposureCompany(props) {
|
|
|
45673
45903
|
country,
|
|
45674
45904
|
formUtils,
|
|
45675
45905
|
fieldProblems,
|
|
45676
|
-
targetPage: HighExposurePagesEnums.COMPANY_PAGE
|
|
45906
|
+
targetPage: HighExposurePagesEnums.COMPANY_PAGE,
|
|
45907
|
+
setValidCurrency: setValid
|
|
45677
45908
|
}
|
|
45678
45909
|
),
|
|
45679
45910
|
/* @__PURE__ */ jsx(
|
|
@@ -45938,7 +46169,8 @@ function AdditionalFieldsForHighExposureParentCompany(props) {
|
|
|
45938
46169
|
country,
|
|
45939
46170
|
formUtils,
|
|
45940
46171
|
fieldProblems,
|
|
45941
|
-
targetPage: HighExposurePagesEnums.PARENT_COMPANY_PAGE
|
|
46172
|
+
targetPage: HighExposurePagesEnums.PARENT_COMPANY_PAGE,
|
|
46173
|
+
setValidCurrency: setValid
|
|
45942
46174
|
}
|
|
45943
46175
|
),
|
|
45944
46176
|
/* @__PURE__ */ jsx(
|
|
@@ -45973,7 +46205,7 @@ function AdditionalFieldsForHighExposureUltimateParentCompany(props) {
|
|
|
45973
46205
|
(currentData) => getParentCompanySchemaKeys(currentData, parentCompaniesSchemaKeys),
|
|
45974
46206
|
[]
|
|
45975
46207
|
);
|
|
45976
|
-
const { handleChangeFor, data, valid, errors, fieldProblems, schema } = useForm({
|
|
46208
|
+
const { handleChangeFor, data, valid, errors, fieldProblems, schema, setValid } = useForm({
|
|
45977
46209
|
...props,
|
|
45978
46210
|
schema: getFormSchema2,
|
|
45979
46211
|
defaultData: { ...additionalFieldsForHighExposureUltimateParentCompanyData },
|
|
@@ -46067,7 +46299,8 @@ function AdditionalFieldsForHighExposureUltimateParentCompany(props) {
|
|
|
46067
46299
|
country,
|
|
46068
46300
|
formUtils,
|
|
46069
46301
|
fieldProblems,
|
|
46070
|
-
targetPage: HighExposurePagesEnums.ULTIMATE_PARENT_COMPANY_PAGE
|
|
46302
|
+
targetPage: HighExposurePagesEnums.ULTIMATE_PARENT_COMPANY_PAGE,
|
|
46303
|
+
setValidCurrency: setValid
|
|
46071
46304
|
}
|
|
46072
46305
|
),
|
|
46073
46306
|
/* @__PURE__ */ jsx(
|
|
@@ -46456,8 +46689,7 @@ function HighExposureDropin(props) {
|
|
|
46456
46689
|
id: companyFormId,
|
|
46457
46690
|
country,
|
|
46458
46691
|
handleFindAddress: getAddress2,
|
|
46459
|
-
handleAddressSearch: searchAddress2
|
|
46460
|
-
shouldValidate
|
|
46692
|
+
handleAddressSearch: searchAddress2
|
|
46461
46693
|
}
|
|
46462
46694
|
) }),
|
|
46463
46695
|
/* @__PURE__ */ jsx("div", { className: formWrapperClasses(activeForm2, ultimateParentCompanyFormId), children: /* @__PURE__ */ jsx(
|
|
@@ -46470,8 +46702,7 @@ function HighExposureDropin(props) {
|
|
|
46470
46702
|
id: companyFormId,
|
|
46471
46703
|
country,
|
|
46472
46704
|
handleFindAddress: getAddress2,
|
|
46473
|
-
handleAddressSearch: searchAddress2
|
|
46474
|
-
shouldValidate
|
|
46705
|
+
handleAddressSearch: searchAddress2
|
|
46475
46706
|
}
|
|
46476
46707
|
) })
|
|
46477
46708
|
] });
|
|
@@ -47629,11 +47860,11 @@ const IdVerificationDisclaimer = () => {
|
|
|
47629
47860
|
return /* @__PURE__ */ jsxs(Typography, { variant: "caption", color: "tertiary", className: styles$8.verificationDisclaimer, children: [
|
|
47630
47861
|
i18n.get("ifYouChooseToUseOnfido"),
|
|
47631
47862
|
" ",
|
|
47632
|
-
/* @__PURE__ */ jsx(Link, { href: "https://onfido.com/privacy/", external: true, children: i18n.get("onfidoPrivacyPolicy") }),
|
|
47863
|
+
/* @__PURE__ */ jsx(Link, { href: "https://onfido.com/privacy/", external: true, inline: true, children: i18n.get("onfidoPrivacyPolicy") }),
|
|
47633
47864
|
" ",
|
|
47634
47865
|
i18n.get("and"),
|
|
47635
47866
|
" ",
|
|
47636
|
-
/* @__PURE__ */ jsx(Link, { href: "https://onfido.com/terms-of-service/", external: true, children: i18n.get("onfidoTermsOfService") })
|
|
47867
|
+
/* @__PURE__ */ jsx(Link, { href: "https://onfido.com/terms-of-service/", external: true, inline: true, children: i18n.get("onfidoTermsOfService") })
|
|
47637
47868
|
] });
|
|
47638
47869
|
};
|
|
47639
47870
|
const verificationHeader = "adyen-kyc-verification-header";
|
|
@@ -47660,7 +47891,7 @@ const IdVerificationHeader = () => {
|
|
|
47660
47891
|
/* @__PURE__ */ jsxs(Typography, { variant: "body", color: "primary", className: styles$7.verificationHeaderContent, children: [
|
|
47661
47892
|
i18n.get("takeOrUploadAPhoto"),
|
|
47662
47893
|
" ",
|
|
47663
|
-
/* @__PURE__ */ jsx(Link, { href: "https://onfido.com", external: true, children: i18n.get("onfido") })
|
|
47894
|
+
/* @__PURE__ */ jsx(Link, { href: "https://onfido.com", external: true, inline: true, children: i18n.get("onfido") })
|
|
47664
47895
|
] })
|
|
47665
47896
|
] });
|
|
47666
47897
|
};
|
|
@@ -47826,18 +48057,17 @@ const UploadedDocument = ({ document: document2, onDelete, onUpdate }) => {
|
|
|
47826
48057
|
}
|
|
47827
48058
|
}) })
|
|
47828
48059
|
] }),
|
|
47829
|
-
/* @__PURE__ */
|
|
47830
|
-
|
|
47831
|
-
|
|
47832
|
-
|
|
47833
|
-
|
|
47834
|
-
|
|
47835
|
-
|
|
47836
|
-
|
|
47837
|
-
|
|
47838
|
-
|
|
47839
|
-
|
|
47840
|
-
] })
|
|
48060
|
+
/* @__PURE__ */ jsx(Spacer, {}),
|
|
48061
|
+
/* @__PURE__ */ jsx(
|
|
48062
|
+
IconButton,
|
|
48063
|
+
{
|
|
48064
|
+
onClick: onDelete,
|
|
48065
|
+
icon: "bin",
|
|
48066
|
+
variant: "secondary",
|
|
48067
|
+
ariaLabel: i18n.get("delete")
|
|
48068
|
+
}
|
|
48069
|
+
),
|
|
48070
|
+
/* @__PURE__ */ jsx(Button, { onClick: onUpdate, variant: "secondary", children: i18n.get("update") })
|
|
47841
48071
|
] });
|
|
47842
48072
|
};
|
|
47843
48073
|
const logger$h = createLogger("IdVerificationMethod");
|
|
@@ -47880,6 +48110,7 @@ function IdVerificationMethod({ legalEntityId, handlers }) {
|
|
|
47880
48110
|
residencyCountry: (_e2 = data.additionalPersonalDetails) == null ? void 0 : _e2.country
|
|
47881
48111
|
};
|
|
47882
48112
|
const launchOnfido = () => {
|
|
48113
|
+
clearError();
|
|
47883
48114
|
setStatus("onfidoModal");
|
|
47884
48115
|
handleFieldChange("idVerificationMethod")("instantVerification");
|
|
47885
48116
|
};
|
|
@@ -47929,6 +48160,7 @@ function IdVerificationMethod({ legalEntityId, handlers }) {
|
|
|
47929
48160
|
}
|
|
47930
48161
|
};
|
|
47931
48162
|
const handleUpdateDocument = () => {
|
|
48163
|
+
launchOnfido();
|
|
47932
48164
|
handlers.handleUpdateDocument();
|
|
47933
48165
|
};
|
|
47934
48166
|
const datasetUtils = datasetUtilities(i18n.locale);
|
|
@@ -47939,7 +48171,7 @@ function IdVerificationMethod({ legalEntityId, handlers }) {
|
|
|
47939
48171
|
UploadedDocument,
|
|
47940
48172
|
{
|
|
47941
48173
|
document: existingDocument,
|
|
47942
|
-
onDelete: () => setStatus("
|
|
48174
|
+
onDelete: () => setStatus("confirmDeleteDocumentModal"),
|
|
47943
48175
|
onUpdate: handleUpdateDocument
|
|
47944
48176
|
}
|
|
47945
48177
|
) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
@@ -48213,7 +48445,8 @@ function IndividualOnfidoDropin({
|
|
|
48213
48445
|
handleBackClick: externalBackClick,
|
|
48214
48446
|
trustedFields,
|
|
48215
48447
|
trustedFieldsProvider,
|
|
48216
|
-
trustedRoles
|
|
48448
|
+
trustedRoles,
|
|
48449
|
+
isInstantVerificationEnabled = true
|
|
48217
48450
|
}) {
|
|
48218
48451
|
var _a2, _b2, _c2, _d2;
|
|
48219
48452
|
const { accountHolder, setAccountHolder, idVerificationProviderId } = useCoreContext();
|
|
@@ -48398,8 +48631,9 @@ function IndividualOnfidoDropin({
|
|
|
48398
48631
|
derivedProps == null ? void 0 : derivedProps.requiredFields,
|
|
48399
48632
|
derivedProps == null ? void 0 : derivedProps.optionalFields
|
|
48400
48633
|
);
|
|
48401
|
-
|
|
48402
|
-
|
|
48634
|
+
const filteredForms = !isInstantVerificationEnabled ? requiredForms.filter((f) => f.formId !== "idVerificationMethod") : requiredForms;
|
|
48635
|
+
return addValidityToForms(filteredForms, form.isValid, problems);
|
|
48636
|
+
}, [derivedProps, form.isValid, isInstantVerificationEnabled, problems]);
|
|
48403
48637
|
const handleInstantIdVerificationStartCheck = async (onfidoResponse, legalEntityId) => {
|
|
48404
48638
|
const data2 = {
|
|
48405
48639
|
// providerId is not required in HO as this is already present in the startCheck endpoint
|
|
@@ -50247,9 +50481,10 @@ function TrustDropin({
|
|
|
50247
50481
|
const { showToast } = useToastContext();
|
|
50248
50482
|
const [loadingStatus, setLoadingStatus] = useState("success");
|
|
50249
50483
|
const formRef = useRef(null);
|
|
50484
|
+
const isUnincorporatedPartnership = taskType === TaskTypes.UNINCORPORATED_PARTNERSHIP;
|
|
50250
50485
|
const trustData = useMemo(
|
|
50251
|
-
() => mapLegalEntityToTrust(legalEntityResponse, isExperimentEnabled),
|
|
50252
|
-
[isExperimentEnabled, legalEntityResponse]
|
|
50486
|
+
() => isUnincorporatedPartnership ? mapLegalEntityToUnincorporatedPartnership(legalEntityResponse, isExperimentEnabled) : mapLegalEntityToTrust(legalEntityResponse, isExperimentEnabled),
|
|
50487
|
+
[isExperimentEnabled, legalEntityResponse, isUnincorporatedPartnership]
|
|
50253
50488
|
);
|
|
50254
50489
|
const currentCountry = useMemo(
|
|
50255
50490
|
() => {
|
|
@@ -50334,7 +50569,7 @@ function TrustDropin({
|
|
|
50334
50569
|
);
|
|
50335
50570
|
return addValidityToForms(requiredForms, formValidity, problems);
|
|
50336
50571
|
}, [derivedProps, formValidity, problems]);
|
|
50337
|
-
const
|
|
50572
|
+
const onSubmitTrust = async () => {
|
|
50338
50573
|
setLoadingStatus("loading");
|
|
50339
50574
|
const trustDetails = mapTrustToLegalEntity(currentState.data, isExperimentEnabled);
|
|
50340
50575
|
try {
|
|
@@ -50347,7 +50582,42 @@ function TrustDropin({
|
|
|
50347
50582
|
} catch (e) {
|
|
50348
50583
|
showToast({ label: i18n.get("failedToUpdateDetails"), type: "error" });
|
|
50349
50584
|
if (isValidationError(e)) {
|
|
50350
|
-
const validationErrors = processValidationErrors(e,
|
|
50585
|
+
const validationErrors = processValidationErrors(e, taskType);
|
|
50586
|
+
setProblems({ ...problems, validationErrors });
|
|
50587
|
+
} else if (isMaintenanceModeError(e)) {
|
|
50588
|
+
showToast({
|
|
50589
|
+
label: i18n.get("failedToUpdateDetails"),
|
|
50590
|
+
subLabel: i18n.get("maintenanceModeMessage"),
|
|
50591
|
+
type: "error",
|
|
50592
|
+
duration: "indefinite"
|
|
50593
|
+
});
|
|
50594
|
+
}
|
|
50595
|
+
setLoadingStatus("success");
|
|
50596
|
+
}
|
|
50597
|
+
};
|
|
50598
|
+
const onSubmitUnincorporatedPartnership = async () => {
|
|
50599
|
+
setLoadingStatus("loading");
|
|
50600
|
+
const unincorporatedPartnershipDetails = mapUnincorporatedPartnershipToLegalEntity(
|
|
50601
|
+
currentState.data,
|
|
50602
|
+
isExperimentEnabled
|
|
50603
|
+
);
|
|
50604
|
+
try {
|
|
50605
|
+
const updatedUnincorporatedPartnershipDetails = await submitTrustDetails(
|
|
50606
|
+
unincorporatedPartnershipDetails
|
|
50607
|
+
);
|
|
50608
|
+
await submitDocuments2({
|
|
50609
|
+
forms,
|
|
50610
|
+
legalEntity: updatedUnincorporatedPartnershipDetails,
|
|
50611
|
+
dataSubmitted: currentState.data
|
|
50612
|
+
});
|
|
50613
|
+
await attachTrustToParentLegalEntity(updatedUnincorporatedPartnershipDetails);
|
|
50614
|
+
setLoadingStatus("success");
|
|
50615
|
+
showToast({ label: i18n.get("successfullyUpdatedDetails"), type: "success" });
|
|
50616
|
+
externalOnSubmit == null ? void 0 : externalOnSubmit(currentState.data);
|
|
50617
|
+
} catch (e) {
|
|
50618
|
+
showToast({ label: i18n.get("failedToUpdateDetails"), type: "error" });
|
|
50619
|
+
if (isValidationError(e)) {
|
|
50620
|
+
const validationErrors = processValidationErrors(e, taskType);
|
|
50351
50621
|
setProblems({ ...problems, validationErrors });
|
|
50352
50622
|
} else if (isMaintenanceModeError(e)) {
|
|
50353
50623
|
showToast({
|
|
@@ -50395,7 +50665,7 @@ function TrustDropin({
|
|
|
50395
50665
|
const updatedParentLegalEntity = {
|
|
50396
50666
|
entityAssociations: [
|
|
50397
50667
|
{
|
|
50398
|
-
type:
|
|
50668
|
+
type: trust.type,
|
|
50399
50669
|
legalEntityId: trust.id
|
|
50400
50670
|
},
|
|
50401
50671
|
...existingEntityAssociations
|
|
@@ -50501,12 +50771,12 @@ function TrustDropin({
|
|
|
50501
50771
|
problems,
|
|
50502
50772
|
navigationTrackingParams: associatedLeTrackingParams,
|
|
50503
50773
|
forms,
|
|
50504
|
-
onSubmit
|
|
50774
|
+
onSubmit: isUnincorporatedPartnership ? onSubmitUnincorporatedPartnership : onSubmitTrust
|
|
50505
50775
|
});
|
|
50506
50776
|
return /* @__PURE__ */ jsx(
|
|
50507
50777
|
FormWrapper,
|
|
50508
50778
|
{
|
|
50509
|
-
taskName: "trustDetails",
|
|
50779
|
+
taskName: isUnincorporatedPartnership ? "unincorporatedDetails" : "trustDetails",
|
|
50510
50780
|
handleNextClick,
|
|
50511
50781
|
handleBackClick,
|
|
50512
50782
|
gotoFormByFormIndex,
|
|
@@ -50514,7 +50784,7 @@ function TrustDropin({
|
|
|
50514
50784
|
forms,
|
|
50515
50785
|
activeForm,
|
|
50516
50786
|
navigationTrackingParams: associatedLeTrackingParams,
|
|
50517
|
-
onSubmit,
|
|
50787
|
+
onSubmit: isUnincorporatedPartnership ? onSubmitUnincorporatedPartnership : onSubmitTrust,
|
|
50518
50788
|
hideSidebar,
|
|
50519
50789
|
handleHomeClick,
|
|
50520
50790
|
validateForm: () => setShouldValidate(true),
|
|
@@ -50539,7 +50809,8 @@ function TrustDropin({
|
|
|
50539
50809
|
handleAddressSearch,
|
|
50540
50810
|
handleFindAddress,
|
|
50541
50811
|
shouldValidate,
|
|
50542
|
-
ref: formRef
|
|
50812
|
+
ref: formRef,
|
|
50813
|
+
taskType
|
|
50543
50814
|
}
|
|
50544
50815
|
)
|
|
50545
50816
|
}
|
|
@@ -50585,17 +50856,7 @@ const CompanyTrustMemberTaskItem = ({
|
|
|
50585
50856
|
title: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
50586
50857
|
i18n.get("helpUsVerifyCompany"),
|
|
50587
50858
|
" ",
|
|
50588
|
-
/* @__PURE__ */ jsx(
|
|
50589
|
-
Link,
|
|
50590
|
-
{
|
|
50591
|
-
onClick: (e) => {
|
|
50592
|
-
e.preventDefault();
|
|
50593
|
-
onAddOwner();
|
|
50594
|
-
},
|
|
50595
|
-
href: "to-company-owner",
|
|
50596
|
-
children: i18n.get("providePersonalDetailsOfOwner")
|
|
50597
|
-
}
|
|
50598
|
-
)
|
|
50859
|
+
/* @__PURE__ */ jsx(Button, { onClick: onAddOwner, variant: "link", children: i18n.get("providePersonalDetailsOfOwner") })
|
|
50599
50860
|
] }),
|
|
50600
50861
|
className: "adyen-kyc-u-margin-top-16"
|
|
50601
50862
|
}
|
|
@@ -51194,7 +51455,7 @@ const hasProgressedBeyondEntitySelection = (legalEntity) => {
|
|
|
51194
51455
|
return hasOwnEntityAssocation || !!hasOrganizationType;
|
|
51195
51456
|
};
|
|
51196
51457
|
const Introduction = lazy$1(
|
|
51197
|
-
async () => (await import("./Introduction-
|
|
51458
|
+
async () => (await import("./Introduction-hqVjJq2m.js")).Introduction
|
|
51198
51459
|
);
|
|
51199
51460
|
const PAGES_WITH_POLLING = [TaskTypes.DECISION_MAKER_OVERVIEW, TaskTypes.TASKS_OVERVIEW];
|
|
51200
51461
|
const logger$d = createLogger("DropinComposer");
|
|
@@ -51205,9 +51466,10 @@ function DropinComposer({
|
|
|
51205
51466
|
onChange,
|
|
51206
51467
|
onLoad = noop$2,
|
|
51207
51468
|
onNavigate = noop$2,
|
|
51469
|
+
isInstantVerificationEnabled,
|
|
51208
51470
|
...args
|
|
51209
51471
|
}) {
|
|
51210
|
-
var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2, _j2, _k2, _l2, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w;
|
|
51472
|
+
var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2, _j2, _k2, _l2, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z;
|
|
51211
51473
|
const { contextCountry, accountHolder, setAccountHolder } = useCoreContext();
|
|
51212
51474
|
const { setCanSeeEntitySelection } = useCanSeeEntitySelection(legalEntityResponse.id);
|
|
51213
51475
|
const { i18n } = useI18nContext();
|
|
@@ -51846,6 +52108,7 @@ function DropinComposer({
|
|
|
51846
52108
|
handleFindAddress: args.handleFindAddress,
|
|
51847
52109
|
handleGetIdVerificationToken: args.handleGetIdVerificationToken,
|
|
51848
52110
|
handleGetIdVerificationStartCheck: args.handleGetIdVerificationStartCheck,
|
|
52111
|
+
isInstantVerificationEnabled,
|
|
51849
52112
|
isTargetLegalEntityType: targetLegalEntityType === LegalEntityType.INDIVIDUAL,
|
|
51850
52113
|
trustedFields: singpassTrustedFields,
|
|
51851
52114
|
trustedFieldsProvider: isEligibleForSingpass ? TrustedFieldsProvider.SINGPASS : void 0
|
|
@@ -52144,6 +52407,24 @@ function DropinComposer({
|
|
|
52144
52407
|
country: (_o = associatedLegalArrangement == null ? void 0 : associatedLegalArrangement.trust) == null ? void 0 : _o.countryOfGoverningLaw
|
|
52145
52408
|
}
|
|
52146
52409
|
);
|
|
52410
|
+
case TaskTypes.UNINCORPORATED_PARTNERSHIP:
|
|
52411
|
+
return /* @__PURE__ */ jsx(
|
|
52412
|
+
TrustDropin,
|
|
52413
|
+
{
|
|
52414
|
+
...args,
|
|
52415
|
+
taskType: TaskTypes.UNINCORPORATED_PARTNERSHIP,
|
|
52416
|
+
problems: associatedLegalArrangement ? (_p = capabilityProblems == null ? void 0 : capabilityProblems.LegalEntity) == null ? void 0 : _p[associatedLegalArrangement.id] : void 0,
|
|
52417
|
+
parentLegalEntity: rootLegalEntity,
|
|
52418
|
+
legalEntityResponse: associatedLegalArrangement,
|
|
52419
|
+
capabilities,
|
|
52420
|
+
onChange: handleOnChange,
|
|
52421
|
+
onSubmit: (data) => refreshLegalArrangementAndRunOnSubmit(data, 1),
|
|
52422
|
+
handleHomeClick: navigateBack,
|
|
52423
|
+
country: (((_q = associatedLegalArrangement == null ? void 0 : associatedLegalArrangement.unincorporatedPartnership) == null ? void 0 : _q.countryOfGoverningLaw) || ((_r = associatedLegalArrangement == null ? void 0 : associatedLegalArrangement.unincorporatedPartnership) == null ? void 0 : _r.registeredAddress.country)) ?? rootLegalEntityCountry,
|
|
52424
|
+
handleAddressSearch: args.handleAddressSearch,
|
|
52425
|
+
handleFindAddress: args.handleFindAddress
|
|
52426
|
+
}
|
|
52427
|
+
);
|
|
52147
52428
|
case TaskTypes.PCI_DSS:
|
|
52148
52429
|
return pciTemplateResponse ? /* @__PURE__ */ jsx(
|
|
52149
52430
|
PciDropin,
|
|
@@ -52168,8 +52449,8 @@ function DropinComposer({
|
|
|
52168
52449
|
legalEntityResponse: rootLegalEntity,
|
|
52169
52450
|
associatedLegalArrangement,
|
|
52170
52451
|
capabilities,
|
|
52171
|
-
problems: associatedLegalArrangement ? (
|
|
52172
|
-
country: (((
|
|
52452
|
+
problems: associatedLegalArrangement ? (_s = capabilityProblems == null ? void 0 : capabilityProblems.LegalEntity) == null ? void 0 : _s[associatedLegalArrangement.id] : void 0,
|
|
52453
|
+
country: (((_t = associatedLegalArrangement == null ? void 0 : associatedLegalArrangement.soleProprietorship) == null ? void 0 : _t.countryOfGoverningLaw) || ((_v = (_u = associatedLegalArrangement == null ? void 0 : associatedLegalArrangement.soleProprietorship) == null ? void 0 : _u.registeredAddress) == null ? void 0 : _v.country)) ?? rootLegalEntityCountry,
|
|
52173
52454
|
onChange: handleOnChange,
|
|
52174
52455
|
onSubmit: (data) => refreshLegalArrangementAndRunOnSubmit(data, 1),
|
|
52175
52456
|
handleGetDocument: args.handleGetDocument,
|
|
@@ -52198,11 +52479,11 @@ function DropinComposer({
|
|
|
52198
52479
|
parentLegalEntity: rootLegalEntity,
|
|
52199
52480
|
legalEntityResponse: associatedLegalArrangement,
|
|
52200
52481
|
capabilities,
|
|
52201
|
-
problems: associatedLegalArrangement ? (
|
|
52482
|
+
problems: associatedLegalArrangement ? (_w = capabilityProblems == null ? void 0 : capabilityProblems.LegalEntity) == null ? void 0 : _w[associatedLegalArrangement.id] : void 0,
|
|
52202
52483
|
onChange: handleOnChange,
|
|
52203
52484
|
onSubmit: (data) => refreshLegalArrangementAndRunOnSubmit(data, 1),
|
|
52204
52485
|
handleHomeClick: navigateBack,
|
|
52205
|
-
country: (((
|
|
52486
|
+
country: (((_x = associatedLegalArrangement == null ? void 0 : associatedLegalArrangement.soleProprietorship) == null ? void 0 : _x.countryOfGoverningLaw) || ((_z = (_y = associatedLegalArrangement == null ? void 0 : associatedLegalArrangement.soleProprietorship) == null ? void 0 : _y.registeredAddress) == null ? void 0 : _z.country)) ?? rootLegalEntityCountry,
|
|
52206
52487
|
handleAddressSearch: args.handleAddressSearch,
|
|
52207
52488
|
handleFindAddress: args.handleFindAddress
|
|
52208
52489
|
}
|
|
@@ -52305,7 +52586,7 @@ function OnboardingDropinComponent({
|
|
|
52305
52586
|
legalEntityId,
|
|
52306
52587
|
openBankingPartnerConfigId
|
|
52307
52588
|
}) {
|
|
52308
|
-
var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2;
|
|
52589
|
+
var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2, _j2;
|
|
52309
52590
|
if (!legalEntityId) {
|
|
52310
52591
|
throw new Error("Must provide at-least legalEntityId");
|
|
52311
52592
|
}
|
|
@@ -52417,7 +52698,8 @@ function OnboardingDropinComponent({
|
|
|
52417
52698
|
handleRefreshCompanyDataset: refreshCompanyDataset2,
|
|
52418
52699
|
handleClearCompanyData: clearCompanyData2,
|
|
52419
52700
|
handleVerifyTin: verifyTin2,
|
|
52420
|
-
handleOpenSingpassAuthorizationLink: openSingpassAuthorizationLink2
|
|
52701
|
+
handleOpenSingpassAuthorizationLink: openSingpassAuthorizationLink2,
|
|
52702
|
+
isInstantVerificationEnabled: (_j2 = (_i2 = providerStatus == null ? void 0 : providerStatus.statuses) == null ? void 0 : _i2.idDocument) == null ? void 0 : _j2.enabled
|
|
52421
52703
|
}
|
|
52422
52704
|
);
|
|
52423
52705
|
}
|
|
@@ -52745,7 +53027,6 @@ function ViewVerificationStatusComponent({
|
|
|
52745
53027
|
}
|
|
52746
53028
|
const componentsMap = {
|
|
52747
53029
|
individualDropin: IndividualDropin,
|
|
52748
|
-
individualOnfidoDropin: IndividualOnfidoDropin,
|
|
52749
53030
|
businessDetailsDropin: BusinessDetailsDropin,
|
|
52750
53031
|
companyDropin: CompanyDropin,
|
|
52751
53032
|
taskList: DropinComposer,
|
|
@@ -52960,28 +53241,6 @@ const individualDropinSchema = {
|
|
|
52960
53241
|
}
|
|
52961
53242
|
}
|
|
52962
53243
|
};
|
|
52963
|
-
const individualOnfidoDropinSchema = {
|
|
52964
|
-
handleUpdateLegalEntity: { type: "function", required: true },
|
|
52965
|
-
handleUpdateDocument: { type: "function", required: true },
|
|
52966
|
-
handleCreateDocument: { type: "function", required: true },
|
|
52967
|
-
handleGetDocument: { type: "function", required: true },
|
|
52968
|
-
onChange: { type: "function" },
|
|
52969
|
-
onSubmit: { type: "function" },
|
|
52970
|
-
readOnly: { type: "boolean" },
|
|
52971
|
-
country: { type: "string" },
|
|
52972
|
-
capabilities: { type: "array" },
|
|
52973
|
-
legalEntityResponse: {
|
|
52974
|
-
type: "object",
|
|
52975
|
-
required: true,
|
|
52976
|
-
propertiesSchema: {
|
|
52977
|
-
id: { type: "string", required: true },
|
|
52978
|
-
type: { type: "string", exactValue: LegalEntityType.INDIVIDUAL, required: true },
|
|
52979
|
-
documentDetails: { type: "array" },
|
|
52980
|
-
capabilities: { type: "object", required: true },
|
|
52981
|
-
individual: individualPropSchema
|
|
52982
|
-
}
|
|
52983
|
-
}
|
|
52984
|
-
};
|
|
52985
53244
|
const transferInstrumentSchema = {
|
|
52986
53245
|
id: { type: "string", required: true },
|
|
52987
53246
|
legalEntityId: { type: "string", required: true },
|
|
@@ -53229,7 +53488,6 @@ const componentsSchemaMap = {
|
|
|
53229
53488
|
businessDetailsDropin: businessDetailsDropinSchema,
|
|
53230
53489
|
companyDropin: companyDropinSchema,
|
|
53231
53490
|
individualDropin: individualDropinSchema,
|
|
53232
|
-
individualOnfidoDropin: individualOnfidoDropinSchema,
|
|
53233
53491
|
trustDropin: trustDropinSchema,
|
|
53234
53492
|
taskList: taskListSchema,
|
|
53235
53493
|
manageTransferInstrumentComponent: manageTransferInstrumentComponentSchema,
|
|
@@ -56191,7 +56449,7 @@ var TanstackQueryDevtools = (_k = class {
|
|
|
56191
56449
|
if (__privateGet(this, _Component)) {
|
|
56192
56450
|
Devtools = __privateGet(this, _Component);
|
|
56193
56451
|
} else {
|
|
56194
|
-
Devtools = lazy(() => import("./HO4MOOFI-
|
|
56452
|
+
Devtools = lazy(() => import("./HO4MOOFI-BrouQDMu.js"));
|
|
56195
56453
|
__privateSet(this, _Component, Devtools);
|
|
56196
56454
|
}
|
|
56197
56455
|
setupStyleSheet(__privateGet(this, _styleNonce), __privateGet(this, _shadowDOMTarget));
|
|
@@ -56313,7 +56571,7 @@ var TanstackQueryDevtoolsPanel = (_l = class {
|
|
|
56313
56571
|
if (__privateGet(this, _Component2)) {
|
|
56314
56572
|
Devtools = __privateGet(this, _Component2);
|
|
56315
56573
|
} else {
|
|
56316
|
-
Devtools = lazy(() => import("./HUY7CZI3-
|
|
56574
|
+
Devtools = lazy(() => import("./HUY7CZI3-07pJt4CB.js"));
|
|
56317
56575
|
__privateSet(this, _Component2, Devtools);
|
|
56318
56576
|
}
|
|
56319
56577
|
setupStyleSheet(__privateGet(this, _styleNonce2), __privateGet(this, _shadowDOMTarget2));
|
|
@@ -56534,7 +56792,7 @@ const useAnalytics = ({
|
|
|
56534
56792
|
componentName,
|
|
56535
56793
|
onboardingVersion
|
|
56536
56794
|
}) => {
|
|
56537
|
-
const sdkVersion = "3.
|
|
56795
|
+
const sdkVersion = "3.58.0";
|
|
56538
56796
|
const { isEmbeddedDropin, loadingContext: base } = useAuthContext();
|
|
56539
56797
|
const rootLegalEntity = useGlobalStore((store) => store.rootLegalEntity);
|
|
56540
56798
|
const countryCode = useGlobalStore((store) => store.rootLegalEntityCountry);
|
|
@@ -57025,7 +57283,7 @@ const ConfigurationApiProvider = ({
|
|
|
57025
57283
|
[authContext, rootLegalEntityId]
|
|
57026
57284
|
);
|
|
57027
57285
|
return /* @__PURE__ */ jsxs(ConfigurationApiContext.Provider, { value: contextValue, children: [
|
|
57028
|
-
/* @__PURE__ */ jsx("span", { className: "adyen-kyc__sdk-version", hidden: true, children: "3.
|
|
57286
|
+
/* @__PURE__ */ jsx("span", { className: "adyen-kyc__sdk-version", hidden: true, children: "3.58.0" }),
|
|
57029
57287
|
children2
|
|
57030
57288
|
] });
|
|
57031
57289
|
};
|
|
@@ -57143,7 +57401,7 @@ const useAllowedLocales = () => {
|
|
|
57143
57401
|
}, []);
|
|
57144
57402
|
return allowedLocales;
|
|
57145
57403
|
};
|
|
57146
|
-
const localeImports = /* @__PURE__ */ Object.assign({ "./locales/bg-BG.json": () => import("./bg-BG-
|
|
57404
|
+
const localeImports = /* @__PURE__ */ Object.assign({ "./locales/bg-BG.json": () => import("./bg-BG-BBRoobbQ.js"), "./locales/cs-CZ.json": () => import("./cs-CZ-ayQus68U.js"), "./locales/da-DK.json": () => import("./da-DK-Ct4SzJso.js"), "./locales/de-DE.json": () => import("./de-DE-DiCx4Je3.js"), "./locales/el-GR.json": () => import("./el-GR-D_xrKRCZ.js"), "./locales/en-US.json": () => Promise.resolve().then(() => enUS), "./locales/es-ES.json": () => import("./es-ES-DRwxjhQR.js"), "./locales/et-EE.json": () => import("./et-EE-Bwi8YTvo.js"), "./locales/fi-FI.json": () => import("./fi-FI-B7mjDfF2.js"), "./locales/fr-FR.json": () => import("./fr-FR-C3tWJfzX.js"), "./locales/hr-HR.json": () => import("./hr-HR-C_zpTrJI.js"), "./locales/hu-HU.json": () => import("./hu-HU-B1oY-zoH.js"), "./locales/it-IT.json": () => import("./it-IT-CgIredlK.js"), "./locales/lt-LT.json": () => import("./lt-LT-Csdyd99M.js"), "./locales/lv-LV.json": () => import("./lv-LV-XA7CIA01.js"), "./locales/nl-NL.json": () => import("./nl-NL-B3Wrg5_z.js"), "./locales/no-NO.json": () => import("./no-NO-BpduYOYo.js"), "./locales/pl-PL.json": () => import("./pl-PL-C3fwVuwv.js"), "./locales/pt-PT.json": () => import("./pt-PT-BCsJrX3M.js"), "./locales/ro-RO.json": () => import("./ro-RO-9UG_ovGp.js"), "./locales/sk-SK.json": () => import("./sk-SK-OgAE6uGt.js"), "./locales/sl-SI.json": () => import("./sl-SI-C79LrLFg.js"), "./locales/sv-SE.json": () => import("./sv-SE-B1PE0QYc.js") });
|
|
57147
57405
|
const loadLocale = async (locale) => {
|
|
57148
57406
|
const importForLocale = localeImports[`./locales/${locale}.json`];
|
|
57149
57407
|
if (!importForLocale) {
|
|
@@ -57600,10 +57858,10 @@ const transformModule = (highlights, codeNode, scope) => {
|
|
|
57600
57858
|
};
|
|
57601
57859
|
const supportedModules = ["plaintext", "json", "yaml", "css"];
|
|
57602
57860
|
const moduleMap = {
|
|
57603
|
-
plaintext: () => import("./plaintext-
|
|
57604
|
-
json: () => import("./json-
|
|
57605
|
-
yaml: () => import("./yaml-
|
|
57606
|
-
css: () => import("./css-
|
|
57861
|
+
plaintext: () => import("./plaintext-TI6YMNqC.js"),
|
|
57862
|
+
json: () => import("./json-DYilx73m.js"),
|
|
57863
|
+
yaml: () => import("./yaml-D4moATPr.js"),
|
|
57864
|
+
css: () => import("./css-C92d5WcD.js")
|
|
57607
57865
|
};
|
|
57608
57866
|
const getModule = async (name) => {
|
|
57609
57867
|
if (!supportedModules.includes(name)) {
|
|
@@ -57894,7 +58152,7 @@ const DebugModal = ({ onExit }) => {
|
|
|
57894
58152
|
const [tab, setTab] = useState("metadata");
|
|
57895
58153
|
const rootLegalEntity = useGlobalStore((store) => store.rootLegalEntity);
|
|
57896
58154
|
const metadata = {
|
|
57897
|
-
sdkVersion: "3.
|
|
58155
|
+
sdkVersion: "3.58.0",
|
|
57898
58156
|
locale: i18n.locale,
|
|
57899
58157
|
rootLegalEntityId: rootLegalEntity.id
|
|
57900
58158
|
};
|