PageSourceSearch

https://greenfund.rw/build/assets/ImpactIntegoPublicSector-DSmvQRpY.js

js greenfund.rw collected 2026-10-02 10:20:37 UTC 15,579 bytes, 1 lines download raw bytes

1import{x as I,r as i,w as K,j as W,c as d,a as l,k as n,l as c,f as t,g as m,u as D,d as N,t as F,h as X,v as Y,F as w,q as T,m as ee,i as te}from"./app-B3q2SnoA.js";import{u as oe}from"./useCmsEditMode-Bv6mgqrK.js";import{E as p}from"./EditableText-CVYzanej.js";import{_ as se}from"./Seo-Cc3nFnTo.js";import ae from"./Layout-k4KeRg38.js";import{H as ie}from"./HeroSection-BmKaZDqk.js";import{u as ne,T as re}from"./useTestimonials-BEX9v8S4.js";import{P as le,a as de}from"./ProjectModal-DEno-Hth.js";import{_ as ce}from"./EditableDocumentList-CnO6qRvx.js";import{N as ue}from"./NewsSection-DqgXXE6z.js";import{_ as me}from"./PartnersList-DB-TNIMl.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./EditableImage-8uq9qYin.js";/* empty css                                                                    */const pe={class:"px-6 sm:px-10 md:px-20 lg:px-36 mt-8 md:mt-56"},ge={class:"bg-secondary/20 px-6 sm:px-10 md:px-20 lg:px-36 py-12 md:py-24 rounded-t-[1.5em] md:rounded-t-[2.5em]"},fe={class:"bg-white px-6 sm:px-10 md:px-20 lg:px-36 py-12 md:py-24 -mt-10 md:-mt-16 relative rounded-t-[1.5em] md:rounded-t-[2.5em]"},ve={class:"mb-12"},xe={class:"text-2xl md:text-3xl font-bold text-primary mb-8 md:mb-12"},he={class:"flex flex-col md:flex-row items-center justify-between gap-6"},be={class:"bg-secondary rounded-full flex justify-between pl-7 py-2 shadow-none w-full md:w-auto md:min-w-[300px]"},_e={class:"flex gap-4 md:gap-8 items-center w-full md:w-auto justify-end"},we={class:"flex gap-2 md:gap-3 items-center cursor-pointer"},ye={key:0,class:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6 md:gap-8 mb-12"},ke={key:1,class:"mb-12"},Pe={class:"bg-red-50 border border-red-200 rounded-[1.5rem] md:rounded-[2.5em] px-6 py-8 md:px-11 md:py-12"},je={class:"flex items-center gap-3"},Ce={class:"text-red-700 font-medium"},Se={key:2,class:"mb-12"},Ae={class:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6 md:gap-8 mb-12"},Me={key:0,class:"bg-gray-50 border border-gray-200 rounded-[1.5em] md:rounded-[2.5em] px-6 py-10 md:px-11 md:py-12 text-center"},Fe={class:"flex flex-col items-center gap-4"},Te={key:3,class:"flex gap-3 items-center justify-center pb-12"},Ve=["disabled"],Ee=["onClick"],Re={class:"text-base font-extrabold text-white"},Be=["disabled"],Ie={class:"px-6 sm:px-10 md:px-20 lg:px-36 py-12 md:py-20"},De={class:"bg-secondary/20 px-6 sm:px-10 md:px-20 lg:px-36 py-12 md:py-20 rounded-t-[1.5em] md:rounded-t-[2.5em]"},Ye={__name:"ImpactIntegoPublicSector",setup(Ne){const{getContentValue:G}=oe(),V=I(()=>{const a=G("intego_public_news_categories",[]);if(Array.isArray(a))return a;if(typeof a=="string"&&a.trim()!=="")try{const e=JSON.parse(a);return Array.isArray(e)?e:[a]}catch{return a.split(",").map(s=>s.trim())}return[]}),f=i("");i("");const E=i(""),x=i(!1),v=i(null),u=i(1),g=i(1),R=i(0),U=i(9),{testimonials:$,fetchTestimonials:L,handleTestimonialSelection:H}=ne("intego_public_testimonials"),y=i([]),k=i(!1),P=i(null),h=async(a=1)=>{x.value=!0,v.value=null;try{const e=new URLSearchParams;f.value&&e.append("search",f.value),e.append("category","Intego"),e.append("sub_category","Public Sector"),E.value&&e.append("status",E.value),e.append("page",a),e.append("per_page",U.value);const s=await fetch(`/api/companies?${e}`);if(!s.ok)throw new Error("Failed to fetch projects");const r=await s.json();y.value=(r.data||[]).map(o=>({id:o.id,title:o.name,name:o.name,description:o.description,timeline:o.timeline,status:o.status,type:o.type,image:o.image||o.logo||o.icon,icon:o.icon||o.logo,link:o.link||"#",location:o.location||null,approved_date:o.approved_date||null,started_date:o.started_date||null,completion_date:o.completion_date||null,ess_category:o.ess_category||null,value:o.value||null,funded:o.funded||null,emissions:o.emissions||null,beneficiaries:o.beneficiaries||null,theme:o.theme||null,implementing_partner:
1o.implementing_partner||null,financing_instrument:o.financing_instrument||null,sectors:o.sectors||[],partner_logos:o.partner_logos||[],impacts:o.impacts||[]})),u.value=r.meta.current_page,g.value=r.meta.last_page,R.value=r.meta.total}catch(e){v.value=e.message,console.error("Error fetching projects:",e)}finally{x.value=!1}},j=a=>{a>=1&&a<=g.value&&a!=="..."&&(u.value=a,h(a))},O=I(()=>{const a=[];if(g.value<=5)for(let s=1;s<=g.value;s++)a.push(s);else{let s=Math.max(1,u.value-Math.floor(2.5)),r=Math.min(g.value,s+5-1);r-s+1<5&&(s=Math.max(1,r-5+1));for(let o=s;o<=r;o++)a.push(o)}return a});let B;K(f,a=>{clearTimeout(B),B=setTimeout(()=>{u.value=1,h(1)},300)});const Z=i([{id:1,title:"Strategic Plan 2024–2030",description:"A full downloadable PDF of our 6 years stategic report.",thumbnail:"/images/4K8A7994.jpg",downloadUrl:"#"},{id:2,title:"Strategic Plan 2024–2030",description:"A full downloadable PDF of our 6 years stategic report.",thumbnail:"/images/nyungwe.jpg",downloadUrl:"#"},{id:3,title:"Strategic Plan 2024–2030",description:"A full downloadable PDF of our 6 years stategic report.",thumbnail:"/images/mundi_park.png",downloadUrl:"#"},{id:4,title:"Strategic Plan 2024–2030",description:"A full downloadable PDF of our 6 years stategic report.",thumbnail:"/images/rain_forest.jpg",downloadUrl:"#"}]),C=i([]),S=i(!1),A=i(null),b=i(1),M=i(1),_=async(a=1)=>{S.value=!0,A.value=null;try{let e=`/api/articles?per_page=3&page=${a}`;V.value.length>0&&(e+=`&category=${encodeURIComponent(V.value.join(","))}`);const s=await fetch(e);if(!s.ok)throw new Error("Failed to fetch articles");const r=await s.json();C.value=(r.data||[]).map(o=>({slug:o.slug,category:o.category,title:o.title,date:o.formatted_date||new Date(o.published_at).toLocaleDateString("en-US",{month:"short",day:"2-digit",year:"2-digit"}),excerpt:o.excerpt})),b.value=r.current_page||1,M.value=r.last_page||1}catch(e){A.value=e.message,console.error("Error fetching articles:",e),C.value=[{category:"Stories",title:"Rwanda, Gold Standard, GenZero to collaborate on Article 6 carbon credit projects",date:"August 01, 24",excerpt:"Accelerating public sector access to climate finance ..."},{category:"Economy",title:"Rwanda, Gold Standard, GenZero to collaborate on Article 6 carbon credit projects",date:"August 01, 24",excerpt:"Accelerating public sector access to climate finance ..."},{category:"Economy",title:"Rwanda, Gold Standard, GenZero to collaborate on Article 6 carbon credit projects",date:"August 01, 24",excerpt:"Accelerating public sector access to climate finance ..."}]}finally{S.value=!1}},z=a=>{a>=1&&a<=M.value&&(b.value=a,_(a))},Q=()=>{b.value=1,_(1)},q=a=>{console.log("Opening modal with project:",a),P.value=a||{},k.value=!0},J=()=>{k.value=!1,P.value=null};return W(()=>{h(),_(),L()}),(a,e)=>(l(),d(w,null,[n(se,{title:"Impact - Intego Facility (Public Sector)",description:"Accelerating public sector access to climate finance in Rwanda. Explore our portfolio of transformative investments approved by the Rwanda Green Fund.",keywords:"climate finance, public sector, Rwanda Green Fund, Intego facility, sustainable investments",image:"/images/mundi_park.png"}),n(ae,null,{default:c(()=>[n(ie,{name:"intego_public_hero",title:[{text:"Accelerating",color:"text-white"},{text:"Public",color:"text-ascent"},{text:"Sector Access",color:"text-white"},{text:"to Climate Finance",color:"text-ascent"}],"background-image":"/images/mundi_park.png","image-alt":"Intego Facility - Public Sector"}),t("div",pe,[n(p,{name:"impact_intego_public_sector_text_5",tag:"p",class:"text-sm md:text-base leading-relaxed text-primary font-host-grotesk max-w-[1368px]"},{default:c(()=>[...e[3]||(e[3]=[m(" Our mandate is to invest in high-impact sectors across private and public initiatives, driving social and economic transformation by providing growth capital to transformative ventures while delivering de-risking capital to attract investments in sustainable projects and foster innovation in climate-smart solutions. ",-1)])]),_:1})]),n(re,{testimonials:D($),"show-decorative-circle":!0,"decorative-circle-image":"/images/rain_forest.jpg","cms-key":"intego_public_testimonials",onSelectionChange:D(H)},null,8,["testimonials","onSelectionChange"]),t("div",ge,[n(p,{name:"impact_intego_public_sector_heading_1",tag:"h2",class:"text-2xl md:text-3xl font-bold text-primary font-host-grotesk mb-6"},{default:c(()=>[...e[4]||(e[4]=[m("Our Portfolio",-1)])]),_:1}),n(p,{name:"impact_intego_public_sector_text_6",tag:"p",class:"text-sm md:text-base leading-relaxed md:leading-[42px] text-primary font-host-grotesk mb-6"},{default:c(()=>[...e[5]||(e[5]=[m(" Public Sector: Intego's first call for proposals was launched in February 2023, inviting Rwanda's public institutions to submit projects that drive the country's ambitious climate action goals. ",-1)])]),_:1}),n(p,{name:"impact_intego_public_sector_text_7",tag:"p",class:"text-sm md:text-base leading-relaxed md:leading-[42px] text-primary font-host-grotesk text-left md:text-justify"},{default:c(()=>[...e[6]||(e[6]=[m(" Following a rigorous evaluation process, the Rwanda Green Fund Board of Directors approved 10 transformative investments, committing Rwf 43.6 billion in funding from development partners. These projects also secured an additional Rwf 7 billion in co-financing, further amplifying their impact. ",-1)])]),_:1})]),t("div",fe,[t("div",ve,[t("h2",xe,"Investments Under Implementation ("+F(R.value)+" Projects)",1),t("div",he,[t("div",be,[X(t("input",{type:"text","onUpdate:modelValue":e[0]||(e[0]=s=>f.value=s),placeholder:"Search",class:"bg-transparent text-base font-normal text-primary placeholder-primary pl-0 pr-3 w-full focus:outline-none focus:ring-0 border-none shadow-none",style:{"line-height":"1.5"}},null,512),[[Y,f.value]]),e[7]||(e[7]=t("div",{class:"bg-ascent rounded-full p-3 mr-2 shrink-0"},[t("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t("path",{d:"M21 21L17.5001 17.5M20 11.5C20 16.1944 16.1944 20 11.5 20C6.80558 20 3 16.1944 3 11.5C3 6.80558 6.80558 3 11.5 3C16.1944 3 20 6.80558 20 11.5Z",stroke:"white","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})])],-1))]),t("div",_e,[e[10]||(e[10]=t("div",{class:"flex gap-2 md:gap-3 items-center cursor-pointer"},[t("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-4 h-4 md:w-5 md:h-5"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 3c2.755 0 5.455.232 8.083.678.533.09.917.556.917 1.096v1.044a2.25 2.25 0 0 1-.659 1.591l-5.432 5.432a2.25 2.25 0 0 0-.659 1.591v2.927a2.25 2.25 0 0 1-1.244 2.013L9.75 21v-6.568a2.25 2.25 0 0 0-.659-1.591L3.659 7.409A2.25 2.25 0 0 1 3 5.818V4.774c0-.54.384-1.006.917-1.096A48.32 48.32 
10 0 1 12 3Z"})]),t("p",{class:"text-xs md:text-sm font-medium text-primary"},"Sort")],-1)),t("div",we,[e[9]||(e[9]=t("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-4 h-4 md:w-5 md:h-5"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M10.5 6h9.75M10.5 6a1.5 1.5 0 1 1-3 0m3 0a1.5 1.5 0 1 0-3 0M3.75 6H7.5m3 12h9.75m-9.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-3.75 0H7.5m9-6h3.75m-3.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-9.75 0h9.75"})],-1)),n(p,{name:"impact_intego_public_sector_text_8",tag:"p",class:"text-xs md:text-sm font-medium text-primary"},{default:c(()=>[...e[8]||(e[8]=[m("Custom Filter",-1)])]),_:1})])])])]),x.value?(l(),d("div",ye,[(l(),d(w,null,T(9,s=>t("div",{key:s,class:"bg-white rounded-[1.5em] md:rounded-[2.5em] overflow-hidden animate-pulse"},[...e[11]||(e[11]=[t("div",{class:"h-48 bg-gray-300"},null,-1),t("div",{class:"p-6"},[t("div",{class:"h-4 bg-gray-300 rounded mb-4"}),t("div",{class:"h-4 bg-gray-300 rounded w-2/3"})],-1)])])),64))])):v.value?(l(),d("div",ke,[t("div",Pe,[t("div",je,[e[12]||(e[12]=t("svg",{class:"w-6 h-6 text-red-500",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})],-1)),t("p",Ce,"Error loading projects: "+F(v.value),1)]),t("button",{onClick:h,class:"mt-4 bg-red-600 text-white px-4 py-2 rounded-lg hover:bg-red-700 transition-colors"}," Try Again ")])])):(l(),d("div",Se,[t("div",Ae,[(l(!0),d(w,null,T(y.value,s=>(l(),ee(le,{key:s.id,title:s.title,timeline:s.timeline,status:s.status,type:s.type,image:s.image,icon:s.icon,link:s.link,project:s,onClick:q},null,8,["title","timeline","status","type","image","icon","link","project"]))),128))]),y.value.length===0?(l(),d("div",Me,[t("div",Fe,[e[15]||(e[15]=t("svg",{class:"w-12 h-12 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 21V5a2 2 0 00-2-2H7a2 2 0 00-2 2v16m14 0h2m-2 0h-5m-9 0H3m2 0h5M9 7h1m-1 4h1m4-4h1m-1 4h1m-5 10v-5a1 1 0 011-1h2a1 1 0 011 1v5m-4 0h4"})],-1)),n(p,{name:"impact_intego_public_sector_heading_2",tag:"h3",class:"text-lg font-medium text-gray-900"},{default:c(()=>[...e[13]||(e[13]=[m("No projects found",-1)])]),_:1}),n(p,{name:"impact_intego_public_sector_text_9",tag:"p",class:"text-gray-600"},{default:c(()=>[...e[14]||(e[14]=[m("Try adjusting your search criteria or check back later.",-1)])]),_:1})])])):N("",!0)])),g.value>1&&!x.value&&!v.value?(l(),d("div",Te,[t("button",{onClick:e[1]||(e[1]=s=>j(u.value-1)),disabled:u.value<=1,class:"bg-primary rounded-full w-10 h-10 flex items-center justify-center cursor-pointer hover:bg-ascent transition-colors disabled:opacity-50 disabled:cursor-not-allowed"},[...e[16]||(e[16]=[t("svg",{class:"w-4 h-4 text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 19l-7-7 7-7"})],-1)])],8,Ve),(l(!0),d(w,null,T(O.value,s=>(l(),d("div",{key:s,class:te(["bg-primary rounded-full w-10 h-10 flex items-center justify-center cursor-pointer hover:bg-ascent transition-colors",{"bg-secondary":s===u.value}]),onClick:r=>j(s)},[t("p",Re,F(s),1)],10,Ee))),128)),t("button",{onClick:e[2]||(e[2]=s=>j(u.value+1)),disabled:u.value>=g.value,class:"bg-primary rounded-full w-10 h-10 flex items-center justify-center cursor-pointer hover:bg-ascent transition-colors disabled:opacity-50 disabled:cursor-not-allowed"},[...e[17]||(e[17]=[t("svg",{class:"w-4 h-4 text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5l7 7-7 7"})],-1)])],8,Be)])):N("",!0)]),t("div",Ie,[n(p,{name:"impact_intego_public_sector_heading_3",tag:"h2",class:"text-2xl md:text-3xl font-bold text-primary font-host-grotesk mb-6"},{default:c(()=>[...e[18]||(e[18]=[m("Documents",-1)])]),_:1}),n(ce,{name:"intego_public_documents","default-items":Z.value},null,8,["default-items"])]),t("div",De,[n(p,{name:"impact_intego_public_sector_heading_4",tag:"h2",class:"text-2xl md:text-3xl font-bold text-primary font-host-grotesk mb-6"},{default:c(()=>[...e[19]||(e[19]=[m("News",-1)])]),_:1}),n(ue,{title:"",articles:C.value,columns:3,"card-bg":"bg-secondary/60","card-bg-hover":"hover:bg-primary",loading:S.value,error:A.value,"show-pagination":!0,"current-page":b.value,"total-pages":M.value,"cms-key":"intego_public_news_categories",onPageChange:z,onCategoryChange:Q,onRetry:_},null,8,["articles","loading","error","current-page","total-pages"])]),n(me,{name:"intego_public"}),n(de,{"is-open":k.value,project:P.value||{},onClose:J},null,8,["is-open","project"])]),_:1})],64))}};export{Ye 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.