import{r as s,g as t}from"./p-823ca21f.js";import{UsbTransport as e}from"../gc-transport-usb/lib/UsbTransport";import{c as i}from"./p-ab62068b.js";import{ServicesRegistry as r}from"../gc-core-services/lib/ServicesRegistry";import{targetConfigServiceType as c}from"../gc-service-target-config/lib/TargetConfigService";import{createPropertyAutoFill as a}from"../gc-core-assets/lib/GcDesigner";const o=r.getService(c);let n=class{constructor(t){s(this,t);this.impl=undefined;this.propertyAutoFill=undefined;this.usb=false;this.hid=false;this.web=false;this.defaultBaudRate=9600;this.flowControl=false;this.optional=false}connectedCallback(){this.impl=new e(i(this.el));this.propertyAutoFill=a(this.el);this.propertyAutoFill.register("deviceName",(async()=>(await o.getBoardsAndDevices()).map((s=>s.id))))}disconnectedCallback(){this.propertyAutoFill.unregister("deviceName");this.impl.dispose()}get el(){return t(this)}};export{n as gc_transport_usb};
//# sourceMappingURL=p-2dc02fa5.entry.js.map