1import{Af as l,B as a,C as h,D as E,Y as H,aa as u,gh as R,i as p,lh as N,md as c,pd as C}from"./chunk-HVCWS4IF.js";import{j as o}from"./chunk-KJ7W2O2B.js";var n=class n{authHttp=u(C);restService=u(N);restExtractor=u(R);sendVideoChangeRequest(r,t){let e=n.BASE_VIDEO_CHANGE_OWNERSHIP_URL+r+"/give-ownership",s={username:t};return this.authHttp.post(e,s).pipe(a(i=>this.restExtractor.handleError(i)))}listOfVideos(r,t){let e=n.BASE_VIDEO_CHANGE_OWNERSHIP_URL+"ownership",s=new c;return s=this.restService.addRestGetParams(s,r,t),this.authHttp.get(e,{params:s}).pipe(a(i=>this.restExtractor.handleError(i)))}listFromVideo(r,t){let e=n.BASE_VIDEO_CHANGE_OWNERSHIP_URL+r+"/ownership",s=new c;return s=s.set("state",t),this.authHttp.get(e,{params:s}).pipe(a(i=>this.restExtractor.handleError(i)))}acceptVideo(r,t){return p(r).pipe(E(e=>{let s=n.BASE_VIDEO_CHANGE_OWNERSHIP_URL+"ownership/"+e+"/accept";return this.authHttp.post(s,t)}),h(),a(e=>this.restExtractor.handleError(e)))}rejectVideo(r){return p(r).pipe(E(t=>{let e=n.BASE_VIDEO_CHANGE_OWNERSHIP_URL+"ownership/"+t+"/refuse";return this.authHttp.post(e,{})}),h(),a(t=>this.restExtractor.handleError(t)))}cancelVideo(r){let t=n.BASE_VIDEO_CHANGE_OWNERSHIP_URL+"ownership/"+r;return this.authHttp.delete(t).pipe(a(e=>this.restExtractor.handleError(e)))}sendChannelChangeRequest(r,t){let e=n.BASE_CHANNEL_CHANGE_OWNERSHIP_URL+r+"/give-ownership",s={username:t};return this.authHttp.post(e,s).pipe(a(i=>this.restExtractor.handleError(i)))}listOfChannels(r,t){let e=n.BASE_CHANNEL_CHANGE_OWNERSHIP_URL+"ownership",s=new c;return s=this.restService.addRestGetParams(s,r,t),this.authHttp.get(e,{params:s}).pipe(a(i=>this.restExtractor.handleError(i)))}listFromChannel(r,t){let e=n.BASE_CHANNEL_CHANGE_OWNERSHIP_URL+r+"/ownership",s=new c;return s=s.set("state",t),this.authHttp.get(e,{params:s}).pipe(a(i=>this.restExtractor.handleError(i)))}acceptChannel(r){return p(r).pipe(E(t=>{let e=n.BASE_CHANNEL_CHANGE_OWNERSHIP_URL+"ownership/"+t+"/accept";return this.authHttp.post(e,{})}),h(),a(t=>this.restExtractor.handleError(t)))}rejectChannel(r){return p(r).pipe(E(t=>{let e=n.BASE_CHANNEL_CHANGE_OWNERSHIP_URL+"ownership/"+t+"/refuse";return this.authHttp.post(e,{})}),h(),a(t=>this.restExtractor.handleError(t)))}cancelChannel(r){let t=n.BASE_CHANNEL_CHANGE_OWNERSHIP_URL+"ownership/"+r;return this.authHttp.delete(t).pipe(a(e=>this.restExtractor.handleError(e)))}};o(n,"BASE_VIDEO_CHANGE_OWNERSHIP_URL",l.apiUrl+"/api/v1/videos/"),o(n,"BASE_CHANNEL_CHANGE_OWNERSHIP_URL",l.apiUrl+"/api/v1/video-channels/"),o(n,"\u0275fac",function(t){return new(t||n)}),o(n,"\u0275prov",H({token:n,factory:n.\u0275fac}));var O=n;export{O as a}; 2/**i18n:347eeb695970c32bc275618edc2e751c67145d9fc3012e70543c114a99b9e016*/
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.