import{Ya as s,c as n,x as c,z as r}from"./chunk-OS6UA6LL.js";var h=(()=>{let t=class t{constructor(i){this.http=i,this.ip=new n(void 0),this.deviceInfo=new n(void 0),this.location=new n(void 0),this.init()}init(){this.getDeviceInfo(),this.getLocation()}getDeviceInfo(){this.http.get("{{openApi}}/system/device-info").subscribe({next:e=>{this.deviceInfo.next(e)}})}watchDeviceInfo(){}getLocation(){let i=this.location.getValue();navigator.geolocation!=null&&i!=null&&navigator.geolocation.getCurrentPosition(e=>{this.location.next(e)},e=>{},{enableHighAccuracy:!0,timeout:1e4,maximumAge:0})}getLogs(){return this.http.get("{{api}}/system/logs/all")}ngOnDestroy(){}};t.\u0275fac=function(e){return new(e||t)(r(s))},t.\u0275prov=c({token:t,factory:t.\u0275fac});let o=t;return o})();export{h as a};
