import{a as l}from"./chunk-F2NXZZX6.js";import{D as o,G as n,Pb as a,Qb as s,tb as r}from"./chunk-4KYXI2YH.js";var f=(()=>{class c{constructor(t,e,i,h){this.meta=t,this.pageService=e,this.doc=i,this.titlePage=h}updateCanonicalUrl(t=""){let e=this.doc.querySelector("link[rel='canonical']")||null;e||(e=this.doc.createElement("link")),e.setAttribute("rel","canonical"),t?e.setAttribute("href",t):e.setAttribute("href",this.doc.URL),this.doc.head.appendChild(e)}createTagsLink(){let t=this.doc.querySelector("link[hreflang='es-co']")||null;t||(t=this.doc.createElement("link")),t.setAttribute("href","https://www.oikos.com.co/constructora/proyectos-construccion-vivienda");let e=this.doc.querySelector("link[hreflang='x-default']")||null;e||(e=this.doc.createElement("link")),e.setAttribute("href","https://www.oikos.com.co/constructora/proyectos-construccion-vivienda");let i=this.doc.querySelector("link[hreflang='en-us']")||null;i||(i=this.doc.createElement("link")),i.setAttribute("href","https://www.oikosconstructora.us/housing-projects"),this.doc.head.appendChild(t),this.doc.head.appendChild(e),this.doc.head.appendChild(i)}setUpMetaTags(t){if(t){var e="";t.canonical!=""&&(e=t.canonical),this.updateCanonicalUrl(e),this.createTagsLink(),this.titlePage.setTitle(t.title||t.metatitle),this.meta.updateTag({name:"description",content:t.metadescription}),this.meta.updateTag({name:"robots",content:t.metarobots})}}static{this.\u0275fac=function(e){return new(e||c)(n(a),n(l),n(r),n(s))}}static{this.\u0275prov=o({token:c,factory:c.\u0275fac,providedIn:"root"})}}return c})();export{f as a};
