1import{u as C,F as D}from"./BEcrqIgb.js";import{u as A,F as B,l as q}from"./DUwt3oGo.js";import{F as U}from"./CGXAhkZX.js";import{F as G}from"./rJwsUVCf.js";import{F as S}from"./CXvVGlM9.js";import{u as j}from"./DuVuZ2Xs.js";import{d as H,z as N,w as z,D as $,E as O,x as R,c,e as W,g as t,t as Z,p as k,f as p,q as J,j as _,i as b,r as F,o as i,Z as K,k as Q,l as X}from"./CPl0olws.js";import"./o_5rJdUo.js";import"./BYUpCESC.js";import"./rMsMdmSW.js";import"./BL_6kOxi.js";import"./B9wTcfoM.js";import"./BKESRKmp.js";import"./RaRdeYfi.js";import"./Mw2uc-_D.js";const Y={class:"laws__container"},ee={key:0},ae={key:1},n=25,d="Leis federais e estaduais relacionadas às ações da FAPEMIG.",u="Leis Federais e Estaduais | FAPEMIG",se=H({__name:"index",setup(te){const{loadLaws:g,loadMoreLaws:L,hasMorePages:w,totalItems:h,error:f,isLoading:E,laws:l}=C(),{links:T,loadLinks:x}=A(),y=["A atuação da FAPEMIG está fundamentada em um conjunto robusto de leis e diretrizes que estruturam o sistema de ciência, tecnologia e inovação no Brasil e em Minas Gerais. Esta página apresenta uma curadoria das principais normas federais e estaduais que orientam as ações da Fundação, desde o fomento à pesquisa até os mecanismos de cooperação com universidades, centros de pesquisa, empresas e demais entes públicos."],m=[{name:"lei estadual",label:"Lei Estadual"},{name:"lei federal",label:"Lei Federal"}],r=F(m[0].name),o=F([]);function P(e){e.src?K(`/a-fapemig/legislacao/leis-federais-e-estaduais/${e.src}`):e.archive?window.open(e.archive,"_blank"):e.link&&window.open(e.link,"_blank")}function I(e){const s=document.createElement("textarea");return s.innerHTML=e,s.value}N(async()=>{const e=m.find(s=>s.name===r.value);await g({categories:[e.name],perPage:n,page:1}),o.value=l.value.slice(0,n),await x("a-fapemig","legislacao","/a-fapemig/legislacao")}),z(r,async e=>{o.value=[];const s=m.find(a=>a.name===e);await g({categories:[s.name],perPage:n,page:1}),o.value=l.value.slice(0,n)});const{canonicalUrl:M}=j(),v=Q(()=>"/images/base-layout-background.jpg"),{setPageData:V}=$();return O({title:u,meta:[{name:"description",content:d}]}),V({title:"Leis Federais e Estaduais",acceptsTitleDescription:!0}),R({title:()=>u,description:()=>d,ogTitle:()=>u,ogDescription:()=>d,ogUrl:()=>M.value,ogImage:()=>v.value,twitterTitle:()=>u,twitterDescription:()=>d,twitterImage:()=>v.value}),(e,s)=>(i(),c("div",null,[W("article",Y,[t(f)?(i(),c("span",ee,Z(t(f)),1)):t(E)&&t(l).length===0?(i(),c("span",ae,"carregando dados...")):(i(),c(k,{key:2},[p(D,{paragraphs:y,"show-documents":!0}),p(U,{modelValue:r.value,"onUpdate:modelValue":s[0]||(s[0]=a=>r.value=a),class:"law__tabs",items:m.map(a=>({label:a.label,value:a.name}))},null,8,["modelValue","items"]),o.value.length>0?(i(!0),c(k,{key:0},J(o.value,a=>(i(),b(G,{key:a.id,label:I(a.title),"line-clamp":3,"border-radius":"extralarge",onClick:oe=>P(a)},null,8,["label","onClick"]))),128)):_("",!0),t(l).length&&o.value.length>=n?(i(),b(S,{key:r.value,modelValue:o.value,"onUpdate:modelValue":s[1]||(s[1]=a=>o.value=a),items:t(l),"items-per-page":n,"on-load-more":t(L),"has-more-pages":t(w),"total-items":t(h),"text-pagination-type":"leis",class:"mt-lg"},null,8,["modelValue","items","on-load-more","has-more-pages","total-items"])):_("",!0)],64))]),p(B,{"image-src":t(q),links:t(T)},null,8,["image-src","links"])]))}}),Fe=X(se,[["__scopeId","data-v-fccdbd61"]]);export{Fe 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.