1import{_ as T}from"./-krXNxfH.js";import{_ as V}from"./CJuFBjqb.js";import{e as N,c as s,o,i as g,b as c,be as A,r as k,cf as F,I as G,s as I,j as S,v as O,H as M,h as t,a as n,t as x,F as d,k as h,p as b,g as U,w as C,d as q,_ as H,x as J}from"./DuNswFfk.js";import{_ as K}from"./ChlKwlxg.js";import Q from"./DxnMcbA1.js";import{u as W,_ as X}from"./C3aW8-Ff.js";import{_ as Y}from"./CofN-Yin.js";import"./DlAUqK2U.js";import"./Dk6SVRAV.js";import"./B7SFJ4ud.js";import"./B2b6H676.js";const Z={class:""},ee=["href"],te=N({__name:"ObjectiveCard",props:{bloco:{}},setup(r){return(a,i)=>{const p=Q;return o(),s("div",Z,[r.bloco.link.href?(o(),s("a",{key:0,href:r.bloco.link.href,target:"_blank",class:"group block transition-all duration-300 focus:outline-none hover:brightness-75"},[c(p,{bloco:r.bloco.imagem,"image-attributes":{class:"w-full"}},null,8,["bloco"])],8,ee)):g("",!0)])}}}),oe=Object.assign(te,{__name:"ObjectiveCard"}),se=A("somos-ods",()=>{const r=k(null),a=k(!1);function i(){r.value=null,a.value=!1}async function p(_){if(r.value)return r.value;a.value=!0;try{const e=await $fetch("/api/strapi/find",{params:{contentType:"somos-ods",sanitizeFields:["blocos[*].texto"],populate:F,preview:_}});return r.value=e.data,r.value}catch(e){return console.error("Erro ao buscar a página Somos ODS:",e),null}finally{a.value=!1}}return{somos:r,loading:a,fetchSomosData:p,$reset:i}}),ne={key:0},ae={class:"relative mx-auto mb-30px h-490px w-50vw"},le={key:1,class:"py-10 text-center text-gray-500 font-bold"},re={key:2},ce={class:"mx-auto h-270px gradiente-pagina lt-md-h-auto"}
1,ie={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"},pe={class:"color-highlight fw-700 uppercase lt-lg-text-14px"},_e={class:"m-0 pb-35px color-primaryLight fw-300 !text-42px !lt-lg-text-38px"},de={class:"mx-auto max-w-1580px px-30px lt-lg-w-auto xxl:max-w-1518px lt-md-px-20px"},me={class:"max-w-1518px py-20px lt-md-hidden",flex:"~ row items-center gap-y-10px gap-x-15px min-w-0"},ue=["href"],xe={key:2},ge={class:"order-1 pr-15px lt-lg:order-2"},fe={flex:"~ wrap lt-lg:justify-center"},he={class:"mt-100px"},be={class:"",flex:"~ gap-40px lt-lg:wrap"},ve={key:0,class:"order-2 h-min border-5px border-neutral100 border-solid px-15px lt-md:z-1 lt-md:bg-secondary lt-lg:order-1"},Re=N({__name:"index",async setup(r){let a,i;const p=G(),_=se(),{somos:e}=I(_),{pending:$,error:j}=([a,i]=S(()=>J("somos-ods-page",()=>_.fetchSomosData(p.query.preview))),a=await a,i(),a),D=O(()=>e.value?.blocos?e.value.blocos.filter(m=>m.__component==="geral.texto"):[]),B=O(()=>e.value?.blocos?e.value.blocos.filter(m=>m.__component==="geral.link"):[]),v=W();return[a,i]=S(()=>v.fetchTagRelatedNews(["ODS"],null,1,3)),await a,i(),M(()=>{_.$reset()}),(m,u)=>{const R=T,z=V,w=H,y=K,L=oe,E=X,P=Y;return t($)?(o(),s("div",ne,[c(R),n("div",ae,[c(z)])])):t(j)||!t(e)?(o(),s("div",le," ERRO: Página não encontrada. ")):(o(),s("section",re,[n("div",ce,[n("div",ie,[n("h3",pe,x(t(e)?.subtitulo),1),n("h1",_e,x(t(e)?.titulo),1)])]),n("div",de,[n("div",me,[(o(!0),s(d,null,h(t(e)?.navegacao,(l,f)=>(o(),s(d,{key:l.id},[l.isExternalLink&&t(e)?.navegacao?.length?(o(),s("a",{key:0,href:l.href,class:b([f===t(e).navegacao.length-1?"color-site fw-700 text-14px":"color-primary text-14px"])},x(l.label),11,ue)):(o(),s(d,{key:1},[t(e)?.navegacao?.length?(o(),U(w,{key:0,to:`/${l.href}`,class:b([f===t(e)?.navegacao.length-1?"color-site fw-700 text-14px":"color-primary text-14px"])},{default:C(()=>[q(x(l.label),1)]),_:2},1032,["to","class"])):g("",!0)],64)),t(e)?.navegacao?.length&&f!==t(e)?.navegacao.length-1?(o(),s("p",xe," > ")):g("",!0)],64))),128))]),n("div",{class:b(["grid mb-80px gap-8",[t(e)?.menu_lateral_pagina?"grid-cols-1 lg:grid-cols-[75%_25%]":"grid-cols-[80%] justify-center lt-md:grid-cols-[100%]"]])},[n("div",ge,[c(y,{blocos:t(D)},null,8,["blocos"]),n("div",fe,[(o(!0),s(d,null,h(t(e)?.objetivos,l=>(o(),s("div",{key:l.id,class:"m-10px box-border lt-md:size-24% lt-sm:size-full md-size-14%"},[c(L,{bloco:l},null,8,["bloco"])]))),128))]),c(y,{blocos:t(B)},null,8,["blocos"]),n("div",he,[u[1]||(u[1]=n("h3",{class:"mb-40px fw-300 !text-24px"}," Leia também ",-1)),n("div",be,[(o(!0),s(d,null,h(t(v).tagRelatedNews,l=>(o(),s("div",{key:l.id,class:"w-500px border-1px border-contrast border-solid bg-white transition-all duration-300 lt-sm:w-full lt-xxl:w-full"},[c(E,{notice:l},null,8,["notice"])]))),128))]),c(w,{to:"somos-ods/NoticiasSomosODS",flex:"~ items-center gap-x-20px justify-center",class:"my-30px h-60px border-2px border-contrast rounded-40px border-solid px-30px text-center text-1rem color-site fw-700 transition-[color,border-color,background-color] duration-200 lg-max-w-30% lt-md-max-w-full hover:bg-contrast"},{default:C(()=>[...u[0]||(u[0]=[n("span",null,"ver mais notÃcias",-1)])]),_:1})])]),t(e)?.menu_lateral_pagina?(o(),s("div",ve,[c(P,{menu:t(e).menu_lateral_pagina},null,8,["menu"])])):g("",!0)],2)])]))}}});
1export{Re 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.