"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[560],{958:(W,S,m)=>{m.d(S,{Z:()=>c});var t=m(6109),x=m(8102);const c=({description:L,ogImage:B="/Events/Events-Assets/Event-Images/Generic-Thumbnails/Audience-1200x600.jpg",ogImageAltText:M="ÐÓ°ÉÂÛ̳",ogType:Y="article",pageTitle:v,canonicalUrl:D,twitterCardType:F="summary_large_image"})=>{if(!v)return null;const T="London School of Economics and Political Science",V="@lse";return t.createElement(x.q,null,t.createElement("title",null,v),t.createElement("meta",{name:"description",content:L}),t.createElement("link",{rel:"canonical",href:D}),t.createElement("meta",{name:"author",content:"London School of Economics and Political Science"}),t.createElement("meta",{property:"og:type",content:Y}),t.createElement("meta",{property:"og:site_name",content:T}),t.createElement("meta",{property:"og:url",content:D}),t.createElement("meta",{property:"og:title",content:v}),t.createElement("meta",{property:"og:description",content:L}),t.createElement("meta",{property:"og:image",content:B}),t.createElement("meta",{property:"og:image:alt",content:M}),t.createElement("meta",{name:"twitter:card",content:F}),t.createElement("meta",{name:"twitter:site",content:V}),t.createElement("meta",{name:"twitter:title",content:v}),t.createElement("meta",{name:"twitter:description",content:L}),t.createElement("meta",{name:"twitter:url",content:D}),t.createElement("meta",{name:"twitter:image",content:B}),t.createElement("meta",{name:"twitter:image:alt",content:M}))}},5964:(W,S,m)=>{m.d(S,{L:()=>x});var t=m(9294);const x=(0,t.ZP)(()=>m.e(661).then(m.bind(m,8845)))},5716:(W,S,m)=>{m.d(S,{Z:()=>Ut});var t=m(6109),x=m(1374),E=m(8534),c=m(2752);const B=c.default.li` ${({theme:e})=>c.css` display: inline-flex !important; align-items: center; &.active { button { background: ${e.colors.buttons.disabled.default.background}; color: ${e.colors.buttons.disabled.default.color}; pointer-events: none; } } button { min-width: 3.2rem; height: 3.2rem; background: ${e.colors.buttons.primary.default.background}; color: ${e.colors.buttons.primary.default.color}; border: 1px solid ${e.colors.buttons.primary.default.borderColor}; cursor: pointer; display: grid; place-items: center; transition: all 0.2s ease-in-out; &:hover:not(:disabled) { background: ${e.colors.buttons.secondary.default.background}; color: ${e.colors.buttons.secondary.default.color}; } } > span { vertical-align: bottom; &:first-child { margin-right: ${e.spacing.xxxs}; } &:last-child { margin-left: ${e.spacing.xxxs}; } } `}; `,v=({ariaLabel:e,className:r,index:o,isActive:n,label:a,updatePageIndex:s})=>{const l=d=>{d.preventDefault(),s(o)},i=r==="prev"||r==="next";return t.createElement(B,{className:`${r}${n?" active":""}`},r==="last"&&t.createElement("span",{"aria-hidden":!0},"..."),t.createElement("button",{"aria-label":e,"aria-current":n,disabled:n,onClick:d=>l(d)},i?t.createElement(x.Z,null,a):t.createElement("span",null,a),i&&t.createElement(E.J,{icon:r==="prev"?"arrowLeft":"arrowRight",size:14})),r==="first"&&t.createElement("span",{"aria-hidden":!0},"..."))},F=c.default.div` ${({fontSize:e,theme:r})=>c.css` .results-message { ${e==="sm"?r.typography.caption:r.typography.body1}; > span { font-weight: 600; } } `}; `,G=({currentRangeFrom:e,currentRangeTo:r,fontSize:o="lg",totalResults:n})=>t.createElement(F,{fontSize:o},n&&t.createElement("div",{className:"results-message"},"Showing"," ",t.createElement("span",null,e==null?void 0:e.toLocaleString(),"-",r==null?void 0:r.toLocaleString())," ","of ",t.createElement("span",null,n.toLocaleString())," results")),Ee=c.default.nav` ${({theme:e})=>c.css` margin-top: ${e.spacing.m}; ul.pager { padding: 0; margin: ${e.spacing.xxxs} 0 0; list-style: none; display: flex; flex-wrap: wrap; justify-content: start; gap: 0.7rem; } `}; `,ke=({currentRangeFrom:e,currentRangeTo:r,pageCount:o,pageIndex:n,pagesToShow:a=5,totalCount:s,updatePageIndex:l})=>{if(!o||o<=1)return null;let i=Math.ceil(n-a/2);i<0&&(i=0);let d=i+a-1;const g=o-1;return d>g&&(d=g,i=o-a,i<0&&(i=0)),t.createElement(Ee,{role:"navigation","aria-label":"Pagination Navigation"},o&&t.createElement(G,{currentRangeFrom:e,currentRangeTo:r,fontSize:"sm",totalResults:s}),t.createElement("ul",{className:"pager"},n>0&&t.createElement(v,{ariaLabel:`Go to previous page, Page ${n}`,className:"prev",index:n-1,label:"Prev",updatePageIndex:l}),i>0&&t.createElement(v,{ariaLabel:"Go to first page, Page 1",className:"first",index:0,label:"1",updatePageIndex:l}),Array.from(Array(d-i+1)).map((p,f)=>{const y=f+i,u=y===n;return t.createElement(v,{ariaLabel:`Go to Page ${y+1}`,disabled:u,index:y,isActive:u,key:y,label:`${y+1}`,updatePageIndex:l})}),d!==g&&t.createElement(v,{ariaLabel:`Go to last page, Page ${o}`,className:"last",index:g,label:`${o}`,updatePageIndex:l}),n{const o=e===!0?`${r.spacing.xxs} ${r.spacing.xxs} ${r.spacing.s};`:"0";return c.css` background: ${r.colors.background.white}; .component-block__title { padding: ${r.spacing.xxs}; ${r.typography.h2}; font-weight: 500; } .component-block__body { padding: ${o}; } `}}; `,j=({children:e,bodyPadding:r=!0,title:o})=>t.createElement(we,{bodyPadding:r,className:"component-block"},o&&t.createElement("h2",{className:"component-block__title"},o),t.createElement("div",{className:"component-block__body"},e));var Ne=m(7091),J=m.n(Ne);const Ce=c.default.div` ${({theme:e})=>{const r={color:e.colors.link.primary.def,colorActive:e.colors.link.primary.def,bgColor:"#fff",buttonBorder:e.colors.grey.mid,buttonBorderActive:e.colors.lse.primary,statusBg:"#fff",setBorder:e.colors.grey.mid,setClearBg:e.colors.buttons.tertiary.default.background,setClearBgHover:e.colors.buttons.tertiary.hover.background,setClearColor:e.colors.buttons.tertiary.default.color,optionlabelBg:"#fff",optionlabelBgChecked:"#FFF",optionlabel:e.colors.link.primary.def,optionlabelChecked:e.colors.link.primary.hover,optionlabelHover:"#fff",optionlabelHoverColor:e.colors.link.primary.hover,transition:"transition: all 0.2s ease-in-out;",inputStyle:` padding: 1.4rem; line-height: 1; border: none; border-bottom: 1px solid transparent; `};return c.css` position: relative; .filter-toggle { ${r.inputStyle}; width: 100%; display: flex; justify-content: space-between; align-items: center; cursor: pointer; background: ${e.colors.background.white}; svg { transition: transform 0.2s ease-in-out; } &.open { svg { transform: scaleY(-1); } } &.has-options { font-weight: 700; color: ${r.colorActive}; box-shadow: inset 0 0 1px 1px ${r.buttonBorderActive}; } } .drop-filter-set { overflow: hidden; max-height: 100%; ${r.transition}; &.closed { max-height: 0; } } /* &:focus-within { .drop-filter-set, .drop-filter-set.closed { max-height: 100%; } } */ .filter-options { margin: 0; padding: 0; list-style: none; .filter-option { position: relative; .filter-sub-options { padding-left: 1.6rem; list-style-type: none; .filter-option:first-child { border: none; } } &:first-child { border-top: 1px solid ${r.buttonBorder}; } label { display: block; padding: ${e.spacing.xxs}; color: ${r.optionlabel}; background: ${r.optionlabelBg}; cursor: pointer; ${r.transition}; &:hover { background: ${r.optionlabelHover}; color: ${r.optionlabelHoverColor}; + svg { color: ${r.optionlabelChecked}; } } } svg { position: absolute; top: 2.8rem; right: 2rem; transform: translateY(-50%); display: none; pointer-events: none; } input:checked + label, input:checked + div label { color: ${r.optionlabelChecked}; background: ${r.optionlabelBgChecked}; } input:checked + div svg, input:checked + label + svg { display: block; } input { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; &:focus + label { background: ${r.optionlabelHover}; color: ${r.optionlabelHoverColor}; + svg { color: ${r.optionlabelChecked}; } } } } } .filter-status { display: flex; justify-content: space-between; align-items: center; padding: calc(${e.spacing.xxs} / 1.3) ${e.spacing.xxs}; background: ${r.statusBg}; font-size: 1.4rem; color: #333; border-top: 1px solid ${r.setBorder}; } .clear-set { padding: 0.4rem 1.6rem; border: none; border-radius: 0.2rem; &:not(:disabled) { background: ${r.setClearBg}; color: ${r.setClearColor}; cursor: pointer; &:hover, &:focus { background: ${r.setClearBgHover}; } } } `}}; `,Pe=({filterKey:e,options:r,title:o,updateSelectedFilters:n,clearFilters:a,refFilter:s})=>{const[l,i]=(0,t.useState)(!1),d=(0,t.useRef)(null),g=p=>{i(p)};return t.createElement(Ce,{ref:d,"aria-expanded":!!l},t.createElement("button",{className:`filter-toggle ${(r==null?void 0:r.filter(p=>p.isSelected).length)>0?" has-options":""} ${l?" open":""}`,onClick:()=>g(!l)},o,t.createElement(E.J,{icon:"chevronDown"})),l&&t.createElement("div",{className:`drop-filter-set ${l?"open":"closed"}`},t.createElement("ul",{className:"filter-options"},r&&r.map(p=>{var f;const y=`${e}-${p.key}`;if(p.title==="-- Please select --")return null;const u=p.title==="impact case",A=e==="type"&&p.title==="impact case"&&p.isSelected?t.createElement(t.Fragment,null,t.createElement("div",null,t.createElement("label",{htmlFor:y},u?"Impact case study":J()(p.title||"",!0)),t.createElement(E.J,{icon:"close",size:16})),t.createElement("ul",{className:"filter-sub-options"},(f=s==null?void 0:s.items)==null?void 0:f.map($=>t.createElement("li",{key:$.key,className:"filter-option"},t.createElement("input",{id:$.key,type:"checkbox",checked:$.isSelected,onChange:()=>{n("ref",$.key)}}),t.createElement("label",{htmlFor:$.key},`REF ${$.title}`),t.createElement(E.J,{icon:"close",size:16}))))):t.createElement(t.Fragment,null,t.createElement("label",{htmlFor:y},u?"Impact case study":J()(p.title||"",!0)),t.createElement(E.J,{icon:"close",size:16}));return t.createElement("li",{key:p.key,className:"filter-option"},t.createElement("input",{id:y,type:"checkbox",checked:p.isSelected,onChange:()=>{a("ref"),e==="timePeriod"&&a("calendar"),n(e,p.key)}}),A)})),t.createElement("div",{className:"filter-status"},r&&t.createElement(t.Fragment,null,t.createElement("div",null,r.filter(p=>p.isSelected).length," selected"),t.createElement("button",{className:"clear-set",disabled:!r.some(p=>p.isSelected),onClick:()=>{r.filter(p=>p.isSelected).forEach(p=>{n(e,p.key)})}},"Clear")))))},Se=c.default.div` ${({theme:e})=>c.css` .search-fields form { display: flex; padding-bottom: 0.2rem; border-bottom: 1px solid ${e.colors.grey.mid}; .search-fields__input { flex: 1; border: 0; ${e.typography.body2}; } .search-fields__input::placeholder { font-weight: 300; } .search-fields__submit { flex: 0 0 4rem; height: 4rem; border: 0; border-radius: 0.2rem; background: ${e.colors.buttons.tertiary.default.background}; color: ${e.colors.buttons.tertiary.default.color}; transition: background 0.2s ease-in-out; cursor: pointer; &:hover { background: ${e.colors.buttons.tertiary.hover.background}; color: ${e.colors.buttons.tertiary.hover.color}; } } } .filter { border-top: 1px solid ${e.colors.grey.mid}; &:last-of-type { border-bottom: 1px solid ${e.colors.grey.mid}; } } `}; `,K=({filters:e,refFilter:r,title:o,updateSelectedFilters:n,clearFilters:a})=>(e&&e.calendar&&delete e.calendar,t.createElement(Se,{className:"sidebar-refine"},t.createElement(j,{title:o,bodyPadding:!1},Object.keys(e).map(s=>{if(s==="ref")return null;const l=e[s];return t.createElement("div",{className:"filter",key:s},t.createElement(Pe,{refFilter:r,filterKey:s,options:l.items,title:l.title||"",updateSelectedFilters:n,clearFilters:a}))})))),Oe=c.default.div` ${({theme:e})=>c.css` .pageLayout { display: flex; flex-direction: column; gap: ${e.spacing.xs}; > * { display: flex; flex-direction: column; gap: ${e.spacing.xs}; } } .results { display: flex; flex-direction: column; gap: ${e.spacing.xs}; } .summary--large-screens { display: none; } @media ${e.mq.min.laptop} { .pageLayout { flex-direction: row; } .sidebar { flex: 0 0 calc(100% / 3); } .content { flex: 1; } .summary--small-screens { display: none; } .summary--large-screens { display: block; } } .mobile-refine { display: flex; width: 100%; padding: 1.6rem; border: none; font-weight: bold; color: ${e.colors.text.def}; background-color: white; svg { margin-left: auto; width: 24px; height: 24px; transition: transform 0.2s ease-in-ease-out; } &.open { border-bottom: 1px solid ${e.colors.grey.mid}; & svg { transform: scaleY(-1); } } } .calendar { font-family: ${e.fonts.default}; background-color: ${e.colors.grey.lightest}; button { border: none; background: none; &:hover, &:focus { cursor: pointer; } } .react-calendar__navigation { display: flex; align-items: center; padding: 1.6rem; border-bottom: 1px solid ${e.colors.grey.lightMid}; background-color: white; button.react-calendar__navigation__label { padding: 0.8rem; border-radius: 24px; text-decoration: underline; /* background-color: ${e.colors.grey.lightest}; */ } button.react-calendar__navigation__arrow { border-radius: 24px; width: 32px; height: 32px; background-color: ${e.colors.grey.lightMid}; &.react-calendar__navigation__prev-button, &.react-calendar__navigation__prev2-button { margin-right: 1.2rem; } &.react-calendar__navigation__next-button, &.react-calendar__navigation__next2-button { margin-left: 1.2rem; } &.react-calendar__navigation__prev-button, &.react-calendar__navigation__next-button { background-color: ${e.colors.grey.light}; } &:disabled { opacity: 0.4; } } .calendar__control { font-size: 1.6rem; font-weight: bold; color: ${e.colors.text.def}; } } .react-calendar__viewContainer { background-color: white; } .react-calendar__month-view__weekdays { padding: 0.8rem 1.6rem; border-bottom: 1px solid ${e.colors.grey.lightMid}; text-align: center; & abbr { text-decoration: none; } } .react-calendar__month-view__days { padding: 1.6rem; } .react-calendar__tile { overflow: visible !important; border-radius: 24px; transition: 200ms ease-in-out; &:disabled { cursor: default; } &:not(:disabled):hover, &:not(:disabled):focus { color: ${e.colors.lse.primary}; transition: 200ms ease-in-out; } & > abbr { display: flex; justify-content: center; align-items: center; padding: 0.8rem; } &--now { font-weight: bold; } &--active { color: ${e.colors.lse.primary}; font-weight: bold; } } .react-calendar__month-view__days__day--neighboringMonth { opacity: 0.6; } } `}; `,Le=c.default.form` ${({buttonStyle:e,theme:r})=>{const o={background:e==="primary"?r.colors.buttons.primary.default.background:e==="secondary"?r.colors.buttons.secondary.default.background:r.colors.buttons.tertiary.default.background,backgroundHover:e==="primary"?r.colors.buttons.primary.hover.background:e==="secondary"?r.colors.buttons.secondary.hover.background:r.colors.buttons.tertiary.hover.background,color:e==="primary"?r.colors.buttons.primary.default.color:e==="secondary"?r.colors.buttons.secondary.default.color:r.colors.buttons.tertiary.default.color,colorHover:e==="primary"?r.colors.buttons.primary.hover.color:e==="secondary"?r.colors.buttons.secondary.hover.color:r.colors.buttons.tertiary.hover.color};return c.css` .search-fields { display: flex; padding-bottom: 0.2rem; border-bottom: 1px solid ${r.colors.grey.mid}; .search-fields__input { flex: 1; border: 0; ${r.typography.body2}; } .search-fields__input::placeholder { font-weight: 300; } .search-fields__submit { flex: 0 0 4rem; height: 4rem; border: 0; border-radius: 0.2rem; background: ${o.background}; color: ${o.color}; transition: background 0.2s ease-in-out; cursor: pointer; &:hover { background: ${o.backgroundHover}; color: ${o.colorHover}; } } } .search-fields__reset { display: flex; align-items: center; border: none; margin-right: 0.8rem; background: none; cursor: pointer; } `}}; `,Be=({buttonStyle:e="tertiary",className:r,searchLabel:o,hideLabel:n=!1,id:a,placeholder:s,submit:l,stealFocus:i=!1,value:d=""})=>{const[g,p]=(0,t.useState)(d);(0,t.useEffect)(()=>{p(d)},[d]);const f=u=>{u.preventDefault(),p(u.currentTarget.value)},y=u=>{u.preventDefault(),l(g)};return t.createElement(Le,{buttonStyle:e,className:`search-box ${r}`,onSubmit:u=>y(u)},t.createElement("div",{className:"search-fields"},t.createElement(x.Z,null,t.createElement("label",{htmlFor:a},o)),t.createElement("input",{type:"text",id:a,className:"search-fields__input",placeholder:s?`${s}`:"Search",onChange:u=>f(u),value:g,autoFocus:!!i}),d?t.createElement("button",{className:"search-fields__reset",type:"button",onClick:()=>p("")},t.createElement(x.Z,null,"Clear search term"),t.createElement(E.J,{icon:"close",size:16})):null,t.createElement("button",{className:"search-fields__submit",type:"submit"},"Go")))},De=c.default.div` ${({theme:e})=>c.css` .search-fields { display: flex; padding-bottom: 0.2rem; border-bottom: 1px solid ${e.colors.grey.mid}; .search-fields__input { flex: 1; border: 0; ${e.typography.body2}; } .search-fields__input::placeholder { font-weight: 300; } .search-fields__submit { flex: 0 0 4rem; height: 4rem; border: 0; border-radius: 0.2rem; background: ${e.colors.buttons.tertiary.default.background}; color: ${e.colors.buttons.tertiary.default.color}; transition: background 0.2s ease-in-out; cursor: pointer; &:hover { background: ${e.colors.buttons.tertiary.hover.background}; color: ${e.colors.buttons.tertiary.hover.color}; } } } `}; `,je=({className:e,searchLabel:r,id:o,hideLabel:n,submit:a,value:s=""})=>{const l=r;return t.createElement(De,{className:e},t.createElement(j,{title:l},t.createElement(Be,{submit:a,value:s,searchLabel:r,id:o,hideLabel:n})))},Ae=c.default.div` ${({fontSize:e,theme:r})=>c.css` .term-info { ${r.typography.h3}; } .search-tools { display: flex; flex-direction: column; @media ${r.mq.min.mobileLarge} { flex-direction: row; gap: ${r.spacing.xs}; align-items: center; } } .term-info + .search-tools { margin-top: ${r.spacing.xxs}; } .search-tool { border-top: 1px solid ${r.colors.grey.mid}; padding: ${r.spacing.xxxs} 0; height: 5.6rem; display: flex; align-items: center; gap: ${r.spacing.xxs}; @media ${r.mq.min.mobileLarge} { border-bottom: 1px solid ${r.colors.grey.mid}; } } .search-tool--order { span { display: none; @media ${r.mq.min.mobileLarge} { display: inline; } } } .options { display: flex; gap: ${r.spacing.xxxs}; .option { height: 3.2rem; padding: ${r.spacing.xxxxs} ${r.spacing.xxs}; background: ${r.colors.buttons.tertiary.default.background}; color: ${r.colors.buttons.tertiary.default.color}; border: 0; border-radius: 0.2rem; cursor: pointer; transition: all 0.2s ease-in-out; &:hover, &:focus { background: ${r.colors.buttons.tertiary.hover.background}; color: ${r.colors.buttons.tertiary.hover.color}; } } .clear { background: ${r.colors.buttons.secondary.default.background}; color: ${r.colors.buttons.secondary.default.color}; &:hover, &:focus { background: ${r.colors.buttons.secondary.hover.background}; color: ${r.colors.buttons.secondary.hover.color}; } } } `}; `,U=({className:e,updateSortOrder:r,currentRangeFrom:o,currentRangeTo:n,totalResults:a,searchTerm:s,sortOptions:l})=>t.createElement(Ae,{className:`${e} results-summary`},s&&t.createElement("div",{className:"term-info"},"You searched for '",t.createElement("span",null,s),"'"),t.createElement("div",{className:"search-tools"},t.createElement("div",{className:"search-tool search-tool--showing"},t.createElement(G,{currentRangeFrom:o,currentRangeTo:n,totalResults:a})),l&&t.createElement("div",{className:"search-tool search-tool--order"},t.createElement("span",null,"Sort by"),t.createElement("div",{className:"options"},l.map(i=>t.createElement("button",{onClick:()=>r(i.field),className:"option filter--order",key:i.title},i.title)),t.createElement("button",{onClick:()=>r(""),className:"option filter--order clear"},"Reset Order")))));var Ze=m(409);const ze=c.default.div` ${({theme:e})=>c.css` padding: ${e.spacing.s} ${e.spacing.xxs}; background: ${e.colors.white}; .term-info { ${e.typography.h3} .term { font-weight: ${e.fontWeights.bold}; } } .clear { margin-top: ${e.spacing.xs}; height: 3.2rem; padding: ${e.spacing.xxxxs} ${e.spacing.xxs}; background: ${e.colors.buttons.secondary.default.background}; color: ${e.colors.buttons.secondary.default.color}; border: 0; border-radius: 0.2rem; cursor: pointer; transition: all 0.2s ease-in-out; &:hover, &:focus { background: ${e.colors.buttons.secondary.hover.background}; color: ${e.colors.buttons.secondary.hover.color}; } } .search-box { margin-top: ${e.spacing.xs}; } `}; `,Re=({className:e,clickAll:r,searchTerm:o})=>t.createElement(ze,{className:e},o?t.createElement("div",{className:"term-info"},"We couldn't find any results for '",t.createElement("span",{className:"term"},o),"'"):t.createElement("div",{className:"term-info"},"No results found"),t.createElement("button",{onClick:r,className:"clear"},"Clear search"));var Me=m(5964);const Fe=c.default.div` ${({theme:e})=>c.css` background: ${e.colors.background.white}; padding: ${e.spacing.xs} ${e.spacing.xxs}; display: flex; gap: ${e.spacing.xxs}; .icon { color: ${e.colors.lse.primary}; } .markup { flex: 1; } `}; `,Ie=({content:e})=>t.createElement(Fe,null,t.createElement(E.J,{icon:"info",size:24}),t.createElement(Me.L,{html:e})),He=c.default.div` ${({theme:e})=>{const r="all 0.3s ease";return c.css` .key { text-transform: capitalize; } .component-block__body { display: grid; grid-template-columns: repeat(7, 1fr); gap: ${e.spacing.xxxs}; } .button { padding: 0.9rem 0; cursor: pointer; background: ${e.colors.buttons.primary.default.background}; color: ${e.colors.text.def}; border: 1px solid ${e.colors.buttons.primary.default.borderColor}; transition: ${r}; &:hover, &:focus { background: ${e.colors.buttons.primary.hover.background}; border: 1px solid ${e.colors.buttons.primary.hover.borderColor}; } &.selected { color: ${e.colors.lse.primary}; } } `}}; `,Lr=null,X=({filterKey:e,items:r,updateSelectedFilters:o})=>{const n=s=>{o(e,s)},a=`A to Z by ${e}`;return t.createElement(He,null,t.createElement(j,{title:a},r.map(s=>{const l=s.isSelected;return t.createElement("button",{onClick:()=>{n(s.key)},className:`button${l?" selected":""}`,key:s.title},s.title)})))};var h=m(5362),Q=m(4403),We=m(9010);const Ye=()=>{const[e,r]=(0,t.useState)({width:void 0,height:void 0});return(0,t.useEffect)(()=>{function o(){r({width:window.innerWidth,height:window.innerHeight})}return window.addEventListener("resize",o),o(),()=>window.removeEventListener("resize",o)},[]),e};var w=m(689),_=m(9490);const Te=c.default.div` ${({theme:e})=>{const r="all 0.3s ease";return c.css` position: relative; display: flex; flex-direction: column; background: ${e.colors.background.white}; transition: ${r}; .card__content { ${_.ZP.body1}; padding: ${e.spacing.xxs}; flex-grow: 1; display: flex; flex-direction: column; > * + * { margin-top: ${e.spacing.xxxs}; } } .card__title { ${_.ZP.h2}; margin-top: ${e.spacing.xxxs}; + * { margin-top: ${e.spacing.xs}; } } .card__media { order: -1; display: flex; overflow: hidden; background: ${e.colors.grey.dark}; position: static; img { object-fit: cover; width: 100%; transition: ${r}; } } a { text-decoration: none; color: ${e.colors.text.def}; &:hover, &:focus { color: ${e.colors.text.def}; } } a:not(.link--primary) { position: relative; z-index: 2; } a.link--primary { &::before { content: ''; opacity: 0; position: absolute; inset: 0; z-index: 1; } } .card__distance { font-weight: ${e.fontWeights.semiBold}; } .card__contract-length { color: ${e.colors.text.light}; } .card__availability { font-weight: ${e.fontWeights.semiBold}; color: ${e.colors.ui.error}; &.available { color: ${e.colors.ui.success}; } &.limited-availability { color: ${e.colors.ui.info}; } &.no-availability { color: ${e.colors.ui.error}; } } .card__rent { position: absolute; z-index: 1; background: ${e.colors.grey.midDarker}; color: ${e.colors.text.negative}; padding: ${e.spacing.xxxs} ${e.spacing.xxs}; top: ${e.spacing.xxxs}; right: 0; pointer-events: none; display: flex; flex-direction: column; > span { display: block; ${e.typography.caption}; line-height: 1em; &.rent__price { ${e.typography.h3}; font-weight: ${e.fontWeights.bold}; &::before { content: '£'; ${e.typography.caption}; line-height: 1rem; font-weight: ${e.fontWeights.bold}; transform: translateY(-0.5rem); display: inline-block; margin-right: 0.2rem; } } &.rent__price { margin-top: 0.2rem; } } } /*On Card hover or focus-within*/ &:focus-within, &:hover { background: ${e.colors.grey.lightest}; .card__media { img { opacity: 0.75; } } } /* Desktop Layout */ @media ${e.mq.min.tablet} { flex-direction: row; .card__media { flex: 0 0 220px; } .card__content { padding: ${e.spacing.xxs} ${e.spacing.xxl} ${e.spacing.xxs} ${e.spacing.xs}; } } `}}; `;var Ve=Object.defineProperty,Ge=Object.defineProperties,Je=Object.getOwnPropertyDescriptors,q=Object.getOwnPropertySymbols,Ke=Object.prototype.hasOwnProperty,Ue=Object.prototype.propertyIsEnumerable,ee=(e,r,o)=>r in e?Ve(e,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[r]=o,Xe=(e,r)=>{for(var o in r||(r={}))Ke.call(r,o)&&ee(e,o,r[o]);if(q)for(var o of q(r))Ue.call(r,o)&&ee(e,o,r[o]);return e},Qe=(e,r)=>Ge(e,Je(r));const qe=e=>{switch(e){case"Available":return"Available";case"Limited availability":return"Limited availability";default:return"No availability"}},et=({availability:e,contractLength:r,distanceKm:o,id:n,image:a,rent:s,title:l,url:i})=>{const d=qe(e);return t.createElement(Te,{className:"result-card result-card--accomodation",id:n},t.createElement(t.Fragment,null,t.createElement("div",{className:"card__content"},t.createElement("h2",{className:"card__title"},i?t.createElement(w.Z,{path:i.startsWith("/")?`https://lse.ac.uk${i}`:i,className:"link--primary"},l):l),t.createElement("div",{className:"card__distance"},t.createElement("span",null,"Distance to campus: "),o," km"),t.createElement("div",{className:"card__contract-length"},t.createElement("span",null,"Contract length: "),r),t.createElement("div",{className:`card__availability ${d.replace(" ","-").toLowerCase()}`},d)),t.createElement("div",{className:"card__rent"},t.createElement("span",{className:"rent__scale"},"From"),t.createElement("span",{className:"rent__price"},s.priceFrom,"-",s.priceTo),t.createElement("span",{className:"rent__term"},"per ",s.per)),a&&t.createElement("div",{className:"card__media"},t.createElement("img",Qe(Xe({},a),{className:"card__image"})))))},tt=c.default.div` ${({theme:e})=>{const r="all 0.3s ease";return c.css` position: relative; display: flex; flex-direction: column; background: ${e.colors.background.white}; transition: ${r}; .card__content { padding: ${e.spacing.xxs}; flex-grow: 1; display: flex; flex-direction: column; } .card__title { ${e.typography.h2}; margin-top: ${e.spacing.xxxs}; } a { text-decoration: none; color: ${e.colors.text.def}; &:hover, &:focus { color: ${e.colors.text.def}; } } a:not(.link--primary) { position: relative; z-index: 2; } a.link--primary { &::before { content: ''; opacity: 0; position: absolute; inset: 0; z-index: 1; } } .card__main { margin-top: ${e.spacing.s}; } .card__infoTag { ${e.typography.caption}; line-height: 1; text-transform: capitalize; display: inline-block; align-self: flex-start; padding: ${e.spacing.xxxs} ${e.spacing.xxs}; background: ${e.colors.grey.light}; } .label { font-weight: ${_.vC.semiBold}; display: inline-block; margin-right: ${e.spacing.xxxxs}; } .card__course__scope { margin-top: ${e.spacing.xxs}; .scope__item { font-weight: ${e.fontWeights.bold}; > * + * { margin-left: ${e.spacing.xxxxs}; } } .availability { color: ${e.colors.ui.info}; } } .card__details { ${e.typography.caption}; font-weight: ${e.fontWeights.semiBold}; } .card__app-code { margin-top: ${e.spacing.xxs}; } .study-type { font-weight: ${_.vC.bold}; } /*On Card hover or focus-within*/ &:focus-within, &:hover { background: ${e.colors.grey.lightest}; .card__media { img { opacity: 0.75; } } } /* Desktop Layout */ @media ${e.mq.min.mobileLarge} { .card__content { padding: ${e.spacing.xxs} ${e.spacing.xs}; } .card__main { display: flex; > * { flex: 50%; } } .card__course__scope { margin-top: 0; } } `}} `,rt=({appCode:e,appCodeType:r,department:o,infoTag:n,location:a,scope:s,studyType:l,subject:i,title:d,url:g})=>{const p=Object.values(s).filter(f=>f.isAvailable)||[];return t.createElement(tt,null,t.createElement("div",{className:"card__content"},t.createElement("h2",{className:"card__title"},g?t.createElement(w.Z,{path:`https://lse.ac.uk${g}`,className:"link--primary"},t.createElement("span",{className:"study-type"},l)," ",d):t.createElement(t.Fragment,null,t.createElement("span",{className:"study-type"},l)," ",d)),t.createElement("div",{className:"card__main"},t.createElement("div",{className:"main__body_l"},n&&t.createElement("div",{className:"card__infoTag"},n)),t.createElement("div",{className:"main__body_r"},(p==null?void 0:p.length)>0&&t.createElement("div",{className:"card__course__scope"},p.map((f,y)=>t.createElement("div",{key:`${e}-scope-${y}`,className:"scope__item"},t.createElement("span",{className:"courseType"},f.courseType),t.createElement("span",{className:"duration"},`(${f.duration})`),t.createElement("span",{className:"availability"},f.availability)))),(e||a||o)&&t.createElement("div",{className:"card__details"},e&&t.createElement("div",{className:"card__app-code"},t.createElement("span",{className:"label"},r||"Application Code(s)")," ",e),a&&t.createElement("div",{className:"card_location"},t.createElement("span",{className:"label"},"Location")," ",a),o&&t.createElement("div",{className:"card_department"},o)),t.createElement(x.Z,null,i,", ",l)))))},ot=c.default.span` ${({iconStyle:e,fontSize:r,theme:o})=>{const n={fill:o.fonts.materialIcons,outlined:o.fonts.materialIconsOutlined},a=e?n[e]:n.fill;return c.css` font-family: ${a}; font-weight: normal; font-style: normal; font-size: ${r?`${r/10}rem`:"2.4rem"}; /* Preferred icon size */ display: inline-block; line-height: 1; text-transform: none; letter-spacing: normal; word-wrap: normal; white-space: nowrap; direction: ltr; /* Support for all WebKit browsers. */ -webkit-font-smoothing: antialiased; /* Support for Safari and Chrome. */ text-rendering: optimizeLegibility; /* Support for Firefox. */ -moz-osx-font-smoothing: grayscale; /* Support for IE. */ font-feature-settings: 'liga'; color: currentcolor; `}}; `,at={article:"format_align_left",audio:"subscriptions",blog:"chat","blog post":"chat",book:"local_library",bookSection:"import_contacts","book section":"import_contacts","conference paper":"description",dataset:"settings_ethernet",event:"event",impactCase:"language","impact case":"language",journal:"class",link:"open_in_new",location:"location_on",newspaper:"local_library",otherpath:"call_split",paper:"insert_drive_file",podcast:"play_circle_outline",report:"layers","report and working papers":"layers",thesis:"account_balance",vacancy:"work",video:"subscriptions",webpage:"web"},nt=({icon:e,iconStyle:r="fill",fontSize:o})=>{const n=at[e];return t.createElement(ot,{fontSize:o,className:`material-icons${r&&r!=="fill"?`-${r}`:""} icon ${e}`,"aria-hidden":"true",iconStyle:r},n||"")};var lt=m(2759);const st=c.default.div` ${({publicationType:e,theme:r})=>{const o="all 0.3s ease",n=e&&r.colors.publication[e]?r.colors.publication[e]:r.colors.publication.article;return c.css` position: relative; display: flex; flex-direction: column; background: ${r.colors.background.white}; transition: ${o}; .card__content { padding: ${r.spacing.xxs}; flex-grow: 1; display: flex; flex-direction: column; } .card__title { ${r.typography.h2}; margin-top: ${r.spacing.xxxs}; } .card__media { order: -1; display: flex; overflow: hidden; background: ${r.colors.grey.dark}; position: static; padding: ${r.spacing.s}; justify-content: center; align-items: center; background: ${n}; transition: ${o}; .icon { color: #fff; } &.type--img { padding: 0; display: block; background: transparent; flex: 0 0 135px; img { width: auto; transition: ${o}; } } } a { text-decoration: none; color: ${r.colors.text.def}; &:hover, &:focus { color: ${r.colors.text.def}; } } a:not(.link--primary) { position: relative; z-index: 2; } a.link--primary { &::before { content: ''; opacity: 0; position: absolute; inset: 0; z-index: 1; } } .card__pubtype { ${r.typography.caption}; line-height: 1; text-transform: capitalize; display: inline-block; align-self: flex-start; padding: ${r.spacing.xxxs} ${r.spacing.xxs}; background: ${r.colors.grey.light}; } .label { font-weight: ${_.vC.semiBold}; display: inline-block; margin-right: ${r.spacing.xxxxs}; } .card__pubtype { margin-top: ${r.spacing.xxs}; } .card__ancilliary { .ancilliary__item { margin-top: ${r.spacing.xxs}; } } /*On Card hover or focus-within*/ &:focus-within, &:hover { background: ${r.colors.grey.lightest}; .card__media { background-color: ${(0,lt._j)(.05,n)}; &.type--img { background-color: transparent; } img { opacity: 0.75; } } } /* Desktop Layout */ @media ${r.mq.min.mobileLarge} { flex-direction: row; .card__media { flex: 0 0 220px; } .card__content { padding: ${r.spacing.xxs} ${r.spacing.xs}; } } `}} `;var ct=Object.defineProperty,it=Object.defineProperties,dt=Object.getOwnPropertyDescriptors,te=Object.getOwnPropertySymbols,pt=Object.prototype.hasOwnProperty,mt=Object.prototype.propertyIsEnumerable,re=(e,r,o)=>r in e?ct(e,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[r]=o,gt=(e,r)=>{for(var o in r||(r={}))pt.call(r,o)&&re(e,o,r[o]);if(te)for(var o of te(r))mt.call(r,o)&&re(e,o,r[o]);return e},ut=(e,r)=>it(e,dt(r));const _t=({department:e,secondaryDepartment:r,authors:o,authorList:n,image:a,isbn:s,publicationType:l,title:i,url:d})=>t.createElement(st,{publicationType:l,className:"result-card result-card--research"},t.createElement(t.Fragment,null,t.createElement("div",{className:"card__content"},t.createElement("h2",{className:"card__title"},d?t.createElement(w.Z,{path:d.startsWith("/")?`https://lse.ac.uk${d}`:d,className:"link--primary"},i):i),l&&t.createElement("div",{className:"card__pubtype"},l==="impact case"?"Impact case study":l),t.createElement("div",{className:"card__ancilliary"},n&&t.createElement("div",{className:"ancilliary__item"},t.createElement(t.Fragment,null,t.createElement("span",{className:"label"},"Author(s)"),t.createElement("span",{className:"author authorLser5"},n))),e&&t.createElement("div",{className:"ancilliary__item"},e,r&&`, ${r}`),s&&l!=="report and working papers"&&t.createElement("div",{className:"ancilliary__item"},t.createElement("span",{className:"label"},"ISSN/ISBN"),s))),t.createElement("div",{className:a?"card__media type--img":"card__media"},a?t.createElement("img",ut(gt({},a),{className:"card__image"})):t.createElement(nt,{icon:l||"article",fontSize:56})))),bt=c.default.article` ${({theme:e})=>{const r="all 0.3s ease",o={small:"5rem",large:"10.1rem"};return c.css` position: relative; display: flex; background: ${e.colors.background.white}; transition: ${r}; .card__content { padding: ${e.spacing.xxs}; flex-grow: 1; display: flex; flex-direction: column; } .card__content__date { order: -1; ${_.ZP.body1}; } .card__title { ${_.ZP.h2}; margin-top: ${e.spacing.xxxs}; } .card__content__summary { ${_.ZP.body1}; margin-top: ${e.spacing.xxs}; } .card__media { order: -1; display: flex; overflow: hidden; position: static; padding: ${e.spacing.xxs} 0 ${e.spacing.xxs} ${e.spacing.xxs}; flex: ${`0 0 calc(${o.small} + ${e.spacing.xxs})`}; .media__mask { width: ${o.small}; height: ${o.small}; border-radius: ${o.small}; overflow: hidden; display: flex; background: ${e.colors.grey.dark}; img { object-fit: cover; width: 100%; transition: ${r}; } } } a { text-decoration: none; color: ${e.colors.text.def}; &:hover, &:focus { color: ${e.colors.text.def}; } } a:not(.link--primary) { position: relative; z-index: 2; } a.link--primary { &::before { content: ''; opacity: 0; position: absolute; inset: 0; z-index: 1; } } .card__title span { display: block; &.person__title, &.person__honours { color: ${e.colors.text.light}; } &.person__surname { font-weight: ${e.fontWeights.bold}; } } .card__content__details { margin-top: ${e.spacing.xxs}; > * { display: block; } } .card__contacts { ${_.ZP.body1}; margin-top: ${e.spacing.xxs}; } .label { text-transform: capitalize; display: inline-block; margin-right: ${e.spacing.xxxxs}; font-weight: ${_.vC.semiBold}; color: ${e.colors.text.light}; } .detail--position { ${e.typography.h4}; } .detail--expertise { ${_.ZP.body1}; margin-top: ${e.spacing.xxxxs}; line-height: 2rem; } .detail--dept { ${e.typography.h5}; font-weight: ${_.vC.bold}; margin-bottom: 1.6rem; } .contact__value { position: relative; z-index: 2; } /*On Card hover or focus-within*/ &:focus-within, &:hover { background: ${e.colors.grey.lightest}; .card__media { img { opacity: 0.75; } } } /* Desktop Layout */ @media ${e.mq.min.mobileLarge} { flex-direction: row; .card__media { padding: ${e.spacing.s} 0 ${e.spacing.s} ${e.spacing.xs}; flex: ${`0 0 calc(${o.large} + ${e.spacing.xs})`}; .media__mask { width: ${o.large}; height: ${o.large}; border-radius: ${o.large}; } } .card__content { flex-direction: row; gap: ${e.spacing.xxs}; padding: ${e.spacing.s} ${e.spacing.xs}; } .card__title { flex: 1; margin-top: 0; } .card__content__main { flex: 0 0 50%; } .card__content__details { margin-top: 0; } } `}} `;var ft=Object.defineProperty,yt=Object.defineProperties,xt=Object.getOwnPropertyDescriptors,oe=Object.getOwnPropertySymbols,vt=Object.prototype.hasOwnProperty,$t=Object.prototype.propertyIsEnumerable,ae=(e,r,o)=>r in e?ft(e,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[r]=o,Et=(e,r)=>{for(var o in r||(r={}))vt.call(r,o)&&ae(e,o,r[o]);if(oe)for(var o of oe(r))$t.call(r,o)&&ae(e,o,r[o]);return e},kt=(e,r)=>yt(e,xt(r));const ht=({contacts:e,details:r,id:o,image:n,person:a,title:s,url:l})=>{const i="";return t.createElement(bt,{className:"result-card result-card--people",title:s},t.createElement(t.Fragment,null,t.createElement("div",{className:"card__content"},t.createElement("h2",{className:"card__title"},l?t.createElement(w.Z,{path:`https://lse.ac.uk${l}`,className:"link--primary"},t.createElement("span",{className:"person__title"},a.proTitle&&a.proTitle),t.createElement("span",{className:"person__forename"},a.forename&&a.forename),t.createElement("span",{className:"person__surname"},a.surname)):t.createElement(t.Fragment,null,t.createElement("span",{className:"person__title"},a.proTitle&&a.proTitle),t.createElement("span",{className:"person__forename"},a.forename&&a.forename),t.createElement("span",{className:"person__surname"}," ",a.surname))),t.createElement("div",{className:"card__content__main"},r&&t.createElement("div",{className:"card__content__details"},t.createElement("h4",{className:"detail--position"},r.position&&r.position),t.createElement("h5",{className:"detail--dept"},r.dept&&r.dept),r.telephone&&t.createElement("span",{className:"detail--expertise"},t.createElement("span",{className:"label"},"Telephone"),r.telephone),r.expertise&&t.createElement("span",{className:"detail--expertise"},t.createElement("span",{className:"label"},"Expertise"),r.expertise),r.email&&t.createElement("span",{className:"detail--expertise"},t.createElement("span",{className:"label"},"Email"),r.email)),e&&t.createElement("div",{className:"card__contacts"},e.map(d=>t.createElement("div",{className:"card__contact"},t.createElement("span",{className:"contact__method label"},d.method),t.createElement("span",{className:"contact__value"},d.value)))))),n&&t.createElement("div",{className:"card__media"},t.createElement("div",{className:"media__mask"},t.createElement("img",kt(Et({},n),{className:"card__image"}))))))},wt=c.default.article` ${({theme:e})=>{const r="all 0.3s ease";return c.css` position: relative; display: flex; flex-direction: column; background: ${e.colors.background.white}; transition: ${r}; .card__content { ${_.ZP.body1}; padding: ${e.spacing.xxs}; flex-grow: 1; display: flex; flex-direction: column; } .card__content__date { ${_.ZP.body1}; font-weight: ${e.fontWeights.semiBold}; } .card__title { ${_.ZP.h2}; margin-top: ${e.spacing.xxs}; } .card__speaker { display: block; ${_.ZP.h5}; font-family: ${e.fonts.serif}; font-style: italic; color: ${e.colors.text.light}; margin-top: ${e.spacing.xxxs}; } .card__content__description { margin-top: 0.5em; } .card__content__theme { margin-top: 0.5em; font-weight: ${e.fontWeights.semiBold}; } .card__media { order: -1; display: flex; overflow: hidden; background: ${e.colors.grey.dark}; position: static; img { object-fit: cover; width: 100%; transition: ${r}; } } a { text-decoration: none; color: ${e.colors.text.def}; &:hover, &:focus { color: ${e.colors.text.def}; } } a:not(.link--primary) { position: relative; z-index: 2; } a.link--primary { &::before { content: ''; opacity: 0; position: absolute; inset: 0; z-index: 1; } } .card__details { order: -1; } /*On Card hover or focus-within*/ &:focus-within, &:hover { background: ${e.colors.grey.lightest}; .card__media { img { opacity: 0.75; } } } /* Desktop Layout */ @media ${e.mq.min.mobileLarge} { flex-direction: row; .card__media { flex: 0 0 220px; } .card__content { padding: ${e.spacing.xxs} ${e.spacing.xs}; } } `}} `;var Nt=Object.defineProperty,Ct=Object.defineProperties,Pt=Object.getOwnPropertyDescriptors,ne=Object.getOwnPropertySymbols,St=Object.prototype.hasOwnProperty,Ot=Object.prototype.propertyIsEnumerable,le=(e,r,o)=>r in e?Nt(e,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[r]=o,Lt=(e,r)=>{for(var o in r||(r={}))St.call(r,o)&&le(e,o,r[o]);if(ne)for(var o of ne(r))Ot.call(r,o)&&le(e,o,r[o]);return e},Bt=(e,r)=>Ct(e,Pt(r));const Dt=({date:e,description:r,id:o,image:n,location:a,speaker:s,theme:l,title:i,url:d})=>t.createElement(wt,{className:"result-card result-card--news"},t.createElement("div",{className:"card__content"},t.createElement("h2",{className:"card__title"},d?t.createElement(w.Z,{path:d,className:"link--primary"},i," ",s&&t.createElement("span",{className:"card__speaker"},t.createElement(x.Z,null,"with"),s)):t.createElement(t.Fragment,null,i," ",s&&t.createElement("span",{className:"card__speaker"},t.createElement(x.Z,null,"with"),s))),r&&t.createElement("p",{className:"card__content__description"},r),l&&l.length>0?t.createElement("p",{className:"card__content__theme"},l.map((g,p,f)=>t.createElement("span",{key:p},g.title,p!==f.length-1?", ":""))):null,(e||a)&&t.createElement("div",{className:"card__details"},e&&t.createElement("div",{className:"card__content__date"},e),a&&t.createElement("p",{className:"card__content__location"},a))),n&&t.createElement("div",{className:"card__media"},t.createElement("img",Bt(Lt({},n),{className:"card__image"})))),jt=c.default.article` ${({theme:e})=>{const r="all 0.3s ease";return c.css` position: relative; display: flex; flex-direction: column; background: ${e.colors.background.white}; transition: ${r}; .card__content { padding: ${e.spacing.xxs}; flex-grow: 1; display: flex; flex-direction: column; } .card__content__date { order: -1; ${_.ZP.body1}; } .card__title { ${_.ZP.h2}; margin-top: ${e.spacing.xxxs}; } .card__content__summary { ${_.ZP.body1}; margin-top: ${e.spacing.xxs}; } .card__media { order: -1; display: flex; overflow: hidden; background: ${e.colors.grey.dark}; position: static; img { object-fit: cover; width: 100%; transition: ${r}; } } a { text-decoration: none; color: ${e.colors.text.def}; &:hover, &:focus { color: ${e.colors.text.def}; } } a:not(.link--primary) { position: relative; z-index: 2; } a.link--primary { &::before { content: ''; opacity: 0; position: absolute; inset: 0; z-index: 1; } } /*On Card hover or focus-within*/ &:focus-within, &:hover { background: ${e.colors.grey.lightest}; .card__media { img { opacity: 0.75; } } } /* Desktop Layout */ @media ${e.mq.min.mobileLarge} { flex-direction: row; .card__media { flex: 0 0 220px; } .card__content { padding: ${e.spacing.xxs} ${e.spacing.xs}; } } `}} `;var At=Object.defineProperty,Zt=Object.defineProperties,zt=Object.getOwnPropertyDescriptors,se=Object.getOwnPropertySymbols,Rt=Object.prototype.hasOwnProperty,Mt=Object.prototype.propertyIsEnumerable,ce=(e,r,o)=>r in e?At(e,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[r]=o,Ft=(e,r)=>{for(var o in r||(r={}))Rt.call(r,o)&&ce(e,o,r[o]);if(se)for(var o of se(r))Mt.call(r,o)&&ce(e,o,r[o]);return e},It=(e,r)=>Zt(e,zt(r));const Ht=({date:e,id:r,image:o,title:n,summary:a,url:s})=>t.createElement(jt,{className:"result-card result-card--news"},t.createElement(t.Fragment,null,t.createElement("div",{className:"card__content"},t.createElement("h2",{className:"card__title"},s?t.createElement(w.Z,{path:`https://lse.ac.uk${s}`,className:"link--primary"},n):n),e&&t.createElement("div",{className:"card__content__date"},e),a&&t.createElement("p",{className:"card__content__summary"},a)),o&&t.createElement("div",{className:"card__media"},t.createElement("img",It(Ft({},o),{className:"card__image"})))));var N=m(7334);const Wt=c.default.div` ${({theme:e})=>{const r={color:e.colors.link.primary.def,colorActive:e.colors.link.primary.def,bgColor:"#fff",buttonBorder:e.colors.grey.mid,buttonBorderActive:e.colors.lse.primary,statusBg:"#fff",setBorder:e.colors.grey.mid,setClearBg:e.colors.buttons.tertiary.default.background,setClearBgHover:e.colors.buttons.tertiary.hover.background,setClearColor:e.colors.buttons.tertiary.default.color,optionlabelBg:"#fff",optionlabelBgChecked:"#FFF",optionlabel:e.colors.link.primary.def,optionlabelChecked:e.colors.link.primary.hover,optionlabelHover:"#fff",optionlabelHoverColor:e.colors.link.primary.hover,transition:"transition: all 0.2s ease-in-out;",inputStyle:` padding: 1.4rem; line-height: 1; border: none; border-bottom: 1px solid transparent; `};return c.css` .search-fields form { display: flex; padding-bottom: 0.2rem; border-bottom: 1px solid ${e.colors.grey.mid}; .search-fields__input { flex: 1; border: 0; ${e.typography.body2}; } .search-fields__input::placeholder { font-weight: 300; } .search-fields__submit { flex: 0 0 4rem; height: 4rem; border: 0; border-radius: 0.2rem; background: ${e.colors.buttons.tertiary.default.background}; color: ${e.colors.buttons.tertiary.default.color}; transition: background 0.2s ease-in-out; cursor: pointer; &:hover { background: ${e.colors.buttons.tertiary.hover.background}; color: ${e.colors.buttons.tertiary.hover.color}; } } } .result-count { font-weight: 300; } .filter { border-top: 1px solid ${e.colors.grey.mid}; &:last-of-type { border-bottom: 1px solid ${e.colors.grey.mid}; } } .filter-options { margin: 0; padding: 0; list-style: none; .filter-option { position: relative; &:first-child { border-top: 1px solid ${r.buttonBorder}; } button { display: block; width: 100%; text-align: left; padding: ${e.spacing.xxs}; color: ${r.optionlabel}; background: ${r.optionlabelBg}; border: none; cursor: pointer; ${r.transition}; &:hover { background: ${r.optionlabelHover}; color: ${r.optionlabelHoverColor}; + svg { color: ${r.optionlabelChecked}; } } &:focus, &:focus-within { background: ${r.optionlabelHover}; color: ${r.optionlabelHoverColor}; } &.is-selected { color: ${r.optionlabelChecked}; background: ${r.optionlabelBgChecked}; } } } } .search-programmes { display:block; text-align:center; height: 50px; line-height:50px; border-radius:2px; padding: 0 20px; margin-top: 2.4rem; background: ${e.colors.buttons.secondary.default.background}; color: ${e.colors.buttons.secondary.default.color}; &:hover, &:focus { background: ${e.colors.buttons.secondary.hover.background}; color: ${e.colors.buttons.secondary.hover.color}; } } `}}; `,ie=({currentFacet:e,facets:r,updateCurrentFacet:o})=>t.createElement(Wt,{className:"sidebar-refine"},t.createElement(j,{title:"Result type",bodyPadding:!1},t.createElement("ul",{className:"filter-options"},Object.entries(r).map(n=>{const a=n[0],s=n[1],l=e===a;return t.createElement("li",{key:a,className:"filter-option"},t.createElement("button",{id:a,className:l?"is-selected":void 0,onClick:()=>o(a)},s.title," ",t.createElement("span",{className:"result-count"},"(",s.pagingInfo.totalCount.toLocaleString(),")")))}))),t.createElement("a",{className:"search-programmes",href:"/programmes/search-courses"},"Search programmes"));var Yt=Object.defineProperty,Tt=Object.defineProperties,Vt=Object.getOwnPropertyDescriptors,de=Object.getOwnPropertySymbols,Gt=Object.prototype.hasOwnProperty,Jt=Object.prototype.propertyIsEnumerable,pe=(e,r,o)=>r in e?Yt(e,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[r]=o,C=(e,r)=>{for(var o in r||(r={}))Gt.call(r,o)&&pe(e,o,r[o]);if(de)for(var o of de(r))Jt.call(r,o)&&pe(e,o,r[o]);return e},Kt=(e,r)=>Tt(e,Vt(r));const Ut=({searchLabel:e,callout:r,clearFilters:o,currentListing:n,filters:a,hideSearchInput:s,paging:l,results:i,resultsInfo:d,searchTerm:g,updatePageIndex:p,updateSearchTerm:f,updateSortOrder:y,updateSelectedFilters:u,selectedFilters:me,sortOptions:A,currentFacet:$,facets:Z,updateCurrentFacet:ge})=>{var ue;const O="surname",P=a[O],_e=a.ref,[z,be]=(0,t.useState)(""),[I,Xt]=(0,t.useState)(!0),fe=n==="event"||n==="ardEvent",ye=n==="edenCentreEvents",Qt=Object.values(me).some(b=>(b==null?void 0:b.length)>0),qt=l.pageIndex>0;(0,t.useEffect)(()=>{!fe||Qt||qt||H(void 0)},[fe]);const H=b=>{const R=h(b).format("YYYY-MM-DD");be(R),o("timePeriod"),u("calendar",`${R}`,!0)},er=b=>{b?f(""):(o(),be(`${h()}`))},tr=((ue=Ye())==null?void 0:ue.width)>=We.AV.px.laptop,xe=h().toDate(),ve=h().endOf("year").add(1,"year").toDate(),$e=a&&Object.keys(a).length>0;return t.createElement(Oe,null,t.createElement(Ze.Z,null,t.createElement(he.Z,{className:"pageLayout",padding:{smallScreen:"s",largeScreen:"m"}},t.createElement("aside",{className:"sidebar"},!s&&t.createElement(je,{hideLabel:!0,id:"news-search",submit:f,value:g,searchLabel:e}),tr?t.createElement(t.Fragment,null,Z&&t.createElement(ie,{currentFacet:$,facets:Z,updateCurrentFacet:ge}),$e&&t.createElement(K,{title:"Refine",filters:Object.fromEntries(Object.entries(a).filter(b=>b[0]!=O)),refFilter:_e,updateSelectedFilters:u,clearFilters:o,filteredResults:d}),P&&P.items&&t.createElement(X,{items:P.items,updateSelectedFilters:u,filterKey:O}),a.calendar?t.createElement(t.Fragment,null,t.createElement(Q.ZP,{onChange:b=>H(b),maxDate:ve,className:"calendar",minDate:ye?xe:void 0,tileClassName:"calendar__date-tile",nextLabel:t.createElement("span",{className:"calendar__control calendar__control--next-month"},"\u203A"),next2Label:t.createElement("span",{className:"calendar__control calendar__control--next-year"},"\xBB"),prevLabel:t.createElement("span",{className:"calendar__control calendar__control--prev-month"},"\u2039"),prev2Label:t.createElement("span",{className:"calendar__control calendar__control--prev-year"},"\xAB")}),z&&t.createElement("p",null,"Selected date: ",h(z).format("DD MMMM YYYY"))):null):t.createElement("div",{className:"toggle-filters"},t.createElement("button",{onClick:()=>Xt(!I),className:`mobile-refine ${I?"":"open"}`},"Refine search",t.createElement("svg",{viewBox:"0 0 24 24",width:"2.4rem",role:"img",focusable:"false",xmlns:"http://www.w3.org/2000/svg",className:"icon icon--contact-us-line",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true"},t.createElement("path",{d:"M6 9l6 6 6-6"}))),!I&&t.createElement(t.Fragment,null,Z&&t.createElement(ie,{currentFacet:$,facets:Z,updateCurrentFacet:ge}),$e&&t.createElement(K,{title:"Refine",filters:Object.fromEntries(Object.entries(a).filter(b=>b[0]!=O)),refFilter:_e,updateSelectedFilters:u,clearFilters:o,filteredResults:d}),P&&P.items&&t.createElement(X,{items:P.items,updateSelectedFilters:u,filterKey:O}),a.calendar?t.createElement(t.Fragment,null,t.createElement(Q.ZP,{onChange:b=>H(b),maxDate:ve,minDate:ye?xe:void 0,className:"calendar",tileClassName:"calendar__date-tile",nextLabel:t.createElement("span",{className:"calendar__control calendar__control--next-month"},"\u203A"),next2Label:t.createElement("span",{className:"calendar__control calendar__control--next-year"},"\xBB"),prevLabel:t.createElement("span",{className:"calendar__control calendar__control--prev-month"},"\u2039"),prev2Label:t.createElement("span",{className:"calendar__control calendar__control--prev-year"},"\xAB")}),z&&t.createElement("p",null,"Selected date: ",h(z).format("DD MMMM YYYY"))):null)),t.createElement(U,C({className:"summary--small-screens",sortOptions:A,updateSortOrder:y,searchTerm:g},d))),t.createElement("section",{className:"content"},t.createElement(U,C({className:"summary--large-screens",sortOptions:A,updateSortOrder:y,searchTerm:g},d)),r&&t.createElement(Ie,{content:r}),t.createElement("div",{className:"results"},i.length===0&&t.createElement(Re,{className:"no-results",clickAll:()=>er(g,a),searchTerm:g}),i.length>0&&i.map(b=>{if(Array.isArray(b))return null;const R=b.cardType;let k;switch(R){case N.sj.Accommodation:k=et;break;case N.sj.Event:k=Dt;break;case N.sj.News:k=Ht;break;case N.sj.People:k=ht;break;case N.sj.Programme:k=rt;break;case N.sj.Research:k=_t;break}return t.createElement(k,C({key:b.id},b))})),t.createElement(ke,C({},Kt(C(C({},l),d),{updatePageIndex:p,pagesToShow:3})))))))}}}]);