PageSourceSearch

https://vestanceng.com/_nuxt/Cfo2xQKJ.js

js vestanceng.com collected 2026-10-04 07:49:45 UTC 4,542 bytes, 1 lines download raw bytes

1import{_ as $}from"./DIf8PEDC.js";import{_ as j}from"./DBNQaODI.js";import{b as h,E as C,z,e as r,i as t,g as I,D as a,h as m,t as i,w as v,F as y,C as w,f as d,A as B,n as N,H as R,I as E}from"./D6UnpWud.js";import{q as D,u as V}from"./CBPhbnrK.js";import{u as H}from"./DYhI_gU1.js";import{u as Y}from"./CCQLrZLx.js";import{_ as S}from"./DlAUqK2U.js";import"./BLNtrtCu.js";const F={class:"blog"},q={class:"blog__featured"},O={class:"blog__featured--img"},P=["src","alt"],T={class:"blog__featured--content"},W={class:"blog__featured--date"},G={class:"blog__featured--author"},J={class:"blog__featured--title"},K={class:"blog__featured--desc"},Q={class:"blog__nav"},U=["onClick"],X={class:"blog__card"},Z={class:"card--date"},tt={class:"card--img"},et=["src","alt"],at={class:"card--content"},st={class:"card--author"},ot={class:"card--title"},lt={class:"card--desc"},it={key:0,class:"media"},nt={class:"media__item"},dt={__name:"index",async setup(rt){let n,p;const M=H(),o=h({}),_=h([]),{data:f}=([n,p]=C(()=>Y("/blog",()=>D("blog").select("path","title","image","description","date","authors","service").order("date","DESC").all())),n=await n,p(),n),{data:k}=([n,p]=C(()=>Y("/media",()=>D("media").select("path","title","image","description","date").order("date","DESC").limit(3).all())),n=await n,p(),n);o.value=f.value[0],_.value=f.value.filter(l=>l.path!==o.value.path);const b=h([{id:"1",title:"View All",path:"all"},{id:"2",title:"Financial Advisory",path:"financial-advisory"},{id:"3",title:"Value Chain Development",path:"value-chain-development"},{id:"4",title:"International Trade Advisory",path:"international-trade-advisory"},{id:"5",title:"Policy Analysis",path:"policy-analysis"}]),g=h({});x();function x(l){if(_.value=f.value.filter(e=>e.path!==o.value.path),!l||l.path==="all"){g.value=b.value[0];return}_.value=_.value.filter(e=>e.service.includes(l.path)),g.value=l}function A(l){let e=l.map(c=>c.name);return e.length>1?e.slice(0,-1).join(", ")+" & "+e.slice(-1):e[0]}return z({title:"Vestance | Reshaping Africa's agrifood landscape - Blog"}),(l,e)=>{const c=$,L=j;return d(),r("div",null,[e[5]||(e[5]=t("section",{class:"hero"},[t("div",{class:"hero__content"},[t("h1",null,"Our Blog"),t("p",null,"Read up on new developments in agriculture in Africa and around the world, as they happen. We provide useful information in crispy writing")])],-1)),t("section",F,[t("div",q,[t("div",O,[t("img",{src:a(V)(a(o).image.src),loading:"lazy",alt:a(o).alt},null,8,P)]),t("div",T,[t("p",W,[e[0]||(e[0]=t("span",null,"Latest",-1)),t("span",null,i(a(M)(a(o).date).format("MMMM D, YYYY")),1)]),t("p",G,"By "+i(A(a(o).authors)),1),t("h2",J,[m(c,{to:{path:`${a(o).path}`}},{default:v(()=>[B(i(a(o).title),1)]),_:1},8,["to"])]),t("p",K,i(a(o).description),1),m(c,{to:{path:`${a(o).path}`},class:"blog__featured--btn"},{default:v(()=>e[1]||(e[1]=[t("span",null,"Read More",-1),t("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t("path",{d:"M5 12.5714L12.1429 5.42859M12.1429 5.42859H5M12.1429 5.42859V12.5714",stroke:"#101828","stroke-width":"1.42857","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])),_:1},8,["to"])])]),t("ul",Q,[(d(!0),r(y,null,w(a(b),(s,u)=>(d(),r("li",{key:u,class:N({active:a(g).id===s.id})},[t("span",{onClick:R(ct=>x(s),["prevent"])},i(s.title),9,U)],2))),128))]),e[3]||(e[3]=t("hr",{class:"underline"},null,-1)),t("div",X,[(d(!0),r(y,null,w(a(_),(s,u)=>(d(),r("div",{key:u,class:"card"},[t("div",Z,[t("p",null,i(a(M)(s.date).format("MMMM D, YYYY")),1)]),t("div",tt,[t("img",{src:a(V)(s.image.src),loading:"lazy",alt:s.alt},null,8,et)]),t("div",at,[t("p",st,"By "+i(A(s.authors)),1),t("h2",ot,[m(c,{to:{path:`${s.path}`}},{default:v(()=>[B(i(s.title),1)]),_:2},1032,["to"])]),t("p",lt,i(s.description),1),m(c,{to:{path:`${s.path}`},class:"card--btn"},{default:v(()=>e[2]||(e[2]=[t("span",null,"Read More",-1),t("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t("path",{d:"M5 12.5714L12.1429 5.42859M12.1429 5.42859H5M12.1429 5.42859V12.5714",stroke:"#101828","stroke-width":"1.42857","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])),_:2},1032,["to"])])]))),128))])]),a(k).length?(d(),r("section",it,[e[4]||(e[4]=t("div",{class:"media__title"},[t("h3",{class:"section__heading"},"Recommended Media Posts")],-1)),t("div",nt,[(d(!0),r(y,null,w(a(k),(s,u)=>(d(),E(L,{key:u,media:s},null,8,["media"]))),128))])])):I("",!0)])}}},yt=S(dt,[["__scopeId","data-v-30388db4"]]);export{yt 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.