import{_ as m,s as o,f as u,L as h}from"./index.479374da.js";import{l as _,o as a,e as l,h as s,t as p,i as g,F as b,v as f,m as x}from"./vendor.91706c79.js";const v={name:"Contributor",computed:{slug(){return this.$route.params.slug},data(){return o.state.contributors[this.slug]},contributor(){return this.data&&this.data.contributor},posts(){return this.data&&this.data.posts},title(){var t;return(t=this.contributor)==null?void 0:t.post_title},acf(){var t;return(t=this.contributor)==null?void 0:t.acf},thumb(){var t;return(t=this.acf)==null?void 0:t.image},bio(){var t;return u((t=this.acf)==null?void 0:t.bio)},location(){var t;return(t=this.acf)==null?void 0:t.location}},mounted(){o.commit("SEO",{title:this.title,description:null,image:null})},beforeRouteEnter(t,n,r){if(t.query.preview_id)return r();const{slug:i}=t.params;o.dispatch("getContributor",i).then(r)},beforeRouteUpdate(t,n,r){if(t.query.preview_id)return r();const{slug:i}=t.params;o.dispatch("getContributor",i).then(r)},components:{ListItem:h}},y={class:"mb-4 md:mb-8 lg:mb-16"},w={class:"p-4 md:px-16 md:py-8 lg:py-12"},L={class:"my-4 md:my-8 lg:mt-16"},k={class:"font-serif font-bold print:font-sans text-4xl lg:text-7xl xl:text-8xl break-words"},C=["innerHTML"],z={class:"max-w-page mt-4 md:mt-8"},B={key:0,class:"max-w-md float-left pr-4"},H=["src","width","height","alt"],M={class:"px-4 sm:ml-12 lg:ml-36 xl:ml-64"},T={class:"max-w-prose a-line"},E=["innerHTML"],j={class:"print:hidden theme-posts border-t border-current p-4 md:px-16 md:py-8 lg:py-12 clear-both"},q={class:"sm:grid grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-8"};function F(t,n,r,i,N,e){const c=_("list-item");return a(),l("div",y,[s("div",w,[s("div",L,[s("h1",k,p(e.title),1),s("div",{innerHTML:e.location,class:"font-bold text-2xl md:text-3xl mt-2"},null,8,C)]),s("div",z,[e.thumb?(a(),l("figure",B,[s("img",{src:e.thumb.sizes.large,width:e.thumb.sizes["large-width"],height:e.thumb.sizes["large-height"],alt:e.thumb.alt,loading:"lazy"},null,8,H)])):g("",!0),s("div",M,[s("div",T,[s("div",{innerHTML:e.bio,class:"text-md md:text-lg max-w-xl leading-snug"},null,8,E)])])])]),s("div",j,[s("ul",q,[(a(!0),l(b,null,f(e.posts,d=>(a(),x(c,{post:d,key:d.id,class:"mb-4 sm:mb-0 theme-post"},null,8,["post"]))),128))])])])}var V=m(v,[["render",F]]);export{V as default};