1import{u as ke,b as oe,j as e}from"./vendor-query-CAW0R6Fd.js";import{g as Pe,S as Ae,T as Ee,H as Te,M as Fe,j as h,k as p,r as Me,s as De,t as v,v as j,w as Be,x as b,K as D,B as d,y as qe,a as B,o as q,z as ce,P as Re,E as Ie,G as Ve,L as l,I as $e,X as Le,J as Ue,N as He,O as ze,F as Oe,Q as Ke}from"./index-DxX8Lkqr.js";import{r,L as ne}from"./vendor-react-BIBNHc4z.js";import{u as Ge}from"./upload.service-F-3d7jjz.js";import{o as le}from"./ouvidoria.service-By33coBe.js";import{I as m}from"./input-CeFgxTaw.js";import{T as Qe}from"./textarea-BuWWaW-H.js";import{S as de,a as me,b as ue,c as xe,d as c}from"./select-BXEbz950.js";import{T as Je,a as Xe,b as R,c as I}from"./tabs-DuYllBMq.js";import{A as We,a as Ye,b as Ze}from"./alert-DmpES1Zl.js";import{P as ea}from"./masked-input-Txg22Lvh.js";import"./ui-radix-CMPBktV5.js";import"./utils-objBp_8x.js";import"./storage-qMEd4SuO.js";const y="max-w-5xl mx-auto",ga=()=>{const{toast:n}=Pe(),[he,V]=r.useState("enviar"),[w,$]=r.useState(""),L=r.useRef(null),{data:s}=ke({queryKey:["ouvidoria-contato-publico"],queryFn:async()=>{const a=await Ke("contato_ouvidoria"),o={};return a.forEach(x=>{o[x.chave]=x.valor}),o}}),pe=!!s&&["ouvidoria_email","ouvidoria_telefone","ouvidoria_endereco","ouvidoria_horario","ouvidoria_setor_responsavel"].some(a=>typeof s[a]=="string"&&s[a].trim()),U=Array.isArray(s==null?void 0:s.ouvidoria_carta_servicos_anexos)?s.ouvidoria_carta_servicos_anexos:[],[C,S]=r.useState(null),[H,z]=r.useState("sugestao"),[O,K]=r.useState(""),[_,G]=r.useState(""),[ge,Q]=r.useState(""),[fe,ve]=r.useState(""),[u,J]=r.useState(!1),[k,X]=r.useState(""),[P,W]=r.useState(""),[N,Y]=r.useState(""),[Z,ee]=r.useState(""),[g,A]=r.useState([]),[ae,je]=r.useState(""),[Ne,aa]=r.useState(""),se=!1,[i,E]=r.useState(null),[T,re]=r.useState(""),[f,te]=r.useState(""),F=oe({mutationFn:async a=>{const o=[];for(const x of g){const M=`${Date.now()}-${x.name}`,_e=await Ge({bucket:"ouvidoria-anexos",path:M,file:x,captchaToken:ae||void 0});o.push({nome:x.name,url:_e.publicUrl})}return await le.createManifestacao({...a,anexos:o.length>0?o:null},ae||void 0)},onSuccess:a=>{n({title:"Manifestação enviada com sucesso!",description:`Protocolo: ${a.protocolo}`}),E(a),be(),je("")},onError:a=>{console.error("Erro detalhado ao enviar manifestação:",a),n({title:"Erro ao enviar manifestação",description:a.message||"Verifique se todos os campos obrigatórios foram preenchidos corretamente.",variant:"destructive"})}}),t=oe({mutationFn:async()=>await le.getManifestacaoByProtocolo(w.trim(),{email:T.trim()||void 0,codigo:f.trim().toUpperCase()||void 0,captchaToken:Ne||void 0})}),be=()=>{S(null),z("sugestao"),K(""),G(""),Q(""),J(!1),X(""),W(""),Y(""),ee(""),A([])},ie=a=>{S(a),J(a==="anonimo")},ye=()=>{S(null)},we=async()=>{if(!i)return;const a=i.codigo_verificacao?`Protocolo: ${i.protocolo} 2Código de verificação: ${i.codigo_verificacao}`:`Protocolo: ${i.protocolo}`;try{await navigator.clipboard.writeText(a),n({title:"Copiado para a área de transferência"})}catch{n({title:"Não foi possÃvel copiar",variant:"destructive"})}},Ce=a=>{if(a.preventDefault(),!u&&!_.trim()){n({title:"Email obrigatório",description:"Para manifestações não anônimas, o email é obrigatório.",variant:"destructive"});return}if(!N){n({title:"Categoria obrigatória",description:"Por favor, selecione uma categoria para sua manifestação.",variant:"destructive"});return}if(!k.trim()){n({title:"Assunto obrigatório",description:"Por favor, informe o assunto da sua manifestação.",variant:"destructive"});return}if(!P.trim()){n({title:"Descrição obrigatória",description:"Por favor, descreva sua manifestação.",variant:"destructive"});return}F.mutate({tipo:H,nome:u?null:O.trim(),email:u?null:_.trim(),telefone:u?null:fe.trim(),anonimo:u,assunto:k.trim(),descricao:P.trim(),categoria:N,secretaria:Z.trim()||null})},Se=()=>{if(!w.trim()){n({title:"Digite um protocolo",description:"Por favor, digite o número do protocolo para buscar.",variant:"destructive"});return}if(!T.trim()&&!f.trim()){n({title:"Validação obrigatória",description:"Informe o e-mail cadastrado OU o código de verificação de 6 caracteres.",variant:"destructive"});return}if(f.trim()&&f.trim().length!==6){n({title:"Código inválido",description:"O código de verificação tem exatamente 6 caracteres.",variant:"destructive"});return}t.mutate()};return e.jsxs("div",{className:"min-h-screen",children:[e.jsx(Ae,{title:"Ouvidoria Municipal",description:"Canal oficial para denúncias, reclamações, sugestões e elogios sobre os serviços públicos municipais.",path:"/ouvidoria"}),e.jsx(Ee,{}),e.jsx(Te,{}),e.jsxs("main",{className:"container mx-auto px-4 py-12",children:[e.jsxs("div",{className:"text-center mb-12",children:[e.jsx(Fe,{className:"h-16 w-16 text-primary mx-auto mb-4"}),e.jsx("h1",{className:"text-4xl md:text-5xl font-bold text-foreground mb-4",children:"Ouvidoria Municipal"}),e.jsx("p",{className:"text-xl text-muted-foreground max-w-3xl mx-auto",children:"Canal oficial para denúncias, reclamações, sugestões e elogios sobre os serviços públicos municipais"})]}),e.jsxs("div",{className:`${y} mb-8 grid grid-cols-1 md:grid-cols-2 gap-4`,children:[e.jsx(ne,{to:"/ouvidoria/relatorio-estatisticas",className:"group",children:e.jsx(h,{className:"h-full transition-shadow hover:shadow-md border-l-4 border-l-primary",children:e.jsxs(p,{className:"pt-6 flex items-start gap-4",children:[e.jsx("div",{className:"rounded-full bg-primary/10 p-3",children:e.jsx(Me,{className:"h-5 w-5 text-primary"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:"font-semibold group-hover:text-primary transition-colors",children:"Relatórios EstatÃsticos"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Volume, prazos e tendência das manifestações"})]})]})})}
2),e.jsx(ne,{to:"/transparencia/atos-normativos?search=ouvidoria",className:"group",children:e.jsx(h,{className:"h-full transition-shadow hover:shadow-md border-l-4 border-l-primary",children:e.jsxs(p,{className:"pt-6 flex items-start gap-4",children:[e.jsx("div",{className:"rounded-full bg-primary/10 p-3",children:e.jsx(De,{className:"h-5 w-5 text-primary"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:"font-semibold group-hover:text-primary transition-colors",children:"Regulamentos e Atos Normativos"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Base legal e nomeações da Ouvidoria"})]})]})})})]}),i&&e.jsxs(h,{className:`${y} mb-8 border-2 border-primary bg-primary/5`,children:[e.jsxs(v,{children:[e.jsxs(j,{className:"flex items-center gap-2 text-primary",children:[e.jsx(Be,{className:"h-6 w-6"}),"Manifestação registrada com sucesso"]}),e.jsx(b,{children:"Guarde estas informações em local seguro. Você precisará delas para acompanhar sua manifestação."})]}),e.jsxs(p,{className:"space-y-4",children:[e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[e.jsxs("div",{className:"p-4 bg-background rounded-lg border",children:[e.jsx("p",{className:"text-xs uppercase tracking-wide text-muted-foreground mb-1",children:"Protocolo"}),e.jsx("p",{className:"text-2xl font-mono font-bold text-foreground break-all",children:i.protocolo})]}),i.codigo_verificacao&&e.jsxs("div",{className:"p-4 bg-background rounded-lg border-2 border-primary/40",children:[e.jsxs("p",{className:"text-xs uppercase tracking-wide text-muted-foreground mb-1 flex items-center gap-1",children:[e.jsx(D,{className:"h-3 w-3"})," Código de verificação"]}),e.jsx("p",{className:"text-2xl font-mono font-bold text-primary tracking-widest",children:i.codigo_verificacao})]})]}),i.anonimo&&i.codigo_verificacao&&e.jsxs(We,{children:[e.jsx(D,{className:"h-4 w-4"}),e.jsx(Ye,{children:"Manifestação anônima"}),e.jsxs(Ze,{children:["Como você optou por permanecer anônimo, o ",e.jsx("strong",{children:"código de verificação"})," é a única forma de acompanhar esta manifestação. Se perdê-lo, não será possÃvel recuperá-lo."]})]}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-2",children:[e.jsxs(d,{onClick:we,variant:"outline",className:"gap-2",children:[e.jsx(qe,{className:"h-4 w-4"}),"Copiar protocolo e código"]}),e.jsxs(d,{onClick:()=>{$(i.protocolo),i.codigo_verificacao&&te(i.codigo_verificacao),i.email&&re(i.email),E(null),V("acompanhar"),requestAnimationFrame(()=>{var a;(a=L.current)==null||a.scrollIntoView({behavior:"smooth",block:"start"})})},className:"gap-2",children:[e.jsx(B,{className:"h-4 w-4"}),"Acompanhar agora"]}),e.jsx(d,{onClick:()=>E(null),variant:"ghost",children:"Fechar"})]})]})]}),e.jsx("div",{ref:L,className:`${y} mb-8`,children:e.jsxs(Je,{value:he,onValueChange:V,children:[e.jsxs(Xe,{className:"grid w-full grid-cols-3 h-auto p-1.5 gap-1.5 bg-muted/70 rounded-xl",children:[e.jsxs(R,{value:"enviar",className:"text-sm sm:text-base py-3 rounded-lg font-semibold gap-2 data-[state=active]:bg-primary data-[state=active]:text-primary-foreground data-[state=active]:shadow-md transition-all",children:[e.jsx(q,{className:"h-4 w-4 sm:h-5 sm:w-5"}),e.jsx("span",{className:"hidden sm:inline",children:"Enviar Manifestação"}),e.jsx("span",{className:"sm:hidden",children:"Enviar"})]}),e.jsxs(R,{value:"acompanhar",className:"text-sm sm:text-base py-3 rounded-lg font-semibold gap-2 data-[state=active]:bg-primary data-[state=active]:text-primary-foreground data-[state=active]:shadow-md transition-all",children:[e.jsx(B,{className:"h-4 w-4 sm:h-5 sm:w-5"}),"Acompanhar"]}),e.jsxs(R,{value:"presencial",className:"text-sm sm:text-base py-3 rounded-lg font-semibold gap-2 data-[state=active]:bg-primary data-[state=active]:text-primary-foreground data-[state=active]:shadow-md transition-all",children:[e.jsx(ce,{className:"h-4 w-4 sm:h-5 sm:w-5"}),e.jsx("span",{className:"hidden sm:inline",children:"Atendimento Presencial"}),e.jsx("span",{className:"sm:hidden",children:"Presencial"})]})]}),e.jsx(I,{value:"enviar",children:e.jsxs(h,{children:[e.jsxs(v,{className:"flex flex-row items-start justify-between gap-4 space-y-0",children:[e.jsxs("div",{children:[e.jsx(j,{children:"Nova Manifestação"}),e.jsx(b,{children:C===null?"Para começar, escolha como você deseja se manifestar.":"Preencha o formulário abaixo para registrar sua manifestação"})]}),C!==null&&e.jsxs(d,{type:"button",variant:"ghost",size:"sm",onClick:ye,className:"shrink-0 gap-1.5 text-primary hover:text-primary hover:bg-primary/10",children:[e.jsx(Re,{className:"h-3.5 w-3.5"}),"Alterar escolha"]})]}),e.jsx(p,{children:C===null?e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4 animate-in fade-in-0 duration-300",children:[e.jsxs("button",{type:"button",onClick:()=>ie("identificado"),className:"text-left rounded-lg border-2 p-6 hover:border-primary hover:bg-primary/5 transition-colors focus:outline-none focus:ring-2 focus:ring-primary",children:[e.jsx(Ie,{className:"h-8 w-8 text-primary mb-3"}),e.jsx("p",{className:"font-semibold text-lg mb-1",children:"Identificado(a)"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Você informa nome e e-mail e também pode acompanhar sua manifestação por lá."})]}),e.jsxs("button",{type:"button",onClick:()=>ie("anonimo"),className:"text-left rounded-lg border-2 p-6 hover:border-primary hover:bg-primary/5 transition-colors focus:outline-none focus:ring-2 focus:ring-primary",children:[e.jsx(Ve,{className:"h-8 w-8 text-primary mb-3"}),e.jsx("p",{className:"font-semibold text-lg mb-1",children:"Anônimo(a)"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Sua identidade não é solicitada. V
2ocê recebe um código de verificação para acompanhar depois."})]})]}):e.jsx("div",{className:"animate-in fade-in-0 slide-in-from-top-2 duration-300",children:e.jsxs("form",{onSubmit:Ce,className:"space-y-6",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(l,{htmlFor:"tipo",children:"Tipo de Manifestação *"}),e.jsxs(de,{value:H,onValueChange:z,children:[e.jsx(me,{id:"tipo",children:e.jsx(ue,{})}),e.jsxs(xe,{children:[e.jsx(c,{value:"denuncia",children:"Denúncia"}),e.jsx(c,{value:"reclamacao",children:"Reclamação"}),e.jsx(c,{value:"solicitacao",children:"Solicitação"}),e.jsx(c,{value:"sugestao",children:"Sugestão"}),e.jsx(c,{value:"elogio",children:"Elogio"})]})]})]}),!u&&e.jsxs("div",{className:"space-y-4 p-4 bg-muted/30 rounded-lg",children:[e.jsx("h3",{className:"font-semibold",children:"Seus Dados"}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(l,{htmlFor:"nome",children:"Nome"}),e.jsx(m,{id:"nome",value:O,onChange:a=>K(a.target.value),placeholder:"Seu nome completo"})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(l,{htmlFor:"email",children:"Email *"}),e.jsx(m,{id:"email",type:"email",value:_,onChange:a=>G(a.target.value),placeholder:"[email protected]",required:!u})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(l,{htmlFor:"telefone",children:"Telefone"}),e.jsx(ea,{id:"telefone",value:ge,onChange:(a,o)=>{Q(a),ve(o)}})]})]})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsxs(l,{htmlFor:"categoria",children:["Categoria ",e.jsx("span",{className:"text-destructive",children:"*"})]}),e.jsxs(de,{value:N,onValueChange:Y,required:!0,children:[e.jsx(me,{id:"categoria",className:N?"":"border-destructive",children:e.jsx(ue,{placeholder:"Selecione uma categoria"})}),e.jsxs(xe,{children:[e.jsx(c,{value:"saude",children:"Saúde"}),e.jsx(c,{value:"educacao",children:"Educação"}),e.jsx(c,{value:"obras",children:"Obras e Infraestrutura"}),e.jsx(c,{value:"transporte",children:"Transporte"}),e.jsx(c,{value:"meio_ambiente",children:"Meio Ambiente"}),e.jsx(c,{value:"assistencia_social",children:"Assistência Social"}),e.jsx(c,{value:"cultura",children:"Cultura"}),e.jsx(c,{value:"outros",children:"Outros"})]})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(l,{htmlFor:"secretaria",children:"Secretaria (opcional)"}),e.jsx(m,{id:"secretaria",value:Z,onChange:a=>ee(a.target.value),placeholder:"Se aplicável"})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(l,{htmlFor:"assunto",children:"Assunto *"}),e.jsx(m,{id:"assunto",value:k,onChange:a=>X(a.target.value),placeholder:"TÃtulo resumido da sua manifestação",required:!0})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(l,{htmlFor:"descricao",children:"Descrição *"}),e.jsx(Qe,{id:"descricao",value:P,onChange:a=>W(a.target.value),placeholder:"Descreva sua manifestação em detalhes...",rows:6,required:!0})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(l,{children:"Anexos (opcional)"}),e.jsxs("div",{className:"border-2 border-dashed rounded-lg p-4 text-center",children:[e.jsx($e,{className:"h-8 w-8 mx-auto mb-2 text-muted-foreground"}),e.jsx(m,{type:"file",multiple:!0,accept:"image/*,.pdf,.doc,.docx",onChange:a=>{const o=Array.from(a.target.files||[]);if(o.length+g.length>5){n({title:"Limite de arquivos",description:"Você pode anexar no máximo 5 arquivos.",variant:"destructive"});return}A([...g,...o])},className:"mt-2"})]}),g.length>0&&e.jsx("div",{className:"space-y-2",children:g.map((a,o)=>e.jsxs("div",{className:"flex items-center justify-between p-2 bg-muted/30 rounded",children:[e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(q,{className:"h-4 w-4"}),e.jsx("span",{className:"text-sm",children:a.name})]}),e.jsx(d,{type:"button",variant:"ghost",size:"sm",onClick:()=>{A(g.filter((x,M)=>M!==o))},children:e.jsx(Le,{className:"h-4 w-4"})})]},o))}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Você pode anexar até 5 arquivos (imagens, PDFs ou documentos)"})]}),se,e.jsx(d,{type:"submit",className:"w-full",disabled:F.isPending,children:F.isPending?"Enviando...":"Enviar Manifestação"})]})})})]})}),e.jsx(I,{value:"acompanhar",children:e.jsxs(h,{children:[e.jsxs(v,{children:[e.jsx(j,{children:"Acompanhar Manifestação"}),e.jsx(b,{children:"Informe o protocolo + e-mail cadastrado OU código de verificação para garantir o sigilo da manifestação."})]}),e.jsxs(p,{className:"space-y-6",children:[e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(l,{htmlFor:"protocolo-busca",children:"Protocolo *"}),e.jsx(m,{id:"protocolo-busca",placeholder:"Ex.: 2026000123",value:w,onChange:a=>$(a.target.value)})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(l,{htmlFor:"email-busca",children:"E-mail cadastrado"}),e.jsx(m,{id:"email-busca",type:"email",placeholder:"[email protected]",value:T,onChange:a=>re(a.target.value)}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Se você não optou por anônimo"})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs(l,{htmlFor:"codigo-busca",className:"flex items-center gap-1",children:[e.jsx(D,{className:"h-3 w-3"})," Código de verificação"]}),e.jsx(m,{id:"codigo-busca",placeholder:"6 caracteres",maxLength:6,value:f,onChange:a=>te(a.target.value.toUpperCase()),className:"font-mono uppercase tracking-widest"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Para manifestações anônimas"})]})]}),se,e.jsxs(d,{onClick:Se,disabled:t.isPending,className:"w-full sm:w-auto",children:[e.jsx(B,{className:"h-4 w-4 mr-2"}
2),t.isPending?"Buscando...":"Buscar manifestação"]})]}),t.isSuccess&&t.data&&e.jsxs("div",{className:"space-y-4 p-6 bg-muted/30 rounded-lg",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("h3",{className:"text-xl font-semibold",children:["Protocolo: ",t.data.protocolo]}),e.jsxs("span",{className:"px-3 py-1 bg-primary text-primary-foreground rounded-full text-sm font-medium",children:[t.data.status==="aguardando_analise"&&"Aguardando Análise",t.data.status==="em_andamento"&&"Em Andamento",t.data.status==="respondida"&&"Respondida",t.data.status==="arquivada"&&"Arquivada"]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs("p",{children:[e.jsx("strong",{children:"Tipo:"})," ",t.data.tipo]}),e.jsxs("p",{children:[e.jsx("strong",{children:"Assunto:"})," ",t.data.assunto]}),e.jsxs("p",{children:[e.jsx("strong",{children:"Data:"})," ",new Date(t.data.created_at).toLocaleDateString("pt-BR")]}),t.data.resposta&&e.jsxs("div",{className:"mt-4 p-4 bg-background rounded border",children:[e.jsx("h4",{className:"font-semibold mb-2",children:"Resposta:"}),e.jsx("p",{className:"whitespace-pre-wrap",children:t.data.resposta}),t.data.respondido_em&&e.jsxs("p",{className:"text-sm text-muted-foreground mt-2",children:["Respondido em: ",new Date(t.data.respondido_em).toLocaleString("pt-BR")]})]})]})]}),t.isError&&e.jsx("div",{className:"text-center py-8 text-muted-foreground",children:e.jsx("p",{children:"Não foi possÃvel encontrar a manifestação. Verifique o protocolo e a validação informada."})})]})]})}),e.jsx(I,{value:"presencial",children:e.jsxs(h,{children:[e.jsxs(v,{children:[e.jsx(j,{children:"Atendimento Presencial"}),e.jsx(b,{children:"Endereço, horário de funcionamento e contato direto da Ouvidoria."})]}),e.jsx(p,{children:pe?e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-6",children:[(s==null?void 0:s.ouvidoria_endereco)&&e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(ce,{className:"h-5 w-5 text-primary flex-shrink-0 mt-0.5"}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:"text-sm font-medium text-foreground",children:"Endereço"}),e.jsx("p",{className:"text-sm text-muted-foreground whitespace-pre-line break-words",children:s.ouvidoria_endereco})]})]}),(s==null?void 0:s.ouvidoria_horario)&&e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(Ue,{className:"h-5 w-5 text-primary flex-shrink-0 mt-0.5"}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:"text-sm font-medium text-foreground",children:"Horário"}),e.jsx("p",{className:"text-sm text-muted-foreground break-words",children:s.ouvidoria_horario})]})]}),(s==null?void 0:s.ouvidoria_telefone)&&e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(He,{className:"h-5 w-5 text-primary flex-shrink-0 mt-0.5"}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:"text-sm font-medium text-foreground",children:"Telefone"}),e.jsx("a",{href:`tel:${s.ouvidoria_telefone.replace(/\D/g,"")}`,className:"text-sm text-muted-foreground hover:text-primary transition-colors break-words",children:s.ouvidoria_telefone})]})]}),(s==null?void 0:s.ouvidoria_email)&&e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(ze,{className:"h-5 w-5 text-primary flex-shrink-0 mt-0.5"}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:"text-sm font-medium text-foreground",children:"E-mail"}),e.jsx("a",{href:`mailto:${s.ouvidoria_email}`,className:"text-sm text-muted-foreground hover:text-primary transition-colors break-all",children:s.ouvidoria_email})]})]})]}):e.jsx("p",{className:"text-sm text-muted-foreground py-10 text-center",children:"Nenhuma informação de atendimento presencial cadastrada no momento."})})]})})]})}),U.length>0&&e.jsxs(h,{className:`${y} mb-8`,children:[e.jsx(v,{children:e.jsx(j,{children:typeof(s==null?void 0:s.ouvidoria_carta_servicos_titulo)=="string"&&s.ouvidoria_carta_servicos_titulo.trim()?s.ouvidoria_carta_servicos_titulo:"Carta de Serviços"})}),e.jsx(p,{children:e.jsx("ul",{className:"divide-y",children:U.map((a,o)=>e.jsxs("li",{className:"py-3 flex items-center gap-3",children:[e.jsx(q,{className:"h-5 w-5 text-primary shrink-0"}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("p",{className:"font-medium truncate",children:a.titulo||a.nome}),a.titulo&&e.jsx("p",{className:"text-xs text-muted-foreground truncate",children:a.nome})]}),e.jsx(d,{asChild:!0,variant:"outline",size:"sm",children:e.jsx("a",{href:a.url,target:"_blank",rel:"noopener noreferrer",children:"Baixar"})})]},`${a.url}-${o}`))})})]})]}),e.jsx(Oe,{})]})};export{ga 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.