1import{_ as ye}from"./Materials.fe8e8ff1.js";import{_ as Me,a as Te,b as we,c as Ie,d as He,e as De}from"./Bookshop.912ca5f1.js";import{_ as Be}from"./BlockTextSection.2662a245.js";import{_ as Le}from"./GalleryBlock.d24be65f.js";import{_ as Pe}from"./PressItems.906da01c.js";import{_ as Ee}from"./TextLarge.b87f45eb.js";import{_ as $e}from"./VideoSection.c836d341.js";import Ae from"./StickyNav.273ff057.js";import{_ as Se}from"./nuxt-link.434703b2.js";import Ve from"./DefVideo.65d9d794.js";import Ce from"./DefImageContainer.cdf04959.js";import Fe from"./RelatedItems.453da3dc.js";import Ne from"./BlockText.18ec7b1b.js";import{s as Oe,g as d,i as Qe,u as Re,c as p,j as g,f as u,n as k,a as f,d as h,b as v,w as M,t as ne,F as Ze,r as qe,k as We,l as je,o as l,m as ze}from"./entry.39f2d63d.js";import{d as T,a as w}from"./index.512841a7.js";import{s as Ge}from"./slugify.c1958e9d.js";import{g as Je}from"./index.591357be.js";import{_ as Ke}from"./_plugin-vue_export-helper.c27b6911.js";import"./Download.fd74abab.js";import"./AudioPlayer.811dc3eb.js";import"./Transcript.d035dd81.js";import"./Plus.846c7d28.js";import"./Carousel.8df83acf.js";import"./DefImage.15210a2e.js";import"./LightboxButton.b597ace5.js";import"./state.c0adcbb5.js";import"./RightArrow.e5752ee7.js";import"./client-only.685b51d3.js";import"./fetch.73eda8a0.js";import"./swiper.1359e839.js";import"./PressBlock.214288f3.js";import"./index.c11b4658.js";import"./ScrollLink.18288214.js";import"./all.89c74157.js";import"./ScrollTrigger.458d8b0f.js";import"./ScrollToPlugin.bfdd12dc.js";import"./video-js.f18d5788.js";import"./_commonjsHelpers.de833af9.js";import"./ImageDescription.17eab4a5.js";import"./EntryItem.9c4b1b1b.js";import"./Play.0bddebc1.js";const Ue=Je` 2 query ProgramDetailQuery($slug: [String]!) { 3 publicProgramsEntries(slug: $slug, status: ["disabled", "enabled"]) { 4 ... on publicPrograms_publicProgram_Entry { 5 title 6 titleOverride 7 subtitle 8 startDateTime 9 endDateTime 10 programVideo 11 location { 12 title 13 } 14 hideFeaturedImage 15 featuredImage { 16 large: url @transform(width: 1800) 17 medium: url @transform(width: 1100) 18 small: url @transform(width: 800) 19 width 20 height 21 alt 22 ... on doSpaces_Asset { 23 caption 24 id 25 disableZoom 26 } 27 } 28 featuredImageMobile { 29 medium: url @transform(width: 1100) 30 small: url @transform(width: 800) 31 width 32 height 33 alt 34 ... on doSpaces_Asset { 35 caption 36 id 37 } 38 } 39 sponsors { 40 ... on sponsors_BlockType { 41 sponsorText 42 sponsorLogos { 43 small: url @transform(width: 800) 44 alt 45 width 46 height 47 } 48 } 49 } 50 relatedExhibitions(limit: 3) { 51 ... on exhibitions_exhibition_Entry { 52 title 53 startDate 54 slug 55 featuredImage { 56 large: url @transform(width: 1800) 57 medium: url @transform(width: 1100) 58 small: url @transform(width: 800) 59 width 60 height 61 alt 62 } 63 } 64 } 65 relatedBookshop(limit: 1) { 66 ... on bookshop_book_Entry { 67 title 68 storeLink 69 featuredImage { 70 large: url @transform(width: 1800) 71 medium: url @transform(width: 1100) 72 small: url @transform(width: 800) 73 width 74 height 75 alt 76 } 77 } 78 } 79 advancedMatrix { 80 ... on advancedMatrix_aboutText_BlockType { 81 blockHeading 82 blockText 83 includeInPageMenu 84 typeHandle 85 pageMenuLabel 86 } 87 ... on advancedMatrix_textMedia_BlockType { 88 blockHeading 89 blockText 90 blockAssets { 91 large: url @transform(width: 1800) 92 medium: url @transform(width: 1100) 93 small: url @transform(width: 800) 94 width 95 height 96 alt 97 kind 98 ... on doSpaces_Asset { 99 caption 100 id 101 disableZoom 102 } 103 } 104 includeInPageMenu 105 typeHandle 106 pageMenuLabel 107 } 108 ... on advancedMatrix_textLarge_BlockType { 109 blockHeading 110 blockText 111 includeInPageMenu 112 typeHandle 113 pageMenuLabel 114 } 115 ... on advancedMatrix_gallery_BlockType { 116 blockHeading 117 includeInPageMenu 118 typeHandle 119 pageMenuLabel 120 display 121 artworks { 122 ... on doSpaces_Asset { 123 url(width: 1600) 124 large: url @transform(width: 1800) 125 medium: url @transform(width: 1100) 126 small: url @transform(width: 800) 127 width 128 height 129 alt 130 id 131 caption 132 disableZoom 133 } 134 } 135 } 136 ... on advancedMatrix_materials_BlockType { 137 blockHeading 138 materials { 139 ... on materials_BlockType { 140 id 141 resourceLabel 142 resourceTitle 143 asset { 144 ... on doSpaces_Asset { 145 url 146 filename 147 } 148 } 149 } 150 } 151 includeInPageMenu 152 typeHandle 153 pageMenuLabel 154 } 155 ... on advancedMatrix_tours_BlockType { 156 blockHeading 157 blockText 158 includeInPageMenu 159 typeHandle 160 pageMenuLabel 161 } 162 ... on advancedMatrix_press_BlockType { 163 blockHeading 164 includeInPageMenu 165 typeHandle 166 pageMenuLabel 167 pressItems { 168 ... on pressItems_BlockType { 169 pressDate 170 pressExcerpt 171 pressFile { 172 url 173 } 174 publication 175 } 176 } 177 } 178 ... on advancedMatrix_video_BlockType { 179 blockHeading 180 blockText 181 blockTextCredits 182 videoEmbed 183 videoDownload 184 transcript 185 includeInPageMenu 186 typeHandle 187 pageMenuLabel 188 } 189 ... on advancedMatrix_transcript_BlockType { 190 blockHeading 191 transcriptText 192 includeInPageMenu 193 typeHandle 194 pageMenuLabel 195 } 196 ... on advancedMatrix_audio_BlockType { 197 blockHeading 198 blockText 199 audio { 200 url 201 } 202 transcript 203 includeInPageMenu 204 typeHandle 205 pageMenuLabel 206 } 207 } 208 } 209 } 210 } 211`;const Xe={class:"status-text"},Ye={class:"titles px-10 lg:px-page mt-20 text-base lg:text-lg font-primary uppercase animate animation-1"},et={class:"apply-border-indent text-orange"},tt=["innerHTML"],at={key:1},nt={key:2,class:"featured-video page-module px-10 lg:px-page animate animation-1"},ot={key:3,class:"featured-image page-module px-10 lg:px-page animate animation-1"},rt={class:"relative"},lt={class:"archive-link px-10 lg:px-page animate animation-1"},st={__name:"[slug]",async setup(it){var L;let b,I;const oe=ye,re=we,le=Be,se=Le,ie=Pe,ue=Ee,de=Ie,ce=He,me=$e,pe=De,_e=t=>t==="materials"?oe:t==="aboutText"?re:t==="tours"?le:t==="gallery"?se:t==="press"?ie:t==="textLarge"?ue:t==="textMedia"?de:t==="transcript"?ce:t==="video"?me:t==="audio"?pe:null,ge=Oe(),fe=d(()=>
211ge.params.slug),{data:H,pending:he,error:ut}=([b,I]=Qe(()=>We(Ue,{slug:fe.value})),b=await b,I(),b),e=d(()=>!he.value&&H.value?H.value.publicProgramsEntries[0]:!1),xe=d(()=>{var t,n,a,o;return e?((n=(t=e.value)==null?void 0:t.featuredImage)==null?void 0:n.length)>0||((o=(a=e.value)==null?void 0:a.featuredImageMobile)==null?void 0:o.length)>0:!1}),c=d(()=>{var t,n,a,o;if(e&&((t=e.value)!=null&&t.startDateTime)&&((n=e.value)!=null&&n.endDateTime)){const r=new Date,s=new Date((a=e.value)==null?void 0:a.startDateTime),i=new Date((o=e.value)==null?void 0:o.endDateTime);return s>r?"upcoming":s<r&&i>r?"current":"past"}return!1}),D=d(()=>{var t,n,a,o,r,s;if(c!=null&&c.value){const i=`is happening on ${T((t=e.value)==null?void 0:t.startDateTime)} from ${w((n=e.value)==null?void 0:n.startDateTime)}â${w((a=e.value)==null?void 0:a.endDateTime)}.`,m=`is happening now until ${T((o=e.value)==null?void 0:o.endDateTime)} at ${w((r=e.value)==null?void 0:r.endDateTime)}.`,y=`happened on ${T((s=e.value)==null?void 0:s.startDateTime)}.`;switch(c.value){case"upcoming":return i;case"current":return m;case"past":return y;default:return!1}}return!1}),x=d(()=>{var t,n,a;if(e&&((t=e.value)!=null&&t.advancedMatrix)){const o=[];return(a=(n=e.value)==null?void 0:n.advancedMatrix)==null||a.forEach((r,s)=>{const i=r.pageMenuLabel||r.blockHeading,m=i?Ge(i,{lower:!0,strict:!0}):!1;r.typeHandle==="video"&&s===0||o.push({title:i,id:m,link:m?`#${m}`:!1,...r})}),o}return!1}),B=d(()=>{var t;if(x!=null&&x.value){const n=x.value.filter(a=>a.pageMenuLabel||a.blockHeading).reduce((a,o)=>(o.title&&o.includeInPageMenu&&a.push({...o}),a),[]);return((t=e.value.relatedExhibitions)==null?void 0:t.length)>0&&n.push({title:"Related",id:"related",link:"#related"}),n}return!1}),ve=d(()=>{var t,n,a;return((n=(t=e==null?void 0:e.value)==null?void 0:t.featuredImage)==null?void 0:n.length)>0?(a=e==null?void 0:e.value)==null?void 0:a.featuredImage[0].url:null}),{$MetaTags:be}=je();return Re(be({title:(L=e==null?void 0:e.value)==null?void 0:L.title,image:ve.value})),(t,n)=>{var P,E,$,A,S,V,C,F,N,O,Q,R,Z,q,W,j,z,G,J,K,U,X,Y,ee,te;const a=Ae,o=Se,r=Ve,s=Ce,i=Me,m=Fe,y=Te,ke=Ne;return l(),p("div",{class:k(["program-detail pt-32 pb-12 lg:py-10",`status-${t.exhibitionStatus}`])},[((P=B.value)==null?void 0:P.length)>1?(l(),g(a,{key:0,links:B.value},null,8,["links"])):u("",!0),c.value&&D.value?(l(),p("section",{key:1,class:k(["status px-10 lg:px-page font-primary text-base lg:text-lg text-grey-2 page-module animate animation-1",c.value==="current"||c.value==="upcoming"?"text-blue":"text-grey-2"])},[f("p",Xe,[h(" This "),v(o,{to:"/programs"},{default:M(()=>[h("program")]),_:1}),h(" "+ne(D.value),1)])],2)):u("",!0),f("section",Ye,[f("div",et,[(E=e.value)!=null&&E.title||($=e.value)!=null&&$.titleOverride?(l(),p("h1",{key:0,innerHTML:(A=e.value)!=null&&A.titleOverride?(S=e.value)==null?void 0:S.titleOverride:(V=e.value)==null?void 0:V.title},null,8,tt)):u("",!0),(C=e.value)!=null&&C.subtitle?(l(),p("p",at,ne((F=e.value)==null?void 0:F.subtitle),1)):u("",!0)])]),(N=e.value)!=null&&N.programVideo?(l(),p("section",nt,[v(r,{src:(O=e.value)==null?void 0:O.programVideo},null,8,["src"])])):xe.value&&!e.value.hideFeaturedImage?(l(),p("section",ot,[f("div",rt,[v(s,{image:(Q=e.value)==null?void 0:Q.featuredImage[0],lightbox:!0,featured:!0,class:k([((Z=(R=e.value)==null?void 0:R.featuredImageMobile)==null?void 0:Z.length)>0?"hidden lg:block":null])},null,8,["image","class"]),((W=(q=e.value)==null?void 0:q.featuredImageMobile)==null?void 0:W.length)>0?(l(),g(s,{key:0,image:(j=e.value)==null?void 0:j.featuredImageMobile[0],featured:!0,class:"w-full lg:hidden"},null,8,["image"])):u("",!0)])])):u("",!0),(l(!0),p(Ze,null,qe(x.value,(_,ae)=>(l(),g(ze(_e(_.typeHandle)),{id:_.id?_.id:null,key:ae,block:_,fullWidth:_.typeHandle==="video"&&ae===0,class:k(_.typeHandle==="tours"?"tours":null)},null,8,["id","block","fullWidth","class"]))),128)),((G=(z=e.value)==null?void 0:z.sponsors)==null?void 0:G.length)>0?(l(),g(i,{key:4,sponsors:(J=e.value)==null?void 0:J.sponsors},null,8,["sponsors"])):u("",!0),((U=(K=e.value)==null?void 0:K.relatedExhibitions)==null?void 0:U.length)>0?(l(),g(m,{key:5,items:(X=e.value)==null?void 0:X.relatedExhibitions,title:"View related exhibitions",id:"related"},null,8,["items"])):u("",!0),((ee=(Y=e.value)==null?void 0:Y.relatedBookshop)==null?void 0:ee.length)>0?(l(),g(y,{key:6,item:(te=e.value)==null?void 0:te.relatedBookshop[0]},null,8,["item"])):u("",!0),f("section",lt,[v(ke,{class:"bg-archive",title:"Archive"},{default:M(()=>[f("p",null,[h("Explore more of our rich history through our "),v(o,{to:"/exhibitions",class:"transition-colors"},{default:M(()=>[h("archive")]),_:1}),h(". ")])]),_:1})])],2)}}},Ut=Ke(st,[["__scopeId","data-v-ef54140d"]]);export{Ut as default};
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.