PageSourceSearch

https://www.univates.br/_nuxt/Wh34y5vT.js

js univates.br collected 2026-09-24 17:39:33 UTC 2,626 bytes, 1 lines download raw bytes

1import{_ as k}from"./BNSeQjOt.js";import{_ as P}from"./CJuFBjqb.js";import{_ as L}from"./NZTV-npu.js";import{_ as A}from"./ChlKwlxg.js";import{be as R,r as v,bs as B,c8 as E,bv as $,e as T,I as z,s as j,v as h,j as O,H as C,c as g,h as c,o as y,b as m,a,t as I,x as N}from"./DuNswFfk.js";import{u as U}from"./BPh0vFel.js";import"./5Vbo9l7x.js";import"./DlAUqK2U.js";const V=R("laboratory-details",()=>{const s=v(null),t=v(!1),r=v(!1),{find:x}=B();function n(){s.value=null,t.value=!1,r.value=!1}async function l(p,u="published"){const{sanitize:f}=$();if(r.value=!0,t.value)return{labDetails:s.value};try{const[_]=await Promise.all([x("laboratorios",{filters:{slug:{$eq:p}},populate:E,status:u})]),i=_.data?.[0]??null;if(!i)throw new Error(`Página com slug "${p}" não encontrada.`);if(i.blocos){const d=i.blocos.filter(e=>e.__component==="geral.texto"&&e.texto),o=d.map(e=>f(e.texto)),w=await Promise.all(o);d.forEach((e,b)=>{e.texto=w[b]})}return s.value=i,t.value=!0,{labDetails:s.value}}catch(_){return console.error("Erro ao buscar os detalhes da página de laboratórios:",_),n(),null}}return{laboratoryDetails:s,isFetched:t,loading:r,fetchLaboratoryDetailsData:l,$reset:n}}),q={key:0},F={class:"relative mx-auto mb-30px h-490px w-50vw"},G={key:1,class:"py-10 text-center text-gray-500 font-bold"},H={key:2},M={class:"mx-auto h-270px gradiente-pagina lt-md-h-auto"}
1,Y={class:"mx-auto h-full max-w-1518px px-46px xxl:max-w-1518px lt-lg-px-45px lt-md-px-20px lt-md-pt-80px",flex:"~ col justify-end"},J={class:"m-0 pb-35px color-primaryLight fw-300 !text-42px !lt-lg-text-38px"},K={class:"mx-auto max-w-1580px px-30px pb-50px lt-lg-w-auto xxl:max-w-1518px lt-md-px-20px"},Q={class:"grid grid-cols-[80%] justify-center gap-8 lt-md:grid-cols-[100%]"},W={class:"order-1 pr-15px lt-lg:order-2"},nt=T({__name:"[slug]",async setup(s){let t,r;const x=z(),n=V(),{laboratoryDetails:l}=j(n),{enabled:p}=U(),u=h(()=>{const o=x.params.slug;return Array.isArray(o)?o.join("/"):typeof o=="string"?o:""}),f=h(()=>`laboratorios-ensino-${u.value}-${p.value?"preview":"live"}`),_=h(()=>p.value?"draft":"published"),{pending:i,error:d}=([t,r]=O(()=>N(f,()=>n.fetchLaboratoryDetailsData(u.value,_.value),{watch:[u]})),t=await t,r(),t);return C(()=>{n.$reset()}),(o,w)=>{const e=k,b=P,D=L,S=A;return c(i)?(y(),g("div",q,[m(e),a("div",F,[m(b)])])):c(d)||!c(l)?(y(),g("div",G," ERRO: Página não encontrada. ")):(y(),g("section",H,[a("div",M,[a("div",Y,[a("h1",J,I(c(l)?.titulo),1)])]),a("div",K,[m(D,{items:c(l).navegacao},null,8,["items"]),a("div",Q,[a("div",W,[m(S,{blocos:c(l)?.blocos},null,8,["blocos"])])])])]))}}});
1export{nt 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.