1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[681],{54704:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/projects/researchers/[id]/projects",function(){return n(14416)}])},38549:function(e,t,n){"use strict";n.d(t,{Z:function(){return Box}});var s=n(85893),r=n(76451),o=n.n(r);function Box(e){let{children:t,flex:n,flow:r,place:a,width:i,gap:c,className:l="",...d}=e;return(0,s.jsx)("div",{className:"Box ".concat(o().box," ").concat(l),style:{...i&&{width:i},...r&&{display:"flex"},...n&&{flex:n},...r&&{flexFlow:r},...a&&{placeContent:a},...a&&{placeItems:a},...c&&{gap:c}},...d,children:t})}},54342:function(e,t,n){"use strict";n.d(t,{Z:function(){return Links}});var s=n(85893),r=n(67294),o=n(39332);function Links(e){let{children:t,className:n}=e,a=(0,o.usePathname)(),i=(0,r.useRef)(null);return(0,r.useEffect)(function(){var e,t;let n=null===(e=i.current)||void 0===e?void 0:e.querySelector("a.selected");n&&n.classList.remove("selected");let s=a.split("/");for(let e=s.length;e>1;e--){let n=s.slice(0,e).join("/"),r=null===(t=i.current)||void 0===t?void 0:t.querySelector("a[href='".concat(n,"']"));if(r){r.classList.add("selected");break}}},[a,t]),(0,s.jsx)("div",{ref:i,className:n,children:t})}},80061:function(e,t,n){"use strict";n.d(t,{Z:function(){return ProjectsSidebarContent}});var s=n(85893),r=n(21998),o=n.n(r),a=n(67294);function Sidebar(e){let{children:t}=e;return(0,s.jsx)("div",{className:"Sidebar ".concat(o().sidebar),children:(0,s.jsx)("div",{className:o().container,children:t})})}var i=n(54342),c=n(39332),l=n(41664),d=n.n(l);let ActiveLink=e=>{let{children:t,href:n,className:r,onClick:o,...i}
1=e,l=(0,c.usePathname)(),[u,h]=(0,a.useState)(!1);(0,a.useEffect)(()=>{let e=new URL(n,location.href).pathname;h(e===l)},[l,n]);let p=(0,a.useCallback)(e=>u?(e.preventDefault(),!1):o?o(e):void 0,[u,o]);return(0,s.jsx)(d(),{...i,className:r,href:n,onClick:p,children:t})};var u=n(93288),h=n(11163),p=n(9473),f=n(94661);function ProjectsSidebarContent(){var e,t,r,c,l,d,j,g,v,C;let b=(0,p.v9)(e=>null==e?void 0:e.passUser),[m,x]=(0,a.useState)((null===(t=n.g)||void 0===t?void 0:null===(e=t.window)||void 0===e?void 0:e.localStorage.getItem("/projects[list.total]"))||"~"),[L,y]=(0,a.useState)((null===(c=n.g)||void 0===c?void 0:null===(r=c.window)||void 0===r?void 0:r.localStorage.getItem("/account/datasets[list.total]"))||"~"),[E,_]=(0,a.useState)((null===(d=n.g)||void 0===d?void 0:null===(l=d.window)||void 0===l?void 0:l.localStorage.getItem("/projects/applications[list.total]"))||"~"),[P,S]=(0,a.useState)((null===(g=n.g)||void 0===g?void 0:null===(j=g.window)||void 0===j?void 0:j.localStorage.getItem("/projects/organisations[list.total]"))||"~"),[k,w]=(0,a.useState)((null===(C=n.g)||void 0===C?void 0:null===(v=C.window)||void 0===v?void 0:v.localStorage.getItem("/projects/users[list.total]"))||"~"),D=(0,h.useRouter)();async function fetchCount(e,t){(0,u.P)("ProjectsSidebarContent.fetchCount(endpoint,setter)",e,typeof t);let{status:n,json:s}=await f.Z.fetch(e);401==n&&D.push("/account/sign-in?redirectFrom=".concat(D.asPath),"/account/sign-in"),localStorage.setItem("".concat(e,"[list.total]"),(null==s?void 0:s.total)||"0"),t((null==s?void 0:s.total)||"0")}function handleApplicationsCountChange(){(0,u.P)("ProjectsSidebarContent.handleApplicationsCountChange()"),fetchCount("/projects/applications",_)}function handleDatasetsCountChange(){(0,u.P)("ProjectsSidebarContent.handleDatasetsCountChange()"),fetchCount("/account/datasets",y)}function handleUsersCountChange(){(0,u.P)("ProjectsSidebarContent.handleDatasetsCountChange()"),fetchCount("/projects/users",w)}function handleOrganisationsCountChange(){(0,u.P)("ProjectsSidebarContent.handleDatasetsCountChange()"),fetchCount("/projects/organisations",S)}return(0,a.useEffect)(function(){return(0,u.P)("ProjectsSidebarContent.useEffect([])"),fetchCount("/projects",x),fetchCount("/account/datasets",y),fetchCount("/projects/applications",_),fetchCount("/projects/users",w),fetchCount("/projects/organisations",S),document.body&&(document.body.addEventListener("applicationscountchange",handleApplicationsCountChange),document.body.addEventListener("datasetscountchange",handleDatasetsCountChange),document.body.addEventListener("userscountchange",handleDatasetsCountChange),document.body.addEventListener("organisationscountchange",handleDatasetsCountChange)),function(){document.body&&(document.body.removeEventListener("applicationscountchange",handleApplicationsCountChange),document.body.removeEventListener("datasetscountchange",handleDatasetsCountChange),document.body.removeEventListener("userscountchange",handleUsersCountChange),document.body.removeEventListener("organisationscountchange",handleOrganisationsCountChange))}},[]),(0,s.jsx)(Sidebar,{children:(0,s.jsxs)(i.Z,{className:o().sections,children:[(0,s.jsx)(ActiveLink,{href:"/projects/application",children:"Get Started"}),!["publisher","editor"].includes((null==b?void 0:b.role)||"user")&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(ActiveLink,{href:"/projects/datasets",children:["Data Basket",(0,s.jsx)("span",{suppressHydrationWarning:!0,children:L})]}),(0,s.jsxs)(ActiveLink,{href:"/projects/applications",children:["Applications",(0,s.jsx)("span",{suppressHydrationWarning:!0,children:E})]})]}),(0,s.jsxs)(ActiveLink,{href:"/projects",children:["Projects",(0,s.jsx)("span",{suppressHydrationWarning:!0,children:m})]}),["publisher","editor"].includes((null==b?void 0:b.role)||"user")&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(ActiveLink,{href:"/projects/researchers",children:["Researchers",(0,s.jsx)("span",{suppressHydrationWarning:!0,children:k})]}),(0,s.jsxs)(ActiveLink,{href:"/projects/organisations",children:["Organisations",(0,s.jsx)("span",{suppressHydrationWarning:!0,children:P})]})]})]})})}},44571:function(e,t,n){"use strict";n.d(t,{Z:function(){return Tabs}});var s=n(85893),r=n(79627),o=n.n(r);function Tabs(e){let{children:t,className:n=""}=e;return(0,s.jsx)("div",{className:"Tabs ".concat(o().tabs," ").concat(n),children:t})}},13615:function(e,t,n){"use strict";n.d(t,{Z:function(){return ResearcherLayout}});var s=n(85893),r=n(41664),o=n.n(r),a=n(51444),i=n(44571),c=n(54342),l=n(78139),d=n.n(l),u=n(9473);function ResearcherLayout(e){let{children:t,id:n,referer:r}=e,l=(0,u.v9)(e=>null==e?void 0:e.passUser);return(0,s.jsxs)(a.Z,{children:[(0,s.jsxs)(i.Z,{children:[(0,s.jsx)("div",{className:"backLinkWrapper ".concat(d().backLinkWrapper),children:(0,s.jsx)(o(),{href:r?"/projects/".concat(r,"/team"):["publisher","editor"].includes((null==l?void 0:l.role)||"user")?"/projects/researchers":"/projects",className:d().backLink,children:(0,s.jsx)("span",{children:"Back to ".concat(r?"Project":["publisher","editor"].includes((null==l?void 0:l.role)||"user")?"Researcher List":"Project List")})})}),(0,s.jsxs)(c.Z,{children:[(0,s.jsx)(o(),{href:"/projects/researchers/".concat(n),children:"Details"}),(0,s.jsx)(o(),{href:"/projects/researchers/".concat(n,"/projects"),children:"Projects"}),["publisher"].includes((null==l?void 0:l.role)||"user")&&(0,s.jsx)(o(),{href:"/projects/researchers/".concat(n,"/administration"),children:"Administration"})]})]}),t]})}},14416:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return u}});var s=n(85893),r=n(32465),o=n(11163),a=n(27144),i=n(38549),c=n(22091),l=n(13615),d=n(80061),u=!0;t.default=e=>{let{branding:t,SEOInfo:n}=e,u=(0,o.useRouter)(),{id:h}=u.query;return(0,s.jsx)(r.ao,{branding:t,SEOInfo:n,enforcePageConentIsVisible:!0,expandableSidebarContent:(0,s.jsx)(d.Z,{}),pageContentPadding:{left:"medium"},children:(0,s.jsx)(l.Z,{id:h,children:(0,s.jsx)(i.Z,{flow:"column",children:(0,s.jsx)(c.Z,{schema:a,title:"Project List",endpoint:"/projects?userId=".concat(h),backgroundColor:"white"})})})})}},76451:function(e){e.exports={box:"box_box__tTt7i"}},21998:function(e){e.exports={sidebar:"sidebar_sidebar__Kc37m",container:"sidebar_container__Q7LIR",sections:"sidebar_sections__BKjdP"}},79627:function(e){e.exports={tabs:"tabs_tabs__2U0ys"}},78139:function(e){e.exports={backLinkWrapper:"researcher_backLinkWrapper__rzmIx",backLink:"researcher_backLink__QcTTJ"}},27144:function(e){"use strict";e.exports=JSON.parse('{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","title":"Project List","search":{"type":"string"},"description":"","additionalProperties":false,"properties":{"number":{"type":"number","title":"Number","width":"15%","href":"/projects/{id}","sort":{"type":"string","enum":["asc","desc"],"default":"desc"}},"title":{"type":"string","title":"Title","sort":{"type":"string","enum":["asc","desc"]}},"status":{"type":"string","title":"Status","width":"15%","sort":{"type":"string","enum":["asc","desc"]},"enum":["PROJECT LIVE","LIVE - DUE TO CLOSE","LIVE - RE-OPENED","LIVE - EXTENDED","LIVE - EXPIRED","ARCHIVED","DELETED"]},"role":{"type":"string","title":"Role","width":"18%","sort":{"type":"string","enum":["asc","desc"]},"enum":["Project Co-ordinator","Deputy Project Co-ordinator","Researcher","Output Reviewer"]},"queryCount":{"type":"string","format":"notification","title":"Forms Queried","width":"10%"},"startDate":{"type":"string","format":"date","title":"Start Date","
1width":"21%","sort":{"type":"string","enum":["asc","desc"]}}}}')}},function(e){e.O(0,[290,774,888,179],function(){return e(e.s=54704)}),_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.