import{B as a,Eh as H,Jh as m,Y as E,aa as i,dd as c,hd as h,pf as u}from"./chunk-THW6YIIG.js";import{i as p}from"./chunk-PTJGHD3V.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:90f1dd82a779b57eddc91ef20913c88eecaa9632bba8ac04ad50f47ae2b82df7*/
//# sourceMappingURL=chunk-XCGJBSLE.js.map
