import{Fa as er,Ja as g,Mr as S$1,ea as ae,fc as vn,pi as Wn,ro as he}from"./chunk-b0nJCs5_.js";import{r as b}from"./chunk-CswnO8Ym.js";var S=class a{static BASE_PLAYER_SETTINGS_URL=ae.apiUrl+`/api/v1/player-settings/`;authHttp=g(Wn);restExtractor=g(er);getVideoSettings(t){let e=b.buildVideoPasswordHeader(t.videoPassword),r=a.BASE_PLAYER_SETTINGS_URL+`videos/`+t.videoId,n=new vn;return t.raw&&(n=n.set(`raw`,`true`)),this.authHttp.get(r,{params:n,headers:e}).pipe(he(g=>this.restExtractor.handleError(g)))}updateVideoSettings(t){let e=a.BASE_PLAYER_SETTINGS_URL+`videos/`+t.videoId;return this.authHttp.put(e,t.settings).pipe(he(r=>this.restExtractor.handleError(r)))}getChannelSettings(t){let e=a.BASE_PLAYER_SETTINGS_URL+`video-channels/`+t.channelHandle,r=new vn;return t.raw&&(r=r.set(`raw`,`true`)),this.authHttp.get(e,{params:r}).pipe(he(n=>this.restExtractor.handleError(n)))}updateChannelSettings(t){let e=a.BASE_PLAYER_SETTINGS_URL+`video-channels/`+t.channelHandle;return this.authHttp.put(e,t.settings).pipe(he(r=>this.restExtractor.handleError(r)))}static ɵfac=function(e){return new(e||a)};static ɵprov=S$1({token:a,factory:a.ɵfac})};export{S as t};
//# debugId=c70099eb-44c2-511d-ab5a-e4403ad782ae
//# sourceMappingURL=chunk-D6vJfxN82.js.map