import{b as f,c}from"./chunk-QU25C3ZM.js";import{C as s,Yc as h,Z as n,ba as p,dg as m,j as d}from"./chunk-OX24XL2F.js";import{i}from"./chunk-FQ4ILEWG.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:93ef1b86561141301263c1f349fa8abb749523958c3a6dfaf46ed36d22b0a506*/
//# sourceMappingURL=chunk-NNJOPCBA.js.map
