import{b as m,c}from"./chunk-TEWEKZE4.js";import{B as i,Wc as h,Y as d,aa as p,jg as n}from"./chunk-WOSO3QBJ.js";import{i as s}from"./chunk-C2HMJUB7.js";var w=(()=>{let t=class t{authHttp=p(h);restExtractor=p(n);getChapters(r){let e=m.buildVideoPasswordHeader(r.videoPassword);return this.authHttp.get(`${c.BASE_VIDEO_URL}/${r.videoId}/chapters`,{headers:e}).pipe(i(a=>this.restExtractor.handleError(a)))}updateChapters(r,e){let a={chapters:e.getChaptersForUpdate()};return this.authHttp.put(`${c.BASE_VIDEO_URL}/${r}/chapters`,a).pipe(i(f=>this.restExtractor.handleError(f)))}};s(t,"\u0275fac",function(e){return new(e||t)}),s(t,"\u0275prov",d({token:t,factory:t.\u0275fac}));let o=t;return o})();export{w as a};
/**i18n:b44b17e72e4b9ae03afb92709eafda64a985c0c8f0453c865708cceafe42f927*/
//# sourceMappingURL=chunk-ME7ZZPOB.js.map
