1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="f16972f8-db18-4e8e-89f5-c6e3e5144bfa",e._sentryDebugIdIdentifier="sentry-dbid-f16972f8-db18-4e8e-89f5-c6e3e5144bfa")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6405],{76701:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/archive",function(){return a(32655)}])},72235:function(e,t,a){"use strict";a.d(t,{Z:function(){return o}});var s=a(71248),r=a(68628),n=a(19249),l=a(36497),i=a(67937),o=function(e){let{searchStr:t="",pageSize:a,filter:o,sort:c,facets:u,altFacetFilters:d,resultsId:h,requireSearchStr:p=!1}=e,{t:_}=(0,n.Z)("common"),f=(0,l.useRouter)(),y=f.locale,m=(0,s.useRef)(!0),[x,g]=(0,s.useState)(""),[b,j]=(0,s.useState)(null),[v,S]=(0,s.useState)(0),[Z,$]=(0,s.useState)([]),[w,N]=(0,s.useState)(!1),[C,T]=(0,s.useState)(null),[D,E]=(0,s.useState)(null),[I,k]=(0,s.useState)(null),O=async(e,s)=>{let r=setTimeout(()=>{k(_("label_search_is_searching")),N(!0)},500),n=await fetch("/api/search",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({q:t,filter:`locale = ${y} AND ${o}`,altFacetFilters:d,sort:c,facets:u,limit:a,offset:a*(e-1)})}),l=await n?.json();n?.status===200?(S(Math.ceil((l?.estimatedTotalHits?l?.estimatedTotalHits:0)/a)),N(!1),clearTimeout(r),l.hits?.length>0?($(l.hits),T(l?.facetDistribution),E(l?.altFacetDistributions),s&&setTimeout(()=>{(0,i.Z)({id:h,updateHash:!1,smooth:!1})},500)):(N(!0),$([]),k(_("label_search_no_results")))):n.status>=400&&(console.error(l),N(!0),$([]),k(_("label_search_error")))};return(0,r.LI)(()=>{if(!f.isReady||p&&!t&&m.current)return;let e=f.query?.p?parseInt(f.query?.p):1;j(e),O(e,!m.current),g(t),m.current&&(m.current=!1)},[f]),{currentPage:b,pageCount:v,searchHits:Z,facetDistribution:C,altFacetDistributions:D,showMessage:w,message:I,currentQuery:x}}},32655:function(e,t,a){"use strict";a.r(t),a.d(t,{__N_SSG:function(){return $},default:function(){return w}});var s=a(74817),r=a(71248),n=a(36497),l=a(7425),i=a(96955),o=a(19249),c=a(72235),u=a(1803),d=a(12883),h=a(38801),p=a(21394),_=a(16732),f=a(29030),y=a(44817),m=a(583),x=a(31919),g=a(94388),b=a(84410),j=a(21892);let v=e=>{let{generalSettings:t,page:a,localizations:v}=e,{t:S}=(0,o.Z)("common"),Z=(0,n.useRouter)(),$=Z.locale,w=(0,u.Z)(),N=a.attributes.title,C=a.attributes.title_md,T=a.attributes.description,D=Z.query.ct||"",E=Z.query.y||"",I=Z.query.s||"desc",k=Z.query.rf||"",O=["event","exhibition","interview","video"],R=`content_type IN [${O.join(",")}]`,[A,P]=(0,r.useState)(D),[z,q]=(0,r.useState)(E),[M,F]=(0,r.useState)(I),[G,H]=(0,r.useState)(k),V=()=>{let e=A?`locale = ${$} AND content_type = ${A}`:`locale = ${$} AND ${R}`,t=[];return z&&(G?t.push({name:"year",filter:`${e} AND research_foci IN ["${G}"]`}):t.push({name:"year",filter:e})),G&&(z?t.push({name:"research_foci",filter:`${e} AND year = ${z}`}):t.push({name:"research_foci",filter:e})),t},[L,X]=(0,r.useState)(V()),B=A?`content_type IN [${A}]`:R;G&&(B+=` AND research_foci IN ["${G}"]`),z&&(B+=` AND year = ${z}`);let{currentPage:J,pageCount:Q,searchHits:U,facetDistribution:W,altFacetDistributions:Y,showMessage:K,message:ee}=(0,c.Z)({pageSize:55,filter:B,facets:["content_type","research_foci","year"],altFacetFilters:L,sort:[`sort_date:${M}`],resultsId:"top"}),et=()=>{setTimeout(()=>{document.activeElement.blur()},0)},ea=e=>{let t=e.target.value,a=e.target.name,s=Z.asPath.split("?")?.[1]||"",r=`/${S("routes:slug_archive")}`,n=new URLSearchParams(s);switch(n.has("p")&&n.delete("p"),a){case"content_type":P(t),t?n.set("ct",t):n.delete("ct"),q(""),n.delete("y"),H(""),n.delete("rf"),Z.push(`${r}${n.toString()?`?${n.toString()}`:""}`);break;case"year":q(t),t?n.set("y",t):n.delete("y"),Z.push(`${r}${n.toString()?`?${n.toString()}`:""}`);break;case"research_foci":H(t),t?n.set("rf",t):n.delete("rf"),Z.push(`${r}${n.toString()?`?${n.toString()}`:""}`);break;case"sort":F(t),n.set("s",t),Z.push(`${r}${n.toString()?`?${n.toString()}`:""}`)}};return(0,r.useEffect)(()=>{X(V())},[A,z,G]),(0,s.jsx)(f.Z,{generalSettings:t,page:a,title:N,seo:{metaRobots:"noindex"},localizations:v,children:(0,s.jsxs)(y.Z,{children:[(0,s.jsx)(x.Z,{title:N,titleMd:C,largeTitle:!0}),T&&(0,s.jsx)(g.Z,{body:[{__component:"layouts.text",text:T,_largeText:!0}]}),(0,s.jsx)(d.Z,{id:"search-filters",sx:{gridColumn:{xs:"1 / span 6",md:"1 / span 12",xxl:"7 / span 6"},mb:{xs:-7,xl:-8,xxl:-9}},children:(0,s.jsxs)(m.Z,{columnsTemplate:{xs:"repeat(6, 1fr)",sm:"repeat(6, 1fr)",md:"repeat(12, 1fr)",lg:"repeat(12, 1fr)",xl:"repeat(12, 1fr)",xxl:"repeat(12, 1fr)"},rowGap:4,disableOutsideGutters:!0,children:[(0,s.jsx)(h.Z,{sx:{width:"100%",gridColumn:{xs:"auto / span 6",sm:"4 / span 3",md:"auto / span 3"}},children:(0,s.jsxs)(p.Z,{value:A,name:"content_type",onChange:ea,onClose:et,displayEmpty:!0,inputProps:{"aria-label":S("visually-hidden:content_type")},children:[(0,s.jsx)(_.Z,{value:"",children:S("label_archive_filters_all_c
1ontent_types")}),O.sort((e,t)=>{let a=S(`label_search_content_type_${e.replace(/-/g,"_")}`)?.normalize("NFD").replace(/[\u0300-\u036f]/g,"")||"",s=S(`label_search_content_type_${t.replace(/-/g,"_")}`)?.normalize("NFD").replace(/[\u0300-\u036f]/g,"")||"";return a<s?-1:a>s?1:0}).map(e=>(0,s.jsx)(_.Z,{value:e,children:S(`label_search_content_type_${e.replace(/-/g,"_")}`)},e))]})}),(0,s.jsx)(h.Z,{sx:{width:"100%",gridColumn:{xs:"auto / span 6",sm:"4 / span 3",md:"auto / span 3"}},children:(0,s.jsxs)(p.Z,{value:z,name:"year",onChange:ea,onClose:et,displayEmpty:!0,inputProps:{"aria-label":S("visually-hidden:year")},children:[(0,s.jsx)(_.Z,{value:"",children:S("label_archive_filters_all_years")}),z&&Y?.year?.year?Object.keys(Y.year.year).reverse().map(e=>(0,s.jsx)(_.Z,{value:e,children:e},e)):Object.keys(W?.year||{}).reverse().map(e=>(0,s.jsx)(_.Z,{value:e,children:e},e))]})}),(0,s.jsx)(h.Z,{sx:{width:"100%",gridColumn:{xs:"auto / span 6",sm:"4 / span 3",md:"auto / span 3"}},children:(0,s.jsxs)(p.Z,{value:G,name:"research_foci",onChange:ea,onClose:et,displayEmpty:!0,inputProps:{"aria-label":S("routes:title_research_foci")},disabled:!G&&!Object.keys(W?.research_foci||{}).length,children:[(0,s.jsx)(_.Z,{value:"",children:S("label_archive_filters_all_research_foci")}),G&&Y?.research_foci?.research_foci?Object.keys(Y.research_foci?.research_foci).map(e=>(0,s.jsx)(_.Z,{value:e,children:e},e)):Object.keys(W?.research_foci||{}).map(e=>(0,s.jsx)(_.Z,{value:e,children:e},e))]})}),(0,s.jsx)(h.Z,{sx:{width:"100%",gridColumn:{xs:"auto / span 6",sm:"4 / span 3",md:"auto / span 3"}},children:(0,s.jsxs)(p.Z,{value:M,name:"sort",onChange:ea,onClose:et,displayEmpty:!0,inputProps:{"aria-label":S("visually-hidden:sort")},children:[(0,s.jsx)(_.Z,{value:"desc",children:S("label_archive_filters_sort_desc")}),(0,s.jsx)(_.Z,{value:"asc",children:S("label_archive_filters_sort_asc")})]})})]})}),(0,s.jsx)(d.Z,{id:"search-results",sx:{gridColumn:{xs:"1 / span 6",md:"1 / span 12"}},children:(0,s.jsx)(l.M,{mode:"wait",children:(0,s.jsxs)(i.E.div,{variants:j.FRAMER_MOTION_VARIANTS,initial:"hidden",animate:"enter",exit:"exit",children:[K&&(0,s.jsx)(d.Z,{typography:{xs:"Text20",md:"Text24"},children:ee}),U.length>0&&(0,s.jsx)(b.Z,{entities:U,gridVariant:"fullwidth--col-2-3-3-4",contentCardVariant:{xs:"md",sm:"md",md:"lg",lg:"md",xl:"sm",xxl:"sm"}[w],pagination:{page:J,pageSize:55,pageCount:Q},showSummary:!0,paginateWithQuery:!0,categorizeByYear:!0})]},`Search_Results_${Z.locale}_${Z.asPath.split("#")[0]}`)})})]})})};var S=e=>{let{generalSettings:t,page:a,localizations:r}=e;if((0,n.useRouter)().isReady)return(0,s.jsx)(v,{generalSettings:t,page:a,localizations:r})},Z=a(57394),$=!0,w=e=>{let{statusCode:t,generalSettings:a,page:r,localizations:n}=e;return t>=400?(0,s.jsx)(Z.Z,{generalSettings:a,errorCode:t}):(0,s.jsx)(S,{generalSettings:a,page:r,localizations:n})}}},function(e){e.O(0,[2957,848,3e3,2953,7394,5660,9439,7901,2888,9774,179],function(){return e(e.s=76701)}),_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.