import{Bc as zn,Wa as g,Wt as Jn,fr as S,ro as he}from"./chunk-B_pj7Jpm.js";import{r as b,t as H}from"./chunk-CagJEiiY.js";var n=class e{authHttp=g(zn);restExtractor=g(Jn);getChapters(t){let r=b.buildVideoPasswordHeader(t.videoPassword);return this.authHttp.get(`${H.BASE_VIDEO_URL}/${t.videoId}/chapters`,{headers:r}).pipe(he(o=>this.restExtractor.handleError(o)))}updateChapters(t,r){let o={chapters:r.getChaptersForUpdate()};return this.authHttp.put(`${H.BASE_VIDEO_URL}/${t}/chapters`,o).pipe(he(m=>this.restExtractor.handleError(m)))}static ɵfac=function(r){return new(r||e)};static ɵprov=S({token:e,factory:e.ɵfac})};export{n as t};
//# debugId=d36915d9-2585-5996-ad29-fcc221ee7ea9
//# sourceMappingURL=chunk-DghzBX6c.js.map