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] = "11a3330c-e3d8-477b-84ef-a2252757e58c", e._sentryDebugIdIdentifier = "sentry-dbid-11a3330c-e3d8-477b-84ef-a2252757e58c");
} catch (e) {}
var AdyenSdkEvent = class extends Event {
	eventName;
	value;
	constructor(eventName, value) {
		super(eventName, {
			bubbles: true,
			composed: true
		});
		this.eventName = eventName;
		this.value = value;
	}
};
/**
* Emits an event that can be listened to by the consumers
* This means, for an event of 'complete'
* - react/preact: `onComplete={handleIt}`
* - vue: `@complete=(handleIt)`
* - html: adyenComponent.addEventListener('complete', handleIt)
*
* @param ref a useRef result from inside the web-component
* @param name event name, lowercase, eg: 'complete'
* @param data data the consumer receives, like a payload
* @returns
*/
var emitAdyenSdkEvent = (ref, name, data) => {
	if (!ref.current) return;
	const event = new AdyenSdkEvent(name, data);
	ref.current.dispatchEvent(event);
};
//#endregion
export { emitAdyenSdkEvent as t };
