import{A as r,Za as s,c as n,y as c}from"./chunk-4BILO7NM.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};
