import{b as m,c}from"./chunk-D7H42SK4.js";import{B as i,Y as d,aa as p,bd as h,uh as n}from"./chunk-K5TQVRW4.js";import{i as s}from"./chunk-RYEVWIKN.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:3ab8a6a12ff574644ebf46057f36e5643b4288edb94e57af377eaee98d8b77d4*/
//# sourceMappingURL=chunk-SASVJPSV.js.map
