import{_ as d,o as n,c as i,a as t,F as c,l,m,t as u}from"./index-cfekWYru.js";const p={name:"ResidentsComponent",components:{},data(){return{residents:[]}},methods:{toURL(s){this.$router.push(s)},async getResidents(){const s=await m(this.$config,"Residents",`query Residents {
Residents {
id
name
description
image
facebook
instagram
raco
soundcloud
bandcamp
website
}
}`,{});this.residents=this.residents.concat(s.Residents)}},async mounted(){await this.getResidents()}},_={class:"residents"},g=["resident","onClick"],h=["src"];function R(s,a,f,k,o,r){return n(),i("main",null,[a[0]||(a[0]=t("h1",{class:"title title--mt-0"},"Résident·es",-1)),t("section",_,[(n(!0),i(c,null,l(o.residents,e=>(n(),i("div",{class:"resident",key:e.id,resident:e,onClick:y=>r.toURL(`/residents/${e.name}`)},[t("p",null,u(e.name),1),t("img",{src:e.image,loading:"lazy",alt:"resident image"},null,8,h)],8,g))),128))])])}const b=d(p,[["render",R],["__scopeId","data-v-e2b36f54"]]);export{b as default};