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.

15 lines (14 loc) 867 B
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] = "c4c4c70d-6f59-45d5-bf62-c4e0731abbf3", e._sentryDebugIdIdentifier = "sentry-dbid-c4c4c70d-6f59-45d5-bf62-c4e0731abbf3"); } catch (e) {} import { l as keysOf } from "./AnalyticsContext-BFrJmsp0.js"; //#region src/utils/isEmpty.ts var isEmpty = (obj, ignoreEmptyProperties = true) => { if (obj === null || obj === void 0) return true; if (Array.isArray(obj)) return obj.length === 0; if (typeof obj !== "object") return false; return keysOf(obj).every((key) => !Object.hasOwn(obj, key) || ignoreEmptyProperties && isEmpty(obj[key], true)); }; //#endregion export { isEmpty as t };