import{Bc as zn,Hs as se,Wa as g,Wt as Jn,fr as S,pc as vn,ro as he}from"./chunk-B_pj7Jpm.js";import{r as b,t as H}from"./chunk-CagJEiiY.js";var L=class r{authHttp=g(zn);restExtractor=g(Jn);static BASE_VIDEO_LIVE_URL=se.apiUrl+`/api/v1/videos/live/`;goLive(e){return this.authHttp.post(r.BASE_VIDEO_LIVE_URL,e).pipe(he(t=>this.restExtractor.handleError(t)))}getVideoLive(e,t){let o=b.buildVideoPasswordHeader(t);return this.authHttp.get(r.BASE_VIDEO_LIVE_URL+e,{headers:o}).pipe(he(c=>this.restExtractor.handleError(c)))}listSessions(e){let t=new vn().set(`sort`,`-startDate`);return this.authHttp.get(r.BASE_VIDEO_LIVE_URL+e+`/sessions`,{params:t}).pipe(he(o=>this.restExtractor.handleError(o)))}findLiveSessionFromVOD(e){return this.authHttp.get(H.BASE_VIDEO_URL+`/`+e+`/live-session`).pipe(he(t=>this.restExtractor.handleError(t)))}updateLive(e,t){return this.authHttp.put(r.BASE_VIDEO_LIVE_URL+e,t).pipe(he(o=>this.restExtractor.handleError(o)))}static ɵfac=function(t){return new(t||r)};static ɵprov=S({token:r,factory:r.ɵfac})};export{L as t};
//# debugId=881713d4-4028-5107-a141-7207083a1c45
//# sourceMappingURL=chunk-ZL035zBp2.js.map