PageSourceSearch

https://data.hasp.ac.uk/_next/static/chunks/pages/projects/organisations/[id]-dac90bba66ff9939.js

js hasp.ac.uk collected 2026-09-26 04:45:45 UTC 9,448 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[437],{65346:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/projects/organisations/[id]",function(){return t(93578)}])},53853:function(e,n,t){"use strict";t.d(n,{Z:function(){return Spinner}});var s=t(85893),a=t(32597),o=t.n(a);function Spinner(){return(0,s.jsx)("div",{className:"Spinner ".concat(o().spinner),children:(0,s.jsx)("div",{className:o().loader,children:(0,s.jsx)("svg",{className:o().circular,viewBox:"25 25 50 50",children:(0,s.jsx)("circle",{className:o().path,cx:"50",cy:"50",r:"20",fill:"none",strokeWidth:"2",strokeMiterlimit:"10"})})})})}},51444:function(e,n,t){"use strict";t.d(n,{Z:function(){return Subpage}});var s=t(85893),a=t(43883),o=t.n(a);function Subpage(e){let{className:n="",children:t,title:a}=e;return(0,s.jsxs)("div",{className:"".concat(o().subpage," ").concat(n),children:[a&&(0,s.jsx)("h2",{children:a}),t]})}},54342:function(e,n,t){"use strict";t.d(n,{Z:function(){return Links}});var s=t(85893),a=t(67294),o=t(39332);function Links(e){let{children:n,className:t}=e,i=(0,o.usePathname)(),r=(0,a.useRef)(null);return(0,a.useEffect)(function(){var e,n;let t=null===(e=r.current)||void 0===e?void 0:e.querySelector("a.selected");t&&t.classList.remove("selected");let s=i.split("/");for(let e=s.length;e>1;e--){let t=s.slice(0,e).join("/"),a=null===(n=r.current)||void 0===n?void 0:n.querySelector("a[href='".concat(t,"']"));if(a){a.classList.add("selected");break}}},[i,n]),(0,s.jsx)("div",{ref:r,className:t,children:n})}},80061:function(e,n,t){"use strict";t.d(n,{Z:function(){return ProjectsSidebarContent}});var s=t(85893),a=t(21998),o=t.n(a),i=t(67294);function Sidebar(e){let{children:n}=e;return(0,s.jsx)("div",{className:"Sidebar ".concat(o().sidebar),children:(0,s.jsx)("div",{className:o().container,children:n})})}var r=t(54342),c=t(39332),l=t(41664),d=t.n(l);let ActiveLink=e=>{let{children:n,href:t,className:a,onClick:o,...r}=e,l=(0,c.usePathname)(),[u,h]=(0,i.useState)(!1);(0,i.useEffect)(()=>{let e=new URL(t,location.href).pathname;h(e===l)},[l,t]);let p=(0,i.useCallback)(e=>u?(e.preventDefault(),!1):o?o(e):void 0,[u,o]);return(0,s.jsx)(d(),{...r,className:a,href:t,onClick:p,children:n})};var u=t(93288),h=t(11163),p=t(9473),v=t(94661);function ProjectsSidebarContent(){var e,n,a,c,l,d,f,g,j,C;let b=(0,p.v9)(e=>null==e?void 0:e.passUser),[x,m]=(0,i.useState)((null===(n=t.g)||void 0===n?void 0:null===(e=n.window)||void 0===e?void 0:e.localStorage.getItem("/projects[list.total]"))||"~"),[_,S]=(0,i.useState)((null===(c=t.g)||void 0===c?void 0:null===(a=c.window)||void 0===a?void 0:a.localStorage.getItem("/account/datasets[list.total]"))||"~"),[y,P]=(0,i.useState)((null===(d=t.g)||void 0===d?void 0:null===(l=d.window)||void 0===l?void 0:l.localStorage.getItem("/projects/applications[list.total]"))||"~"),[L,Z]=(0,i.useState)((null===(g=t.g)||void 0===g?void 0:null===(f=g.window)||void 0===f?void 0:f.localStorage.getItem("/projects/organisations[list.total]"))||"~"),[w,k]=(0,i.useState)((null===(C=t.g)||void 0===C?void 0:null===(j=C.window)||void 0===j?void 0:j.localStorage.getItem("/projects/users[list.total]"))||"~"),E=(0,h.useRouter)();async function fetchCount(e,n){(0,u.P)("ProjectsSidebarContent.fetchCount(endpoint,setter)",e,typeof n);let{status:t,json:s}=await v.Z.fetch(e);401==t&&E.push("/account/sign-in?redirectFrom=".concat(E.asPath),"/account/sign-in"),localStorage.setItem("".concat(e,"[list.total]"),(null==s?void 0:s.total)||"0"),n((null==s?void 0:s.total)||"0")}function handleApplicationsCountChange(){(0,u.P)("ProjectsSidebarContent.handleApplicationsCountChange()"),fetchCount("/projects/applications",P)}function handleDatasetsCountChange(){(0,u.P)("ProjectsSidebarContent.handleDatasetsCountChange()"),fetchCount("/account/datasets",S)}function handleUsersCountChange(){(0,u.P)("ProjectsSidebarContent.handleDatasetsCountChange()"),fetchCount("/projects/users",k)}function handleOrganisationsCountChange(){(0,u.P)("ProjectsSidebarContent.handleDatasetsCountChange()"),fetchCount("/projects/organisations",Z)}return(0,i.useEffect)(function(){return(0,u.P)("ProjectsSidebarContent.useEffect([])"),fetchCount("/projects",m),fetchCount("/account/datasets",S),fetchCount("/projects/applications",P),fetchCount("/projects/users",k),fetchCount("/projects/organisations",Z),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)(r.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:_})]}),(0,s.jsxs)(ActiveLink,{href:"/projects/applications",children:["Applications",(0,s.jsx)("span",{suppressHydrationWarning:!0,children:y})]})]}),(0,s.jsxs)(ActiveLink,{href:"/projects",children:["Projects",(0,s.jsx)("span",{suppressHydrationWarning:!0,children:x})]}),["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:w})]}),(0,s.jsxs)(ActiveLink,{href:"/projects/organisations",children:["Organisations",(0,s.jsx)("span",{suppressHydrationWarning:!0,children:L})]})]})]})})}},44571:function(e,n,t){"use strict";t.d(n,{Z:function(){return Tabs}});var s=t(85893),a=t(79627),o=t.n(a);function Tabs(e){let{children:n,className:t=""}=e;return(0,s.jsx)("div",{className:"Tabs ".concat(o().tabs," ").concat(t),children:n})}},48893:function(e,n,t){"use strict";t.d(n,{Z:function(){return OrganisationLayout}});var s=t(85893),a=t(41664),o=t.n(a),i=t(51444),r=t(44571),c=t(54342);function OrganisationLayout(e){let{children:n,id:t}=e;return(0,s.jsxs)(i.Z,{children:[(0,s.jsx)(r.Z,{children:(0,s.jsxs)(c.Z,{children:[(0,s.jsx)(o(),{href:"/projects/organisations/".concat(t),children:"Details"}),(0,s.jsx)(o(),{href:"/projects/organisations/".concat(t,"/researchers"),children:"Researchers"}),(0,s.jsx)(o(),{href:"/projects/organisations/".concat(t,"/projects"),children:"Projects"})]})}),n]})}},93578:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSP:function(){return f},default:function(){return index_projects}});var s=t(85893),a=t(32465),o=t(48893),i=t(11163),r=t(38549),c=t(52780),l=t(86343),d=t(53853);function OrganisationCard(e){var n,t,a;let{organisation:o,loading:i}=e;return(0,s.jsxs)(r.Z,{flow:"column",children:[(0,s.jsx)(c.Z,{style:{backgroundColor:"rgb(var(--background-color-rgb))"},children:(0,s.jsxs)(r.Z,{flow:"row wrap",children:[(null==o?void 0:o.name)&&(0,s.jsx)(l.Z,{label:"Name",readOnly:!0,value:o.name}),(null==o?void 0:o.email)&&(0,s.jsx)(l.Z,{label:"Email Address",readOnly:!0,value:o.email}),(null==o?void 0:o.address)&&(0,s.jsx)(l.Z,{label:"Address",readOnly:!0,value:o.address}),(null==o?void 0:o.dateCreated)&&(0,s.jsx)(l.Z,{label:"Date Created",readOnly:!0,value:null===(n=o.dateCreated)||void 0===n?void 0:n.toLocaleStr
1ing()}),(null==o?void 0:o.dateModified)&&(0,s.jsx)(l.Z,{label:"Date Modified",readOnly:!0,value:null===(t=o.dateModified)||void 0===t?void 0:t.toLocaleString()}),null==o?void 0:null===(a=o.additionalProperties)||void 0===a?void 0:a.map(e=>(null==e?void 0:e.value)&&(0,s.jsx)(l.Z,{label:e.name,readOnly:!0,value:e.value},e.name))]})}),i&&(0,s.jsx)(d.Z,{})]})}var u=t(67294),h=t(93288),p=t(94661),v=t(80061),f=!0,index_projects=e=>{let{branding:n,SEOInfo:t}=e,r=(0,i.useRouter)(),{id:c}=r.query,[l,d]=(0,u.useState)(null),[f,g]=(0,u.useState)(!0);function handleFetchObjectSuccess(e){g(!1),d(e)}return(0,u.useEffect)(function(){(0,h.P)("OrganisationDetailsPage.useEffect([])"),g(!0),p.Z.fetchObject("/projects/organisations/".concat(c),handleFetchObjectSuccess,()=>void r.push("/account/sign-in?redirectFrom=".concat(r.asPath),"/account/sign-in"))},[c,r]),(0,s.jsx)(a.ao,{branding:n,SEOInfo:t,enforcePageConentIsVisible:!0,expandableSidebarContent:(0,s.jsx)(v.Z,{}),pageContentPadding:{left:"medium"},children:(0,s.jsx)(o.Z,{id:c,children:l&&(0,s.jsx)(OrganisationCard,{organisation:l,loading:f})})})}},32597:function(e){e.exports={spinner:"spinner_spinner__tm5pN",loader:"spinner_loader__PXpCy",circular:"spinner_circular__c7Ose",rotate:"spinner_rotate__G6gVr",path:"spinner_path__z4rx2",dash:"spinner_dash__rPDl5",color:"spinner_color__FUHgn"}},43883:function(e){e.exports={subpage:"subpage_subpage__KeHhV"}},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"}}},function(e){e.O(0,[218,774,888,179],function(){return e(e.s=65346)}),_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.