import{Fa as er,Ja as g,Mr as S,pi as Wn,ro as he}from"./chunk-b0nJCs5_.js";import{r as b,t as H}from"./chunk-CswnO8Ym.js";var n=class e{authHttp=g(Wn);restExtractor=g(er);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=42466bb4-d814-5359-b96c-f058102ba839
//# sourceMappingURL=chunk-pq4Luh0F.js.map