import {a}from'./chunk-L2JLFSNM.js';var s=class t{constructor(){this._foundTrackedBarcodesInLastProcessedFrame={};}get foundTrackedBarcodesInLastProcessedFrame(){return this._foundTrackedBarcodesInLastProcessedFrame}get addedTrackedBarcodes(){return this._addedTrackedBarcodes}get allFoundItems(){return this._allFoundItems}get removedTrackedBarcodes(){return this._removedTrackedBarcodes}get updatedTrackedBarcodes(){return this._updatedTrackedBarcodes}get trackedBarcodes(){return this._trackedBarcodes}get frameSequenceID(){return this._frameSequenceID}static fromJSON(r){let d=new t;d._allFoundItems=r.allFoundItems,d._foundTrackedBarcodesInLastProcessedFrame=Object.entries(r.foundTrackedBarcodesInLastProcessedFrame).reduce((e,[c,o])=>(e[c]=a.fromJSON(o),e),{}),d._frameSequenceID=r.frameSequenceId,d._addedTrackedBarcodes=r.addedTrackedBarcodes.map(e=>a.fromJSON(e));for(let e of d._addedTrackedBarcodes)e.sessionFrameSequenceID=`${r.frameSequenceId}`;d._removedTrackedBarcodes=r.removedTrackedBarcodes,d._updatedTrackedBarcodes=r.updatedTrackedBarcodes.map(e=>a.fromJSON(e));for(let e of d._updatedTrackedBarcodes)e.sessionFrameSequenceID=`${r.frameSequenceId}`;return d._trackedBarcodes=Object.keys(r.trackedBarcodes).reduce((e,c)=>{let o=a.fromJSON(r.trackedBarcodes[c]);return o.sessionFrameSequenceID=`${r.frameSequenceId}`,e[c]=o,e},{}),d._frameSequenceID=r.frameSequenceId,d}};export{s as a};