1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5174],{55527:function(e,t,l){l.d(t,{D:function(){return f}});var n=l(85893);l(67294);var i=l(54506),o=l(26277),r=l(62291),a=l(88329),s=l(33316),d=l(86058),u=l(68029),c=l(87536),v=l(59889),h=l(50545),p=l(16166);let f=e=>{var t,l;let{id:f,label:m,name:x,options:g,defaultValues:y,isRequired:b,isDisabled:j}=e,{formState:{errors:w},control:S}=(0,c.Gc)();if(!g||0===g.length)return(0,n.jsx)(n.Fragment,{});let k=(0,p.T)(w);return(0,n.jsx)(i.NI,{id:f,isInvalid:null===(t=k[x])||void 0===t?void 0:t.message,isRequired:b,isDisabled:j,children:(0,n.jsxs)(o.m.fieldset,{children:[(0,n.jsx)(r.T,{children:(0,n.jsx)("legend",{children:m})}),(0,n.jsx)(a.k,{flexWrap:"wrap",children:(0,n.jsx)(c.Qr,{name:x,control:S,defaultValue:null!=y?y:[],render:e=>{let{field:{ref:t,...l}}=e;return(0,n.jsx)(s.c,{...l,children:g.map(e=>{var t;return(0,n.jsx)(d.X,{name:x,value:"".concat(e.id),isDisabled:j,isInvalid:null===(t=k[x])||void 0===t?void 0:t.message,pr:"6",isRequired:b,mb:"2",maxW:{base:"50%",t:"33.33%",d:"25%"},sx:{svg:{display:"none"}},children:(0,n.jsx)(o.m.span,{textStyle:"formOptions",children:(0,n.jsx)(v.H,{json:e.label})})},"".concat(x,"_").concat(e.id))})})}})}),(0,n.jsx)(u.x,{transform:"translateY(-10px)",children:(0,n.jsx)(h.d,{error:null===(l=k[x])||void 0===l?void 0:l.message})})]})})}},50545:function(e,t,l){l.d(t,{d:function(){return r}});var n=l(85893);l(67294);var i=l(54795),o=l(34607);let r=e=>{let t,{error:l}=e,{t:r}=(0,o.l)();return("string"==typeof l?t=r(l):"object"==typeof l&&l.key&&l.values&&(t=r(l.key,l.values)),t&&0!==t.trim().length)?(t=t.charAt(0).toUpperCase()+t.slice(1),(0,n.jsx)(i.J1,{mt:"0.5",children:t})):null}},18768:function(e,t,l){l.d(t,{_:function(){return g}});var n=l(85893),i=l(67294),o=l(87536),r=l(84581),a=l(82206),s=l(4296),d=l(89342),u=l(12519),c=l(54506),v=l(62291),h=l(30980),p=l(8772),f=l(84507),m=l(50545),x=l(16166);let g=e=>{var t,l,g,y,b,j,w;let{settings:S,id:k,label:O,name:I,type:C,isRequired:A,isDisabled:_}=e,R=(0,i.useRef)(null),[N,z]=(0,r.k)(),{t:D}=(0,p.$G)(),{formState:{errors:M},register:V,setValue:L}=(0,o.Gc)(),T={key:"key-".concat(k),name:I,type:C};T.rows=null!==(y=null==S?void 0:S.rows)&&void 0!==y?y:void 0,(null==S?void 0:S.defaultValue)&&(T.defaultValue=null==S?void 0:S.defaultValue),T.className=null!==(b=null==S?void 0:S.className)&&void 0!==b?b:void 0,T.autoComplete=null!==(j=null==S?void 0:S.autoComplete)&&void 0!==j?j:void 0,T.placeholder=null!==(w=null==S?void 0:S.placeholder)&&void 0!==w?w:void 0;let q=(0,x.T)(M);(null===(t=q[I])||void 0===t?void 0:t.message)&&(T.valid=void 0);let F=e=>{(null==S?void 0:S.onChange)&&(null==S||S.onChange.call(null,e)),(null==S?void 0:S.autoResize)&&(e.target.style.height="",e.target.style.height=Math.max((null==S?void 0:S.autoResize)?null==S?void 0:S.autoResize.min:0,Math.min((null==S?void 0:S.autoResize)?null==S?void 0:S.autoResize.min:1e3,e.target.scrollHeight))+"px")};T.type=N?"text":T.type;let{ref:H,onBlur:B,onChange:P}=V(k,{required:A}),Q=(0,n.jsx)(a.I,{name:I,onBlur:e=>{B(e),F(e)},onChange:e=>{P(e),F(e)},...T,ref:e=>{H(e),R.current=e}});return(0,i.useEffect)(()=>{let e=0,t=setInterval(()=>{R.current&&R.current.value&&(L(I,R.current.value),clearInterval(t)),e>6&&clearInterval(t),e+=1},100);return()=>{clearInterval(t)}},[I,L]),"password"===C&&(Q=(0,n.jsxs)(s.B,{size:"md",children:[Q,(0,n.jsx)(d.x,{width:"2.5rem",children:(0,n.jsx)(u.h,{border:"1px",borderColor:"gray.300",colorScheme:"gray",color:"gray.800","aria-label":N?D("ui.button.label.show","Show"):D("ui.button.label.hide","Hide"),size:"sm",onClick:e=>{var t;z.toggle(),null==R||null===(t=R.current)||void 0===t||t.focus()},h:"1.75rem",w:"1.75rem",lineHeight:"1.75rem",fontSize:"1.25rem",minW:"1.75rem",icon:N?(0,n.jsx)(f.E6r,{}):(0,n.jsx)(f.Vvo,{})})})]})),(0,n.jsxs)(c.NI,{id:k,isInvalid:null===(l=q[I])||void 0===l?void 0:l.message,isRequired:A,isDisabled:_,children:[(null==S?void 0:S.hideLabel)?(0,n.jsx)(v.T,{children:(0,n.jsx)(h.l,{htmlFor:k,mb:"0.5",children:O})}):(0,n.jsx)(h.l,{htmlFor:k,mb:"0.5",children:O}),Q,(0,n.jsx)(m.d,{error:null===(g=q[I])||void 0===g?void 0:g.message})]})};t.Z=g},40561:function(e,t,l){l.d(t,{Q:function(){return c}});var n=l(85893);l(67294);var i=l(54506),o=l(88329),r=l(55436),a=l(26277),s=l(87536),d=l(50545),u=l(16166);let c=e=>{var t,l;let{name:c,label:v,isChecked:h,isRequired:p=!1,isReadOnly:f=!1,isDisabled:m=!1,defaultChecked:x=!1,colorScheme:g}
1=e,{control:y,formState:{errors:b}}=(0,s.Gc)(),j=(0,u.T)(b);return(0,n.jsxs)(i.NI,{mt:"1",isRequired:p,isDisabled:m,isReadOnly:f,isInvalid:!!(null===(t=j[c])||void 0===t?void 0:t.message),children:[(0,n.jsx)(o.k,{alignItems:"center",children:(0,n.jsx)(s.Qr,{control:y,name:c,defaultValue:"boolean"==typeof x&&x,render:e=>{var t;let{field:{onChange:l,onBlur:i,value:o}}=e;return(0,n.jsx)(r.r,{display:"flex",mt:"1",onChange:l,onBlur:i,isDisabled:m,isChecked:void 0!==h?!!h:o,isInvalid:!!(null===(t=j[c])||void 0===t?void 0:t.message),colorScheme:g,isRequired:p,isReadOnly:f,children:(0,n.jsx)(a.m.span,{textStyle:"formOptions",display:"inline-block",transform:"translateY(-4px)",children:v})})}})}),(0,n.jsx)(d.d,{error:null===(l=j[c])||void 0===l?void 0:l.message})]})}},16166:function(e,t,l){l.d(t,{T:function(){return n}});let n=e=>e&&Object.keys(e).length>0?Object.keys(e).reduce((t,l)=>Array.isArray(e[l])?{...t,...Object.keys(e[l]).reduce((t,n)=>e[l][n]?{...t,...Object.keys(e[l][n]).reduce((t,i)=>({...t,["".concat(l,"[").concat(n,"].").concat(i)]:e[l][n][i]}),{})}:t,{})}:{...t,[l]:e[l]},{}):{}},62205:function(e,t,l){l.d(t,{W:function(){return H}});var n=l(85893),i=l(67294),o=l(6812),r=l(73359),a=l(59468),s=l(71879),d=l(41457),u=l(5152),c=l.n(u),v=l(16610),h=l(68029),p=l(86561),f=l(21502),m=l(75133),x=l(19109),g=l(28645),y=l(88329),b=l(38491),j=l(55527),w=l(18768),S=l(40561),k=l(34607),O=l(87536),I=l(95496),C=l(74231),A=l(12672),_=l(6088),R=l(47825),N=l(48550),z=l(797),D=l(45286),M=l(39813),V=l(24058),L=l(86020),T=l(22333);let q=c()(()=>l.e(2321).then(l.bind(l,22321)),{loadableGenerated:{webpack:()=>[22321]}}),F=(0,C.Ry)().shape({}),H=e=>{var t,l,u,c,C,H,B,P;let{filter:Q,type:K="listing"}=e,{t:E,i18n:$,getMultilangValue:W}=(0,k.l)(),J=(0,i.useRef)(null),G=(0,R.f)(),[U,X]=(0,i.useState)(!1),[Y,Z]=(0,i.useState)(!1),[ee,et]=(0,i.useState)("clustered"),[el,en]=(0,i.useState)(""),[ei,eo]=(0,i.useState)({where:L.MD.where,orderBy:[{["title_".concat($.language)]:"asc"}]}),[er,ea]=(0,i.useState)(!0),[es,ed]=(0,i.useState)(0),[eu,ec]=(0,i.useState)(F),ev=(0,N.K)(),{data:eh,loading:ep,error:ef,fetchMore:em,refetch:ex}=(0,o.aM)(L.K9,{notifyOnNetworkStatusChange:!0,variables:{...L.MD,orderBy:[{["title_".concat($.language)]:"asc"}]}}),[eg,ey]=(0,r.t)(L.Pr,{variables:{where:L.MD.where}}),eb=(0,O.cI)({mode:"onTouched",resolver:(0,I.X)(eu),defaultValues:{s:"",cluster:!0,and:!1,targetAudience:[],typeOfInstitution:[],typeOfOrganisation:[],accessibility:[]}}),{handleSubmit:ej,reset:ew,watch:eS}=eb,ek=async()=>{},[eO,eI]=(0,i.useState)([]),[eC,eA]=(0,i.useState)([]),[e_,eR]=(0,i.useState)([]),[eN,ez]=(0,i.useState)([]),[eD,eM]=(0,i.useState)(null);(0,i.useEffect)(()=>{let e={};if(null==ev?void 0:ev.taxonomies){var t,l,n,i,o,r,a,s,d,u,c,v,h,p,f,m,x,g,y,b;if(null==ev?void 0:null===(l=ev.taxonomies)||void 0===l?void 0:null===(t=l.typeOfInstitution)||void 0===t?void 0:t.terms){let t=null==ev?void 0:null===(c=ev.taxonomies)||void 0===c?void 0:null===(u=c.typeOfInstitution)||void 0===u?void 0:null===(d=u.terms)||void 0===d?void 0:d.reduce((e,t)=>{var l;return(null===(l=t._count)||void 0===l?void 0:l.locations)>0?[...e,t]:e},[]);(null==t?void 0:t.length)&&(e={...e,typeOfInstitution:[]}),eI(t)}if(null==ev?void 0:null===(i=ev.taxonomies)||void 0===i?void 0:null===(n=i.typeOfOrganisation)||void 0===n?void 0:n.terms){let t=null==ev?void 0:null===(p=ev.taxonomies)||void 0===p?void 0:null===(h=p.typeOfOrganisation)||void 0===h?void 0:null===(v=h.terms)||void 0===v?void 0:v.reduce((e,t)=>{var l;return(null===(l=t._count)||void 0===l?void 0:l.locations)>0?[...e,t]:e},[]);(null==t?void 0:t.length)&&(e={...e,typeOfOrganisation:[]}),eA(t)}if(null==ev?void 0:null===(r=ev.taxonomies)||void 0===r?void 0:null===(o=r.targetAudience)||void 0===o?void 0:o.terms){let t=null==ev?void 0:null===(x=ev.taxonomies)||void 0===x?void 0:null===(m=x.targetAudience)||void 0===m?void 0:null===(f=m.terms)||void 0===f?void 0:f.reduce((e,t)=>{var l;return(null===(l=t._count)||void 0===l?void 0:l.locations)>0?[...e,t]:e},[]);(null==t?void 0:t.length)&&(e={...e,targetAudience:[]}),eR(t)}if(null==ev?void 0:null===(s=ev.taxonomies)||void 0===s?void 0:null===(a=s.accessibility)||void 0===a?void 0:a.terms){let t=null==ev?void 0:null===(b=ev.taxonomies)||void 0===b?void 0:null===(y=b.accessibility)||void 0===y?void 0:null===(g=y.terms)||void 0===g?void 0:g.reduce((e,t)=>
1{var l;return(null===(l=t._count)||void 0===l?void 0:l.locations)>0?[...e,t]:e},[]);(null==t?void 0:t.length)&&(e={...e,accessibility:[]}),ez(t)}ew(e={...e,s:"",cluster:!0,and:!1})}},[null==ev?void 0:ev.taxonomies,ew]),(0,i.useEffect)(()=>{if(Q){var e,t,l,n,i,o,r,a,s;let d=new URLSearchParams(Q),u=d.get("toi")&&null!==(i=null===(e=d.get("toi"))||void 0===e?void 0:e.split(","))&&void 0!==i?i:[],c=d.get("too")&&null!==(o=null===(t=d.get("too"))||void 0===t?void 0:t.split(","))&&void 0!==o?o:[],v=d.get("ta")&&null!==(r=null===(l=d.get("ta"))||void 0===l?void 0:l.split(","))&&void 0!==r?r:[],h=d.get("tacc")&&null!==(a=null===(n=d.get("tacc"))||void 0===n?void 0:n.split(","))&&void 0!==a?a:[];ew({s:null!==(s=d.get("s"))&&void 0!==s?s:"",cluster:"0"!==d.get("cluster"),and:"1"===d.get("and"),typeOfInstitution:u.map(e=>e.toString()),typeOfOrganisation:c.map(e=>e.toString()),targetAudience:v.map(e=>e.toString()),accessibility:h.map(e=>e.toString())})}},[Q,ew]),(0,i.useEffect)(()=>{let e=new URLSearchParams(Q),t=[];return e.get("s")&&t.push(0),e.get("toi")&&t.push(1),e.get("ta")&&t.push(2),e.get("too")&&t.push(3),e.get("tacc")&&t.push(4),("1"===e.get("and")||"0"===e.get("cluster"))&&t.push(4),"0"===e.get("cluster")?(et("unclustered"),null==G||G.setView("unclustered")):null==G||G.setView("clustered"),null==G||G.showCurrentView(),eM(t),X(t.length>0),()=>{null==G||G.setCurrentViewData(void 0,!0),null==G||G.showCurrentView()}},[]),(0,i.useEffect)(()=>{var e,t,l,n,i,o,r;U&&!ey.loading&&!ey.error&&(null===(t=ey.data)||void 0===t?void 0:null===(e=t.locationIds)||void 0===e?void 0:e.ids)&&G&&((null===(i=ey.data)||void 0===i?void 0:null===(n=i.locationIds)||void 0===n?void 0:null===(l=n.ids)||void 0===l?void 0:l.length)?null==G||G.setFilteredViewData(null===(r=ey.data)||void 0===r?void 0:null===(o=r.locationIds)||void 0===o?void 0:o.ids.map(e=>"loc-".concat(e))):null==G||G.setFilteredViewData([]),null==G||G.fitToCurrentViewBounds(),null==G||G.showCurrentView())},[ey.loading,ey.error,ey.data,G,U,ee]);let eV=JSON.stringify(eS());(0,i.useEffect)(()=>{var e,t,l,n,i,o,r,a,s,d,u,c,v,h,p,f,m;let x=eS(),g=[],y=[],b=[],j=null==x?void 0:null===(e=x.typeOfInstitution)||void 0===e?void 0:e.map(e=>parseInt(e));(null==j?void 0:j.length)>0&&(b=[...j],((null==x?void 0:x.and)==="1"||(null==x?void 0:x.and)===!0)&&(y=[...y,...j.map(e=>({terms:{some:{id:{in:[e]}}}}))]));let w=null==x?void 0:null===(t=x.typeOfOrganisation)||void 0===t?void 0:t.map(e=>parseInt(e));(null==w?void 0:w.length)&&(b=[...b,...w],((null==x?void 0:x.and)==="1"||(null==x?void 0:x.and)===!0)&&(y=[...y,...w.map(e=>({terms:{some:{id:{in:[e]}}}}))]));let S=null==x?void 0:null===(l=x.targetAudience)||void 0===l?void 0:l.map(e=>parseInt(e));(null==S?void 0:S.length)&&(b=[...b,...S],((null==x?void 0:x.and)==="1"||(null==x?void 0:x.and)===!0)&&(y=[...y,...S.map(e=>({terms:{some:{id:{in:[e]}}}}))]));let k=null==x?void 0:null===(n=x.accessibility)||void 0===n?void 0:n.map(e=>parseInt(e));(null==k?void 0:k.length)&&(b=[...b,...k],((null==x?void 0:x.and)==="1"||(null==x?void 0:x.and)===!0)&&(y=[...y,...k.map(e=>({terms:{some:{id:{in:[e]}}}}))])),(null==b?void 0:b.length)&&((null==x?void 0:x.and)==="0"||(null==x?void 0:x.and)===!1)&&y.push({terms:{some:{id:{in:b}}}}),(null==x?void 0:null===(i=x.s)||void 0===i?void 0:i.trim())&&x.s.trim().length>2&&g.push({fullText:{contains:x.s,mode:"insensitive"}});let O={...ei};(null==y?void 0:y.length)&&((null==x?void 0:x.and)==="1"||(null==x?void 0:x.and)===!0?g.push({AND:y}):g.push({OR:y})),(null==j?void 0:j.length)||g.push({AND:{primaryTerms:{none:{id:{in:ev.reducedVisibilityTermIds}}}}}),O=(null==g?void 0:g.length)?{...O,where:{AND:g}}:{...O,where:{}},(null==x?void 0:x.cluster)?(null==G||G.setView("clustered"),et("clustered")):(null==G||G.setView("unclustered"),et("unclustered")),JSON.stringify(ei)!==JSON.stringify(O)&&(ex({...O,pageIndex:0,pageSize:L.MD.pageSize}).then(()=>{if(!er){var e;null==J||null===(e=J.current)||void 0===e||e.scrollIntoView({block:"center",behavior:"smooth"})}ea(!1)}),g.length>0?("listing"===K&&eg({variables:{where:O.where}}),(g.length>1||(null==j?void 0:j.length)>0)&&X(!0)):(null==G||G.setCurrentViewData(void 0,!0),null==G||G.showCurrentView(),X(!1)),eo(O),ed(0));let I={s:null!==(r=null==x?void 0:null===(o=x.s)||void 0===o?void 0:o.trim())&&void 0!==r?r:"",and:(null==x?void 0:x.and)==="1"||(null==x?void 0:x.and)===!0,cluster:(null==x?void 0:x.cluster)==="1"||(null==x?void 0:x.cluster)===!0,toi:null!==(a=x.typeOfInstitution)&&void 0!==a?a:[],ta:null!==(s=x.targetAudience)&&void 0!==s?s:[],too:null!==(d=x.typeOfOrganisation)&&void 0!==d?d:[],tacc:null!==(u=x.accessibility)&&void 0!==u?u:[]},C=Object.keys(I).reduce((e,t)=>
1{var l,n;return"s"===t&&(null===(l=I[t])||void 0===l?void 0:l.length)?[...e,"s=".concat(I[t])]:"and"===t&&I[t]?[...e,"and=1"]:"cluster"!==t||I[t]?Array.isArray(I[t])&&(null===(n=I[t])||void 0===n?void 0:n.length)?[...e,"".concat(t,"=").concat(I[t].join(","))]:e:[...e,"cluster=0"]},[]).join("&"),A=Object.keys(I).reduce((e,t)=>{var l,n;return"s"===t&&(null===(l=I[t])||void 0===l?void 0:l.length)?[...e,"s=".concat(encodeURIComponent(I[t]))]:"and"===t&&I[t]?[...e,"and=1"]:"cluster"!==t||I[t]?Array.isArray(I[t])&&(null===(n=I[t])||void 0===n?void 0:n.length)?[...e,"".concat(t,"=").concat(encodeURIComponent(I[t].join(",")))]:e:[...e,"cluster=0"]},[]).join("&");if("listing"===K){let e="en"===$.language?"/en/map":"/karte";if(null===(v=window.history)||void 0===v?void 0:null===(c=v.state)||void 0===c?void 0:c.as){let t=null===(p=window.history)||void 0===p?void 0:null===(h=p.state)||void 0===h?void 0:h.as.split("/").pop();"map"!==t&&"karte"!==t&&(e=null===(m=window.history)||void 0===m?void 0:null===(f=m.state)||void 0===f?void 0:f.as.split("/").slice(0,-1).join("/"))}let t=[location.protocol,"//",location.host,e].join("");window.history.replaceState({...window.history.state,url:"".concat(e).concat(A?"/".concat(A):""),as:"".concat(e).concat(C?"/".concat(C):"")},"","".concat(t).concat(C?"/".concat(C):""))}"embed"===K&&en(C)},[eV,G,eS,ex,ev.reducedVisibilityTermIds,eg,ei,null==$?void 0:$.language,Q,K,ea,er]);let eL=null!==(P=null==eh?void 0:null===(t=eh.locations)||void 0===t?void 0:t.totalCount)&&void 0!==P?P:0,eT=E("locations.totalCount_one","{{totalCount}} location found",{totalCount:eL});eL>1&&(eT=E("locations.totalCount_other","{{totalCount}} locations found",{totalCount:eL}));let eq="embed"===K?E("locations.embed.title.filter","Filter"):E("locations.title","Map");return(0,n.jsxs)(A.M,{children:[(0,n.jsx)(V.Z,{canonical:"".concat("en"===$.language?"/en/map":"/karte"),title:"".concat(eq," - ").concat((0,z.x)(E)),maxDescriptionCharacters:300,description:(0,D.Gf)(W(null==ev?void 0:ev.defaultMetaDesc))}),(0,n.jsxs)(v.r,{w:"100%",templateRows:"1fr auto",templateColumns:"100%",minH:{base:"calc(100vh - 60px)",xl:"calc(100vh - 80px)"},layerStyle:"lightGray",children:[(0,n.jsxs)(h.x,{px:"20px",pt:"0.5em",children:[(0,n.jsx)(T.V,{title:eq,type:"short"}),(0,n.jsxs)(h.x,{bg:"#fff",borderRadius:"lg",overflow:"hidden",p:{base:"20px",md:"30px","2xl":"35px"},children:[(0,n.jsx)(O.RV,{...eb,children:(0,n.jsxs)("form",{noValidate:!0,onSubmit:ej(ek),children:[eD&&(0,n.jsxs)(p.U,{allowToggle:!0,allowMultiple:!0,defaultIndex:eD,children:[(0,n.jsxs)(f.Q,{sx:{"> div":{overflow:Y?"visible !important":void 0}},children:[(0,n.jsx)("h2",{children:(0,n.jsxs)(m.K,{pt:"0",className:"tabbedFocus",onClick:()=>{Z(!Y)},children:[(0,n.jsx)(h.x,{flex:"1",textAlign:"left",textStyle:"larger",fontWeight:"bold",children:E("locations.filter.title.keyword","Search by keyword")}),(0,n.jsx)(x.X,{color:"cm.accentLight",fontSize:"2xl"})]})}),(0,n.jsx)(g.H,{pt:2,pb:"1em",children:(0,n.jsx)(w._,{type:"text",name:"s",id:"s",label:E("quicksearch.placeholder","Keyword"),settings:{hideLabel:!0,placeholder:E("quicksearch.placeholder","Keyword")}})})]}),(null==eO?void 0:eO.length)>0&&(0,n.jsxs)(f.Q,{children:[(0,n.jsx)("h2",{children:(0,n.jsxs)(m.K,{pt:"0",className:"tabbedFocus",children:[(0,n.jsx)(h.x,{flex:"1",textAlign:"left",textStyle:"larger",fontWeight:"bold",children:E("locations.filter.title.typeOfInstitution","Type of institution")}),(0,n.jsx)(x.X,{color:"cm.accentLight",fontSize:"2xl"})]})}),(0,n.jsx)(g.H,{pb:4,children:(0,n.jsx)(j.D,{id:"typeOfInstitution",name:"typeOfInstitution",isRequired:!1,label:E("locations.filter.title.typeOfInstitution","Type of institution"),type:"checkbox",options:(0,M.b)(eO.map(e=>({label:e.name,id:e.id})),"label",W)})})]}),(null==e_?void 0:e_.length)>0&&(0,n.jsxs)(f.Q,{children:[(0,n.jsx)("h2",{children:(0,n.jsxs)(m.K,{pt:"0",className:"tabbedFocus",children:[(0,n.jsx)(h.x,{flex:"1",textAlign:"left",textStyle:"larger",fontWeight:"bold",children:E("locations.filter.title.targetAudience","Target audience")}),(0,n.jsx)(x.X,{color:"cm.accentLight",fontSize:"2xl"})]})}),(0,n.jsx)(g.H,{pb:4,children:(0,n.jsx)(j.D,{id:"targetAudience",n
1ame:"targetAudience",isRequired:!1,label:E("locations.filter.title.targetAudience","Target audience"),type:"checkbox",options:(0,M.b)(e_.map(e=>({label:e.name,id:e.id})),"label",W)})})]}),(null==eC?void 0:eC.length)>0&&(0,n.jsxs)(f.Q,{children:[(0,n.jsx)("h2",{children:(0,n.jsxs)(m.K,{pt:"0",className:"tabbedFocus",children:[(0,n.jsx)(h.x,{flex:"1",textAlign:"left",textStyle:"larger",fontWeight:"bold",children:E("locations.filter.title.typeOfOrganisation","Type of organisation")}),(0,n.jsx)(x.X,{color:"cm.accentLight",fontSize:"2xl"})]})}),(0,n.jsx)(g.H,{pb:4,children:(0,n.jsx)(j.D,{id:"typeOfOrganisation",name:"typeOfOrganisation",isRequired:!1,label:E("locations.filter.title.typeOfOrganisation","Type of organisation"),type:"checkbox",options:(0,M.b)(eC.map(e=>({label:e.name,id:e.id})),"label",W)})})]}),(null==eN?void 0:eN.length)>0&&(0,n.jsxs)(f.Q,{children:[(0,n.jsx)("h2",{children:(0,n.jsxs)(m.K,{pt:"0",className:"tabbedFocus",children:[(0,n.jsx)(h.x,{flex:"1",textAlign:"left",textStyle:"larger",fontWeight:"bold",children:E("locations.filter.title.accessibility","Accessibility Information")}),(0,n.jsx)(x.X,{color:"cm.accentLight",fontSize:"2xl"})]})}),(0,n.jsx)(g.H,{pb:4,children:(0,n.jsx)(j.D,{id:"accessibility",name:"accessibility",isRequired:!1,label:E("locations.filter.title.accessibility","Accessibility Information"),type:"checkbox",options:(0,M.b)(eN.map(e=>({label:e.name,id:e.id})),"label",W)})})]}),(0,n.jsxs)(f.Q,{children:[(0,n.jsx)("h2",{children:(0,n.jsxs)(m.K,{pt:"0",className:"tabbedFocus",children:[(0,n.jsx)(h.x,{flex:"1",textAlign:"left",textStyle:"larger",fontWeight:"bold",children:E("locations.filter.title.settings","Other settings")}),(0,n.jsx)(x.X,{color:"cm.accentLight",fontSize:"2xl"})]})}),(0,n.jsx)(g.H,{pb:4,children:(0,n.jsxs)(y.k,{flexWrap:"wrap",children:[(0,n.jsx)(y.k,{w:{base:"100%",md:"50%"},justifyItems:"center",pr:{md:"10px"},pb:{base:"10px",md:"0"},children:(0,n.jsx)(S.Q,{name:"and",label:(0,n.jsx)("span",{children:E("locations.filter.andRelationship","Locations must match all the given terms")}),defaultChecked:!1})}),(0,n.jsx)(y.k,{w:{base:"100%",md:"50%"},justifyItems:"center",pl:{md:"10px"},children:(0,n.jsx)(S.Q,{name:"cluster",label:(0,n.jsx)("span",{children:E("locations.filter.clusterResult","Cluster result on map")}),defaultChecked:!0})})]})})]})]}),(0,n.jsx)(y.k,{pt:2,justifyContent:"flex-end",w:"100%",children:(0,n.jsx)(b.z,{variant:"ghost",disabled:!U,onClick:()=>{ew({s:"",cluster:!0,and:!1,targetAudience:[],typeOfInstitution:[],typeOfOrganisation:[],accessibility:[]})},children:E("form.filter.reset","Reset all filters")})})]})}),(0,n.jsx)(h.x,{pt:"1.5em",children:(0,n.jsxs)(y.k,{textStyle:"larger",borderColor:"cm.accentDark",borderTop:"1px solid",borderBottom:"1px solid",justifyContent:ep?"center":"flex-start",h:"50px",alignItems:"center",ref:J,children:[(!eh||ep)&&(0,n.jsx)(d.H,{my:"0"}),!ep&&!ef&&(0,n.jsx)(h.x,{children:eT}),ef&&(0,n.jsx)(s.B,{type:"dataLoad"})]})})]}),"listing"===K&&(0,n.jsxs)(h.x,{children:[(null==eh?void 0:null===(u=eh.locations)||void 0===u?void 0:null===(l=u.locations)||void 0===l?void 0:l.length)>0&&(0,n.jsx)(h.x,{mt:"20px",children:null==eh?void 0:null===(c=eh.locations)||void 0===c?void 0:c.locations.map(e=>(0,n.jsx)(h.x,{pb:"20px",children:(0,n.jsx)(a.j,{location:e})},"location-".concat(e.id)))}),(null==eh?void 0:null===(C=eh.locations)||void 0===C?void 0:C.totalCount)>(null==eh?void 0:null===(B=eh.locations)||void 0===B?void 0:null===(H=B.locations)||void 0===H?void 0:H.length)&&!ep&&!ef&&(0,n.jsx)(h.x,{textAlign:"center",mt:"2em",children:(0,n.jsx)(b.z,{onClick:()=>{var e,t;let l=Math.floor((null==eh?void 0:null===(t=eh.locations)||void 0===t?void 0:null===(e=t.locations)||void 0===e?void 0:e.length)/(null===L.MD||void 0===L.MD?void 0:L.MD.pageSize));em({variables:{pageIndex:l}}),ed(l)},variant:"ghost",children:E("locations.loadMore","Load more locations")})})]}),"embed"===K&&(0,n.jsx)(q,{query:el})]}),(0,n.jsx)(_.$,{noBackground:!0})]})]})}},86020:function(e,t,l){l.d(t,{K9:function(){return d},MD:function(){return s},Pr:function(){return a}});var n=l(82729),i=l(68806);function o(){let e=(0,n._)(["\n query locationsIds($where: JSON) {\n locationIds(where: $where) {\n ids\n }\n }\n"]);return o=function(){return e},e}function r(){let e=(0,n._)(["\n query locations(\n $where: JSON\n $orderBy: JSON\n $pageIndex: Int\n $pageSize: Int\n ) {\n locations(\n where: $where\n orderBy: $orderBy\n pageIndex: $pageIndex\n pageSize: $pageSize\n ) {\n totalCount\n locations {\n id\n title\n slug\n description\n primaryTerms {\n id\n taxonomyId\n name\n }\n terms {\n id\n taxonomyId\n name\n }\n heroImage {\n id\n status\n meta\n alt\n credits\n cropPosition\n }\n }\n }\n }\n"]);return r=function(){return e},e}let a=(0,i.Ps)(o()),s={where:{},orderBy:[{id:"asc"}],pageSize:20,pageIndex:0},d=(0,i.Ps)(r())},71879:function(e,t,l){l.d(t,{B:function(){return r}});var n=l(85893);l(67294);var i=l(68029),o=l(34607);let r=e=>{let{type:t}=e,{t:l}=(0,o.l)();return(0,n.jsx)(i.x,{color:"cm.accentLight",mt:"1em",children:l("error.".concat(t))})}},41457:function(e,t,l){l.d(t,{H:function(){return a}});var n=l(85893),i=l(88329),o=l(18498),r=l.n(o);let a=e=>{let{my:t="3em"}=e;return(0,n.jsx)(i.k,{my:t,justifyContent:"center",children:(0,n.jsx)(r(),{color:"#333"})})}},797:function(e,t,l){l.d(t,{U:function(){return i},x:function(){return n}});let n=e=>"".concat(e("logo.culturemap1","CULTURE MAP")," ").concat(e("logo.culturemap2","Lichtenberg")),i=e=>{var t,l,n,i,o,r;if(!e||!(null==e?void 0:e.id)||!(null==e?void 0:null===(t=e.meta)||void 0===t?void 0:t.availableSizes))return;let a=null!==(i=null==e?void 0:null===(n=e.meta)||void 0===n?void 0:null===(l=n.availableSizes.original)||void 0===l?void 0:l.url)&&void 0!==i?i:"";if(a)return null!==(r=Object.keys(null==e?void 0:null===(o=e.meta)||void 0===o?void 0:o.availableSizes).reduce((t,l)=>{var n;if("original"===l)return t;let i=null==e?void 0:null===(n=e.meta)||void 0===n?void 0:n.availableSizes[l];return i.isJpg?{width:i.width,url:i.url}:t},{width:0,url:void 0}).url)&&void 0!==r?r:a}},39813:function(e,t,l){l.d(t,{b:function(){return i}});var n=l(57721);let i=(e,t,l)=>Array.isArray(e)&&0!==e.length?(0,n.K)(e[0])&&t in e[0]?[...e].sort((e,n)=>{let i=l(e[t]).toLowerCase(),o=l(n[t]).toLowerCase();return i<o?-1:i>o?1:0}):(console.error("getMultilangSortedList() Accessor ".concat(t," not found in object")),e):e},770:function(e,t,l){l.d(t,{L:function(){return i}});var n=l(73914),i=l(30320).Nq?n.useLayoutEffect:n.useEffect},73359:function(e,t,l){l.d(t,{t:function(){return d}});var n=l(97582),i=l(73914),o=l(14012),r=l(6812),a=l(770),s=["refetch","reobserve","fetchMore","updateQuery","startPolling","stopPolling","subscribeToMore"];function d(e,t){var l,d=i.useRef(void 0),u=i.useRef(void 0),c=i.useRef(void 0),v=(0,o.J)(t,d.current||{}),h=null!==(l=null==v?void 0:v.query)&&void 0!==l?l:e;u.current=t,c.current=h;var p=(0,n.pi)((0,n.pi)({},v),{skip:!d.current}),f=(0,r.p1)(h,p),m=f.obsQueryFields,x=f.result,g=f.client,y=f.resultData,b=f.observable,j=f.onQueryExecuted,w=b.options.initialFetchPolicy||(0,r._F)(p.defaultOptions,g.defaultOptions),S=i.useReducer(function(e){return e+1},0)[1],k=i.useMemo(function(){for(var e={},t=0;t<s.length;t++)!function(t){var l=m[t];e[t]=function(){return d.current||(d.current=Object.create(null),S()),l.apply(this,arguments)}}(s[t]);return e},[S,m]),O=!!d.current,I=i.useMemo(function(){return(0,n.pi)((0,n.pi)((0,n.pi)({},x),k),{called:O})},[x,k,O]),C=i.useCallback(function(e){d.current=e?(0,n.pi)((0,n.pi)({},e),{fetchPolicy:e.fetchPolicy||w}):{fetchPolicy:w};var t,l,i,a,s=(0,o.J)(u.current,(0,n.pi)({query:c.current},d.current)),v=(l=(t=(0,n.pi)((0,n.pi)({},s),{skip:!1})).query||h,i=(0,r.mp)(g,l,t,!1)(b),a=b.reobserveAsConcast((0,r.RN)(b,g,t,i)),j(i),new Promise(function(e){var t;a.subscribe({next:function(e){t=e},error:function(){e((0,r.KH)(b.getCurrentResult(),y.previousData,b,g))},complete:function(){e((0,r.KH)(b.maskResult(t),y.previousData,b,g))}})})).then(function(e){return Object.assign(e,k)});return v.catch(function(){}),v},[g,h,k,w,b,y,j]),A=i.useRef(C);return(0,a.L)(function(){A.current=C}),[i.useCallback(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return A.current.apply(A,e)},[]),I]}},59678:function(e,t,l){l.d(t,{o:function(){return d}});var n=l(85893),i=l(77260),o=l(81975),r=l(67294),a=l(49381),s=l(26277);let d=(0,a.G)(function(e,t){let{ratio:l=4/3,children:a,className:d,...u}=e,c=r.Children.only(a),v=(0,i.cx)("chakra-aspect-ratio",d);return(0,n.jsx)(s.m.div,{ref:t,position:"relative",className:v,_before:{height:0,content:'""',dis
1play:"block",paddingBottom:(0,o.XQ)(l,e=>`${1/e*100}%`)},__css:{"& > *:not(style)":{overflow:"hidden",position:"absolute",top:"0",right:"0",bottom:"0",left:"0",display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"},"& > img, & > video":{objectFit:"cover"}},...u,children:c})});d.displayName="AspectRatio"},55436:function(e,t,l){l.d(t,{r:function(){return c}});var n=l(85893),i=l(32337),o=l(77260),r=l(67294),a=l(36524),s=l(49381),d=l(81678),u=l(26277);let c=(0,s.G)(function(e,t){let l=(0,d.j)("Switch",e),{spacing:s="0.5rem",children:c,...v}=(0,i.L)(e),{getIndicatorProps:h,getInputProps:p,getCheckboxProps:f,getRootProps:m,getLabelProps:x}=(0,a.O)(v),g=(0,r.useMemo)(()=>({display:"inline-block",position:"relative",verticalAlign:"middle",lineHeight:0,...l.container}),[l.container]),y=(0,r.useMemo)(()=>({display:"inline-flex",flexShrink:0,justifyContent:"flex-start",boxSizing:"content-box",cursor:"pointer",...l.track}),[l.track]),b=(0,r.useMemo)(()=>({userSelect:"none",marginStart:s,...l.label}),[s,l.label]);return(0,n.jsxs)(u.m.label,{...m(),className:(0,o.cx)("chakra-switch",e.className),__css:g,children:[(0,n.jsx)("input",{className:"chakra-switch__input",...p({},t)}),(0,n.jsx)(u.m.span,{...f(),className:"chakra-switch__track",__css:y,children:(0,n.jsx)(u.m.span,{__css:l.thumb,className:"chakra-switch__thumb",...h()})}),c&&(0,n.jsx)(u.m.span,{className:"chakra-switch__label",...x(),__css:b,children:c})]})});c.displayName="Switch"}}]); 2//# sourceMappingURL=5174-0c6d063739758ac1.js.map
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.