1"use strict";(()=>{(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[7487],{14943(x,c,t){t.r(c);var s=t(63589),i=t(29633),r=t(15306),f=t(56090),n=t(72263),tt=t.n(n),j=t(46517),T=t(45135),g=t(87431),$=t(83933),b=t(47401),z=t(80361),G=t(28194),H=t(80385),N=t(67780);const F=o=>o?{"Edinburgh Business School":"/ebs","Global College":"/global-college","School of Energy, Geoscience, Infrastructure and Society":"/egis","School of Engineering and Physical Sciences":"/eps","School of Mathematical and Computer Sciences":"/macs","School of Social Sciences":"/soss","The Design School":"/tds"}[o]??"":"",J=({title:o,intro:m,manualSelection:u,school:E,department:p,researchInstitute:O,directorate:d,service:P,team:y,management:v,campus:a,subjectAreas:h,entryType:L,alphabeticalOrder:A,seeMore:D})=>{const C=(0,T.d4)(g.rE.selectors.selectVersionStatus),[S,R]=(0,i.useState)(null);(0,i.useEffect)(()=>{let l=!0;return(async()=>{if(u?.length){R(u);return}let e=[];e=[n.Op.equalTo("sys.versionStatus",C),n.Op.equalTo("sys.contentTypeId",L),n.Op.exists("sys.uri",!0)],v&&e.push(n.Op.equalTo("management",!0)),E&&e.push(n.Op.contains("sys.uri",F(E))),a&&(a==="uk"?e.push(n.Op.or(n.Op.contains("campus.entryTitle","edinburgh"),n.Op.contains("campus.entryTitle","scottish borders"),n.Op.contains("campus.entryTitle","orkney"))):e.push(n.Op.contains("campus.entryTitle",a))),h?.[0]&&e.push(n.Op.contains("subjectAreas.entryTitle",h[0])),p&&e.push(n.Op.contains("department.entryTitle",p)),O&&e.push(n.Op.contains("researchInstitute.entryTitle",O)),d&&e.push(n.Op.contains("directorate.entryTitle",d)),P&&e.push(n.Op.contains("service.entryTitle",P)),y&&e.push(n.Op.contains("team.entryTitle",y));const Z=new n.Query(...e),I=await(0,j.m)(f.cachedSearch.search(Z,1));if(I.response&&l){const K=I.response.items.map(M=>(0,f.mapJson)(M,$.b));A&&K.sort((M,k)=>{const U=M.name?.split(" ")||[],W=k.name?.split(" ")||[],w=`${U.at(-1)} ${U.slice(0,-1).join(" ")}`,q=`${W.at(-1)} ${W.slice(0,-1).join(" ")}`;return w.localeCompare(q)}),R(K.slice(0,16))}})(),()=>{l=!1}},[A,u,C,v,E,a,h,p,O,L,d,P]);const X=(0,i.useMemo)(()=>`people-${Math.random().toString(36).slice(2,10)}`,[]),_=(0,T.d4)(g.DT.selectors.selectRouteEntryContentTypeId),Y=_==="researchInstituteOverview"||_==="researchProjectThemeOverview"||_==="contentPage"||_==="subLandingPage"?"white":"greyShade";return S?.length?(0,s.jsxs)(r.Ay,{id:X,heading:o,lead:m,background:Y,width:!1,padding:!1,variant:"feature",seeMoreLink:D,children:[(0,s.jsx)(b.C,{"data-component":"peopleMinilist",children:S.map((l,B)=>(0,s.jsx)(z.A,{...l},B))}),D&&(0,s.jsx)(Q,{path:D,children:H.q.viewProfiles})]}):null},Q=(0,N.styled)(G.Ay)` 2 @media ${o=>o.theme.mq.min.tablet} { 3 align-self: center; 4 width: fit-content; 5 } 6`,V=J;t.d(c,["default",0,V])},46517(x,c,t){const s=i=>i.then(r=>({error:null,response:r})).catch(r=>({error:r,response:null}));t.d(c,["m",0,s])}}]);})();
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.