1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[412],{1482:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/projects/current-projects",function(){return s(4514)}])},3344:function(e,t,s){"use strict";var r=s(5893),n=s(5675),a=s.n(n),l=s(1664),i=s.n(l);let o=e=>{var t;let{image:s,title:n,subtitle:l,description:o,linkTitle:c,href:d}=e;return(0,r.jsxs)("div",{className:"relative group flex flex-col overflow-hidden shadow-sm border border-gray-100",children:[(0,r.jsx)("div",{className:"flex-shrink-0",children:(0,r.jsx)(a(),{width:390,height:288,src:s.src,alt:null!==(t=s.alt)&&void 0!==t?t:"",sizes:s.sizes,placeholder:"blur",blurDataURL:s.base64,className:"h-72 w-full object-cover object-top"})}),(0,r.jsxs)("div",{className:"absolute h-full w-full flex flex-1 flex-col justify-between px-4 py-6 group-hover:bg-badur-navy group-hover:bg-opacity-90 transition-all ease-in-out",children:[(0,r.jsx)("p",{className:"bdr-title--sml",children:(0,r.jsx)("span",{className:"bg-badur-navy text-white px-4 py-2 group-hover:bg-white group-hover:text-badur-navy inline-block",children:n})}),(0,r.jsxs)("div",{className:"hidden group-hover:flex flex-col self-start justify-end text-white",children:[l&&(0,r.jsx)("p",{className:"text-lg leading-tight",children:l}),o&&(0,r.jsx)("p",{className:"mt-3 text-sm leading-6",children:o}),(0,r.jsx)("div",{className:"mt-5",children:(0,r.jsx)(i(),{href:d,passHref:!0,children:(0,r.jsxs)("span",{className:"transition-all ease-linear delay-75 inline-flex items-center border-b border-transparent hover:border-white",children:[(0,r.jsx)("span",{children:c}),(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-4 h-4 ml-1",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"})})]})})})]})]})]})};t.Z=o},9112:function(e,t,s){"use strict";s.d(t,{Z:function(){return o}});var r=s(5893),n=s(3344);s(7294);let a=()=>(0,r.jsx)("div",{className:"text-center",children:(0,r.jsxs)("div",{role:"status",children:[(0,r.jsxs)("svg",{className:"inline mr-3 h-8 w-8 animate-spin text-badur-red mx-auto",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[(0,r.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,r.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),(0,r.jsx)("span",{className:"sr-only",children:"Loading..."})]})}),l=e=>{let{title:t,subtitle:s,featuredImage:a,slug:l}=e;return(0,r.jsx)(n.Z,{image:a.responsiveImage,title:t,subtitle:s,linkTitle:"View project",href:"/projects/".concat(l)})},i=e=>{let{ProjectItems:t,isFiltering:s,emptyListMessage:n}=e;return(0,r.jsxs)("div",{className:"min-h-[50vh]",children:[!s&&t.length>0&&(0,r.jsx)("div",{className:"bdr-grid",children:t.map(e=>(0,r.jsx)(l,{...e},e.id))}),s&&(0,r.jsx)("div",{children:(0,r.jsx)(a,{})}),!s&&0===t.length&&(0,r.jsx)("div",{className:"max-w-2xl mx-auto h-[40vh] grid place-content-center",children:(0,r.jsxs)("div",{className:"space-y-8 bdr-box-bg",children:[(0,r.jsxs)("h1",{className:"bdr-title--mega",children:[(0,r.jsx)("span",{className:"bdr-slash bdr-slash--red",children:"/"})," No Projects Found"]}),(0,r.jsx)("p",{className:"text-xl max-w-xl",children:n||"Unfortunately, we couldn't find any project under the selected tag"})]})})]})};var o=i},5147:function(e,t,s){"use strict";var r=s(5893),n=s(377);let a=e=>{var t;let{tags:s,selectedTag:a,onFilter:l,clearFilters:i}=e;return(0,r.jsxs)("div",{className:"flex flex-wrap xl:justify-center gap-5",children:[(0,r.jsx)(n.Z,{variant:"button",text:"All",theme:(null==a?void 0:null===(t=a.name)||void 0===t?void 0:t.toLowerCase())===void 0?"bdr-btn--navy":"bdr-btn--clear-navy",className:"hover:bg-badur-navy hover:text-white",onClick:i}),s.themes.map(e=>{var t;return(0,r.jsx)(n.Z,{variant:"button",text:e.name,theme:(null==a?void 0:null===(t=a.name)||void 0===t?void 0:t.toLowerCase())===e.name.toLowerCase()?"bdr-btn--navy":"bdr-btn--clear-navy",className:"hover:bg-badur-navy hover:text-white",onClick:t=>l(t,e,"theme")},e.id)}),s.regions.map(e=>{var t;return(0,r.jsx)(n.Z,{variant:"button",text:e.name,theme:(null==a?void 0:null===(t=a.name)||void 0===t?void 0:t.toLowerCase())===e.name.toLowerCase()?"bdr-btn--navy":"bdr-btn--clear-navy",className:"hover:bg-badur-navy hover:text-white",onClick:t=>l(t,e,"region")},e.id)})]})};t.Z=a},4873:function(e,t,s){"use strict";s.d(t,{Z:function(){return l}});var r=s(7294),n=s(9734),a=s(6733);function l(e,t,s,l,i,o,c){let[d,u]=(0,r.useState)(""),[h,x]=(0,r.useState)({}),[v,m]=(0,r.useState)(e),[j,b]=(0,r.useState)([]),[p,f]=(0,r.useState)(1),[g,w]=(0,r.useState)(!1),[N,y]=(0,r.useState)(!1),k=(e,t,s)=>{e.preventDefault(),x(t),u(s),y(!0)},C=21*p,Z=C<t,{isLoading:_}=(0,n.ZP)(g&&Z?["getMoreProjects",C]:null,()=>(0,a.kk)(s,C),{onSuccess(e){w(!1),m(t=>[...t,...e.allProjects]),f(e=>e+1)}}),{isLoading:P}=(0,n.ZP)(N?["filterProjects",void 0,h.id]:null,()=>
1(0,a.kk)("region"===d?o:c,void 0,h.id),{onSuccess(e){b(e.allProjects),y(!1)}}),S=()=>{x({}),u(""),b([])};return{projectsList:v,filteredList:j,selectedTag:h,selectedTagCategory:d,isLoading:_,isFiltering:P,tags:{themes:l,regions:i},hasMoreProjects:Z,onFilter:k,setLoadMore:w,clearFilters:S}}},4514:function(e,t,s){"use strict";s.r(t),s.d(t,{__N_SSG:function(){return x}});var r=s(5893),n=s(2962),a=s(5064),l=s(4873),i=s(9567),o=s(9112),c=s(6874),d=s(377),u=s(5147);let h=e=>{let{projects:t,totalPublished:s,regions:h,themes:x}=e,{projectsList:v,filteredList:m,selectedTag:j,selectedTagCategory:b,isLoading:p,isFiltering:f,tags:g,hasMoreProjects:w,onFilter:N,setLoadMore:y,clearFilters:k}=(0,l.Z)(t,s,a.Y_,x,h,a.Ro,a.Sp);return(0,r.jsxs)("div",{children:[(0,r.jsx)(n.PB,{title:"Current Projects",description:"Take a look at the initiatives we currently fund"}),(0,r.jsx)(i.Z,{title:"Take a look at the initiatives we currently fund",subTitle:"Current Projects"}),(0,r.jsxs)(c.Z,{children:[(0,r.jsx)(u.Z,{tags:g,selectedTag:j,onFilter:N,clearFilters:k}),!b&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.Z,{ProjectItems:v}),w&&(0,r.jsx)("div",{className:"flex justify-center",children:(0,r.jsx)(d.Z,{variant:"button",href:"#",text:p?"Loading More Projects":"See More",theme:"bdr-btn--navy",onClick:()=>y(!0)})})]}),b&&(0,r.jsx)(o.Z,{ProjectItems:m,isFiltering:f})]})]})};var x=!0;t.default=h}},function(e){e.O(0,[734,705,774,888,179],function(){return e(e.s=1482)}),_N_E=e.O()}]);
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.