1import{_ as A}from"./C4QYfdZD.js";import{d as F,w as $,j as h,a as e,o as s,c as o,t as L,e as u,b as a,F as v,r as k,f as m,k as y,l as T,g,m as x}from"./DOB1b8f2.js";import{_ as D}from"./CdX4bAOo.js";import{u as C}from"./BETW78Hw.js";import"./BeGDxhlU.js";const E={key:0,class:"resources"},H={key:0,class:"resources-header"},M={key:0,class:"resources-header__title"},S=["innerHTML"],j={class:"resources__list"},R={key:0,id:"enlaces-interes"},q={class:"resources-grid"},z={key:1,id:"documentos"},G={class:"resources-grid"},I={key:2,id:"audiovisuales"},J={class:"resources-grid"},X=F({__name:"index",async setup(K){let r,_;const{data:n}=([r,_]=$(()=>C("/api/resources")),r=await r,_(),r),{data:c}=([r,_]=$(()=>C("/api/pages/4")),r=await r,_(),r),b=h(()=>n.value?n.value.filter(i=>i.resource_type==="vÃdeo").slice(0,6):[]),V=h(()=>n.value?n.value.filter(i=>i.resource_type==="enlace").slice(0,6):[]),B=h(()=>n.value?n.value.filter(i=>i.resource_type==="documento").slice(0,6):[]);return(i,t)=>{var w;const p=A,f=T,N=D;return e(n)?(s(),o("main",E,[e(c)?(s(),o("header",H,[e(c).title?(s(),o("h2",M,L(e(c).title),1)):u("",!0),e(c).description?(s(),o("div",{key:1,class:"resources-header__description",innerHTML:e(c).description},null,8,S)):u("",!0)])):u("",!0),a("div",j,[e(V).length?(s(),o("section",R,[t[1]||(t[1]=a("header",{class:"resources__header"},"Enlaces de interés",-1)),a("div",q,[(s(!0),o(v,null,k(e(V),(l,d)=>(s(),g(p,{key:`resource-${d}`,resource:l},null,8,["resource"]))),128))]),m(f,{class:"button button--centered",to:"/recursos/enlaces"},{default:y(()=>t[0]||(t[0]=[x("Ver todos los enlaces de interés")])),_:1})])):u("",!0),e(B).length?(s(),o("section",z,[t[3]||(t[3]=a("header",{class:"resources__header"},"Documentos",-1)),a("div",G,[(s(!0),o(v,null,k(e(B),(l,d)=>(s(),g(p,{key:`resource-${d}`,resource:l},null,8,["resource"]))),128))]),m(f,{class:"button button--centered",to:"/recursos/documentos"},{default:y(()=>t[2]||(t[2]=[x("Ver todos los documentos")])),_:1})])):u("",!0),e(b).length?(s(),o("section",I,[t[5]||(t[5]=a("header",{class:"resources__header"},"Audiovisuales",-1)),a("div",J,[(s(!0),o(v,null,k(e(b),(l,d)=>(s(),g(p,{key:`resource-${d}`,resource:l},null,8,["resource"]))),128))]),m(f,{class:"button button--centered",to:"/recursos/audiovisuales"},{default:y(()=>t[4]||(t[4]=[x("Ver todos los audiovisuales")])),_:1})])):u("",!0)]),m(N,{seo:(w=e(c))==null?void 0:w.seo},null,8,["seo"])])):u("",!0)}}});export{X 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.