1import{H as P,T as R,M as F}from"./components.rrVuynMr.js";import V from"./Image.mbU41gld.js";import{_ as B}from"./client-only.12QWQddV.js";import{r as y,o as s,c as a,g as e,z as j,a as r,q as I,x as K,j as O,i as J,l as Q,J as W,K as X,B as _,w as f,v as c,b as o,T as Y,t as x,F as Z,C as ee,f as te,L as oe,d as se,n as ie,M as ae,N as re}from"./entry.Yh3GnwLp.js";import{a as ne}from"./Text.sAhiZ8I9.js";import{_ as D}from"./ComponentLoader.SIxIUeIU.js";import{_ as le}from"./_plugin-vue_export-helper.x3n3nnut.js";const ce=["innerHTML"],de={class:"text-right"},pe={key:1,class:"text-right"},me={__name:"Credit",props:{creditText:{type:String,required:!0}},setup(v){let n=y(!1);const d=y(null),l=()=>{n.value=!n.value,K(()=>{n.value?d.value.querySelector("#credit-close").focus():d.value.querySelector("#credit-open").focus()})};return(w,h)=>(s(),a("div",{ref_key:"root",ref:d,class:"credit absolute bottom-0 right-0 z-50 px-5 py-8 text-sm text-primary"},[e(n)?(s(),a("div",{key:0,class:"absolute bottom-0 right-0 w-[316px] bg-gray-100 px-5 pb-7 pt-9",onKeydown:j(l,["esc"])},[r("div",{innerHTML:v.creditText,class:"text-secondary"},null,8,ce),r("div",de,[r("a",{id:"credit-close",href:"#",class:"text-blue-primary underline hover:text-blue-primary hover:no-underline",onClick:I(l,["prevent"])},"Close")])],32)):(s(),a("div",pe,[r("a",{id:"credit-open",class:"text-right text-white underline",href:"#",onClick:I(l,["prevent"])},"Credit")]))],512))}},_e=me,ue={"data-theme-color":"dark",class:"fixed bottom-0 top-20 z-20 h-auto w-full overflow-y-auto bg-secondary text-primary md:top-[157px]"},fe={class:"relative mx-auto max-w-container pb-2xl"},he={"data-theme-color":"light",class:"col-span-full h-[450px] overflow-hidden bg-tertiary bg-full-tertiary md:h-[938px]"},ge={class:"flex h-full justify-center pt-[80px] md:pt-[128px]"},xe={key:0,class:"!h-[380px] !w-screen md:!h-[938px]"},ye={class:"min-[1480px]:px-0 grid grid-cols-4 gap-6 px-5 pt-xl md:grid-cols-12"},ve={class:"col-span-full pb-10 md:col-span-6"},we={key:0,class:"min-h-[810px]"},be={key:1},Te={class:"text-balance"},Ce=["innerHTML"],Ae={key:2},ke=["href","target"],Me={class:"col-span-full md:col-span-6 md:border-l md:border-l-white md:pl-5"},Se={key:0},Le={class:"mb-2xl"},ze={__name:"index",async setup(v){let n,d;te(u=>({cc99bac0:e(E)}));const l=O(),w=ae(),h=re();let t=y(null);const g=J();g.theme.current.color="dark";const E=g.exhibition.backgroundColor;Q(()=>{console.log("artifact detail mounted")});let{data:b}=W(`${l.params.slug}`);b.value&&(t=b.value);const{data:N,error:T,refresh:Ue,pending:p}=([n,d]=X(()=>oe(`${w.public.wordpressUrl}/wp/graphql`,{method:"get",headers:h.headers,lazy:!0,key:`${l.params.slug}`,query:{query:` 2 query getArtifactBySlug { 3 artifact(id: "${l.params.slug}", idType: SLUG, asPreview: ${h.asPreview}) { 4 slug 5 title 6 seo { 7 metaDesc 8 title 9 metaKeywords 10 canonical 11 opengraphUrl 12 opengraphType 13 opengraphTitle 14 opengraphDescription 15 opengraphSiteName 16 opengraphModifiedTime 17 opengraphImage { 18 sourceUrl(size: ALMOST_SQUARE_MEDIUM) 19 } 20 twitterTitle 21 twitterDescription 22 twitterImage { 23 sourceUrl(size: ALMOST_SQUARE_MEDIUM) 24 } 25 } 26 fields { 27 content: artifactContent 28 credits: artifactCredits 29 headline: artifactHeadline 30 subhead: artifactSubhead 31 dropcap: artifactDropCap 32 link: artifactLink { 33 target 34 title 35 url 36 } 37 hero: artifactHeroImage { 38 sizes(size: TALL_LARGE) 39 srcSet(size: TALL_LARGE) 40 altText 41 mediaItemUrl 42 } 43 heroCover: artifactHeroCover 44 components { 45 ... on Artifact_Fields_Components_Image { 46 fieldGroupName 47 alt 48 caption 49 image { 50 mediaItemUrl 51 srcSet(size: LANDSCAPE_MEDIUM) 52 sizes(size: LANDSCAPE_MEDIUM) 53 srcSetNative: srcSet(size: TALL_MEDIUM) 54 sizesNative: sizes(size: TALL_MEDIUM) 55 altText 56 } 57 native 58 } 59 ... on Artifact_Fields_Components_Slideshow { 60 fieldGroupName 61 images { 62 caption 63 image { 64 altText 65 mediaItemUrl 66 srcSet(size: LANDSCAPE_MEDIUM) 67 sizes(size: LANDSCAPE_MEDIUM) 68 } 69 } 70 }, 71 ... on Artifact_Fields_Components_Video { 72 fieldGroupName 73 id 74 caption 75 platform 76 poster { 77 mediaItemUrl 78 srcSet(size: LANDSCAPE_LARGE) 79 sizes(size: LANDSCAPE_LARGE) 80 } 81 media { 82 mediaItemUrl 83 } 84 }, 85 ... on Artifact_Fields_Components_Audio { 86 fieldGroupName 87 title 88 file { 89 mediaItemUrl 90 } 91 } 92 } 93 } 94 } 95 }`},transform(u){return console.log(u),u.data.artifact}},"$gJRSznJvKO")),n=await n,d(),n);return T.value?console.log(T.value):t=N,(u,Ie)=>{var C,A,k,M,S;const $=R,i=F,H=P,G=V,q=B;return s(),a("section",ue,[e(p)?c("",!0):(s(),_(H,{key:0},{default:f(()=>{var m,L,z,U;return[o($,null,{default:f(()=>[se("AHC Exhibitions: "+x(e(t).seo.title),1)]),_:1}),o(i,{name:"description",content:e(t).seo.metaDesc},null,8,["content"]),o(i,{property:"og:locale",content:"en_US"}),o(i,{property:"og:type",content:"article"}),o(i,{property:"og:Title",content:e(t).seo.opengraphTitle},null,8,["content"]),o(i,{property:"og:description",content:e(t).seo.opengraphDescription},null,8,["content"]),o(i,{property:"og:url",content:`https://exbplatform.netlify.app${e(l).path}`},null,8,["content"]),o(i,{property:"og:image",content:((m=e(t).seo.opengraphImage)==null?void 0:m.sourceUrl)||((L=e(t).seo.twitterImage)==null?void 0:L.sourceUrl)||""},null,8,["content"]),o(i,{property:"og:site_name",content:`${e(g).exhibition.title} | Atlanta History Center`},null,8,["content"]),o(i,{property:"article:modified_time",content:e(t).seo.opengraphModifiedTime},null,8,["content"]),o(i,{name:"twitter:card",content:"summary_large_image"}),o(i,{name:"twitter:Title",content:e(t).seo.twitterTitle},null,8,["content"]),o(i,{name:"twitter:description",content:e(t).seo.twitterDescription},null,8,["content"]),o(i,{name:"twitter:image",content:((z=e(t).seo.twitterImage)==null?void 0:z.sourceUrl)||((U=e(t).seo.opengraphImage)==null?void 0:U.sourceUrl)||""},null,8,["content"])]}),_:1})),r("div",fe,[r("div",he,[r("div",ge,[e(p)?(s(),a("div",xe)):c("",!0),o(Y,{name:"fade"},{default:f(()=>[e(p)?c("",!0):(s(),_(G,{key:0,class:ie(["mb-0 flex aspect-square max-w-[100%] flex-col justify-center py-10 md:aspect-video md:py-[112px] [&_img]:max-h-[540px] [&_img]:w-auto [&_img]:max-w-[1400px]",e(t).fields.heroCover?"[&_img]:object-cover":"[&_img]:object-contain"]),src:e(t).fields.hero.mediaItemUrl,alt:e(t).fields.hero.altText,srcset:e(t).fields.hero.srcSet,sizes:e(t).fields.hero.sizes},null,8,["class","src","alt","srcset","sizes"]))]),_:1})])]),r("div",ye,[r("div",ve,[e(p)?(s(),a("div",we)):(s(),a("div",be,[r("h1",Te,x(e(t).fields.headline||e(t).title),1),e(t).fields.subhead?(s(),a("h2",{key:0,class:"text-balance",innerHTML:e(t).fields.subhead},null,8,Ce)):c("",!0),o(ne,{"drop-caps":e(t).fields.dropcap,content:e(t).fields.content},null,8,["drop-caps","content"])])),(A=(C=e(t))==null?void 0:C.fields)!=null&&A.link&&!e(p)?(s(),a("div",Ae,[r("a",{href:e(t).fields.link.url,target:e(t).fields.link.target?e(t).fields.link.target:"_self",class:"font-title text-md md:text-xl"},x(e(t).fields.link.title?e(t).fields.link.title:"View this artifact in our
95collections"),9,ke)])):c("",!0)]),r("div",Me,[(k=e(t))!=null&&k.fields&&!e(p)?(s(),a("div",Se,[(s(!0),a(Z,null,ee(e(t).fields.components,m=>(s(),a("div",Le,[m.fieldGroupName==="Artifact_Fields_Components_Video"?(s(),_(q,{key:0},{default:f(()=>[o(e(D),{data:m},null,8,["data"])]),_:2},1024)):(s(),_(e(D),{key:1,data:m},null,8,["data"]))]))),256))])):c("",!0)])]),(S=(M=e(t))==null?void 0:M.fields)!=null&&S.credits?(s(),_(_e,{key:0,creditText:e(t).fields.credits},null,8,["creditText"])):c("",!0)])])}}},Pe=le(ze,[["__scopeId","data-v-66693855"]]);export{Pe 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.