import{C as s,Ke as f,M as i,R as m,bd as l,of as u,pa as a,qf as h,sa as o,w as p}from"./chunk-JX7WA573.js";var g=(()=>{class t{constructor(r,e){this.http=r,this.commonHttpErrorService=e}getCompanyProfile(){return this.http.get("companyProfile").pipe(i(this.commonHttpErrorService.handleError))}updateCompanyProfile(r){return this.http.post("companyProfile",r).pipe(i(this.commonHttpErrorService.handleError))}updateLocalStorage(r){return this.http.post("storage",r).pipe(i(this.commonHttpErrorService.handleError))}getS3Config(){return this.http.get("storage").pipe(i(this.commonHttpErrorService.handleError))}static{this.\u0275fac=function(e){return new(e||t)(o(l),o(h))}}static{this.\u0275prov=a({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var b=(()=>{class t{constructor(r,e){this.companyProfileService=r,this.router=e}resolve(r,e){return this.companyProfileService.getCompanyProfile().pipe(m(1),s(n=>n?(n.languages&&n.languages.forEach(c=>{c.imageUrl=`${u.apiUrl}${c.imageUrl}`}),p(n)):(this.router.navigate(["/dashboard"]),null)))}static{this.\u0275fac=function(e){return new(e||t)(o(g),o(f))}}static{this.\u0275prov=a({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();export{g as a,b};
