1import{d as M,C as T,D as k,$ as P,R as S,x as b,w as R,z,c as p,g as d,t as x,k as e,r as A,o as m,l as B}from"./BKRH0lRf.js";import{u as C}from"./D1iPZ2BE.js";const E={class:"pdf-viewer","aria-live":"polite"},I=["src"],V={key:1,class:"pdf-viewer__empty"},G=M({__name:"[file]",setup(F){const a=T(),{setPageData:f}=k(),{getDocumentEntry:_}=P(),{trackPageView:g}=C(),{public:{apiBase:y}}=S(),n=e(()=>String(a.params.year??"")),c=e(()=>String(a.params.month??"")),o=e(()=>String(a.params.file??"")),v=e(()=>/^\d{4}$/.test(n.value)&&/^\d{2}$/.test(c.value)&&!!o.value),i=e(()=>v.value?`${y}/wp-content/uploads/${n.value}/${c.value}/${encodeURIComponent(o.value)}.pdf`:""),s=A("Documento"),D=e(()=>o.value.replace(/[_-]/g," ").trim()||"Documento"),t=e(()=>`${s.value} | FAPEMIG`),u=e(()=>`Visualizacao do documento "${s.value}"`),$=e(()=>v.value?"Nao foi possivel localizar o documento solicitado.":"O caminho informado para o documento e invalido.");b({title:()=>t.value,description:()=>u.value,ogTitle:()=>t.value,ogDescription:()=>u.value,ogType:"article",ogSiteName:"FAPEMIG",twitterTitle:()=>t.value,twitterDescription:()=>u.value}),R(()=>s.value,()=>{f({title:t.value,acceptsTitleDescription:!1})},{immediate:!0}),z(()=>{h(),g(a.fullPath,t.value),w()});function h(){const l=`${n.value}/${c.value}/${o.value}`,r=_(l);s.value=r?.title||D.value}function w(){if(i.value){const l=navigator.userAgent||"";/android|iphone|ipad|ipod|mobile/i.test(l)&&window.location.replace(i.value)}}return(l,r)=>(m(),p("section",E,[d(i)?(m(),p("iframe",{key:0,src:d(i),class:"pdf-viewer__iframe",title:"Visualizacao do documento",loading:"lazy"},null,8,I)):(m(),p("p",V,x(d($)),1))]))}}),U=B(G,[["__scopeId","data-v-4d183535"]]);export{U 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.