import{B as a,Kh as H,Ph as m,Y as E,aa as i,fd as c,id as h,sf as u}from"./chunk-HJJWL6RD.js";import{i as p}from"./chunk-H2BCKOF6.js";var t=class t{authHttp=i(h);restService=i(m);restExtractor=i(H);changeOwnership(e,r){let s=t.BASE_VIDEO_CHANGE_OWNERSHIP_URL+e+"/give-ownership",o={username:r};return this.authHttp.post(s,o).pipe(a(n=>this.restExtractor.handleError(n)))}getOwnershipChanges(e,r){let s=t.BASE_VIDEO_CHANGE_OWNERSHIP_URL+"ownership",o=new c;return o=this.restService.addRestGetParams(o,e,r),this.authHttp.get(s,{params:o}).pipe(a(n=>this.restExtractor.handleError(n)))}acceptOwnership(e,r){let s=t.BASE_VIDEO_CHANGE_OWNERSHIP_URL+"ownership/"+e+"/accept";return this.authHttp.post(s,r).pipe(a(o=>this.restExtractor.handleError(o)))}refuseOwnership(e){let r=t.BASE_VIDEO_CHANGE_OWNERSHIP_URL+"ownership/"+e+"/refuse";return this.authHttp.post(r,{}).pipe(a(s=>this.restExtractor.handleError(s)))}};p(t,"BASE_VIDEO_CHANGE_OWNERSHIP_URL",u.apiUrl+"/api/v1/videos/"),p(t,"\u0275fac",function(r){return new(r||t)}),p(t,"\u0275prov",E({token:t,factory:t.\u0275fac}));var l=t;export{l as a};
/**i18n:671d995daee9c68b73ac729b7ab2c3cf3be32c7f1a24d9dfa94e261c45ee5241*/
//# sourceMappingURL=chunk-OET7Q3S6.js.map
