import{b as l}from"./chunk-SGCHCWLM.js";import{Bf as c,C as i,Z as h,ba as o,ih as E,nd as p,qd as d}from"./chunk-NY4TI4KT.js";import{i as n}from"./chunk-IQVXR75E.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:347eeb695970c32bc275618edc2e751c67145d9fc3012e70543c114a99b9e016*/
//# sourceMappingURL=chunk-Q3D5PUAM.js.map
