1import{a as v}from"./chunk-OU6CP6JZ.js";import{c as _}from"./chunk-22BPG5HP.js";import{a as W}from"./chunk-AGCAGPAP.js";import{a as Q}from"./chunk-AHQSOXDD.js";import{a as B}from"./chunk-GCE2MEC6.js";import{a as O}from"./chunk-4VURBXKO.js";import{b as U,c as G,d as u,f as K}from"./chunk-SB5L2XE4.js";import"./chunk-ICJV4PL6.js";import{c as p}from"./chunk-SKH2MXBC.js";import{C as E,E as F,F as $,G as L,H as q,I as N,b as P}from"./chunk-BQLJE42W.js";import{$ as c,B as l,R as d,V as h,_ as s,bc as j,da as k,ia as M,l as g,o as b,oc as x,sc as H,zb as D}from"./chunk-YE3BF7DR.js";import{e as w,f as R}from"./chunk-4IDNTCH7.js";var S=[{path:"administrador",loadComponent:()=>import("./chunk-WVTONGGE.js").then(o=>o.AdminMainComponent),loadChildren:()=>import("./chunk-N2RNNSMY.js").then(o=>o.adminRoutes)},{path:"menu",loadComponent:()=>import("./chunk-PDWJ6QY5.js").then(o=>o.MenuComponent)},{path:"",loadComponent:()=>import("./chunk-YHJQPHCJ.js").then(o=>o.PortalMainComponent),loadChildren:()=>import("./chunk-L2J46ILC.js").then(o=>o.portalRoutes)},{path:"**",redirectTo:"",pathMatch:"full"}];var m=(o,t)=>R(void 0,null,function*(){let e=c(O),i=c(u);if(o.params.alias)try{let a=e.getByFriendlyName(o.params.alias,!1);return yield b(a)}catch{i.navigate(["pagina-no-encontrada"])}else i.navigate(["pagina-no-encontrada"]);return!1});var f=class o{constructor(t,e){this.router=t;this.route=e}addAdditionalRoutes(t){let e=[{path:t.routes.Tag+"/:alias",loadComponent:()=>import("./chunk-LX4KIOLD.js").then(i=>i.TagComponent),resolve:{tagInfo:m}},{path:t.routes.Tag+"/:alias/:id",loadComponent:()=>import("./chunk-LX4KIOLD.js").then(i=>i.TagComponent),resolve:{tagInfo:m}},{path:t.routes.Tag+"/:alias/:id/:subid",loadComponent:()=>import("./chunk-LX4KIOLD.js").then(i=>i.TagComponent),resolve:{tagInfo:m}},{path:t.routes.Complaint,loadComponent:()=>import("./chunk-3W2UCUIH.js").then(i=>i.ComplaintComponent)},{path:t.routes.Notifications,loadComponent:()=>import("./chunk-UZFG7MLR.js").then(i=>i.NotificationsComponent)},{path:t.routes.Comment+"/:alias",loadComponent:()=>import("./chunk-JAH2ZOEC.js").then(i=>i.ParticipationComponent),resolve:{tagInfo:m}}];t.general.enablePQR&&(e.push({path:t.routes.Complaint+"/enviar/:id",loadComponent:()=>import("./chunk-JBGNGGB3.js").then(i=>i.ComplaintFormComponent)}),e.push({path:t.routes.Complaint+"/seguimiento",loadComponent:()=>import("./chunk-WEU37CUE.js").then(i=>i.ComplaintTracingComponent)}));for(let i of e)v.push(i);v.push({path:":tag/:alias",loadComponent:()=>import("./chunk-PAS65CWB.js").then(i=>i.ContentComponent)}),v.push({path:"**",redirectTo:"pagina-no-encontrada"}),this.router.resetConfig(S)}static \u0275fac=function(e){return new(e||o)(s(u),s(U))};static \u0275prov=h({token:o,factory:o.\u0275fac,providedIn:"root"})};var y=class o{constructor(t,e,i,a,r){this.document=t;this.metaService=e;this.titleService=i;this.settingService=a;this.routingService=r}initSite(t){this.settingService.globalApiUrl=t.general.globalApiUrl,this.settingService.settings=t,this.setTitle(),this.addMetaTags(),this.addLinkTags(),this.setFavIcon(),this.addMatomoScript(),this.addGoogleAnalyticsScript(),this.addKeyCloackScript(),this.routingService.addAdditionalRoutes(this.settingService.settings)}setTitle(){this.titleService.setTitle(this.settingService.settings.resources["PageDescription.Home"])}addMetaTags(){this.metaService.addTag({property:"og:type",content:"website"}),this.metaService.addTag({property:"og:image:width",content:"800"}),this.metaService.addTag({property:"og:image:height",content:"418"}),this.metaService.addTag({name:"twitter:card",content:"summary"}),this.metaService.addTag({name:"description",content:this.settingService.seo.description??this.settingService.settings.resources["PageDescription.Home"]}),this.metaService.addTag({property:"og:url",content:this.settingService.seo.url??this.settingService.settings.authorityDomain}),this.metaService.addTag({property:"og:title",content:this.settingService.seo.title??this.settingService.settings.resources["PageDescription.Home"]}),this.metaService.addTag({property:"og:description",content:this.settingService.seo.description??this.settingService.settings.resources["PageDescription.Home"]}),this.metaService.addTag({property:"og:image",content:this.settingService.seo.image??this.settingService.settings.general.image}),this.metaService.addTag({name:"twitter:title",content:this.settingService.seo.title??this.settingService.settings.resources["PageDescription.Home"]}),this.metaService.addTag({name:"twitter:image",content:this.settingService.seo.image??this.settingService.settings.general.image}),this.metaService.addTag({name:"twitter:description",content:this.settingService.seo.description??this.settingService.settings.resources["PageDescription.Home"]})}updateMetaTags(){this.metaService.updateTag({name:"description",content:this.settingService.seo.description??this.settingService.settings.resources["PageDescription.Home"]}),this.metaService.updateTag({property:"og:url",content:this.settingService.seo.url??this.settingService.settings.authorityDomain}),this.metaService.updateTag({property:"og:title",content:this.settingService.seo.title??this.settingService.settings.resources["PageDescription.Home"]}),this.metaService.updateTag({property:"og:description",content:this.settingService.seo.description??this.settingService.settings.resources["PageDescription.Home"]}),this.metaService.updateTag({property:"og:image",content:this.settingService.seo.image??this.settingService.settings.general.image}),this.metaService.updateTag({name:"twitter:title",content:this.settingService.seo.title??this.settingService.settings.resources["PageDescription.Home"]}),this.metaService.updateTag({name:"twitter:image",content:this.settingService.seo.image??this.settingService.settings.general.image}),this.metaService.updateTag({name:"twitter:description",content:this.settingService.seo.description??this.settingService.settings.resources["PageDescription.Home"]})}addLinkTags(){let t=this.document.createElement("link");t.setAttribute("rel","preload"),t.setAttribute("as","style"),t.setAttribute("href",`${this.settingService.settings.general.urlChat}/css/styles.css?v=a-3-0-41${this.settingService.settings.general.configurationCacheKey}`),this.document.head.appendChild(t);let e=this.document.createElement("link");
1e.setAttribute("rel","apple-touch-icon"),e.setAttribute("sizes","114x114"),e.setAttribute("href",`${this.settingService.settings.general.appleTouchIcon}`),this.document.head.appendChild(e)}setFavIcon(){if(this.settingService.settings.general.favicon){let t=document.querySelector("link[rel='icon']");t.href=`${this.settingService.settings.general.favicon}`}}loadScript(t,e,i="",a=!1,r=""){let n=this.document.createElement("script");n.type=e,i&&(n.text=i),a&&(n.async=!0),r&&(n.src=r),t.appendChild(n)}addMatomoScript(){if(this.settingService.settings.general.enableAnalytics){let t="piwik",e="text/javascript",i=` 2 var _paq = window._paq = window._paq || []; 3 _paq.push(['trackPageView']); 4 _paq.push(['enableLinkTracking']); 5 (function() { 6 var u="${this.settingService.settings.general.piwikUrl}"; 7 _paq.push(['setTrackerUrl', u+'${t}.php']); 8 _paq.push(['setSiteId', ${this.settingService.settings.general.analyticsCode}]); 9 var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; 10 g.type='text/javascript'; g.async=true; g.src=u+'${t}.js'; s.parentNode.insertBefore(g,s); 11 })(); 12 `;this.loadScript(this.document.head,e,i)}}addGoogleAnalyticsScript(){if(this.settingService.settings.general.googleAnalyticsKey){this.loadScript(this.document.head,"text/javascript",` 13 window.dataLayer = window.dataLayer || []; 14 function gtag() { dataLayer.push(arguments); } 15 gtag('js', new Date()); 16 `);let i="text/javascript",a=!0,r=`https://www.googletagmanager.com/gtag/js?id=${this.settingService.settings.general.googleAnalyticsKey}`;this.loadScript(this.document.head,i,"",a,r)}}addKeyCloackScript(){let t="text/javascript",e=this.document.body,i=`${this.settingService.settings.general.keycloackURI}/auth/js/keycloak.js`;this.loadScript(e,t,"",!1,i)}static \u0275fac=function(e){return new(e||o)(s(P),s(q),s(N),s(p),s(f))};static \u0275prov=h({token:o,factory:o.\u0275fac,providedIn:"root"})};var V=(o,t)=>{let e=c(p),i=c(B),a=localStorage.getItem("token"),r=o.clone();if(e.settings.general&&!r.url.includes(e.settings.general.globalApiUrl)&&(a&&(r=r.clone({headers:r.headers.set("Authorization",`Bearer ${a}`)})),e.settings.isDebug&&(r=r.clone({headers:r.headers.set("X-Requested-With","XMLHttpRequest")}))),e.settings.authorityDomain&&!r.url.includes("http")){let n=r.url,T=n;if(i.detectIE()){let I=Math.floor(Math.random()*600)+1,A=e.settings.authorityDomain+n;T=A.includes("?")?`${A}&rdn=${I}`:`${A}?rdn=${I}`}else T=e.settings.authorityDomain+n;r=r.clone({url:T})}return t(r).pipe(d(n=>{n instanceof E&&(n.headers.has("x-refresh-token")&&localStorage.setItem("token",n.headers.get("x-refresh-token")),n.headers.has("x-invalid-token")&&localStorage.removeItem("token"),n.headers.has("x-currentdate")?e.currentDate=new Date(n.headers.get("x-currentdate")):e.currentDate=new Date)}),l(n=>g(()=>n)))};var X=w(Q()),Ee=w(W());X.default.locale("es");function Y(o,t){return()=>o.getSettings().pipe(d(e=>{document.body.className+=`body-${e.general.themeSite}`,t.initSite(e)}),l(e=>g(()=>e)))}var Z={providers:[{provide:x,useFactory:Y,deps:[p,y],multi:!0},H({eventCoalescing:!0}),K(S),F($([V])),M(_)]};var C=class o{static \u0275fac=function(e){return new(e||o)};static \u0275cmp=k({type:o,selectors:[["app-root"]],standalone:!0,features:[j],decls:1,vars:0,template:function(e,i){e&1&&D(0,"router-outlet")},dependencies:[G]})};L(C,Z).catch(o=>console.error(o));
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.