import{a as c}from"./chunk-272SKCAM.js";import{ka as o,na as n,s as a}from"./chunk-7SRP4E7J.js";var p=(()=>{let t=class t{constructor(i){this._rest=i}changeApiKey(i){return this._rest.post("change-api-key",i).pipe(a(e=>e?.info?.["api-key"]||void 0))}};t.\u0275fac=function(e){return new(e||t)(n(c))},t.\u0275prov=o({token:t,factory:t.\u0275fac,providedIn:"root"});let r=t;return r})();var d=(()=>{let t=class t{constructor(i){this._api=i}changeApiKey(i,e){let s={user_id:String(i),role:e.toLowerCase()};return this._api.changeApiKey(s)}};t.\u0275fac=function(e){return new(e||t)(n(p))},t.\u0275prov=o({token:t,factory:t.\u0275fac,providedIn:"root"});let r=t;return r})();export{d as a};
