1import{Cd as c,Dd as p,P as o,U as m,Z as i,l as a}from"./chunk-P2OBJROK.js";import{g as n}from"./chunk-6IZLXKZM.js";var y=(()=>{class t{constructor(){this.requestService=i(p),this.impersonationDataService=i(c)}tryImpersonate(r,e=!0){return this.requestService.userCommand("TryImpersonate",{email:r}).pipe(o(s=>{s.success&&this.impersonationDataService.setData(s.userSummary,e)}))}refreshImpersonationData(){return n(this,null,function*(){try{let e=(yield a(this.impersonationDataService.getData()))?.email;return e?a(this.tryImpersonate(e,!1)).then(()=>!0):Promise.resolve(!0)}catch(r){return console.error("Error refreshing impersonation data"),Promise.resolve(!1)}})}createUserToImpersonate(r){return this.requestService.userCommand("CreateUserToImpersonate",r).pipe(o(e=>{e.success&&this.impersonationDataService.setData(e.userSummary)}))}static{this.\u0275fac=function(e){return new(e||t)}}static{this.\u0275prov=m({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();export{y as a};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.