PageSourceSearch

https://santaritadoeste.sp.gov.br/assets/OuvidoriaRelatorioGestao-DlCpw_0D.js

js santaritadoeste.sp.gov.br collected 2026-09-25 05:39:51 UTC 2,872 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/toPdfRelatorioGestao-BsBLM_21.js","assets/icons-Ftwg0gFU.js","assets/react-core-SJCqmpBs.js","assets/relatorioGestao-BYniPHge.js"])))=>i.map(i=>d[i]);
2import{ab as j}from"./icons-Ftwg0gFU.js";import{K as v,M as R,j as o,L as m}from"./react-core-SJCqmpBs.js";import{f as g,J as P}from"./index-HPRL_Gmq.js";import{b as N}from"./baseUrl-DggbPPRl.js";import{a as G,c as d,b as D,d as y}from"./relatorioGestao-BYniPHge.js";import{R as w}from"./RelatorioGestaoDocumento-B-zqOZrb.js";import{a as F}from"./useRelatorioGestao-BMIPy__t.js";import"./radix-Cn1BSsAS.js";import"./supabase-Dr7v01qy.js";import"./dates-CW3_KQM6.js";import"./animation-9S7D5_Pu.js";import"./dnd-D1ccY35k.js";function c(e){if(!e||!/^\d{1,4}$/.test(e))return null;const t=Number(e);return t>=1?t:null}function I({canal:e}){const{ano:t}=v(),[u]=R(),a=c(t),l=a===null?null:c(u.get("versao")),{company:n}=g(),{relatorio:r,isLoading:x,isError:p,naoPublicado:f}=F(e,a,l),s=r?G({estado:"publicado",relatorio:r},{urlPublica:`${N(n?.domains,window.location.origin)}${d(e,r.ano,r.versao)}`}):null,b=async()=>{if(!(!r||!s))try{const{toPdfRelatorioGestao:i}=await j(async()=>{const{toPdfRelatorioGestao:h}=await import("./toPdfRelatorioGestao-BsBLM_21.js");return{toPdfRelatorioGestao:h}},__vite__mapDeps([0,1,2,3]));(await i(s,n?.name??"")).save(y(r))}catch(i){console.error("[ouvidoria] falha ao gerar o PDF do Relatório de Gestão:",i),P.error("Não foi possível gerar o PDF agora. Tente de novo.")}};return o.jsxs("main",{className:"mx-auto w-full max-w-3xl px-4 py-10",children:[x&&o.jsx("p",{className:"text-sm text-muted-foreground",children:"Carregando o relatório…"}),p&&o.jsx("p",{role:"alert",className:"text-sm",children:"Não foi possível carregar o relatório agora. Tente de novo em alguns minutos."}),f&&o.jsxs("section",{children:[o.jsxs("h1",{className:"text-2xl font-bold",children:["Relatório de Gestão — ",D(e)]}),a!==null&&l!==null?o.jsxs(o.Fragment,{children:[o.jsx("p",{className:"mt-4 text-sm",children:`Esta versão do Relatório de Gestão de ${a} não foi encontrada.`}),o.jsx(m,{to:d(e,a),className:"mt-4 inline-block text-sm underline",children:"Ver a versão atual"})]}):o.jsxs(o.Fragment,{children:[o.jsx("p",{className:"mt-4 text-sm",children:a===null?"Relatório de Gestão não encontrado.":`O Relatório de Gestão de ${a} ainda não foi publicado.`}),o.jsx(m,{to:"/ouvidoria/transparencia",className:"mt-4 inline-block text-sm underline",children:"Ver os números da ouvidoria"})]})]}),s&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"mb-4 flex justify-end",children:o.jsx("button",{type:"button",onClick:()=>{b()},className:"h-9 rounded-lg border border-border px-3 text-sm font-medium",children:"Baixar PDF"})}),o.jsx(w,{conteudo:s,municipio:n?.name})]})]})}export{I as OuvidoriaRelatorioGestao};

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.