1import{Af as b,B as p,Kh as S,N as g,Se as A,Y as h,aa as c,gf as l,gh as C,n as u,pd as v,r as m,th as E,zf as d}from"./chunk-HVCWS4IF.js";import{j as s,k as f}from"./chunk-KJ7W2O2B.js";var e=class e{authHttp=c(v);restExtractor=c(C);markdownService=c(S);serverService=c(E);aboutCache$=null;getAboutWithCache(){return this.aboutCache$||(this.aboutCache$=this.authHttp.get(e.BASE_CONFIG_URL+"/about").pipe(p(r=>this.restExtractor.handleError(r)),g(1)),setTimeout(()=>{this.aboutCache$=null},1e3)),this.aboutCache$}contactAdministrator(r,t,a,o){let i={fromEmail:r,fromName:t,subject:a,body:o};return this.authHttp.post(e.BASE_SERVER_URL+"/contact",i).pipe(p(n=>this.restExtractor.handleError(n)))}buildHtml(r){return f(this,null,function*(){let t={terms:"",codeOfConduct:"",moderationInformation:"",administrator:"",creationReason:"",maintenanceLifetime:"",businessModel:"",hardwareInformation:""};for(let a of A(t))t[a]=yield this.markdownService.enhancedMarkdownToHTML({markdown:r.instance[a]});return t})}buildTranslatedLanguages(r){return m([this.serverService.getVideoLanguages(),this.serverService.getServerLocale()]).pipe(u(([t,a])=>r.instance.languages.map(o=>{let i=t.find(n=>n.id===o);return i?l(i.label,a):(d.error(`Cannot find language ${o} in available languages`),"")})))}buildTranslatedCategories(r){return m([this.serverService.getVideoCategories(),this.serverService.getServerLocale()]).pipe(u(([t,a])=>r.instance.categories.map(o=>{let i=t.find(n=>n.id===o);return i?l(i.label,a):(d.error(`Cannot find instance category ${o} in available categories`),"")})))}};s(e,"BASE_CONFIG_URL",b.apiUrl+"/api/v1/config"),s(e,"BASE_SERVER_URL",b.apiUrl+"/api/v1/server"),s(e,"\u0275fac",function(t){return new(t||e)}),s(e,"\u0275prov",h({token:e,factory:e.\u0275fac}));var y=e;export{y 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.