1import{Af as R,B as i,Oh as O,Q as h,Y as I,aa as s,gf as u,gh as b,hg as V,lh as S,md as v,n as l,pd as E,th as f}from"./chunk-HVCWS4IF.js";import{c as d,j as p}from"./chunk-KJ7W2O2B.js";var e=class e{authHttp=s(E);restService=s(S);restExtractor=s(b);serverService=s(f);importVideo(t){let r=e.BASE_VIDEO_IMPORT_URL,o=V(t);return this.authHttp.post(r,o).pipe(i(n=>this.restExtractor.handleError(n)))}listMyVideoImports(t){let c=t,{pagination:r,sort:o}=c,n=d(c,["pagination","sort"]),a=new v;return a=this.restService.addRestGetParams(a,r,o),a=this.restService.addObjectParams(a,n),this.authHttp.get(O.BASE_USERS_URL+"me/videos/imports",{params:a}).pipe(h(m=>this.extractVideoImports(m)),i(m=>this.restExtractor.handleError(m)))}deleteVideoImport(t){return this.authHttp.delete(e.BASE_VIDEO_IMPORT_URL+t.id).pipe(i(r=>this.restExtractor.handleError(r)))}cancelVideoImport(t){return this.authHttp.post(e.BASE_VIDEO_IMPORT_URL+t.id+"/cancel",{}).pipe(i(r=>this.restExtractor.handleError(r)))}retryVideoImport(t){return this.authHttp.post(e.BASE_VIDEO_IMPORT_URL+t.id+"/retry",{}).pipe(i(r=>this.restExtractor.handleError(r)))}extractVideoImports(t){return this.serverService.getServerLocale().pipe(l(r=>(t.data.forEach(o=>o.state.label=u(o.state.label,r)),t)))}};p(e,"BASE_VIDEO_IMPORT_URL",R.apiUrl+"/api/v1/videos/imports/"),p(e,"\u0275fac",function(r){return new(r||e)}),p(e,"\u0275prov",I({token:e,factory:e.\u0275fac}));var L=e;export{L as a}; 2/**i18n:347eeb695970c32bc275618edc2e751c67145d9fc3012e70543c114a99b9e016*/
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.