import{b as l}from"./chunk-UGC7GL3F.js";import{B as i,Kh as E,Y as h,aa as o,fd as p,id as d,sf as c}from"./chunk-DWEAL4OJ.js";import{i as n}from"./chunk-YM6OINSR.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:5a85df092a135682c90bae008e37ec28160e04e5f445e29af2927333ba91ffa1*/
//# sourceMappingURL=chunk-AYKHF6KQ.js.map
