1import{e as f,f as m}from"./chunk-26FORJ3B.js";import"@angular/core";import*as o from"@angular/core";import*as g from"@angular/common/http";var _=(()=>{class a{constructor(t,r,n){this._http=t,this._config=r,this._utilityService=n}resolve(t){if(t.data.params.length<3){let r;for(r=0;r<3;r++)r<2?t.data.params.push(null):t.data.params.push(!0)}return this.httpHelper(t.data.params[0],t.data.params[1],t.data.params[2],t.data.params[3])}getFullUrl(t,r){return this._config.getFullUrl(t,r)}httpHelper(t,r,n,s,c=!1){return new Promise((p,l)=>{t=t.toUpperCase();let i=null,h=c?r:this.getFullUrl(r,n);t==="GET"?this._http.get(h).toPromise().then(e=>{p(e)}).catch(e=>{i=e.error||"Server error",l(i)}):t==="POST"?this._http.post(h,s,{}).toPromise().then(e=>{p(e)}).catch(e=>{i=e.error||"Server error",l(i)}):t==="PUT"?this._http.put(h,s,{}).toPromise().then(e=>{p(e)}).catch(e=>{i=e.error||"Server error",l(i)}):t==="DELETE"?this._http.delete(h,{}).toPromise().then(e=>{p(e)}).catch(e=>{i=e.error||"Server error",l(i)}):(i="***ERROR: Method "+t+" not supported.",l(i))})}getFromUrl(t){return new Promise((r,n)=>{this._http.get(t).toPromise().then(s=>{r(s)}).catch(s=>{let c=s.error||"Server error";n(c)})})}getApiUrl(){return this._config.getRestUrl()}getSsoUrl(){return this._config.getSsoUrl()}static{this.\u0275fac=function(r){return new(r||a)(o.\u0275\u0275inject(g.HttpClient),o.\u0275\u0275inject(m),o.\u0275\u0275inject(f))}}static{this.\u0275prov=o.\u0275\u0275defineInjectable({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})();export{_ as a};
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.