UNPKG

@adyen/adyen-web

Version:

[![npm](https://img.shields.io/npm/v/@adyen/adyen-web.svg)](https://www.npmjs.com/package/@adyen/adyen-web)

3 lines (2 loc) 638 B
import{AnalyticsEventCategory as r}from"./events/AbstractAnalyticsEvent.js";function t(r,t,e){return t in r?Object.defineProperty(r,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):r[t]=e,r}class e{add(t){const e=t.getEventCategory();e===r.info&&this.info.push(t),e===r.error&&this.errors.push(t),e===r.log&&this.logs.push(t)}get infoEvents(){return this.info}get errorEvents(){return this.errors}get logEvents(){return this.logs}clear(){this.info=[],this.errors=[],this.logs=[]}constructor(){t(this,"info",[]),t(this,"errors",[]),t(this,"logs",[])}}export{e as AnalyticsEventQueue}; //# sourceMappingURL=AnalyticsEventQueue.js.map