import{$c as h,B as a,Xc as c,Y as E,aa as i,uh as H,vg as u,zh as m}from"./chunk-GKQGDBUU.js";import{i as p}from"./chunk-QVFSZZWQ.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:42345378061bf3c93df67acfa161b751a7b03cc91f3ede7c1f1cdf2bba62fe26*/
//# sourceMappingURL=chunk-AVVTA5TW.js.map
