@adyen/kyc-components
Version:
This guide assumes that you have already an account with Adyen. A legalEntity needs to be created, and you need to have a `legalEntityId` to instatiate a Component.
20 lines (19 loc) • 1.69 kB
JavaScript
try {
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "6b074586-2709-4087-86dc-291e16b92d53", e._sentryDebugIdIdentifier = "sentry-dbid-6b074586-2709-4087-86dc-291e16b92d53");
} catch (e) {}
import { t as LegalEntityTypes } from "./legal-entity-type-VIfNYnJP.js";
import { t as CountryCodes } from "./country-code-CX5KqMBr.js";
//#region src/components/Trust/forms/TrustRoleAndEntityType/types.ts
var trustMemberLegalEntityTypes = [LegalEntityTypes.INDIVIDUAL, LegalEntityTypes.ORGANIZATION];
var countriesWhereSettlorExemptionReasonNotApplicable = [CountryCodes.NewZealand];
var settlorExemptionReasonWithNoneOfTheAbove = [...[
"contributionBelowThreshold",
"professionalServiceProvider",
"deceased"
], "noneOfTheAbove"];
var couldBeExemptSettlor = (data, country) => data.entityType === LegalEntityTypes.INDIVIDUAL && data.role !== void 0 && data.role.includes("settlor") && !data.role.some((role) => role !== "settlor") && (!country || !countriesWhereSettlorExemptionReasonNotApplicable.includes(country));
var isExemptSettlor = (data) => data.settlorExemptionReason?.some((reason) => reason !== "noneOfTheAbove") ?? false;
var isOrganizationAndSettlor = (data) => data.entityType === LegalEntityTypes.ORGANIZATION && data.role?.length === 1 && data.role[0] === "settlor";
//#endregion
export { trustMemberLegalEntityTypes as a, settlorExemptionReasonWithNoneOfTheAbove as i, isExemptSettlor as n, isOrganizationAndSettlor as r, couldBeExemptSettlor as t };