PageSourceSearch

https://www.creup.es/_nuxt/BBUMoPvO.js

js creup.es collected 2026-10-03 20:42:49 UTC 4,901 bytes, 1 lines download raw bytes

1import{_ as q}from"./DDfSlrZl.js";import{ap as K,at as O,j as X,aj as G,aa as Q,R as W,l as Y,f as J,i as Z}from"./K7bZO7Oz.js";import{_ as ee}from"./CPsZysYn.js";import{b9 as ae,cq as te,cn as se,aX as h,cr as r,aU as p,bQ as ne,bK as o,aW as t,c0 as i,c6 as e,a$ as d,aY as A,N as L,bS as N,b6 as n,b5 as oe,aO as le,by as ie,bA as ce,bt as re,bx as me}from"./Vr-xu02g.js";import{u as pe}from"./COOPU5tS.js";import{u as de}from"./DNgBYUJ4.js";import{u as ue}from"./B4xYMH1i.js";import{g as fe}from"./DEtChQEk.js";import{u as _e}from"./DJim61jm.js";import"./SlcRBSWL.js";import"./BfLqHoWu.js";import"./Ca6w5VDU.js";const ye={class:"mx-auto max-w-5xl space-y-8"},he={class:"mx-auto max-w-3xl text-center"},xe={class:"text-3xl font-bold sm:text-4xl"},be={class:"text-muted mt-4 text-lg"},ge={key:0,class:"sr-only",role:"status"},ve=["aria-busy"],ke={key:0,"aria-hidden":"true",class:"space-y-3"},we={class:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between"},Re={class:"min-w-0 flex-1 space-y-2"},Ce={class:"flex flex-col items-center gap-3 py-6"},$e={class:"text-muted"},Pe={class:"flex flex-col items-center gap-3 py-6"},De={class:"text-muted"},Ue={class:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between"},Ae={class:"min-w-0 flex-1 space-y-1"},Le={class:"text-base leading-snug font-medium"},Ne={class:"text-muted flex items-center gap-1 text-sm"},Se=["datetime"],Te=["aria-label"],u=12,Ge=ae({__name:"informes-economicos",async setup(ze){let f,w;const{t:a,locale:S}=K(),x=O(),{formatLongDate:T}=pe(),z=de();ue("financialReports.title","financialReports.description",{webPageType:"CollectionPage",breadcrumbs:()=>[{name:a("nav.home"),path:x("/")},{name:a("nav.transparency.label"),path:x("/transparencia/informes-economicos")},{name:a("nav.transparency.financialReports"),path:x("/transparencia/informes-economicos")}]});const m=ne(1),R=p(()=>(m.value-1)*u),{data:C,pending:$,error:P,refresh:B}=([f,w]=te(()=>G("/api/financial-reports",{key:p(()=>W(S.value,R.value)),headers:z,query:p(()=>({limit:u,offset:R.value})),getCachedData:Q},"$XlcfHrnCNB")),f=await f,w(),f),b=p(()=>C.value?.data??[]),c=p(()=>C.value?.meta?.total??0),j=l=>fe(l,70),{resultsRef:g,isLoading:D,isRefreshing:E}=_e($,b,P),I=p(()=>{const l=Math.max(1,Math.ceil(c.value/u));return l>1?a("accessibility.resultsStatus",{count:c.value,page:m.value,pages:l},c.value):a("accessibility.resultsCount",{count:c.value},c.value)});se(m,()=>{me(()=>{g.value instanceof HTMLElement&&g.value.scrollIntoView({behavior:"smooth",block:"start"})})});function V(l){try{return T(l)}catch{return l}}return(l,_)=>{const v=q,y=Y,k=J,U=Z,H=ee,M=X;return o(),h(M,{class:"py-8 sm:py-12"},{default:r(()=>[t("article",ye,[t("header",he,[t("h1",xe,i(e(a)("financialReports.title")),1),t("p",be,i(e(a)("financialReports.description")),1)]),e(D)?A("",!0):(o(),d("p",ge,i(e(I)),1)),t("div",{ref_key:"resultsRef",ref:g,"aria-busy":e($)||void 0},[e(D)?(o(),d("div",ke,[(o(),d(L,null,N(4,s=>n(y,{key:s,class:"motion-card"},{default:r(()=>[t("div",we,[t("div",Re,[n(v,{class:"h-5 w-3/4 rounded"}),n(v,{class:"h-4 w-40 rounded"})]),n(v,{class:"h-9 w-28 rounded-lg"})])]),_:1})),64))])):e(P)?(o(),h(y,{key:1,class:"text-center"},{default:r(()=>[t("div",Ce,[n(k,{name:"i-tabler-alert-triangle",class:"text-error size-10"}),t("p",$e,i(e(a)("financialReports.loadError")),1),n(U,{variant:"outline",color:"neutral",icon:"i-tabler-refresh",onClick:_[0]||(_[0]=s=>e(B)())},{default:r(()=>[oe(i(e(a)("home.retry")),1)]),_:1})])]),_:1})):e(b).length===0?(o(),h(y,{key:2,class:"text-center"},{default:r(()=>[t("div",Pe,[n(k,{name:"i-tabler-file-off",class:"text-muted size-10"}),t("p",De,i(e(a)("financialReports.empty")),1)])]),_:1})):(o(),h(le,{key:3,appear:"",tag:"ul",name:"stagger-list",class:ie(["space-y-3",e(E)?"opacity-60 transition-opacity duration-200":""]),"aria-label":e(a)("financialReports.title")},{default:r(()=>[(o(!0),d(L,null,N(e(b),(s,F)=>(o(),d("li",{key:s.id},[n(y,{class:"motion-card",style:ce(j(F))},{default:r(()=>[t("div",Ue,[t("div",Ae,[t("p",Le,i(s.title),1),t("div",Ne,[n(k,{name:"i-tabler-calendar-check",class:"size-4 shrink-0"}),t("time",{datetime:s.approvedAt},i(e(a)("financialReports.approvedOn",{date:V(s.approvedAt)})),9,Se)])]),n(U,{href:s.pdfUrl,external:"",target:"_blank",rel:"noopener noreferrer",variant:"soft",icon:"i-tabler-download",size:"sm",label:e(a)("financialReports.download"),"aria-label":`${e(a)("financialReports.download")}: ${s.title}`},null,8,["href","label","aria-label"])])]),_:2}
1,1032,["style"])]))),128))]),_:1},8,["class","aria-label"]))],8,ve),e(c)>u?(o(),d("nav",{key:1,class:"flex justify-center","aria-label":`${e(a)("financialReports.title")} - ${e(a)("accessibility.paginationNavigation")}`},[n(H,{page:e(m),"onUpdate:page":_[1]||(_[1]=s=>re(m)?m.value=s:null),total:e(c),"items-per-page":u},null,8,["page","total"])],8,Te)):A("",!0)])]),_:1})}}});export{Ge 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.