2 lines
1.6 KiB
JavaScript
2 lines
1.6 KiB
JavaScript
import{S as w}from"./SectionTitle-CrHOP_mf.js";import{g,_ as x,u as c,c as f,d as a,l as h,w as b,e,i as v,F as y,f as H,h as r,b as o,m as R,t as n,s as V,k}from"./index-BmU8V2V2.js";const q=async()=>{try{const{data:s}=await g.get("/loadresenahistoricaall");return s.records}catch(s){throw console.log(s),new Error("Error getting resenas historicas")}},z={class:"mx-auto py-8 px-4 sm:px-6 lg:px-8 max-w-5xl mb-8"},F={class:"flex flex-col lg:flex-row lg:items-start lg:space-x-8 mb-8"},A={class:"lg:w-7/12 w-full mb-8 lg:mb-0"},B={class:"flex items-center relative"},D={class:"font-bold text-2xl w-1/4 text-center pr-4"},E={class:"w-3/4 pl-4"},N={class:"lg:w-5/12 w-full flex justify-center"},S=["src"],T={__name:"ReviewHistoricalView",setup(s){const d="https://www.gasesdeloriente.com.co",{data:u}=c({queryKey:["resenaHistorica"],queryFn:()=>q(),staleTime:6e4}),{data:m}=c({queryKey:["parametrizacionweb"],queryFn:()=>k(),retry:!1}),l=f(()=>V.contrast);return(C,t)=>{var i;return o(),a("div",z,[h(w,null,{default:b(()=>t[0]||(t[0]=[R("Reseña histórica")])),_:1}),e("div",F,[e("div",A,[e("div",{class:v([{"bg-black":l.value,"bg-white":!l.value},"p-6 rounded-2xl shadow-[0_5px_25px_rgba(0,0,0,0.1)] flex flex-col space-y-7 relative"])},[t[1]||(t[1]=e("div",{class:"absolute inset-y-0 my-auto h-[90%] w-[0.5px] bg-blue-600 left-[25%]"},null,-1)),(o(!0),a(y,null,H(r(u),({year:_,description:p})=>(o(),a("div",B,[e("div",D,n(_),1),e("div",E,n(p),1)]))),256))],2)]),e("div",N,[e("img",{src:`${r(d)}/${(i=r(m))==null?void 0:i.imagen_resena}`,alt:"Registro de firmas constructoras",class:"rounded-lg shadow-md"},null,8,S)])])])}}},j=x(T,[["__scopeId","data-v-e0def3ef"]]);export{j as default};
|