import{r as e,g as s}from"./p-823ca21f.js";import{RegisterModel as t}from"../gc-model-register/lib/RegisterModel";import{c as i}from"./p-ab62068b.js";import{GcUtils as a}from"../gc-core-assets/lib/GcUtils";let r=class{constructor(s){e(this,s);this.impl=undefined;this.ignoreWriteOperationsWhenDisconnected=false;this.optional=false;this.defaultRefreshInterval=100;this.isDeviceArray=false}componentWillLoad(){if(a.isInDesigner){this.el["getAdditionalProperties"]=e=>this.impl.getSymbolSuggestions(e)}}async setSymbols(e){this.impl.setSymbols(e)}async getRegisterData(e){this.impl.getRegisterData(e)}async setRegisterData(e){this.impl.setRegisterData(e)}connectedCallback(){this.impl=new t(i(this.el))}disconnectedCallback(){this.impl.dispose()}onDeviceIdChanged(e,s){this.impl.onDeviceChanged()}onRegisterInfoChanged(e,s){this.impl?.loadRegisterInfo()}get el(){return s(this)}static get watchers(){return{deviceId:["onDeviceIdChanged"],registerInfo:["onRegisterInfoChanged"]}}};export{r as gc_model_register};
//# sourceMappingURL=p-655db040.entry.js.map