;
{
  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] = "1403043e-d37f-44f9-8c74-7a93ce194a09", e._sentryDebugIdIdentifier = "sentry-dbid-1403043e-d37f-44f9-8c74-7a93ce194a09");
  } catch (e) {
  }
}
;
class AdyenSdkEvent extends Event {
  eventName;
  value;
  constructor(eventName, value) {
    super(eventName, { bubbles: true, composed: true });
    this.eventName = eventName;
    this.value = value;
  }
}
const emitAdyenSdkEvent = (ref, name, data) => {
  if (!ref.current) {
    return;
  }
  const event = new AdyenSdkEvent(name, data);
  ref.current.dispatchEvent(event);
};
export {
  emitAdyenSdkEvent as e
};
