import{b as m,c}from"./chunk-X7CHLTWB.js";import{C as i,Z as d,ba as p,ih as n,qd as h}from"./chunk-EKZJWO2J.js";import{i as s}from"./chunk-BODC7FZN.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:e079feaac094a2c754af8c2d9f82a9400e546e6b8cdd8ff7d538e47a33fc4649*/
//# sourceMappingURL=chunk-O7CYR6W3.js.map
