PageSourceSearch

https://unijaguaribe.edu.br/_nuxt/DzfsYcOc.js

js unijaguaribe.edu.br collected 2026-10-03 01:31:51 UTC 3,719 bytes, 1 lines download raw bytes

1import{e as N,k as c,h as w,w as k,r as g,o as a,a as i,b as z,c as n,i as $,$ as r,t as V,n as B,a5 as E,l as D,m as j,f as L,Z as R,F as U,j as F,a6 as I,A as P}from"./D_-56MNY.js";const q={key:0,class:"my-0 azul--text big-title"},G={key:0,class:"amarelo--text text-center spt-8"},M={style:{border:"1px solid #ffdc22","border-radius":"4px",width:"fit-content"},class:"px-7 py-1 mx-auto azul--text"},T=N({__name:"Banner",props:{categoriaName:{}},setup(C){const p=c(!1),u=C,{categoriaName:v}=u;return(d,_)=>{const f=g("v-img"),b=g("v-layout"),o=g("router-link");return a(),w(o,{to:"/blog",class:"no-underline","aria-label":"ir para blog"},{default:k(()=>[i("div",{class:"spy-20",style:B({background:`url(${d.$imagine("cinza.jpg",{tr:2e3,repo:"multiversa"})}) 10% 100% / 100% no-repeat`})},[z(b,{class:"align-center fill-height justify-center"},{default:k(()=>[p.value?(a(),n("h1",q,"BLOG ")):$("",!0),i("div",null,[z(f,{onLoad:_[0]||(_[0]=h=>p.value=!0),contain:"",style:{width:"250px"},src:d.$imagine("/logos/logo-unijaguaribe.png",{tr:250})},null,8,["src"])])]),_:1}),r(v)?(a(),n("h2",G,[i("div",M,V(r(v)),1)])):$("",!0)],4)]),_:1})}}}),O={key:0},W={key:0,class:"main-title smb-6"},Z={key:1,class:"main-title smb-6"},H={key:1,class:"smb-16"},J={key:1,style:{width:"100%"}},K={class:"azul2-darken-1--text"},X=N({__name:"Categorias",props:{titulo:{},mobileAsSelect:{type:Boolean}},setup(C){const p=P(),u=R(),v=I(),{smAndDown:d}=E(),_=C,{titulo:f,mobileAsSelect:b}=_,o=c([]),h=c(!1),y=c("/blog"),S=D(()=>[{title:"Ver todos",value:"/blog"},...o.value.map(e=>({title:e.nome,value:`/blog/categoria/${e.slug}`}))]);j(()=>u.fullPath,e=>{y.value=e.startsWith("/blog/categoria/")?e:"/blog"},{immediate:!0}),j(y,e=>{b&&e&&e!==u.fullPath&&v.push(e)});async function A(){if(!h.value){h.value=!0;try{const e=await $fetch(`${p.public.strapiUrl}/api/articles?filters[publishedAt][$notNull]=true&filters[categorias][slug][$eq]=unijaguaribe&populate[0]=categorias&pagination[pageSize]=200`),s=c([]),x=new Set,m=c([]);e?.data&&(e.data.forEach(t=>{t.categorias&&t.categorias.forEach(l=>{l.slug!=="unijaguaribe"&&(s.value.push(l),x.add(l.id))})}),x.forEach(t=>{m.value.push(s.value.find(l=>l.id===t))})),o.value=m.value.sort((t,l)=>t.nome.localeCompare(l.nome))}catch(e){console.error("Erro ao carregar categorias:",e)}h.value=!1}}return L(()=>{A()}),(e,s)=>{const x=g("v-select"),m=g("v-btn");return a(),n("div",null,[o.value&&o.value.length&&!r(d)?(a(),n("div",O,[r(f)?(a(),n("p",W,[i("span",null,V(r(f)),1)])):(a(),n("p",Z,s[1]||(s[1]=[i("span",null,"Categorias",-1)])))])):$("",!0),o.value&&o.value.length?(a(),n("div",H,[r(b)&&r(d)?(a(),w(x,{key:0,modelValue:y.value,"onUpdate:modelValue":s[0]||(s[0]=t=>y.value=t),items:S.value,"item-title":"title","item-value":"value",label:"Categorias",variant:"outlined",rounded:"","hide-details":"",class:"smb-2 smr-4"},null,8,["modelValue","items"])):(a(),n("div",J,[z(m,{rounded:"",variant:"outlined",height:"40px","min-width":"100px",style:B([{"border-color":"#d5d5d5"},{borderColor:r(u).params.slug===void 0?"#90c5e3":"#d5d5d5"}]),class:"no-underline azul2--text letter-spacing-0 pl-2 pr-3 mr-2 mt-1 mb-2 text-transform-initial",to:"/blog"},{default:k(()=>s[2]||(s[2]=[i("span",{class:"azul2-darken-1--text"},"Ver tudo",-1)])),_:1,__:[2]},8,["style"]),(a(!0),n(U,null,F(o.value,(t,l)=>(a(),w(m,{rounded:"",key:l,variant:"outlined",height:"40px","min-width":"100px",style:B({borderColor:t.slug===r(u).params.slug?"#90c5e3":"#d5d5d5"}),class:"no-underline azul2-lighten-1--text letter-spacing-0 px-5 mr-2 mt-1 mb-2 text-transform-initial",to:`/blog/categoria/${t.slug}`},{default:k(()=>[i("span",K,V(t.nome),1)]),_:2},1032,["style","to"]))),128))]))])):$("",!0)])}}});export{T as _,X as a};

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.