import {aV as oe,g,aS as kn,aT as to,e$ as _,aW as ln,aX as fe,aY as S}from'./main-sJAtkqeq.js';var l=class a{static BASE_PLAYER_SETTINGS_URL=oe.apiUrl+"/api/v1/player-settings/";authHttp=g(kn);restExtractor=g(to);getVideoSettings(t){let e=_.buildVideoPasswordHeader(t.videoPassword),r=a.BASE_PLAYER_SETTINGS_URL+"videos/"+t.videoId,i=new ln;return t.raw&&(i=i.set("raw","true")),this.authHttp.get(r,{params:i,headers:e}).pipe(fe(S=>this.restExtractor.handleError(S)))}updateVideoSettings(t){let e=a.BASE_PLAYER_SETTINGS_URL+"videos/"+t.videoId;return this.authHttp.put(e,t.settings).pipe(fe(r=>this.restExtractor.handleError(r)))}getChannelSettings(t){let e=a.BASE_PLAYER_SETTINGS_URL+"video-channels/"+t.channelHandle,r=new ln;return t.raw&&(r=r.set("raw","true")),this.authHttp.get(e,{params:r}).pipe(fe(i=>this.restExtractor.handleError(i)))}updateChannelSettings(t){let e=a.BASE_PLAYER_SETTINGS_URL+"video-channels/"+t.channelHandle;return this.authHttp.put(e,t.settings).pipe(fe(r=>this.restExtractor.handleError(r)))}static \u0275fac=function(e){return new(e||a)};static \u0275prov=S({token:a,factory:a.\u0275fac})};/**i18n:fad79908930cbb4c308e7550a5fe49bb3841dbb330066a6429aebaa006173605*/export{l};//# sourceMappingURL=chunk-B-6nTIgK.js.map
