import{B as a,Y as E,aa as i,bh as H,gh as m,hd as c,kd as h,uf as u}from"./chunk-6YFOH76E.js";import{i as p}from"./chunk-QQ7SJNXU.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:5a85df092a135682c90bae008e37ec28160e04e5f445e29af2927333ba91ffa1*/
//# sourceMappingURL=chunk-WKJW55R5.js.map
