1import{d as Qe,M as qe,k as We,r as x,p as k,I as me,P as Je,u as Ke,K as Xe,C as Ze,_ as et,c as o,b as e,a as $,w as _,f as c,t as l,h as u,x as b,F as g,s as K,i as S,v as X,g as y,O as U,G as fe,H as tt,o as a}from"./index-BNVynZm9.js";import{u as st}from"./useAutoRetry-78xUyLOd.js";import{m as le}from"./mapa-procesos-2025-DmEq0PMP.js";const it=Qe({name:"portal-pagina-dinamica",setup(){const s=Xe(),t=Ke(),F=x(!0),T=x(null),L=x([]),A=x([]),C=x("all"),H=x(""),Q=x(""),N=x(""),i=x("all"),p=x(!0),P=x("table"),h=x(1),I=x(15),Z=x(!1),ee=k(()=>s.params.id||"99"),ne=k(()=>String(ee.value)==="103"||s.path.includes("mesas-de-partes")||s.path.includes("mesa-de-partes-direcciones")),re=k(()=>!1),ye=k(()=>A.value.length>1),te=[{id:3,version:"Versión 3.0",anio:"2025",titulo:"Mapa de Procesos Nivel 0 y Nivel 1 del GOREHCO (2025)",resolucion:"Resolución Ejecutiva Regional N° 045-2025-GRH/GR",descripcion:"Aprobación oficial del Mapa de Procesos Nivel 0 (16 procesos) y Nivel 1 (74 subprocesos), fichas técnicas de caracterización e indicadores institucionales.",vigente:!0,url:"https://nextcloud.regionhuanuco.gob.pe/s/E6AfzSPskCY7YTt?dir=/&editing=false&openfile=true"},{id:2,version:"Versión 2.0",anio:"2023 - 2024",titulo:"Actualización del Mapa de Procesos y Fichas de Caracterización",resolucion:"Resolución Ejecutiva Regional N° 112-2023-GRH/GR",descripcion:"Manual de Procesos y Procedimientos (MAPRO) e instrumentos técnicos de gestión por procesos del Gobierno Regional Huánuco.",vigente:!1,url:"https://nextcloud.regionhuanuco.gob.pe/s/ng5WGkd6RfeFzXR?dir=/&editing=false&openfile=true"},{id:1,version:"Versión 1.0",anio:"2021 - 2022",titulo:"Primer Inventario y Formalización del Mapa de Procesos Institucional",resolucion:"Resolución Ejecutiva Regional N° 088-2021-GRH/GR",descripcion:"Aprobación de la estructura preliminar de macroprocesos estratégicos, misionales y de soporte.",vigente:!1,url:"https://nextcloud.regionhuanuco.gob.pe/s/43cjgiPLkJNzWbp?openfile=true"}],de=x("all"),q=x(""),se=x(null),ce=x(""),D=x({versiones:!0,estrategicos:!0,misionales:!0,apoyo:!0}),he=n=>{D.value[n]=!D.value[n]},pe=k(()=>D.value.versiones&&D.value.estrategicos&&D.value.misionales&&D.value.apoyo),ve=()=>{const n=!pe.value;D.value.versiones=n,D.value.estrategicos=n,D.value.misionales=n,D.value.apoyo=n},xe=k(()=>{if(!q.value.trim())return te;const n=q.value.toLowerCase().trim();return te.filter(r=>r.titulo.toLowerCase().includes(n)||r.resolucion.toLowerCase().includes(n)||r.version.toLowerCase().includes(n)||r.anio.includes(n)||r.descripcion.toLowerCase().includes(n))}),ie=n=>{if(!q.value.trim())return n;const r=q.value.toLowerCase().trim();return n.filter(d=>{var z,Y,G,M,w;const m=(z=d.codigo)==null?void 0:z.toLowerCase().includes(r),v=(Y=d.nombre)==null?void 0:Y.toLowerCase().includes(r),f=(M=(G=d.ficha)==null?void 0:G.objetivo)==null?void 0:M.toLowerCase().includes(r),j=Array.isArray((w=d.ficha)==null?void 0:w.dueno)?d.ficha.dueno.some(E=>E.toLowerCase().includes(r)):!1,R=Array.isArray(d.nivel1)?d.nivel1.some(E=>{var B,O;return((B=E.codigo)==null?void 0:B.toLowerCase().includes(r))||((O=E.nombre)==null?void 0:O.toLowerCase().includes(r))}):!1;return m||v||f||j||R})},we=k(()=>{const n=(le.grupos||[]).find(r=>r.id==="estrategicos");return n?ie(n.procesos):[]}),ke=k(()=>{const n=(le.grupos||[]).find(r=>r.id==="misionales");return n?ie(n.procesos):[]}),Ce=k(()=>{const n=(le.grupos||[]).find(r=>r.id==="apoyo");return n?ie(n.procesos):[]}),Pe=(n,r)=>{se.value=n,ce.value=r},Me=()=>{se.value=null},J=[{id:1,nombre:"SEDE CENTRAL - TRAMITE DOCUMENTARIO",url:"https://digital.regionhuanuco.gob.pe/registro/mesa-partes-virtual/3",category:"sede",destacado:!0},{id:2,nombre:"DIRECCION REGIONAL DE COMERCIO EXTERIOR Y TURISMO",url:"https://digital.regionhuanuco.gob.pe/registro/mesa-partes-virtual/4",category:"sede"},{id:3,nombre:"DIRECCION REGIONAL DE PRODUCCIÃN",url:"https://digital.regionhuanuco.gob.pe/registro/mesa-partes-virtual/5",category:"sede"},{id:4,nombre:"ARCHIVO REGIONAL",url:"https://digital.regionhuanuco.gob.pe/registro/mesa-partes-virtual/6",category:"sede"},{id:5,nombre:"DIRECCION REGIONAL DEL TRABAJO Y PROMOCION DEL EMPLEO",url:"https://digital.regionhuanuco.gob.pe/registro/mesa-partes-virtual/7",category:"sede"},{id:6,nombre:"DIRECCION DE MINAS E HIDROCARBUROS",url:"https://digital.regionhuanuco.gob.pe/registro/mesa-partes-virtual/8",category:"sede"},{id:7,nombre:"DIRECCION DE VIVIENDA, CONSTRUCCION Y SANEAMIENTO",url:"https://digital.regionhuanuco.gob.pe/registro/mesa-partes-virtual/9",category:"sede"},{id:8,nombre:"DIRECCION REGIONAL DE TRANSPORTES Y TELECOMUNICACIONES",url:"https://digital.regionhuanuco.gob.pe/registro/mesa-partes-virtual/10",category:"sede"},{id:9,nombre:"DIRECCION REGIONAL DE AGRICULTURA",url:"https://digital.regionhuanuco.gob.pe/registro/mesa-partes-virtual/11",category:"sede"},{id:10,nombre:"DIRECCION REGIONAL DE EDUCACIÃN",url:"https://digital.regionhuanuco.gob.pe/registro/mesa-partes-virtual/12",category:"educacion",destacado:!0},{id:11,nombre:"UGEL HUACAYBAMBA",url:"https://digital.regionhuanuco.gob.pe/registro/mesa-partes-virtual/13",category:"educacion"},{id:12,nombre:"UGEL LAURICOCHA",url:"https://digital.regionhuanuco.gob.pe/registro/mesa-partes-virtual/14",category:"educacion"},{id:13,nombre:"UGEL HUAMALIES",url:"https://digital.regionhuanuco.gob.pe/registro/mesa-partes-virtual/15",category:"educacion"},{id:14,nombre:"UGEL YAROWILCA",url:"https://digital.regionhuanuco.gob.pe/registro/mesa-partes-virtual/16",category:"educacion"},{id:15,nombre:"UGEL MARAÃÃN",url:"https://digital.regionhuanuco.gob.pe/registro/mesa-partes-virtual/17",category:"educacion"},{id:16,nombre:"UGEL PACHITEA",url:"https://digital.regionhuanuco.gob.pe/registro/mesa-partes-virtual/18",category:"educacion"},{id:17,nombre:"UGEL PUERTO INCA",url:"https://digital.regionhuanuco.gob.pe/registro/mesa-partes-virtual/19",category:"educacion"},{id:18,nombre:"UGEL AMBO",url:"https://digital.regionhuanuco.gob.pe/registro/mesa-partes-virtual/20",category:"educacion"},{id:19,nombre:"UGEL HUANUCO",url:"https://digital.regionhuanuco.gob.pe/registro/mesa-partes-virtual/21",category:"educacion"},{id:20,nombre:"UGEL LEONCIO PRADO",url:"https://digital.regionhuanuco.gob.pe/registro/mesa-partes-virtual/22",category:"educacion"},{id:21,nombre:"UGEL DOS DE MAYO",url:"https://digital.regionhuanuco.gob.pe/registro/mesa-partes-virtual/23",category:"educacion"},{id:22,nombre:"DIRECCION REGIONAL DE SALUD",url:"https://digital.regionhuanuco.gob.pe/registro/mesa-partes-virtual/24",category:"salud",destacado:!0},{id:23,nombre:"RED DOS DE MAYO",url:"https://digital.regionhuanuco.gob.pe/registro/mesa-partes-virtual/25",category:"salud"},{id:24,nombre:"RED AMBO",url:"https://digital.regionhuanuco.gob.pe/registro/mesa-partes-virtual/26",category:"salud"},{id:25,nombre:"RED HUAMALIES",url:"https://digital.regionhuanuco.gob.pe/registro/mesa-partes-virtual/27",category:"salud"},{id:26,nombre:"RED HUANUCO",url:"https://digital.regionhuanuco.gob.pe/registro/mesa-partes-virtual/28",category:"salud"},{id:27,nombre:"RED LEONCIO PRADO",url:"https://digital.regionhuanuco.gob.pe/registro/mesa-partes-virtual/29",category:"salud"},{id:28,nombre:"RED PACHITEA",url:"https://digital.regionhuanuco.gob.pe/registro/mesa-partes-virtual/30",category:"salud"},{id:29,nombre:"RED PUERTO INCA",url:"https://digital.regionhuanuco.gob.pe/registro/mesa-partes-virtual/31",category:"salud"},{id:30,nombre:"RED SALUD YAROWILCA",url:"https://digital.regionhuanuco.gob.pe/registro/mesa-partes-virtual/32",category:"salud"},{id:31,nombre:"HOSPITAL REGIONAL HVM",url:"https://digital.regionhuanuco.gob.pe/registro/mesa-partes-virtual/33",category:"salud"},{id:32,nombre:"HOSPITAL TINGO MARIA",url:"https://digital.regionhuanuco.gob.pe/registro/mesa-partes-virtual/34",category:"salud"},{id:33,nombre:"HOSPITAL MATERNO INFANTIL CARLOS SHOWING FERRARI",url:"https://digital.regionhuanuco.gob.pe/registro/mesa-partes-virtual/35",category:"salud"}],Ee=x("all"),V=x(""),Ae=k(()=>{const n=J.filter(d=>d.category==="sede");if(!V.value.trim())return n;const r=V.value.toLowerCase().trim();return n.filter(d=>d.nombre.toLowerCase().includes(r)||String(d.id).includes(r))}),Re=k(()=>{const n=J.filter(d=>d.category==="educacion");if(!V.value.trim())return n;const r=V.value.toLowerCase().trim();return n.filter(d=>d.nombre.toLowerCase().includes(r)||String(d.id).includes(r))}),Se=k(()=>{const n=J.filter(d=>d.category==="salud");if(!V.value.trim())return n;const r=V.value.toLowerCase().trim();return n.filter(d=>d.nombre.toLowerCase().includes(r)||String(d.id).includes(r))}),De=k(()=>{var n;return ne.value?"Mesas de Partes Virtuales":re.value?"Publicaciones Mapa de Procesos y Fichas":(n=T.value)!=null&&n.nom_pagina?T.value.nom_pagina.trim():"Documentos Oficiales"}),Oe=k(()=>{var n;return(n=T.value)!=null&&n.fecha_pag?Ze(T.value.fecha_pag):""}),Ne=[{id:99,title:"PEI (Plan Estratégico)",icon:"bi bi-file-earmark-text-fill"}
1,{id:468,title:"POI (Plan Operativo)",icon:"bi bi-file-earmark-bar-graph-fill"},{id:101,title:"PDRC Concertado",icon:"bi bi-file-earmark-spreadsheet-fill"},{id:68,title:"Programa PROCOMPITE",icon:"bi bi-trophy-fill"},{id:144,title:"Audiencias Públicas",icon:"bi bi-clipboard2-check-fill"},{id:145,title:"Publicaciones GRH",icon:"bi bi-journal-richtext"},{id:460,title:"Mapa de Procesos y Fichas",icon:"bi bi-diagram-2-fill"},{id:429,title:"Planes ORGRDDNSC",icon:"bi bi-shield-shaded"}],ue=n=>{const r=[],d=/<tr[^>]*>([\s\S]*?)<\/tr>/gi;let m,v=1;for(;(m=d.exec(n))!==null;){const f=m[1];if(f.includes("<th")||f.toLowerCase().includes("descripción")||f.toLowerCase().includes("descripcion")||f.toLowerCase().includes("Ãndice")||f.toLowerCase().includes("indice"))continue;const j=/<td[^>]*>([\s\S]*?)<\/td>/gi,R=[];let z;for(;(z=j.exec(f))!==null;)R.push(z[1]);if(R.length>=2){const Y=R[0].replace(/<[^>]*>/g,"").replace(/ /gi,"").trim(),G=Y.replace(/\.$/,"")||String(v);let M="",w="";for(let E=1;E<R.length;E++){const B=R[E],O=B.match(/<a\s+(?:[^>]*?\s+)?href=["']([^"']*)["'][^>]*>/i);O&&!w&&O[1]!=="#"&&(w=O[1].trim());const W=B.replace(/<a[\s\S]*?<\/a>/gi,"").replace(/<[^>]*>/g,"").replace(/ /gi," ").replace(/\s+/g," ").trim();W&&(!M||W.length>M.length)&&(M=W)}if(!M&&R[1]&&(M=R[1].replace(/<[^>]*>/g,"").replace(/ /gi," ").trim()),M&&M.length>1){const E=M.match(/\b(202[0-9]|201[0-9]|203[0-9])\b/),B=E?E[1]:null;let O="";w.includes("drive.google.com")?O="Google Drive":w.includes("nextcloud")?O="Nextcloud":w.includes("regionhuanuco.gob.pe")&&(O="Servidor GOREHCO");const W=(!w||w==="#")&&(f.includes("<strong")||R.length<3);r.push({id:`${G}_${v}`,num:isNaN(Number(G))?v:Number(G),displayNum:Y||String(v),title:M,url:w,year:B,hasFile:!!(w&&w!=="#"),hostTag:O,isSubHeader:W}),v++}}}return r},be=n=>{if(!n||!n.includes("<table")){A.value=[],L.value=[],Q.value="";return}let r="";const d=[...n.matchAll(/<div[^>]*class=["'][^"']*card-header[^"']*["'][^>]*>([\s\S]*?)<\/div>/gi)],m=[];let v=1;for(let f=0;f<d.length;f++){const j=d[f],R=j[1],z=(j.index||0)+j[0].length,Y=f+1<d.length&&d[f+1].index||n.length,G=n.substring(z,Y),M=R.match(/<h[1-6][^>]*>([\s\S]*?)<\/h[1-6]>/i),w=M?M[1].replace(/<[^>]*>/g,"").replace(/ /gi," ").trim():R.replace(/<[^>]*>/g,"").replace(/ /gi," ").trim(),E=ue(G);E.length===0&&!r?r=w:(E.length>0||w.length>2)&&(m.push({id:v,title:w,shortTitle:`${v}. ${w.length>36?w.slice(0,34)+"...":w}`,documents:E,isOpen:!1}),v++)}if(Q.value=r,m.length>1){A.value=m;const f=[];m.forEach(j=>f.push(...j.documents)),L.value=f}else m.length===1?(m[0].isOpen=!0,A.value=m,L.value=m[0].documents):(A.value=[],L.value=ue(n))},{isRetrying:Ie,retryCount:_e,executeWithRetry:Le,cancel:je}=st(),ae=async n=>{if(N.value="",i.value="all",C.value="all",h.value=1,q.value="",de.value="all",je(),String(n)==="102"){t.replace("/documentos-gestion");return}if(String(n)==="103"){F.value=!1;return}const r=`pagina_${n}`,d=me.get(r);d&&(d.nom_pagina||d.cont_pagina)?(T.value=d,H.value=d.cont_pagina||"",be(d.cont_pagina||""),F.value=!1):(F.value=!0,T.value=null,A.value=[],L.value=[],H.value=""),await Le(async()=>{const v=(await Je.getPagina(n)).data,f=Array.isArray(v==null?void 0:v.pagina)?v.pagina[0]:(v==null?void 0:v.pagina)||v;return!f||!f.cont_pagina&&!f.nom_pagina?null:f},{maxRetries:8,initialDelayMs:1200,intervalMs:2500,isValid:m=>!!(m&&(m.cont_pagina||m.nom_pagina)),onSuccess:m=>{m&&(T.value=m,H.value=m.cont_pagina||"",be(m.cont_pagina||""),me.set(r,m)),F.value=!1},onError:(m,v)=>{console.warn(`[PortalPaginaDinamica] Intento #${v} de carga para página ${n}:`,m)}}),F.value=!1},Ue=k(()=>{const n=new Map;return L.value.forEach(r=>{r.year&&n.set(r.year,(n.get(r.year)||0)+1)}),Array.from(n.entries()).map(([r,d])=>({year:r,count:d})).sort((r,d)=>Number(d.year)-Number(r.year))}),Te=k(()=>{let n=A.value;if(C.value!=="all"&&(n=n.filter(r=>r.id===C.value)),N.value.trim()){const r=N.value.toLowerCase().trim();n=n.map(d=>{const m=d.title.toLowerCase().includes(r)||d.cui&&d.cui.toLowerCase().includes(r)||d.subtitle&&d.subtitle.toLowerCase().includes(r),v=d.documents.filter(f=>
1f.title.toLowerCase().includes(r)||f.displayNum.includes(r)||f.year&&f.year.includes(r));return m?{...d,isOpen:!0}:v.length>0?{...d,documents:v,isOpen:!0}:null}).filter(Boolean)}return n}),ge=k(()=>A.value.length>0&&A.value.every(n=>n.isOpen)),Ge=n=>{const r=A.value.find(d=>d.id===n);r&&(r.isOpen=!r.isOpen)},$e=()=>{const n=!ge.value;A.value.forEach(r=>r.isOpen=n)},Fe=n=>{if(C.value=n,n!=="all"){const r=A.value.find(d=>d.id===n);r&&(r.isOpen=!0)}},oe=k(()=>{let n=[...L.value];if(i.value!=="all"&&(n=n.filter(r=>r.year===i.value)),N.value.trim()){const r=N.value.toLowerCase().trim();n=n.filter(d=>d.title.toLowerCase().includes(r)||d.displayNum.includes(r)||d.year&&d.year.includes(r))}return n.sort((r,d)=>p.value?d.num-r.num:r.num-d.num),n}),He=k(()=>Math.ceil(oe.value.length/I.value)||1),Ve=k(()=>{const n=(h.value-1)*I.value;return oe.value.slice(n,n+I.value)}),ze=()=>{p.value=!p.value},Ye=()=>{N.value="",i.value="all",C.value="all",h.value=1},Be=async()=>{try{typeof navigator<"u"&&navigator.clipboard&&(await navigator.clipboard.writeText(window.location.href),Z.value=!0,setTimeout(()=>{Z.value=!1},3e3))}catch(n){console.warn(n)}};return qe(()=>s.params.id,n=>{n&&ae(n)}),We(()=>{ae(ee.value)}),{isLoading:F,isRetrying:Ie,retryCount:_e,loadPage:ae,isMesasDePartesPage:ne,isMapaProcesosPage:re,isMultiSectionPage:ye,mesasDePartesList:J,selectedMpCategory:Ee,mpSearchQuery:V,filteredSedeUnits:Ae,filteredEducacionUnits:Re,filteredSaludUnits:Se,pageTitle:De,mainCardTitle:Q,pageDate:Oe,pageContent:H,parsedDocuments:L,parsedSections:A,selectedSectionTab:C,filteredSections:Te,allSectionsExpanded:ge,toggleSection:Ge,toggleAllSections:$e,selectSectionTab:Fe,filteredDocuments:oe,paginatedDocuments:Ve,searchQuery:N,selectedYear:i,availableYears:Ue,sortDesc:p,viewMode:P,currentPage:h,pageSize:I,totalPages:He,copied:Z,relatedPages:Ne,currentPageId:ee,toggleSortOrder:ze,resetFilters:Ye,copyPageUrl:Be,mapaVersionesList:te,selectedMapaCategory:de,mapaSearchQuery:q,mapaAccordionState:D,toggleMapaAccordion:he,allMapaAccordionsExpanded:pe,toggleAllMapaAccordions:ve,filteredVersiones:xe,estrategicosProcesos:we,misionalesProcesos:ke,apoyoProcesos:Ce,selectedProcesoModal:se,selectedProcesoCategory:ce,openFichaModal:Pe,closeFichaModal:Me}}}),at={class:"portal-pagina-dinamica min-vh-100 pb-15"},ot={class:"page-hero py-10 px-4 px-lg-10 mb-8 position-relative overflow-hidden"},lt={class:"container-xxl position-relative z-index-2"},nt={"aria-label":"breadcrumb",class:"mb-4"},rt={class:"breadcrumb m-0 fs-7"},dt={class:"breadcrumb-item"},ct={key:0,class:"breadcrumb-item"},pt={key:1,class:"breadcrumb-item"},ut={class:"breadcrumb-item active text-warning fw-semibold text-truncate max-w-400","aria-current":"page"},bt={key:0,class:"row align-items-center g-4"},gt={key:1,class:"row align-items-center g-4"},mt={class:"col-lg-8"},ft={class:"d-flex align-items-center gap-2 flex-wrap mb-2"},yt={class:"badge bg-warning text-dark fw-bolder px-3 py-1.5 rounded-pill fs-8 text-uppercase"},ht={key:0,class:"badge bg-white bg-opacity-15 text-white fw-medium px-3 py-1.5 rounded-pill fs-8"},vt={key:1,class:"text-white text-opacity-80 fs-8 d-inline-flex align-items-center gap-1"},xt={class:"display-6 fw-extrabold text-white mb-2 text-capitalize"},wt={class:"fs-6 text-white text-opacity-85 m-0 lh-base max-w-700"},kt={class:"col-lg-4 text-lg-end"},Ct={class:"d-inline-flex align-items-center gap-3 bg-white bg-opacity-10 p-3 rounded-4 backdrop-blur border border-white border-opacity-15"},Pt={class:"text-center px-3 border-end border-white border-opacity-15"},Mt={class:"fs-2x fw-extrabold text-warning lh-1"},Et={class:"fs-9 text-white opacity-75 fw-semibold mt-1"},At={class:"d-flex flex-column gap-1"},Rt={key:0,class:"container-xxl px-4 px-lg-10"},St={class:"card border-0 shadow-sm rounded-4 p-4 p-md-5 mb-8 mp-toolbar-card"},Dt={class:"row align-items-center g-4 justify-content-between"},Ot={class:"col-lg-5"},Nt={class:"position-relative"},It={class:"col-lg-7 d-flex align-items-center justify-content-lg-end gap-2 flex-wrap"},_t={class:"row g-6"},Lt={class:"card h-100 mp-category-card border-0 shadow-sm rounded-4 overflow-hidden"},jt={class:"mp-col-header p-4 text-white d-flex align-items-center justify-content-between",style:{background:"linear-gradient(135deg, #1E293B 0%, #334155 100%)"}},Ut={class:"badge bg-white bg-opacity-20 text-white rounded-pill px-2.5 py-1 fs-9"},Tt={class:"card-body p-3 p-md-4 d-flex flex-column gap-2"},Gt={class:"d-flex align-items-center gap-2.5 flex-grow-1 pe-2"},$t={class:"badge mp-unit-num rounded-pill px-2.5 py-1 fw-bold fs-8"},Ft={class:"mp-unit-name fw-bold fs-8 lh-sm"},Ht=["href","title"],Vt={key:0,class:"text-center py-6 text-muted fs-8"},zt={class:"card h-100 mp-category-card border-0 shadow-sm rounded-4 overflow-hidden"},Yt={class:"mp-col-header p-4 text-white d-flex align-items-center justify-content-between",style:{background:"linear-gradient(135deg, #1E293B 0%, #334155 100%)"}},Bt={class:"badge bg-white bg-opacity-20 text-white rounded-pill px-2.5 py-1 fs-9"},Qt={class:"card-body p-3 p-md-4 d-flex flex-column gap-2"},qt={class:"d-flex align-items-center gap-2.5 flex-grow-1 pe-2"},Wt={class:"badge mp-unit-num rounded-pill px-2.5 py-1 fw-bold fs-8"},Jt={class:"mp-unit-name fw-bold fs-8 lh-sm"},Kt=["href","title"],Xt={key:0,class:"text-center py-6 text-muted fs-8"},Zt={class:"card h-100 mp-category-card border-0 shadow-sm rounded-4 overflow-hidden"},es={class:"mp-col-header p-4 text-white d-flex align-items-center justify-content-between",style:{background:"linear-gradient(135deg, #1E293B 0%, #334155 100%)"}},ts={class:"badge bg-white bg-opacity-20 text-white rounded-pill px-2.5 py-1 fs-9"},ss={class:"card-body p-3 p-md-4 d-flex flex-column gap-2"},is={class:"d-flex align-items-center gap-2.5 flex-grow-1 pe-2"},as={class:"badge mp-unit-num rounded-pill px-2.5 py-1 fw-bold fs-8"},os={class:"mp-unit-name fw-bold fs-8 lh-sm"},ls=["href","title"],ns={key:0,class:"text-center py-6 text-muted fs-8"},rs={key:1,class:"container-xxl px-4 px-lg-10"},ds={class:"row g-8"},cs={class:"col-lg-8 col-xl-9"},ps={class:"card doc-main-card border-0 shadow-sm rounded-4 p-4 p-md-5 mb-6"},us={class:"d-flex flex-column flex-md-row align-items-md-center justify-content-between gap-4 mb-4"},bs={class:"position-relative flex-grow-1 max-w-450"},gs={class:"d-flex align-items-center gap-2 flex-shrink-0"},ms={class:"d-flex align-items-center gap-2 overflow-x-auto pb-1 pt-3 border-top process-tabs-wrapper"},fs={class:"d-flex flex-column gap-5"},ys={class:"card doc-main-card mapa-accordion-box border-0 shadow-sm rounded-4 overflow-hidden"},hs={class:"d-flex align-items-center gap-3 pe-3 flex-grow-1"},vs={class:"d-flex align-items-center gap-2 flex-wrap mb-1"},xs={class:"badge bg-light text-muted fw-semibold px-2 py-0.5 rounded-pill fs-9"},ws={class:"border-top p-4 p-md-5 bg-light-subtle"},ks={class:"d-flex flex-column gap-3"},Cs={class:"d-flex align-items-start gap-3 flex-grow-1"},Ps={class:"d-flex align-items-center gap-2 flex-wrap mb-1"},Ms={key:0,class:"badge bg-success text-white fw-bold px-2.5 py-0.5 rounded-pill fs-9"},Es={key:1,class:"badge bg-secondary text-white fw-bold px-2 py-0.5 rounded-pill fs-9"},As={class:"badge bg-light-primary text-primary fw-bold px-2.5 py-0.5 rounded-pill fs-9"},Rs={class:"badge bg-light text-muted px-2 py-0.5 rounded-pill fs-9"},Ss={class:"fw-bold fs-7 text-gray-900 mb-1"},Ds={class:"fs-8 text-primary fw-semibold mb-1"},Os={class:"fs-9 text-muted m-0 lh-sm"},Ns={class:"d-flex align-items-center gap-2 flex-shrink-0 align-self-end align-self-md-center"},Is=["href"],_s={key:0,class:"text-center py-6 text-muted fs-8"},Ls={class:"card doc-main-card mapa-accordion-box border-0 shadow-sm rounded-4 overflow-hidden"},js={class:"d-flex align-items-center gap-3 pe-3 flex-grow-1"},Us={class:"d-flex align-items-center gap-2 flex-wrap mb-1"},Ts={class:"badge bg-light-primary text-primary fw-semibold px-2 py-0.5 rounded-pill fs-9"},Gs={class:"border-top p-4 p-md-5 bg-light-subtle"},$s={class:"d-flex flex-column gap-3.5"},Fs={class:"d-flex flex-column flex-md-row align-items-start justify-content-between gap-3"},Hs={class:"d-flex align-items-start gap-3 flex-grow-1"}
1,Vs={class:"mapa-code-badge bg-primary text-white rounded-3 fw-extrabold fs-7 d-flex align-items-center justify-content-center flex-shrink-0 shadow-xs"},zs={class:"flex-grow-1"},Ys={class:"d-flex align-items-center gap-2 flex-wrap mb-1"},Bs={key:0,class:"badge bg-light text-muted px-2 py-0.5 rounded-pill fs-9"},Qs={class:"fw-extrabold fs-6 text-gray-900 mb-1"},qs={key:0,class:"fs-8 text-gray-700 m-0 lh-sm mb-2"},Ws={key:1,class:"d-flex align-items-center gap-1.5 flex-wrap mb-2"},Js={key:2,class:"mapa-subproc-wrapper pt-2 border-top mt-2"},Ks={class:"d-flex align-items-center gap-1.5 flex-wrap"},Xs={class:"d-flex align-items-center gap-2 flex-shrink-0 align-self-end align-self-md-start mt-2 mt-md-0"},Zs=["onClick"],ei=["href"],ti={key:0,class:"text-center py-6 text-muted fs-8"},si={class:"card doc-main-card mapa-accordion-box border-0 shadow-sm rounded-4 overflow-hidden"},ii={class:"d-flex align-items-center gap-3 pe-3 flex-grow-1"},ai={class:"d-flex align-items-center gap-2 flex-wrap mb-1"},oi={class:"badge bg-light-success text-success fw-semibold px-2 py-0.5 rounded-pill fs-9"},li={class:"border-top p-4 p-md-5 bg-light-subtle"},ni={class:"d-flex flex-column gap-3.5"},ri={class:"d-flex flex-column flex-md-row align-items-start justify-content-between gap-3"},di={class:"d-flex align-items-start gap-3 flex-grow-1"},ci={class:"mapa-code-badge bg-success text-white rounded-3 fw-extrabold fs-7 d-flex align-items-center justify-content-center flex-shrink-0 shadow-xs"},pi={class:"flex-grow-1"},ui={class:"d-flex align-items-center gap-2 flex-wrap mb-1"},bi={key:0,class:"badge bg-light text-muted px-2 py-0.5 rounded-pill fs-9"},gi={class:"fw-extrabold fs-6 text-gray-900 mb-1"},mi={key:0,class:"fs-8 text-gray-700 m-0 lh-sm mb-2"},fi={key:1,class:"d-flex align-items-center gap-1.5 flex-wrap mb-2"},yi={key:2,class:"mapa-subproc-wrapper pt-2 border-top mt-2"},hi={class:"d-flex align-items-center gap-1.5 flex-wrap"},vi={class:"d-flex align-items-center gap-2 flex-shrink-0 align-self-end align-self-md-start mt-2 mt-md-0"},xi=["onClick"],wi=["href"],ki={key:0,class:"text-center py-6 text-muted fs-8"},Ci={class:"card doc-main-card mapa-accordion-box border-0 shadow-sm rounded-4 overflow-hidden"},Pi={class:"d-flex align-items-center gap-3 pe-3 flex-grow-1"},Mi={class:"d-flex align-items-center gap-2 flex-wrap mb-1"},Ei={class:"badge bg-light-warning text-dark fw-semibold px-2 py-0.5 rounded-pill fs-9"},Ai={class:"border-top p-4 p-md-5 bg-light-subtle"},Ri={class:"d-flex flex-column gap-3.5"},Si={class:"d-flex flex-column flex-md-row align-items-start justify-content-between gap-3"},Di={class:"d-flex align-items-start gap-3 flex-grow-1"},Oi={class:"mapa-code-badge bg-warning text-dark rounded-3 fw-extrabold fs-7 d-flex align-items-center justify-content-center flex-shrink-0 shadow-xs"},Ni={class:"flex-grow-1"},Ii={class:"d-flex align-items-center gap-2 flex-wrap mb-1"},_i={key:0,class:"badge bg-light text-muted px-2 py-0.5 rounded-pill fs-9"},Li={class:"fw-extrabold fs-6 text-gray-900 mb-1"},ji={key:0,class:"fs-8 text-gray-700 m-0 lh-sm mb-2"},Ui={key:1,class:"d-flex align-items-center gap-1.5 flex-wrap mb-2"},Ti={key:2,class:"mapa-subproc-wrapper pt-2 border-top mt-2"},Gi={class:"d-flex align-items-center gap-1.5 flex-wrap"},$i={class:"d-flex align-items-center gap-2 flex-shrink-0 align-self-end align-self-md-start mt-2 mt-md-0"},Fi=["onClick"],Hi=["href"],Vi={key:0,class:"text-center py-6 text-muted fs-8"},zi={class:"col-lg-4 col-xl-3"}
1,Yi={class:"d-flex flex-column gap-6 position-sticky",style:{top:"95px"}},Bi={class:"card doc-sidebar-card border-0 shadow-sm rounded-4 p-5"},Qi={class:"list-group list-group-flush fs-8"},qi={class:"d-flex align-items-center gap-2"},Wi={class:"fw-semibold text-truncate max-w-160"},Ji={key:0,class:"modal fade show d-block mapa-ficha-modal-backdrop",tabindex:"-1",role:"dialog","aria-modal":"true"},Ki={class:"modal-dialog modal-dialog-centered modal-lg",role:"document"},Xi={class:"modal-content border-0 shadow-lg rounded-4 overflow-hidden"},Zi={class:"modal-header p-4 p-md-5 text-white",style:{background:"linear-gradient(135deg, #023624 0%, #044D34 50%, #007A4B 100%)"}},ea={class:"d-flex align-items-center gap-3"},ta={class:"badge bg-warning text-dark fw-extrabold px-3 py-1.5 rounded-pill fs-7"},sa={class:"badge bg-white bg-opacity-20 text-white px-2.5 py-0.5 rounded-pill fs-9 text-uppercase mb-1"},ia={class:"modal-title fw-extrabold text-white fs-5 m-0 lh-sm"},aa={class:"modal-body p-4 p-md-6 d-flex flex-column gap-4 max-h-70vh overflow-y-auto"},oa={key:0,class:"p-4 rounded-3 bg-light border"},la={class:"fs-7 text-gray-900 fw-medium lh-base"},na={key:1,class:"d-flex flex-column gap-2"},ra={class:"d-flex flex-wrap gap-1.5"},da={key:2,class:"d-flex flex-column gap-2"},ca={class:"list-group list-group-flush border rounded-3 p-2 bg-light-subtle"},pa={key:3,class:"d-flex flex-column gap-2"},ua={class:"fs-8 fw-bold text-gray-900 d-flex align-items-center gap-1.5"},ba={class:"table-responsive border rounded-3 overflow-hidden"},ga={class:"table table-hover align-middle gs-0 gy-3 m-0"},ma={class:"fs-8"},fa={class:"ps-4 py-2.5"},ya={class:"badge bg-light-primary text-primary fw-bold rounded-pill px-2.5 py-1 fs-9"},ha={class:"pe-4 py-2.5 fw-semibold text-gray-900"},va={key:4,class:"d-flex flex-column gap-2"},xa={class:"d-flex align-items-center justify-content-between gap-2 flex-wrap"},wa={class:"badge bg-info text-white fw-bold px-2 py-0.5 rounded-pill fs-9"},ka={class:"badge bg-light text-muted px-2 py-0.5 rounded-pill fs-9"},Ca={class:"fw-bold fs-8 text-gray-900"},Pa={class:"fs-9 text-muted"},Ma={key:0,class:"d-flex align-items-center gap-2 flex-wrap pt-1 border-top mt-1"},Ea={class:"modal-footer p-4 border-top bg-light d-flex align-items-center justify-content-between"},Aa=["href"],Ra={key:2,class:"container-xxl px-4 px-lg-10"},Sa={class:"row g-8"},Da={class:"col-lg-8 col-xl-9"},Oa={key:0,class:"card doc-main-card border-0 shadow-sm rounded-4 p-6 p-lg-8 mb-8 text-center py-12 d-flex flex-column align-items-center justify-content-center"},Na={key:0,class:"fs-8 text-muted mb-0 text-center"},Ia={key:1,class:"fs-8 text-muted mb-0 text-center"},_a={key:1,class:"card doc-main-card doc-accordion-wrapper border-0 shadow-sm rounded-3 overflow-hidden mb-8"},La={class:"card-header doc-outer-header py-3 px-4 d-flex align-items-center justify-content-between flex-wrap gap-3 border-0"},ja={class:"d-flex align-items-center gap-2"},Ua={class:"card-title mb-0 fs-5 fw-bold text-uppercase tracking-wide doc-outer-title"},Ta={class:"d-flex align-items-center gap-3"},Ga={class:"position-relative",style:{"min-width":"220px","max-width":"320px"}},$a={class:"card-body doc-outer-body p-4 p-lg-5 d-flex flex-column gap-3"},Fa=["onClick"],Ha={class:"card-title m-0 fs-6 fw-bold text-uppercase d-flex align-items-center gap-2"},Va={class:"doc-sec-title"},za={class:"card-tools d-flex align-items-center gap-2"},Ya={class:"badge doc-count-badge fw-semibold rounded-pill px-2.5 py-1 fs-9"},Ba=["aria-label"],Qa={class:"card-body p-0 border-top doc-card-inner-body"},qa={class:"table-responsive"},Wa={class:"table table-bordered align-middle text-center m-0 doc-data-table"},Ja={class:"fs-7"},Ka={class:"text-center py-2.5 doc-idx-cell"},Xa={key:0,class:"fs-7 doc-code-text"},Za={key:1,class:"fs-8 doc-num-sub"},eo={key:2,class:"fs-9 doc-num-dot"},to={class:"text-start ps-4 py-2.5 doc-content-cell"},so={key:0,class:"text-uppercase fw-bold doc-subheader-title"},io={key:1,class:"d-flex align-items-center gap-2"},ao={class:"doc-text fw-medium"},oo={key:0,class:"badge doc-host-badge border px-2 py-0.5 rounded-pill fs-9"},lo={class:"text-center py-2.5 doc-action-cell"},no=["href"],ro={key:1,class:"doc-no-file fs-9"},co={key:0,class:"p-8 text-center doc-empty-box rounded-3 border"},po={class:"fs-8 text-muted mb-3"},uo={key:2,class:"card doc-main-card border-0 shadow-sm rounded-4 overflow-hidden mb-8"},bo={class:"card-header doc-card-header border-0 pt-6 px-6 px-lg-8 pb-4"},go={class:"d-flex flex-column flex-md-row align-items-md-center justify-content-between gap-4 w-100"},mo={class:"position-relative flex-grow-1 max-w-450"},fo={class:"d-flex align-items-center gap-2"},yo=["title"],ho={class:"d-none d-sm-inline"},vo={class:"btn-group p-1 bg-light rounded-pill border layout-switch-group"},xo={key:0,class:"d-flex align-items-center gap-2 flex-wrap mt-4 pt-3 border-top border-gray-100 doc-filter-bar"},wo=["onClick"],ko={key:0,class:"card-body p-0"},Co={class:"table-responsive"},Po={class:"table table-hover align-middle gs-0 gy-4 m-0 border-top doc-data-table"},Mo={class:"fs-7"},Eo={class:"ps-6 ps-lg-8 text-center"},Ao={class:"badge num-pill fw-bold rounded-pill px-2.5 py-1.5 fs-8"},Ro={class:"py-3 pe-4"},So={class:"d-flex align-items-start gap-2"},Do={class:"fw-bold doc-title-text lh-sm"},Oo={class:"fs-9 text-muted mt-1 d-flex align-items-center gap-2"},No={key:0,class:"d-inline-flex align-items-center gap-1 text-muted"},Io={key:1,class:"badge host-badge-pill px-2 py-0.5 rounded-pill fs-9"},_o={class:"text-center d-none d-md-table-cell"},Lo={key:0,class:"badge year-badge-pill fw-bold px-3 py-1 rounded-pill fs-8"},jo={key:1,class:"text-muted fs-8"},Uo={class:"pe-6 pe-lg-8 text-end"},To=["href"],Go={key:1,class:"badge host-badge-pill px-3 py-1.5 rounded-pill fs-9"},$o={key:1,class:"card-body p-6 p-lg-8 border-top"},Fo={class:"row g-4 row-cols-1 row-cols-md-2 row-cols-xl-3"},Ho={class:"card h-100 doc-grid-card border shadow-xs rounded-4 p-5 d-flex flex-column justify-content-between transition-all"},Vo={class:"d-flex align-items-center justify-content-between mb-3"},zo={class:"badge num-pill fw-bold rounded-pill px-2.5 py-1 fs-8"},Yo={key:0,class:"badge year-badge-pill fw-bold px-2.5 py-1 rounded-pill fs-9"},Bo={class:"d-flex align-items-start gap-3 mb-3"},Qo={class:"fs-7 fw-bold card-title-text lh-sm m-0 line-clamp-3"},qo={class:"mt-4 pt-3 border-top d-flex align-items-center justify-content-between"},Wo=["href"],Jo={key:2,class:"card-body text-center py-12"},Ko={class:"fs-8 text-muted mb-4"},Xo={key:3,class:"card-footer doc-card-footer py-4 px-6 px-lg-8 border-top d-flex flex-column flex-sm-row align-items-center justify-content-between gap-3"},Zo={class:"fs-8 text-muted"},el={class:"d-flex align-items-center gap-1"},tl=["disabled"],sl=["onClick"],il=["disabled"],al={key:3,class:"card doc-main-card border-0 shadow-sm rounded-4 p-6 p-lg-10 mb-8"},ol=["innerHTML"],ll={key:4,class:"card doc-main-card border-0 shadow-sm rounded-4 p-10 text-center mb-8"},nl={class:"d-flex align-items-center justify-content-center gap-3 flex-wrap"},rl=["disabled"],dl={class:"col-lg-4 col-xl-3"}
1,cl={class:"d-flex flex-column gap-6 position-sticky",style:{top:"95px"}},pl={class:"card doc-sidebar-card border-0 shadow-sm rounded-4 p-5"},ul={class:"list-group list-group-flush fs-8"},bl={class:"d-flex align-items-center gap-2"},gl={class:"fw-semibold text-truncate max-w-160"};function ml(s,t,F,T,L,A){var H,Q,N;const C=tt("router-link");return a(),o("div",at,[e("div",ot,[t[42]||(t[42]=e("div",{class:"hero-bg-overlay position-absolute w-100 h-100 top-0 start-0"},null,-1)),e("div",lt,[e("nav",nt,[e("ol",rt,[e("li",dt,[$(C,{to:"/",class:"text-white text-opacity-90 text-hover-warning text-decoration-none d-inline-flex align-items-center"},{default:_(()=>[...t[35]||(t[35]=[e("i",{class:"bi bi-house-door-fill text-warning me-1.5 fs-7"},null,-1),e("span",null,"Inicio",-1)])]),_:1})]),!s.isMesasDePartesPage&&!s.isMapaProcesosPage?(a(),o("li",ct,[$(C,{to:"/documentos-gestion",class:"text-white text-opacity-75 text-hover-white text-decoration-none"},{default:_(()=>[...t[36]||(t[36]=[b(" Documentos ",-1)])]),_:1})])):s.isMapaProcesosPage?(a(),o("li",pt,[$(C,{to:"/documentos-gestion",class:"text-white text-opacity-75 text-hover-white text-decoration-none"},{default:_(()=>[...t[37]||(t[37]=[b(" Modernización y Procesos ",-1)])]),_:1})])):c("",!0),e("li",ut,l(s.isMesasDePartesPage?"Mesas de Partes Virtuales":s.isMapaProcesosPage?"Mapa de Procesos y Fichas":s.pageTitle),1)])]),s.isLoading?(a(),o("div",bt,[...t[38]||(t[38]=[e("div",{class:"col-lg-8"},[e("div",{class:"skeleton-box rounded-pill mb-3",style:{width:"200px",height:"24px",background:"rgba(255,255,255,0.15)"}}),e("div",{class:"skeleton-box rounded-3 mb-3",style:{width:"80%",height:"44px",background:"rgba(255,255,255,0.2)"}}),e("div",{class:"skeleton-box rounded-2",style:{width:"60%",height:"18px",background:"rgba(255,255,255,0.15)"}})],-1)])])):(a(),o("div",gt,[e("div",mt,[e("div",ft,[e("span",yt,[e("i",{class:u([s.isMesasDePartesPage?"bi bi-envelope-paper-fill":s.isMapaProcesosPage?"bi bi-diagram-3-fill":"bi bi-file-earmark-text-fill","me-1"])},null,2),b(" "+l(s.isMesasDePartesPage?"Atención Digital al Ciudadano":s.isMapaProcesosPage?"Gestión por Procesos":"Publicación Oficial"),1)]),s.isMapaProcesosPage?(a(),o("span",ht,[...t[39]||(t[39]=[e("i",{class:"bi bi-patch-check-fill me-1 text-warning"},null,-1),b(" Versión 3.0 (Año 2025) ",-1)])])):c("",!0),t[41]||(t[41]=e("span",{class:"badge bg-white bg-opacity-15 text-white fw-medium px-3 py-1.5 rounded-pill fs-8"},[e("i",{class:"bi bi-building me-1"}),b(" Gobierno Regional Huánuco ")],-1)),s.pageDate&&!s.isMesasDePartesPage&&!s.isMapaProcesosPage?(a(),o("span",vt,[t[40]||(t[40]=e("i",{class:"bi bi-calendar3"},null,-1)),b(" Actualizado: "+l(s.pageDate),1)])):c("",!0)]),e("h1",xt,l(s.isMesasDePartesPage?"Mesas de Partes Virtuales":s.isMapaProcesosPage?"Publicaciones Mapa de Procesos y Fichas":s.pageTitle),1),e("p",wt,[s.isMesasDePartesPage?(a(),o(g,{key:0},[b(" Acceso unificado para el envÃo digital de documentos, solicitudes y expedientes dirigidos a la Sede Central, Direcciones Regionales, UGELs y Redes de Salud. ")],64)):s.isMapaProcesosPage?(a(),o(g,{key:1},[b(" Estructura oficial por procesos de nivel 0 y nivel 1, manuales (MAPRO), fichas de caracterización técnica e indicadores de desempeño institucional del Gobierno Regional Huánuco. ")],64)):(a(),o(g,{key:2},[b(" Repositorio oficial y relación de documentos normativos, resoluciones, informes de evaluación y archivos descargables. ")],64))])]),e("div",kt,[e("div",Ct,[e("div",Pt,[e("div",Mt,l(s.isMesasDePartesPage?s.mesasDePartesList.length:s.isMapaProcesosPage?"16":s.filteredDocuments.length),1),e("div",Et,l(s.isMesasDePartesPage?"Unidades":s.isMapaProcesosPage?"Procesos Nivel 0":"Archivos"),1)]),e("div",At,[e("button",{type:"button",class:"btn btn-sm btn-light-success text-white bg-white bg-opacity-20 border border-white border-opacity-25 rounded-pill px-3 py-1.5 fs-8 d-flex align-items-center gap-1 text-hover-white",onClick:t[0]||(t[0]=(...i)=>s.copyPageUrl&&s.copyPageUrl(...i))},[e("i",{class:u(s.copied?"bi bi-check2 text-warning":"bi bi-share")},null,2),e("span",null,l(s.copied?"¡Enlace copiado!":"Compartir"),1)]),$(C,{to:s.isMesasDePartesPage?"/":"/documentos-gestion",class:"btn btn-sm btn-link text-white text-opacity-80 text-decoration-none fs-9 p-0 text-hover-warning"},{default:_(()=>[e("i",{class:u(["bi me-1",s.isMesasDePartesPage?"bi-house":"bi-arrow-left"])},null,2),b(" "+l(s.isMesasDePartesPage?"Volver al Inicio":"Ver otros documentos"),1)]),_:1},8,["to"])])])])]))])]),s.isMesasDePartesPage?(a(),o("div",Rt,[t[51]||(t[51]=K('<div class="mp-notice-card p-4 p-md-5 rounded-4 mb-6 shadow-sm border position-relative overflow-hidden" data-v-5ab97a43><div class="d-flex align-items-start align-items-md-center gap-3" data-v-5ab97a43><span class="badge bg-danger text-white fw-extrabold px-3 py-1.5 rounded-pill fs-8 text-uppercase tracking-wider flex-shrink-0" data-v-5ab97a43><i class="bi bi-info-circle-fill me-1" data-v-5ab97a43></i> NOTA </span><div class="fs-7 text-gray-800 fw-medium m-0 lh-base flex-grow-1" data-v-5ab97a43> Estimado(a) usuario(a), ubique la dirección, UGEL o red de salud donde desea enviar su trámite haciendo clic en el botón <span class="badge bg-primary text-white fw-bold px-2.5 py-1 rounded-pill ms-1 d-inline-flex align-items-center gap-1" data-v-5ab97a43><i class="bi bi-eye-fill fs-9" data-v-5ab97a43></i> Ir </span> para acceder directamente al formulario oficial de recepción virtual. </div></div></div>',1)),e("div",St,[e("div",Dt,[e("div",Ot,[e("div",Nt,[t[44]||(t[44]=e("i",{class:"bi bi-search position-absolute top-50 start-0 translate-middle-y ms-4 text-muted fs-6"},null,-1)),S(e("input",{"onUpdate:modelValue":t[1]||(t[1]=i=>s.mpSearchQuery=i),type:"text",class:"form-control form-control-solid ps-12 pe-10 py-3 rounded-pill fs-7 mp-search-input",placeholder:"Buscar unidad ejecutora, UGEL, dirección o red de salud..."},null,512),[[X,s.mpSearchQuery]]),s.mpSearchQuery?(a(),o("button",{key:0,t
1ype:"button",class:"btn btn-sm btn-icon position-absolute top-50 end-0 translate-middle-y me-2 border-0 bg-transparent",onClick:t[2]||(t[2]=i=>s.mpSearchQuery="")},[...t[43]||(t[43]=[e("i",{class:"bi bi-x-circle-fill text-muted"},null,-1)])])):c("",!0)])]),e("div",It,[e("button",{type:"button",class:u(["btn btn-sm rounded-pill px-3.5 py-2 fs-8 fw-bold transition-all",s.selectedMpCategory==="all"?"btn-success text-white shadow-sm":"btn-light text-gray-700"]),onClick:t[3]||(t[3]=i=>s.selectedMpCategory="all")}," Todas las Unidades ("+l(s.mesasDePartesList.length)+") ",3),e("button",{type:"button",class:u(["btn btn-sm rounded-pill px-3.5 py-2 fs-8 fw-bold transition-all",s.selectedMpCategory==="sede"?"btn-primary text-white shadow-sm":"btn-light text-gray-700"]),onClick:t[4]||(t[4]=i=>s.selectedMpCategory="sede")}," Sede y Direcciones (9) ",2),e("button",{type:"button",class:u(["btn btn-sm rounded-pill px-3.5 py-2 fs-8 fw-bold transition-all",s.selectedMpCategory==="educacion"?"btn-warning text-dark shadow-sm":"btn-light text-gray-700"]),onClick:t[5]||(t[5]=i=>s.selectedMpCategory="educacion")}," Educación / UGELs (12) ",2),e("button",{type:"button",class:u(["btn btn-sm rounded-pill px-3.5 py-2 fs-8 fw-bold transition-all",s.selectedMpCategory==="salud"?"btn-info text-white shadow-sm":"btn-light text-gray-700"]),onClick:t[6]||(t[6]=i=>s.selectedMpCategory="salud")}," Salud y Hospitales (12) ",2)])])]),e("div",_t,[s.selectedMpCategory==="all"||s.selectedMpCategory==="sede"?(a(),o("div",{key:0,class:u(["col-12 col-lg-4",{"col-lg-12":s.selectedMpCategory==="sede"}])},[e("div",Lt,[e("div",jt,[t[45]||(t[45]=e("div",{class:"d-flex align-items-center gap-2"},[e("i",{class:"bi bi-buildings-fill fs-5 text-warning"}),e("h6",{class:"m-0 fw-extrabold fs-7 text-white text-uppercase tracking-wide"}," Mesa partes sede central del GRH y direcciones ")],-1)),e("span",Ut,l(s.filteredSedeUnits.length),1)]),e("div",Tt,[(a(!0),o(g,null,y(s.filteredSedeUnits,i=>(a(),o("div",{key:i.id,class:u(["mp-unit-item d-flex align-items-center justify-content-between p-2.5 rounded-3 border transition-all",{"mp-unit-highlight-blue":i.destacado}])},[e("div",Gt,[e("span",$t,l(i.id)+". ",1),e("span",Ft,l(i.nombre),1)]),e("a",{href:i.url,target:"_blank",rel:"noopener noreferrer",class:"btn-mp-action-ir d-inline-flex align-items-center gap-1 px-3 py-1.5 rounded-pill fs-8 fw-bold text-decoration-none shadow-xs flex-shrink-0",title:`Ingresar a Mesa de Partes de ${i.nombre}`},[...t[46]||(t[46]=[e("i",{class:"bi bi-eye-fill fs-9"},null,-1),e("span",null,"Ir",-1)])],8,Ht)],2))),128)),s.filteredSedeUnits.length===0?(a(),o("div",Vt," No se encontraron unidades en esta categorÃa. ")):c("",!0)])])],2)):c("",!0),s.selectedMpCategory==="all"||s.selectedMpCategory==="educacion"?(a(),o("div",{key:1,class:u(["col-12 col-lg-4",{"col-lg-12":s.selectedMpCategory==="educacion"}])},[e("div",zt,[e("div",Yt,[t[47]||(t[47]=e("div",{class:"d-flex align-items-center gap-2"},[e("i",{class:"bi bi-mortarboard-fill fs-5 text-warning"}),e("h6",{class:"m-0 fw-extrabold fs-7 text-white text-uppercase tracking-wide"}," Mesa partes de partes: Educación ")],-1)),e("span",Bt,l(s.filteredEducacionUnits.length),1)]),e("div",Qt,[(a(!0),o(g,null,y(s.filteredEducacionUnits,i=>(a(),o("div",{key:i.id,class:u(["mp-unit-item d-flex align-items-center justify-content-between p-2.5 rounded-3 border transition-all",{"mp-unit-highlight-yellow":i.destacado}])},[e("div",qt,[e("span",Wt,l(i.id)+". ",1),e("span",Jt,l(i.nombre),1)]),e("a",{href:i.url,target:"_blank",rel:"noopener noreferrer",class:"btn-mp-action-ir d-inline-flex align-items-center gap-1 px-3 py-1.5 rounded-pill fs-8 fw-bold text-decoration-none shadow-xs flex-shrink-0",title:`Ingresar a Mesa de Partes de ${i.nombre}`},[...t[48]||(t[48]=[e("i",{class:"bi bi-eye-fill fs-9"},null,-1),e("span",null,"Ir",-1)])],8,Kt)],2))),128)),s.filteredEducacionUnits.length===0?(a(),o("div",Xt," No se encontraron UGELs con esa búsqueda. ")):c("",!0)])])],2)):c("",!0),s.selectedMpCategory==="all"||s.selectedMpCategory==="salud"?(a(),o("div",{key:2,class:u(["col-12 col-lg-4",{"col-lg-12":s.selectedMpCategory==="salud"}])},[e("div",Zt,[e("div",es,[t[49]||(t[49]=e("div",{class:"d-flex align-items-center gap-2"},[e("i",{class:"bi bi-heart-pulse-fill fs-5 text-warning"}),e("h6",{class:"m-0 fw-extrabold fs-7 text-white text-uppercase tracking-wide"}," Mesa partes de partes: Salud ")],-1)),e("span",ts,l(s.filteredSaludUnits.length),1)]),e("div",ss,[(a(!0),o(g,null,y(s.filteredSaludUnits,i=>(a(),o("div",{key:i.id,class:u(["mp-unit-item d-flex align-items-center justify-content-between p-2.5 rounded-3 border transition-all",{"mp-unit-highlight-cyan":i.destacado}])},[e("div",is,[e("span",as,l(i.id)+". ",1),e("span",os,l(i.nombre),1)]),e("a",{href:i.url,target:"_blank",rel:"noopener noreferrer",class:"btn-mp-action-ir d-inline-flex align-items-center gap-1 px-3 py-1.5 rounded-pill fs-8 fw-bold text-decoration-none shadow-xs flex-shrink-0",title:`Ingresar a Mesa de Partes de ${i.nombre}`}
1,[...t[50]||(t[50]=[e("i",{class:"bi bi-eye-fill fs-9"},null,-1),e("span",null,"Ir",-1)])],8,ls)],2))),128)),s.filteredSaludUnits.length===0?(a(),o("div",ns," No se encontraron redes ni hospitales con esa búsqueda. ")):c("",!0)])])],2)):c("",!0)])])):s.isMapaProcesosPage?(a(),o("div",rs,[t[111]||(t[111]=K('<div class="mapa-banner-card p-5 p-lg-7 rounded-4 mb-6 shadow-sm border position-relative overflow-hidden" data-v-5ab97a43><div class="row align-items-center g-4" data-v-5ab97a43><div class="col-lg-8" data-v-5ab97a43><div class="d-flex align-items-center gap-2 mb-2.5 flex-wrap" data-v-5ab97a43><span class="badge bg-success text-white fw-extrabold px-3 py-1.5 rounded-pill fs-8 text-uppercase tracking-wider" data-v-5ab97a43><i class="bi bi-diagram-2-fill me-1" data-v-5ab97a43></i> Gestión por Procesos </span><span class="badge bg-primary bg-opacity-10 text-primary fw-bold px-3 py-1.5 rounded-pill fs-8" data-v-5ab97a43> RER N° 045-2025-GRH/GR </span><span class="badge bg-warning bg-opacity-20 text-dark fw-bold px-3 py-1.5 rounded-pill fs-8" data-v-5ab97a43> 16 Procesos Nivel 0 ⢠74 Subprocesos Nivel 1 </span></div><h3 class="fw-extrabold mapa-banner-title fs-3 mb-2" data-v-5ab97a43> Mapa de Procesos y Fichas Técnicas del Gobierno Regional Huánuco </h3><p class="fs-7 text-muted fw-medium m-0 lh-base max-w-750" data-v-5ab97a43> Herramienta técnica de gestión pública orientada al ciudadano que organiza la totalidad de actividades del Gobierno Regional Huánuco en <strong data-v-5ab97a43>Procesos Estratégicos</strong>, <strong data-v-5ab97a43>Procesos Misionales</strong> y <strong data-v-5ab97a43>Procesos de Apoyo</strong>. </p></div><div class="col-lg-4 text-lg-end" data-v-5ab97a43><div class="d-flex flex-column flex-sm-row justify-content-lg-end gap-2" data-v-5ab97a43><a href="https://nextcloud.regionhuanuco.gob.pe/s/E6AfzSPskCY7YTt?dir=/&editing=false&openfile=true" target="_blank" rel="noopener noreferrer" class="btn btn-sm btn-success rounded-pill px-4 py-3 fs-8 fw-bold d-inline-flex align-items-center justify-content-center gap-2 shadow-sm text-white" data-v-5ab97a43><i class="bi bi-file-earmark-arrow-down-fill fs-6" data-v-5ab97a43></i><span data-v-5ab97a43>Descargar Documento Técnico Oficial (PDF)</span></a></div></div></div></div>',1)),e("div",ds,[e("div",cs,[e("div",ps,[e("div",us,[e("div",bs,[t[53]||(t[53]=e("i",{class:"bi bi-search position-absolute top-50 start-0 translate-middle-y ms-4 text-muted fs-6"},null,-1)),S(e("input",{"onUpdate:modelValue":t[7]||(t[7]=i=>s.mapaSearchQuery=i),type:"text",class:"form-control form-control-solid ps-12 pe-10 py-3 rounded-pill fs-7 doc-search-input",placeholder:"Buscar por código (ej: E1, M2, S4), proceso, subproceso o gerencia..."},null,512),[[X,s.mapaSearchQuery]]),s.mapaSearchQuery?(a(),o("button",{key:0,type:"button",class:"btn btn-sm btn-icon position-absolute top-50 end-0 translate-middle-y me-2 border-0 bg-transparent",onClick:t[8]||(t[8]=i=>s.mapaSearchQuery="")},[...t[52]||(t[52]=[e("i",{class:"bi bi-x-circle-fill text-muted"},null,-1)])])):c("",!0)]),e("div",gs,[e("button",{type:"button",class:"btn btn-sm btn-light-success rounded-pill px-4 py-2 fs-8 fw-bold d-inline-flex align-items-center gap-1.5",onClick:t[9]||(t[9]=(...i)=>s.toggleAllMapaAccordions&&s.toggleAllMapaAccordions(...i))},[e("i",{class:u(["bi",s.allMapaAccordionsExpanded?"bi-arrows-collapse":"bi-arrows-expand"])},null,2),e("span",null,l(s.allMapaAccordionsExpanded?"Contraer todo":"Expandir todo"),1)])])]),e("div",ms,[e("button",{type:"button",class:u(["btn btn-sm rounded-pill px-3.5 py-1.5 fs-8 fw-bold text-nowrap transition-all",s.selectedMapaCategory==="all"?"btn-success text-white shadow-xs":"btn-light text-gray-700"]),onClick:t[10]||(t[10]=i=>s.selectedMapaCategory="all")},[...t[54]||(t[54]=[e("i",{class:"bi bi-grid-fill me-1"},null,-1),b(" Todos los Bloques (4) ",-1)])],2),e("button",{type:"button",class:u(["btn btn-sm rounded-pill px-3.5 py-1.5 fs-8 fw-bold text-nowrap transition-all",s.selectedMapaCategory==="versiones"?"btn-primary text-white shadow-xs":"btn-light text-gray-700"]),onClick:t[11]||(t[11]=i=>s.selectedMapaCategory="versiones")},[...t[55]||(t[55]=[e("i",{class:"bi bi-clock-history me-1"},null,-1),b(" Versiones (3) ",-1)])],2),e("button",{type:"button",class:u(["btn btn-sm rounded-pill px-3.5 py-1.5 fs-8 fw-bold text-nowrap transition-all",s.selectedMapaCategory==="estrategicos"?"btn-primary text-white shadow-xs":"btn-light text-gray-700"]),onClick:t[12]||(t[12]=i=>s.selectedMapaCategory="estrategicos")},[...t[56]||(t[56]=[e("i",{class:"bi bi-compass-fill me-1"},null,-1),b(" Estratégicos (4) ",-1)])],2),e("button",{type:"button",class:u(["btn btn-sm rounded-pill px-3.5 py-1.5 fs-8 fw-bold text-nowrap transition-all",s.selectedMapaCategory==="misionales"?"btn-success text-white shadow-xs":"btn-light text-gray-700"]),onClick:t[13]||(t[13]=i=>s.selectedMapaCategory="misionales")},[...t[57]||(t[57]=[e("i",{class:"bi bi-briefcase-fill me-1"},null,-1),b(" Misionales (4) ",-1)])],2),e("button",{type:"button",class:u(["btn btn-sm rounded-pill px-3.5 py-1.5 fs-8 fw-bold text-nowrap transition-all",s.selectedMapaCategory==="apoyo"?"btn-warning text-dark shadow-xs":"btn-light text-gray-700"]),onClick:t[14]||(t[14]=i=>
1s.selectedMapaCategory="apoyo")},[...t[58]||(t[58]=[e("i",{class:"bi bi-tools me-1"},null,-1),b(" Apoyo (8) ",-1)])],2)])]),e("div",fs,[S(e("div",ys,[e("div",{class:"mapa-accordion-header p-4 p-md-5 d-flex align-items-center justify-content-between cursor-pointer user-select-none",onClick:t[15]||(t[15]=i=>s.toggleMapaAccordion("versiones"))},[e("div",hs,[t[62]||(t[62]=e("div",{class:"mapa-icon-badge bg-primary bg-opacity-10 text-primary rounded-circle d-flex align-items-center justify-content-center flex-shrink-0"},[e("i",{class:"bi bi-clock-history fs-5"})],-1)),e("div",null,[e("div",vs,[t[59]||(t[59]=e("span",{class:"badge bg-primary text-white fw-bold px-2.5 py-0.5 rounded-pill fs-9 text-uppercase"}," Historial Oficial ",-1)),e("span",xs,l(s.filteredVersiones.length)+" versiones ",1)]),t[60]||(t[60]=e("h5",{class:"fw-extrabold m-0 fs-6 text-gray-900 mapa-sec-title"}," MAPA DE PROCESOS VERSIONES ",-1)),t[61]||(t[61]=e("div",{class:"fs-9 text-muted fw-medium mt-0.5"}," Resoluciones Ejecutivas Regionales, manuales de procesos (MAPRO) y documentos técnicos de aprobación. ",-1))])]),e("button",{type:"button",class:u(["btn btn-icon btn-sm btn-light rounded-circle flex-shrink-0 transition-transform",{"rotate-180":s.mapaAccordionState.versiones}]),"aria-label":"Expandir o contraer versiones"},[...t[63]||(t[63]=[e("i",{class:"bi bi-chevron-down fs-7"},null,-1)])],2)]),S(e("div",ws,[e("div",ks,[(a(!0),o(g,null,y(s.filteredVersiones,i=>(a(),o("div",{key:i.id,class:u(["mapa-item-card p-4 rounded-3 border bg-white d-flex flex-column flex-md-row align-items-md-center justify-content-between gap-3 transition-all",{"border-primary border-2":i.vigente}])},[e("div",Cs,[t[66]||(t[66]=e("div",{class:"doc-pdf-icon-box rounded-3 d-flex align-items-center justify-content-center flex-shrink-0"},[e("i",{class:"bi bi-file-earmark-pdf-fill text-danger fs-4"})],-1)),e("div",null,[e("div",Ps,[i.vigente?(a(),o("span",Ms,[...t[64]||(t[64]=[e("i",{class:"bi bi-check-circle-fill me-1"},null,-1),b(" Vigente ",-1)])])):(a(),o("span",Es," Histórico ")),e("span",As,l(i.version),1),e("span",Rs," Periodo "+l(i.anio),1)]),e("h6",Ss,l(i.titulo),1),e("div",Ds,[t[65]||(t[65]=e("i",{class:"bi bi-patch-check-fill me-1"},null,-1)),b(" "+l(i.resolucion),1)]),e("p",Os,l(i.descripcion),1)])]),e("div",Ns,[e("a",{href:i.url,target:"_blank",rel:"noopener noreferrer",class:"btn btn-sm btn-doc-action rounded-pill px-4 py-2 fs-8 fw-bold d-inline-flex align-items-center gap-1.5 shadow-xs"},[...t[67]||(t[67]=[e("i",{class:"bi bi-file-earmark-arrow-down-fill text-danger"},null,-1),e("span",null,"Descargar PDF",-1)])],8,Is)])],2))),128)),s.filteredVersiones.length===0?(a(),o("div",_s," No se encontraron versiones que coincidan con la búsqueda. ")):c("",!0)])],512),[[U,s.mapaAccordionState.versiones]])],512),[[U,s.selectedMapaCategory==="all"||s.selectedMapaCategory==="versiones"]]),S(e("div",Ls,[e("div",{class:"mapa-accordion-header p-4 p-md-5 d-flex align-items-center justify-content-between cursor-pointer user-select-none",onClick:t[16]||(t[16]=i=>s.toggleMapaAccordion("estrategicos"))},[e("div",js,[t[71]||(t[71]=e("div",{class:"mapa-icon-badge bg-primary bg-opacity-10 text-primary rounded-circle d-flex align-items-center justify-content-center flex-shrink-0"},[e("i",{class:"bi bi-compass-fill fs-5"})],-1)),e("div",null,[e("div",Us,[t[68]||(t[68]=e("span",{class:"badge bg-primary text-white fw-bold px-2.5 py-0.5 rounded-pill fs-9 text-uppercase"}," Macroproceso Estratégico (E) ",-1)),e("span",Ts,l(s.estrategicosProcesos.length)+" procesos nivel 0 ",1)]),t[69]||(t[69]=e("h5",{class:"fw-extrabold m-0 fs-6 text-gray-900 mapa-sec-title"}," PROCESOS ESTRATÃGICOS ",-1)),t[70]||(t[70]=e("div",{class:"fs-9 text-muted fw-medium mt-0.5"}," Direccionamiento estratégico, modernización institucional, gestión de alianzas y control interno. ",-1))])]),e("button",{type:"button",class:u(["btn btn-icon btn-sm btn-light rounded-circle flex-shrink-0 transition-transform",{"rotate-180":s.mapaAccordionState.estrategicos}]),"aria-label":"Expandir o contraer estratégicos"},[...t[72]||(t[72]=[e("i",{class:"bi bi-chevron-down fs-7"},null,-1)])],2)]),S(e("div",Gs,[e("div",$s,[(a(!0),o(g,null,y(s.estrategicosProcesos,i=>{var p,P;return a(),o("div",{key:i.codigo,class:"mapa-proc-card p-4 rounded-3 border bg-white d-flex flex-column justify-content-between gap-3 transition-all"},[e("div",Fs,[e("div",Hs,[e("div",Vs,l(i.codigo),1),e("div",zs,[e("div",Ys,[t[73]||(t[73]=e("span",{class:"badge bg-light-primary text-primary fw-bold px-2 py-0.5 rounded-pill fs-9"}," Nivel 0 ",-1)),i.nivel1?(a(),o("span",Bs,l(i.nivel1.length)+" subprocesos nivel 1 ",1)):c("",!0)]),e("h6",Qs,l(i.nombre),1),(p=i.ficha)!=null&&p.objetivo?(a(),o("p",qs,l(i.ficha.objetivo),1)):c("",!0),(P=i.fic
1ha)!=null&&P.dueno?(a(),o("div",Ws,[t[74]||(t[74]=e("span",{class:"fs-9 text-muted fw-bold text-uppercase"},"Responsables:",-1)),(a(!0),o(g,null,y(i.ficha.dueno,(h,I)=>(a(),o("span",{key:I,class:"badge bg-light text-gray-700 border px-2 py-0.5 rounded-pill fs-9"},l(h),1))),128))])):c("",!0),i.nivel1&&i.nivel1.length>0?(a(),o("div",Js,[t[75]||(t[75]=e("div",{class:"fs-9 text-muted fw-bold text-uppercase mb-1.5 d-flex align-items-center gap-1"},[e("i",{class:"bi bi-diagram-3 text-primary"}),b(" Subprocesos (Nivel 1): ")],-1)),e("div",Ks,[(a(!0),o(g,null,y(i.nivel1,h=>(a(),o("span",{key:h.codigo,class:"mapa-subproc-pill badge rounded-pill px-2.5 py-1 fs-9 fw-semibold text-start lh-sm"},[e("strong",null,l(h.codigo),1),b(": "+l(h.nombre),1)]))),128))])])):c("",!0)])]),e("div",Xs,[e("button",{type:"button",class:"btn btn-sm btn-light-primary rounded-pill px-3.5 py-1.5 fs-8 fw-bold d-inline-flex align-items-center gap-1",onClick:h=>s.openFichaModal(i,"Estratégico")},[...t[76]||(t[76]=[e("i",{class:"bi bi-eye-fill"},null,-1),e("span",null,"Ver Ficha",-1)])],8,Zs),i.pdfUrl?(a(),o("a",{key:0,href:i.pdfUrl,target:"_blank",rel:"noopener noreferrer",class:"btn btn-sm btn-doc-action rounded-pill px-3.5 py-1.5 fs-8 fw-bold d-inline-flex align-items-center gap-1 shadow-xs"},[...t[77]||(t[77]=[e("i",{class:"bi bi-file-earmark-arrow-down-fill text-danger"},null,-1),e("span",null,"PDF",-1)])],8,ei)):c("",!0)])])])}),128)),s.estrategicosProcesos.length===0?(a(),o("div",ti," No se encontraron procesos estratégicos con ese criterio de búsqueda. ")):c("",!0)])],512),[[U,s.mapaAccordionState.estrategicos]])],512),[[U,s.selectedMapaCategory==="all"||s.selectedMapaCategory==="estrategicos"]]),S(e("div",si,[e("div",{class:"mapa-accordion-header p-4 p-md-5 d-flex align-items-center justify-content-between cursor-pointer user-select-none",onClick:t[17]||(t[17]=i=>s.toggleMapaAccordion("misionales"))},[e("div",ii,[t[81]||(t[81]=e("div",{class:"mapa-icon-badge bg-success bg-opacity-10 text-success rounded-circle d-flex align-items-center justify-content-center flex-shrink-0"},[e("i",{class:"bi bi-briefcase-fill fs-5"})],-1)),e("div",null,[e("div",ai,[t[78]||(t[78]=e("span",{class:"badge bg-success text-white fw-bold px-2.5 py-0.5 rounded-pill fs-9 text-uppercase"}," Macroproceso Misional (M) ",-1)),e("span",oi,l(s.misionalesProcesos.length)+" procesos nivel 0 ",1)]),t[79]||(t[79]=e("h5",{class:"fw-extrabold m-0 fs-6 text-gray-900 mapa-sec-title"}," PROCESOS MISIONALES ",-1)),t[80]||(t[80]=e("div",{class:"fs-9 text-muted fw-medium mt-0.5"}," Desarrollo social, competitividad económica, integración territorial y gestión ambiental. ",-1))])]),e("button",{type:"button",class:u(["btn btn-icon btn-sm btn-light rounded-circle flex-shrink-0 transition-transform",{"rotate-180":s.mapaAccordionState.misionales}]),"aria-label":"Expandir o contraer misionales"},[...t[82]||(t[82]=[e("i",{class:"bi bi-chevron-down fs-7"},null,-1)])],2)]),S(e("div",li,[e("div",ni,[(a(!0),o(g,null,y(s.misionalesProcesos,i=>{var p,P;return a(),o("div",{key:i.codigo,class:"mapa-proc-card p-4 rounded-3 border bg-white d-flex flex-column justify-content-between gap-3 transition-all"},[e("div",ri,[e("div",di,[e("div",ci,l(i.codigo),1),e("div",pi,[e("div",ui,[t[83]||(t[83]=e("span",{class:"badge bg-light-success text-success fw-bold px-2 py-0.5 rounded-pill fs-9"}," Nivel 0 ",-1)),i.nivel1?(a(),o("span",bi,l(i.nivel1.length)+" subprocesos nivel 1 ",1)):c("",!0)]),e("h6",gi,l(i.nombre),1),(p=i.ficha)!=null&&p.objetivo?(a(),o("p",mi,l(i.ficha.objetivo),1)):c("",!0),(P=i.ficha)!=null&&P.dueno?(a(),o("div",fi,[t[84]||(t[84]=e("span",{class:"fs-9 text-muted fw-bold text-uppercase"},"Responsables:",-1)),(a(!0),o(g,null,y(i.ficha.dueno,(h,I)=>(a(),o("span",{key:I,class:"badge bg-light text-gray-700 border px-2 py-0.5 rounded-pill fs-9"},l(h),1))),128))])):c("",!0),i.nivel1&&i.nivel1.length>0?(a(),o("div",yi,[t[85]||(t[85]=e("div",{class:"fs-9 text-muted fw-bold text-uppercase mb-1.5 d-flex align-items-center gap-1"},[e("i",{class:"bi bi-diagram-3 text-success"}),b(" Subprocesos (Nivel 1): ")],-1)),e("div",hi,[(a(!0),o(g,null,y(i.nivel1,h=>(a(),o("span",{key:h.codigo,class:"mapa-subproc-pill badge rounded-pill px-2.5 py-1 fs-9 fw-semibold text-start lh-sm"},[e("strong",null,l(h.codigo),1),b(": "+l(h.nombre),1)]))),128))])])):c("",!0)])]),e("div",vi,[e("button",{type:"button",class:"btn btn-sm btn-light-success rounded-pill px-3.5 py-1.5 fs-8 fw-bold d-inline-flex align-items-center gap-1",onClick:h=>s.openFichaModal(i,"Misional")},[...t[86]||(t[86]=[e("i",{class:"bi bi-eye-fill"},null,-1),e("span",null,"Ver Ficha",-1)])],8,xi),i.pdfUrl?(a(),o("a",{key:0,href:i.pdfUrl,target:"_blank",rel:"noopener noreferrer",class:"btn btn-sm btn-doc-action rounded-pill px-3.5 py-1.5 fs-8 fw-bold d-inline-flex align-items-center gap-1 shadow-xs"},[...t[87]||(t[87]=[e("i",{class:"bi bi-file-earmark-arrow-down-fill text-danger"},null,-1),e("span",null,"PDF",-1)])],8,wi)):c("",!0)])])])}),128)),s.misionalesProcesos.length===0?(a(),o("div",ki," No se encontraron procesos misionales con ese criterio de búsqueda. ")):c("",!0)])],512),[[U,s.mapaAccordionState.misionales]])],512),[[U,s.selectedMapaCategory==="all"||s.selectedMapaCategory==="misionales"]]),S(e("div",Ci,[e("div",{class:"mapa-accordion-header p-4 p-md-5 d-flex align-items-center justify-content-between cursor-pointer user-select-none",onClick:t[18]||(t[18]=i=>s.toggleMapaAccordion("apoyo"))},[e("div",Pi,[t[91]||(t[91]=e("div",{class:"mapa-icon-badge bg-warning bg-opacity-15 text-warning rounded-circle d-flex align-items-center justify-content-center flex-shrink-0"}
1,[e("i",{class:"bi bi-tools fs-5"})],-1)),e("div",null,[e("div",Mi,[t[88]||(t[88]=e("span",{class:"badge bg-warning text-dark fw-bold px-2.5 py-0.5 rounded-pill fs-9 text-uppercase"}," Macroproceso de Apoyo (S) ",-1)),e("span",Ei,l(s.apoyoProcesos.length)+" procesos nivel 0 ",1)]),t[89]||(t[89]=e("h5",{class:"fw-extrabold m-0 fs-6 text-gray-900 mapa-sec-title"}," PROCESOS APOYO ",-1)),t[90]||(t[90]=e("div",{class:"fs-9 text-muted fw-medium mt-0.5"}," Recursos humanos, finanzas, abastecimiento, inversiones, transformación digital, asuntos legales y archivo. ",-1))])]),e("button",{type:"button",class:u(["btn btn-icon btn-sm btn-light rounded-circle flex-shrink-0 transition-transform",{"rotate-180":s.mapaAccordionState.apoyo}]),"aria-label":"Expandir o contraer apoyo"},[...t[92]||(t[92]=[e("i",{class:"bi bi-chevron-down fs-7"},null,-1)])],2)]),S(e("div",Ai,[e("div",Ri,[(a(!0),o(g,null,y(s.apoyoProcesos,i=>{var p,P;return a(),o("div",{key:i.codigo,class:"mapa-proc-card p-4 rounded-3 border bg-white d-flex flex-column justify-content-between gap-3 transition-all"},[e("div",Si,[e("div",Di,[e("div",Oi,l(i.codigo),1),e("div",Ni,[e("div",Ii,[t[93]||(t[93]=e("span",{class:"badge bg-light-warning text-dark fw-bold px-2 py-0.5 rounded-pill fs-9"}," Nivel 0 ",-1)),i.nivel1?(a(),o("span",_i,l(i.nivel1.length)+" subprocesos nivel 1 ",1)):c("",!0)]),e("h6",Li,l(i.nombre),1),(p=i.ficha)!=null&&p.objetivo?(a(),o("p",ji,l(i.ficha.objetivo),1)):c("",!0),(P=i.ficha)!=null&&P.dueno?(a(),o("div",Ui,[t[94]||(t[94]=e("span",{class:"fs-9 text-muted fw-bold text-uppercase"},"Responsables:",-1)),(a(!0),o(g,null,y(i.ficha.dueno,(h,I)=>(a(),o("span",{key:I,class:"badge bg-light text-gray-700 border px-2 py-0.5 rounded-pill fs-9"},l(h),1))),128))])):c("",!0),i.nivel1&&i.nivel1.length>0?(a(),o("div",Ti,[t[95]||(t[95]=e("div",{class:"fs-9 text-muted fw-bold text-uppercase mb-1.5 d-flex align-items-center gap-1"},[e("i",{class:"bi bi-diagram-3 text-warning"}),b(" Subprocesos (Nivel 1): ")],-1)),e("div",Gi,[(a(!0),o(g,null,y(i.nivel1,h=>(a(),o("span",{key:h.codigo,class:"mapa-subproc-pill badge rounded-pill px-2.5 py-1 fs-9 fw-semibold text-start lh-sm"},[e("strong",null,l(h.codigo),1),b(": "+l(h.nombre),1)]))),128))])])):c("",!0)])]),e("div",$i,[e("button",{type:"button",class:"btn btn-sm btn-light-warning text-dark rounded-pill px-3.5 py-1.5 fs-8 fw-bold d-inline-flex align-items-center gap-1",onClick:h=>s.openFichaModal(i,"Apoyo")},[...t[96]||(t[96]=[e("i",{class:"bi bi-eye-fill"},null,-1),e("span",null,"Ver Ficha",-1)])],8,Fi),i.pdfUrl?(a(),o("a",{key:0,href:i.pdfUrl,target:"_blank",rel:"noopener noreferrer",class:"btn btn-sm btn-doc-action rounded-pill px-3.5 py-1.5 fs-8 fw-bold d-inline-flex align-items-center gap-1 shadow-xs"},[...t[97]||(t[97]=[e("i",{class:"bi bi-file-earmark-arrow-down-fill text-danger"},null,-1),e("span",null,"PDF",-1)])],8,Hi)):c("",!0)])])])}),128)),s.apoyoProcesos.length===0?(a(),o("div",Vi," No se encontraron procesos de apoyo con ese criterio de búsqueda. ")):c("",!0)])],512),[[U,s.mapaAccordionState.apoyo]])],512),[[U,s.selectedMapaCategory==="all"||s.selectedMapaCategory==="apoyo"]])])]),e("div",zi,[e("div",Yi,[t[101]||(t[101]=K('<div class="card doc-sidebar-card border-0 shadow-sm rounded-4 p-5" data-v-5ab97a43><div class="d-flex align-items-center gap-2 mb-4 pb-3 border-bottom border-gray-100 doc-filter-bar" data-v-5ab97a43><i class="bi bi-diagram-3-fill text-success fs-5" data-v-5ab97a43></i><h6 class="fw-bold doc-sidebar-title m-0 fs-7" data-v-5ab97a43>Resumen de Procesos</h6></div><div class="d-flex flex-column gap-3 fs-8" data-v-5ab97a43><div class="d-flex align-items-center justify-content-between p-2.5 rounded-3 bg-light" data-v-5ab97a43><div class="d-flex align-items-center gap-2" data-v-5ab97a43><span class="badge bg-primary text-white rounded-pill px-2 py-0.5 fs-9" data-v-5ab97a43>E</span><span class="fw-semibold text-gray-800" data-v-5ab97a43>Estratégicos</span></div><span class="badge bg-white text-primary fw-bold px-2 py-1 rounded-pill shadow-xs" data-v-5ab97a43>4 nivel 0</span></div><div class="d-flex align-items-center justify-content-between p-2.5 rounded-3 bg-light" data-v-5ab97a43><div class="d-flex align-items-center gap-2" data-v-5ab97a43><span class="badge bg-success text-white rounded-pill px-2 py-0.5 fs-9" data-v-5ab97a43>M</span><span class="fw-semibold text-gray-800" data-v-5ab97a43>Misionales</span></div><span class="badge bg-white text-success fw-bold px-2 py-1 rounded-pill shadow-xs" data-v-5ab97a43>4 nivel 0</span></div><div class="d-flex align-items-center justify-content-between p-2.5 rounded-3 bg-light" data-v-5ab97a43><div class="d-flex align-items-center gap-2" data-v-5ab97a43><span class="badge bg-warning text-dark rounded-pill px-2 py-0.5 fs-9" data-v-5ab97a43>S</span><span class="fw-semibold text-gray-800" data-v-5ab97a43>De Apoyo</span></div><span class="badge bg-white text-dark fw-bold px-2 py-1 rounded-pill shadow-xs" data-v-5ab97a43>8 nivel 0</span></div><div class="p-3 rounded-3 border text-center mt-1" data-v-5ab97a43><div class="fs-2x fw-extrabold text-success lh-1" data-v-5ab97a43>74</div><div class="fs-9 text-muted fw-bold mt-1 text-uppercase" data-v-5ab97a43>Subprocesos Nivel 1</div></div></div></div>',1)),e("div",Bi,[t[100]||(t[100]=e("div",{class:"d-flex align-items-center gap-2 mb-4 pb-3 border-bottom border-gray-100 doc-filter-bar"},[e("i",{class:"bi bi-folder-fill text-success fs-5"}),e("h6",{class:"fw-bold doc-sidebar-title m-0 fs-7"},"Documentos de Gestión")],-1)),e("div",Qi,[(a(!0),o(g,null,y(s.relatedPages,i=>(a(),fe(C,{key:i.id,to:`/pagina/${i.id}`,class:u(["list-group-item list-group-item-action d-flex align-items-center justify-content-between py-2.5 px-3 rounded-3 mb-1 text-decoration-none border-0 sidebar-rel-link",{"active-rel-link":Number(s.currentPageId)===Number(i.id)}])},{default:_(()=>[e("div",qi,[e("i",{class:u([i.icon,"fs-7 text-success"])},null,2),e("span",Wi,l(i.title),1)]),t[98]||(t[98]=e("i",{class:"bi bi-chevron-right fs-9 text-muted opacity-75"},null,-1))]),_:2},1032,["to","class"]))),128)),$(C,{to:"/documentos-gestion",class:"list-group-item list-group-item-action d-flex align-items-center justify-content-between py-2.5 px-3 rounded-3 mb-1 text-decoration-none border-0 sidebar-rel-link"},{default:_(()=>[...t[99]||(t[99]=[e("div",{class:"d-flex align-items-center gap-2"},[e("i",{class:"bi bi-collection-fill fs-7 text-success"}),e("span",{class:"fw-semibold"},"Ver Todos los Documentos")],-1),e("i",{class:"bi bi-chevron-right fs-9 text-muted opacity-75"},null,-1)])]),_:1})])])])])]),s.selectedProcesoModal?(a(),o("div",Ji,[e("div",Ki,[e("div",Xi,[e("div",Zi,[e("div",ea,[e("span",ta,l(s.selectedProcesoModal.codigo),1),e("div",null,[e("span",sa," Proceso "+l(s.selectedProcesoCategory),1),e("h5",ia,l(s.selectedProcesoModal.nombre),1)])]),e("button",{type:"button",class:"btn-close btn-close-white","aria-label":"Cerrar",onClick:t[19]||(t[19]=(...i)=>s.closeFichaModal&&s.closeFichaModal(...i))})]),e("div",aa,[(H=s.selectedProcesoModal.ficha)!=null&&H.objetivo?(a(),o("div",oa,[t[102]||(t[102]=e("div",{class:"fs-9 text-muted fw-bold text-uppercase mb-1"},[e("i",{class:"bi bi-bullseye text-primary me-1"}),b(" Objetivo General del Proceso: ")],-1)),e("div",la,l(s.selectedProcesoModal.ficha.objetivo),1)])):c("",!0),(Q=s.selectedProcesoModal.ficha)!=null&&Q.dueno?(a(),o("div",na,[t[103]||(t[103]=e("div",{class:"fs-8 fw-bold text-gray-900 d-flex align-items-center gap-1.5"}
1,[e("i",{class:"bi bi-person-badge-fill text-success"}),e("span",null,"Ãrganos y Unidades Responsables (Dueños del Proceso):")],-1)),e("div",ra,[(a(!0),o(g,null,y(s.selectedProcesoModal.ficha.dueno,(i,p)=>(a(),o("span",{key:p,class:"badge bg-light text-gray-800 border px-3 py-1.5 rounded-pill fs-8"},l(i),1))),128))])])):c("",!0),(N=s.selectedProcesoModal.ficha)!=null&&N.objetivoEstrategico?(a(),o("div",da,[t[104]||(t[104]=e("div",{class:"fs-8 fw-bold text-gray-900 d-flex align-items-center gap-1.5"},[e("i",{class:"bi bi-flag-fill text-warning"}),e("span",null,"Alineamiento Estratégico (OEI / AEI):")],-1)),e("div",ca,[(a(!0),o(g,null,y(s.selectedProcesoModal.ficha.objetivoEstrategico,(i,p)=>(a(),o("div",{key:p,class:"fs-8 text-gray-800 py-1 px-2"}," ⢠"+l(i),1))),128))])])):c("",!0),s.selectedProcesoModal.nivel1&&s.selectedProcesoModal.nivel1.length>0?(a(),o("div",pa,[e("div",ua,[t[105]||(t[105]=e("i",{class:"bi bi-diagram-3-fill text-primary"},null,-1)),e("span",null,"Subprocesos de Nivel 1 ("+l(s.selectedProcesoModal.nivel1.length)+"):",1)]),e("div",ba,[e("table",ga,[t[106]||(t[106]=e("thead",{class:"bg-light fs-9 text-uppercase text-muted border-bottom"},[e("tr",null,[e("th",{class:"ps-4 py-2",style:{width:"100px"}},"Código"),e("th",{class:"pe-4 py-2"},"Nombre del Subproceso")])],-1)),e("tbody",ma,[(a(!0),o(g,null,y(s.selectedProcesoModal.nivel1,i=>(a(),o("tr",{key:i.codigo},[e("td",fa,[e("span",ya,l(i.codigo),1)]),e("td",ha,l(i.nombre),1)]))),128))])])])])):c("",!0),s.selectedProcesoModal.indicadores&&s.selectedProcesoModal.indicadores.length>0?(a(),o("div",va,[t[109]||(t[109]=e("div",{class:"fs-8 fw-bold text-gray-900 d-flex align-items-center gap-1.5"},[e("i",{class:"bi bi-graph-up text-info"}),e("span",null,"Indicadores de Desempeño:")],-1)),(a(!0),o(g,null,y(s.selectedProcesoModal.indicadores,(i,p)=>(a(),o("div",{key:p,class:"p-3 rounded-3 border bg-white d-flex flex-column gap-2"},[e("div",xa,[e("span",wa,l(i.codigo),1),e("span",ka," Frecuencia: "+l(i.frecuencia),1)]),e("div",Ca,l(i.nombre),1),e("div",Pa,[t[107]||(t[107]=e("strong",null,"Fórmula:",-1)),b(" "+l(i.formula)+" ("+l(i.donde)+")",1)]),i.logros?(a(),o("div",Ma,[t[108]||(t[108]=e("span",{class:"fs-9 text-muted fw-bold"},"Metas:",-1)),(a(!0),o(g,null,y(i.logros,P=>(a(),o("span",{key:P.anio,class:"badge bg-light text-dark px-2 py-0.5 rounded-pill fs-9"},[b(l(P.anio)+": ",1),e("strong",null,l(P.valor),1)]))),128))])):c("",!0)]))),128))])):c("",!0)]),e("div",Ea,[e("button",{type:"button",class:"btn btn-sm btn-light rounded-pill px-4",onClick:t[20]||(t[20]=(...i)=>s.closeFichaModal&&s.closeFichaModal(...i))}," Cerrar "),s.selectedProcesoModal.pdfUrl?(a(),o("a",{key:0,href:s.selectedProcesoModal.pdfUrl,target:"_blank",rel:"noopener noreferrer",class:"btn btn-sm btn-success rounded-pill px-5 d-inline-flex align-items-center gap-2 text-white shadow-xs"},[...t[110]||(t[110]=[e("i",{class:"bi bi-file-earmark-arrow-down-fill"},null,-1),e("span",null,"Descargar Ficha Técnica Oficial (PDF)",-1)])],8,Aa)):c("",!0)])])])])):c("",!0)])):(a(),o("div",Ra,[e("div",Sa,[e("div",Da,[s.isLoading||s.isRetrying&&s.parsedDocuments.length===0&&!s.pageContent?(a(),o("div",Oa,[t[113]||(t[113]=e("div",{class:"spinner-border text-success mb-3 mx-auto align-self-center",role:"status",style:{width:"2.75rem",height:"2.75rem"}},[e("span",{class:"visually-hidden"},"Cargando...")],-1)),t[114]||(t[114]=e("h5",{class:"fw-bold doc-title-text fs-6 mb-1 text-center"},"Cargando contenido oficial...",-1)),s.isRetrying?(a(),o("p",Na,[t[112]||(t[112]=e("i",{class:"bi bi-arrow-clockwise me-1 spin-animation"},null,-1)),b(" Reintentando automáticamente (Intento #"+l(s.retryCount)+")... ",1)])):(a(),o("p",Ia,"Obteniendo datos del portal institucional..."))])):s.isMultiSectionPage?(a(),o("div",_a,[e("div",La,[e("div",ja,[t[115]||(t[115]=e("i",{class:"bi bi-diagram-3-fill fs-4 doc-outer-icon"},null,-1)),e("h3",Ua,l(s.mainCardTitle||s.pageTitle),1)]),e("div",Ta,[e("div",Ga,[t[117]||(t[117]=e("i",{class:"bi bi-search position-absolute top-50 start-0 translate-middle-y ms-3 doc-filter-icon fs-7"},null,-1)),S(e("input",{"onUpdate:modelValue":t[21]||(t[21]=i=>s.searchQuery=i),type:"text",class:"form-control form-control-sm ps-9 pe-8 py-1.5 rounded-pill fs-8 doc-filter-input",placeholder:"Filtrar contenido..."},null,512),[[X,s.searchQuery]]),s.searchQuery?(a(),o("button",{key:0,t
1ype:"button",class:"btn btn-sm btn-icon position-absolute top-50 end-0 translate-middle-y me-1 p-0",onClick:t[22]||(t[22]=i=>s.searchQuery="")},[...t[116]||(t[116]=[e("i",{class:"bi bi-x-circle-fill text-muted fs-8"},null,-1)])])):c("",!0)]),e("button",{type:"button",class:"btn btn-sm btn-outline-light rounded-pill px-3 py-1 fs-8 fw-semibold d-inline-flex align-items-center gap-1 doc-expand-all-btn",onClick:t[23]||(t[23]=(...i)=>s.toggleAllSections&&s.toggleAllSections(...i))},[e("i",{class:u(["bi",s.allSectionsExpanded?"bi-dash-lg":"bi-plus-lg"])},null,2),e("span",null,l(s.allSectionsExpanded?"Contraer todo":"Expandir todo"),1)])])]),e("div",$a,[(a(!0),o(g,null,y(s.filteredSections,i=>(a(),o("div",{key:i.id,class:"card card-outline-danger shadow-xs border rounded-2 overflow-hidden transition-all"},[e("div",{class:"card-header-toggle p-3 px-4 d-flex align-items-center justify-content-between cursor-pointer user-select-none",onClick:p=>s.toggleSection(i.id)},[e("h4",Ha,[e("span",Va,l(i.title),1)]),e("div",za,[e("span",Ya,l(i.documents.length)+" "+l(i.documents.length===1?"Ãtem":"Ãtems"),1),e("button",{type:"button",class:"btn btn-tool btn-icon btn-sm rounded-1 p-1 d-flex align-items-center justify-content-center","aria-label":i.isOpen?"Contraer":"Expandir"},[e("i",{class:u(["bi fs-5 fw-bold",i.isOpen?"bi-dash-lg text-danger":"bi-plus-lg doc-toggle-icon"])},null,2)],8,Ba)])],8,Fa),S(e("div",Qa,[e("div",qa,[e("table",Wa,[t[120]||(t[120]=e("thead",{class:"doc-table-head fs-8 text-uppercase fw-bold"},[e("tr",null,[e("th",{style:{width:"10%"},class:"py-3"},"Ãndice"),e("th",{class:"py-3 text-start ps-4"},"Contenido"),e("th",{style:{width:"12%"},class:"py-3"},"Archivo")])],-1)),e("tbody",Ja,[(a(!0),o(g,null,y(i.documents,(p,P)=>(a(),o("tr",{key:P,class:u(["doc-item-row",{"doc-subheader-row fw-bold":p.isSubHeader}])},[e("td",Ka,[p.isSubHeader?(a(),o("strong",Xa,l(p.displayNum),1)):p.displayNum&&p.displayNum!==String(P+1)?(a(),o("span",Za,l(p.displayNum),1)):(a(),o("span",eo,"â¢"))]),e("td",to,[p.isSubHeader?(a(),o("div",so,[t[118]||(t[118]=e("i",{class:"bi bi-folder2 me-1 text-warning"},null,-1)),b(" "+l(p.title),1)])):(a(),o("div",io,[e("span",ao,l(p.title),1),p.hostTag?(a(),o("span",oo,l(p.hostTag),1)):c("",!0)]))]),e("td",lo,[p.hasFile?(a(),o("a",{key:0,href:p.url,target:"_blank",rel:"noopener noreferrer",class:"btn btn-sm btn-icon btn-doc-download text-danger d-inline-flex align-items-center justify-content-center",title:"Descargar archivo PDF",style:{width:"36px",height:"36px"}},[...t[119]||(t[119]=[e("i",{class:"bi bi-file-earmark-pdf-fill fs-3 text-danger"},null,-1)])],8,no)):(a(),o("span",ro,"-"))])],2))),128))])])])],512),[[U,i.isOpen]])]))),128)),s.filteredSections.length===0?(a(),o("div",co,[t[121]||(t[121]=e("i",{class:"bi bi-search fs-2 text-muted d-block mb-2"},null,-1)),t[122]||(t[122]=e("h6",{class:"fw-bold doc-title-text fs-7"},"No se encontraron resultados",-1)),e("p",po,'No hay procesos ni fichas que coincidan con "'+l(s.searchQuery)+'".',1),e("button",{type:"button",class:"btn btn-sm btn-outline-secondary rounded-pill px-4",onClick:t[24]||(t[24]=(...i)=>s.resetFilters&&s.resetFilters(...i))}," Restablecer filtro ")])):c("",!0)])])):s.parsedDocuments.length>0?(a(),o("div",uo,[e("div",bo,[e("div",go,[e("div",mo,[t[124]||(t[124]=e("i",{class:"bi bi-search position-absolute top-50 start-0 translate-middle-y ms-4 text-muted fs-6"},null,-1)),S(e("input",{"onUpdate:modelValue":t[25]||(t[25]=i=>s.searchQuery=i),type:"text",class:"form-control form-control-solid ps-12 pe-10 py-3 rounded-pill fs-7 doc-search-input",placeholder:"Buscar por descripción, número o palabras clave..."},null,512),[[X,s.searchQuery]]),s.searchQuery?(a(),o("button",{key:0,type:"button",class:"btn btn-sm btn-icon position-absolute top-50 end-0 translate-middle-y me-2",onClick:t[26]||(t[26]=i=>s.searchQuery="")},[...t[123]||(t[123]=[e("i",{class:"bi bi-x-circle-fill text-muted"},null,-1)])])):c("",!0)]),e("div",fo,[e("button",{type:"button",class:"btn btn-sm btn-light rounded-pill px-3 py-2 fs-8 fw-semibold d-flex align-items-center gap-1.5",onClick:t[27]||
1(t[27]=(...i)=>s.toggleSortOrder&&s.toggleSortOrder(...i)),title:s.sortDesc?"Orden: Más recientes primero":"Orden: Más antiguos primero"},[e("i",{class:u(["bi",s.sortDesc?"bi-sort-numeric-down-alt text-success":"bi-sort-numeric-up text-success"])},null,2),e("span",ho,l(s.sortDesc?"Recientes":"Antiguos"),1)],8,yo),e("div",vo,[e("button",{type:"button",class:u(["btn btn-sm rounded-pill px-3 py-1 fs-8",s.viewMode==="table"?"btn-white shadow-xs text-success fw-bold":"btn-light text-muted border-0"]),onClick:t[28]||(t[28]=i=>s.viewMode="table"),title:"Vista en Tabla"},[...t[125]||(t[125]=[e("i",{class:"bi bi-table"},null,-1)])],2),e("button",{type:"button",class:u(["btn btn-sm rounded-pill px-3 py-1 fs-8",s.viewMode==="grid"?"btn-white shadow-xs text-success fw-bold":"btn-light text-muted border-0"]),onClick:t[29]||(t[29]=i=>s.viewMode="grid"),title:"Vista en Tarjetas"},[...t[126]||(t[126]=[e("i",{class:"bi bi-grid-fill"},null,-1)])],2)])])]),s.availableYears.length>1?(a(),o("div",xo,[t[127]||(t[127]=e("span",{class:"fs-9 text-muted fw-bold text-uppercase me-1"},"Periodo:",-1)),e("button",{type:"button",class:u(["btn btn-xs rounded-pill px-3 py-1 fs-9 fw-bold transition-all",s.selectedYear==="all"?"btn-success text-white shadow-xs":"btn-light text-gray-700"]),onClick:t[30]||(t[30]=i=>s.selectedYear="all")}," Todos ("+l(s.parsedDocuments.length)+") ",3),(a(!0),o(g,null,y(s.availableYears,i=>(a(),o("button",{key:i.year,type:"button",class:u(["btn btn-xs rounded-pill px-3 py-1 fs-9 fw-bold transition-all",s.selectedYear===i.year?"btn-success text-white shadow-xs":"btn-light text-gray-700"]),onClick:p=>s.selectedYear=i.year},l(i.year)+" ("+l(i.count)+") ",11,wo))),128))])):c("",!0)]),s.viewMode==="table"?(a(),o("div",ko,[e("div",Co,[e("table",Po,[t[131]||(t[131]=e("thead",null,[e("tr",{class:"fw-bold fs-7 doc-table-header border-bottom"},[e("th",{class:"ps-6 ps-lg-8 py-3 text-center",style:{width:"70px"}},"#"),e("th",{class:"py-3"}
1,"Descripción del Documento"),e("th",{class:"py-3 text-center d-none d-md-table-cell",style:{width:"120px"}},"Periodo"),e("th",{class:"pe-6 pe-lg-8 py-3 text-end",style:{width:"180px"}},"Archivo")])],-1)),e("tbody",Mo,[(a(!0),o(g,null,y(s.paginatedDocuments,(i,p)=>(a(),o("tr",{key:i.id||p,class:"doc-table-row transition-all"},[e("td",Eo,[e("span",Ao," #"+l(i.displayNum),1)]),e("td",Ro,[e("div",So,[t[129]||(t[129]=e("i",{class:"bi bi-file-earmark-pdf-fill text-danger fs-5 flex-shrink-0 mt-0.5"},null,-1)),e("div",null,[e("div",Do,l(i.title),1),e("div",Oo,[i.year?(a(),o("span",No,[t[128]||(t[128]=e("i",{class:"bi bi-calendar-event text-success"},null,-1)),b(" Año "+l(i.year),1)])):c("",!0),i.hostTag?(a(),o("span",Io,l(i.hostTag),1)):c("",!0)])])])]),e("td",_o,[i.year?(a(),o("span",Lo,l(i.year),1)):(a(),o("span",jo,"-"))]),e("td",Uo,[i.hasFile?(a(),o("a",{key:0,href:i.url,target:"_blank",rel:"noopener noreferrer",class:"btn btn-sm btn-doc-action text-nowrap rounded-pill px-4 py-2 fs-8 fw-bold d-inline-flex align-items-center gap-2"},[...t[130]||(t[130]=[e("i",{class:"bi bi-box-arrow-up-right fs-9"},null,-1),e("span",null,"Ver Documento",-1)])],8,To)):(a(),o("span",Go," No disponible "))])]))),128))])])])])):(a(),o("div",$o,[e("div",Fo,[(a(!0),o(g,null,y(s.paginatedDocuments,(i,p)=>(a(),o("div",{key:i.id||p,class:"col"},[e("div",Ho,[e("div",null,[e("div",Vo,[e("span",zo," #"+l(i.displayNum),1),i.year?(a(),o("span",Yo," Año "+l(i.year),1)):c("",!0)]),e("div",Bo,[t[132]||(t[132]=e("div",{class:"doc-pdf-icon-box rounded-3 d-flex align-items-center justify-content-center flex-shrink-0"},[e("i",{class:"bi bi-file-earmark-pdf-fill text-danger fs-4"})],-1)),e("h6",Qo,l(i.title),1)])]),e("div",qo,[t[134]||(t[134]=e("span",{class:"fs-9 text-muted d-flex align-items-center gap-1"},[e("i",{class:"bi bi-shield-check text-success"}),b(" Oficial ")],-1)),i.hasFile?(a(),o("a",{key:0,href:i.url,target:"_blank",rel:"noopener noreferrer",class:"btn btn-sm btn-success rounded-pill px-3 py-1 fs-9 fw-bold d-inline-flex align-items-center gap-1 text-white"},[...t[133]||(t[133]=[e("span",null,"Abrir",-1),b(),e("i",{class:"bi bi-arrow-right"},null,-1)])],8,Wo)):c("",!0)])])]))),128))])])),s.filteredDocuments.length===0?(a(),o("div",Jo,[t[135]||(t[135]=e("i",{class:"bi bi-search fs-1 text-muted d-block mb-3"},null,-1)),t[136]||(t[136]=e("h5",{class:"fw-bold doc-title-text fs-6"},"No se encontraron documentos",-1)),e("p",Ko,'No hay resultados para la búsqueda "'+l(s.searchQuery)+'".',1),e("button",{type:"button",class:"btn btn-sm btn-outline-success rounded-pill px-5",onClick:t[31]||(t[31]=(...i)=>s.resetFilters&&s.resetFilters(...i))}," Restablecer filtros ")])):c("",!0),s.totalPages>1?(a(),o("div",Xo,[e("div",Zo,[t[137]||(t[137]=b(" Mostrando ",-1)),e("strong",null,l((s.currentPage-1)*s.pageSize+1),1),t[138]||(t[138]=b(" - ",-1)),e("strong",null,l(Math.min(s.currentPage*s.pageSize,s.filteredDocuments.length)),1),t[139]||(t[139]=b(" de ",-1)),e("strong",null,l(s.filteredDocuments.length),1),t[140]||(t[140]=b(" documentos ",-1))]),e("div",el,[e("button",{type:"button",class:"btn btn-sm btn-icon btn-light rounded-circle",disabled:s.currentPage===1,onClick:t[32]||(t[32]=i=>s.currentPage--)},[...t[141]||(t[141]=[e("i",{class:"bi bi-chevron-left"},null,-1)])],8,tl),(a(!0),o(g,null,y(s.totalPages,i=>(a(),o("button",{key:i,type:"button",class:u(["btn btn-sm rounded-circle px-3 py-1 fs-8",s.currentPage===i?"btn-success text-white fw-bold shadow-xs":"btn-light text-muted"]),onClick:p=>s.currentPage=i},l(i),11,sl))),128)),e("button",{type:"button",class:"btn btn-sm btn-icon btn-light rounded-circle",disabled:s.currentPage===s.totalPages,onClick:t[33]||(t[33]=i=>s.currentPage++)},[...t[142]||(t[142]=[e("i",{class:"bi bi-chevron-right"},null,-1)])],8,il)])])):c("",!0)])):s.pageContent?(a(),o("div",al,[e("div",{class:"rich-content-wrapper fs-7 lh-lg",innerHTML:s.pageContent},null,8,ol)])):(a(),o("div",ll,[t[144]||(t[144]=e("i",{class:"bi bi-file-earmark-x fs-1 text-muted d-block mb-3"},null,-1)),t[145]||(t[145]=e("h5",{class:"fw-bold doc-title-text"},"Contenido en actualización",-1)),t[146]||(t[146]=e("p",{class:"fs-8 text-muted mb-4"},"Esta página institucional se encuentra en proceso de actualización de contenidos.",-1)),e("div",nl,[e("button",{type:"button",class:"btn btn-sm btn-outline-success rounded-pill px-5 d-inline-flex align-items-center gap-2",disabled:s.isRetrying,onClick:t[34]||(t[34]=i=>s.loadPage(s.currentPageId))},[e("i",{class:u(["bi bi-arrow-clockwise",{"spin-animation":s.isRetrying}])},null,2),e("span",null,l(s.isRetrying?`Reintentando (#${s.retryCount})...`:"Reintentar cargar"),1)],8,rl),$(C,{to:"/documentos-gestion",class:"btn btn-sm btn-success rounded-pill px-6"},{default:_(()=>[...t[143]||(t[143]=[b(" Ver Documentos de Gestión ",-1)])]),_:1})])]))]),e("div",dl,[e("div",cl,[e("div",pl,[t[150]||(t[150]=e("div",{class:"d-flex align-items-center gap-2 mb-4 pb-3 border-bottom border-gray-100 doc-filter-bar"},[e("i",{class:"bi bi-folder-fill text-success fs-5"}),e("h6",{class:"fw-bold doc-sidebar-title m-0 fs-7"},"Documentos Relacionados")],-1)),e("div",ul,[(a(!0),o(g,null,y(s.relatedPages,i=>(a(),fe(C,{key:i.id,to:`/pagina/${i.id}`,class:u(["list-group-item list-group-item-action d-flex align-items-center justify-content-between py-2.5 px-3 rounded-3 mb-1 text-decoration-none border-0 sidebar-rel-link",{"active-rel-link":Number(s.currentPageId)===Number(i.id)}])},{default:_(()=>[e("div",bl,[e("i",{class:u([i.icon,"fs-7 text-success"])},null,2),e("span",gl,l(i.title),1)]),t[147]||(t[147]=e("i",{class:"bi bi-chevron-right fs-9 text-muted opacity-75"},null,-1))]),_:2},1032,["to","class"]))),128)),$(C,{to:"/documentos-gestion",class:"list-group-item list-group-item-action d-flex align-items-center justify-content-between py-2.5 px-3 rounded-3 mb-1 text-decoration-none border-0 sidebar-rel-link"},{default:_(()=>[...t[148]||(t[148]=[e("div",{class:"d-flex align-items-center gap-2"},[e("i",{class:"bi bi-collection-fill fs-7 text-success"}),e("span",{class:"fw-semibold"},"Documentos de Gestión")],-1),e("i",{class:"bi bi-chevron-right fs-9 text-muted opacity-75"},null,-1)])]),_:1}),$(C,{to:"/normatividad",class:"list-group-item list-group-item-action d-flex align-items-center justify-content-between py-2.5 px-3 rounded-3 text-decoration-none border-0 sidebar-rel-link"},{default:_(()=>[...t[149]||(t[149]=[e("div",{class:"d-flex align-items-center gap-2"},[e("i",{class:"bi bi-book-half fs-7 text-success"}),e("span",{class:"fw-semibold"},"Normatividad Regional")],-1),e("i",{class:"bi bi-chevron-right fs-9 text-muted opacity-75"},null,-1)])]),_:1}
1)])]),t[151]||(t[151]=K('<div class="card border-0 shadow-sm rounded-4 p-5 text-white mpv-sidebar-card overflow-hidden position-relative" data-v-5ab97a43><div class="position-relative z-index-2" data-v-5ab97a43><span class="badge bg-white bg-opacity-20 text-white rounded-pill px-3 py-1 fs-9 fw-bold mb-3 d-inline-block" data-v-5ab97a43><i class="bi bi-shield-check me-1" data-v-5ab97a43></i> Atención Ciudadana </span><h5 class="fw-extrabold text-white fs-6 mb-2" data-v-5ab97a43>¿Necesitas ingresar un trámite?</h5><p class="fs-8 text-white text-opacity-90 mb-4 lh-sm" data-v-5ab97a43> Utiliza nuestra Mesa de Partes Virtual disponible las 24 horas del dÃa. </p><a href="https://digital.regionhuanuco.gob.pe/registro/mesa-partes-virtual/3" target="_blank" rel="noopener noreferrer" class="btn btn-sm btn-warning text-dark fw-bold rounded-pill px-4 py-2 w-100 d-inline-flex align-items-center justify-content-center gap-2" data-v-5ab97a43><i class="bi bi-envelope-paper-fill" data-v-5ab97a43></i><span data-v-5ab97a43>Mesa de Partes Virtual</span></a></div></div>',1))])])])]))])}const vl=et(it,[["render",ml],["__scopeId","data-v-5ab97a43"]]);export{vl as default};
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.