import{b as f,c}from"./chunk-SNLRONV5.js";import{C as s,Yc as h,Z as n,ba as p,dg as m,j as d}from"./chunk-XD25PYOU.js";import{i}from"./chunk-FPVLB6PA.js";var U=(()=>{let t=class t{authHttp=p(h);restExtractor=p(m);getChapters(e){let r=f.buildVideoPasswordHeader(e.videoPassword);return this.authHttp.get(`${c.BASE_VIDEO_URL}/${e.videoId}/chapters`,{headers:r}).pipe(s(a=>this.restExtractor.handleError(a)))}updateChapters(e,r){if(r.shouldUpdateAPI()!==!0)return d(!0);let a={chapters:r.getChaptersForUpdate()};return this.authHttp.put(`${c.BASE_VIDEO_URL}/${e}/chapters`,a).pipe(s(u=>this.restExtractor.handleError(u)))}};i(t,"\u0275fac",function(r){return new(r||t)}),i(t,"\u0275prov",n({token:t,factory:t.\u0275fac}));let o=t;return o})();export{U as a};
/**i18n:fc817608a00477e18624cf8be5badc6c9afae12f0946c7c1548c95cf79bd0e7b*/
//# sourceMappingURL=chunk-OGV5UI2A.js.map
