import{Fa as er,Ja as g,Mr as S,ea as ae,fc as vn,pi as Wn,ro as he}from"./chunk-b0nJCs5_.js";import{r as b,t as H}from"./chunk-CswnO8Ym.js";var L=class r{authHttp=g(Wn);restExtractor=g(er);static BASE_VIDEO_LIVE_URL=ae.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=d2f9e795-b378-5e95-833f-4d4e7e1bcbba
//# sourceMappingURL=chunk-AtGtJ1de2.js.map