PageSourceSearch

https://tupirama.to.gov.br/js/Show-BcCg0Ol2.js

js tupirama.to.gov.br collected 2026-10-02 23:41:55 UTC 4,860 bytes, 1 lines download raw bytes

1import{i as a,b as e}from"./index-yZXgACEU.js";import{b as s}from"./index-Bq3riWGs.js";import{y as i,R as t}from"./datefns-vendor-CmiML7te.js";import{a as o}from"./index-BJaowFaP.js";import{f as l}from"./index-Bu6wv-zl.js";import{M as d,r,aa as n,o as m,c,d as u,t as p,x as v,F as f,s as x,e as b,f as y,q as w,b as h,l as g,B as k,k as j}from"./vue-vendor-C4LtToJo.js";import{_}from"./index-r3O2Rl_T.js";import"./diario-D0rs54v3.js";import"./jspdf-vendor-BmQZnK13.js";import"./primevue-DnZyMtkr.js";import"./datepicker-vendor-DX2zwzgb.js";const S={class:"conteudo ml-auto mr-auto p-0 mt-6"},I={class:"flex flex-col sm:grid sm:grid-cols-12 gap-3 mt-3"},D={class:"sm:col-span-4 flex flex-col"},M={class:"sticky flex items-start justify-between p-3 w-full bg-diario-primary/90 text-white font-semibold text-base rounded-t-md"},P={class:"flex items-center gap-1 mr-[10px]"},R={class:"uppercase text-white font-semibold"},C={class:"flex shadow-md rounded-md p-0 flex-col mb-3 overflow-y-auto h-[790px]"},T={class:"p-6"},A={key:0,class:"flex flex-col gap-2"},B=["onClick"],H={class:"flex flex-col"},L={class:"uppercase text-component-primary font-semibold"},N={class:"text-xs"},O={key:1,class:"p-6"},q={key:1,class:"sm:col-span-8 flex flex-col"},F={key:0,class:"flex shadow-md rounded-md p-0 flex-col mb-3"},U={class:"flex items-start justify-between p-3 w-full bg-diario-primary/90 text-white font-semibold text-base rounded-t-md"},Z={class:"flex items-center gap-1 mr-[10px]"},z={class:"uppercase font-semibold"},E={class:"p-4 divext"},G=["innerHTML"],J={key:1,class:"bg-base-200 flex items-center justify-center w-full h-full rounded-md shadow-md mb-3"},K=_(d({__name:"Show",props:{id:{},edicao:{}},setup(d){const _=d,K=r(!1),Q=r(!1),V=r(!1),W=r(!1),X=r({page:1,per_page:30,publicado:!0}),Y=r([]),$=r([]),aa=r(null),ea=r({data:[]}),sa=r(null),ia=a=>i(new Date(a),"PPP",{locale:t}),ta=async a=>{try{Q.value=!0,aa.value=await o(a),X.value.ano=i(new Date(aa.value.data),"yyyy"),X.value.edicao=aa.value.edicao,X.value.tipo_edicao_id=aa.value.tipo_edicao_id,(async()=>{sa.value=null;try{V.value=!0;const a={...X.value};a.numero&&(a.numero=parseInt(String(a.numero))),ea.value=await l(a),ea.value.data[0].materias&&ea.value.data[0].materias.length>0&&(sa.value=ea.value.data[0].materias[0])}catch(a){}finally{V.value=!1}})()}catch(e){}finally{Q.value=!1}},oa=async()=>{Y.value=await e({sistema_id:1094}),$.value=await s()};return n(async()=>{await oa(),_.id&&await ta(_.id),K.value=!0}),m(async()=>{K.value||(await oa(),_.id&&await ta(_.id))}),(e,s)=>{const i=w("app-icon"),t=w("Skeleton"),o=w("Button");return h(),c("div",S,[u("div",I,[u("div",D,[u("div",M,[u("div",P,[p(i,{nome:"bi:calendar-week",class:"px-1.5 py-0.5 text-white bg-diario-primary border border-primary/20 rounded-md shadow-sm"}),u("span",R,"MATÉRIAS DO DIÁRIO Nº "+v(aa.value?.edicao),1)])]),u("div",C,[u("div",T,[V.value?(h(),c("div",A,[(h(),c(f,null,x(6,a=>p(t,{key:a,class:"h-3rem"})),64))])):(h(!0),c(f,{key:1},x(ea.value?.data?.[0]?.materias||[],(a,e)=>(h(),c(f,{key:e},[ea.value?.data&&ea.value?.data[0]?.materias.length>0?(h(),c("div",{key:0,class:g(["flex flex-row justify-content-between items-center p-3 mb-2 shadow-1 rounded-md cursor-pointer border",a.id===sa.value.id?"bg-diario-primary/10 border-diario-primary/20":"bg-base border-base-content/10 hover:bg-base-200"]),onClick:e=>(a=>{sa.value=a})(a)},[u("div",H,[u("span",L,v(a?.tipo_documento?.nome)+v(a?.numero?" nº "+a?.numero:"")+", "+v(ia(a?.data_publicacao)),1),u("span",N,[s[1]||(s[1]=u("span",{class:"font-semibold text-sm"},"Unidade:",-1)),k(" "+v(a?.unidade?.nome),1)])]),a?.id===sa.value?.id?(h(),b(i,{key:0,nome:"bi:chevron-right",class:"text-component-primary font-bold text-lg"})):j("",!0)],10,B)):(h(),c("div",O,"Sem matérias no diário atual."))],64))),128))])])]),V.value?(h(),b(t,{key:0,class:"sm:col-span-8 h-[1000px]"})):(h(),c("div",q,[sa.value?(h(),c("div",F,[u("div",U,[u("div",Z,[p(i,{nome:"bi:calendar-week",class:"px-1.5 py-0.5 text-white bg-diario-primary border border-primary/20 rounded-md shadow-sm"}),u("h5",z,v(sa.value?.tipo_documento?.nome)+" nº "+v(sa.value?.numero)+", "+v(ia(sa.value?.data_publicacao)),1)]),p(o,{label:"Imprimir",class:"p-1 h-min text-xs ml-auto min-w-[100px] bg-diario-secondary-content font-bold text-diario-primary shadow-md transition ease-in-out duration-200 hover:scale-105",severity:"info",loading:W.value,onClick:s[0]||(s[0]=e=>(async e=>{W.value=!0;try{await a(!1,e)}catch(s){}finally{W.value=!1}})(sa.value?.doc?.uuid))},{icon:y(()=>[p(i,{nome:"bi:printer"})]),_:1},8,["loading"])]),u("div",E,[u("div",{class:"a4-sheet overflow-y-scroll",innerHTML:sa.value?.conteudo},null,8,G)])])):(h(),c("div",J,[...s[2]||(s[2]=[u("h1",{class:"text-xl font-semibold"},"Sem matérias no diário atual",-1)])]))]))])])}}}),[["__scopeId","data-v-533e30b6"]]);export{K 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.