PageSourceSearch

https://tupirama.to.gov.br/js/Index-Bb2zjp2w.js

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

1import{f as e}from"./formatar-CB6uSzNw.js";import"./index-C5GhW9sY.js";import{n as a}from"./notify-DZ6C-o79.js";import{_ as s}from"./ListaConselheiros.vue_vue_type_script_setup_true_lang-wlo147JP.js";import{u as t,a as r}from"./useConselhoList-Dlj-aegJ.js";import{M as o,r as l,I as i,aa as n,o as c,w as d,c as u,d as m,Q as b,F as f,s as p,q as x,b as v,t as y,l as h,x as j,f as g}from"./vue-vendor-C4LtToJo.js";import"./datefns-vendor-CmiML7te.js";import"./jspdf-vendor-Dg11MAxS.js";import"./primevue-B-Os_Qve.js";import"./datepicker-vendor-DX2zwzgb.js";import"./getFileSrc-Du9ih3ZQ.js";import"./index-BYLwyHzB.js";const k={class:"conteudo mt-6 flex flex-col-reverse sm:flex-row gap-3 mb-10"},w={class:"min-w-[20%]","aria-label":"Navegacao de plenarios"},_={class:"flex flex-col gap-2",role:"list"},D=["aria-label","aria-current","onClick"],C={class:"w-full"},P={class:"mb-2 flex text-base-content font-semibold justify-between border-b-2 border-base-content"},S={key:0,class:"text-2xl"},F={key:1,class:"text-xl"},I=o({__name:"Index",setup(o){const I=t(),{dados:L,carregando:q}=r(),z=l({}),A=i(()=>I.carregandoDiretorias),B=i(()=>I.diretorias??[]),E=async e=>{z.value=e;try{await I.fetchDiretorias(e.id)}catch(s){a("Erro ao buscar diretorias","error")}},M=l(!1);return n(async()=>{L.value?.length&&!z.value.id&&await E(L.value[0]),M.value=!0}),c(()=>{M.value||L.value?.length&&!z.value.id&&E(L.value[0])}),d(L,e=>{e&&e.length>0&&!z.value.id&&E(e[0])}),(a,t)=>{const r=x("Skeleton");return v(),u("div",k,[m("nav",w,[t[0]||(t[0]=m("header",{class:"mb-2 flex text-base-content font-semibold justify-between"},[m("h2",{class:"text-2xl"},"Plenarios")],-1)),m("div",_,[b(q)?(v(),u(f,{key:0},p(12,e=>y(r,{key:e,class:"w-full h-[40px] my-0.5"})),64)):(v(!0),u(f,{key:1},p(b(L),e=>(v(),u("button",{key:e.id,type:"button","aria-label":`Selecionar ${e.numero}° Plenario`,"aria-current":e.id===z.value?.id?"true":"false",class:h(["flex items-center justify-center h-10 cursor-pointer p-2 transition ease-in-out duration-200 hover:bg-primary hover:text-primary-content font-semibold rounded-lg",e.id===z.value?.id?"bg-primary text-primary-content":"bg-secondary text-secondary-content"]),onClick:a=>E(e)},j(e.numero)+"° Plenario ",11,D))),128))])]),m("main",C,[A.value?(v(),u(f,{key:0},[t[1]||(t[1]=m("header",{class:"mb-2 flex text-base-content font-semibold justify-between border-b-2 border-base-content"},[m("h2",{class:"text-2xl"},"Diretoria")],-1)),(v(),u(f,null,p(4,e=>y(r,{key:e,class:"w-full h-[200px] my-2"})),64))],64)):0===B.value.length?(v(),u(f,{key:1},[t[2]||(t[2]=m("header",{class:"mb-2 flex text-base-content font-semibold justify-between border-b-2 border-base-content"},[m("h2",{class:"text-2xl"},"Diretoria")],-1)),t[3]||(t[3]=m("p",{class:"text-center"},"Diretorias nao cadastradas.",-1))],64)):(v(!0),u(f,{key:2},p(B.value,a=>(v(),u("section",{key:a.id,class:"w-full m-0 mb-8"},[y(s,{conselheiros:a.composicao,carregando:A.value,"possui-campo-conselheiro":""},{titulo:g(()=>[m("header",P,[A.value?(v(),u("h2",S,[y(r,{class:"my-2"})])):(v(),u("h2",F," Diretoria de "+j(b(e)(z.value.inicio))+" a "+j(b(e)(z.value.fim))+" do Plenario "+j(z.value.nome),1))])]),_:1},8,["conselheiros","carregando"])]))),128))])])}}});export{I 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.