1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3737],{2721:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(6029),r=n(80791);let o=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)(o,{date:t,variant:n})})}},23068:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__N_SSP:()=>nS,default:()=>nz});var i=n(6029),r=n(9329),o=n(79945),a=n(39651),s=n(90628),l=n(50933),c=n(95405),d=n(85023),h=n(85175),p=n(77420),m=n(51750),u=n(48465),g=n(55729);let x=(0,g.createContext)(!1);function b(){return(0,g.useContext)(x)}var f=n(49669),j=n(46139);let v=new Map,y=new Map;var w=n(51282),A=n(94540),k=n(45947),C=n(68156),I=n(89964),$=n(67),S=n(41404),z=n(23583),N=n(59085),T=n(69825),L=n(22254);let D=(0,o.Ay)(u.A).attrs({$v:{size:"sm",properties:["margin-top"]}}).withConfig({componentId:"sc-1b16daf2-0"})(["span{margin:0;}"]),P=e=>{let{CTA:t,content:n,displayedContent:r}=e,{isEnhanced:a}=(0,$.Us)(),s=(0,o.DP)(),[l,c]=(0,g.useState)(!1),[d,h]=(0,g.useState)(!1),p=(0,g.useRef)(null);return(0,i.jsxs)(i.Fragment,{children:[r&&r,a&&(0,i.jsx)(D,{children:(0,i.jsx)(L.Ay,{variant:"ButtonSolid",dataGtmProps:{trigger:"copy_content"},colors:s.buttonColors.pumiceTransparentCharcoal,size:"small","aria-live":"assertive",clickHandler:function(){let e=document.createElement("textarea");
1e.setAttribute("style","position: fixed; left: -9999px;"),e.innerHTML=n,document.body&&document.body.appendChild(e),e.select();try{document.execCommand("copy"),c(!0)}catch(e){c(!1)}h(!0),p.current&&p.current.focus(),e.remove()},ref:p,text:d?l?"Copied":"Copy failed":t,icon:l?T.A:void 0,isIconAfter:!0})})]})};var _=n(59383);let R=e=>{let{url:t}=e,{isEnhanced:n}=(0,$.Us)(),r=(0,o.DP)(),[a,s]=(0,g.useState)(!1),[l,c]=(0,g.useState)(!1),d=(0,g.useRef)(null);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(_.Ay,{id:"share",type:"text",label:"Page URL",value:t,setValue:()=>{}}),n&&(0,i.jsx)(u.A,{$v:{size:"sm",properties:["margin-top"]},children:(0,i.jsx)(L.Ay,{variant:"ButtonSolid",dataGtmProps:{trigger:"copy_url"},colors:r.buttonColors.pumiceTransparentCharcoal,size:"small","aria-live":"assertive",clickHandler:function(){let e=document.createElement("textarea");e.setAttribute("style","position: fixed; left: -9999px;"),e.innerHTML=t,document.body&&document.body.appendChild(e),e.select();try{document.execCommand("copy"),s(!0)}catch(e){s(!1)}c(!0),d.current&&d.current.focus(),e.remove()},ref:d,text:l?a?"Copied":"Copy failed":"Copy URL",icon:a?T.A:void 0,isIconAfter:!0})})]})},H=e=>{let{variant:t}=e;return(0,i.jsx)(i.Fragment,{children:"content"===t?(0,i.jsx)(P,{"data-component":"copy-content",...e}):(0,i.jsx)(R,{"data-component":"copy-url",...e})})};var U=n(81999);let F=(0,o.Ay)(u.A).withConfig({componentId:"sc-bfacb4e3-0"})(["list-style:none;padding:0;margin:0;"]),q=e=>{let{title:t,list:n}=e;return(0,i.jsx)(U.A,{title:t,children:(0,i.jsx)(F,{as:"ul",children:n.map((e,t)=>(0,i.jsx)("li",{style:{listStylePosition:"inside"},children:e},t))})})};var E=n(10397);let W=(0,o.Ay)(u.A).attrs({$v:{size:"md",properties:["padding-top"]}}).withConfig({componentId:"sc-4beb6830-0"})([""," & + &{border-top:1px solid ",";}"],e=>e.$isArchive&&"\n &:nth-child(1) {\n padding-top: 0;\n }\n ",e=>e.theme.color("neutral.400")),B=e=>{let{headingText:t,children:n}=e,r=b();return(0,i.jsx)(W,{$isArchive:r,children:(0,i.jsxs)(E.A,{children:[t&&(0,i.jsx)("h2",{className:(0,z.I)("heading","md","strong","brand"),children:t}),n]})})};var O=n(41705);let M={s:[12],m:[12],l:[8],xl:[8]},V={s:[12],m:[12],l:[4],xl:[4]},G=(0,o.Ay)(N.LX).withConfig({componentId:"sc-fef57ccf-0"})(["",""],e=>e.theme.media("md")("\n height: calc(100% - ".concat(e.theme.spacingUnits["600"],");\n border-left: 1px solid ").concat(e.theme.color("neutral.400"),";\n padding-left: ").concat(e.theme.gutter.large,";\n "))),Y=e=>{let{work:t}=e,{orderedNotes:n,remainingNotes:r}=(0,C.FK)(t),o=t.identifiers.filter(e=>"wellcome-accession-number"===e.identifierType.id);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(N.xA,{children:[(0,i.jsx)(N.LX,{$sizeMap:M,children:(0,i.jsxs)(B,{headingText:"About this work",children:[t.description&&(0,i.jsx)(O.A,{title:"Description",html:t.description,allowDangerousRawHtml:!0}),n.map(e=>(0,i.jsx)(O.A,{title:e.noteType.label,html:e.contents,allowDangerousRawHtml:!0},e.noteType.label)),r.map(e=>(0,i.jsx)(O.A,{title:e.noteType.label,html:e.contents,allowDangerousRawHtml:!0},e.noteType.label))]})}),(0,i.jsxs)(G,{$sizeMap:V,children:[t.physicalDescription&&(0,i.jsx)(O.A,{title:"Physical description",html:t.physicalDescription,allowDangerousRawHtml:!0}),o.length>0&&(0,i.jsx)(q,{title:"Accession numbers",list:o.map(e=>e.value)})]})]}),(0,i.jsx)(h.A,{}),(0,i.jsx)(B,{headingText:"Permanent link",children:(0,i.jsx)("div",{className:(0,z.I)("body","md","regular"),children:(0,i.jsx)(H,{variant:"url",url:"https://wellcomecollection.org/works/".concat(t.id)})})})]})};var X=n(94451),K=n(80715),J=n(77647),Z=n(24785),Q=n(15642);let ee=function(e){return(0,i.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,i.jsx)("path",{fill:"currentColor",d:"M21 18.58V15.3a3 3 0 0 0-3-3h-5v-2.14a4 4 0 1 0-2 0v2.14H6a3 3 0 0 0-3 3v3.28a2 2 0 1 0 2 0V15.3a1 1 0 0 1 1-1h5v4.28a2 2 0 1 0 2 0V14.3h5a1 1 0 0 1 1 1v3.28a2 2 0 1 0 2 0M10 6.3a2 2 0 1 1 4 0 2 2 0 0 1-4 0",className:"icon__shape"})})};var et=n(66575),en=n(51830),ei=n(43242),er=n(82203),eo=n.n(er),ea=n(27715);let es=o.Ay.div.withConfig({componentId:"sc-dbe9969e-0"})(["border-right:1px solid ",";"],e=>e.theme.color("warmNeutral.400")),el=(0,o.Ay)(u.A).attrs({$v:{size:"sm",properties:["padding-top","padding-bottom"]}}).withConfig({componentId:"sc-dbe9969e-1"})(["button{width:100%;justify-content:center;}"]),ec=(0,o.Ay)(eo()).withConfig({componentId:"sc-dbe9969e-2"})(["display:inline-block;min-height:","px;line-height:1;color:",";background:",";cursor:pointer;margin-left:",";text-decoration:none;> *{pointer-events:none;}padding-top:",";padding-bottom:",";padding-left:",";padding-right:",";&:focus,&:hover{text-decoration:underline;}"],ea.HU.controlHeight,e=>e.theme.color("black"),e=>e.$isCurrent?e.theme.color("yellow"):"transparent",e=>e.$hasControl?"-".concat(ea.HU.controlWidth/2,"px"):"".concat(ea.HU.controlWidth/2,"px"),e=>"".concat(e.theme.spacingUnit,"px"),e=>"".concat(e.theme.spacingUnit,"px"),e=>e.$hasControl?"".concat(ea.HU.circleWidth/2+e.theme.spacingUnit,"px"):e.$isCurrent?"".concat(e.theme.spacingUnit,"px"):0,e=>"".concat(2*e.theme.spacingUnit,"px"));var ed=n(11948),eh=n(87920),ep=n(79816);
1let em=o.Ay.span.attrs({className:(0,z.I)("body","sm","regular")}).withConfig({componentId:"sc-1dfe673b-0"})(["line-height:1;display:block;color:",";text-decoration:none;"],e=>e.theme.color("neutral.600")),eu=e=>{let{item:t,hasControl:n,level:r,isSelected:o,currentWorkId:a,highlightCondition:s,showFirstLevelGuideline:l,isDarkMode:c}=e,{isEnhanced:d}=(0,$.Us)(),h=t.data;return(0,i.jsxs)("div",{style:{display:"flex",width:"100%"},className:(0,z.I)("body","sm","regular"),children:[d&&(r>1||l)&&n&&(0,i.jsx)(en.Uc,{$highlightCondition:s,$isDarkMode:c,children:(0,i.jsx)(Z.A,{rotate:t.openStatus?void 0:270,icon:ed.A})}),(0,i.jsxs)(ec,{...(0,eh.j)({id:h.id,scroll:!1}),className:(0,z.x)({[(0,z.I)("body","sm","strong")]:1===r,[(0,z.I)("body","sm","regular")]:r>1}),tabIndex:d?o?0:-1:0,$isCurrent:a===h.id,$hasControl:n,onClick:e=>{e.stopPropagation()},...(0,J.J)({trigger:"tree_link",label:"".concat(h.title).concat(h.referenceNumber?" (".concat(h.referenceNumber,")"):""),"data-tree-level":String(r)}),children:[(0,i.jsx)(ep.A,{title:h.title}),h.referenceNumber&&(0,i.jsx)(em,{children:h.referenceNumber})]})]})};async function eg(e){let t=await (0,Q.q1)(e.id);return"Error"!==t.type&&"Redirect"!==t.type?{...e,parts:t.parts}:e}let ex=(e,t,n)=>{var i;let r;if(t.length>0&&e.id===t[0].id){let n=t[0].parts;void 0===n&&t.length>1&&(n=[t[1]]),r=(n||[]).map(n=>ex(n,t.slice(1),e))}return{openStatus:e.id===(null==(i=t[0])?void 0:i.id),data:e,parentId:n?n.id:void 0,children:r}};function eb(e){let t=[...(0,C.h1)(e),e];return[ex(t[0],t,null)]}async function ef(e){let t=(0,C.h1)(e),n=[...await Promise.all(t.map(async e=>await eg(e))),e];return[ex(n[0],n,null)]}let ej=e=>{let{work:t}=e,{isEnhanced:n,windowSize:r}=(0,$.Us)(),o=(0,C.h1)(t),a=(0,g.useRef)(!0),[s,l]=(0,g.useState)(!1),[c,d]=(0,g.useState)(eb(t)),[h,p]=(0,g.useState)(),m=(0,g.useRef)(null),x=b();return(0,g.useEffect)(()=>{let e=h&&document.getElementById(h);e&&e.focus()},[c,h]),(0,g.useEffect)(()=>
1{l(!1)},[t]),(0,g.useEffect)(()=>{!async function(){d(await ef(t)||[])}()},[]),(0,g.useEffect)(()=>{if(!a.current){let e=document.getElementById("work-info");e&&window.requestAnimationFrame(()=>{e.scrollIntoView({behavior:"smooth"})})}a.current=!1},[t.id]),x?(0,i.jsx)(i.Fragment,{children:"zero"===r&&n?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(el,{children:(0,i.jsx)(L.Ay,{variant:"ButtonSolid",text:"Collection contents",clickHandler:()=>l(!0),"aria-controls":"collection-contents-modal","aria-label":"show collection contents",icon:ee,ref:m})}),(0,i.jsx)(et.A,{isActive:s,setIsActive:l,id:"collection-contents-modal",openButtonRef:m,children:(0,i.jsxs)(ei.PH,{$isEnhanced:n,children:[n&&(0,i.jsx)(ei.OM,{children:X.as}),(0,i.jsx)(en.Ay,{currentWorkId:t.id,tree:c,setTree:d,items:c,level:1,tabbableId:h,setTabbableId:p,workAncestors:o,firstItemTabbable:!1,showFirstLevelGuideline:!1,ItemRenderer:eu,shouldFetchChildren:!0})]})})]}):(0,i.jsx)(es,{children:(0,i.jsxs)(u.A,{$v:{size:"md",properties:["padding-top","padding-bottom"]},children:[(0,i.jsx)("h2",{className:(0,z.I)("heading","md","strong","brand"),children:"Collection contents"}),(0,i.jsxs)(ei.PH,{$isEnhanced:n,$maxWidth:375,children:[n&&(0,i.jsx)(ei.OM,{children:X.as}),(0,i.jsx)(en.Ay,{currentWorkId:t.id,tree:c,setTree:d,items:c,level:1,tabbableId:h,setTabbableId:p,workAncestors:o,firstItemTabbable:!1,showFirstLevelGuideline:!1,ItemRenderer:eu,shouldFetchChildren:!0})]})]})})}):null};var ev=n(28975),ey=n(86767),ew=n(17383),eA=n(18265);let ek="1fr 160px 110px",eC=o.Ay.div.attrs({className:(0,z.I)("body","sm","regular")}).withConfig({componentId:"sc-9ae698fc-0"})(["display:flex;flex-direction:column;margin-left:-","px;width:calc(100% + ","px);background:",";"," > *{text-align:left;padding:0 10px 0 ","px;}> *:not(:first-child){color:",";padding-left:","px;}"," & > *:not(:first-child){color:inherit;}> *:nth-child(1){","}> *:nth-child(2){order:2;","}> *:nth-child(3){order:1;}",""],e=>{var t;return null!=(t=e.$indentPx)?t:0},e=>{var t;return null!=(t=e.$indentPx)?t:0},e=>void 0===e.$isEvenRow?"transparent":e.theme.color(e.$isEvenRow?"white":"neutral.200"),e=>e.$hasControl&&"cursor: pointer;",e=>{var t;return null!=(t=e.$indentPx)?t:0},e=>e.theme.color("neutral.600"),e=>{var t;let n;return(null!=(t=e.$indentPx)?t:0)+(n=e.theme.spacingUnit,ea.G9.controlWidth+n)},ei.OV,e=>e.theme.makeSpacePropertyValues("xs",["padding-top"]),e=>e.theme.makeSpacePropertyValues("xs",["padding-bottom"]),e=>{var t;return e.theme.media("sm")("\n display: grid;\n grid-template-columns: ".concat(ek,";\n column-gap: 10px;\n\n > * {\n padding: 0;\n ").concat(e.theme.makeSpacePropertyValues("xs",["padding-top","padding-bottom"]),"\n }\n\n /* Resets the mobile-only reordering above - needs the same\n nth-child specificity as those rules, a bare '> *' loses to them. */\n > *:nth-child(2),\n > *:nth-child(3) {\n order: initial;\n }\n\n /* Only the first column needs the tree's indentation here - the\n rest are separate columns starting fresh after it. */\n > *:first-child {\n padding-left: ").concat(null!=(t=e.$indentPx)?t:0,"px;\n }\n\n /* Undoes the base rule's left padding above, which is only for\n lining cells up under the title on mobile. */\n > *:not(:first-child) {\n color: inherit;\n padding-left: 0;\n }\n "))}),eI=o.Ay.div.attrs({className:(0,z.I)("body","sm","regular")}).withConfig({componentId:"sc-9ae698fc-1"})(["display:none;",""],e=>e.theme.media("sm")("\n display: grid;\n grid-template-columns: ".concat(ek,";\n column-gap: 10px;\n\n > * {\n padding: 12px 0;\n font-weight: bold;\n text-align: left;\n }\n\n /* No ancestor <ul> to line up with here (it's a plain header, not\n part of the tree), so a fixed padding instead of $indentPx. */\n > *:first-child {\n padding-left: 10px;\n }\n "))),e$=o.Ay.div.attrs({className:(0,z.I)("body","sm","regular")}).withConfig({componentId:"sc-9ae698fc-2"})(["display:flex;flex-direction:column-reverse;"," margin-left:-10px;width:calc(100% + 10px);> *{padding:0 10px;}> *:last-child{","}> *:first-child{","}",""],e=>e.theme.makeSpacePropertyValues("xs",["row-gap"]),e=>e.theme.makeSpacePropertyValues("sm",["padding-top"]),e=>e.theme.makeSpacePropertyValues("xs",["padding-bottom"]),e=>e.theme.media("sm")("\n display: grid;\n grid-template-columns: ".concat(ek,";\n column-gap: 10px;\n\n > * {\n padding: 0;\n ").concat(e.theme.makeSpacePropertyValues("xs",["padding-top","padding-bottom"]),"\n }\n\n > *:first-child {\n padding-left: 10px;\n }\n "))),eS=o.Ay.span.withConfig({componentId:"sc-9ae698fc-3"})(["display:block;color:",";padding-left:","px;",""],e=>e.theme.color("neutral.600"),e=>{let t;return 10+(t=e.theme.spacingUnit,ea.G9.controlWidth+t)},e=>e.theme.media("sm")("\n color: inherit;\n padding-left: 0;\n grid-column: 2 / span 2;\n display: flex;\n align-items: center;\n justify-content: flex-end;\n text-align: right;\n padding-right: ".concat(ea.G9.controlWidth,"px;\n "))),ez=o.Ay.span.withConfig({componentId:"sc-9ae698fc-4"})(["display:inline-flex;align-items:center;gap:","px;vertical-align:middle;",""],e=>e.theme.spacingUnit,e=>e.theme.media("sm")("\n .icon {\n display: none;\n }\n ")),eN=o.Ay.span.withConfig({componentId:"sc-9ae698fc-5"})(["display:inline-flex;align-items:center;gap:","px;min-width:0;max-width:100%;vertical-align:middle;.icon{flex:0 0 auto;}> .icon{display:none;","}a{flex:1 1 auto;min-width:0;display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-decoration:none;&:focus,&:hover{text-decoration:underline;}}"],e=>e.theme.spacingUnit,e=>e.theme.media("sm")("\n display: inline-block;\n ")),eT=o.Ay.span.withConfig({componentId:"sc-9ae698fc-6"})(["display:inline-block;flex:0 0 auto;width:","px;height:","px;"],ea.G9.controlWidth,ea.G9.controlHeight),eL=o.Ay.button.attrs({type:"button",className:(0,z.I)("body","
1sm","regular")}).withConfig({componentId:"sc-9ae698fc-7"})(["display:inline-flex;align-items:center;color:inherit;gap:","px;padding:0;&:focus,&:hover{text-decoration:underline;}&:disabled{cursor:default;text-decoration:none;}"],e=>e.theme.spacingUnit),eD=e=>{let{item:t,hasControl:n,level:r,isSelected:o,highlightCondition:a,isDarkMode:s,rowIndexById:l}=e,{isEnhanced:c}=(0,$.Us)(),d=t.data,h=r>1?(r-1)*ea.G9.controlWidth:0,p=null==l?void 0:l[d.id],m=!!(t.children&&t.openStatus),u=1===r?ev.A:"Work"!==d.type?m?ey.A:ew.A:eA.A;return(0,i.jsxs)(eC,{$isEvenRow:void 0!==p&&p%2==0,$indentPx:h,$hasControl:n,children:[(0,i.jsxs)(eN,{children:[c&&n?(0,i.jsx)(en.Uc,{$highlightCondition:a,$isDarkMode:s,$isCompact:!0,children:(0,i.jsx)(Z.A,{rotate:t.openStatus?void 0:270,icon:ed.A,sizeOverride:"height: ".concat(ea.G9.iconSize,"px; width: ").concat(ea.G9.iconSize,"px;")})}):(0,i.jsx)(eT,{}),(0,i.jsx)(Z.A,{icon:u,iconColor:"neutral.600",matchText:!0,sizeOverride:"height: 16px; width: 16px;"}),(0,i.jsx)(eo(),{...(0,eh.j)({id:d.id,scroll:!1}),onClick:e=>{e.stopPropagation()},tabIndex:c?o?0:-1:0,...(0,J.J)({trigger:"tree_link",label:"".concat(d.title).concat(d.referenceNumber?" (".concat(d.referenceNumber,")"):""),"data-tree-level":String(r)}),children:(0,i.jsx)(ep.A,{title:d.title})})]}),(0,i.jsx)("span",{children:d.referenceNumber}),(0,i.jsxs)(ez,{children:[(0,i.jsx)(Z.A,{icon:u,iconColor:"neutral.600",matchText:!0,sizeOverride:"height: 16px; width: 16px;"}),(0,en.sS)(d.type)]})]})},eP=e=>{var t;let{work:n,isActive:r}=e,{isEnhanced:o}=(0,$.Us)(),{stagingApi:a}=(0,l.h)(),{cataloguePipeline:s}=(0,l._W)(),c=(0,C.h1)(n),d=(null==(t=c[0])?void 0:t.id)||n.id,[h,p]=(0,g.useState)(eb(n)),[m,u]=(0,g.useState)(),[x,b]=(0,g.useState)([]),[f,j]=(0,g.useState)(0),[v,y]=(0,g.useState)(),[w,A]=(0,g.useState)(),[k,I]=(0,g.useState)(!1),S=(0,g.useRef)(!1),z=(0,g.useRef)(h);z.current=h;let N=(0,g.useMemo)(()=>Object.fromEntries((0,en._D)(h).map((e,t)=>[e,t])),[h]);async function T(e,t){let n=await (0,Q.Xp)(d,e,a,null!=s?s:void 0);if(!n)return!1;let i=[...t,...n.results];return b(i),p(function(e,t){let n,i=t?function e(t){let n={};for(let i of t)n[i.data.id]=i.openStatus,i.children&&Object.assign(n,e(i.children));return n}(t):void 0,r=[];for(let t of e){var o,a;let e=(0,C.h1)(t),s=e.length,l={openStatus:null==(a=null==i?void 0:i[t.id])||a,data:t,parentId:null==(o=e[e.length-1])?void 0:o.id};if(0===s){n=l,r[0]=l;continue}let c=r[s-1];c&&(c.children=c.children?[...c.children,l]:[l],c.data={...c.data,totalParts:c.children.length},r.length=s,r[s]=l)}return n?[n]:[]}(i,e>1?z.current:void 0)),j(e),y(n.totalPages),A(n.totalResults),!0}async function L(){I(!0);try{await T(f+1,x)}finally{I(!1)}}(0,g.useEffect)(()=>{let e=m&&document.getElementById(m);e&&e.focus()},[h,m]),(0,g.useEffect)(()=>{r&&!S.current&&(S.current=!0,T(1,[]).catch(()=>!1).then(e=>{e||(S.current=!1)}))},[r,d,a,s]);let D=Math.min(Q.TK,(null!=w?w:x.length)-x.length);return(0,i.jsx)("div",{style:{overflowX:"auto",width:"100%"},children:(0,i.jsxs)("div",{style:{display:"inline-table",minWidth:"100%"},children:[(0,i.jsx)(ei.OV,{"aria-hidden":"true",children:(0,i.jsxs)(eI,{children:[(0,i.jsx)("span",{children:"Name"}),(0,i.jsx)("span",{children:"Reference"}),(0,i.jsx)("span",{children:"Level"})]})}),(0,i.jsxs)(ei.PH,{$isEnhanced:o,$showFirstLevelGuideline:!0,$isCompact:!0,children:[o&&(0,i.jsx)(ei.OM,{children:X.as}),(0,i.jsx)(en.Ay,{currentWorkId:n.id,tree:h,setTree:p,items:h,level:1,tabbableId:m,setTabbableId:u,workAncestors:c,ItemRenderer:eD,itemRendererProps:{rowIndexById:N},firstItemTabbable:!1,shouldFetchChildren:!1,showFirstLevelGuideline:!0,isCompact:!0})]}),void 0!==w&&(0,i.jsx)(ei.OV,{children:(0,i.jsxs)(e$,{children:[(0,i.jsxs)(eN,{children:[(0,i.jsx)(eT,{}),void 0!==v&&f<v&&(0,i.jsxs)(eL,{onClick:L,disabled:k,...(0,J.J)({trigger:"show_more_rows_content_tree"}),children:[(0,i.jsx)(Z.A,{icon:K.A,matchText:!0,sizeOverride:"height: 16px; width: 16px;"}),k?"Loadingâ¦":"Show ".concat(D," more rows")]})]}),(0,i.jsxs)(eS,{children:["Showing ",x.length," of ",w," rows"]})]})})]})})};var e_=n(75120),eR=n(36439),eH=n(97624);let eU=e=>{let{title:t,...n}=e;return(0,i.jsx)(U.A,{title:t,children:(0,i.jsx)(d.A,{condition:!!t,wrapper:e=>(0,i.jsx)(u.A,{$v:{size:"xs",properties:["margin-top"],overrides:{zero:"100",sm:"100",md:"100"}},children:e}),children:(0,i.jsx)(eH.A,{...n})})})},eF=(0,o.Ay)(u.A).attrs({$v:{size:"md",properties:["padding-top","padding-bottom"]}}).withConfig({componentId:"sc-da523834-0"})(["background-color:",";"],e=>e.theme.color("warmNeutral.300")),eq=o.Ay.h1.attrs({className:(0,z.I)("heading","xl","strong","sans")}).withConfig({componentId:"sc-da523834-1"})(["margin:0;"]),eE=o.Ay.span.attrs({className:(0,z.I)("body","md","regular")}).withConfig({componentId:"sc-da523834-2"})(["margin-right:",";color:",";.icon{transform:translateY(0.1em);}"],e=>e.theme.spacingUnits["050"],e=>
1e.theme.color("neutral.600")),eW=o.Ay.span.attrs({className:(0,z.I)("body","md","regular")}).withConfig({componentId:"sc-da523834-3"})(["color:",";"],e=>e.theme.color("neutral.600")),eB=o.Ay.dl.withConfig({componentId:"sc-da523834-4"})(["margin:0;"]),eO=(0,o.Ay)(u.A).attrs({as:"dl",$v:{size:"sm",properties:["margin-top"]}}).withConfig({componentId:"sc-da523834-5"})(["display:flex;flex-direction:column;gap:",";",""],e=>e.theme.spacingUnits["100"],e=>e.theme.media("md")("\n flex-direction: row;\n gap: ".concat(e.theme.spacingUnits["600"],";\n "))),eM=o.Ay.dt.attrs({className:(0,z.I)("body","md","regular")}).withConfig({componentId:"sc-da523834-6"})(["color:",";display:block;line-height:1;margin-bottom:",";"],e=>e.theme.color("neutral.600"),e=>e.theme.spacingUnits["100"]),eV=o.Ay.dd.attrs({className:(0,z.I)("body","md","regular")}).withConfig({componentId:"sc-da523834-7"})(["margin:0;"]),eG=e=>{let{label:t,value:n}=e;return(0,i.jsxs)("div",{children:[(0,i.jsxs)(eM,{children:[t,":"]}),(0,i.jsx)(eV,{children:Array.isArray(n)?n.join(", "):n})]})},eY=e=>{var t;let{work:n}=e,{archiveShortDescriptions:r}=(0,l.h)(),o=(0,C.G2)(n),a=null==(t=n.contributors.find(e=>e.primary))?void 0:t.agent,s=(0,C.G)(n),c=(0,C.Zg)(n);return(0,i.jsx)(eF,{children:(0,i.jsxs)(m.m,{children:[(0,i.jsx)(u.A,{$v:{size:"sm",properties:["margin-bottom"]},children:(0,i.jsx)(e_.A,{labels:(0,C.Ye)(n),defaultLabelColor:"white",outlineLightLabels:!1})}),(0,i.jsxs)(u.A,{$v:{size:"sm",properties:["margin-bottom"]},children:[(0,i.jsx)(eq,{"aria-live":"polite",id:"work-info",lang:o,children:(0,i.jsx)(ep.A,{title:n.title})}),(0,i.jsx)(eE,{children:(0,i.jsx)(Z.A,{icon:ev.A,matchText:!0})}),(0,i.jsx)(eW,{children:"Archive Collection"})]}),r&&n.shortDescription&&(0,i.jsx)(u.A,{$v:{size:"sm",properties:["margin-bottom"]},children:(0,i.jsx)("p",{className:(0,z.I)("body","md","regular"),children:(0,C.$J)(n.shortDescription)})}),s.length>0&&(0,i.jsx)(u.A,{$v:{size:"md",properties:["margin-bottom"]},children:(0,i.jsx)(eB,{children:(0,i.jsx)(eG,{label:"Subjects",value:(0,i.jsx)(eU,{buttonColors:eR.E3.buttonColors.slateWhiteBlack,tags:s})})})}),(a||c.length>0||n.referenceNumber)&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(h.A,{lineColor:"neutral.600"}),(0,i.jsxs)(eO,{children:[a&&(0,i.jsx)(eG,{label:"Contributor",value:(0,i.jsx)(eo(),{className:(0,z.I)("body","md","regular"),...(0,C.qr)({id:a.id,filterKey:"contributors.agent.label",filterValue:a.label}),children:a.label})}),c.length>0&&(0,i.jsx)(eG,{label:"Publication/Creation",value:c}),n.referenceNumber&&(0,i.jsx)(eG,{label:"Reference",value:n.referenceNumber})]})]})]})})},eX=e=>{let{work:t}=e,{isEnhanced:n}=(0,$.Us)(),[r,o]=(0,g.useState)("about"),a=[{id:"about",text:"About this archive collection"},{id:"contents",text:"Collection contents"}],s={about:(0,i.jsx)(Y,{work:t}),contents:(0,i.jsx)(eP,{work:t,isActive:"contents"===r})};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(eY,{work:t}),(0,i.jsx)(m.m,{children:(0,i.jsxs)(u.A,{$v:{size:"xl",properties:["margin-bottom"]},children:[(0,i.jsx)(u.A,{$v:{size:"md",properties:["margin-top","margin-bottom"]},children:(0,i.jsx)(S.A,{tabBehaviour:"switch",label:"Archive Collection Tabs",items:a,selectedTab:r,setSelectedTab:o})}),a.map(e=>(0,i.jsx)("div",{role:"tabpanel",id:"tabpanel-".concat(e.id),"aria-labelledby":"tab-".concat(e.id),hidden:n&&r!==e.id,children:s[e.id]},e.id))]})})]})};var eK=n(38801),eJ=n(9280),eZ=n(24180),eQ=n(27832),e0=n(85564),e1=n(4920);let e2=async e=>{let{workId:t,subjects:n,typesTechniques:i,date:r,shouldUseStagingApi:o,pipelineCluster:a,setIsLoading:s}=e;s(!0);let l={},c=n.map(e=>e.label).slice(0,3),d=null==i?void 0:i.map(e=>{var t;return null==(t=e.concepts[0])?void 0:t.label}).filter(e=>void 0!==e).slice(0,2),h=(e=>{let t=null==e?void 0:e.match(/^(\d{4})$/);if(t){let e=100*Math.floor(parseInt(t[0],10)/100);return{tabLabel:"From ".concat(e,"s"),from:"".concat(e,"-01-01"),to:"".concat(e+99,"-12-31")}}return null})(r),p=async e=>await (0,e1.KN)("works",{shouldUseStagingApi:o,pipelineCluster:a,pageSize:4,params:{include:["production","contributors"],...e}}),m=(e,n,i)=>{if("ResultList"===i.type){let r=i.results.filter(e=>e.id!==t);r.length>0&&(l["".concat(e,"-").concat((0,e0.io)(n))]={label:n,category:e,results:r.slice(0,3).map(w.R)})}};try{await Promise.all([...c.map(async e=>{let t=await p({"subjects.label":['"'.concat(e,'"')]});m("subject",e,t)}),...h?[(async()=>{let e=await p({"subjects.label":c.map(e=>'"'.concat(e,'"')),"production.dates.from":h.from,"production.dates.to":h.to});m("period",h.tabLabel,e)})()]:[],...d?d.map(async e=>{let t=await p({"subjects.label":c.map(e=>'"'.concat(e,'"')),"genres.label":['"'.concat(e,'"')]});m("genre",e,t)}):[]])}catch(e){console.error("Error fetching related works:",e)}if(0===Object.keys(l).length)return;let u=Object.keys(l).sort((e,t)=>
1{let n=["subject-","period-","genre-"];return n.findIndex(t=>e.startsWith(t))-n.findIndex(e=>t.startsWith(e))||e.localeCompare(t)}),g={};return u.forEach(e=>{g[e]=l[e]}),g},e3=(0,o.Ay)(u.A).attrs({$v:{size:"md",properties:["padding-top","padding-bottom"]}}).withConfig({componentId:"sc-73351435-0"})(["background-color:",";"],e=>e.theme.color("warmNeutral.300"));function e6(e){return Array.isArray(e)&&e.length>0}let e5=e=>{let{workId:t,subjects:n,typesTechniques:r,date:o}=e,{stagingApi:a}=(0,l.h)(),{cataloguePipeline:s}=(0,l._W)(),[c,d]=(0,g.useState)(!0),[h,p]=(0,g.useState)(),[x,b]=(0,g.useState)();return((0,g.useEffect)(()=>{d(!0),p(void 0),b(void 0),(async()=>{await e2({workId:t,subjects:n,typesTechniques:r,date:o,shouldUseStagingApi:a,pipelineCluster:null!=s?s:void 0,setIsLoading:d}).then(e=>{p(e),d(!1)})})()},[t]),(0,g.useEffect)(()=>{if(h&&!x){let e=Object.keys(h)[0];e&&b(e)}if(!c&&h&&Object.keys(h).length>0){var e;let t={event:"related_works_displayed",relatedWorks:{tabs:Object.values(h).map(e=>({label:e.label,category:e.category,resultsCount:e.results.length}))}};null==(e=window.dataLayer)||e.push(t)}},[h]),c)?(0,i.jsx)("div",{style:{position:"relative",minHeight:"200px"},children:(0,i.jsx)(eK.A,{})}):h&&x?(0,i.jsxs)(e3,{children:[(0,i.jsxs)(m.m,{children:[(0,i.jsx)("h2",{className:(0,z.I)("heading","lg","strong","brand"),children:"More works"}),Object.keys(h).length>1&&(0,i.jsx)(eQ.Ay,{tags:Object.entries(h).map(e=>{let[t,n]=e;return{id:t,label:n.label,controls:"#".concat(t),dataGtmProps:{trigger:"selectable_tag_related_works_control",category:n.category,label:n.label}}}),onChange:e=>b(e[0])})]}),Object.entries(h).map((e,t)=>{let[n,r]=e;return(0,i.jsx)(u.A,{$v:{size:"md",properties:["padding-top","padding-bottom"]},className:(0,z.x)({"is-hidden":x!==n}),children:(0,i.jsxs)(m.m,{children:[(0,i.jsx)(N.xA,{children:r.results.map((e,n)=>(0,i.jsx)(N.LX,{$sizeMap:{s:[12],m:[12],l:[6],xl:[4]},children:(0,i.jsx)(eZ.A,{variant:"default",work:e,dataGtmProps:{category:r.category,"category-label":r.label,"category-position-in-list":"".concat(t+1),"position-in-list":"".concat(n+1)}})},e.id))}),(0,i.jsx)(u.A,{$v:{size:"md",properties:["margin-top"]},children:(0,i.jsx)(eJ.A,{message:(0,i.jsxs)(i.Fragment,{children:["This feature is new."," ",(0,i.jsx)("a",{href:"mailto:[email protected]?subject=Related works",children:"Let us know"}
1)," ","if something doesnât look right."]})})})]})},n)})]}):null},e4=function(e){return(0,i.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,i.jsx)("path",{fill:"currentColor",d:"M22.8 10.46a1 1 0 0 0-.8-.4h-1.74v-1.6a2 2 0 0 0-2-2h-7.47V5.2c0-.9-.73-1.63-1.63-1.63H3.29c-.9 0-1.63.73-1.63 1.63V20a2 2 0 0 0 2 2H18.3a2 2 0 0 0 1.92-1.57L23 11.35a1 1 0 0 0-.2-.89M3.66 5.57h5.13v1.92a1 1 0 0 0 1 1h8.47v1.6H5.56a1 1 0 0 0-1 .71l-.93 3.11V5.57zm14.72 14v.05l-.06.21a1 1 0 0 0 0 .14L3.9 20l2.4-8h14.35z",className:"icon__shape"})})},e8=o.Ay.nav.withConfig({componentId:"sc-232d9164-0"})(["*{font-weight:normal !important;font-size:14px !important;}ul{list-style:none;margin:0 0 10px;padding:0;display:inline-flex;align-items:flex-start;}li{.crumb-inner{display:flex;align-items:baseline;padding:3px 8px;max-width:35em;}> .icon{min-width:1em;position:relative;top:5px;}position:relative;margin-right:24px;&::after{content:'>';position:absolute;top:0;right:-15px;color:#888;}&:last-child{margin-right:0;&::after{display:none;}}ul{display:block;white-space:normal;li{margin-bottom:1px;&::after{display:none;}&:last-child{&::after{display:none;}}}}}"]),e9=e=>{let{work:t}=e,n=(0,C.h1)(t),r=n[0],o=n.length>1?n.slice(1):[],a={id:t.id,title:t.title,alternativeTitles:t.alternativeTitles,referenceNumber:t.referenceNumber};return b()?(0,i.jsx)(e8,{children:(0,i.jsxs)("ul",{children:[r&&(0,i.jsxs)("li",{style:{display:"flex"},children:[(0,i.jsx)(Z.A,{icon:ev.A,matchText:!0}),(0,i.jsx)(eh.A,{id:r.id,className:"crumb-inner","data-gtm-trigger":"work_breadcrumb_link",children:(0,i.jsx)(ep.A,{title:r.title})})]}),o.length>1&&(0,i.jsx)("li",{children:(0,i.jsx)("div",{style:{position:"relative",top:"-5px"},children:(0,i.jsx)(L.Ay,{variant:"DropdownButton",label:"â¦",buttonType:"inline",id:"archive-breadcrumbs",children:(0,i.jsx)("ul",{children:o.map(e=>(0,i.jsxs)("li",{style:{display:"flex"},children:[(0,i.jsx)(Z.A,{icon:e4,matchText:!0}),(0,i.jsx)(eh.A,{id:e.id,className:"crumb-inner","data-gtm-trigger":"work_breadcrumb_link",children:(0,i.jsx)(ep.A,{title:"".concat(e.title," ").concat(e.referenceNumber)})})]},e.id))})})})}),1===o.length&&(0,i.jsx)(i.Fragment,{children:o.map(e=>(0,i.jsxs)("li",{style:{display:"flex"},children:[(0,i.jsx)(Z.A,{icon:e4,matchText:!0}),(0,i.jsx)(eh.A,{id:e.id,className:"crumb-inner","data-gtm-trigger":"work_breadcrumb_link",children:(0,i.jsx)(ep.A,{title:"".concat(e.title).concat(e.referenceNumber?" ".concat(e.referenceNumber):"")})})]},e.id))}),a&&(0,i.jsxs)("li",{style:{display:"flex"},children:[(0,i.jsx)(Z.A,{icon:e4,matchText:!0}),(0,i.jsx)("span",{className:"crumb-inner",children:(0,i.jsx)(ep.A,{title:"".concat(a.title).concat(a.referenceNumber?" ".concat(a.referenceNumber):"")})})]})]})}):null};var e7=n(88868);let te=()=>{var e;let{link:t}=(0,e7.$A)();return(null==(e=t.href)?void 0:e.query)?(0,i.jsx)(eo(),{...t,"data-gtm-trigger":"back_to_search_results",className:(0,z.I)("body","md","regular"),children:(0,i.jsx)("span",{children:"Back to search results"})}):null};var tt=n(74969),tn=n(84926),ti=n(46688);let tr=o.Ay.h1.attrs({className:(0,z.I)("heading","xl","strong","sans")}).withConfig({componentId:"sc-e6fc8e84-0"})(["margin:0;display:inline-block;"]),to=e=>{let{work:t,collectionManifestsCount:n}=e,r=b(),{productionDates:o,archiveLabels:a,cardLabels:s,primaryContributorLabel:l,languageId:c}=t;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(N.xA,{children:(0,i.jsx)(N.LX,{$sizeMap:{s:[12],m:[12],l:[10],xl:[10]},children:(0,i.jsx)(u.A,{$v:{size:"sm",properties:["margin-bottom"]},children:(0,i.jsxs)(tt.A,{children:[(0,i.jsx)(tr,{"aria-live":"polite",id:"work-info",lang:c,children:(0,i.jsx)(ep.A,{title:t.title})}),l&&(0,i.jsx)(u.A,{$h:{size:"sm",properties:["margin-right"]},children:(0,i.jsx)(tn.A,{items:[{text:l}]})}),o.length>0&&(0,i.jsx)(tn.A,{heading:"Date",items:[{text:o[0]}]}),t.referenceNumber&&(0,i.jsx)(tn.A,{heading:"Reference",items:[{text:t.referenceNumber}]}),(null==a?void 0:a.partOf)&&(0,i.jsx)(tn.A,{heading:"Part of",items:[{text:a.partOf}]}),s.length>0&&(0,i.jsx)(u.A,{$v:{size:"sm",properties:["margin-top"]},children:(0,i.jsx)(e_.A,{labels:s,defaultLabelColor:"warmNeutral.300"})}),!!(n&&n>0)&&(0,i.jsx)(u.A,{$v:{size:"sm",properties:["margin-top"]},children:(0,i.jsxs)("p",{className:(0,z.I)("body","md","strong"),style:{marginBottom:0},children:[(0,i.jsx)(ti.A,{backgroundColor:"yellow",number:n}),1===n?" volume ":" volumes ","online"]})})]})})})}),!r&&(0,i.jsx)(u.A,{$v:{size:"sm",properties:["margin-bottom"]},children:(0,i.jsx)(h.A,{lineColor:"neutral.400"})})]})};var ta=n(26648);async function ts(e){return await (0,ta.Q)("articles",e)}var tl=n(37220);let tc=o.Ay.div.withConfig({componentId:"sc-ba0d111d-0"})(["position:relative;min-height:200px;"]),td=(0,o.Ay)(u.A).attrs({$v:{size:"md",properties:["padding-top","padding-bottom"]}}).withConfig({componentId:"sc-ba0d111d-1"})(["background-color:",";"],e=>e.theme.color("warmNeutral.300")),th=e=>{let{workId:t,showDivider:n}=e,{stagingApi:r}=(0,l.h)(),[o,a]=(0,g.useState)([]),[s,c]=(0,g.useState)(!0);return((0,g.useEffect)(()=>{let e=async()=>
1{if(t)try{let e=await ts({params:{linkedWork:t},pageSize:4,shouldUseStagingApi:r});if((null==e?void 0:e.type)==="Error"){c(!1),console.error("Error fetching articles:",e);return}a(e.results),c(!1)}catch(e){c(!1),console.error("Error fetching articles:",e)}};0===o.length&&e()},[t,r]),s||0!==o.length)?s?(0,i.jsx)(td,{children:(0,i.jsx)(m.m,{children:(0,i.jsx)(u.A,{$v:{size:"sm",properties:["padding-top"]},children:(0,i.jsx)(tc,{children:(0,i.jsx)(eK.A,{})})})})}):(0,i.jsx)(td,{children:(0,i.jsxs)(m.m,{children:[(0,i.jsx)(u.A,{$v:{size:"md",properties:["padding-top"]},children:(0,i.jsx)("h2",{className:(0,z.I)("heading","lg","strong","brand"),children:"Stories featuring this work"})}),(0,i.jsx)(u.A,{$v:{size:"sm",properties:["padding-top"]},children:(0,i.jsx)(u.A,{$v:{size:"xl",properties:["margin-bottom"]},children:(0,i.jsx)(tl.A,{articles:o,isCompact:!0})})}),n&&(0,i.jsx)(h.A,{lineColor:"neutral.400"})]})}):null};var tp=n(80791),tm=n(86796),tu=n(26965),tg=n(31795),tx=n(36847),tb=n(28282),tf=n(93831),tj=n(94573),tv=n(44314),ty=n(26291),tw=n(39905),tA=n(15057);let tk=o.Ay.div.withConfig({componentId:"sc-fd5dee44-0"})(["p:nth-child(2){margin-top:0;}"]),tC=e=>{let{title:t,copy:n}=e;return(0,i.jsx)(O.A,{contents:(0,i.jsxs)(tk,{children:[(0,i.jsx)("p",{children:(0,i.jsx)("strong",{children:t})}),n]})})},tI=e=>{let{digitalLocationLicense:t,workId:n,workTitle:r,accessConditionsTerms:o,credit:a,locationOfWork:s}=e;return(0,i.jsxs)(i.Fragment,{children:[o&&(0,i.jsx)(u.A,{$v:{size:"md",properties:["margin-top"]},children:(0,i.jsx)(O.A,{title:"Access conditions",text:o,noSpacing:!0})}),(0,i.jsx)(u.A,{$v:{size:"md",properties:["margin-top"]},children:(0,i.jsx)(tA.A,{id:"licenseDetail",controlText:{defaultText:"Licence and re-use"},children:(0,i.jsxs)(i.Fragment,{children:[t.humanReadableText&&(0,i.jsx)(tC,{title:t.label,copy:t.humanReadableText}),(0,i.jsx)(tC,{title:"Credit",copy:(0,i.jsx)(H,{variant:"content",CTA:"Copy credit information",content:"".concat((0,k.Q$)(r),". ").concat(a?"".concat(a,". "):"").concat(t.label,". Source: Wellcome Collection. https://wellcomecollection.org/works/").concat(n),displayedContent:(0,i.jsxs)("p",{children:[(0,k.Q$)(r),"."," ",a&&(0,i.jsxs)(i.Fragment,{children:[a,". "]}),t.label,". Source: Wellcome Collection."]})})}),s&&(0,i.jsx)(tC,{title:"Provider",copy:(0,i.jsx)("p",{children:s.contents})})]})})})]})},t$=(0,o.Ay)(u.A).attrs({$v:{size:"md",properties:["padding-top","padding-bottom"]},$h:{size:"md",properties:["padding-left","padding-right"]},className:(0,z.I)("body","md","regular")}).withConfig({componentId:"sc-87b3fb06-0"})(["position:relative;border-radius:3px;border:1px solid ",";background-color:",";&::after{position:absolute;content:'';bottom:-4px;left:-1px;height:8px;width:calc(100% + 2px);border-radius:3px;background-color:",";z-index:-1;}"],e=>e.theme.color("black"),e=>e.theme.color("white"),e=>e.theme.color("black")),tS=(0,o.Ay)(u.A).attrs({className:(0,z.I)("body","md","regular"),$v:{size:"md",properties:["padding-top","padding-bottom"]},$h:{size:"md",properties:["padding-left","padding-right"]}}).withConfig({componentId:"sc-87b3fb06-1"})(["background-color:",";h2{margin:0;}p:last-child{margin:0;}"],e=>e.theme.color("warmNeutral.300")),tz=e=>{let{work:t,itemUrl:n,downloadOptions:r,collectionManifestsCount:o,canvasCount:l,canvases:c,digitalLocationInfo:h,itemsStatus:p}=e,{userIsStaffWithRestricted:m}=(0,s.ur)(),g=void 0!==p&&"allStandard"!==p,x=(null==h?void 0:h.accessCondition)!=="open-with-advisory"&&r.length>0&&!g&&((null==h?void 0:h.accessCondition)!=="restricted"||m),b=(null==h?void 0:h.accessCondition)==="restricted"&&m,{isKiosk:f}=(0,a.VD)();return(0,i.jsxs)(i.Fragment,{children:[t.thumbnail&&(0,i.jsx)(u.A,{$v:{size:"xs",properties:["margin-bottom"]},children:(0,i.jsx)(d.A,{condition:!!n,wrapper:e=>n&&(0,i.jsx)(eo(),{href:n.href,style:{display:"inline-block"},children:e}),children:(0,i.jsx)("img",{style:{width:"auto",height:"auto",display:"block"},alt:"view ".concat(t.title),src:t.thumbnail.url})})}),(0,i.jsxs)(d.A,{condition:b,wrapper:e=>(0,i.jsx)(tm.Ay,{gridSizes:(0,tm.H8)(),children:(0,i.jsx)(t$,{children:(0,i.jsx)(tw.A,{headingLevel:3,plural:!0,children:e})})}),children:[(o&&o>0||l&&l>0)&&(0,i.jsx)(d.A,{condition:b,wrapper:e=>(0,i.jsx)(u.A,{$v:{size:"md",properties:["margin-bottom"]},children:e}),children:(0,i.jsxs)("p",{className:(0,z.I)("caption","md","regular"),style:{marginBottom:0},children:["Contains:"," ",o&&o>0||l?(0,tg.Hx)(o,l||0,g,c):null]})}),(n||x)&&(0,i.jsxs)(u.A,{$v:{size:"xs",properties:["margin-top"]},style:{display:"flex"},children:[n&&(0,i.jsx)(u.A,{as:"span",$h:{size:"sm",properties:["margin-right"]},children:(0,i.jsx)(L.Ay,{variant:"ButtonSolidLink",icon:tv.A,text:"View",link:n})}
1),x&&!f&&(0,i.jsx)(ty.A,{ariaControlsId:"itemDownloads",downloadOptions:r})]})]})]})},tN=e=>{var t;let{work:n,downloadOptions:r,itemUrl:o,digitalLocationInfo:a,digitalLocation:s,locationOfWork:l,transformedManifest:c}=e,{collectionManifestsCount:d,canvasCount:h,itemsStatus:p,canvases:m}={...c};return(0,i.jsxs)(B,{headingText:"Available online",children:[void 0!==p&&"allStandard"!==p&&(0,i.jsx)(u.A,{$v:{size:"xl",properties:["margin-bottom"]},children:(0,i.jsx)(tS,{children:X.Jk})}),(0,i.jsx)(tz,{work:n,itemUrl:o,canvases:m,collectionManifestsCount:d,canvasCount:h,downloadOptions:r,digitalLocationInfo:a,itemsStatus:p}),(null==a?void 0:a.license)&&(0,i.jsx)(tI,{digitalLocationLicense:a.license,accessConditionsTerms:null==s||null==(t=s.accessConditions[0])?void 0:t.terms,credit:null==s?void 0:s.credit,locationOfWork:l,workId:n.id,workTitle:n.title})]})};var tT=n(63667);let tL=o.Ay.button.attrs({className:(0,z.I)("body","md","regular")}).withConfig({componentId:"sc-a4369983-0"})(["margin:0 !important;padding:0;text-decoration:underline;&:hover{text-decoration:none;}"]),tD=e=>{let{listItems:t,initialItems:n=3}=e,r=t.slice(0,n),o=t.slice(n),[a,s]=(0,g.useState)(!1),l=(0,g.useRef)(null),c=(0,g.useRef)(null),d=(0,g.useRef)(!0);return(0,g.useEffect)(()=>{var e,t;a?null==l||null==(e=l.current)||e.focus():d.current?d.current=!1:null==c||null==(t=c.current)||t.focus()},[a]),t.length>0?(0,i.jsxs)("div",{"data-component":"expandable-list",children:[(0,i.jsxs)(tT.A,{children:[r.map((e,t)=>(0,i.jsx)("li",{className:(0,z.I)("body","md","regular"),children:e},t)),a&&(0,i.jsx)(i.Fragment,{children:o.map((e,t)=>(0,i.jsx)("li",{className:(0,z.I)("body","md","regular"),children:e},t))})]}),o.length>0&&(0,i.jsx)(tL,{ref:c,onClick:()=>s(!a),children:a?"- Show less":"+ ".concat(o.length," more")})]}):null},tP=e=>{let{holdings:t}=e;return(0,i.jsx)(i.Fragment,{children:t.length>0?(0,i.jsx)(B,{headingText:"Holdings",children:t.map((e,n)=>{let r=e.location&&(0,C.U6)(e.location),o=e.location&&(0,C.bX)(e.location),a=e.location&&(0,C.eQ)(e.location);return(0,i.jsxs)(u.A,{$v:n+1!==t.length?{size:"md",properties:["margin-bottom"]}:{size:"md",properties:[]},children:[e.enumeration.length>0&&(0,i.jsx)(u.A,{$v:{size:"xs",properties:["margin-bottom"]},children:(0,i.jsx)(tD,{listItems:e.enumeration,initialItems:10})}),(0,i.jsxs)(u.A,{$v:{size:"xs",properties:["margin-bottom"]},children:[a&&(0,i.jsx)("a",{className:(0,z.I)("body","md","regular"),href:a.url,children:a.linkText}),o&&(0,i.jsx)(O.A,{title:"Location",text:"".concat(r," ").concat(o),noSpacing:!0}),e.note&&(0,i.jsx)(O.A,{title:"Note",text:e.note,inlineHeading:!0,noSpacing:!0})]})]},n)})}):null})},t_=o.Ay.button.attrs({className:(0,z.I)("body","md","regular")}).withConfig({componentId:"sc-5c918cb7-0"})(["text-decoration:underline;padding:0;&:hover{text-decoration:none;}"]),tR=e=>{let{work:t}=e,n=(0,C.tZ)(t,"online-resource").map(e=>{let[t]=e.locations;return{title:e.title,location:t}}),r=n.slice(0,3),o=n.slice(3),[a,s]=(0,g.useState)(!1),l=(0,g.useRef)(null),c=(0,g.useRef)(null),d=(0,g.useRef)(!0);return(0,g.useEffect)(()=>{var e,t;a?null==l||null==(e=l.current)||e.focus():d.current?d.current=!1:null==c||null==(t=c.current)||t.focus()},[a]),n.length>0?(0,i.jsxs)(B,{headingText:"Online resources",children:[(0,i.jsxs)(tT.A,{children:[r.map(e=>(0,i.jsxs)("li",{className:(0,z.I)("body","md","regular"),children:[e.title&&"".concat(e.title,": "),(0,i.jsx)("a",{href:e.location.url,children:e.title?"View resource":e.location.linkText})]},e.location.url)),a&&(0,i.jsx)(i.Fragment,{children:o.map((e,t)=>(0,i.jsxs)("li",{className:(0,z.I)("body","md","regular"),children:[e.title&&"".concat(e.title,": "),(0,i.jsx)("a",{href:e.location.url,ref:0===t?l:void 0,children:e.title?"View resource":e.location.linkText})]},e.location.url))})]}),o.length>0&&(0,i.jsx)(t_,{ref:c,onClick:()=>s(!a),children:a?"- Show less":"+ ".concat(o.length," more")})]}):null},tH=["open","open-with-advisory","restricted"],tU=["online-request"],tF=e=>{let t=(0,C.p8)(e);return!!t&&(e=>{var t,n;let i=(0,C.cY)(e),r=null==i||null==(t=i.method)?void 0:t.id,o=null==i||null==(n=i.status)?void 0:n.id;return tU.includes(r||"")&&tH.includes(o||"")})(t)},tq=e=>{var t;let n=(0,C.p8)(e),i=(0,C.cY)(n);return(null==i||null==(t=i.status)?void 0:t.id)==="temporarily-unavailable"};var tE=n(18298),tW=n(36580);let tB=o.Ay.table.attrs({className:(0,z.I)("body","md","regular")}).withConfig({componentId:"sc-b7597d69-0"})(["table-layout:",";width:100%;border-collapse:collapse;@media (max-width:","){display:block;thead,tbody,th,td,tr{display:block;}thead{overflow:hidden;position:relative;}thead tr{position:absolute;}}"],e=>e.$useFixedWidth?"fixed":"auto",e=>e.$maxWidth||e.theme.sizes.md),tO=(0,o.Ay)(u.A).attrs({as:"tr"}).withConfig({componentId:"sc-b7597d69-1"})(["border-bottom:1px solid ",";&:last-of-type{border:none;}"],e=>e.theme.color("warmNeutral.400")),tM=(0,o.Ay)(u.A).attrs(e=>({as:"th",$v:{size:"xs",properties:e.$plain?[]:["padding-top","padding-bottom"]},$h:{size:"sm",properties:e.$plain?[]:["padding-left","padding-right"]},className:(0,z.I)("body","md","strong")})).withConfig({componentId:"sc-b7597d69-2"})(["background:",";white-space:nowrap;text-align:left;vertical-align:top;@media (max-width:","){padding-left:0;}"],e=>e.$plain?"transparent":e.theme.color("warmNeutral.400"),e=>e.$maxWidth||e.theme.sizes.md),tV=(0,o.Ay)(u.A).attrs(e=>({as:"td",$v:{size:"sm",properties:e.$plain?[]:["padding-top","padding-bottom"]},$h:{size:"sm",properties:e.$plain?[]:["padding-left","padding-right"]}}
1)).withConfig({componentId:"sc-b7597d69-3"})(["text-align:left;vertical-align:top;@media (max-width:","){padding-left:0;padding-top:0;padding-bottom:",";&:first-of-type{padding-top:",";}&:last-of-type{padding-bottom:",";}&::before{display:block;white-space:nowrap;content:",";font-weight:",";}}"],e=>e.$maxWidth||e.theme.sizes.md,e=>e.theme.spacingUnit,e=>2*e.theme.spacingUnit,e=>3*e.theme.spacingUnit,e=>e.$cellContent?"'".concat(e.$cellContent,"'"):"",tW.Lq),tG=e=>{let{rows:t,plain:n,maxWidth:r,columnWidths:o=[]}=e,a=t[0],s=t.slice(1);return(0,i.jsxs)(tB,{"data-component":"stacking-table",$maxWidth:r,$useFixedWidth:o.length>0,children:[(0,i.jsx)("thead",{children:(0,i.jsx)("tr",{children:a.map((e,t)=>(0,i.jsx)(tM,{width:o[t],$plain:n,$maxWidth:r,children:e},t))})}),(0,i.jsx)("tbody",{children:s.map((e,t)=>(0,i.jsx)(tO,{children:e.map((e,t)=>(0,i.jsx)(tV,{$plain:n,$maxWidth:r,$cellContent:a[t],children:e},t))},t))})]})},tY=(0,o.Ay)(u.A).attrs({$h:{size:"xs",properties:["padding-left","margin-left"]}}).withConfig({componentId:"sc-81cd230-0"})(["border-left:5px solid ",";"],e=>e.theme.color("yellow")),tX=e=>{let{allowedHoldRequests:t,currentHoldRequests:n}=e;return void 0!==n?(0,i.jsxs)(tY,{children:[n,(0,i.jsx)("span",{"aria-hidden":"true",children:"/"}),(0,i.jsx)("span",{className:"visually-hidden",children:"out of"}),"".concat(t," item").concat(1!==n?"s":"","\n requested")]}):null},tK=(0,o.Ay)(u.A).attrs({$v:{size:"md",properties:["margin-top"]}}).withConfig({componentId:"sc-e807e13d-0"})([""]),tJ=(0,o.Ay)(u.A).attrs({$v:{size:"sm",properties:["margin-bottom"]}}).withConfig({componentId:"sc-e807e13d-1"})(["display:flex;justify-content:space-between;align-items:center;"]),tZ=e=>{let{currentHoldNumber:t,pickUpDate:n}=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(tJ,{children:[(0,i.jsx)("span",{className:(0,z.I)("heading","lg","strong","brand"),children:"Request confirmed"}),(0,i.jsx)(tX,{allowedHoldRequests:15,currentHoldRequests:t})]}),(0,i.jsxs)("p",{children:["It will be available to pick up from the library (Rare Materials Room, level\xa03) for one week from"," ",n||"your selected pickup date","."]}),(0,i.jsx)(tK,{children:(0,i.jsx)(L.Ay,{variant:"ButtonSolidLink",text:"View your library account",link:"/account"})})]})},tQ=e=>{let{setIsActive:t,errorMessage:n}=e,r=(0,o.DP)();return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(tJ,{children:(0,i.jsx)("span",{className:(0,z.I)("heading","lg","strong","brand"),children:"Request failed"})}),(0,i.jsx)("p",{style:{marginBottom:0},children:n||X.K7}),(0,i.jsx)(tK,{children:(0,i.jsx)(L.Ay,{variant:"ButtonSolid",colors:r.buttonColors.greenTransparentGreen,text:"Close",clickHandler:()=>t(!1)})})]})};function t0(e){let t=e.getUTCDate().toString().padStart(2,"0"),n=(e.getUTCMonth()+1).toString().padStart(2,"0"),i=e.getUTCFullYear().toString();return"".concat(t,"-").concat(n,"-").concat(i)}var t1=n(7973),t2=n(66339);let t3=e=>{let{availableDates:t,pickUpDate:n,setPickUpDate:r}=e;return(0,i.jsx)("div",{style:{position:"relative"},children:(0,i.jsx)(t2.A,{name:"calendar_dates",label:"Select a date",options:t.map(e=>new Date(e.from)).map(e=>({value:t0(e),text:"".concat((0,tp.F$)(e)," ").concat((0,tp.ky)(e))})).slice(0,12),value:n||"Select a date",onChange:e=>r(e.target.value),hideLabel:!0})})};function t6(){let e=(0,r._)(["\n margin: 0;\n "]);return t6=function(){return e},e}let t5=(0,o.Ay)(u.A).attrs({$v:{size:"md",properties:["padding-top","padding-bottom"]}}).withConfig({componentId:"sc-66cf56ce-0"})(["border-top:1px solid ",";border-bottom:1px solid ",";@media (min-width:800px){display:flex;justify-content:space-between;min-width:min(80vw,700px);}"],e=>e.theme.color("neutral.300"),e=>e.theme.color("neutral.300")),t4=(0,o.Ay)(u.A).attrs({id:"pick-up-date-description"}).withConfig({componentId:"sc-66cf56ce-1"})(["@media (min-width:800px){flex:0 0 64%;}"]),t8=o.Ay.div.withConfig({componentId:"sc-66cf56ce-2"})(["flex-grow:1;"]),t9=(0,o.Ay)(u.A).attrs({$h:{size:"md",properties:["margin-right"]},$v:{size:"xs",properties:["margin-bottom"]}}).withConfig({componentId:"sc-66cf56ce-3"})(["display:inline-block;"]),t7=o.Ay.form.withConfig({componentId:"sc-66cf56ce-4"})([""]),ne=o.Ay.span.withConfig({componentId:"sc-66cf56ce-5"})(["display:block;
1"]),nt=o.Ay.p.attrs({className:(0,z.I)("body","sm","regular")}).withConfig({componentId:"sc-66cf56ce-6"})(["",""],e=>e.theme.media("md")(t6())),nn=(0,o.Ay)(u.A).attrs({as:"p",$h:{size:"sm",properties:["padding-left"]},$v:{size:"sm",properties:["margin-bottom","margin-top"]}}).withConfig({componentId:"sc-66cf56ce-7"})(["border-left:5px solid ",";"],e=>e.theme.color("validation.red")),ni=e=>{var t,n;let{work:r,item:a,confirmRequest:s,setIsActive:l,currentHoldNumber:c,pickUpDate:d,setPickUpDate:h}=e,p=(0,o.DP)(),m=a.availableDates&&"".concat((0,tp.F$)(new Date(a.availableDates[0].from))," ").concat((0,tp.ky)(new Date(a.availableDates[0].from)));return(0,g.useEffect)(()=>{!d&&a.availableDates&&h(t0(new Date(a.availableDates[0].from)))},[a.availableDates]),(0,i.jsxs)(t7,{onSubmit:function(e){e.preventDefault();let t=d?function(e){let t=e.slice(0,2),n=e.slice(3,5),i=e.slice(6,10);return new Date("".concat(i,"-").concat(n,"-").concat(t,"T00:00:00Z"))}(d):void 0;t&&s(t)},children:[(0,i.jsxs)(tJ,{children:[(0,i.jsx)("span",{className:(0,z.I)("heading","lg","strong","brand"),children:"Request item"}),(0,i.jsx)(tX,{allowedHoldRequests:15,currentHoldRequests:c})]}),(0,i.jsx)("p",{className:(0,z.I)("body","md","strong"),style:{marginBottom:0},children:"You are about to request the following item:"}),(0,i.jsx)(u.A,{$v:{size:"xs",properties:["margin-bottom"]},children:(0,i.jsxs)("p",{style:{marginBottom:0},children:[r.title&&(0,i.jsx)(ne,{children:r.title}),a.title&&(0,i.jsx)("span",{children:a.title})]})}),(0,i.jsx)(u.A,{$v:{size:"sm",properties:["margin-bottom"]},children:(0,i.jsxs)(t5,{children:[(0,i.jsxs)(t4,{children:[(0,i.jsx)(u.A,{$v:{size:"xs",properties:["margin-bottom"]},children:(0,i.jsx)("p",{style:{marginBottom:0},children:"Select the date you would like to view this item in the library."})}),(0,i.jsxs)(nt,{children:[(0,i.jsxs)("span",{"data-testid":"pickup-deadline",children:[X.Xw.pickupItemOn," ",(0,i.jsx)("b",{children:m}),".",(0,i.jsx)("br",{})]}),X.Xw.libraryClosedOnSunday]})]}),(0,i.jsx)(t8,{children:(null==(t=a.availableDates)?void 0:t.length)?(0,i.jsx)(t3,{availableDates:a.availableDates,pickUpDate:d,setPickUpDate:h}):(0,i.jsxs)(nn,{children:["Error fetching available dates.",(0,i.jsx)("br",{}),"Try again later or email us at",(0,i.jsx)("br",{}),(0,i.jsx)("a",{href:"mailto:[email protected]",children:"[email protected]"})]})})]})}),(0,i.jsxs)(tK,{children:[(0,i.jsx)(t9,{children:(0,i.jsx)(L.Ay,{variant:"ButtonSolid",text:"Confirm request",dataGtmProps:{trigger:"requesting_confirm"},disabled:!(null==(n=a.availableDates)?void 0:n.length)})}),(0,i.jsx)(L.Ay,{variant:"ButtonSolid",colors:p.buttonColors.greenTransparentGreen,type:t1.E.button,text:"Cancel",clickHandler:()=>l(!1)})]})]})},nr=e=>{let{item:t,work:n,setIsActive:r,initialHoldNumber:o,onSuccess:a,openButtonRef:s,...l}=e,[c,d]=(0,g.useState)("initial"),[h,p]=(0,g.useState)(),[m,u]=(0,g.useState)(o),[x,b]=(0,g.useState)(t.availableDates&&t0(new Date(t.availableDates[0].from)));function f(e){"requesting"!==c&&(e?r(!0):(r(!1),"confirmed"!==c&&d("initial")))}async function j(e){d("requesting");try{let i=await fetch("/account/api/users/me/item-requests",{method:"POST",body:JSON.stringify({workId:n.id,itemId:t.id,pickupDate:function(e){let t=e.getUTCFullYear().toString(),n=(e.getUTCMonth()+1).toString().padStart(2,"0"),i=e.getUTCDate().toString().padStart(2,"0");return"".concat(t,"-").concat(n,"-").concat(i)}(e),type:"Item"}),headers:{"Content-Type":"application/json"}});if(i.ok)d("confirmed"),u(e=>(e||0)+1),a();else{let e=await i.json();d("error"),p(e.description)}}catch(e){d("error")}}return(0,g.useEffect)(()=>{u(o)},[o]),(0,i.jsx)(et.A,{...l,removeCloseButton:"requesting"===c,id:"confirm-request-modal",setIsActive:f,openButtonRef:s,children:(0,i.jsx)("div",{"aria-live":"assertive",children:function(){switch(c){case"requesting":return(0,i.jsx)(eK.A,{});case"error":return(0,i.jsx)(tQ,{setIsActive:f,errorMessage:h});case"confirmed":return(0,i.jsx)(tZ,{currentHoldNumber:m,pickUpDate:x});case"initial":return(0,i.jsx)(ni,{work:n,item:t,confirmRequest:j,setIsActive:f,currentHoldNumber:m,pickUpDate:x,setPickU
1pDate:b})}}()})})},no=(0,o.i7)(["from{background-position:0 0;}70%{background-position:-50% 0;}to{background-position:-200% 0;}"]),na=o.Ay.div.withConfig({componentId:"sc-8a7d774e-0"})(["background:",";background-size:200%;background-repeat:repeat-x;animation:"," 1.2s ease-in infinite;width:","%;height:1rem;margin-top:0.5rem;"],e=>{let{theme:t}=e;return(e=>{let t=e.colors["neutral.300"];return"".concat(t," linear-gradient(to right, ").concat(t,", ").concat("rgb(255, 255, 255, 0.6)"," 70%, ").concat(t,")")})(t)},no,e=>{let{$percentWidth:t}=e;return t.toFixed(2)}),ns=o.Ay.div.withConfig({componentId:"sc-8a7d774e-1"})(["max-width:",";"],e=>{let{$maxWidth:t}=e;return t}),nl=[.8,.6,.3,.5,.8,.5,.2,.4,.3,.1],nc=e=>{let{children:t,isLoading:n,maxWidth:r,nRows:o}=e;return n?(0,i.jsx)(ns,{$maxWidth:r||"100%",children:Array.from({length:o||1}).map((e,t)=>(0,i.jsx)(na,{$percentWidth:(e=>{let{min:t,i:n}=e;return 100-(100-t)*nl[n%nl.length]})({min:95,i:t})},"row-".concat(t)))}):(0,i.jsx)(i.Fragment,{children:t})},nd=(0,o.Ay)(u.A).attrs({$v:{size:"sm",properties:["margin-bottom","padding-bottom"]}}).withConfig({componentId:"sc-8eb69b21-0"})(["",""],e=>e.$underline&&"\n border-bottom: 1px solid ".concat(e.theme.color("warmNeutral.400"),";\n ")),nh=o.Ay.div.withConfig({componentId:"sc-8eb69b21-1"})(["& > button{transform:translateY(-1.2em);}@media (max-width:","px){margin-top:","px;& > button{transform:translateY(0);}}"],e=>e.$styleChangeWidth,e=>2*e.theme.spacingUnit),np=o.Ay.h3.attrs({className:"".concat((0,z.I)("body","md","strong"))}).withConfig({componentId:"sc-8eb69b21-2"})(["margin-bottom:0;"]),nm=e=>{var t;let{item:n,work:r,accessDataIsStale:a,userHeldItems:c,isLast:d}=e,{state:h}=(0,s.ur)(),{disableRequesting:p}=(0,l.h)(),m=b(),x=(0,o.DP)(),f=(0,g.useRef)(null),[j,v]=(0,g.useState)(!1),[y]=(0,g.useState)([]);function w(e){return!!e.id&&-1!==y.indexOf(e.id)}let A=w(n)||n.id&&(null==c?void 0:c.has(n.id)),k=(0,C.p8)(n),I=(0,C.cY)(k),$=null==I?void 0:I.note,S=k&&(0,C.U6)(k),z=k&&(0,C.bX)(k),N=(null==k?void 0:k.locationType.id)==="open-shelves",T=(null==I||null==(t=I.method)?void 0:t.label)||"",D=(()=>{var e;return w(n)?"Temporarily unavailable":N?"Open shelves":(null==I||null==(e=I.status)?void 0:e.label)||""})(),P=!!D,_=!N,R=tF(n)&&!w(n),H="loading"===h||"initial"===h,U=a||R&&H,F=R&&"signedin"===h&&!p&&!U,q=n.title||"",E=n.note||"",W=S||"",B=z||"";return(0,i.jsxs)(i.Fragment,{children:[F&&(0,i.jsx)(nr,{isActive:j,setIsActive:v,item:n,work:r,initialHoldNumber:null==c?void 0:c.size,onSuccess:()=>n.id&&y.push(n.id),openButtonRef:f}),(0,i.jsxs)(nd,{$underline:!d,children:[(q||E)&&(0,i.jsxs)(u.A,{$v:{size:"sm",properties:["margin-bottom"]},children:[(0,i.jsx)(np,{children:q}),E&&(0,i.jsx)("span",{dangerouslySetInnerHTML:{__html:E}})]}),(0,i.jsx)(tG,{rows:function(){let e=[(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{children:W}),(0,i.jsx)("div",{children:B})]})];if(P?e.push((0,i.jsx)(nc,{isLoading:U,nRows:2,maxWidth:"75%",children:(0,i.jsx)("span",{children:D})})):e.push(" "),_){var t;e.push((0,i.jsx)(nc,{isLoading:U,nRows:2,maxWidth:"75%",children:null!=(t=X.PV[T])?t:T}))}else e.push(" ");if(F){let t=(0,i.jsx)(L.Ay,{variant:"ButtonSolid",colors:x.buttonColors.greenTransparentGreen,disabled:"signedin"!==h,ref:f,text:"Request item",dataGtmProps:{trigger:"requesting_initiate"},clickHandler:()=>{v(!0)}});e.push((0,i.jsx)(nh,{$styleChangeWidth:m?980:620,children:t}))}else e.push(" ");return[["Location",P?"Status":" ",_?"Access":" "," "],e]}(),maxWidth:m?"61.25rem":"38.75rem",columnWidths:[180,200,void 0,void 0],plain:!0}),($||A)&&(0,i.jsxs)(u.A,{$v:{size:"sm",properties:["margin-top"]},children:[(0,i.jsx)(np,{children:"Note"}),(0,i.jsx)(nc,{nRows:3,isLoading:a||H||"signedin"===h&&!c,maxWidth:"50%",children:(0,i.jsx)("span",{dangerouslySetInnerHTML:{__html:A?"You have requested this item.":$||""}})})]})]})]})},nu=e=>e.some(tq)||e.some(e=>tF(e))?"stale":"up-to-date",ng=e=>{let{work:t,items:n}=e,{state:r}=(0,s.ur)(),[o,a]=(0,g.useState)(),[l,c]=(0,g.useState)(n),[d,h]=(0,g.useState)(nu(n));return(0,g.useEffect)(()=>{h(nu(n)),c(n)},[t]),(0,tE.F)(e=>{let t=async()=>{var t;let n=await fetch("/account/api/users/me/item-requests",{signal:e}),i=await n.json(),r=null==i||null==(t=i.results)?void 0:t.map(e=>e.item.id);a(r&&new Set(r))};"signedin"===r&&t().catch(tE.b)},[r]),(0,tE.F)(e=>{let n=async()=>{let n=await (0,Q.si)(t.id,e);"Error"!==n.type?(c((0,C.tp)(n.results)),h("up-to-date")):console.warn("Unable to get up-to-date status of items: ".concat(n))};"stale"===d&&n().catch(tE.b)},[d]),(0,i.jsx)(tD,{listItems:l.map((e,n)=>(0,i.jsx)(nm,{item:e,work:t,accessDataIsStale:"stale"===d,userHeldItems:o,isLast:n===l.length-1},n)),initialItems:5})},nx=function(e){return(0,i.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,i.jsx)("path",{fill:"currentColor",d:"M20 3.43H4a4 4 0 0 0-4 4v10a4 4 0 0 0 4 4h16a4 4 0 0 0 4-4v-10a4 4 0 0 0-4-4m2 14a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-10a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2zm-3.2-6.71h-4.5a1 1 0 0 0 0 2h4.5a1 1 0 0 0 0-2m-8.62 2.15a3.18 3.18 0 1 0-3.86 0A4.53 4.53 0 0 0 3.71 17a1 1 0 0 0 1 1h7.07a1 1 0 0 0 1-1 4.53 4.53 0 0 0-2.6-4.13M8.25 9.18a1.18 1.18 0 1 1 0 2.36 1.18 1.18 0 0 1 0-2.36M5.92 16a2.54 2.54 0 0 1 4.66 0zM18.8 7.18h-4.5a1 1 0 0 0 0 2h4.5a1 1 0 0 0 0-2",className:"icon__shape"})})};var nb=n(81278);let nf=(0,o.Ay)(u.A).attrs({$h:{size:"sm",properties:["padding-left","padding-right"]},$v:{size:"xs",properties:["padding-top","padding-bottom"]}}).withConfig({componentId:"sc-328edaa-0"})(["background:",";display:flex;align-items:center;position:relative;.icon{transform:translateY(0.2em);}"],e=>e.theme.color("accent.lightTurquoise")),nj=()=>{let e=(()=>{let e=(0,nb.useRouter)();return(null==e?void 0:e.asPath)?"/account/api/auth/login?returnTo=".concat(e.asPath):"/account/api/auth/login"})();return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(u.A,{$h:{size:"xs",properties:["margin-right"]},className:(0,z.I)("body","md","strong"),children:"Library members:"}),(0,i.jsx)("a",{href:e,"data-gtm-trigger":"library_account_login",className:(0,z.I)("body","md","regular"),children:"sign in to your library account to request items"})]})},nv=e=>{let{reload:t}=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:(0,z.I)("body","md","strong"),children:"Something went wrong trying to check if you are signed in"})," ",(0,i.jsx)("button",{className:(0,z.I)("body","md","regular"),onClick:()=>{t()},style:{border:"none",background:"none",cursor:"pointer",borderBottom:"1px solid"},children:"Try again"})]})},ny=()=>{let{state:e,reload:t}=(0,s.ur)(),{disableRequesting:n}=(0,l.h)();return n?(0,i.jsxs)(nf,{children:[(0,i.jsx)(u.A,{$h:{size:"xs",properties:["margin-right"]},children:(0,i.jsx)(Z.A,{icon:nx})}),(0,i.jsx)(u.A,{$h:{size:"xs",properties:["margin-right"]},className:(0,z.I)("body","md","strong"),children:"Library members:"}),(0,i.jsx)("span",{"data-testid":"requesting-disabled",className:(0,z.I)("body","md","regular"),children:X.e9})]}):"signedout"===e||"failed"===e?(0,i.jsxs)(nf,{children:[(0,i.jsx)(u.A,{$h:{size:"xs",properties:["margin-right"]},children:(0,i.jsx)(Z.A,{icon:nx})}),"signedout"===e&&(0,i.jsx)(nj,{}),"failed"===e&&(0,i.jsx)(nv,{reload:t})]}):null},nw=e=>{let{work:t,physicalItems:n,locationOfWork:r}=e,{isKiosk:o}=(0,a.VD)();return(0,i.jsxs)(B,{headingText:"Where to find it",children:[n.some(e=>tF(e)||tq(e))&&!o&&(0,i.jsx)(u.A,{$v:{size:"sm",properties:["margin-bottom"]},children:(0,i.jsx)(ny,{})}),r&&(0,i.jsx)(O.A,{title:r.noteType.label,html:r.contents,allowDangerous
1RawHtml:!0}),(0,i.jsx)(ng,{work:t,items:n})]})},nA=e=>{let{work:t,shouldShowItemLink:n,iiifImageLocation:r,digitalLocation:a,digitalLocationInfo:s,transformedManifest:l}=e,c=b(),d=(0,tu.A)((0,w.R)(t)),h=(0,o.DP)(),{canvases:p,rendering:m}={...l},x=null==r?void 0:r.url,f=x?(0,C.h6)({url:x,width:null==d?void 0:d.width,height:null==d?void 0:d.height}):[],j=(0,tg.Aq)(m),v=(null==p?void 0:p.map(e=>(0,tg.R3)(e)).flat())||[],y=(0,tg.NR)([...f,...v,...j]),A=t.duration&&(0,tp.a3)(t.duration),k=t.identifiers.filter(e=>"isbn"===e.identifierType.id),I=t.identifiers.filter(e=>"issn"===e.identifierType.id),$=t.identifiers.filter(e=>"wellcome-accession-number"===e.identifierType.id),S=k.length>0||I.length>0||$.length>0,N=t.partOf.filter(e=>!e.id),T=(0,g.useMemo)(()=>{var e;return(0,C.tp)(null!=(e=t.items)?e:[])},[t.items]),D=t.notes.find(e=>"location-of-original"===e.noteType.id),{orderedNotes:P,remainingNotes:_}=(0,C.FK)(t,[D]),R=(0,C.lD)(t),U=()=>(0,i.jsxs)(i.Fragment,{children:[n&&(0,i.jsx)(tN,{work:t,downloadOptions:y,itemUrl:(0,tb.Vs)({workId:t.id,props:{}}),digitalLocationInfo:s,digitalLocation:a,locationOfWork:D,transformedManifest:l}),(0,i.jsx)(tR,{work:t}),t.images&&t.images.length>0&&(0,i.jsx)(B,{headingText:"Selected images from this work",children:(0,i.jsx)(L.Ay,{variant:"ButtonSolidLink",dataGtmProps:{trigger:"view_selected_images"},colors:h.buttonColors.greenTransparentGreen,text:t.images.length>1?"View ".concat(t.images.length," images"):"View 1 image",link:(0,tf.wC)({query:t.id})})}),(0,i.jsxs)(B,{headingText:"About this work",children:[t.alternativeTitles.length>0&&(0,i.jsx)(O.A,{title:"Also known as",text:t.alternativeTitles}),t.description&&(0,i.jsx)(O.A,{title:"Description",html:t.description,allowDangerousRawHtml:!0}),t.production.length>0&&(0,i.jsx)(O.A,{title:"Publication/Creation",text:t.production.map(e=>e.label)}),t.currentFrequency&&(0,i.jsx)(O.A,{title:"Current frequency",text:t.currentFrequency}),t.formerFrequency.length>0&&(0,i.jsx)(O.A,{title:"Former frequency",text:t.formerFrequency}),t.designation.length>0&&(0,i.jsx)(O.A,{title:"Designation",text:t.designation}),t.physicalDescription&&(0,i.jsx)(O.A,{title:"Physical description",html:t.physicalDescription,allowDangerousRawHtml:!0}),N.length>0&&(0,i.jsx)(eU,{title:"Series",tags:N.map(e=>({textParts:[e.title],linkAttributes:(0,tj.YY)({"partOf.title":e.title})}))}),t.contributors.length>0&&(0,i.jsx)(eU,{title:"Contributors",tags:t.contributors.map(e=>({textParts:[e.agent.label,...e.roles.map(e=>e.label)],linkAttributes:(0,C.qr)({id:e.agent.id,filterKey:"contributors.agent.label",filterValue:e.agent.label})})),separator:""}),P.map(e=>(0,i.jsx)(O.A,{title:e.noteType.label,html:e.contents,allowDangerousRawHtml:!0},e.noteType.label)),t.lettering&&(0,i.jsx)(O.A,{title:"Lettering",text:t.lettering}),t.edition&&(0,i.jsx)(O.A,{title:"Edition",text:t.edition}),A&&(0,i.jsx)(O.A,{title:"Duration",text:A}),_.map(e=>(0,i.jsx)(O.A,{title:e.noteType.label,html:e.contents,allowDangerousRawHtml:!0},e.noteType.label)),t.genres.length>0&&(0,i.jsx)(eU,{title:"Type/Technique",tags:t.genres.map(e=>({textParts:e.concepts.map(e=>e.label),linkAttributes:(0,tx.g)({conceptId:e.concepts[0].id})}))}),t.languages.length>0&&(0,i.jsx)(eU,{title:"Languages",tags:t.languages.map(e=>({textParts:[e.label],linkAttributes:(0,tj.YY)({languages:[e.id]})}))})]}),t.subjects.length>0&&(0,i.jsx)(B,{headingText:"Subjects",children:(0,i.jsx)(eU,{tags:(0,C.G)(t)})}),R&&(0,i.jsx)(tP,{holdings:R}),(D||T.length>0)&&(0,i.jsx)(nw,{work:t,locationOfWork:D,physicalItems:T}),(0,i.jsx)(B,{headingText:"Permanent link",children:(0,i.jsx)("div",{className:(0,z.I)("body","md","regular"),children:(0,i.jsx)(H,{variant:"url",url:"https://wellcomecollection.org/works/".concat(t.id)})})}),S&&(0,i.jsxs)(B,{headingText:"Identifiers",children:[k.length>0&&(0,i.jsx)(q,{title:"ISBN",list:k.map(e=>e.value)}),I.length>0&&(0,i.jsx)(q,{title:"ISSN",list:I.map(e=>e.value)}),$.length>0&&(0,i.jsx)(q,{title:"Accession number",list:$.map(e=>e.value)})]})]});return c?(0,i.jsx)(u.A,{$h:{size:"md",properties:["padding-left","padding-right"]},children:U()}):(0,i.jsx)(tm.Bf,{gridSizes:(0,tm.tS)(),children:U()})};function nk(){let e=(0,r._)(["\n display: flex;\n "]);return nk=function(){return e},e}let nC=o.Ay.div.withConfig({componentId:"sc-52daa55e-0"})(["display:block;",""],e=>e.theme.media("sm")(nk())),nI=(0,o.Ay)(u.A).attrs({$v:{size:"xl",properties:["padding-top"]}}).withConfig({componentId:"sc-52daa55e-1"})(["flex:1;min-width:0;"]),n$=e=>{var t,n,r;let{work:o,apiUrl:b}=e,{isKiosk:$}=(0,a.VD)(),{archiveCollection:S}=(0,l.h)(),{userIsStaffWithRestricted:z}=(0,s.ur)(),N=!!(o.parts.length||(0,C.h1)(o).length>0),T=(0,C.DD)(o)&&S,L=(0,C.TK)(o,"iiif-image"),D=(0,C.TK)(o,"iiif-presentation"),P=D||L,_=P&&(0,C.aN)(P),{transformedManifest:R,isLoading:H}=((e,t)=>
1{let[n,i]=(0,g.useState)(e&&y.get(e.url)),[r,o]=(0,g.useState)(!!e&&!y.has(e.url)),[a,s]=(0,g.useState)();return(0,g.useEffect)(()=>{let n=!0;async function r(e){let r=y.get(e);if(r){i(r),o(!1);return}o(!0);try{let r=v.get(e)||(()=>{let n=(0,f.Z)({location:e,workTypeId:t}).catch(t=>{throw v.delete(e),t});return v.set(e,n),n})(),o=await r;if(!n)return;if(o){let t=(0,j.m)(o);y.set(e,t),i(t)}}catch(e){n&&s(e)}finally{n&&o(!1)}}return s(void 0),i(e&&y.get(e.url)),e?r(e.url):o(!1),()=>{n=!1}},[null==e?void 0:e.url,t]),{transformedManifest:n,isLoading:r,error:a}})(D,null==(t=o.workType)?void 0:t.id),{collectionManifestsCount:U}={...R},F=(0,C.Jl)({userIsStaffWithRestricted:z,hasViewableIIIFContent:(0,C.mr)({iiifImageLocation:L,iiifPresentationLocation:D,isLoadingManifest:H,transformedManifest:R}),accessCondition:null==_?void 0:_.accessCondition}),q=L&&L.url?(0,c.$W)(L.url)({size:"800,"}):void 0,E=(0,k.aG)(o.title),W=q?{contentUrl:q,alt:E,width:0,height:0,crops:{}}:void 0;return(0,i.jsx)(x.Provider,{value:N,children:(0,i.jsxs)(I.A,{title:E,description:o.description||E,url:{pathname:"/works/".concat(o.id)},openGraphType:"website",jsonLd:function(e){var t,n,i;let r=(e.contributors||[]).map(e=>({"@type":e.agent.type,name:e.agent.label})),o=e.subjects.map(e=>e.label).join(",");return(0,A.zr)({creator:r,keywords:o,name:(0,k.aG)(e.title),description:e.description,thumbnailUrl:null==e||null==(t=e.thumbnail)?void 0:t.url,license:null==e||null==(i=e.thumbnail)||null==(n=i.license)?void 0:n.url},{type:"CreativeWork"})}(o),siteSection:"collections",image:W,apiToolbarLinks:(0,C.UL)(o,b),hideNewsletterPromo:!0,children:[!$&&(0,i.jsxs)(m.m,{children:[(0,i.jsx)(u.A,{$v:{size:"md",properties:["padding-top"]},children:(0,i.jsx)(p.A,{searchCategory:"works",location:"page"})}),(0,i.jsx)(u.A,{$v:{size:"xs",properties:["padding-top","padding-bottom"]},children:(0,i.jsx)(te,{})})]}),(0,i.jsx)(d.A,{condition:$,wrapper:e=>(0,i.jsx)(u.A,{$v:{size:"md",properties:["padding-top"]},children:e}),children:(0,i.jsx)(i.Fragment,{children:N?T?(0,i.jsx)(eX,{work:o},o.id):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(m.m,{children:(0,i.jsx)(u.A,{$v:{size:"xs",properties:["padding-top","padding-bottom"]},children:(0,i.jsx)(e9,{work:o})})}),(0,i.jsx)(m.m,{children:(0,i.jsx)(to,{work:(0,w.R)(o),collectionManifestsCount:F?U:void 0})}),(0,i.jsxs)(m.m,{children:[(0,i.jsx)(h.A,{}),(0,i.jsxs)(nC,{children:[(0,i.jsx)(ej,{work:o}),(0,i.jsx)(nI,{children:(0,i.jsx)(nA,{work:o,shouldShowItemLink:F,iiifImageLocation:L,digitalLocation:P,digitalLocationInfo:_,transformedManifest:R})})]})]})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(m.m,{children:(0,i.jsx)(to,{work:(0,w.R)(o),collectionManifestsCount:F?U:void 0})}),(0,i.jsx)(nA,{work:o,shouldShowItemLink:F,iiifImageLocation:L,digitalLocation:P,digitalLocationInfo:_,transformedManifest:R})]})})}),!T&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(th,{workId:o.id,showDivider:e6(o.subjects)}),e6(o.subjects)&&(0,i.jsx)(e5,{workId:o.id,subjects:o.subjects,typesTechniques:o.genres,date:null==(r=o.production[0])||null==(n=r.dates[0])?void 0:n.label})]})]})})};var nS=!0;let nz=e=>(0,i.jsx)(n$,{...e})},24180:(e,t,n)=>{"use strict";n.d(t,{A:()=>C});var i=n(6029),r=n(82203),o=n.n(r),a=n(95405),s=n(77647),l=n(75120),c=n(87920);function d(e){var t;let n="productionDates"in e||"cardLabels"in e||"thumbnail"in e,i=n?null==(t=e.thumbnail)?void 0:t.url:e.thumbnailUrl,r=n?e.productionDates.length>0?e.productionDates[0]:void 0:e.date;return{thumbnailUrl:i,date:r,mainContributor:n?e.primaryContributorLabel:e.mainContributor,labels:n?e.cardLabels:e.workType?[{text:e.workType,labelColor:"warmNeutral.300"}]:[]}}var h=n(9329),p=n(79945),m=n(23583);function u(){let e=(0,h._)(["\n max-height: 10rem;\n flex-wrap: nowrap;\n justify-content: space-between;\n "]);return u=function(){return e},e}function g(){let e=(0,h._)(["\n justify-content: space-between;\n padding-top: 0;\n "]);return g=function(){return e},e}function x(){let e=(0,h._)(["\n max-height: unset;\n width: unset;\n max-width: 50%;\n order: unset;\n display: flex;\n justify-content: end;\n margin-bottom: 0;\n "]);return x=function(){return e},e}let b=p.Ay.a.withConfig({componentId:"sc-38f6bd81-0"})(["display:flex;padding:",";background-color:",";border-radius:","px;flex-wrap:wrap;text-decoration:none;height:100%;"," "," ",""],e=>e.theme.spacingUnits["100"],e=>e.theme.color("white"),e=>e.theme.borderRadiusUnit,e=>e.$isHover&&"\n box-shadow: ".concat(e.theme.basicBoxShadow,";\n\n\n height: 5.25rem;\n width: 22rem;\n "),e=>e.theme.media("sm")(u()),e=>e.theme.media("md")("\n max-height: unset;\n height: ".concat(e.$isHover?"5.25rem":"10rem",";\n "))),f=p.Ay.div.withConfig({componentId:"sc-38f6bd81-1"})(["display:flex;flex-direction:column;width:100%;container-type:inline-size;container-name:text-wrapper;"," ul{flex-wrap:nowrap;}li > div{justify-content:space-between;@container text-wrapper (min-width:0){max-width:calc(100cqw - calc(var(--label-length) * 0.25ch
1));overflow:hidden;text-overflow:ellipsis;}}"],e=>e.theme.media("sm")(g())),j=p.Ay.h2.attrs(e=>({className:e.$isHover?(0,m.I)("body","md","regular"):(0,m.I)("body","md","strong")})).withConfig({componentId:"sc-38f6bd81-2"})(["",";color:",";margin-top:",";",":hover &{text-decoration:underline;}"],e=>e.theme.clampLines(e.$linesToClamp),e=>e.theme.color("black"),e=>e.$isHover?0:e.theme.spacingUnits["050"],b),v=p.Ay.div.withConfig({componentId:"sc-38f6bd81-3"})(["",";"],e=>e.theme.clampLines(e.$linesToClamp)),y=p.Ay.div.withConfig({componentId:"sc-38f6bd81-4"})(["width:100%;max-height:160px;order:-1;margin-bottom:",";display:flex;"," img{display:block;object-fit:contain;width:100%;margin-left:auto;margin-right:auto;filter:url('#border-radius-mask');","}",""],e=>e.theme.spacingUnits["200"],e=>e.$isHover&&"\n flex: 1;\n ",e=>e.theme.media("sm")("\n margin-left: ".concat(e.$isHover?"0":e.theme.spacingUnits["100"],";\n margin-right: ").concat(e.$isHover?e.theme.spacingUnits["100"]:"unset",";\n width: unset;\n height: 100%;\n\n max-width: -webkit-fill-available; /* Chrome, Safari, Edge */\n max-width: -moz-available; /* Firefox */\n max-width: stretch; /* Future standard */\n\n /*\n This is a hack to target Safari only, because -webkit-fill-available is\n the property that _should_ work and is required for Chrome < 138 but causes\n Safari to hide images completely\n */\n @supports (-webkit-appearance: none) and (stroke-color: transparent) {\n max-width: 100%;\n\n ").concat(e.$isHover&&"\n min-width: 60px;\n ","\n }\n ")),e=>e.theme.media("sm")(x())),w=p.Ay.div.attrs({className:(0,m.I)("body","sm","regular")}).withConfig({componentId:"sc-38f6bd81-5"})(["color:",";"],e=>e.theme.color("neutral.600")),A=e=>{let{work:t,dataGtmProps:n}=e,{thumbnailUrl:r,date:h,mainContributor:p,labels:m}=d(t);return(0,i.jsx)(o(),{...(0,c.j)({id:t.id}),"data-component":"related-works-card",style:{textDecoration:"none",display:"block"},...n&&(0,s.J)({...n,id:t.id}),children:(0,i.jsxs)(b,{as:"span",children:[(0,i.jsxs)(f,{children:[(0,i.jsxs)("div",{children:[(0,i.jsx)(l.A,{labels:m,defaultLabelColor:"warmNeutral.300"}),(0,i.jsx)(j,{$linesToClamp:3,children:t.title})]}),(0,i.jsxs)(w,{children:[p&&(0,i.jsx)(v,{$linesToClamp:1,children:p}),h&&(0,i.jsxs)(v,{$linesToClamp:1,children:["Date: ",h]})]})]}),r&&(0,i.jsx)(y,{children:(0,i.jsx)("img",{src:(0,a.od)(r,250),alt:t.title,loading:"lazy",height:"200"})})]})})},k=e=>{let{work:t}=e,{thumbnailUrl:n,date:r,mainContributor:o}=d(t);return(0,i.jsx)("div",{style:{textAlign:"left"},"data-component":"related-works-card-hover",children:(0,i.jsxs)(b,{as:"span",$isHover:!0,children:[n&&(0,i.jsx)(y,{$isHover:!0,children:(0,i.jsx)("img",{src:(0,a.od)(n,250),alt:t.title,loading:"lazy",height:"200"})}),(0,i.jsxs)(f,{children:[(0,i.jsx)(j,{as:"span",$linesToClamp:1,$isHover:!0,children:t.title}),(0,i.jsxs)(w,{children:[o&&(0,i.jsx)(v,{$linesToClamp:1,children:o}),r&&(0,i.jsxs)(v,{$linesToClamp:1,children:["Date: ",r]})]})]})]})})},C=e=>{let{variant:t}=e;return"default"===t?(0,i.jsx)(A,{...e}):"hover"===t?(0,i.jsx)(k,{...e}):void 0}},26648:(e,t,n)=>{"use strict";n.d(t,{Q:()=>o,Z:()=>a});var i=n(90405),r=n(74482);async function o(e,t){let{params:n,shouldUseStagingApi:o,pageSize:a}=t,s=(0,r.Ci)(o),l={...n,pageSize:a},c=new URLSearchParams((0,i.wX)(l)).toString(),d="".concat(r.eV[s.env.content],"/content/v0/").concat(e,"?").concat(c);return(0,r.r9)(d)}async function a(e,t){let{shouldUseStagingApi:n}=t,i=(0,r.Ci)(n),o="".concat(r.eV[i.env.content],"/content/v0/").concat(e);return(0,r.r9)(o)}},27832:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>f,P4:()=>u,p_:()=>g});var i=n(9329),r=n(6029),o=n(55729),a=n(79945),s=n(23583),l=n(85564),c=n(77647),d=n(21832),h=n(80966),p=n(26995);function m(){let e=(0,i._)(["\n column-gap: 16px;\n "]);return m=function(){return e},e}let u=a.Ay.div.attrs({className:(0,s.I)("body","md","strong")}).withConfig({componentId:"sc-1c0238e-0"})(["display:flex;flex-wrap:wrap;gap:8px 12px;",""],e=>e.theme.media("sm")(m())),g=(0,a.AH)([""," display:inline-block;border:1px solid ",";background-color:",";color:",";padding:8px 16px;border-radius:100px;cursor:pointer;&:hover{background-color:",";color:",";}"],h.A,e=>e.theme.color("black"),e=>e.theme.color(e.$isSelected?"neutral.700":"transparent"),e=>e.theme.color(e.$isSelected?"white":"black"),e=>e.theme.color(e.$isSelected?"neutral.700":"warmNeutral.400"),e=>e.theme.color(e.$isSelected?"white":"black")),x=a.Ay.label.withConfig({componentId:"sc-1c0238e-1"})(["",""],g),b=a.Ay.input.withConfig({componentId:"sc-1c0238e-2"})(["position:absolute;opacity:0;z-index:1;height:0;width:0;&:focus-visible ~ ","{",";}&:active ~ ","{box-shadow:none;}"],x,p.Y,x),f=e=>{var t;let{tags:n,selectedTags:i,isMultiSelect:a,onChange:s}=e,[h,p]=(0,o.useState)([...null!=i?i:[null==(t=n[0])?void 0:t.id]].filter(d.EA));if(0===n.length)return null;let m=e=>{let t,n=h.includes(e);if(a)if(n)t=a&&1===h.length&&h[0]===e?[e]:h.filter(t=>t!==e);else t=[...h,e];else t=[e];p(t),s&&s(t)};return(0,r.jsx)("div",{"data-component":"selectable-tags",children:(0,r.jsx)(u,{children:n.map((e,t)=>{let n=h.includes(e.id),i=(0,c.J)({"position-in-list":String(t+1),...e.dataGtmProps}
1);return(0,r.jsxs)("div",{children:[a?(0,r.jsx)(b,{id:(0,l.io)(e.id),type:"checkbox",value:e.id,checked:n,onChange:()=>m(e.id),...i,...e.controls&&{"aria-controls":e.controls}}):(0,r.jsx)(b,{id:(0,l.io)(e.id),type:"radio",name:"selectable-tags",value:e.id,checked:n,onChange:()=>m(e.id),...i,...e.controls&&{"aria-controls":e.controls}}),(0,r.jsx)(x,{as:"label",htmlFor:(0,l.io)(e.id),$isSelected:!!n,$lineColor:n?"white":"black",$lineThickness:1.4,children:(0,r.jsx)("span",{children:e.label})},e.id)]},e.id)})})})}},28222:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var i=n(6029),r=n(79945),o=n(11948),a=n(23583),s=n(24785),l=n(48465);let c=r.Ay.div.attrs({className:(0,a.I)("body","sm","regular")}).withConfig({componentId:"sc-7e587918-0"})(["position:relative;"," .icon{position:absolute;pointer-events:none;",";}select{font-family:inherit;font-weight:inherit;appearance:none;padding:8px 42px 8px 16px;border:",";border-radius:","px;background-color:",";color:",";width:100%;"," option{background-color:",";color:",";}&::-ms-expand{display:none;}&:hover{box-shadow:",";}}"],e=>{let{$isPill:t}=e;return t&&"display: inline-block;"},e=>e.$isPill?"top: 4px; right: 10px;":"top: 6px; right: 6px;",e=>"1px solid\n ".concat(e.theme.color(e.$darkBg?"neutral.300":"neutral.600")),e=>e.$isPill?20:e.theme.borderRadiusUnit,e=>e.theme.color(e.$darkBg?"black":"transparent"),e=>e.theme.color(e.$darkBg?"white":"black"),e=>e.$isPill?"line-height: 1;":"",e=>e.theme.color("white"),e=>e.theme.color("black"),e=>e.theme.focusBoxShadow),d=r.Ay.label.withConfig({componentId:"sc-7e587918-1"})(["display:flex;align-items:center;"]),h=(0,r.Ay)(l.A).attrs(e=>({as:"span",className:(0,a.x)({[(0,a.I)("body","md","strong")]:!0,"visually-hidden":!!e.$hideLabel}),$h:{size:"xs",properties:["margin-right"]}})).withConfig({componentId:"sc-7e587918-2"})(["white-space:nowrap;"]),p=e=>{let{label:t,hideLabel:n,children:r,isPill:a,darkBg:l}=e;return(0,i.jsxs)(c,{$isPill:a,$darkBg:l,children:[(0,i.jsxs)(d,{children:[(0,i.jsx)(h,{$hideLabel:n,children:t}),r]}),(0,i.jsx)(s.A,{icon:o.A})]})}},28975:(e,t,n)=>{"use strict";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:"M19.5 4.3h-15a3 3 0 0 0-3 3v10a3 3 0 0 0 3 3h15a3 3 0 0 0 3-3v-10a3 3 0 0 0-3-3m-15 2h15a1 1 0 0 1 1 1v.8h-17v-.8a1 1 0 0 1 1-1m16 11a1 1 0 0 1-1 1h-15a1 1 0 0 1-1-1v-7.2h17z"}),(0,i.jsx)("path",{d:"M14 11.7h-4a2.5 2.5 0 0 0 0 5h4a2.5 2.5 0 1 0 0-5m0 3h-4a.5.5 0 1 1 0-1h4a.5.5 0 1 1 0 1"})]})})}},37220:(e,t,n)=>{"use strict";n.d(t,{A:()=>k});var i=n(9329),r=n(6029),o=n(79945),a=n(9676),s=n(49563),l=n(71023),c=n(23583),d=n(77647),h=n(2721),p=n(75120),m=n(47180),u=n(59085),g=n(48465);function x(){let e=(0,i._)(["\n display: none;\n "]);return x=function(){return e},e}let b=(0,o.Ay)(g.A).attrs({$v:{size:"xl",properties:["padding-bottom"]}}).withConfig({componentId:"sc-4461edad-0"})(["display:block;text-decoration:none;&:last-child{padding-bottom:0;}&:hover{h3{text-decoration:underline;}}"]),f=(0,o.Ay)(u.LX).withConfig({componentId:"sc-4461edad-1"})(["position:relative;"]),j=(0,o.Ay)(g.A).attrs({$v:{size:"xs",properties:["margin-bottom"]}}).withConfig({componentId:"sc-4461edad-2"})(["",""],e=>e.theme.media("sm","max-width")("\n ".concat(e.$isCompact?"":"display: none;","\n "))),v=o.Ay.div.withConfig({componentId:"sc-4461edad-3"})(["position:absolute;bottom:0;left:0;",""],e=>e.theme.media("sm")(x())),y=(0,o.Ay)(g.A).attrs({className:(0,c.I)("body","md","regular"),$v:{size:"2xs",properties:["margin-bottom"]}}).withConfig({componentId:"sc-4461edad-4"})(["color:",";"],e=>e.theme.color("neutral.600")),w=o.Ay.span.withConfig({componentId:"sc-4461edad-5"})(["span{&:not(:first-child)::before{content:', ';}}"]),A=o.Ay.span.withConfig({componentId:"sc-4461edad-6"})(["display:none;.searchable-selector + &{display:inline-block;margin:0 4px;}"]),k=e=>{let{articles:t,isCompact:n,dynamicImageSizes:i}=e;return(0,r.jsx)("div",{"data-component":"stories-grid",children:t.map((e,t)=>{let o=(0,l.a)(e.image),g=(0,a.$)(o,n?"square":"16:9");return(0,r.jsx)(b,{as:"a",href:(0,s.A)({...e,type:"articles"}),"data-testid":"story-search-result",...(0,d.J)({trigger:"stories_search_result","position-in-list":"".concat(t+1)}),children:(0,r.jsxs)(u.xA,{children:[g&&(0,r.jsxs)(f,{$sizeMap:n?{s:[3,1],m:[2,1],l:[2,1],xl:[2,1]}:{s:[12],m:[6],l:[4],xl:[4]},children:[(0,r.jsx)(m.Ay,{image:{...g,alt:""},sizes:i,quality:"low"}),!n&&(0,r.jsx)(v,{children:(0,r.jsx)(p.A,{labels:[{text:e.format.label}]})})]}),(0,r.jsxs)(u.LX,{$sizeMap:n?{s:[9],m:[8],l:[6],xl:[6]}:{s:[12],m:[6],l:[8],xl:[8]},children:[(0,r.jsx)(j,{$isCompact:n,children:(0,r.jsx)(p.A,{labels:[{text:e.format.label}]})}
1),(0,r.jsx)("h3",{className:(0,c.I)("heading","md","strong","brand"),children:e.title}),!n&&(e.publicationDate||!!e.contributors.length)&&(0,r.jsxs)(y,{children:[e.publicationDate&&(0,r.jsx)(w,{className:"searchable-selector",children:(0,r.jsx)(h.A,{variant:"date",date:new Date(e.publicationDate)})}),!!e.contributors.length&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(A,{children:" | "}),(0,r.jsx)(w,{children:e.contributors.map(e=>{var t,n;return(0,r.jsx)("span",{children:null==(t=e.contributor)?void 0:t.label},null==(n=e.contributor)?void 0:n.id)})})]})]}),e.caption&&(0,r.jsx)("p",{className:(0,c.I)("body","md","regular"),style:{marginBottom:0},children:e.caption})]})]})},e.id)})})}},41404:(e,t,n)=>{"use strict";n.d(t,{A:()=>S});var i=n(6029),r=n(82203),o=n.n(r),a=n(24785),s=n(48465),l=n(79945),c=n(23583),d=n(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 ")),p=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 ")),m=l.Ay.div.attrs(e=>({className:e.$selected?(0,c.I)("body","md","strong"):(0,c.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")),d.Y),u=l.Ay.div.withConfig({componentId:"sc-424b6a3c-3"})(["&:focus-visible{",";}"],d.Y),g=(0,l.Ay)(s.A).attrs(e=>({as:"span",className:(0,c.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"),m,e=>e.theme.color("yellow")),x=l.Ay.div.withConfig({componentId:"sc-424b6a3c-5"})(["font-weight:700;height:0;visibility:hidden;"]),b=l.Ay.span.withConfig({componentId:"sc-424b6a3c-6"})(["span{top:6px;}"]),f=e=>{let{hideBorder:t,label:n,items:r,currentSection:l,isWhite:c}=e;return(0,i.jsx)(p,{"aria-label":n,children:r.map(e=>{let n=l===e.id;return(0,i.jsx)(m,{$selected:n,$hideBorder:t,children:(0,i.jsx)(o(),{scroll:!1,href:"string"==typeof e.url?e.url:e.url.href,children:(0,i.jsxs)(g,{$selected:n,"aria-current":n?"page":"false",$isWhite:c,onClick:e=>{n||e.target.scrollIntoView({behavior:"smooth",inline:"center",block:"nearest"})},children:[(0,i.jsx)(x,{children:e.text}),e.icon&&(0,i.jsx)(s.A,{as:"span",$h:{size:"xs",properties:["margin-right"]},children:(0,i.jsx)(b,{children:(0,i.jsx)(a.A,{icon:e.icon})})}),e.text]})})},e.id)})})};var j=n(81278),v=n(55729),y=n(67),w=n(85564),A=n(77647),k=n(85023);let C=e=>{var t;return(null!=(t=e.url)?t:"#tabpanel-".concat(e.id)).replace(/^#/,"")},I=(e,t)=>e.find(e=>e.id===t||C(e)===t),$=e=>{let{label:t,items:n,hideBorder:r,selectedTab:o,setSelectedTab:l,isWhite:c}=e,{isEnhanced:d}=(0,y.Us)(),h=(0,j.useRouter)(),f=(0,v.useRef)(null),$=(0,v.useRef)(!1);function S(e){var t;let n=null==f||null==(t=f.current)?void 0:t.querySelector("#tab-".concat(e));null==n||n.scrollIntoView({behavior:"smooth",inline:"start",block:"nearest"})}function z(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 i=null==f||null==(t=f.current)?void 0:t.querySelector("#tab-".concat(n[e].id));null==i||i.focus()}(0,v.useEffect)(()=>{if(!$.current){$.current=!0;let e=window.location.hash.slice(1),t=e?I(n,e):n[0];if(t&&t.id!==o){l(t.id),S(t.id);return}}let e=n.find(e=>e.id===o),t=window.location.hash.slice(1);e&&t===C(e)&&t!==e.id&&h.replace("".concat(window.location.pathname).concat(window.location.search,"#").concat(e.id),void 0,{shallow:!0,scroll:!1})},[o]),(0,v.useEffect)(()=>{let e=()=>{let e=window.location.hash.slice(1),t=e?I(n,e):n[0];t&&t.id!==o&&(l(t.id),S(t.id))};return window.addEventListener("hashchange",e),()=>window.removeEventListener("hashchange",e)},[n,o,l]);let T=e=>{let t=[37,"ArrowLeft"],i=[39,"ArrowRight"],r=[36,"Home"],a=[35,"End"],s=e.key||e.keyCode;if(![...t,...i,...r,...a].includes(s))return;e.preventDefault();let c=n.find(e=>e.id===o)||n[0],d=n.indexOf(c),h=n[d+1]?d+1:0,p=n[d-1]?d-1:n.length-1;t.includes(s)&&(z(n[p]),l(n[p].id),N(p)),i.includes(s)&&(z(n[h]),l(n[h].id),N(h)),r.includes(s)&&(z(n[0]),l(n[0].id),N(0)),a.includes(s)&&(z(n[n.length-1]),l(n[n.length-1].id),N(n.length-1))};return(0,i.jsx)(p,{role:d?"tablist":void 0,ref:f,"aria-label":t,children:n.map((e,n)=>{let h=d&&o===e.id,p="#".concat(C(e));return(0,i.jsx)(m,{id:e.id,$selected:h,$isWhite:c,$hideBorder:r,onClick:t=>{e.id!==o&&(t.target.scrollIntoView({behavior:"smooth",inline:"start",block:"nearest"}),z(e),l(e.id))},onKeyDown:T,children:(0,i.jsx)(u,{role:d?"tab":void 0,id:"tab-".concat(e.id),tabIndex:e.id===o?0:-1,"aria-controls":"tabpanel-".concat(e.id),"aria-selected":e.id===o,children:(0,i.jsxs)(g,{$selected:h,$isWhite:c,...(0,A.J)({label:e.text,...e.dataGtmProps,trigger:"tab_".concat((0,w.uc)(t)),"position-in-list":"".concat(n+1)}),children:[(0,i.jsx)(x,{children:e.text}),(0,i.jsxs)(k.A,{condition:!d,wrapper:e=>(0,i.jsx)("a",{href:p,children:e}),children:[e.icon&&(0,i.jsx)(s.A,{as:"span",$h:{size:"xs",properties:["margin-right"]},children:(0,i.jsx)(b,{children:(0,i.jsx)(a.A,{icon:e.icon})})}),e.text]})]})})},e.id)})})},S=e=>{let{tabBehaviour:t}=e;return(0,i.jsx)(h,{"data-component":"tabs",children:"navigate"===t?(0,i.jsx)(f,{...e}):(0,i.jsx)($,{...e})})}},41705:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(6029),r=n(79945),o=n(21832),a=n(81999);let s=r.Ay.div.attrs({className:"spaced-text"}).withConfig({componentId:"sc-5a0e088c-0"})(["max-width:45em;font-variant-ligatures:no-contextual;"]),l=e=>(0,i.jsx)(a.A,{...e,children:(0,i.jsxs)(s,{children:["contents"in e&&e.contents,"text"in e&&((0,o.Kg)(e.text)?(0,i.jsx)("div",{children:e.text}):e.text.map((e,t)=>(0,i.jsx)("div",{children:e},t))),"html"in e&&((0,o.Kg)(e.html)?(0,i.jsx)("div",{dangerouslySetInnerHTML:{__html:e.html}}):e.html.map((e,t)=>(0,i.jsx)("div",{dangerouslySetInnerHTML:{__html:e}},t)))]})})}
1,46688:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var i=n(6029),r=n(79945),o=n(23583),a=n(48465);let s=(0,r.Ay)(a.A).withConfig({componentId:"sc-a50b70b7-0"})(["background-color:",";transform:rotateZ(-6deg);width:24px;height:24px;display:inline-flex;border-radius:3px;align-items:center;justify-content:center;"],e=>e.theme.color(e.$backgroundColor?e.$backgroundColor:"accent.purple")),l=r.Ay.span.withConfig({componentId:"sc-a50b70b7-1"})(["color:",";transform:rotateZ(6deg);"],e=>e.theme.color("yellow"===e.$parentBackgroundColor||"accent.salmon"===e.$parentBackgroundColor?"black":"white")),c=e=>{let{number:t,backgroundColor:n}=e;return(0,i.jsx)(s,{"data-component":"number",as:"span",className:(0,o.I)("heading","sm","strong","brand"),$h:{size:"xs",properties:["margin-left"]},$backgroundColor:n,children:(0,i.jsx)(l,{$parentBackgroundColor:n,children:t})})}},51282:(e,t,n)=>{"use strict";n.d(t,{R:()=>r});var i=n(68156);function r(e){var t;let{id:n,title:r,notes:o,physicalDescription:a,referenceNumber:s,shortDescription:l,thumbnail:c,workType:d}=e,h=(0,i.G2)(e);return{id:n,title:r,workTypeId:null==d?void 0:d.id,thumbnail:c,referenceNumber:s,shortDescription:l,languageId:h,productionDates:(0,i.Zg)(e),archiveLabels:(0,i.eC)(e),cardLabels:(0,i.Ye)(e),primaryContributorLabel:null==(t=e.contributors.find(e=>e.primary))?void 0:t.agent.label,notes:o,isArchiveCollectionRoot:(0,i.DD)(e),physicalDescription:a}}},66339:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var i=n(6029),r=n(28222);let o=e=>{let{name:t,label:n,hideLabel:o,options:a,value:s,onChange:l,isPill:c,form:d,darkBg:h}=e;return(0,i.jsx)(r.A,{"data-component":"select",label:n,hideLabel:o,isPill:c,darkBg:h,children:(0,i.jsx)("select",{name:t,onChange:l,value:s,form:d,children:a.map(e=>(0,i.jsx)("option",{value:e.value,children:e.text},e.text))})})}},78964:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});let i={heading1:"heading1",heading2:"heading2",heading3:"heading3",heading4:"heading4",heading5:"heading5",heading6:"heading6",paragraph:"paragraph",preformatted:"preformatted",strong:"strong",em:"em",listItem:"list-item",oListItem:"o-list-item",list:"group-list-item",oList:"group-o-list-item",image:"image",embed:"embed",hyperlink:"hyperlink",label:"label",span:"span"}},80966:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});let i=(0,n(79945).AH)(["--line-color:",";position:relative;& > span{background-image:linear-gradient( 0deg,var(--line-color) 0%,var(--line-color) 100% );background-position:0% 100%;background-repeat:no-repeat;background-size:var(--background-size,0%) ","px;transition:background-size ",";transform:translateZ(0);padding-bottom:2px;}&:hover{--background-size:100%;}"],e=>e.theme.color(e.$lineColor),e=>e.$lineThickness||2,e=>e.theme.transitionProperties)},81999:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var i=n(6029),r=n(79945),o=n(23583),a=n(85023),s=n(48465),l=n(74969);let c=r.Ay.div.attrs({className:(0,o.I)("body","md","regular")}).withConfig({componentId:"sc-65f5a8cc-0"})(["",""],e=>e.$inlineHeading?"display: flex;":""),d=(0,r.Ay)(s.A).attrs(e=>({as:"h3",className:(0,o.I)("body","md","strong"),$h:{size:"xs",properties:e.$inlineHeading?["margin-right"]:[]}})).withConfig({componentId:"sc-65f5a8cc-1"})([""," margin-bottom:0;"],e=>e.$inlineHeading?"":"margin: 0;"),h=e=>{let{title:t,inlineHeading:n,noSpacing:r,children:o}=e;return(0,i.jsx)(a.A,{condition:!r,wrapper:e=>(0,i.jsx)(l.A,{children:e}),children:(0,i.jsxs)(c,{$inlineHeading:n,children:[t&&(0,i.jsx)(d,{$inlineHeading:n,children:t}),o]})})}},89964:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var i=n(6029),r=n(78964),o=n(55729),a=n(48873),s=n(94451),l=n(84392),c=n(49337);let d=e=>{let{hideTopContent:t=!1,children:n,...d}=e,[h,p]=(0,o.useState)(!1);return(0,o.useEffect)(()=>{window.location.search.match("wellcomeImagesUrl")&&p(!0)},[]),(0,i.jsxs)(c.A,{...d,children:[!t&&(0,i.jsx)(i.Fragment,{children:h&&(0,i.jsx)(l.A,{variant:"default",document:{data:{isShown:"hide",routeRegex:null,text:[{type:r.A.paragraph,text:s.RE,spans:[]}]}},cookieName:a.A.wellcomeImagesRedirect})}),n]})}},90660:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/works/[workId]",function(){return n(23068)}])},93831:(e,t,n)=>{"use strict";n.d(t,{Qz:()=>a,sO:()=>r,wC:()=>s}),n(6029),n(82203);var i=n(90405);let r={query:"",page:1,"locations.license":[],"source.genres.label":[],"source.production.dates.to":void 0,"source.production.dates.from":void 0,"source.genres.concepts":[],"source.subjects.label":[],"source.subjects.concepts":[],"source.contributors.agent.label":[],"source.contributors.concepts":[],color:void 0,sort:void 0,sortOrder:void 0},o={query:i._p,page:i.o8,"locations.license":i.ne,"source.genres.label":i.p7,"source.production.dates.to":i.Aj,"source.production.dates.from":i.Aj,"source.genres.concepts":i.ne,"source.subjects.label":i.p7,"source.subjects.concepts":i.ne,"source.contributors.agent.label":i.p7,"source.contributors.concepts":i.ne,color:i.Aj,sort:i.Aj,sortOrder:i.Aj},a=e=>(0,i.XX)(e,o);function s(e){return{href:{pathname:"/search/images",query:a({...r,...e})}}}},97624:(e,t,n)=>{"use strict";n.d(t,{A:()=>x});var i=n(6029),r=n(82203),o=n.n(r),a=n(79945),s=n(23583),l=n(48608),c=n(63667),d=n(48465);let h=a.Ay.span.withConfig({componentId:"sc-f537ba37-0"})(["white-space:normal;display:inline-block;text-align:left;line-height:1.2;"]),p="\\00a0",m=a.Ay.span.attrs({className:(0,s.I)("body","md","regular")}).withConfig({componentId:"sc-f537ba37-1"})(["&::after{display:",";content:'","","","';}"],e=>
1e.$isLast?"none":"inline",p,e=>e.$separator,p),u=(0,a.Ay)(d.A).attrs({$v:{size:"xs",properties:["margin-bottom"]},$h:{size:"xs",properties:["margin-right"]}}).withConfig({componentId:"sc-f537ba37-2"})(["display:inline-block;"]),g=(0,a.Ay)(o()).withConfig({componentId:"sc-f537ba37-3"})(["display:block;",""],l.NS),x=e=>{let{tags:t,buttonColors:n,isFirstPartBold:r=!0,separator:o="â"}=e,l=(0,a.DP)();return(0,i.jsx)(d.A,{"data-component":"tags",$v:{size:"xs",negative:!0,properties:["margin-bottom"]},children:(0,i.jsx)(c.A,{children:t.map((e,t)=>{let{textParts:a,linkAttributes:c}=e;return(0,i.jsx)(u,{as:"li",children:(0,i.jsx)(g,{href:c.href,$size:"small",$colors:null!=n?n:l.buttonColors.pumiceTransparentCharcoal,children:(0,i.jsx)(h,{children:a.map((e,t,n)=>(0,i.jsx)(m,{$separator:0===t?"|":o,$isLast:t===n.length-1,children:(0,i.jsx)("span",{className:0===t&&r?(0,s.I)("body","md","strong"):(0,s.I)("body","md","regular"),children:e})},e))})})},t)})})})}}},e=>{e.O(0,[8588,8156,1795,7031,3110,636,6593,8792],()=>e(e.s=90660)),_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.