1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[472],{2483:function(s,e,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/grants",function(){return a(3703)}])},3703:function(s,e,a){"use strict";a.r(e),a.d(e,{__N_SSG:function(){return r}});var n=a(5893),l=a(7294),i=a(2908),c=a(1163),r=!0;e.default=s=>{let{content:e}=s,[a,r]=(0,l.useState)(0),{title:d,awarded_grants:t,description:h,members_only_text:o,footnote:N,grant_types:m}=e.attributes,j=(0,c.useRouter)(),x=null!=a&&(null==m?void 0:m[a]);return(0,n.jsxs)("div",{className:"AppComponent Grants",children:[(0,n.jsx)("h1",{className:"Title",children:"Apply for grants"}),(0,n.jsx)("p",{className:"Description",children:h}),(0,n.jsxs)("div",{className:"GrantsBody ".concat(null!=a?"showDetails":""),children:[(0,n.jsx)("div",{className:"GrantTypes",children:m.map((s,e)=>(0,n.jsx)("div",{className:"GrantType ".concat(e===a?"selected":""),onClick:()=>r(e),children:(0,n.jsx)("h3",{children:(0,n.jsx)(i.D,{className:"NoMargin",children:s.title})})},s.title))}),(0,n.jsx)("div",{className:"GrantTypeDetails",children:x?(0,n.jsxs)("div",{className:"GrantTypeBody fade-in",children:[(0,n.jsxs)("div",{className:"GrantTypeWho",children:[(0,n.jsx)("h3",{children:"Who is eligible"}),(0,n.jsx)(i.D,{className:"NoMargin",children:x.who+(x.members_only?"*":"")})]}),(0,n.jsxs)("div",{className:"GrantTypeWhat",children:[(0,n.jsx)("h3",{children:"What is it for"}),(0,n.jsx)(i.D,{className:"NoMargin",children:x.what})]}),(0,n.jsxs)("div",{className:"GrantTypeHowMuch",children:[(0,n.jsx)("h3",{children:"Budget per grant"}),(0,n.jsx)(i.D,{className:"NoMargin",children:x.how_much})]}),(0,n.jsxs)("div",{className:"GrantTypeHow",children:[(0,n.jsx)("h3",{children:"How to apply"}),(0,n.jsx)(i.D,{className:"NoMargin",children:x.how})]}),x.members_only&&(0,n.jsx)("div",{className:"MembersOnly",children:(0,n.jsx)(i.D,{className:"NoMargin",children:"*"+o})})]}):(0,n.jsx)("div",{})})]}),(0,n.jsxs)("div",{className:"Awarded",children:[(0,n.jsx)("h1",{className:"Title",children:"Awarded grants"}),(0,n.jsx)("div",{className:"AwardedList",children:t.map((s,e)=>(0,n.jsxs)("div",{className:"AwardedItem",onClick:()=>{j.push("/img/".concat(s.url))},children:[(0,n.jsx)("span",{className:"AwardedType",children:s.type}),(0,n.jsx)("span",{className:"AwardedWho",children:s.who})]},e))})]}),(0,n.jsx)("div",{className:"footnote",children:(0,n.jsx)(i.D,{children:e.body})})]})}}},function(s){s.O(0,[908,774,888,179],function(){return s(s.s=2483)}),_N_E=s.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.