import{b as f,c}from"./chunk-LATCUF53.js";import{C as s,Yc as h,Z as n,ba as p,dg as m,j as d}from"./chunk-ZXQQIUTT.js";import{i}from"./chunk-RE7RSUSQ.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:4ea3d52b0fe89d1d8e6fff59c182aeadbd7786f17ffe9a1efa1c7ed627997eaf*/
//# sourceMappingURL=chunk-6EXG7QR6.js.map
