import {a}from'./chunk-L2JLFSNM.js';import {Brush}from'@scandit/web-datacapture-core';var l=class{constructor(r){this.basicOverlay=r;}didTapTrackedBarcode(r){var a$1,e;this.basicOverlay.listener!=null&&((e=(a$1=this.basicOverlay.listener).didTapTrackedBarcode)==null||e.call(a$1,this.basicOverlay,a.fromJSON(r)));}didUpdateSession(r,a){var i,o,s,d;if(this.basicOverlay.listener==null)return;let e=false;for(let c of Object.values(a.trackedBarcodes)){let t=(s=(o=(i=this.basicOverlay.listener).brushForTrackedBarcode)==null?void 0:o.call(i,this.basicOverlay,c))!=null?s:null;if(t!=null){let n=(d=this.basicOverlay._brushesForBarcodes.get(c.identifier))!=null?d:null;Brush.areEquals(t,n)||(this.basicOverlay._brushesForBarcodes.set(c.identifier,t),e=true);}}e&&this.basicOverlay.barcodeBatch.notifyContext();}};export{l as a};