(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[278,97,980],{32863:(B,b,a)=>{"use strict";a.d(b,{Z:()=>P});var t=a(40430),c=a(98656);const P=t.default.article` ${({theme:{colors:u},subjectArea:_,isCompressed:y,className:g})=>{const S=()=>{switch(_){case"law":case"economics":return` border: 1px solid ${u.summerSchool.brand.pink}; & .card-media { background-color: ${u.summerSchool.brand.pink}; } `;case"researchMethodsDataScienceAndMathematics":case"englishLanguage":return` border: 1px solid ${u.summerSchool.brand.brightBlue}; & .card-media { background-color: ${u.summerSchool.brand.brightBlue}; } `;case"accounting":case"finance":return` border: 1px solid ${u.summerSchool.brand.yellow}; & .card-media { background-color: ${u.summerSchool.brand.yellow}; } `;case"internationalRelationsGovernmentPsychologyAndSociety":case"businessAndManagement":return` border: 1px solid ${u.summerSchool.brand.green30}; & .card-media { background-color: ${u.summerSchool.brand.green30}; } `;default:return` border: 1px solid ${u.summerSchool.brand.pink}; & .card-media { background-color: ${u.summerSchool.brand.pink}; } `}};return g==="list"?t.css` ${S}; border: none; position: relative; display: flex; flex-flow: row nowrap; justify-content: space-between; min-width: 26rem; text-align: left; margin-bottom: 2rem; .card-media { padding: 1.4rem 1.6rem; border-radius: 15%; .card-media__icon { display: block; margin: 0 auto; width: 160px; transform: scale(1); transition: transform ${c.Do}; } } .card-content { ${S}; flex 1 0 100%; // max-width: 80%; ${y?c.xx:c.xk} display: flex; flex-flow: column nowrap; justify-content: space-between; height: 100%; border-radius: 3rem; a { ${c.LF} } p { margin: 0 0 1em 0; color: #e40e23; } .card-content__title { ${c.TN} } .card-content__subject-area { margin-bottom: 0.5em; color: ${u.summerSchool.text.default}; } .session { line-height: 1.5; } .session__title { display: block; margin: ${y?"0":null}; font-weight: 700; } .card-content__icon { ${c.IN} } } &:hover, &:focus-within { .card-media > svg { ${c.YD}; } .card-content__icon { ${c.eG} } } .bottom__card { display: flex; justify-content: space-between; align-items: center; & > .card-content__status { margin: 0; font-weight: 700; } } .top__card { display: flex; flex-direction: column; } `:t.css` ${S}; position: relative; display: flex; flex-flow: column nowrap; min-width: 26rem; text-align: left; .card-media { padding: 2.4rem 1.6rem; .card-media__icon { display: block; margin: 0 auto; width: 160px; transform: scale(1); transition: transform ${c.Do}; } } .card-content { ${y?c.xx:c.EF} display: flex; flex-flow: column nowrap; justify-content: space-between; height: 100%; a { ${c.LF} } p { margin: 0 0 1em 0; color: #e40e23; } .card-content__title { ${c.TN} } .card-content__subject-area { margin-bottom: 0.5em; color: ${u.summerSchool.text.default}; } .session { line-height: 1.5; } .session__title { display: block; margin: ${y?"0":null}; font-weight: 700; } .card-content__icon { ${c.IN} } } &:hover, &:focus-within { .card-media > svg { ${c.YD}; } .card-content__icon { ${c.eG} } } .bottom__card { display: flex; justify-content: space-between; align-items: center; & > .card-content__status { margin: 0; font-weight: 700; } } .top__card { display: flex; flex-direction: column; } `}} `},8424:(B,b,a)=>{"use strict";a.d(b,{Z:()=>S});var t=a(56109),c=a(66681),E=a(6043),P=a(31463),u=a(32863),_=a(30689),y=a(8434);const S=({className:O,title:v,link:C,subjectArea:x,sessions:w,iconSize:A,isCompressed:j})=>{if(!x)return null;const N=(0,P._)(x).replaceAll(",",""),U=(0,c.v9)(E.bv),s=O==="list";return t.createElement(u.Z,{className:O,subjectArea:N,isCompressed:j},!j&&!s?t.createElement("div",{className:"card-media"},x&&N?t.createElement(y.J,{icon:N,className:"card-media__icon",size:A}):null):null,t.createElement("div",{className:"card-content"},t.createElement("section",{className:"top__card"},j?null:t.createElement("p",{className:"card-content__subject-area"},t.createElement("span",{className:"sr-only"},"Subject Area: "),x),t.createElement(_.Z,{path:C},t.createElement("h3",{className:"card-content__title"},t.createElement("span",{className:"sr-only"},"Course Title: "),v))),t.createElement("section",{className:"bottom__card"},U?null:t.createElement("p",{className:"card-content__status"},t.createElement("span",{className:"sr-only"},"Status: "),w==null?void 0:w.status),t.createElement("svg",{width:"41",height:"17",viewBox:"0 0 41 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"card-content__icon"},t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M30.8723 0.679769C31.0493 0.4677 31.3648 0.439162 31.5771 0.616028L40.5685 8.10907C40.5849 8.12217 40.6006 8.13643 40.6155 8.15184C40.6525 8.18985 40.6824 8.2326 40.705 8.27825C40.7397 8.3483 40.7568 8.4243 40.7568 8.5C40.7568 8.5757 40.7397 8.6517 40.705 8.72175C40.6824 8.76735 40.6526 8.81005 40.6157 8.84803C40.6007 8.8635 40.5849 8.87781 40.5685 8.89095L31.5771 16.384C31.3648 16.5608 31.0493 16.5323 30.8723 16.3202C30.6953 16.1082 30.7238 15.7929 30.9361 15.616L38.8751 8.99998H1.2571C0.980745 8.99998 0.756714 8.77612 0.756714 8.49998C0.756714 8.22384 0.980745 7.99998 1.2571 7.99998H38.8751L30.9361 1.384C30.7238 1.20713 30.6953 0.891838 30.8723 0.679769Z"})))))}},38049:(B,b,a)=>{"use strict";a.d(b,{Z:()=>O});var t=a(56109),c=a(31463),E=a(40430),P=a(98656);const _=E.default.div` ${({theme:{colors:v},subjectArea:C})=>{var x,w;return E.css` ${P.jd}; ${P.xx}; display: flex; flex-flow: row nowrap; align-items: center; position: relative; transition: background-color ${P.Do}; background-color: ${((x=v==null?void 0:v.subjectAreas)==null?void 0:x[C])||((w=v==null?void 0:v.ui)==null?void 0:w.white)}; & > a { ${P.LF}; } .icon-card__icon { --icon-width: 96px; flex-grow: 0; flex-shrink: 0; flex-basis: var(--icon-width); margin-right: 1.6rem; width: var(--icon-width); } .icon-card__title { ${P.bH}; margin: 0; } &:hover, &:focus-within { background-color: ${v.summerSchool.brand.greys.grey94}; } `}} `;var y=a(30689),g=a(8434);const O=({title:v,url:C,subjectArea:x,className:w})=>{if(!x)return null;const A=(0,c._)(x).replaceAll(",","");return t.createElement(_,{className:w,subjectArea:A},x&&A?t.createElement(g.J,{icon:A,className:"icon-card__icon"}):null,t.createElement(y.Z,{path:C},t.createElement("p",{className:"icon-card__title"},C?v:`${v} (missing url)`)))}},33776:(B,b,a)=>{"use strict";a.d(b,{Z:()=>_});var t=a(56109),c=a(78451),E=a.n(c);const P=()=>t.createElement("span",null);class u extends t.Component{constructor(...g){super(...g),this.state={canRender:!1}}componentDidMount(){this.setState({canRender:!0})}render(){const{children:g,onSSR:S=t.createElement(P,null)}=this.props,{canRender:O}=this.state;return O?g:S}}u.propTypes={children:E().element,onSSR:E().element};const _=u},16954:(B,b,a)=>{"use strict";a.r(b),a.d(b,{default:()=>ge});var t=a(7334),c=a(97664),E=Object.defineProperty,P=Object.defineProperties,u=Object.getOwnPropertyDescriptors,_=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,g=Object.prototype.propertyIsEnumerable,S=(n,l,i)=>l in n?E(n,l,{enumerable:!0,configurable:!0,writable:!0,value:i}):n[l]=i,O=(n,l)=>{for(var i in l||(l={}))y.call(l,i)&&S(n,i,l[i]);if(_)for(var i of _(l))g.call(l,i)&&S(n,i,l[i]);return n},v=(n,l)=>P(n,u(l));const C={title:"entryTitle",standfirst:"standfirst",image:["hero.image.asset.sys.uri","image.asset.sys.uri"],thumbnail:"thumbnailImage.asset.sys.uri",link:"sys.uri",searchTag:"sys.contentTypeId"},x=v(O({},C),{type:()=>t.sj.article,readingTime:"readingTime",author:{$path:"author",$formatting:{title:"entryTitle",id:"sys.id"}},tag:"topic[0].entryTitle",link:"sys.uri",date:n=>n.publishedDate||n.sys.version.published}),w=v(O({},C),{type:()=>t.sj.testimonial,quote:"quote",author:"author",role:"role",tag:()=>"Testimonial",image:"thumbnailImage.asset.sys.uri",link:"sys.uri",date:n=>n.publishedDate||n.sys.version.published}),A=v(O({},C),{subjectArea:"subjectArea.entryTitle",link:["linkURL","sys.uri"],sessions:{status:n=>n.programmeStatus.some(l=>["Open","Limited","Limited spaces"].includes(l.status))?"Open":"Closed"}}),j=v(O({},C),{type:()=>t.sj.video,description:"description",source:"youTubeEmbedCode",image:"thumbnail.asset.sys.uri",tag:"topic[0].entryTitle",watchTime:"watchTime",date:n=>n.publishedDate||n.sys.version.published}),N=v(O({},C),{type:()=>t.sj.event,date:"date",eventType:"type.entryTitle",location:"location.entryTitle",bookingStatus:"bookingStatus",bookingDate:"bookingDate",isFree:"isFree",image:"thumbnailImage.asset.sys.uri"}),U=v(O({},N),{type:()=>t.sj.offerHolderEvent}),s=v(O({},C),{description:"description",link:"asset.sys.uri"}),e={title:"entryTitle",subjectArea:"subjectArea.entryTitle",url:"sys.uri",searchTag:"sys.contentTypeId"},r={default:C,[t.bT.article]:x,[t.bT.programme]:A,[t.bT.caseStudy]:A,[t.bT.testimonial]:w,[t.bT.video]:j,[t.bT.event]:N,[t.bT.offerHoldersEvent]:U,[t.bT.document]:s,[t.bT.subjectAreaPage]:e},f=n=>(0,c.mapEntries)(n,r);var T=a(27074);const{getCurrent:V,getListing:H,getResults:D,getTotalCount:Z,getPaging:se}=T.selectors.selectListing,oe=n=>{const l=H(n);return l==null?void 0:l.title},re=n=>Z(n),ne={currentListing:n=>V(n),currentPageCount:n=>D(n).length,listingTitle:oe,noResultsText:n=>re(n)===0?"No results were found":"",resultsText:n=>{const l=se(n),{pageIndex:i,pageSize:h,totalCount:L,pagesLoaded:F}=l;if(!F)return null;const z=(F[0]||i)*h+1;let ee=z+(F.length*h||h)-1;return ee>L&&(ee=L),`${z} - ${ee} of ${L} results`}},le=n=>(0,c.mapJson)(n,ne);var ie=a(59081),ce=a.n(ie),k=a(94026),ae=a(19626);const ue=(n=globalThis.STATE_TYPE||"immutable")=>{var l,i;return n==="immutable"?((l=globalThis.immutable)==null?void 0:l.fromJSOrdered)||((i=globalThis.immutable)==null?void 0:i.fromJS)||(h=>h):h=>h},q=(n,l,i,h=globalThis.STATE_TYPE||"immutable")=>{const L=ue(h);if(n&&"get"in n&&typeof n.get=="function"&&"getIn"in n&&typeof n.getIn=="function"&&"toJS"in n&&typeof n.toJS=="function")return Array.isArray(l)?L(n.getIn(l,i)):L(n.get(l,i));if(Array.isArray(l)&&n&&typeof n=="object"){const z=(0,ae.qP)(l.join("."),n);return typeof z=="undefined"?i:z}const F=n&&typeof n=="object"?n[l]:void 0;return typeof F=="undefined"?i:F};var me=a(83814),pe=Object.defineProperty,p=Object.defineProperties,d=Object.getOwnPropertyDescriptors,m=Object.getOwnPropertySymbols,W=Object.prototype.hasOwnProperty,I=Object.prototype.propertyIsEnumerable,G=(n,l,i)=>l in n?pe(n,l,{enumerable:!0,configurable:!0,writable:!0,value:i}):n[l]=i,R=(n,l)=>{for(var i in l||(l={}))W.call(l,i)&&G(n,i,l[i]);if(m)for(var i of m(l))I.call(l,i)&&G(n,i,l[i]);return n},Y=(n,l)=>p(n,d(l));const{getSelectedFilters:$,getSearchTerm:X,getCurrentFacet:M,getSearchContext:J,selectCurrentPath:K}=T.selectors,Q={path:({state:n,facet:l})=>{const i=J(n)!=="listings"&&(l||M(n)),h=K(n)||"/search";return i?`${h}/${i}`:h},search:({state:n,facet:l,orderBy:i,term:h,pageIndex:L,pageSize:F})=>{const z=J(n),ee=h?{}:Object.fromEntries(Object.entries($(n,l,z,"js")).map(([Oe,Ee])=>[Oe,Ee==null?void 0:Ee.join(",")])),_e=!h&&q(n,["routing","location","search"]),ve=(0,me.YO)((0,k.parse)(_e));i&&(ve.orderBy=i);const he=X(n),te=(0,me.YO)(Y(R({},ce()(ve,ee)),{term:he}));return he&&(te.term=he),L&&(te.pageIndex=L+1),L===0&&(te.pageIndex=void 0),F&&(te.pageSize=F),(0,k.stringify)(te)},hash:n=>q(n,["routing","location","hash"],"").replace("#","")},ge={results:f,resultsInfo:le,navigate:n=>(0,ae.ZP)(n,Q)}},53762:(B,b,a)=>{"use strict";a.d(b,{Z:()=>y});var t=a(56109),c=a(78451),E=a.n(c),P=a(40430);const u=P.default.span` position: absolute !important; height: 1px; width: 1px; overflow: hidden; clip: rect(1px 1px 1px 1px); /* IE6, IE7 */ clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; /* added line */ `,_=({children:g,text:S,className:O})=>t.createElement(u,{className:`${O} sro-text`},S||g);_.propTypes={text:E().string,children:E().node,className:E().string};const y=_},35830:(B,b,a)=>{"use strict";a.r(b),a.d(b,{default:()=>pe});var t=a(56109),c=a(48504),E=a(61945),P=a(68792),u=a(29516),_=a(27074),y=a(40430);const S=y.default.section` ${()=>y.css` .course-results__no-results { display: flex; flex-flow: column nowrap; grid-area: 1 / 1 / 2 / 3; align-items: center; } .curse-results__list { /* display grid 1 item per row; */ display: grid; grid-template-columns: 1fr; grid-template-rows: auto; grid-gap: 1rem; grid-auto-flow: row; grid-auto-rows: auto; grid-auto-columns: 1fr; grid-template-areas: 'course'; margin: 0; padding: 0; list-style: none; } `} `;var O=a(16954),v=a(52617),C=a(8424),x=a(38049),w=a(11702),A=a(75715),j=a(35121),N=a(33776),U=a(53762),s=a(7334),e=a(23383),r=a(6043),o=a(66681);const T=y.default.div` margin-top: 1rem; ul { display: inline; margin-left: 1rem; padding: 0; list-style-type: none; } li { display: inline; } button { border: none; background: none; cursor: pointer; text-decoration: underline; &.active { color: black; text-decoration: none; cursor: default; } } `,H=({options:p,text:d="Results per page:",separator:m="|",className:W="resultPerPage__container",pageSize:I,updatePageSize:G})=>{const[R,Y]=(0,t.useState)(p||[]);return(0,t.useEffect)(()=>{if(!p||!I)return;const $=[...p];p.some(M=>M.value===I)||($.push({value:I,label:I.toString()}),$.sort((M,J)=>M.value>=J.value?1:-1)),Y($)},[p,I]),!p||!I?null:t.createElement(T,{className:W},t.createElement("span",{className:"resultPerPage__text"},d),t.createElement("ul",{className:"resultPerPage__ul"},R.map(($,X)=>{const M=$.value===I;return t.createElement("li",{key:`resultPerPage-option-${$.label}`,className:"resultPerPage__li"},t.createElement("button",{className:`resultPerPage__button${M?" active":""}`,disabled:M,onClick:()=>G($.value)},$.label),R[X+1]&&t.createElement("span",{className:"resultPerPage__separator"},m))})))};var D=Object.defineProperty,Z=Object.getOwnPropertySymbols,se=Object.prototype.hasOwnProperty,oe=Object.prototype.propertyIsEnumerable,re=(p,d,m)=>d in p?D(p,d,{enumerable:!0,configurable:!0,writable:!0,value:m}):p[d]=m,ne=(p,d)=>{for(var m in d||(d={}))se.call(d,m)&&re(p,m,d[m]);if(Z)for(var m of Z(d))oe.call(d,m)&&re(p,m,d[m]);return p};const le=({})=>{const p=(0,t.useRef)(),[d,m]=(0,t.useState)(),W=(0,o.v9)(r.OW),{results:I,updatePageIndex:G,paging:R,isLoading:Y,filters:$,updatePageSize:X,updateSelectedFilters:M,clearFilters:J}=(0,_.useListing)({mappers:O.default}),[K,Q]=t.useState("card");(0,t.useEffect)(()=>{!W||m({id:s.eA.subjectArea,mappers:O.default})},[W]);const{title:ye,results:fe}=(0,_.useMinilist)(d),[ge]=(0,e.O)({snapRef:p,updatePageIndex:G});(0,t.useEffect)(()=>{if(typeof window!="undefined"){const h=localStorage==null?void 0:localStorage.getItem("lse-summerSchool-view");h&&Q(h)}typeof window=="undefined"&&Q("card")},[K]);const n=()=>{K==="list"?(Q("card"),localStorage==null||localStorage.setItem("lse-summerSchool-view","card")):(Q("list"),localStorage==null||localStorage.setItem("lse-summerSchool-view","list"))},l=K==="list"?"list":void 0,i=K==="list"?"listCard":"courseCard";return t.createElement(S,null,t.createElement(A.Z,{title:"Identify the course that suits you",filters:$,updateSelectedFilters:M,clearFilters:J,allowChangeView:!0,handleChangeView:n,view:K}),t.createElement(N.Z,null,t.createElement("div",{ref:p,id:"focus-target",tabIndex:"-1"},t.createElement(U.Z,null,"New results loaded. Press tab to focus the first result"))),t.createElement("section",{className:"course-results"},t.createElement("div",{className:"wrapper"},t.createElement(H,{options:[{value:12,label:"12"},{value:24,label:"24"},{value:48,label:"48"},{value:1e4,label:"all"}],pageSize:R.pageSize,updatePageSize:X}),Y?t.createElement(j.Z,{style:{display:"grid",justifyContent:"center",padding:"120px 0",minHeight:"480px"}}):t.createElement("section",{className:`${K}`},t.createElement(v.Z,{className:"[ block ]",cardType:i},I.length>0?I.map(h=>t.createElement(C.Z,ne({className:l,key:`${h.title}--${(0,u.Z)()}`},h))):t.createElement("div",{className:"course-results__no-results"},t.createElement("p",null,"No results found."),t.createElement("button",{onClick:J},"Clear all filters"))),(R==null?void 0:R.pageCount)>1?t.createElement(w.Z,{paging:R,updatePageIndex:ge}):null))),t.createElement("section",{className:"[ block ]"},t.createElement("div",{className:"wrapper"},Y?t.createElement(j.Z,{style:{display:"grid",justifyContent:"center",padding:"40px 0",minHeight:"240px"}}):t.createElement(t.Fragment,null,t.createElement("h3",{style:{textAlign:"center",margin:"0 auto 4rem auto"}},ye),t.createElement(v.Z,{cardType:"iconCard"},fe==null?void 0:fe.map(h=>t.createElement(x.Z,ne({key:`${h.title}--${(0,u.Z)()}`,className:"card"},h))))))))};var ie=a(26414),ce=Object.defineProperty,k=Object.getOwnPropertySymbols,ae=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable,de=(p,d,m)=>d in p?ce(p,d,{enumerable:!0,configurable:!0,writable:!0,value:m}):p[d]=m,q=(p,d)=>{for(var m in d||(d={}))ae.call(d,m)&&de(p,m,d[m]);if(k)for(var m of k(d))ue.call(d,m)&&de(p,m,d[m]);return p};const pe=({mappedEntry:p})=>{const{title:d,hero:m,metadata:W}=p||{};return t.createElement(c.Z,null,t.createElement(t.Fragment,null,t.createElement(ie.Z,q({},W)),t.createElement(E.Oo,{categories:[{name:"Course Finder"}]}),t.createElement(P.Z,q({},m)),t.createElement(le,null)))}},83814:(B,b,a)=>{"use strict";a.d(b,{YO:()=>U,ZP:()=>g});var t=Object.defineProperty,c=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,P=Object.prototype.propertyIsEnumerable,u=(s,e,r)=>e in s?t(s,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):s[e]=r,_=(s,e)=>{for(var r in e||(e={}))E.call(e,r)&&u(s,r,e[r]);if(c)for(var r of c(e))P.call(e,r)&&u(s,r,e[r]);return s},y=(s,e,r)=>new Promise((o,f)=>{var T=D=>{try{H(r.next(D))}catch(Z){f(Z)}},V=D=>{try{H(r.throw(D))}catch(Z){f(Z)}},H=D=>D.done?o(D.value):Promise.resolve(D.value).then(T,V);H((r=r.apply(s,e)).next())});class g{static currencyFormat(e){return new Intl.NumberFormat("en-GB",{style:"currency",currency:"GBP",minimumFractionDigits:0}).format(e)}static showChildren(e){e.preventDefault;let r=document.getElementById(e);r.style.display=="block"?r.style.display="none":r.style.display="block"}static camelize(e){return e.replace(/(?:^\w|[A-Z]|\b\w)/g,(r,o)=>o==0?r.toLowerCase():r.toUpperCase()).replace(/\s+/g,"")}static ltrim(e){return e.replace(/^\s+/,"")}static trim(e,r=" "){return r==="]"&&(r="\\]"),r==="\\"&&(r="\\\\"),e.replace(new RegExp("^["+r+"]+|["+r+"]+$","g"),"")}static ArrayToSentence(e,r="and"){return e.length>1?e.slice(0,-1).join(", ")+" "+r+" "+e.slice(-1):e.toString()}static GetComposerContent(e,r){return e?e.filter(f=>f.type===r).map(f=>f.value):null}static dedupeUriSlashes(e){return e.replace("//","~~").split("/").filter(f=>f).join("/").replace("~~","//")}static dedupeArray(e){return e.filter((r,o,f)=>f.indexOf(r)==o)}static stringToArray(e,r=","){return typeof e=="string"?e.split(r).map(o=>g.trim(o)):e}static composedFieldToObject(e){const r={};return e.forEach(o=>r[o.type]=g.getComposerContent(o.type,e)),r}static getComposerContent(e,r){const o=r.find(f=>f.type===e);return o&&o.value}static getFileSize(e){const r=Math.ceil(e*.0009765625),o=Math.round(parseFloat((e*95367432e-14*Math.pow(10,2)).toFixed(2)))/Math.pow(10,2);return r<1e3?r+"KB":o+"MB"}static getFileExtension(e){const o=/(?:\.([^.]+))?$/.exec(e)[1];return o?o.toUpperCase():""}static renderImageAsWebP(e){let r=e;return e&&!e.includes("webp")&&(e.includes("?")?r=e+"&f=webp":r=e+"?f=webp"),r}static decodeEntities(e){var r=/&(nbsp|amp|quot|lt|gt);/g,o={nbsp:" ",amp:"&",quot:'"',lt:"<",gt:">"};return e.replace(r,function(f,T){return o[T]}).replace(/&#(\d+);/gi,function(f,T){var V=parseInt(T,10);return String.fromCharCode(V)})}static keyPress(e,r){var o=e.keyCode||e.which}static GroupBy(e,r){const o=new Map;return e.forEach(f=>{const T=r(f);o.has(T)?o.get(T).push(f):o.set(T,[f])}),o}}function S(s,e={}){return _({type:s},e)}const O=s=>{let e=s;return s.indexOf(".gif")==-1&&(s.indexOf("f=")==-1&&s.indexOf("format=")==-1&&(s.indexOf("?")>-1?e=`${s}&f=webp`:e=`${s}?f=webp`),e.indexOf("q=")==-1&&e.indexOf("quality=")==-1&&(e.indexOf("?")>-1?e=`${e}&q=70`:e=`${e}?q=70`)),e},v=(s,e,r)=>{s.asset&&s.asset.sys&&s.asset.sys.uri&&(s.asset.sys.uri=C(s.asset.sys.uri,e,r))},C=(s,e,r)=>{let o=s,f="?";return s.indexOf("?")>-1&&(f="&"),r&&o.indexOf("w=")==-1&&o.indexOf("width=")==-1&&(o=`${o}${f}w=${r}`,f="&"),e&&o.indexOf("h=")==-1&&o.indexOf("height=")==-1&&(o=`${o}${f}h=${e}`),o};function x(s){return s.reduce((e,r)=>e.concat(r),[]).filter((e,r,o)=>o.indexOf(e)==r)}function w(s,e){return y(this,null,function*(){return fetch(s,e).then(r=>y(this,null,function*(){if(setTimeout(()=>null,0),!r.ok)throw new Error(r.statusText);return r.json().then(o=>o)})).catch(r=>{throw r})})}function A(s){var e=1;return s[0]==="-"&&(e=-1,s=s.substr(1)),function(r,o){var f=r[s]o[s]?1:0;return f*e}}const j=s=>{let e="";const r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";for(var o=0;os&&s.replace(/(?:^\w|[A-Z]|\b\w)/g,(e,r)=>r==0?e.toLowerCase():e.toUpperCase()).replace(/\s+/g,""),U=s=>(Object.entries(s).forEach(([e,r])=>r&&typeof r=="object"&&U(r)||(typeof r=="undefined"||r===null||r==="")&&delete s[e]),s)},23383:(B,b,a)=>{"use strict";a.d(b,{O:()=>c});var t=a(56109);const c=({snapRef:E,updatePageIndex:P})=>{const[u,_]=(0,t.useState)(!1),y=g=>{_(!0),P(g)};return(0,t.useEffect)(()=>{if(!u)return;_(!1);const g=E==null?void 0:E.current;g&&setTimeout(()=>{g.focus(),g.scrollIntoView()},100)},[u]),[y]}},24654:()=>{}}]);