PageSourceSearch

https://content.www.wellcomecollection.org/_next/static/chunks/3961.55ead5cd62441965.js

js wellcomecollection.org collected 2026-10-01 08:30:01 UTC 8,457 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3961],{2721:(e,t,n)=>{n.d(t,{A:()=>a});var i=n(6029),r=n(80791);let s=e=>{let{date:t,variant:n}=e;switch(n){case"date":return(0,i.jsx)(i.Fragment,{children:(0,r.Yq)(t)});case"dayDate":return(0,i.jsx)(i.Fragment,{children:(0,r.em)(t)});case"time":return(0,i.jsx)(i.Fragment,{children:(0,r.fU)(t)});default:return null}},a=e=>{let{date:t,variant:n}=e;return(0,i.jsx)("time",{dateTime:t.toISOString(),children:(0,i.jsx)(s,{date:t,variant:n})})}},47180:(e,t,n)=>{n.d(t,{Ay:()=>m,Wq:()=>d,ZK:()=>p});var i=n(6029),r=n(8588),s=n.n(r),a=n(79945),o=n(4812),l=n(36439);let c=(0,a.Ay)(s()).withConfig({componentId:"sc-6da24a59-0"})(["color:",";filter:",";width:100%;height:auto;display:block;"],e=>e.theme.color("white"),e=>e.$desaturate?"saturate(0%)":void 0);function d(e){return Object.entries(e).map(e=>{let[t,n]=e,i=16*parseFloat(l.LR[t]),r="lg"===t?"".concat(i*n,"px"):"".concat(Math.round(100*n),"vw");return"(min-width: ".concat(i,"px) ").concat(r)})}let h={low:"50",high:"100"};function p(e,t){return n=>{let{src:i,width:r}=n,s=new URL(i),a=new URLSearchParams;return r<e?a.set("w",r.toString()):a.set("w",e.toString()),a.set("auto","compress,format"),a.set("rect",s.searchParams.get("rect")||""),a.set("q",h[t]),"".concat(s.origin).concat(s.pathname,"?").concat(a.toString())}}let m=e=>{let{image:t,sizes:n,imgSizes:r,maxWidth:s,quality:a,desaturate:l=!1,priority:h=!1}=e,m=n?d(n).join(", "):void 0,g=s?Math.min(3*s,t.width):t.width;return(0,i.jsx)(c,{"data-component":"prismic-image",width:t.width,height:t.height,src:t.contentUrl,alt:t.alt||"",$desaturate:l,loader:p(g,a),sizes:r||m,placeholder:"blur",blurDataURL:o.AP,priority:h,fetchPriority:h?"high":void 0})}},72187:(e,t,n)=>{n.d(t,{A:()=>r});var i=n(6029);let r=function(e){return(0,i.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,i.jsxs)("g",{fill:"currentColor",className:"icon__shape",children:[(0,i.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,i.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"})]})})}},78188:(e,t,n)=>{n.d(t,{A:()=>o});var i=n(6029),r=n(79945),s=n(39427),a=n(22254);let o=e=>{let{url:t,name:n,colors:o,ariaLabel:l}=e,c=(0,r.DP)();return(0,i.jsx)(a.Ay,{variant:"ButtonSolidLink",ariaLabel:l,colors:o||c.buttonColors.charcoalTransparentCharcoal,isIconAfter:!0,text:n,link:t,icon:s.A})}},93961:(e,t,n)=>{n.r(t),n.d(t,{default:()=>B});var i=n(6029),r=n(85023),s=n(86796),a=n(74969),o=n(69342),l=n(92881),c=n(45459),d=n(2721);let h=e=>{let{venue:t}=e,n=t.openingHours.exceptional.filter(e=>e.isClosed),r=(0,c.zz)(n);return r[0]&&r[0].length>0?(0,i.jsxs)("div",{"data-component":"venue-closed-periods",className:"body-text",children:[(0,i.jsxs)("h2",{children:[(0,l.B5)(t.id)," closures"]}),t.id===l.hm.libraries.id&&(0,i.jsxs)("p",{style:{marginBottom:0},children:["Planning a research visit? Our library is closed over bank holiday weekends and between Christmas Eve and New Year","'","s Day:"]}),(0,i.jsx)("ul",{children:r.map((e,t)=>{let n=e[0].overrideDate,r=e.length>1?e[e.length-1].overrideDate:void 0;return e.length>0&&(0,i.jsxs)("li",{children:[(0,i.jsx)(d.A,{variant:"dayDate",date:n}),r&&(0,i.jsxs)(i.Fragment,{children:["–",(0,i.jsx)(d.A,{variant:"dayDate",date:r})]})]},t)})})]}):null};var p=n(9676),m=n(50933),g=n(65894),u=n(23583),x=n(85175),j=n(47180),v=n(48465),f=n(78188),w=n(72187),y=n(80791),A=n(24785),b=n(9329),C=n(79945),k=n(63667);function $(){let e=(0,b._)(["\n    width: 50%;\n  "]);return $=function(){return e},e}let z=(0,C.Ay)(v.A).withConfig({componentId:"sc-922fae3c-0"})([""," ",""],e=>e.theme.media("sm")($()),e=>e.theme.media("md")("\n      float: left;\n      width: 33%;\n      padding-right: ".concat(5*e.theme.spacingUnit,"px;\n    "))),S=(0,C.Ay)(v.A).withConfig({componentId:"sc-922fae3c-1"})(["",""],e=>e.theme.media("sm")("\n      float: left;\n      width: 33%;\n      min-width: 240px;\n      padding-right: ".concat(5*e.theme.spacingUnit,"px;\n    "))),D=(0,C.Ay)(v.A).withConfig({componentId:"sc-922fae3c-2"})(["display:inline-block;background-color:",";padding-left:30px;padding-right:42px;margin-left:-12px;margin-right:-12px;"," clip-path:",";"],e=>e.theme.color("yellow"),e=>e.theme.media("sm")("\n      margin-left: -24px;\n      margin-right: -24px;\n    "),e=>{let{$topLeft:t,$topRight:n,$bottomRight:i,$bottomLeft:r}=e;return"polygon(\n      ".concat(t," ").concat(t,",\n      calc(100% - ").concat(n,") ").concat(n,",\n      100% calc(100% - ").concat(i,"),\n      ").concat(r," 100%\n    )")}),I=C.Ay.div.withConfig({componentId:"sc-922fae3c-3"})(["display:inline-block;width:100px;"]),F=C.Ay.div.withConfig({componentId:"sc-922fae3c-4"})(["display:inline-block;
1width:200px;"]),U=(0,C.Ay)(k.A).attrs({className:(0,u.I)("body","md","regular")}).withConfig({componentId:"sc-922fae3c-5"})([""]),L=C.Ay.span.withConfig({componentId:"sc-922fae3c-6"})(["font-weight:bold;"]),N=e=>{let{regular:t,exceptional:n}=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(F,{children:[(0,y.F$)(n.overrideDate)," ",(0,y.ky)(n.overrideDate)]})," ",n.isClosed&&t.isClosed&&"Closed",n.isClosed&&!t.isClosed&&(0,i.jsx)(L,{children:"Closed"}),!n.isClosed&&t.isClosed&&(0,i.jsxs)(L,{children:[n.opens," – ",n.closes]}),!n.isClosed&&!t.isClosed&&(0,i.jsxs)(i.Fragment,{children:[n.opens!==t.opens?(0,i.jsx)(L,{children:n.opens}):n.opens," – ",n.closes!==t.closes?(0,i.jsx)(L,{children:n.closes}):n.closes]})]})},T=()=>"".concat(Math.floor(20*Math.random()),"px"),P=e=>{let{upcomingExceptionalPeriod:t,venue:n}=e,r=t.find(e=>e.overrideType),s=r&&"other"===r.overrideType?"Unusual":r&&r.overrideType;return(0,i.jsxs)(D,{$v:{size:"md",properties:["padding-top","padding-bottom","margin-bottom"]},$topLeft:T(),$topRight:T(),$bottomRight:T(),$bottomLeft:T(),children:[(0,i.jsx)("h3",{className:(0,u.I)("body","md","strong"),children:(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,i.jsx)(v.A,{as:"span",$h:{size:"xs",properties:["margin-right"]},children:(0,i.jsx)(A.A,{icon:w.A})}),(0,i.jsxs)("span",{children:[s," hours"]})]})}),(0,i.jsx)(U,{children:t.map(e=>{let t=n.openingHours.regular.filter(t=>{let{dayOfWeek:n}=t;return n===(0,y.F$)(e.overrideDate)}).find(e=>e);return(0,i.jsx)("li",{children:(0,i.jsx)(N,{regular:t,exceptional:e})},e.overrideDate.toString())})})]})},_=e=>{var t,n,r;let{venue:s}=e,{collectionVenues:a}=(0,m.f5)(),o=(0,g.H2)(a),l=e=>{let t=(0,c.lq)(e),n=(0,c.gx)(t),i=(0,c.Lk)(s,n);return i&&(0,c.Cw)(i)},d={grouped:l((0,c.kW)(o)),venueSpecific:l((0,c.Qi)(s))},h=s.isFeatured;return(0,i.jsxs)("div",{"data-component":"venue-hours",children:[h&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(v.A,{$v:{size:"md",properties:["margin-bottom"]},children:(0,i.jsx)("span",{className:"is-hidden-s",children:(0,i.jsx)(x.A,{})})}),(0,i.jsx)(z,{$v:{size:"sm",properties:["margin-bottom"]},children:(null==(t=s.image)?void 0:t.contentUrl)&&(0,i.jsx)(j.Ay,{image:{contentUrl:(null==(n=(0,p.$)(s.image,"16:9"))?void 0:n.contentUrl)||"",width:1600,height:900,alt:null==(r=s.image)?void 0:r.alt},sizes:{lg:1/6,md:1/6,sm:.5,zero:1},quality:"low"})})]}),(0,i.jsxs)(S,{$v:{size:"sm",properties:["margin-bottom"]},children:[(0,i.jsx)(v.A,{as:"h2",className:(0,u.I)("heading","lg","strong","brand"),$h:{size:"sm",properties:["padding-right"]},children:h?s.name:"Opening hours"}),(0,i.jsx)(U,{children:s.openingHours.regular.map(e=>{let{dayOfWeek:t,opens:n,closes:r,isClosed:s}=e;return(0,i.jsxs)("li",{children:[(0,i.jsx)(I,{children:t})," ",s?"Closed":"".concat(n," – ").concat(r)]},t)})})]}),d.grouped.map(e=>(0,i.jsx)(P,{upcomingExceptionalPeriod:e,venue:s},e[0].overrideDate.toString())),d.venueSpecific.map(e=>(0,i.jsx)(P,{upcomingExceptionalPeriod:e,venue:s},e[0].overrideDate.toString())),(0,i.jsx)(v.A,{$v:{size:"xs",properties:["margin-top"]},style:{clear:"both"},children:h&&s.linkText&&s.url&&(0,i.jsx)(f.A,{url:s.url,name:s.linkText})})]})},B=e=>{let{slice:t,context:n}=e,l=(0,o.A3)(t);return l?(0,i.jsx)(a.A,{$sliceType:l.type,children:l.value.showClosingTimes?(0,i.jsx)(r.A,{condition:!!n.gridSizes,wrapper:e=>(0,i.jsx)(s.Bf,{gridSizes:n.gridSizes,children:e}),children:(0,i.jsx)(h,{venue:l.value.content})}):(0,i.jsx)(s.Bf,{gridSizes:l.value.content.isFeatured?{s:[12],m:[12],l:[12],xl:[10,2]}:{s:[12],m:[10,2],l:[8,3],xl:[8,3]},children:(0,i.jsx)(_,{venue:l.value.content})})}):null}}}]);

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.