import{H as s,a0 as t,$ as e,W as i,a1 as r}from"./ppyR687H.js";import"events";const h="BATCH",a="Please check required fields";class n extends s{_hits;get hits(){return this._hits}set hits(s){this._hits=s}constructor(s){super({...s,visitorId:"",anonymousId:"",type:h}),this.hits=s.hits}isReady(){return!!(super.isReady()&&this.hits&&this.hits.length>0&&this.hits.every((s=>s.isReady(!1))))}toApiKeys(){const s={[t]:this.ds,[e]:`${this.config?.envId}`,[r]:this.type,[i]:Date.now()-this.createdAt};return s.h=this.hits.map((s=>{const i=s.toApiKeys();return delete i[t],delete i[e],i})),s}getErrorMessage(){return a}}export{h as BATCH,n as Batch,a as ERROR_MESSAGE};
//# sourceMappingURL=CMCQ9mvz.js.map
