import{Bc as zn,Hs as se,Wa as g,Wt as Jn,fr as S$1,pc as vn,ro as he}from"./chunk-B_pj7Jpm.js";import{r as b}from"./chunk-CagJEiiY.js";var S=class a{static BASE_PLAYER_SETTINGS_URL=se.apiUrl+`/api/v1/player-settings/`;authHttp=g(zn);restExtractor=g(Jn);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=ba46af60-5403-5463-857e-40927c4ae773
//# sourceMappingURL=chunk-0S7iE8qE2.js.map