@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.
57 lines (56 loc) • 2.29 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] = "733751d5-cf6b-4a1e-a52e-c1628715a278", e._sentryDebugIdIdentifier = "sentry-dbid-733751d5-cf6b-4a1e-a52e-c1628715a278");
} catch (e) {}
import { t as DecisionMakerTypes } from "./decision-maker-type-Cow3CpUd.js";
import { n as TrustMemberGuidanceLabels, r as TrustMemberTypes } from "./trustMemberGuidance-B3VWjXzg.js";
import { t as UnincorporatedPartnershipMemberTypes } from "./unincorporated-partnership-5MvG_ts4.js";
//#region src/utils/roleMetadata.ts
var roleMetadata = {
[]: {
name: "controllingPerson",
description: "controllingPersonDescription"
},
[]: {
name: "owner",
description: "ownerDescription"
},
[]: {
name: "signatory",
description: "signatoryDescription"
},
[]: {
name: "director",
description: "directorDescription"
},
[]: {
name: "definedBeneficiary",
description: "definedBeneficiaryDescription"
},
[]: {
name: "undefinedBeneficiary",
description: "undefinedBeneficiaryDescription"
},
[]: {
name: "protector",
description: "personAppointmentUnderTrustInstrument"
},
[]: {
name: "trustee",
description: "legalOwnerOfProperty"
},
[]: {
name: "settlor",
description: "entityEstablishingTrust"
},
[]: { name: TrustMemberGuidanceLabels.BENEFICIARY },
[]: { name: TrustMemberGuidanceLabels.TRUSTEE },
[]: {
name: UnincorporatedPartnershipMemberTypes.SECONDARY_PARTNER,
description: "secondaryPartnerGuideDescription"
}
};
var getRoleTagVariant = (role) => roleMetadata[role]?.variant ?? "blue";
var getRoleName = (role) => roleMetadata[role]?.name ?? role;
//#endregion
export { getRoleTagVariant as n, roleMetadata as r, getRoleName as t };