import{b as l}from"./chunk-JDO6XDLS.js";import{B as i,Y as h,Zc as p,aa as o,bd as d,vh as E,wg as c}from"./chunk-EWB56PWF.js";import{i as n}from"./chunk-2T7OYDCL.js";var r=class r{authHttp=o(d);restExtractor=o(E);getVideoSettings(t){let e=l.buildVideoPasswordHeader(t.videoPassword),a=r.BASE_PLAYER_SETTINGS_URL+"videos/"+t.videoId,s=new p;return t.raw&&(s=s.set("raw","true")),this.authHttp.get(a,{params:s,headers:e}).pipe(i(u=>this.restExtractor.handleError(u)))}updateVideoSettings(t){let e=r.BASE_PLAYER_SETTINGS_URL+"videos/"+t.videoId;return this.authHttp.put(e,t.settings).pipe(i(a=>this.restExtractor.handleError(a)))}getChannelSettings(t){let e=r.BASE_PLAYER_SETTINGS_URL+"video-channels/"+t.channelHandle,a=new p;return t.raw&&(a=a.set("raw","true")),this.authHttp.get(e,{params:a}).pipe(i(s=>this.restExtractor.handleError(s)))}updateChannelSettings(t){let e=r.BASE_PLAYER_SETTINGS_URL+"video-channels/"+t.channelHandle;return this.authHttp.put(e,t.settings).pipe(i(a=>this.restExtractor.handleError(a)))}};n(r,"BASE_PLAYER_SETTINGS_URL",c.apiUrl+"/api/v1/player-settings/"),n(r,"\u0275fac",function(e){return new(e||r)}),n(r,"\u0275prov",h({token:r,factory:r.\u0275fac}));var m=r;export{m as a};
/**i18n:85d030b7fdd36d163c6d41dcef9178681a6baa573eb199e8b12fe27dbb057a98*/
//# sourceMappingURL=chunk-YNHA3FUH.js.map
