UNPKG

@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
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 = { [DecisionMakerTypes.CONTROLLING_PERSON]: { name: "controllingPerson", description: "controllingPersonDescription" }, [DecisionMakerTypes.OWNER]: { name: "owner", description: "ownerDescription" }, [DecisionMakerTypes.SIGNATORY]: { name: "signatory", description: "signatoryDescription" }, [DecisionMakerTypes.DIRECTOR]: { name: "director", description: "directorDescription" }, [TrustMemberTypes.DEFINED_BENEFICIARY]: { name: "definedBeneficiary", description: "definedBeneficiaryDescription" }, [TrustMemberTypes.UNDEFINED_BENEFICIARY]: { name: "undefinedBeneficiary", description: "undefinedBeneficiaryDescription" }, [TrustMemberTypes.PROTECTOR]: { name: "protector", description: "personAppointmentUnderTrustInstrument" }, [TrustMemberTypes.TRUSTEE]: { name: "trustee", description: "legalOwnerOfProperty" }, [TrustMemberTypes.SETTLOR]: { name: "settlor", description: "entityEstablishingTrust" }, [TrustMemberGuidanceLabels.BENEFICIARY]: { name: TrustMemberGuidanceLabels.BENEFICIARY }, [TrustMemberGuidanceLabels.TRUSTEE]: { name: TrustMemberGuidanceLabels.TRUSTEE }, [UnincorporatedPartnershipMemberTypes.SECONDARY_PARTNER]: { 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 };