@didomi/iabtcf-cmpapi
Version:
Ensures other in-page digital marketing technologies have access to CMP transparency and consent information for the iab. Transparency and Consent Framework (TCF).
1 lines • 879 B
JavaScript
;Object.defineProperty(exports,"__esModule",{value:!0}),exports.CmpApiModel=void 0;var index_js_1=require("./status/index.js"),EventListenerQueue_js_1=require("./EventListenerQueue.js"),Cache_js_1=require("./Cache.js"),CmpApiModel=function(){function e(){}return e.reset=function(){delete this.cmpId,delete this.cmpVersion,delete this.eventStatus,delete this.gdprApplies,delete this.tcModel,delete this.tcString,delete this.tcfPolicyVersion,this.cmpStatus=index_js_1.CmpStatus.LOADING,this.disabled=!1,this.displayStatus=index_js_1.DisplayStatus.HIDDEN,this.eventQueue.clear(),this.restrictionsCache.clear()},e.apiVersion="2",e.eventQueue=new EventListenerQueue_js_1.EventListenerQueue,e.cmpStatus=index_js_1.CmpStatus.LOADING,e.disabled=!1,e.displayStatus=index_js_1.DisplayStatus.HIDDEN,e.restrictionsCache=new Cache_js_1.Cache,e}();exports.CmpApiModel=CmpApiModel;