const GdbCmp = (function () { function Constructor() { this.__elem = document.createElement('div'); } Constructor.prototype.onConsent = function ( consentData, consentObject, publisherConsentObject ) { this.consentData = consentData; this.consentObject = consentObject; this.publisherConsentObject = publisherConsentObject; var event = new CustomEvent('consent'); this.__elem.dispatchEvent(event); }; Constructor.prototype.addEventListener = function (cb) { this.__elem.addEventListener('consent', cb); cb(); }; Constructor.prototype.removeEventListener = function (cb) { this.__elem.removeEventListener('consent', cb); }; return Constructor; })(); var __gdb_cmp = new GdbCmp(); (function () { var el = document.createElement('script'); el.src = 'https://cmp.pubtech.ai/253/pubtech-cmp-v2-esm.js'; el.type = 'module'; document.head.appendChild(el); })(); var __pub_tech_cmp_on_consent_queue = __pub_tech_cmp_on_consent_queue || []; __pub_tech_cmp_on_consent_queue.push( function onConsent(consentData, consentObject, publisherConsentObject) { __gdb_cmp.onConsent(consentData, consentObject, publisherConsentObject); } );