PageSourceSearch

https://portonacional.to.gov.br/_nuxt/BTvyovsp.js

js portonacional.to.gov.br collected 2026-09-25 05:26:36 UTC 4,142 bytes, 1 lines download raw bytes

1import{_ as y}from"./D2FcuOdq.js";import{_ as x}from"./187ktsrN.js";import{_ as $}from"./BVCU5MDt.js";import{_ as k,c as l,a as d,d as p,w as g,F as m,r as V,o as i,m as c,b as w,e as o,t as a,f as A}from"./BQlH71Z-.js";import{s as B}from"./DLrzcfWP.js";import{u as C}from"./DhfeGhaA.js";import{u as D}from"./flhrzmpm.js";import"./DuL5PO5W.js";import"./DuHnfAcd.js";import"./DOLn8WrQ.js";const N={setup(){return{v$:C(),b$:D()}},data:function(){return{loading:!1,endpoint:"projetcregistrations",storage:`${this.$config.public.storage}/aldirblanc/`,registers:[],page:1,total:0,limit:0,last:1,searching:!1,fieldSearch:""}},methods:{formatDate(e){if(!e)return"Data Indisponível";try{return new Date(e).toLocaleDateString("pt-BR")}catch{return e.substring(0,10)}},search(){this.searching=!0,this.fieldSearch=document.getElementById("searchField").value,this.page=1,this.loadregisters()},loadregisters(){this.setInteraction();var e;if(this.loading=!0,this.searching==!0){let r=this.fieldSearch;var t=typeof r>"u"||r==""?"":"q="+r;e=`public/${this.endpoint}?${t}&page=${this.page}`}else e=`public/${this.endpoint}?page=${this.page}`;$fetch(`${e}`,{baseURL:`${this.$config.public.baseURL}`,headers:{Authorization:`Bearer ${this.token}`},onResponseError({request:r,response:u,error:h}){}}).then(r=>{this.registers=r.data,this.total=r.total,this.limit=r.per_page,this.last=r.last_page}).catch(()=>{(localStorage.getItem("_session")!="undefined"||localStorage.getItem("_session")==!0)&&B(500,"Erro de Conexão")}).finally(()=>{this.loading=!1})},setInteraction(){localStorage.setItem("lastActiveTime",Date.now())},getArtisticName(e){return{musica:"Música",teatro:"Teatro",danca:"Dança",artes_visuais:"Artes Visuais",literatura:"Literatura",outra:"Outra"}[e]||e}},watch:{page(){this.loadregisters()}},mounted(){this.loadregisters()},computed:{size:function(){return this.b$.screenType.value}}},L={width:"px-2 py-1 mr-10"},P={class:"flex pl-1 pr-2"},T={class:"w-full"},z={class:"font-600 uppercase"},E={class:""},I={class:"mb-2"},S={class:"text-sm text-gray-500 font-medium"},R={class:"font-semibold text-gray-600"},F={class:"align-top justify-end flex-col gap-2"},j={class:"text-xs font-bold px-2 py-1 rounded bg-orange-100 text-orange-700 mr-1"},q={key:0,class:"mt-2"},U=["href"];function H(e,t,r,u,h,n){const f=y,_=x,b=V("v-pagination"),v=$;return i(),l(m,null,[d(f,{title:e.titlePage,onClickSubmit:t[0]||(t[0]=s=>n.search())},null,8,["title"]),e.loading?(i(),p(_,{key:0})):(i(),p(v,{key:1,page:e.page,total:e.total,last:e.last},{registers:g(()=>[t[4]||(t[4]=c(" Projeto Registrados no Programa Nacional de Apoio à Cultura - Aldir Blanc ",-1)),(i(!0),l(m,null,w(e.registers,s=>(i(),l("tr",{key:s.uuid,class:"hover:bg-gray-100 border-t border-gray-200 dark:border-gray-600 dark:hover:bg-gray-700"},[o("td",L,[o("div",P,[o("div",T,[o("p",z,a(s.project),1),o("p",E,"Proponente: "+a(s.name),1),o("p",I,"E-mail: "+a(s.email)+" | Telefone: "+a(s.telephone)+" | CPF: "+a(s.cpf),1),o("p",S,[t[2]||(t[2]=c(" Edital: ",-1)),o("span",R,a(s.edital==1?"001/2026 - Prêmio Aldir Blanc":"Chamamento 02/2026 - Cultura Viva"),1),c(" - Registrado em: "+a(n.formatDate(s.created_at)),1)])]),o("div",F,[o("div",null,[o("a",j,a(n.getArtisticName(s.artistic)),1)]),s.src?(i(),l("div",q,[o("a",{href:e.storage+s.src,target:"_blank",class:"flex items-center gap-2 px-3 py-1 bg-red-50 text-red-700 border border-red-200 rounded-md text-xs font-bold hover:bg-red-100 transition-colors"},[...t[3]||(t[3]=[o("svg",{class:"w-4 h-4",fill:"currentColor",viewBox:"0 0 20 20"},[o("path",{d:"M9 2a2 2 0 00-2 2v8a2 2 0 002 2h6a2 2 0 002-2V6.414A2 2 0 0016.414 5L14 2.586A2 2 0 0012.586 2H9z"})],-1),c(" PDF ANEXO ",-1)])],8,U)])):A("",!0)])])])]))),128))]),paginate:g(()=>[d(b,{modelValue:e.page,"onUpdate:modelValue":t[1]||(t[1]=s=>e.page=s),length:e.last,"total-visible":n.size=5,variant:"outlined","prev-icon":"i-carbon:chevron-left","next-icon":"i-carbon:chevron-right",size:n.size=="xs"?"x-small":"small",color:"rgb(3, 105, 161)"},null,8,["modelValue","length","total-visible","size"])]),_:1},8,["page","total","last"]))],64)}const ee=k(N,[["render",H]]);
1export{ee 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.