1import{d as E,O as R,o as S,e as s,f as t,w as i,x as n,i as e,p as _,l as w,F as h,y as v,T,r as j}from"./vendor-core-Bl-F2p3o.js";import{_ as I}from"./VContainer.vue2-D-zXc0Pi.js";import{c as V,a as k}from"./index-B2c7J3Do.js";import{_ as D}from"./LazyLoad.vue2-aKEGhKaJ.js";import{u as O,_ as G,a as M}from"./useNoticiasList-5LYwxjra.js";import{_ as y}from"./NewsCard.vue2-DqAB1wpk.js";import{_ as q}from"./ErrorState.vue2-UVF7miLq.js";import{_ as z}from"./EmptyState.vue2-CzcwtMZ_.js";import{_ as H}from"./PaginationControls.vue2-CtjwMscB.js";import{f as $}from"./serie_reportagens-Cs0FNB24.js";import{a as J}from"./url-kgtTD3lN.js";import{u as K}from"./useNewsFilters-Cr_25pCF.js";import{u as Q}from"./useSeo-CQwhoGH0.js";import"./vendor-content-Cv2A862X.js";import"./vendor-icons-ngead6Y6.js";import"./VRow.vue2-D6iaBeIk.js";import"./VText.vue2-C6lkzsy8.js";import"./VLabel.vue2-CP-2w7Fk.js";import"./entitiesApi-BXUkKPtU.js";import"./client-DO-rspna.js";import"./vendor-http-hHFB1cMz.js";import"./useDebounceCallback-DLANOIWo.js";import"./newsUrl-4GQkriKk.js";import"./mediaKind-DtPcOwak.js";import"./entitySource-BSPFtoKJ.js";import"./VLink.vue2-UAhtZFAj.js";import"./VList.vue2-BiwYT5Yl.js";import"./useBreakpoint-BRtLTg1n.js";const xe=E({__name:"ReportagensEspeciaisView",setup(U){const b=R("caixaDaLista");Q({title:"Reportagens Especiais",description:"Séries e reportagens aprofundadas da Prefeitura de Aracaju."});const{newsItems:p,isLoading:u,error:l,hasActiveFilter:x,currentPage:F,totalPages:m,totalItems:C,handlePageChange:N,loadNews:f,handleSearch:d,handleClear:P}=O({source:r=>J.getEspeciais(r),linkBase:"/reportagens-especiais",listAnchor:()=>b.value?.$el}),c=K(),B=c.consumeFilters(),o=j(B),L=async r=>{o.value=r,c.saveFilters(r),await d(r)},A=async()=>{o.value=null,c.saveFilters(null),await P()};return S(async()=>{if(o.value){await d(o.value);return}await f()}),(r,g)=>(s(),t(I,{"page-view":"",class:"noticias reportagens-especiais"},{default:i(()=>[n(D,{src:e($),class:"aspect-video w-full overflow-hidden rounded-2xl md:aspect-auto md:h-80"},{default:i(()=>[n(V,{src:e($),alt:"Reportagens Especiais da Prefeitura de Aracaju",class:"h-full w-full object-cover",rounded:"none"},null,8,["src"])]),_:1},8,["src"]),n(G,{"initial-filters":o.value,"hide-entity-select":!0,"bound-scope":"especiais",class:"noticias-filtro mt-6",onSearch:L,onClear:A},null,8,["initial-filters"]),e(l)?_("",!0):(s(),t(M,{key:0,count:e(C),show:!e(u)&&e(x),singular:"reportagem especial",plural:"reportagens especiais"},null,8,["count","show"])),e(u)?(s(),t(k,{key:1,class:"ui-space-block-t","aria-busy":"true",role:"status","aria-label":"Carregando reportagens especiais"},{default:i(()=>[(s(),w(h,null,v(4,a=>n(y,{key:`loading-${a}`,loading:"",class:"mb-6"})),64))]),_:1})):e(l)?(s(),t(q,{key:2,message:e(l),onRetry:g[0]||(g[0]=a=>e(f)())},null,8,["message"])):e(p).length===0?(s(),t(z,{key:3,message:"Nenhuma reportagem especial publicada até o momento.",icon:"fa-newspaper"})):(s(),t(k,{key:4,ref:"caixaDaLista",class:"ui-space-block-t",role:"feed","aria-label":"Lista de reportagens especiais"},{default:i(()=>[n(T,{name:"news-list",tag:"div"},{default:i(()=>[(s(!0),w(h,null,v(e(p),a=>(s(),t(y,{key:a.dateISO+a.title,date:a.date,source:a.source,"source-to":a.sourceTo,title:a.title,excerpt:a.excerpt,to:a.to,image:a.image,class:"mb-6"},null,8,["date","source","source-to","title","excerpt","to","image"]))),128))]),_:1})]),_:1},512)),e(m)>1?(s(),t(H,{key:5,"current-page":e(F),"total-pages":e(m),"final-edge-page":20,"aria-label":"Navegação entre páginas de reportagens especiais",onChangePage:e(N)},null,8,["current-page","total-pages","onChangePage"])):_("",!0)]),_:1}))}});export{xe 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.