1import{a as C}from"./chunk-TKTFYKYV.js";import{c as b}from"./chunk-7VRQYDVD.js";import"./chunk-U45ATDHY.js";import"./chunk-F433XHLM.js";import"./chunk-FS3PSYT7.js";import"./chunk-TA2CSN2V.js";import"./chunk-RUG46FPK.js";import{a as E}from"./chunk-PQ5X3SQQ.js";import"./chunk-3MVB6JRC.js";import"./chunk-QG6NJIYQ.js";import"./chunk-5TKQBLQ2.js";import{C as y,m as h,v as I}from"./chunk-3YNU3SIA.js";import{$a as a,Ab as c,J as u,Qa as g,eb as S,k as l,xb as v,y as f,yb as s,zb as m}from"./chunk-SUDHBEPZ.js";import{a as p,b as d}from"./chunk-EQDQRRRY.js";var n=class t{constructor(e,i){this.siteSectionService=e;this.router=i}dynamicSections=[];isLoading=!0;idPagina="informe-anual";pruebas=!1;ngOnInit(){this.loadDynamicSections()}loadDynamicSections(){if(this.isLoading=!0,this.pruebas){console.log("\u2699\uFE0F [Informes Anuales] Cargando fallback (modo pruebas)..."),this.injectIdPagina(this.dynamicSections),this.isLoading=!1;return}this.siteSectionService.getSectionContent(this.idPagina).pipe(u(3),f(e=>(console.error("\u274C Error cr\xEDtico en Informes Anuales tras 3 intentos. Redirigiendo a 404.",e),this.isLoading=!1,this.router.navigate(["/404"]),l(()=>e)))).subscribe({next:e=>{!e||Array.isArray(e)&&e.length===0?(console.warn("\u26A0\uFE0F API respondi\xF3 vac\xEDo en Informes Anuales. Redirigiendo a 404."),this.router.navigate(["/404"])):(this.dynamicSections=e,this.injectIdPagina(this.dynamicSections)),this.isLoading=!1},error:()=>{this.isLoading=!1}})}injectIdPagina(e){e.forEach(i=>{let o=i.props?.id||this.idPagina;i.components?.forEach(r=>{r.type==="SiteListCardsContentVariableComponent"&&(r.props=d(p({},r.props),{idPagina:o}))})})}aplicarFiltroPorIndice(e){e.startsWith("#")?document.getElementById(e.substring(1))?.scrollIntoView({behavior:"smooth"}):this.router.navigateByUrl(e)}static \u0275fac=function(i){return new(i||t)(a(C),a(y))};static \u0275cmp=S({type:t,selectors:[["app-site-informes-actividades-anuales"]],decls:4,vars:1,consts:[[1,"col-12","breadcrumbsGlobal"],[1,"contInformesPrincipal"],[1,"d-flex","flex-wrap","col-12",3,"sections"]],template:function(i,o){i&1&&(s(0,"div",0),c(1,"app-site-breadcrumb-variable"),m(),s(2,"div",1),c(3,"app-dynamic-renderer",2),m()),i&2&&(g(3),v("sections",o.dynamicSections))},dependencies:[h,I,b,E],styles:[".contInformesPrincipal[_ngcontent-%COMP%]{margin:50px 20px 20px}@media (min-width: 768px){.contInformesPrincipal[_ngcontent-%COMP%]{margin-top:50px;margin-left:80px;margin-right:80px}}"]})};var F=[{path:"",loadChildren:()=>import("./chunk-N5MJAFUF.js").then(t=>t.SITE_INFORMES_PAGE_ROUTES),data:{breadcrumb:""}},{path:"informes-acuerdos",loadChildren:()=>import("./chunk-N5MJAFUF.js").then(t=>t.SITE_INFORMES_PAGE_ROUTES),data:{breadcrumb:""}},{path:"informes-actividades-anuales",component:n,data:{breadcrumb:"Actividades Anuales"}}];export{F as SITE_INFORMES_PRONUNCIAMIENTOS_ROUTES};
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.