1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[719],{5568:(e,s,a)=>{a.d(s,{h:()=>c});var r=a(37876),l=a(14232),n=a(48230),i=a.n(n),t=a(39853),d=a(5130);new d.A,new d.A;let c=e=>{let{user:s,groundups:a,role:n,logout:d}=e,[c]=(0,l.useContext)(t.R);return(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{id:"navbar-groundup",children:[(0,r.jsxs)("div",{className:"tag",children:[(0,r.jsxs)("p",{className:"boldText text-capitalize",children:[null==s?void 0:s.firstName," ",null==s?void 0:s.lastName]}),(0,r.jsx)("p",{className:"px-4",children:s.email}),(0,r.jsx)("div",{id:"navbar-groundup-tag",children:(0,r.jsxs)("span",{id:"",children:["GU ",null==c?void 0:c.userRole]})})]}),(0,r.jsxs)("div",{className:"navbar-groundups-items",children:[(0,r.jsx)("div",{className:"",style:{margin:"2px 0"},children:(0,r.jsxs)("div",{className:"items-flex",children:[(0,r.jsx)("img",{src:"/navbar/home.svg"}),(0,r.jsx)(i(),{href:"/dashboard/overview",children:(0,r.jsx)("p",{children:"Dashboard"})})]})}),(0,r.jsxs)("div",{className:"items-flex",children:[(0,r.jsx)("img",{src:"/navbar/profile.svg"}),(0,r.jsx)(i(),{href:"/dashboard/account/user",children:(0,r.jsx)("p",{children:"Profile"})})]}),(0,r.jsxs)("div",{className:"items-flex",children:[(0,r.jsx)("img",{src:"/navbar/settings.svg"}),(0,r.jsx)(i(),{href:"/dashboard/account/gu",children:(0,r.jsx)("p",{children:"Account Settings"})})]}),(0,r.jsx)("hr",{}),(0,r.jsxs)("div",{id:"navbar-groundups-list",className:"",children:[(0,r.jsxs)("div",{className:"",children:[(0,r.jsxs)("div",{className:"items-flex",children:[(0,r.jsx)(i(),{href:"/dashboard/groundup?guId=".concat(null==c?void 0:c.orgId),style:{display:"contents"},children:(0,r.jsx)("p",{children:null==c?void 0:c.organisationName})}),(0,r.jsx)("img",{src:"/navbar/Navbar_Check.svg"})]}),(0,r.jsx)("small",{style:{paddingInline:"1rem"},children:null==c?void 0:c.userRole})]}),(0,r.jsx)(i(),{href:"/dashboard/account/gu",children:(0,r.jsxs)("div",{className:"items-flex",children:[(0,r.jsx)("img",{src:"/navbar/add.svg"}),(0,r.jsx)("p",{children:"Switch Groundup"})]})})]}),(0,r.jsx)("hr",{}),(0,r.jsxs)("div",{className:"items-flex",style:{margin:"2px 0"},type:"button",children:[(0,r.jsx)("img",{src:"/navbar/logout.svg"}),(0,r.jsx)("p",{onClick:()=>d(),children:"Log Out"})]})]})]})})}},8363:(e,s,a)=>{a.d(s,{T:()=>c});var r=a(37876),l=a(14232),n=a(48230),i=a.n(n),t=a(39853),d=a(9408);let c=e=>{let{user:s,role:a,logout:n}=e,[c]=(0,l.useContext)(t.R);return(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{id:"navbar-partner",children:[(0,r.jsxs)("div",{className:"tag",children:[(0,r.jsxs)("p",{className:"boldText text-capitalize",children:[null==s?void 0:s.firstName," ",null==s?void 0:s.lastName]}),(0,r.jsx)("p",{className:"px-4",children:null==s?void 0:s.email}),(0,r.jsx)("div",{id:"navbar-partner-tag",children:(0,r.jsxs)("span",{id:"",children:[(0,d.ut)(a)," ",null==c?void 0:c.userRole]})})]}),(0,r.jsxs)("div",{className:"navbar-partner-items",children:[(0,r.jsxs)("div",{className:"items-flex",children:[(0,r.jsx)("img",{src:"/navbar/profile.svg"}),(0,r.jsx)(i(),{href:"/dashboard/partner?partnerId=".concat(null==c?void 0:c.orgDocumentId),children:(0,r.jsx)("p",{children:"Profile"})})]}),(0,r.jsxs)("div",{className:"items-flex",children:[(0,r.jsx)("img",{src:"/navbar/settings.svg"}),(0,r.jsx)(i(),{href:"/dashboard/account/settings",children:(0,r.jsx)("p",{children:"Account Settings"})})]}),(0,r.jsx)("hr",{}),(0,r.jsxs)("div",{className:"items-flex",style:{margin:"2px 0"},type:"button",children:[(0,r.jsx)("img",{src:"/navbar/logout.svg"}),(0,r.jsx)("p",{onClick:()=>n(),children:"Log Out"})]})]})]})})}},13213:(e,s,a)=>{a.d(s,{z:()=>N});var r=a(37876),l=a(48230),n=a.n(l),i=a(14232),t=a(75910),d=a(94246),c=a(39853),o=a(9408),h=a(71864),p=a(89352),m=a(47049),v=a(5568),x=a(8363),u=a(93227),g=a(89099),b=a(54587),j=a.n(b);let N=()=>{var e,s,a,l,b,N;let f=(0,g.useRouter)(),[w,y]=(0,i.useContext)(d.c),[_,T]=(0,i.useContext)(c.R),{data:k}=(0,p.G)("navProgs","/programmes/programme",null,"navProgs",!1),C=async()=>{await (0,h.A)({method:"post",url:"/auth/logout",config:{authenticated:!0}}).then(e=>{T({type:"REMOVE_ORG_VIEW"}),y({type:"LOGOUT"}),f.replace("/")}
1).catch(e=>{console.log("logout error -> ",e),T({type:"REMOVE_ORG_VIEW"}),y({type:"LOGOUT"}),f.replace("/")})};return(0,r.jsx)("nav",{className:"navbar bg-body-tertiary fixed-top",style:{backgroundColor:"#fff"},children:(0,r.jsxs)("div",{className:"container-fluid",children:[(0,r.jsx)("button",{className:"navbar-toggler",type:"button","data-bs-toggle":"offcanvas","data-bs-target":"#offcanvasNavbar","aria-controls":"offcanvasNavbar","aria-label":"Toggle navigation",children:(0,r.jsx)("span",{className:"navbar-toggler-icon"})}),(null==w?void 0:w.user)?(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{id:"nvpc-profile-wrapper-mobile",children:[(0,r.jsx)("div",{className:"userIcon ".concat(null==w||null==(e=w.role)?void 0:e.type),children:(0,r.jsx)("p",{className:"user-initials",children:(0,o.bg)(null==w||null==(s=w.user)?void 0:s.firstName,null==w||null==(a=w.user)?void 0:a.lastName)})}),(0,r.jsxs)("div",{id:"nvpc-profile-name-mobile",children:[(0,r.jsxs)("p",{className:"boldText text-wrap text-capitalize",style:{width:"12rem"},children:[null==w||null==(l=w.user)?void 0:l.firstName," ",null==w||null==(b=w.user)?void 0:b.lastName," "]}),_&&(0,r.jsx)("p",{children:null==_?void 0:_.organisationName})]}),(0,r.jsx)("div",{className:"dropdown-menu navbar-dropdown collapse","aria-labelledby":"profile-dropdown",id:"profile-dropdown",children:w&&((e,s)=>{switch(s){case"groundup":return(0,r.jsx)(v.h,{user:e,groundups:null==e?void 0:e.organisations,role:s,logout:C});case"authenticated":default:return(0,r.jsx)(m.v,{user:e,role:s,logout:C});case"partner":return(0,r.jsx)(x.T,{user:e,role:s,logout:C});case"funder":return(0,r.jsx)(u.V,{user:e,role:s,logout:C})}})(null==w?void 0:w.user,null==w||null==(N=w.role)?void 0:N.type)})]})}):(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{id:"navLogins",children:[(0,r.jsx)("div",{className:"px-2",children:(0,r.jsx)(n(),{href:"/auth/login",children:(0,r.jsx)("span",{className:"loginBtn",type:"button",children:"Log In"})})}),(0,r.jsx)("div",{className:"px-2",children:(0,r.jsx)(n(),{href:"/be-a-member",children:(0,r.jsx)("button",{className:"btn signUpBtn",type:"button",children:"Sign Up"})})})]})}),(0,r.jsxs)("div",{className:"offcanvas offcanvas-start",tabIndex:"-1",id:"offcanvasNavbar","aria-labelledby":"offcanvasNavbarLabel",children:[(0,r.jsxs)("div",{className:"offcanvas-header",children:[(0,r.jsx)("a",{href:"/",className:"navbar-brand",children:(0,r.jsx)(t.G,{})}),(0,r.jsx)("button",{type:"button",className:"btn-close","data-bs-dismiss":"offcanvas","aria-label":"Close"})]}),(0,r.jsx)("div",{className:"offcanvas-body",children:(0,r.jsxs)("ul",{className:"navbar-nav justify-content-end flex-grow-1 pe-3",children:[(0,r.jsx)("li",{className:"nav-item pb-3",children:(0,r.jsx)("a",{className:"nav-link boldText","aria-current":"page",href:"/about",children:"About Us"})}),(0,r.jsx)("li",{className:"nav-item pb-3",children:(0,r.jsx)("a",{className:"nav-link boldText",href:"/collaborate",children:"Collaborate"})}),(0,r.jsxs)("li",{className:"nav-item dropdown pb-3",children:[(0,r.jsxs)("a",{className:"nav-link dropdown-toggle boldText d-flex justify-content-between",href:"#",role:"button","data-bs-toggle":"dropdown","aria-expanded":"false",children:["Learn",(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",className:"bi bi-chevron-compact-down",viewBox:"0 0 16 16",children:(0,r.jsx)("path",{fillRule:"evenodd",d:"M1.553 6.776a.5.5 0 0 1 .67-.223L8 9.44l5.776-2.888a.5.5 0 1 1 .448.894l-6 3a.5.5 0 0 1-.448 0l-6-3a.5.5 0 0 1-.223-.67"})})]}),(0,r.jsxs)("ul",{className:"dropdown-menu",children:[(0,r.jsx)("a",{className:"",href:"/articles",children:(0,r.jsxs)("li",{className:"d-flex align-items-center dropdown-item gap-2 py-3",children:[(0,r.jsx)(j(),{src:"/navbar/Navbar_Articles.svg",width:25,height:25,alt:"Navbar_Articles"}),"Articles"]})}),(0,r.jsx)("a",{className:"",href:"/faq",children:(0,r.jsxs)("li",{className:"d-flex align-items-center dropdown-item gap-2 py-3",children:[(0,r.jsx)(j(),{src:"/navbar/Navbar_FAQ.svg",width:25,height:25,alt:"Navbar_FAQ"}),"FAQs"]})})]})]}),(0,r.jsxs)("li",{className:"nav-item dropdown pb-3",children:[(0,r.jsxs)("a",{className:"nav-link dropdown-toggle boldText d-flex justify-content-between",href:"#",role:"button","data-bs-toggle":"dropdown","aria-expanded":"false",children:["Resources",(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",className:"bi bi-chevron-compact-down",viewBox:"0 0 16 16",children:(0,r.jsx)("path",{fillRule:"evenodd",d:"M1.553 6.776a.5.5 0 0 1 .67-.223L8 9.44l5.776-2.888a.5.5 0 1 1 .448.894l-6 3a.5.5 0 0 1-.448 0l-6-3a.5.5 0 0 1-.223-.67"})})]}),(0,r.jsxs)("ul",{className:"dropdown-menu",children:[(0,r.jsx)("a",{className:"",href:"/resources/grants",children:(0,r.jsxs)("li",{className:"d-flex align-items-center dropdown-item gap-2 py-3",children:[(0,r.jsx)(j(),{src:"/navbar/Navbar_Grants.svg",width:25,height:25,alt:"Navbar_Grants"}),"Grants"]})}),(0,r.jsx)("a",{className:"",href:"/resources/spaces",children:(0,r.jsxs)("li",{className:"d-flex align-items-center dropdown-item gap-2 py-3",children:[(0,r.jsx)(j(),{src:"/navbar/Navbar_Spaces.svg",width:25,height:25,alt:"Navbar_Spaces"}),"Spaces"]}
1)}),(0,r.jsx)("a",{className:"",href:"/resources/publicity",children:(0,r.jsxs)("li",{className:"d-flex align-items-center dropdown-item gap-2 py-3",children:[(0,r.jsx)(j(),{src:"/navbar/Navbar_Publicity.svg",width:25,height:25,alt:"Navbar_Publicity"}),"Publicity"]})}),(0,r.jsx)("a",{className:"",href:"/resources/services",children:(0,r.jsxs)("li",{className:"d-flex align-items-center dropdown-item gap-2 py-3",children:[(0,r.jsx)(j(),{src:"/navbar/Navbar_Services.svg",width:25,height:25,alt:"Navbar_Services"}),"Services"]})}),(0,r.jsx)("a",{className:"",href:"/resources/volunteers",children:(0,r.jsxs)("li",{className:"d-flex align-items-center dropdown-item gap-2 py-3",children:[(0,r.jsx)(j(),{src:"/navbar/Navbar_Volunteer.svg",width:25,height:25,alt:"Navbar_Volunteer"}),"Volunteers"]})}),(0,r.jsx)("a",{className:"",href:"/resources/productivity",children:(0,r.jsxs)("li",{className:"d-flex align-items-center dropdown-item gap-2 py-3",children:[(0,r.jsx)(j(),{src:"/navbar/Navbar_Productivity.svg",width:25,height:25,alt:"Navbar_Productivity"}),"Productivity"]})}),(0,r.jsx)("a",{className:"",href:"/resources/templates",children:(0,r.jsxs)("li",{className:"d-flex align-items-center dropdown-item gap-2 py-3",children:[(0,r.jsx)(j(),{src:"/navbar/Navbar_Templates.svg",width:25,height:25,alt:"Navbar_Templates"}),"Templates"]})})]})]}),(0,r.jsxs)("li",{className:"nav-item dropdown pb-3",children:[(0,r.jsxs)("a",{className:"nav-link dropdown-toggle boldText d-flex justify-content-between",href:"#",role:"button","data-bs-toggle":"dropdown","aria-expanded":"false",children:["Programmes",(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",className:"bi bi-chevron-compact-down",viewBox:"0 0 16 16",children:(0,r.jsx)("path",{fillRule:"evenodd",d:"M1.553 6.776a.5.5 0 0 1 .67-.223L8 9.44l5.776-2.888a.5.5 0 1 1 .448.894l-6 3a.5.5 0 0 1-.448 0l-6-3a.5.5 0 0 1-.223-.67"})})]}),(0,r.jsx)("ul",{className:"dropdown-menu",children:(null==k?void 0:k.data)&&k.data.map(e=>(0,r.jsx)("li",{className:"",children:(0,r.jsx)("a",{className:"dropdown-item py-3",href:e.isLinkExternal?"".concat(e.externalLinkUrl):"/programmes/".concat(e.slug),children:e.title})},e.id))})]}),(0,r.jsx)("li",{className:"nav-item",children:(0,r.jsx)("a",{href:"/insights",className:"nav-link boldText",children:"Insights"})})]})})]})]})})}},47049:(e,s,a)=>{a.d(s,{v:()=>t});var r=a(37876),l=a(48230),n=a.n(l),i=a(9408);let t=e=>{let{user:s,role:a,logout:l}=e;return(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{id:"navbar-member",children:[(0,r.jsxs)("div",{className:"tag",children:[(0,r.jsxs)("p",{className:"boldText text-capitalize",children:[null==s?void 0:s.firstName," ",null==s?void 0:s.lastName]}),(0,r.jsx)("div",{children:(0,r.jsx)("p",{className:"px-4",children:null==s?void 0:s.email})}),(0,r.jsx)("div",{id:"navbar-member-tag",children:(0,r.jsx)("span",{id:"",children:(0,i.ut)(a)})})]}),(0,r.jsxs)("div",{className:"navbar-member-items",children:[(0,r.jsxs)("div",{className:"items-flex pt-2",children:[(0,r.jsx)("img",{src:"/navbar/home.svg"}),(0,r.jsx)(n(),{href:"/dashboard/overview",children:(0,r.jsx)("p",{children:"Dashboard"})})]}),(0,r.jsxs)("div",{className:"items-flex",children:[(0,r.jsx)("img",{src:"/navbar/profile.svg"}),(0,r.jsx)(n(),{href:"/dashboard/account/user",children:(0,r.jsx)("p",{children:"Profile"})})]}),(0,r.jsxs)("div",{className:"items-flex",children:[(0,r.jsx)("img",{src:"/navbar/settings.svg"}),(0,r.jsx)(n(),{href:"/dashboard/account/settings",children:(0,r.jsx)("p",{children:"Account Settings"})})]}),(0,r.jsx)("hr",{}),(0,r.jsx)("div",{className:"items-flex",children:(0,r.jsxs)(n(),{href:"/dashboard/account/member",style:{display:"contents"},children:[(0,r.jsx)("img",{src:"/navbar/add.svg"}),(0,r.jsx)("p",{children:"Link to Groundup/Partner"})]})}),(0,r.jsx)("hr",{}),(0,r.jsxs)("div",{className:"items-flex",style:{margin:"2px 0"},type:"button",children:[(0,r.jsx)("img",{src:"/navbar/logout.svg"}),(0,r.jsx)("p",{onClick:()=>l(),children:"Log Out"})]})]})]})})}},71864:(e,s,a)=>{a.d(s,{A:()=>t});var r=a(91040);let l=new(a(5130)).A;r.A.create({baseURL:"https://uwp-admin.nvpc.org.sg/api/bagus",headers:{"Content-Type":"application/json"}});let n=r.A.create({baseURL:"https://uwp-admin.nvpc.org.sg/api/bagus",headers:{"Content-Type":"application/json",Authorization:l.get("accessToken")}});n.interceptors.request.use(async e=>(e.config.authenticated&&(e.headers.Authorization="Bearer ".concat(l.get("accessToken"))),e),e=>(console.log("error ---\x3e ",e),Promise.reject(e))),n.interceptors.response.use(e=>e,async e=>{let s=e.config;if(401===e.response.status&&!s._retry){s._retry=!0;let a=l.get("refreshToken");try{let{data:e}=await (0,r.A)({method:"post",url:"".concat("https://uwp-admin.nvpc.org.sg/api/bagus","/auth/refresh"),data:{refreshToken:a},headers:{Authorization:"bearer ".concat(a)}});(l.get("accessToken")||l.get("refreshToken"))&&(l.remove("accessToken",{path:"/",domain:"bagustogether.sg"}),l.remove("refreshToken",{path:"/",domain:"bagustogether.sg"})),l.set("accessToken",e.jwt,{path:"/",domain:"bagustogether.sg",sameSite:!0,httpOnly:!1}),l.set("refreshToken",e.refreshToken,{path:"/",domain:"bagustogether.sg",sameSite:!0,httpOnly:!1});let n=e.jwt;return a=e.refreshToken,s.headers.Authorization="Bearer ".concat(n),i(s)}catch(s){return Promise.reject(e.response.data)}}return 401!==e.response.status?Promise.reject(e.response.data):Promise.reject(e)});let i=n,t=i},75910:(e,s,a)=>{a.d(s,{G:()=>l});var r=a(37876);a(54587);let l=()=>(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("div",{className:"navbar-logo"})})},81147:(e,s,a)=>{a.d(s,{F:()=>y});var r=a(37876),l=a(14232),n=a(48230),i=a.n(n),t=a(54587),d=a.n(t),
1c=a(89099),o=a(94246),h=a(39853),p=a(42252),m=a(71864),v=a(9408),x=a(5130),u=a(75910),g=a(47049),b=a(5568),j=a(8363),N=a(93227),f=a(89352);let w=new x.A,y=e=>{var s,a,n,t,x,y;let _=(0,c.useRouter)(),[T,k]=(0,l.useContext)(o.c),[C,A]=(0,l.useContext)(h.R),R=(0,l.useRef)(null),S=(0,l.useRef)(null),{data:E}=(0,f.G)("navProgs","/programmes/programme",null,"navProgs",!1),[P,O]=(0,l.useState)(""),[I,L]=(0,l.useState)("");(0,l.useEffect)(()=>{_.isReady&&_.pathname&&(L(_.pathname.split("/")[1]),("faq"==_.pathname.split("/")[1]||"articles"==_.pathname.split("/")[1])&&L("learn"))},[]);let{data:G}=(0,p.I)({queryKey:["user"],queryFn:async()=>{let{data:e}=await (0,m.A)("/users/me",{config:{authenticated:!0}});return e},enabled:!!w.get("accessToken"),refetchOnWindowFocus:!1,retry:2,onSuccess:e=>{k({type:"SET_USER",payload:{...e}}),e.organisations.length>0?F(e.user.id,e.role,e.organisations):A({type:"REMOVE_ORG_VIEW"})},onError:e=>{var s;switch(null==e||null==(s=e.error)?void 0:s.status){case 401:k({type:"LOGOUT"}),_.pathname.includes("dashboard")&&_.replace({pathname:"/auth/login",query:{returnUrl:encodeURIComponent(_.asPath)}});break;case 403:console.log("403 error");break;default:console.log("navbar err: ",e)}}}),V=async()=>{await (0,m.A)({method:"post",url:"/auth/logout",config:{authenticated:!0}}).then(e=>{A({type:"REMOVE_ORG_VIEW"}),k({type:"LOGOUT"}),_.replace("/")}).catch(e=>{console.log("logout error -> ",e),A({type:"REMOVE_ORG_VIEW"}),k({type:"LOGOUT"}),_.replace("/")})},F=(e,s,a)=>{var r,l,n,i,t;let d=a.filter(e=>{var s;return(null==(s=e.orgRoleAssignment)?void 0:s.record_status)=="Approved"}),c=w.get("orgView"),o={userId:e,isAssessmentAvailable:!!(null==(r=d[0])?void 0:r.lifeCycleState),orgId:null==(l=d[0])?void 0:l.id,orgDocumentId:null==(n=d[0])?void 0:n.documentId,organisationName:null==(i=d[0])?void 0:i.organisationName,userRole:null==(t=d[0])?void 0:t.orgRoleAssignment.organisationRole.name,orgType:s.type};if(d.length>0&&c)if(d.some(e=>e.id===c.orgId)){let e=d.filter(e=>e.id===c.orgId);A({type:"SET_VIEW_TYPE",payload:{...c,type:e[0].orgRoleAssignment.organisationRole.name,isAssessmentAvailable:!!e[0].lifeCycleState,userRole:e[0].orgRoleAssignment.organisationRole.name}})}else A({type:"SET_VIEW_TYPE",payload:{...o}});else d.length>0&&!c?A({type:"SET_VIEW_TYPE",payload:{...o}}):A({type:"REMOVE_ORG_VIEW"})},U=()=>{R.current.classList.contains("show")&&R.current.setAttribute("class","collapse navbar-collapse justify-content-end")};return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("div",{className:"navbar-wrapper",children:(0,r.jsx)("nav",{className:"navbar navbar-expand-lg navbar-light bg-light ",id:"bagus-navbar",children:(0,r.jsxs)("div",{className:"container nv",children:[(0,r.jsx)(i(),{href:"/",onClick:()=>{L("")},children:(0,r.jsx)(u.G,{})}),(0,r.jsx)("button",{className:"navbar-toggler",ref:S,type:"button","data-bs-toggle":"collapse","data-bs-target":"#navbarSupportedContent","aria-controls":"navbarSupportedContent","aria-expanded":"false","aria-label":"Toggle navigation",children:(0,r.jsx)("span",{className:"navbar-toggler-icon"})}),(0,r.jsxs)("div",{className:"collapse navbar-collapse justify-content-between",id:"navbarSupportedContent",ref:R,children:[(0,r.jsx)("div",{id:"navbar-tabs",children:(0,r.jsxs)("ul",{className:"navbar-nav me-auto mb-2 mb-lg-0",id:"navbar-menu",children:[(0,r.jsxs)("li",{className:"nav-item ".concat("about"==I?"active":""),children:[" ",(0,r.jsx)(i(),{href:"/about",onClick:()=>{L("about")},children:"About Us"})]}),(0,r.jsx)("li",{className:"nav-item ".concat("collaborate"==I?"active":""),children:(0,r.jsx)("div",{className:"nav-item-wrapper",children:(0,r.jsx)(i(),{href:"/collaborate",onClick:()=>{L("collaborate")},children:"Collaborate"})})}),(0,r.jsxs)("li",{className:"nav-item custom-dropdown ".concat("learn"==I?"active":""),children:[(0,r.jsxs)("div",{className:"nav-item-wrapper",children:[(0,r.jsxs)("div",{children:["Learn"," ",(0,r.jsx)("span",{className:"caret-down",style:{visibility:"hidden"},children:(0,r.jsx)("i",{className:"bi bi-chevron-down",style:{fontSize:"12px"}})})]}),(0,r.jsxs)("button",{className:"btn btn-dropdown collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#learn-dropdown","aria-expanded":"false","aria-controls":"learn-dropdown",children:[(0,r.jsx)("span",{className:"visually-hidden",children:"Toggle Dropdown"}),(0,r.jsx)("i",{className:"bi bi-chevron-compact-down"})]})]}),(0,r.jsxs)("ul",{className:"dropdown-menu navbar-dropdown collapse","aria-labelledby":"learn-dropdown",id:"learn-dropdown",children:[(0,r.jsx)("li",{children:(0,r.jsxs)(i(),{href:"/articles",className:"dropdown-item",onClick:()=>{L("learn")},children:[(0,r.jsx)("span",{className:"pe-2",children:(0,r.jsx)(d(),{src:"/navbar/Navbar_Articles.svg",width:25,height:25,alt:"Navbar_Articles"})}),"Articles"]})}),(0,r.jsx)("li",{children:(0,r.jsxs)(i(),{href:"/faq",className:"dropdown-item",onClick:()=>{L("learn")},children:[(0,r.jsx)("span",{className:"pe-2",children:(0,r.jsx)(d(),{src:"/navbar/Navbar_FAQ.svg",width:25,height:25,alt:"Navbar_FAQ"})}),"FAQs"]})})]})]}),(0,r.jsxs)("li",{className:"nav-item custom-dropdown ".concat("resources"==I?"active":""),children:[(0,r.jsxs)("div",{className:"nav-item-wrapper",children:[(0,r.jsxs)("div",{children:["Resources"," ",(0,r.jsx)("span",{className:"caret-down",style:{visibility:"hidden"},children:(0,r.jsx)("i",{className:"bi bi-chevron-down",style:{fontSize:"12px"}})})]}),(0,r.jsxs)("button",{className:"btn btn-dropdown collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#resources-dropdown","aria-expanded":"false","aria-controls":"resources-dropdown",children:[(0,r.jsx)("span",{className:"visually-hidden",children:"Toggle Dropdown"}),(0,r.jsx)("i",{className:"bi bi-chevron-compact-down"})]})]}),(0,r.jsxs)("ul",{className:"dropdown-menu navbar-dropdown collapse","aria-labelledby":"resources-dropdown",id:"resources-dropdown",children:[(0,r.jsx)("li",{children:(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)(i(),{href:"/resources/grants",className:"dropdown-item pb-3",onClick:()=>{L("resources"),U()},children:[(0,r.jsx)("span",{className:"pe-2",children:(0,r.jsx)(d(),{src:"/navbar/Navbar_Grants.svg",width:25,height:25,alt:"Navbar_Grants"})}),"Grants"]})})}),(0,r.jsx)("li",{children:(0,r.jsxs)(i(),{href:"/resources/spaces",className:"dropdown-item pb-3",onClick:()=>{L("resources"),U()},children:[(0,r.jsx)("span",{className:"pe-2",children:(0,r.jsx)(d(),{src:"/navbar/Navbar_Spaces.svg",width:25,height:25,alt:"Navbar_Spaces"})}),"Spaces"]}
1)}),(0,r.jsx)("li",{children:(0,r.jsxs)(i(),{href:"/resources/publicity",className:"dropdown-item pb-3",onClick:()=>{L("resources"),U()},children:[(0,r.jsx)("span",{className:"pe-2",children:(0,r.jsx)(d(),{src:"/navbar/Navbar_Publicity.svg",width:25,height:25,alt:"Navbar_Publicity"})}),"Publicity"]})}),(0,r.jsx)("li",{children:(0,r.jsxs)(i(),{href:"/resources/services",className:"dropdown-item pb-3",onClick:()=>{L("resources"),U()},children:[(0,r.jsx)("span",{className:"pe-2",children:(0,r.jsx)(d(),{src:"/navbar/Navbar_Services.svg",width:25,height:25,alt:"Navbar_Services"})}),"Services"]})}),(0,r.jsx)("li",{children:(0,r.jsxs)(i(),{href:"/resources/volunteers",className:"dropdown-item pb-3",onClick:()=>{L("resources"),U()},children:[(0,r.jsx)("span",{className:"pe-2",children:(0,r.jsx)(d(),{src:"/navbar/Navbar_Volunteer.svg",width:25,height:25,alt:"Navbar_Volunteer"})}),"Volunteers"]})}),(0,r.jsx)("li",{children:(0,r.jsxs)(i(),{href:"/resources/productivity",className:"dropdown-item pb-3",onClick:()=>{L("resources"),U()},children:[(0,r.jsx)("span",{className:"pe-2",children:(0,r.jsx)(d(),{src:"/navbar/Navbar_Productivity.svg",width:25,height:25,alt:"Navbar_Productivity"})}),"Productivity"]})}),(0,r.jsx)("li",{children:(0,r.jsxs)(i(),{href:"/resources/templates",className:"dropdown-item pb-3",onClick:()=>{L("resources"),U()},children:[(0,r.jsx)("span",{className:"pe-2",children:(0,r.jsx)(d(),{src:"/navbar/Navbar_Templates.svg",width:25,height:25,alt:"Navbar_Templates"})}),"Templates"]})})]})]}),(0,r.jsxs)("li",{className:"nav-item custom-dropdown ".concat("programmes"==I?"active":""),children:[" ",(0,r.jsxs)("div",{className:"nav-item-wrapper",children:[(0,r.jsx)("div",{children:(0,r.jsxs)(i(),{href:"/programmes",onClick:()=>{L("programmes")},children:["Programmes",(0,r.jsx)("span",{className:"caret-down ps-1",style:{visibility:"hidden"},children:(0,r.jsx)("i",{className:"bi bi-chevron-down",style:{fontSize:"12px"}})})]})}),(0,r.jsxs)("button",{className:"btn btn-dropdown collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#programmes-dropdown","aria-expanded":"false","aria-controls":"programmes-dropdown",children:[(0,r.jsx)("span",{className:"visually-hidden",children:"Toggle Dropdown"}),(0,r.jsx)("i",{className:"bi bi-chevron-compact-down"})]})]}),(null==E?void 0:E.data)&&(0,r.jsx)("ul",{className:"dropdown-menu navbar-dropdown collapse","aria-labelledby":"programmes-dropdown",id:"programmes-dropdown",children:null==E?void 0:E.data.map((e,s)=>(0,r.jsx)("li",{children:(0,r.jsx)(i(),{href:e.isLinkExternal?"".concat(e.externalLinkUrl):"/programmes/".concat(e.slug),className:"dropdown-item",onClick:()=>{L("programmes")},children:e.title})},s))})]}),(0,r.jsxs)("li",{className:"nav-item ".concat("insights"==I?"active":""),children:[" ",(0,r.jsx)(i(),{href:"/insights",onClick:()=>{L("insights")},children:"Insights"})]})]})}),(0,r.jsx)("div",{children:(null==T?void 0:T.user)?(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{className:"navProfile custom-dropdown",children:[(0,r.jsxs)("div",{id:"navProfile-wrapper",children:[(0,r.jsx)("div",{className:"userIcon \n ".concat(null==T||null==(s=T.role)?void 0:s.type," \n dropdown-toggle custom-dropdown"),"data-bs-toggle":"collapse","data-bs-display":"static","aria-expanded":"false",children:(0,r.jsx)("p",{className:"user-initials",children:(0,v.bg)(null==T||null==(a=T.user)?void 0:a.firstName,null==T||null==(n=T.user)?void 0:n.lastName)})}),(0,r.jsxs)("div",{id:"navbar-profile-name",children:[(0,r.jsxs)("p",{className:"boldText text-wrap text-capitalize",style:{minWidth:"8rem"},children:[null==T||null==(t=T.user)?void 0:t.firstName," ",null==T||null==(x=T.user)?void 0:x.lastName," "]}),C&&(0,r.jsx)("p",{children:null==C?void 0:C.organisationName})]}),(0,r.jsxs)("button",{className:"btn btn-dropdown collapsed",type:"button","data-bs-toggle":"collapse","data-bs-target":"#profile-dropdown","aria-expanded":"false","aria-controls":"profile-dropdown",children:[(0,r.jsx)("span",{className:"visually-hidden",children:"Toggle Dropdown"}),(0,r.jsx)("i",{className:"bi bi-chevron-compact-down"})]})]}),(0,r.jsx)("div",{className:" ",children:(0,r.jsx)("div",{className:"dropdown-menu navbar-dropdown collapse","aria-labelledby":"profile-dropdown",id:"profile-dropdown",children:G&&((e,s)=>{switch(s){case"groundup":return(0,r.jsx)(b.h,{user:e,groundups:null==e?void 0:e.organisations,role:s,logout:V});case"authenticated":default:return(0,r.jsx)(g.v,{user:e,role:s,logout:V});case"partner":return(0,r.jsx)(j.T,{user:e,role:s,logout:V});case"funder":return(0,r.jsx)(N.V,{user:e,role:s,logout:V})}})(null==G?void 0:G.user,null==G||null==(y=G.role)?void 0:y.type)})})]})}):(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{id:"navLogins",children:[(0,r.jsx)("div",{className:"px-2",children:(0,r.jsx)("span",{className:"loginBtn",type:"button",onClick:()=>{_.push({pathname:"/auth/login"}),L("")},children:"Log In"})}),(0,r.jsx)("div",{className:"px-2",children:(0,r.jsx)("button",{className:"btn signUpBtn",type:"button",onClick:()=>{L(""),_.push("/be-a-member")},children:"Sign Up"})})]})})})]})]})})})})}},89352:(e,s,a)=>{a.d(s,{G:()=>n});var r=a(71864),l=a(42252);let n=(e,s,a,n,i)=>{let t=s;return a&&(t=s+a),(0,l.I)({queryKey:[n],queryFn:async()=>{let{data:e}=await (0,r.A)(t,{config:{authenticated:i}});return e},enabled:!!e,refetchOnWindowFocus:!1,retry:!1})}},93227:(e,s,a)=>{a.d(s,{V:()=>t});var r=a(37876),l=a(48230),n=a.n(l),i=a(9408);let t=e=>{let{user:s,role:a,logout:l}=e;return(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{id:"navbar-funder",children:[(0,r.jsxs)("div",{className:"tag",children:[(0,r.jsxs)("p",{className:"boldText text-capitalize",children:[null==s?void 0:s.firstName," ",null==s?void 0:s.lastName]}),(0,r.jsx)("p",{className:"px-4",children:null==s?void 0:s.email}),(0,r.jsx)("div",{id:"navbar-funder-tag",children:(0,r.jsx)("span",{id:"",children:(0,i.ut)(a)})})]}),(0,r.jsxs)("div",{className:"navbar-funder-items",children:[(0,r.jsxs)("div",{className:"items-flex pt-2",children:[(0,r.jsx)("img",{src:"/navbar/home.svg"}),(0,r.jsx)(n(),{href:"/dashboard/funder",children:(0,r.jsx)("p",{children:"Dashboard"})})]}),(0,r.jsxs)("div",{className:"items-flex",children:[(0,r.jsx)("img",{src:"/navbar/profile.svg"}),(0,r.jsx)(n(),{href:"/dashboard/account/user",children:(0,r.jsx)("p",{children:"Profile"})})]}),(0,r.jsxs)("div",{className:"items-flex",children:[(0,r.jsx)("img",{src:"/navbar/settings.svg"}),(0,r.jsx)(n(),{href:"/dashboard/account/settings",children:(0,r.jsx)("p",{children:"Account Settings"})})]}),(0,r.jsx)("hr",{}),(0,r.jsxs)("div",{className:"items-flex",style:{margin:"2px 0"},type:"button",children:[(0,r.jsx)("img",{src:"/navbar/logout.svg"}),(0,r.jsx)("p",{onClick:()=>l(),children:"Log Out"})]})]})]})})}}}]);
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.