import{a}from"./chunk-UE5ITDPV.js";import{Ib as s,J as r,M as c,e as n}from"./chunk-4SVIVQBS.js";var g=(()=>{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(){let i=`${a.API_URL}/system/device-info`;this.http.get(i).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)(c(s))},t.\u0275prov=r({token:t,factory:t.\u0275fac});let o=t;return o})();export{g as a};
