import{a as f}from"./chunk-QVYOYSVR.js";import{b as p}from"./chunk-HQVZGJHJ.js";import{b as a}from"./chunk-3T7NQNCJ.js";import{h as m}from"./chunk-SBF3UK4I.js";import{e as s,j as i}from"./chunk-YR2ZOLW3.js";import{ha as l,q as n,x as c}from"./chunk-VI2VOVRS.js";var h=(()=>{class r{constructor(e,t){this.translateService=e,this.customTranslateLoaderStatus=t}use(e){let t=n({});return this.customTranslateLoaderStatus.isLangLoadedWithError(e)&&(t=this.translateService.reloadLang(e)),t.pipe(l(()=>this.translateService.use(e)))}static{this.\u0275fac=function(t){return new(t||r)(i(a),i(f))}}static{this.\u0275prov=s({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();var y=(()=>{class r{constructor(e,t,o){this.seoService=e,this.translateService=t,this.tolTranslateService=o}resolve(e){let t=m(e.routeConfig?.path);t||(t="home");let o=e.parent?.params.lang||this.translateService.currentLang;return this.tolTranslateService.use(o).pipe(c(()=>(this.seoService.setTitle(this.translateService.instant(`seo.titles.${t}`)),this.seoService.setDescription(this.translateService.instant(`seo.descriptions.${t}`)),this.seoService.setKeywords(this.translateService.instant(`seo.keywords.${t}`)),"")))}static{this.\u0275fac=function(t){return new(t||r)(i(p),i(a),i(h))}}static{this.\u0275prov=s({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();export{h as a,y as b};