import {aV as oe,g,aS as kn,aT as no,f0 as _,aW as ln,aX as le,aY as S}from'./main-DEZ5cZzu.js';var l=class a{static BASE_PLAYER_SETTINGS_URL=oe.apiUrl+"/api/v1/player-settings/";authHttp=g(kn);restExtractor=g(no);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(le(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(le(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(le(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(le(r=>this.restExtractor.handleError(r)))}static \u0275fac=function(e){return new(e||a)};static \u0275prov=S({token:a,factory:a.\u0275fac})};/**i18n:c8855ca17fb20171aa9dd43d012e42547cb1f0cfd9c21d4dc05679bbbdf5ccb8*/export{l};//# sourceMappingURL=chunk-Clnw85B_.js.map
