import{b as m,c}from"./chunk-TQUYGBVG.js";import{B as i,Dh as n,Y as d,aa as p,hd as h}from"./chunk-CUA2BO3S.js";import{i as s}from"./chunk-75J4RO44.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:42440f0a8726af1836b15b193adfd3f46a3ecd983a1ed2a1e05982c4f600c8a1*/
//# sourceMappingURL=chunk-6ML4ZO7N.js.map
