@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) • 870 B
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] = "76ca99c8-9477-4cbe-abbb-64e3512210e8", e._sentryDebugIdIdentifier = "sentry-dbid-76ca99c8-9477-4cbe-abbb-64e3512210e8");
} catch (e) {}
import { d as keysOf } from "./useAnalyticsContext-BVFDMrVE.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 };