import{b as g,c as d}from"./chunk-7EAWKBIV.js";import{$b as S,Aa as h,C as v,c as s}from"./chunk-ATD4AEXQ.js";import{Qc as u,Ua as f,ca as o,da as l,fa as n}from"./chunk-BXH3QC5E.js";var c=(()=>{class e{peripheralAgentService;constructor(r){this.peripheralAgentService=r}connectToSerialDeviceThroughPeripheralAgent(r,i,a){let t=new u;return t=t.append("async",!0),a&&(t=t.append("suppressToastError",!0)),this.peripheralAgentService.post(this.getURLForConnection(r),i,t)}getURLForConnection(r){return S.isNullOrUndefined(r)?null:`${this.getPeripheralAgentCommunicationProtocol()}://${r.hostname}:${r.portNumber}${this.peripheralAgentService.getBaseURL()}${v.CONNECT_TO_SERIAL_DEVICE}`}getPeripheralAgentCommunicationProtocol(){return d.properties.peripheralAgentSecureConnection?s.HTTP_SECURE:s.HTTP}static \u0275fac=function(i){return new(i||e)(n(g))};static \u0275prov=o({token:e,factory:e.\u0275fac})}return e})();var p=(()=>{class e{serialDeviceService;constructor(r){this.serialDeviceService=r}connectToSerialDeviceThroughPeripheralAgent(r,i,a){return this.serialDeviceService.connectToSerialDeviceThroughPeripheralAgent(r,i,a)}static \u0275fac=function(i){return new(i||e)(n(c))};static \u0275prov=o({token:e,factory:e.\u0275fac})}return e})();var A=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275mod=f({type:e});static \u0275inj=l({providers:[c,p]})}return e})();var m=class extends h{serialDeviceConfiguration};export{m as a,p as b,A as c};
