import{Rc as a,U as c,V as n,aa as h,dg as f,ed as l,of as o,pf as s}from"./chunk-HONMJZOB.js";var p=(()=>{class t{getPeripheralAgents(){return o.getWorkstation()?.peripheralAgents}isPeripheralAgentWithAttachedDevices(e){return e.serialDevices.length>0||!s.isNullOrUndefined(e.tcpDevice)||e.uhfDevices.length>0}filterEmptyPeripheralAgents(e){return e.filter(i=>this.isPeripheralAgentWithAttachedDevices(i))}getPeripheralAgentsWithSingleReadDevices(){let e=this.getPeripheralAgents();return s.isNullOrEmptyArray(e)?[]:(e.forEach(i=>{i.serialDevices=i.serialDevices.filter(r=>this.isSerialDeviceForReadingIDCodes(r)),i.uhfDevices=i.uhfDevices.filter(r=>r.uhfDeviceType===l.SINGLE)}),this.filterEmptyPeripheralAgents(e))}isSerialDeviceForReadingIDCodes(e){return e.deviceType===a.BAR}getPeripheralAgentsWithMultiReadDevices(){let e=this.getPeripheralAgents();return s.isNullOrEmptyArray(e)?[]:(e.forEach(i=>{i.serialDevices=[],i.uhfDevices=i.uhfDevices.filter(r=>r.uhfDeviceType===l.MULTI)}),this.filterEmptyPeripheralAgents(e))}getPeripheralAgentsWithWeighingScales(){let e=this.getPeripheralAgents();return e.forEach(i=>{i.serialDevices=i.serialDevices.filter(r=>r.deviceType===a.WEI),i.tcpDevice=null,i.uhfDevices=[]}),this.filterEmptyPeripheralAgents(e)}arePeripheralAgentsWithWeighingScalesConfigured(){return!s.isNullOrEmptyArray(this.getPeripheralAgentsWithWeighingScales())}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=c({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var u=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=h({type:t})}static{this.\u0275inj=n({imports:[f]})}}return t})();export{p as a,u as b};
