import{_ as d,a as n,b as t,F as c,r as l,t as m,l as u,o as i}from"./index-iJfZRh8I.js";const p={name:"ResidentsComponent",components:{},data(){return{residents:[]}},methods:{toURL(s){this.$router.push(s)},async getResidents(){const s=await u(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 i(),n("main",null,[a[0]||(a[0]=t("h1",{class:"title title--mt-0"},"Résident.e.s",-1)),t("section",_,[(i(!0),n(c,null,l(o.residents,e=>(i(),n("div",{class:"resident",key:e.id,resident:e,onClick:y=>r.toURL(`/residents/${e.name}`)},[t("p",null,m(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-972f7380"]]);export{b as default};