import{b as l}from"./chunk-S3CDSDDX.js";import{B as i,Fh as E,Y as h,aa as o,dd as p,hd as d,qf as c}from"./chunk-AVPM423Z.js";import{i as n}from"./chunk-W5TMGCPH.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:ceac57349051bcddcb40dd2878e0abcb86556d5ceb9d6109d22ac3f1ae3cc7b1*/
//# sourceMappingURL=chunk-ZQBUUMDE.js.map
