1import{_ as h}from"./BackLink.vue_vue_type_script_setup_true_lang-D7E6fXs3.js";import{a as y,b as v,d as P,_ as k}from"./main-D6RHxbpX.js";import{P as $}from"./PostFeaturedImage-LCI0tSPf.js";import{_ as j}from"./ProcessContent.vue_vue_type_script_setup_true_lang-Bz-Y5ytx.js";import I from"./PublicationAuthors-Dijzyaqj.js";import{H as S,j as D,r as C,G as M,I as T,o,c as l,l as x,q as s,k as _,a,p as r,F as B,B as N,A as q,D as w,t as L}from"./vendor-ojHIal3q.js";import"./links.module-DonF4rOa.js";const d=S` 2 query getPublication($slug: ID!) { 3 publication(id: $slug, idType: SLUG) { 4 content 5 featuredImage { 6 node { 7 altText 8 caption 9 description 10 mediaDetails { 11 height 12 width 13 } 14 sourceUrl 15 } 16 } 17 imageSrcset 18 publicationData { 19 authors { 20 author 21 type 22 } 23 fully_illustrated 24 hardcover 25 height 26 num_illustrations 27 num_pages 28 publication_year 29 purchase_url 30 softcover 31 width 32 } 33 publicationAuthors(first: 100) { 34 nodes { 35 name 36 publication_authorId 37 slug 38 sort 39 } 40 } 41 publicationSubjects { 42 nodes { 43 name 44 slug 45 } 46 } 47 slug 48 title 49 } 50 } 51`,O=["innerHTML"],H=["href"],V={class:"tags"},A={beforeRoute(u,n){return new Promise((c,p)=>{n.executeQuery({query:d,variables:{slug:u.slug}}).then(()=>c()).catch(m=>p(m))})}},E=D({...A,__name:"PublicationPost",props:{slug:{}},setup(u){const n=u,{handleError:c}=y(),{setMetaDescription:p,setMetaTitle:m}=v(),e=C({});return M({onData:t=>{t.publication&&Object.keys(t.publication).length&&(e.value=t.publication,m(t.publication.title),p(t.publication.excerpt),P()),(!t.publication||Object.keys(t.publication).length===0)&&c("PublicationPost",n.slug)},query:d,variables:{slug:n.slug}}),(t,g)=>{const b=T("router-link");return e.value&&Object.keys(e.value).length?(o(),l("article",{key:0,class:s([t.$style.publication,"container"])},[e.value.featuredImage?(o(),x($,{key:0,"is-aspect":!0,"featured-image":e.value.featuredImage.node,srcset:e.value.imageSrcset,class:s(t.$style.featuredImage),"ga4-data":JSON.stringify({click_type:"hero",component:"PublicationPost",content_group:"publication",gtm_tag:"image",file_name:`${e.value.featuredImage.node.sourceUrl.split("/").pop()}`})},null,8,["featured-image","srcset","class","ga4-data"])):_("",!0),a("header",{class:s(t.$style.header)},[a("nav",null,[r(h,{component:"PublicationPost",group:"publication",label:"Publications",name:"PublicationSection"})]),a("h1",{class:"space-24-32-above",innerHTML:e.value.title},null,8,O),r(I,{data:e.value},null,8,["data"]),e.value.publicationData.purchase_url?(o(),l("a",{key:0,class:"button-primary",href:e.value.publicationData.purchase_url,target:"_blank"}," Buy the Catalogue ",8,H)):_("",!0)],2),r(j,{ref:"mainContent",class:s(t.$style.content),content:e.value.content,wrapper:"section"},null,8,["class","content"]),a("footer",{class:s(t.$style.footer)},[g[0]||(g[0]=a("p",{class:"info"},"Subject:",-1)),a("ul",V,[(o(!0),l(B,null,N(e.value.publicationSubjects.nodes,(i,f)=>(o(),l("li",{key:f},[r(b,{to:{name:"PublicationTaxSection",params:{slug:i.slug,subtype:"publication_subject"}},"ga4-event":JSON.stringify({click_type:"taxonomy",component:"PublicationPost",content_group:"publication",gtm_tag:"link",link_text:`${i.name}`,link_url:`${i.slug}`})},{default:q(()=>[w(L(i.name),1)]),_:2},1032,["to","ga4-event"])]))),128))])],2)],2)):_("",!0)}}}),F="_publication_3potj_2",Q="_content_3potj_12",U="_footer_3potj_13",G="_more_3potj_14",J="_featured-image_3potj_17",z="_header_3potj_18",R={publication:F,content:Q,footer:U,more:G,"featured-image":"_featured-image_3potj_17",featuredImage:J,header:z},K={$style:R},oe=k(E,[["__cssModules",K]]);export{oe as default}; 52//# sourceMappingURL=PublicationPost-CuLVnEUo.js.map
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.