import{j as r}from"./chunk-TDIPI4U5.js";import{a as o,b as m,l as c}from"./chunk-DKYFV7F2.js";import{E as p,ba as a,ga as n,m as s}from"./chunk-SBSTEEKM.js";var C=(()=>{class i{constructor(t,e){this.httpClient=t,this.router=e}getAllEnigmes(){return this.httpClient.get(r.baseUrl+"/enigmes/ctf")}getEnigmeById(t){return this.httpClient.get(r.baseUrl+"/enigmes/"+t).pipe(p(e=>(this.router.navigate(["/ctf"]),s(void 0))))}addTimeGetAnswer(t,e){let h={headers:new o({"Content-Type":"application/json"})};return this.httpClient.post(r.baseUrl+"/enigmes/"+t,e,h)}beginEnigme(t){let e={headers:new o({"Content-Type":"application/json"})};return this.httpClient.post(r.baseUrl+"/enigmes/"+t+"/begin",e)}static{this.\u0275fac=function(e){return new(e||i)(n(m),n(c))}}static{this.\u0275prov=a({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();export{C as a}; //# sourceMappingURL=chunk-G7INVXNI.js.map