import{b as l}from"./chunk-7OSLZK4S.js";import{Af as c,C as i,Z as h,ba as o,hh as E,nd as p,qd as d}from"./chunk-RKSLYOIW.js";import{i as n}from"./chunk-QQ7SJNXU.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-NLQPP3SG.js.map
