import{inject as o}from"@angular/core";import{HttpClient as a}from"@angular/common/http";import{Subject as i}from"rxjs";import*as n from"@angular/core";var s=class t{http=o(a);_unlocked$=new i;unlocked$=this._unlocked$.asObservable();emitUnlocked(){this._unlocked$.next()}getStatus(){return this.http.get("/api/encryption/status")}unlock(e){return this.http.post("/api/encryption/unlock",{password:e})}lock(){return this.http.post("/api/encryption/lock",{})}static \u0275fac=function(r){return new(r||t)};static \u0275prov=n.\u0275\u0275defineInjectable({token:t,factory:t.\u0275fac,providedIn:"root"})};export{s as a};
