PageSourceSearch

https://tupirama.to.gov.br/js/Busca-BDlLNgQk.js

js tupirama.to.gov.br collected 2026-09-25 10:15:52 UTC 25,168 bytes, 1 lines download raw bytes

1import{r as e,o as a,w as t,a0 as r,ab as o,M as s,c as i,d as l,E as n,t as c,h as d,ac as m,Q as p,R as u,F as g,s as x,B as b,x as v,k as f,q as h,b as y,l as w,e as k,f as _,z as F}from"./vue-vendor-C4LtToJo.js";import{b as j,l as E}from"./index-Cml6f7nu.js";import{b as C}from"./formatar-CB6uSzNw.js";import{g as D}from"./getFileSrc-Du9ih3ZQ.js";import{a as $,d as M,_ as z}from"./index-C5GhW9sY.js";import{i as L}from"./index-BhDd_UtJ.js";import{b as S}from"./index-BTXEAViz.js";import{R as B}from"./datefns-vendor-CmiML7te.js";import"./jspdf-vendor-Dg11MAxS.js";import"./primevue-B-Os_Qve.js";import"./datepicker-vendor-DX2zwzgb.js";import"./diario-D0rs54v3.js";const P=[{nome:"geral",label:"Geral",icon:"bi:grid"},{nome:"servicos",label:"Serviços",icon:"bi:briefcase"},{nome:"diarios",label:"Diários",icon:"bi:journal-bookmark"},{nome:"transparencia",label:"Transparência",icon:"bi:search"},{nome:"noticias",label:"Notícias",icon:"bi:newspaper"},{nome:"orgaos",label:"Órgãos",icon:"bi:building"}];const q={class:"min-h-screen bg-base-100 pb-16"},A={class:"pt-12 pb-24 px-4 sm:px-6 lg:px-8 shadow-sm relative overflow-hidden",style:{background:"radial-gradient(50% 250% at 100% 0%, color-mix(in srgb, var(--p) 25%, transparent), transparent),\n\t\t\t\t\tradial-gradient(50% 250% at 0% 100%, color-mix(in srgb, var(--f) 25%, transparent), transparent), #e4edfb"}},I={class:"conteudo relative z-10 text-center"},N={class:"relative group"},R={class:"absolute inset-y-0 left-0 pl-4 flex items-center pointer-events-none"},T={class:"conteudo px-4 sm:px-6 lg:px-8 -mt-16 relative z-20"},O={key:0,class:"grid grid-cols-2 md:grid-cols-3 xl:grid-cols-6 gap-4 mb-8"},G=["onClick"],U={class:"block text-2xl font-bold text-base-content"},W={class:"text-sm font-medium text-muted-color group-hover:text-primary transition-colors"},H={key:1,class:"grid grid-cols-2 md:grid-cols-3 xl:grid-cols-6 gap-4 mb-8"},V={key:2,class:"bg-base rounded-2xl shadow-sm border border-base-content/10 min-h-[400px] p-6 lg:p-8 animate-fade-in-up"},J={class:"flex items-center justify-between mb-6 border-b border-base-content/10 pb-4"},Q={class:"text-2xl font-bold text-base-content flex items-center gap-3"},K={class:"text-sm text-muted-color bg-base-100 px-3 py-1 rounded-full"},X={key:0,class:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6"},Y={key:1},Z={key:0},ee={key:0,class:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4"},ae={class:"mb-4 flex items-start justify-between gap-4"},te={class:"flex h-11 w-11 shrink-0 items-center justify-center rounded-xl bg-primary/10 text-primary transition-colors group-hover:bg-primary group-hover:text-white"},re={class:"mb-2 text-base font-bold text-base-content transition-colors group-hover:text-primary"},oe={key:0,class:"line-clamp-3 text-sm leading-relaxed text-muted-color"},se={class:"mt-auto pt-4 text-xs font-bold uppercase tracking-wide text-primary"},ie={key:1,class:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4"},le={class:"flex items-start justify-between relative z-10"},ne={class:"busca-servico-card__icone w-10 h-10 rounded-lg flex items-center justify-center transition-transform duration-300 group-hover:scale-110"},ce={class:"busca-servico-card__perfil text-[10px] font-bold uppercase tracking-wider px-2 py-1 rounded-full border border-transparent"},de={class:"relative z-10"},me={class:"busca-servico-card__titulo text-base font-bold transition-colors line-clamp-2 mb-2"},pe={key:0,class:"busca-servico-card__descricao text-sm transition-colors line-clamp-3 leading-relaxed"},ue={class:"busca-servico-card__acao relative z-10 mt-auto pt-2 text-xs font-semibold transition-colors"},ge={key:2,class:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4"},xe={key:0},be={class:"flex items-center gap-2"},ve={class:"flex"},fe={class:"font-semibold line-clamp-2"},he={key:3,class:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6"},ye={class:"relative h-48 overflow-hidden"},we=["src"],ke={class:"absolute bottom-3 right-3 z-20 text-white text-xs font-medium bg-black/30 backdrop-blur-sm px-2 py-1 rounded-md"},_e={class:"p-4"},Fe={class:"font-bold text-sm text-base-content line-clamp-3 group-hover:text-primary transition-colors leading-relaxed"},je={class:"mt-4 flex items-center text-xs font-semibold text-primary"},Ee={key:4,class:"grid grid-cols-1 lg:grid-cols-2 gap-4"},Ce={class:"flex gap-3 items-start md:items-center"},De={class:"flex flex-col"},$e={class:"m-0 text-base font-semibold text-base-content leading-tight"},Me={key:0,class:"font-bold text-orange-700"},ze={key:1,class:"font-bold text-purple-700"},Le={class:"text-sm text-muted-color"},Se={class:"flex flex-row md:flex-row justify-end mt-3 md:mt-0 gap-3 items-center"},Be={class:"flex items-center gap-1 text-base-content font-semibold bg-base-100 px-2 py-1 rounded-md text-xs shadow-sm"},Pe={key:5,class:"grid grid-cols-1 md:grid-cols-2 gap-4"},qe=["onClick"],Ae={class:"flex items-center gap-3 w-full"},Ie={class:"bg-white/20 backdrop-blur-sm border border-white px-3 pt-1 pb-2 roun
1ded-xl shrink-0"},Ne={class:"flex flex-col gap-0.5"},Re={class:"text-white text-xs font-medium opacity-90 uppercase tracking-wider"},Te=["title"],Oe={key:0,class:"flex items-center gap-3 w-full pt-3 border-t border-white"},Ge=["src","alt","title"],Ue=["title"],We={class:"flex flex-col"},He=["title"],Ve={class:"p-5 flex flex-col h-[calc(100%-100px)]"},Je={key:0,class:"flex-1 space-y-3 mb-4"},Qe={class:"text-muted-color text-sm flex items-start gap-2"},Ke={class:"truncate"},Xe={class:"text-muted-color text-sm flex items-start gap-2"},Ye={class:"break-all line-clamp-1"},Ze={class:"text-muted-color text-sm flex items-start gap-2"},ea={key:0,class:"text-muted-color text-sm flex items-start gap-2"},aa={class:"line-clamp-2"},ta={key:1,class:"flex-1 space-y-3 mb-4"},ra={key:0,class:"text-muted-color text-sm line-clamp-2 italic"},oa={class:"pt-2 space-y-2"},sa={key:0,class:"text-muted-color text-sm flex items-start gap-2"},ia={class:"break-all line-clamp-1"},la={key:1,class:"text-muted-color text-sm flex items-start gap-2"},na={key:2,class:"text-muted-color text-sm flex items-start gap-2"},ca={class:"line-clamp-2"},da={class:"pt-3 border-t border-base-content/10 flex items-center justify-between text-primary group-hover:text-primary-focus font-medium text-sm transition-colors mt-auto"},ma={class:"w-8 h-8 rounded-full bg-primary/10 flex items-center justify-center group-hover:bg-primary group-hover:text-white transition-all"},pa={key:1,class:"flex flex-col items-center justify-center py-16 text-center"},ua={class:"w-24 h-24 bg-base-100 rounded-full flex items-center justify-center mb-6"},ga={class:"text-muted-color max-w-sm"},xa=z(s({__name:"Busca",setup(s){const{visivel:z,carregando:xa,termo:ba,resultado:va,lista:fa,tipo:ha,itens:ya,pesquisar:wa,buscar:ka,exibir:_a,abrirDiario:Fa,formatarData:ja,getFileSrc:Ea,dataExtenso:Ca,obterEndereco:Da,obterIconePerfil:$a,obterNomePerfil:Ma,obterTema:za,ativarHover:La,desativarHover:Sa,obterGradiente:Ba,obterIcone:Pa,obterLinkGeral:qa,navegarParaItem:Aa,obterCodigos:Ia,navegarParaMateria:Na}=function(){const s=r(),i=o(),l=e(!0),n=e(!1),c=e(""),d=e({geral:[],servicos:[],diarios:[],transparencia:[],noticias:[],orgaos:[],unidades:[],departamentos:[]}),m=e([]),p=e([]),u=e([]),g=e([]),x=e("servicos"),b=new Map,v="undefined"!=typeof window&&window._?.VITE_STORAGE_URL||"",f=e(0),h=async()=>{try{const e=await M();e&&e.forEach(e=>{e.submenu&&e.submenu.forEach(a=>{b.set(a.id,{cor:e.cor,codigos:a.codigos})})})}catch(e){}},y=async()=>{try{m.value=await E()||[]}catch(e){}},w=async()=>{try{p.value=await j()||[]}catch(e){}},k=async()=>{try{u.value=await S()||[]}catch(e){}},_=()=>{if(!c.value)return void(d.value.servicos=m.value);const e=c.value.toLowerCase();d.value.servicos=m.value.filter(a=>a.nome.toLowerCase().includes(e)||a.descricao&&a.descricao.toLowerCase().includes(e))},F=()=>{const e={orgaos:[],unidades:[],departamentos:[]};if(!c.value)return e;const a=c.value.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"");return u.value.forEach(t=>{(t?.pessoa?.nome||"").toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").includes(a)&&e.orgaos.push(t),t.unidades&&t.unidades.length>0&&t.unidades.forEach(t=>{(t.nome||"").toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").includes(a)&&e.unidades.push(t),t.departamentos&&t.departamentos.length>0&&t.departamentos.forEach(r=>{(r.nome||"").toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").includes(a)&&(r.unidade_id||(r.unidade_id=t.id),e.departamentos.push(r))})})}),e},z=e=>"orgaos"===e?(d.value.orgaos?.length||0)+(d.value.unidades?.length||0)+(d.value.departamentos?.length||0):d.value[e]?.length||0,q=e=>{x.value=e,g.value="orgaos"===e?[...d.value.orgaos||[],...d.value.unidades||[],...d.value.departamentos||[]]:d.value[e]||[],l.value=!0},A=async()=>{const e=++f.value,a=(c.value||"").trim();n.value=!0,g.value=[],l.value=!0;try{if(c.value=a,_(),a){const t=await(async e=>{try{const{data:a}=await $.get("/publico/site-institucional/busca",{params:{termo:e}});return a}catch(a){throw a}})(a);if(e!==f.value)return;d.value.geral=t?.geral||[],d.value.diarios=t?.diarios||[],d.value.noticias=t?.noticias||[];const r=F();d.value.orgaos=r.orgaos.map(e=>({...e,tipo_item:"Órgão"})),d.value.unidades=r.unidades.map(e=>({...e,tipo_item:"Unidade"})),d.value.departamentos=r.departamentos.map(e=>({...e,tipo_item:"Departamento"})),d.value.transparencia=(t?.transparencia||[]).map(e=>{const a=b.get(e.id);return{...e,cor:a?.cor,codigos:a?.codigos||[]}})}else d.value.geral=[],d.value.diarios=[],d.value.noticias=[],d.value.orgaos=[],d.value.unidades=[],d.value.departamentos=[],d.value.transparencia=[];if(e!==f.value)return;const t=z(x.value)>0?x.value:P.find(e=>z(e.nome)>0)?.nome||x.value;q(t)}catch(t){if(e!==f.value)return;d.value={geral:[],servicos:d.value.servicos,diarios:[],noticias:[],orgaos:[],unidades:[],departamentos:[],transparencia:[]}}finally{e===f.value&&(n.value=!1)}},I=e=>{const a=p.value.find(a=>a.id===e);return a?a.nome:""};return a(async()=>{"undefined"!=typeof WOW&&(new WOW).init(),c.value=s.query.termo||"",n.value=!0,await Promise.all([w(),y(),h(),k()]),c.value=s.query.termo||"",c.value?await A():(_(),q("servicos"),n.value=!1)}),t(()=>s.query.termo,async e=>{c.value=e||"",await A()}),{visivel:l,carregando:n,termo:c,resultado:d,servicosDados:m,perfisDados:p,orgaosDados:u,lista:g,tipo:x,itens:P,mapaTransparencia:b,urlArmazenamento:v,buscaAtual:f,pesquisar:async()=>{const e=(c.value||"").trim();c.value=e,e?s.query.termo!==e?await i.push({name:"Resultado da Busca",query:{termo:e}}):await A():s.query.termo?await i.push({name:"Resultado da Busca"}):await A()},buscar:A,carregarServicos:y,carregarPerfis:w,carregarOrgaos:k,carregarDadosDaTransparencia:h,exibir:q,filtrarServicos:_,filtrarOrgaosLocalmente:F,quantidadeResultados:z,abrirDiario:(e,a)=>{L(e),"undefined"!=typeof window&&window.open(v+a,"_blank")},formatarData:e=>C(e,"dd 'de' MMMM 'de' yyyy",{locale:B}),dataExtenso:e=>e?C(e,"dd 'de' MMMM 'de' yyyy",{locale:B}):"",obterEndereco:e=>{if(e){let a="";if(e.complemento&&(a+=`${e.complemento}, `),e.cep)return a+=`${e.logradouro}, ${e.numero} - ${e.bairro}, ${e.cidade} - ${e.estado}, ${e.cep}`,a}},obterIconePerfil:e=>{const a=p.value.find(a=>a.id===e);return a?a.icone:"bi:circle"},obterNomePerfil:I,obterTema:e=>{const a=[I(e?.perfil_id),e?.categoria];for(const t of a){if("string"!=typeof t||!t.trim())continue;const e=t.trim().toLowerCase();if("cidadão"===e||"cidadao"===e)return{primary:"#1E88E5",institutional:"#1565C0",light:"#E3F2FD"};if("servidor"===e)return{primary:"#2E7D32",medium:"#43A047",light:"#E8F5E9"};if("empresa"===e)return{primary:"#F57C00",medium:"#FB8C00",light:"#FFF3E0"}}return{primary:"#1E88E5",light:"#E3F2FD"}},ativarHover:e=>{e.hover=!0},desativarHover:e=>{e.hover=!1},obterGradiente:e=>"Órgão"===e?"linear-gradient(135deg, color-mix(in srgb, var(--p) 80%, white) 0%, color-mix(in srgb, var(--p) 40%, var(--s)) 50%, color-mix(in srgb, var(--s) 70%, white) 100%)":"Unidade"===e?"linear-gradient(135deg, color-mix(in srgb, var(--s) 80%, white) 0%, color-mix(in srgb, var(--s) 40%, var(--p)) 50%, color-mix(in srgb, var(--p) 70%, white) 100%)":"Departamento"===e?"linear-gradient(135deg, color-mix(in srgb, var(--a, #F57C00) 80%, white) 0%, color-mix(in srgb, var(--a, #F57C00) 40%, var(--s)) 50%, color-mix(in srgb, var(--s) 70%, white) 100%)":"linear-gradient(135deg, var(--p), var(--s))",obterIcone:e=>{switch(e){case"Órgão":default:return"bi:building";case"Unidade":return"bi:bank";case"Departamento":return"bi:briefcase"}},obterLinkGeral:e=>e?/^(https?:)?\/\//i.test(e)||/^(mailto|tel):/i.test(e)||e.startsWith("/")?e:`/${e}`:"/",navegarParaItem:e=>{"Órgão"===e.tipo_item?i.push({name:"orgao.show",params:{id:e.id}}):"Unidade"===e.tipo_item?i.push({name:"unidade.show",params:{id:e.id}}):"Departamento"===e.tipo_item&&e.unidade_id&&i.push({name:"unidade.show",params:{id:e.unidade_id}})},getFileSrc:D,obterCodigos:e=>e.length>=3?`${e[e.length-1].codigo} a ${e[0].codigo}`:2===e.length?`${e[e.length-1].codigo} e ${e[0].codigo}`:`${e[0].codigo}`,navegarParaMateria:e=>{i.push({name:"Matérias do Diário Oficial",params:{id:e}})}}}();return(e,a)=>{const t=h("app-icon"),r=h("Skeleton"),o=h("app-link"),s=h("router-link"),j=h("AppIcon"),E=h("Button");return y(),i("main",q,[l("div",A,[l("div",I,[a[4]||(a[4]=l("h1",{class:"text-4xl font-extrabold text-base-content mb-2 font-montserrat800"},"O que você procura?",-1)),a[5]||(a[5]=l("p",{class:"text-lg text-muted-color mb-8 max-w-2xl mx-auto"},"Encontre serviços, documentos, notícias e muito mais em um só lugar.",-1)),l("form",{class:"max-w-3xl mx-auto",role:"search",onSubmit:a[1]||(a[1]=n((...e)=>p(wa)&&p(wa)(...e),["prevent"]))},[l("div",N,[l("div",R,[c(t,{nome:"bi:search",class:"text-muted-color text-xl group-focus-within:text-primary transition-colors"})]),d(l("input",{"onUpdate:modelValue":a[0]||(a[0]=e=>u(ba)?ba.value=e:null),type:"search","aria-label":"Termo de busca",placeholder:"Digite sua busca aqui...",class:"block w-full pl-12 pr-4 py-4 border-2 border-transparent bg-base rounded-2xl shadow-lg text-base-content placeholder-gray-400 focus:outline-none focus:ring-4 focus:ring-primary/20 focus:border-primary transition-all duration-300 text-lg"},null,512),[[m,p(ba)]]),a[3]||(a[3]=l("button",{type:"submit",class:"absolute inset-y-2 right-2 px-6 bg-primary text-white rounded-xl font-medium hover:bg-primary-focus focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary transition-colors shadow-md"}," Buscar ",-1))])],32)])]),l("div",T,[p(xa)?(y(),i("div",H,[(y(),i(g,null,x(6,e=>c(r,{key:e,class:"h-32 rounded-xl"})),64))])):(y(),i("div",O,[(y(!0),i(g,null,x(p(ya),e=>(y(),i("div",{key:e.nome,class:w(["bg-base rounded-xl p-4 shadow-sm hover:shadow-lg border border-base-content/10 cursor-pointer transition-all duration-300 group flex flex-col items-center text-center gap-2 transform hover:-translate-y-1",p(ha)===e.nome?"ring-2 ring-primary border-transparent":""]),onClick:a=>p(_a)(e.nome)}
1,[l("div",{class:w(["w-12 h-12 rounded-full flex items-center justify-center bg-base-100 group-hover:bg-primary/10 transition-colors",p(ha)===e.nome?"bg-primary/10 text-primary":"text-muted-color"])},[l("i",{class:w([e.icon,"text-2xl transition-colors",p(ha)===e.nome?"text-primary":"text-muted-color group-hover:text-primary"])},null,2)],2),l("div",null,[l("span",U,v("orgaos"===e.nome?(p(va).orgaos?.length||0)+(p(va).unidades?.length||0)+(p(va).departamentos?.length||0):p(va)[e.nome]?.length||"0"),1),l("span",W,v(e.label),1)])],10,G))),128))])),p(z)?(y(),i("div",V,[l("div",J,[l("h2",Q,[c(t,{nome:p(ya).find(e=>e.nome===p(ha))?.icon||"",class:"text-primary"},null,8,["nome"]),b(" Resultados em "+v(p(ya).find(e=>e.nome===p(ha))?.label),1)]),l("span",K,v(p(fa).length)+" itens encontrados ",1)]),p(xa)?(y(),i("div",X,[(y(),i(g,null,x(8,e=>c(r,{key:e,class:"h-48 rounded-xl"})),64))])):(y(),i("div",Y,[p(fa).length>0?(y(),i("div",Z,["geral"===p(ha)?(y(),i("div",ee,[(y(!0),i(g,null,x(p(fa),e=>(y(),k(o,{key:e.id,to:p(qa)(e.link),"link-externo":e.link_externo,class:"group flex min-h-40 flex-col rounded-xl border border-base-content/10 bg-base p-5 shadow-sm transition-all duration-300 hover:-translate-y-1 hover:border-primary/30 hover:shadow-lg"},{default:_(()=>[l("div",ae,[l("div",te,[c(t,{nome:"bi:link-45deg",class:"text-2xl"})]),e.link_externo?(y(),k(t,{key:0,nome:"bi:box-arrow-up-right",class:"text-sm text-muted-color","aria-label":"Abre em nova aba"})):f("",!0)]),l("h3",re,v(e.nome),1),e.descricao?(y(),i("p",oe,v(e.descricao),1)):f("",!0),l("div",se,[a[6]||(a[6]=b(" Acessar página ",-1)),c(t,{nome:"bi:arrow-right",class:"ml-1"})])]),_:2},1032,["to","link-externo"]))),128))])):"servicos"===p(ha)?(y(),i("div",ie,[(y(!0),i(g,null,x(p(fa),e=>(y(),k(s,{key:e.id,to:{name:"Detalhes da Carta de Serviços",params:{id:e.id}},class:"busca-servico-link block group h-full"},{default:_(()=>[l("div",{class:"busca-servico-card h-full min-h-[148px] border rounded-xl p-5 transition-all duration-300 flex flex-col gap-2 relative overflow-hidden group-hover:scale-[1.02]",style:F({"--servico-primary":p(za)(e).primary,"--servico-light":p(za)(e).light})},[a[8]||(a[8]=l("div",{class:"busca-servico-card__overlay absolute inset-0 transition-opacity duration-300 pointer-events-none"},null,-1)),a[9]||(a[9]=l("div",{class:"busca-servico-card__decoracao absolute -right-4 -top-4 w-20 h-20 rounded-full transition-colors duration-300"},null,-1)),l("div",le,[l("div",ne,[c(t,{nome:p($a)(e.perfil_id),class:"text-lg"},null,8,["nome"])]),l("span",ce,v(p(Ma)(e.perfil_id)),1)]),l("div",de,[l("h3",me,v(e.nome),1),e.descricao?(y(),i("p",pe,v(e.descricao),1)):f("",!0)]),l("div",ue,[a[7]||(a[7]=b(" Acessar serviço ",-1)),c(t,{nome:"bi:arrow-right",class:"ml-1"})])],4)]),_:2},1032,["to"]))),128))])):"transparencia"===p(ha)?(y(),i("div",ge,[(y(!0),i(g,null,x(p(fa),e=>(y(),k(o,{key:e.id,to:["api","iframe","documento"].includes(e.tipo)?"/transparencia/"+e.slug:e.link_externo,tipo:e.tipo,style:F({background:e.hover?e.cor||"var(--tp, #8e44ad)":"#F5F6FB","border-left":`solid 3px ${e.cor||"var(--tp, #8e44ad)"}`,color:e.hover?"#F5F6FB":e.cor||"var(--tp, #8e44ad)",border:`solid 3px ${e.hover?"#F5F6FB":e.cor||"var(--tp, #8e44ad)"}`}),class:w("card botao w-full items-center sombra group cursor-pointer border-t border-r border-b col-span-1 h-[75px] rounded-[12px] p-[15px] text-[14px] gap-2.5 relative hover:text-white"),onMouseover:a=>p(La)(e),onMouseleave:a=>p(Sa)(e)},{default:_(()=>[l("div",{class:"min-h-[14px] min-w-[70px] max-w-[70px] font-bold text-xs rounded-tr-[10px] rounded-bl-[10px] p-1 py-0 pl-2 flex flex-col justify-center items-center absolute top-0 right-0 px-1",style:F({borderWidth:"0px",textDecoration:"none",color:e.hover?e.cor||"var(--tp, #8e44ad)":"#F5F6FB",background:e.hover?"#F5F6FB":e.cor||"var(--tp, #8e44ad)"})},[e.codigos&&e.codigos.length>0?(y(),i("span",xe,v(p(Ia)(e.codigos)),1)):f("",!0)],4),l("div",be,[c(t,{nome:e.icone,class:"p-3 text-2xl"},null,8,["nome"]),l("div",ve,[l("span",fe,v(e.nome),1)])])]),_:2},1032,["to","tipo","style","onMouseover","onMouseleave"]))),128))])):"noticias"===p(ha)?(y(),i("div",he,[(y(!0),i(g,null,x(p(fa),(e,t)=>(y(),k(o,{key:t,to:`/noticia/${e.slug}`,class:"group block bg-base rounded-xl overflow-hidden shadow-sm hover:shadow-xl transition-all duration-300 transform hover:-translate-y-1"},{default:_(()=>[l("div",ye,[a[10]||(a[10]=l("div",{class:"absolute inset-0 bg-gradient-to-t from-black/60 to-transparent z-10"},null,-1)),l("img",{width:"494",height:"300",class:"w-full h-full object-cover transition-transform duration-500 group-hover:scale-110",src:p(Ea)(e.imagem),alt:"Imagem da notícia"},null,8,we),l("div",ke,v(p(ja)(e.data)),1)]),l("div",_e,[l("h3",Fe,v(e.titulo),1),l("div",je,[a[11]||(a[11]=b("Ler notícia ",-1)),c(j,{nome:"bi:arrow-right",class:"ml-1 group-hover:translate-x-1 transition-transform"})])])]),_:2},1032,["to"]))),128))])):"diarios"===p(ha)?(y(),i("div",Ee,[(y(!0),i(g,null,x(p(fa),e=>(y(),i("div",{key:e.id,class:w(["w-full flex flex-col md:flex-row p-4 my-2 justify-between rounded-xl shadow-md bg-base border border-base-content/10 hover:shadow-lg transition-all duration-200",p(xa)?"blur-xs":""])}
1,[l("div",Ce,[l("div",{class:w(["px-3 py-1 rounded-xl border shadow-sm flex items-center justify-center",2==e?.tipo_edicao_id?"border-orange-300 bg-orange-100 text-orange-700":3==e?.tipo_edicao_id?"border-purple-300 bg-purple-100 text-purple-700":"text-primary bg-primary/10 border-primary/20"])},[c(t,{nome:"bi:newspaper",class:"text-[26px]"})],2),l("div",De,[l("h5",$e,[a[12]||(a[12]=b(" Edição ",-1)),2==e?.tipo_edicao_id?(y(),i("span",Me,"Extra")):f("",!0),3==e?.tipo_edicao_id?(y(),i("span",ze,"Suplemento")):f("",!0),b(" nº "+v(e?.edicao),1)]),l("p",Le,v(p(Ca)(e?.data)),1)])]),l("div",Se,[l("div",Be,[c(t,{nome:"bi:eye",class:"text-primary"}),l("span",null,v(e.visualizacoes),1)]),e?.assinatura_hash?(y(),k(E,{key:0,label:"Matérias","aria-label":`Matérias da edição ${2==e?.tipo_edicao_id?"Extra":3==e?.tipo_edicao_id?"Suplemento":""} número ${e?.edicao}`,class:"p-2 h-min text-xs min-w-[110px] bg-base-200 hover:bg-gray-400 text-base-content font-medium rounded-lg transition-all p-button-secondary",onClick:a=>p(Na)(e?.id)},{icon:_(()=>[c(t,{nome:"bi:file-text"})]),_:1},8,["aria-label","onClick"])):f("",!0),c(E,{"aria-label":`Abrir diário ${2==e?.tipo_edicao_id?"Extra":3==e?.tipo_edicao_id?"Suplemento":""} número ${e?.edicao}`,label:"Visualizar",class:"p-2 h-min text-xs min-w-[110px] bg-primary hover:bg-primary/80 text-white font-medium rounded-lg transition-all",size:"small",onClick:a=>p(Fa)(e.id,e.url)},{icon:_(()=>[c(t,{nome:"bi:printer"})]),_:1},8,["aria-label","onClick"])])],2))),128))])):"orgaos"===p(ha)?(y(),i("div",Pe,[(y(!0),i(g,null,x(p(fa),e=>(y(),i("div",{key:`${e.tipo_item}-${e.id}`,class:"bg-base rounded-xl shadow-lg overflow-hidden hover:shadow-xl transition-all duration-300 group cursor-pointer transform hover:-translate-y-1",onClick:a=>p(Aa)(e)},[l("div",{class:"min-h-[100px] w-full flex flex-col justify-between px-4 py-3 gap-3",style:F({background:p(Ba)(e.tipo_item)})},[l("div",Ae,[l("div",Ie,[c(t,{nome:p(Pa)(e.tipo_item),class:"text-[2rem] text-white"},null,8,["nome"])]),l("div",Ne,[l("span",Re,v(e.tipo_item),1),l("h4",{class:"text-white text-base font-bold uppercase leading-tight line-clamp-2",title:"Órgão"===e.tipo_item?e?.pessoa?.nome:e.nome},v("Órgão"===e.tipo_item?e?.pessoa?.nome:e.nome),9,Te)])]),e.responsavel?(y(),i("div",Oe,[e.responsavel.foto?(y(),i("img",{key:0,width:"64",height:"80",src:p(Ea)(e.responsavel.foto),alt:e.responsavel.nome,class:"w-16 h-20 rounded-lg object-cover border-2 border-white shadow-sm",style:{"image-rendering":"-webkit-optimize-contrast"},title:e.responsavel.nome},null,8,Ge)):(y(),i("div",{key:1,class:"w-16 h-20 rounded-lg bg-white/20 flex items-center justify-center border-2 border-white",title:e.responsavel.nome},[c(t,{nome:"bi:person-fill",class:"text-white text-xl"})],8,Ue)),l("div",We,[a[13]||(a[13]=l("span",{class:"text-[10px] text-white font-medium uppercase tracking-wider"},"Responsável",-1)),l("span",{class:"text-xs text-white font-bold uppercase truncate",title:e.responsavel.nome},v(e.responsavel.nome),9,He)])])):f("",!0)],4),l("div",Ve,["Órgão"===e.tipo_item?(y(),i("div",Je,[l("p",Qe,[c(t,{nome:"bi:file-check-fill",class:"text-muted-color mt-0.5"}),l("span",Ke,v(e?.pessoa?.cpf_cnpj||"[CNPJ não informado]"),1)]),l("p",Xe,[c(t,{nome:"bi:envelope-at-fill",class:"text-muted-color mt-0.5"}),l("span",Ye,v(e?.pessoa?.email||"[Email não informado]"),1)]),l("p",Ze,[c(t,{nome:"bi:telephone-fill",class:"text-muted-color mt-0.5"}),l("span",null,v(e?.pessoa?.fone||"[Telefone não informado]"),1)]),p(Da)(e?.pessoa)?(y(),i("p",ea,[c(t,{nome:"bi:geo-alt-fill",class:"text-muted-color mt-0.5"}),l("span",aa,v(p(Da)(e?.pessoa)),1)])):f("",!0)])):(y(),i("div",ta,[e.descricao?(y(),i("p",ra,'"'+v(e.descricao)+'"',1)):f("",!0),l("div",oa,[e.email?(y(),i("p",sa,[c(t,{nome:"bi:envelope-at-fill",class:"text-muted-color mt-0.5"}),l("span",ia,v(e.email),1)])):f("",!0),e.telefone?(y(),i("p",la,[c(t,{nome:"bi:telephone-fill",class:"text-muted-color mt-0.5"}),l("span",null,v(e.telefone),1)])):f("",!0),e.endereco?(y(),i("p",na,[c(t,{nome:"bi:geo-alt-fill",class:"text-muted-color mt-0.5"}),l("span",ca,v(e.endereco),1)])):f("",!0)])])),l("div",da,[a[14]||(a[14]=l("span",{class:"uppercase text-xs font-bold tracking-wide"},"Acessar Página",-1)),l("div",ma,[c(t,{nome:"bi:arrow-right"})])])])],8,qe))),128))])):f("",!0)])):(y(),i("div",pa,[l("div",ua,[c(t,{nome:"bi:search",class:"text-4xl text-gray-300"})]),a[15]||(a[15]=l("h3",{class:"text-xl font-bold text-base-content mb-2"},"Nenhum resultado encontrado",-1)),l("p",ga,'Não encontramos resultados para "'+v(p(ba))+'" na categoria '+v(p(ya).find(e=>
1e.nome===p(ha))?.label)+".",1),p(ba)?(y(),i("button",{key:0,class:"mt-6 text-primary font-semibold hover:underline",onClick:a[2]||(a[2]=e=>{ba.value="",p(ka)()})}," Limpar busca ")):f("",!0)]))]))])):f("",!0)])])}}}),[["__scopeId","data-v-f917c4d6"]]);export{xa 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.