import{_ as a,s as e,F as i}from"./index.479374da.js";import{l as n,o as u,e as l,g as d}from"./vendor.91706c79.js";const m={name:"Topic",computed:{slug(){return this.$route.params.slug},data(){return e.state.topics[this.slug]},topic(){var t;return(t=this.data)==null?void 0:t.topic},posts(){var t;return((t=this.data)==null?void 0:t.posts)||[]}},mounted(){var t;e.commit("SEO",{title:((t=this.topic.title)==null?void 0:t.rendered)||this.topic.post_title,description:"",image:null})},beforeRouteEnter(t,p,o){const{slug:s}=t.params;e.dispatch("postsByTopic",s).then(o)},components:{FeatureTopic:i}};function _(t,p,o,s,f,r){const c=n("feature-topic");return u(),l("div",null,[d(c,{topic:r.topic,posts:r.posts,single:!0},null,8,["topic","posts"])])}var v=a(m,[["render",_]]);export{v as default};