1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8307],{22746:(e,t,i)=>{i.d(t,{Zt:()=>m,iw:()=>p,Ay:()=>R});var n=i(6029),r=i(49563),s=i(71023),a=i(23583),o=i(75120),l=i(47180),d=i(48465),c=i(40800),h=i(37238);function m(e){return{image:e.image&&{...e.image,alt:""},labels:e.format?[{text:e.format.title}]:[],link:{url:e.link||"",text:e.title||""}}}function p(e){var t;return{image:(null==(t=e.promo)?void 0:t.image)&&{...e.promo.image,alt:""},labels:e.labels,link:{url:(0,r.A)(e),text:e.title}}}var x=i(9329),g=i(79945),u=i(59085);function j(){let e=(0,x._)(["\n margin-left: 0;\n margin-right: 0;\n "]);return j=function(){return e},e}function f(){let e=(0,x._)(["\n padding-left: 0;\n padding-right: 0;\n "]);return f=function(){return e},e}let b=(0,g.Ay)(d.A).attrs({className:(0,a.I)("body","lg","regular"),$v:{size:"xs",properties:["margin-bottom"]}}).withConfig({componentId:"sc-248c7636-0"})(["padding:0;"]),v="21px",y=g.Ay.div.withConfig({componentId:"sc-248c7636-1"})(["margin-left:-",";margin-right:-",";"," ",""],e=>e.theme.gutter.small,e=>e.theme.gutter.small,e=>e.theme.media("sm")(j()),e=>e.theme.media("md")("\n padding-bottom: ".concat(v,";\n "))),A=(0,g.Ay)(u.xA).attrs({$noGap:!0,as:"a","data-gtm-trigger":"featured_card_link"}).withConfig({componentId:"sc-248c7636-2"})(["&,&:link,&:visited{text-decoration:none;border:none;}"]),w=(0,g.Ay)(u.LX).withConfig({componentId:"sc-248c7636-3"})(["",""],e=>e.theme.media("md")("\n order: ".concat(e.$isReversed?2:1,";\n "))),$=g.Ay.div.attrs({className:(0,a.I)("body","sm","strong")}).withConfig({componentId:"sc-248c7636-4"})(["display:flex;flex-direction:column;transform:translateY(calc(-1 * (1em + 11px)));width:100%;height:100%;min-height:200px;position:relative;padding-left:",";padding-right:",";"," ",""],e=>e.$isReversed?0:e.theme.gutter.small,e=>e.$isReversed?e.theme.gutter.small:0,e=>e.theme.media("sm")(f()),e=>e.theme.media("md")("\n transform: translateY(0);\n ")),I=(0,g.Ay)(d.A).attrs({$h:{size:"md",properties:["padding-left","padding-right"]},$v:{size:"md",properties:["padding-top","padding-bottom"]}}).withConfig({componentId:"sc-248c7636-5"})(["flex:1;color:",";background-color:",";"],e=>e.theme.color(e.$textColor),e=>e.theme.color(e.$background)),z=g.Ay.div.attrs({className:"is-hidden-s is-hidden-m"}).withConfig({componentId:"sc-248c7636-6"})(["position:absolute;top:100%;left:0;right:0;background-color:",";height:",";"],e=>e.theme.color(e.$background),v),k=g.Ay.div.withConfig({componentId:"sc-248c7636-7"})(["display:flex;",""],e=>e.theme.media("md")("\n justify-content: ".concat(e.$isReversed?"flex-end":"flex-start",";\n margin-right: ").concat(e.$isReversed?"-16px":void 0,";\n "))),C=(0,g.Ay)(u.LX).withConfig({componentId:"sc-248c7636-8"})(["",""],e=>e.theme.media("md")("\n order: ".concat(e.$isReversed?1:2,";\n "))),T=e=>{let{image:t,labels:i,children:r,link:s,textColor:a,background:d,isReversed:c=!1,priority:h=!1}=e;return(0,n.jsx)(y,{children:(0,n.jsxs)(A,{href:s.url,$isReversed:c,children:[(0,n.jsx)(w,{$sizeMap:{s:[12],m:[12],l:[7],xl:[7]},$isReversed:c,children:t&&(0,n.jsx)(l.Ay,{image:t,sizes:{lg:.5,md:.5,sm:.5,zero:1},quality:"low",priority:h})}),(0,n.jsx)(C,{$sizeMap:{s:[12],m:[11,2],l:[5],xl:[5]},$isReversed:c,children:(0,n.jsxs)($,{$isReversed:c,children:[i&&i.length>0?(0,n.jsx)(k,{$isReversed:c,children:(0,n.jsx)(o.A,{labels:i})}):(0,n.jsx)("div",{style:{marginBottom:"26px"}}),(0,n.jsx)(I,{$background:d,$textColor:a,children:r}),(0,n.jsx)(z,{$background:d})]})})]})})},N=e=>{var t;let{article:i,background:o,textColor:l,...c}=e,h=(null==(t=i.image)?void 0:t["16:9"])||i.image,m=h&&{...(0,s.a)(h),alt:""},p={url:(0,r.A)({type:"articles",uid:i.uid}),text:i.title},x=[{text:i.format.label}];return(0,n.jsxs)(T,{...c,image:m,link:p,labels:x,background:o,textColor:l,children:[(0,n.jsx)("h2",{className:(0,a.I)("heading","xl","strong","brand"),children:i.title}),i.caption&&(0,n.jsx)("p",{className:(0,a.I)("body","md","regular"),children:i.caption}),i.seriesTitle&&(0,n.jsx)(d.A,{$v:{size:"md",properties:["margin-top"]}
1,children:(0,n.jsxs)("p",{className:(0,a.I)("body","sm","strong"),style:{marginBottom:0},children:[(0,n.jsx)("span",{className:(0,a.I)("body","sm","regular"),children:"Part of"})," ",i.seriesTitle]})})]})},D=e=>{var t;let{exhibition:i,background:r,textColor:s,...o}=e,l=p(i);return(0,n.jsx)(T,{...o,...l,background:r,textColor:s,children:(0,n.jsxs)("div",{children:[(0,n.jsx)("h3",{className:(0,a.I)("heading","xl","strong","brand"),children:i.title}),!i.statusOverride&&i.start&&i.end&&(0,n.jsx)(b,{as:"p",children:(0,n.jsx)(c.A,{start:i.start,end:i.end})}),(0,n.jsx)(h.A,{start:i.start,end:i.end||new Date,statusOverride:i.statusOverride}),(null==(t=i.promo)?void 0:t.caption)&&(0,n.jsx)("p",{className:(0,a.I)("body","md","regular"),style:{marginTop:"1rem"},children:i.promo.caption})]})})},R=e=>"article"===e.type?(0,n.jsx)(N,{"data-component":"featured-card-article",...e}):"exhibition"===e.type?(0,n.jsx)(D,{"data-component":"featured-card-exhibition",...e}):(0,n.jsx)(T,{"data-component":"featured-card-basic",...e})},34444:(e,t,i)=>{i.d(t,{A:()=>h,F:()=>c});var n=i(6029),r=i(79945),s=i(23583),a=i(24785),o=i(41442),l=i(48465);let d=(0,r.Ay)(l.A).attrs({$v:{size:"md",properties:["padding-top","padding-bottom"]},$h:{size:"md",properties:["padding-left","padding-right"]}}).withConfig({componentId:"sc-27d628c7-0"})(["background-color:",";"],e=>e.theme.color("yellow")),c=(0,r.Ay)(l.A).attrs({className:(0,s.I)("body","lg","strong"),$h:{size:"xs",properties:["margin-right"]}}).withConfig({componentId:"sc-27d628c7-1"})(["float:left;"]),h=e=>{let{title:t,items:i,hasBiggerHeading:r,children:h}=e;return(0,n.jsxs)("div",{"data-component":"info-box",children:[(0,n.jsx)("h2",{className:r?(0,s.I)("heading","xl","strong","brand"):(0,s.I)("heading","lg","strong","brand"),children:t}),(0,n.jsxs)(d,{children:[i.map((e,t)=>{let{title:i,description:r,icon:d}=e;return(0,n.jsxs)("div",{children:[d&&(i||r)&&(0,n.jsx)(c,{children:(0,n.jsx)(a.A,{icon:d})}),i&&(0,n.jsx)("h3",{className:(0,s.I)("body","md","strong"),children:i}),r&&(0,n.jsx)(l.A,{$v:{size:"sm",properties:["margin-bottom"]},className:(0,s.I)("body","md","regular"),children:(0,n.jsx)(o.A,{html:r})})]},t)}),h]})]})}},35577:(e,t,i)=>{i.d(t,{A:()=>x});var n=i(9329),r=i(6029),s=i(79945),a=i(23583),o=i(85023),l=i(86796),d=i(48465);function c(){let e=(0,n._)(["\n width: 58px;\n "]);return c=function(){return e},e}function h(){let e=(0,n._)(["\n width: 64px;\n "]);return h=function(){return e},e}let m=(0,s.Ay)(d.A).attrs({$v:{size:"xs",properties:["margin-bottom"]}}).withConfig({componentId:"sc-1454a6d-0"})(["display:block;width:60px;height:16px;background:",";"," ",""],e=>e.theme.color("yellow"),e=>e.theme.media("sm")(c()),e=>e.theme.media("md")(h())),p=s.Ay.h2.withConfig({componentId:"sc-1454a6d-1"})(["margin-bottom:0;.bg-dark &{color:",";}"],e=>e.theme.color("white")),x=e=>{let{title:t,gridSize:i}=e;return(0,r.jsx)("div",{"data-component":"section-header",className:(0,a.I)("heading","xl","strong","brand"),children:(0,r.jsx)(o.A,{condition:!!i,wrapper:e=>(0,r.jsx)(l.Bf,{gridSizes:i||(0,l.H8)(),children:e}),children:(0,r.jsxs)("div",{children:[(0,r.jsx)(m,{}),(0,r.jsx)(p,{children:t})]})})})}},41404:(e,t,i)=>{i.d(t,{A:()=>C});var n=i(6029),r=i(82203),s=i.n(r),a=i(24785),o=i(48465),l=i(79945),d=i(23583),c=i(26995);let h=l.Ay.div.withConfig({componentId:"sc-424b6a3c-0"})(["",""],e=>"\n margin: 0 -".concat(e.theme.containerPadding,";\n transition: margin ").concat(e.theme.transitionProperties,";\n\n ").concat(e.theme.media("sm")("\n margin: 0 calc(-".concat(e.theme.containerPadding," + 1rem);
1\n ")),"\n\n\n ").concat(e.theme.media("lg")("\n margin-right: 0;\n "),"\n ")),m=l.Ay.div.withConfig({componentId:"sc-424b6a3c-1"})(["display:flex;list-style:none;padding:0;margin:0;overflow-x:auto;padding-top:0.5rem;padding-bottom:0.5rem;margin-top:-0.5rem;margin-bottom:-0.5rem;padding-left:",";",""],e=>e.theme.containerPadding,e=>"\n ".concat(e.theme.media("sm")("\n padding-left: calc(".concat(e.theme.containerPadding," - 1rem);\n ")),"\n ")),p=l.Ay.div.attrs(e=>({className:e.$selected?(0,d.I)("body","md","strong"):(0,d.I)("body","md","regular")})).withConfig({componentId:"sc-424b6a3c-2"})(["padding:0;margin:0;flex-shrink:0;border-bottom:",";a{text-decoration:none;&:focus-visible{display:block;",";}}"],e=>e.$selected?"3px solid ".concat(e.theme.color("yellow")):"1px solid ".concat(e.theme.color(e.$hideBorder?"transparent":e.$isWhite?"neutral.600":"neutral.300")),c.Y),x=l.Ay.div.withConfig({componentId:"sc-424b6a3c-3"})(["&:focus-visible{",";}"],c.Y),g=(0,l.Ay)(o.A).attrs(e=>({as:"span",className:(0,d.x)({selected:e.$selected}),$h:{size:"md",properties:["padding-left","padding-right"]},$v:{size:"sm",properties:["padding-top","padding-bottom"]}})).withConfig({componentId:"sc-424b6a3c-4"})(["display:block;position:relative;z-index:1;cursor:pointer;color:",";transition:all ",";&::after{content:'';position:absolute;top:100%;height:3px;left:0;width:0;transition:width 200ms ease;}&:hover,&:focus{&::after{width:100%;background-color:",";@media (pointer:coarse){width:0;}}}&.selected::after{width:100%;background-color:transparent;",":focus-within &{background-color:",";}}"],e=>e.theme.color(e.$isWhite?"white":"black"),e=>e.theme.transitionProperties,e=>e.theme.color(e.$selected?"yellow":"lightYellow"),p,e=>e.theme.color("yellow")),u=l.Ay.div.withConfig({componentId:"sc-424b6a3c-5"})(["font-weight:700;height:0;visibility:hidden;"]),j=l.Ay.span.withConfig({componentId:"sc-424b6a3c-6"})(["span{top:6px;}"]),f=e=>{let{hideBorder:t,label:i,items:r,currentSection:l,isWhite:d}=e;return(0,n.jsx)(m,{"aria-label":i,children:r.map(e=>{let i=l===e.id;return(0,n.jsx)(p,{$selected:i,$hideBorder:t,children:(0,n.jsx)(s(),{scroll:!1,href:"string"==typeof e.url?e.url:e.url.href,children:(0,n.jsxs)(g,{$selected:i,"aria-current":i?"page":"false",$isWhite:d,onClick:e=>{i||e.target.scrollIntoView({behavior:"smooth",inline:"center",block:"nearest"})},children:[(0,n.jsx)(u,{children:e.text}),e.icon&&(0,n.jsx)(o.A,{as:"span",$h:{size:"xs",properties:["margin-right"]},children:(0,n.jsx)(j,{children:(0,n.jsx)(a.A,{icon:e.icon})})}),e.text]})})},e.id)})})};var b=i(81278),v=i(55729),y=i(67),A=i(85564),w=i(77647),$=i(85023);let I=e=>{var t;return(null!=(t=e.url)?t:"#tabpanel-".concat(e.id)).replace(/^#/,"")},z=(e,t)=>e.find(e=>e.id===t||I(e)===t),k=e=>{let{label:t,items:i,hideBorder:r,selectedTab:s,setSelectedTab:l,isWhite:d}=e,{isEnhanced:c}=(0,y.Us)(),h=(0,b.useRouter)(),f=(0,v.useRef)(null),k=(0,v.useRef)(!1);function C(e){var t;let i=null==f||null==(t=f.current)?void 0:t.querySelector("#tab-".concat(e));null==i||i.scrollIntoView({behavior:"smooth",inline:"start",block:"nearest"})}function T(e){let t="#".concat(e.id);window.location.hash!==t&&h.push("".concat(window.location.pathname).concat(window.location.search).concat(t),void 0,{shallow:!0,scroll:!1})}function N(e){var t;let n=null==f||null==(t=f.current)?void 0:t.querySelector("#tab-".concat(i[e].id));null==n||n.focus()}(0,v.useEffect)(()=>{if(!k.current){k.current=!0;let e=window.location.hash.slice(1),t=e?z(i,e):i[0];if(t&&t.id!==s){l(t.id),C(t.id);return}}let e=i.find(e=>e.id===s),t=window.location.hash.slice(1);e&&t===I(e)&&t!==e.id&&h.replace("".concat(window.location.pathname).concat(window.location.search,"#").concat(e.id),void 0,{shallow:!0,scroll:!1})},[s]),(0,v.useEffect)(()=>{let e=()=>{let e=window.location.hash.slice(1),t=e?z(i,e):i[0];t&&t.id!==s&&(l(t.id),C(t.id))};return window.addEventListener("hashchange",e),()=>window.removeEventListener("hashchange",e)},[i,s,l]);let D=e=>{let t=[37,"ArrowLeft"],n=[39,"ArrowRight"],r=[36,"Home"],a=[35,"End"],o=e.key||e.keyCode;if(![...t,...n,...r,...a].includes(o))return;e.preventDefault();let d=i.find(e=>e.id===s)||i[0],c=i.indexOf(d),h=i[c+1]?c+1:0,m=i[c-1]?c-1:i.length-1;
1t.includes(o)&&(T(i[m]),l(i[m].id),N(m)),n.includes(o)&&(T(i[h]),l(i[h].id),N(h)),r.includes(o)&&(T(i[0]),l(i[0].id),N(0)),a.includes(o)&&(T(i[i.length-1]),l(i[i.length-1].id),N(i.length-1))};return(0,n.jsx)(m,{role:c?"tablist":void 0,ref:f,"aria-label":t,children:i.map((e,i)=>{let h=c&&s===e.id,m="#".concat(I(e));return(0,n.jsx)(p,{id:e.id,$selected:h,$isWhite:d,$hideBorder:r,onClick:t=>{e.id!==s&&(t.target.scrollIntoView({behavior:"smooth",inline:"start",block:"nearest"}),T(e),l(e.id))},onKeyDown:D,children:(0,n.jsx)(x,{role:c?"tab":void 0,id:"tab-".concat(e.id),tabIndex:e.id===s?0:-1,"aria-controls":"tabpanel-".concat(e.id),"aria-selected":e.id===s,children:(0,n.jsxs)(g,{$selected:h,$isWhite:d,...(0,w.J)({label:e.text,...e.dataGtmProps,trigger:"tab_".concat((0,A.uc)(t)),"position-in-list":"".concat(i+1)}),children:[(0,n.jsx)(u,{children:e.text}),(0,n.jsxs)($.A,{condition:!c,wrapper:e=>(0,n.jsx)("a",{href:m,children:e}),children:[e.icon&&(0,n.jsx)(o.A,{as:"span",$h:{size:"xs",properties:["margin-right"]},children:(0,n.jsx)(j,{children:(0,n.jsx)(a.A,{icon:e.icon})})}),e.text]})]})})},e.id)})})},C=e=>{let{tabBehaviour:t}=e;return(0,n.jsx)(h,{"data-component":"tabs",children:"navigate"===t?(0,n.jsx)(f,{...e}):(0,n.jsx)(k,{...e})})}},42371:(e,t,i)=>{i.r(t),i.d(t,{__N_SSP:()=>es,default:()=>eo,getRangeForPeriod:()=>ea});var n=i(6029),r=i(65188),s=i(92881),a=i(94451),o=i(50933),l=i(45459),d=i(65894),c=i(23583),h=i(24758),m=i(62587),p=i(86796),x=i(51750),g=i(59085),u=i(48465),j=i(74969),f=i(10397),b=i(49337),v=i(27214),y=i(72187);i(69342);var A=i(30294),w=i(94129),$=i(22746),I=i(35577),z=i(79945),k=i(42875),C=i(24785),T=i(34444),N=i(78188);let D=()=>{let e=(0,z.DP)();return(0,n.jsxs)(u.A,{$v:{size:"md",properties:["margin-top","margin-bottom"]},style:{maxWidth:e.sizes.md},children:[(0,n.jsxs)(T.A,{title:"Exhibitions are closed today",items:[],hasBiggerHeading:!0,children:[(0,n.jsx)(T.F,{children:(0,n.jsx)(C.A,{icon:k.A})}),(0,n.jsxs)("p",{className:(0,c.I)("body","md","regular"),children:["Our exhibitions are closed today, but our"," ",(0,n.jsx)("a",{href:"/visit-us/".concat(s.po.cafe),children:"caf\xe9"})," and"," ",(0,n.jsx)("a",{href:"/visit-us/".concat(s.po.shop),children:"shop"})," are open for your visit."]}),(0,n.jsx)(T.F,{children:(0,n.jsx)(C.A,{icon:y.A})}),(0,n.jsxs)("p",{className:(0,c.I)("body","md","regular"),style:{marginBottom:0},children:["Galleries open TuesdayâSunday,"," ",(0,n.jsx)("a",{href:"/visit-us/".concat(s.po.openingTimes),children:"see full opening times"}),"."]})]}),(0,n.jsx)(u.A,{$v:{size:"md",properties:["margin-top"]},children:(0,n.jsx)(N.A,{url:"/exhibitions",name:"View all exhibitions"})}),(0,n.jsx)(u.A,{$v:{size:"sm",properties:["margin-top"]},children:(0,n.jsx)(N.A,{url:"/events",name:"View all events"})})]})};var R=i(80791),S=i(2721);let F=e=>{let{dateRange:t,period:i}=e,{start:r,end:s}=t;return(0,n.jsxs)(u.A,{$v:{size:"xs",properties:["margin-bottom"]},as:"p",className:(0,c.I)("body","md","regular"),children:["today"===i&&(0,n.jsx)(S.A,{variant:"date",date:r}),"this-weekend"===i&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("time",{dateTime:(0,R.Yq)(r),children:(0,R.F$)(r)})," â ",(0,n.jsx)("time",{dateTime:(0,R.Yq)(s),children:(0,R.F$)(s)})]}),"current-and-coming-up"===i&&(0,n.jsxs)(n.Fragment,{children:["From ",(0,n.jsx)(S.A,{variant:"date",date:r})]})]})};var P=i(55729),M=i(67),B=i(55e3),H=i(41404),_=i(21832);let E={0:"January",1:"February",2:"March",3:"April",4:"May",5:"June",6:"July",7:"August",8:"September",9:"October",10:"November",11:"December"};function L(e,t){return e.getUTCFullYear()===t.year&&E[e.getUTCMonth()]===t.month}function O(e){let{times:t}=e;return(0,r.Py)(t.filter(e=>(0,r.GJ)(e.range.startDateTime)||(0,r.GJ)(e.range.endDateTime)).map(e=>e.range.startDateTime))}function G(e){let{times:t}=e;return(0,r.ZI)(t.filter(e=>(0,r.GJ)(e.range.startDateTime)||(0,r.GJ)(e.range.endDateTime)).map(e=>e.range.startDateTime))}let W=e=>{let{events:t,links:i}=e,{isEnhanced:s}=(0,M.Us)(),a=(0,P.useMemo)(()=>(function(e){return(function(e){let{startDate:t,endDate:i}=e;if(!t||!i)return[];console.assert(t<=i,"Asked to find months in date range start=".concat(t,", end=").concat(i));let n=[];return(0,r.cf)({startDate:t,endDate:i}
1).forEach(e=>{let t={year:e.getUTCFullYear(),month:E[e.getUTCMonth()]};if(n.length){let e=n[n.length-1];(e.year!==t.year||e.month!==t.month)&&n.push(t)}else n.push(t)}),n})({startDate:(0,r.Py)(e.map(O).filter(_.EA)),endDate:(0,r.ZI)(e.map(G).filter(_.EA))}).map(t=>{let i=e.map(e=>{let i=e.times.map(e=>e.range).filter(e=>L(e.startDateTime,t)&&(0,r.GJ)(e.startDateTime)||L(e.endDateTime,t)&&(0,r.GJ)(e.endDateTime));return i.length>0?{event:e,earliestRangeInMonth:i.reduce((e,t)=>e.startDateTime<t.startDateTime?e:t)}:void 0}).filter(_.EA).sort((e,t)=>{let i=e.earliestRangeInMonth,n=t.earliestRangeInMonth;return i.startDateTime>n.startDateTime?1:i.startDateTime<n.startDateTime?-1:i.endDateTime>n.endDateTime?1:-1}).map(e=>e.event);return{month:t,events:i}})})(t).map(e=>{let{month:t,events:i}=e;return{id:"".concat(t.month,"-").concat(t.year).toLowerCase(),text:t.month,month:t,events:i.concat(B.p)}}).slice(0,4).filter(e=>e.events.length>0),[t]),[o,l]=(0,P.useState)();return 0===a.length?null:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(u.A,{$v:{size:"sm",properties:["margin-bottom"]},children:(0,n.jsx)(x.m,{children:(0,n.jsx)(g.xA,{children:(0,n.jsx)(g.LX,{$sizeMap:(0,p.H8)(),children:(0,n.jsx)(H.A,{tabBehaviour:"switch",label:"Month control",selectedTab:o||a[0].id,items:a,setSelectedTab:l})})})})}),a.map(e=>{let{id:t,month:r,events:l}=e;return(0,n.jsxs)(g.LX,{$sizeMap:(0,p.H8)(),role:"tabpanel",id:"tabpanel-".concat(t),"aria-labelledby":"tab-".concat(t),hidden:s&&t!==(o||a[0].id),children:[(0,n.jsx)(x.m,{as:"h2",className:(0,c.x)({"is-hidden":!!s}),children:r.month}),(0,n.jsx)(A.A,{items:l,itemsPerRow:3,links:i,fromDate:function(e){let{year:t,month:i}=e;return new Date("1 ".concat(i," ").concat(t))}(r)})]},t)})]})};var J=i(47180),V=i(82625);let Y=z.Ay.div.withConfig({componentId:"sc-6547ef10-0"})(["border-radius:","px;overflow:hidden;"],e=>e.theme.borderRadiusUnit),U=z.Ay.p.attrs({className:(0,c.I)("body","md","regular")}).withConfig({componentId:"sc-6547ef10-1"})(["margin:0;padding:0;"]),X=z.Ay.div.attrs({className:(0,c.I)("body","sm","strong")}).withConfig({componentId:"sc-6547ef10-2"})(["display:flex;align-items:center;"]),q=e=>{let{id:t,url:i,title:r,image:s,description:a,metaText:o,metaIcon:l}=e;return(0,n.jsx)(V.A_,{"data-component":"facility-promo",id:t,href:i,children:(0,n.jsxs)("div",{children:[(0,n.jsx)(Y,{children:(0,n.jsx)(J.Ay,{image:{...s,alt:""},sizes:{lg:1/4,md:1/3,sm:.5,zero:1},quality:"low"})}),(0,n.jsx)(V.bw,{children:(0,n.jsxs)("div",{children:[(0,n.jsx)("h3",{className:(0,c.I)("heading","md","strong","brand"),children:r}),(0,n.jsx)(U,{children:a}),o&&(0,n.jsx)(u.A,{$v:{size:"sm",properties:["margin-top"]},children:(0,n.jsxs)(X,{children:[l&&(0,n.jsx)(u.A,{as:"span",$h:{size:"xs",properties:["margin-right"]},children:(0,n.jsx)(C.A,{icon:l})}),(0,n.jsx)("span",{children:o})]})})]})})]})})};var Z=i(82203),K=i.n(Z),Q=i(59698);let ee=z.Ay.div.withConfig({componentId:"sc-43a96164-0"})(["display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;"]),et=z.Ay.div.withConfig({componentId:"sc-43a96164-1"})(["display:flex;align-items:center;flex-wrap:wrap;"]),ei=e=>{let{activeId:t,todaysOpeningHours:i}=e;return(0,n.jsx)(u.A,{$v:{size:"lg",properties:["padding-top"]},children:(0,n.jsxs)(x.m,{children:[(0,n.jsx)(g.xA,{children:(0,n.jsx)(g.LX,{$sizeMap:{s:[12],m:[12],l:[12],xl:[12]},children:(0,n.jsxs)(ee,{children:[(0,n.jsx)(Q.aW,{$isOfficialLandingPage:!0,children:"Whatâs on"}),(0,n.jsxs)(et,{children:[i&&(0,n.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,n.jsxs)(u.A,{as:"span",$h:{size:"sm",properties:["margin-right"]},className:(0,c.I)("body","md","strong"),children:["Galleries",i.isClosed?" closed ":" open ","today"]}),!i.isClosed&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(u.A,{style:{display:"flex"},as:"span",$h:{size:"xs",properties:["margin-right"]},children:(0,n.jsx)(C.A,{icon:y.A})}),(0,n.jsx)(u.A,{as:"span",$h:{size:"sm",properties:["margin-right"]},className:(0,c.I)("body","md","regular"),children:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("time",{children:i.opens})," â ",(0,n.jsx)("time",{children:i.closes})]})})]})]}),(0,n.jsx)(K(),{href:"/visit-us/".concat(s.po.openingTimes),className:(0,
1c.I)("body","md","strong"),children:"Full opening times"})]})]})})}),(0,n.jsx)(g.xA,{children:(0,n.jsx)(g.LX,{$sizeMap:{s:[12],m:[10],l:[7],xl:[7]},children:(0,n.jsx)(u.A,{$v:{size:"xs",properties:["margin-top","margin-bottom"]},children:(0,n.jsx)(H.A,{tabBehaviour:"navigate",label:"date filter",currentSection:t,items:en})})})})]})})},en=[{id:"current-and-coming-up",url:"/".concat(s.po.whatsOn),text:"Everything"},{id:"today",url:"/".concat(s.po.whatsOn,"/today"),text:"Today"},{id:"this-weekend",url:"/".concat(s.po.whatsOn,"/this-weekend"),text:"This weekend"}],er=e=>{var t;let{pageId:i,period:r,exhibitions:z,events:k,availableOnlineEvents:C,dateRange:T,jsonLd:N,featuredText:R,tryTheseToo:S}=e,P=function(e){let t={[s.hm.readingRoom.id]:{metaIcon:y.A,metaText:"Open during gallery hours"}};return e.map(e=>({...e,...t[e.id]?t[e.id]:{}}))}(S),M=z[0],B=en.find(e=>e.id===r),H=B?"Whatâs on".concat(" - ".concat(B.text)):"Whatâs on",{collectionVenues:_}=(0,o.f5)(),E=(0,d.H2)(_),L=(0,l._v)(E,s.hm.galleries.id),O=L&&(0,l.vS)(L),G="today"===r?(0,v.oW)(k):"this-weekend"===r?(0,v.iF)(k):k,J="today"===r&&(null==O?void 0:O.isClosed)?[]:z;return(0,n.jsx)(b.A,{title:H,description:a.bt.whatsOn,url:{pathname:"/whats-on"},jsonLd:N,openGraphType:"website",siteSection:"whats-on",image:M&&(null==(t=M.promo)?void 0:t.image),apiToolbarLinks:[(0,m.Cj)(i)],children:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(ei,{activeId:r,todaysOpeningHours:O,featuredText:R}),(0,n.jsxs)(p.Bf,{gridSizes:(0,p.H8)(),children:[(0,n.jsx)(F,{dateRange:T,period:r}),"today"===r&&(null==O?void 0:O.isClosed)&&(0,n.jsx)(D,{})]}),(0,n.jsxs)(u.A,{$v:{size:"sm",properties:["margin-top"]},children:["current-and-coming-up"===r&&(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(u.A,{$v:{size:"sm",properties:["padding-top"]},children:[(0,n.jsxs)(f.A,{children:[(0,n.jsx)(j.A,{children:(0,n.jsx)(I.A,{title:"Exhibitions",gridSize:(0,p.H8)()})}),(0,n.jsx)(j.A,{children:(0,n.jsx)(u.A,{$v:{size:"xl",properties:["margin-bottom"]},children:M?(0,n.jsx)(p.Bf,{gridSizes:(0,p.H8)(),children:(0,n.jsx)($.Ay,{type:"exhibition",exhibition:M,background:"warmNeutral.300",textColor:"black",priority:!0})}):(0,n.jsx)(p.Bf,{gridSizes:(0,p.H8)(),children:(0,n.jsx)("p",{children:"There are no current exhibitions"})})})}),(0,n.jsx)(A.A,{items:z.slice(1),itemsPerRow:3,links:[{text:"View all exhibitions",url:"/exhibitions"}],optionalComponent:(0,n.jsx)(h.A,{})})]}),(0,n.jsxs)(f.A,{children:[(0,n.jsx)(j.A,{children:(0,n.jsx)(I.A,{title:"Events",gridSize:(0,p.H8)()})}),(0,n.jsx)(j.A,{children:k.length>0?(0,n.jsx)(W,{events:k,links:[{text:"View all events",url:"/events"}]}):(0,n.jsx)(p.Bf,{gridSizes:(0,p.H8)(),children:(0,n.jsx)("p",{children:"There are no upcoming events"})})})]}),(0,n.jsxs)(f.A,{children:[(0,n.jsx)(j.A,{children:(0,n.jsx)(I.A,{title:"Catch up",gridSize:(0,p.H8)()})}),(0,n.jsx)(j.A,{children:C.length>0?(0,n.jsx)(A.A,{items:C,itemsPerRow:3,links:[{text:"View all catch up events",url:"/events/past?availableOnline=true"}]}):(0,n.jsx)(p.Bf,{gridSizes:(0,p.H8)(),children:(0,n.jsx)("p",{children:"There are no upcoming catch up events"})})})]})]})}),"current-and-coming-up"!==r&&(J.length>0||G.length>0)&&(0,n.jsxs)(f.A,{children:[(0,n.jsx)(u.A,{$v:{size:"sm",properties:["padding-top","margin-bottom"]},children:(0,n.jsx)(p.Bf,{gridSizes:(0,p.H8)(),children:(0,n.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[(0,n.jsx)("h2",{className:(0,c.I)("heading","xl","strong","brand"),children:"Exhibitions and Events"}),(0,n.jsx)("span",{className:(0,c.I)("body","lg","strong"),children:"Free admission"})]})})}),(0,n.jsx)(w.A,{exhibitions:J,events:G,links:[{text:"View all exhibitions",url:"/exhibitions"},{text:"View all events",url:"/events"}]})]})]}),(0,n.jsxs)(f.A,{children:[(0,n.jsx)(j.A,{children:(0,n.jsx)(I.A,{title:"Try these too",gridSize:(0,p.H8)()})}),(0,n.jsx)(j.A,{children:(0,n.jsx)(x.m,{children:(0,n.jsx)(g.xA,{className:"card-theme card-theme--transparent",children:P.map(e=>(0,n.jsx)(g.LX,{$sizeMap:{s:[12],m:[6],l:[4],xl:[4]},children:(0,n.jsx)(q,{...e})},e.id))})})})]})]})})};var es=!0;function ea(e){let t=new Date;switch(e){case"today":return{start:(0,r.ol)(t),end:(0,r.D0)(t)};case"this-weekend":return(0,r.oh)(t);default:return{start:(0,r.ol)(t)}}}let eo=e=>(0,n.jsx)(er,{...e})},72187:(e,t,i)=>{i.d(t,{A:()=>r});var n=i(6029);let r=function(e){return(0,n.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,n.jsxs)("g",{fill:"currentColor",className:"icon__shape",children:[(0,n.jsx)("path",{d:"M11.9 2.1a10.17 10.17 0 1 0 10.17 10.16C22.059 6.65 17.51 2.106 11.9 2.1m0 18.33a8.17 8.17 0 1 1 0-16.34 8.17 8.17 0 0 1 0 16.34"}),(0,n.jsx)("path",{d:"M15.83 12.06h-3v-4.5a1 1 0 0 0-2 0v5.5a1 1 0 0 0 1 1h4a1 1 0 0 0 0-2"})]})})}},90417:(e,t,i)=>{function n(e){var t;return null==(t=e.series.flatMap(e=>e.schedule).find(t=>t.title===e.title))?void 0:t.partNumber}function r(e){return e.series.map(e=>e.color).find(Boolean)||"accent.purple"}i.d(t,{H:()=>n,i:()=>r})},94129:(e,t,i)=>{i.d(t,{A:()=>
1o});var n=i(6029),r=i(24758),s=i(30294),a=i(55e3);let o=e=>{let{exhibitions:t,events:i,extras:o=[],links:l}=e,d=t.filter(e=>e.isPermanent),c=[...t.filter(e=>!e.isPermanent),...i,a.p,...d,...o];return(0,n.jsx)(s.A,{items:c,itemsPerRow:3,links:l,optionalComponent:(0,n.jsx)(r.A,{})})}}}]);
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.