import{S as t,i as e,a as n,b as o,s as i,e as a,c as r,n as s,d as m,f as c,g as h,h as l,j as u,o as d,t as p}from"./index-04d7984b.js";import{communities as f,addMarkersCommunities as g}from"../../../../../../../../../js/communities.js";import"../../../../../../../../../js/components/map-component.js";function b(t,e,n){const o=t.slice();return o[1]=e[n],o}function w(t){let e,n,i,m,u,d,f,g,b,w,x,v,y,C,j,z,E,k,D=t[1].location[0]+"",L=t[1].status+"",M=t[1].members+"",R=t[1].contact[1]+"";return{c(){e=a("div"),n=a("p"),i=a("b"),i.textContent="Location: ",m=p(D),u=r(),d=a("p"),f=a("b"),f.textContent="Status: ",g=p(L),b=r(),w=a("p"),x=a("b"),x.textContent="Members: ",v=p(M),y=r(),C=a("p"),j=a("b"),j.textContent="Contact: ",z=a("a"),E=p(R),k=r(),c(z,"href",t[1].contact[0]),c(z,"target",";_blank;"),c(z,"rel","noreferrer"),c(e,"class","location-info")},m(t,a){o(t,e,a),h(e,n),h(n,i),h(n,m),h(e,u),h(e,d),h(d,f),h(d,g),h(e,b),h(e,w),h(w,x),h(w,v),h(e,y),h(e,C),h(C,j),h(C,z),h(z,E),h(e,k)},p:s,d(t){t&&l(e)}}}function x(t){let e,n,i,d,p,g,x,v,y,C,j,z,E=f,k=[];for(let e=0;e<E.length;e+=1)k[e]=w(b(t,E,e));return{c(){e=a("div"),n=a("div"),i=a("h1"),i.textContent="Communities",d=r(),p=a("p"),p.textContent="We build libertarian socialist communities by buying land, housing and the means of production which are then owned by the members of these communities. There is no private property within the communities and, therefore, exploitation and suffering that comes with it. Decisions are made through direct democracy with a focus on consensus ensuring that each community member has power over decisions that affect their life. Communities try to establish their own cooperatives in order to finance their development becoming financially independent and sustainable, which allows for their survival and growth. Within communities the gift economy is utilized whenever possible. Each community is a small beacon of socialism within the dark capitalist world showing us how good life can be if only we achieve our goal.",g=r(),x=a("h3"),x.textContent="Our communities",v=r(),y=a("map-component"),C=r(),j=a("h4"),j.textContent="Europe",z=r();for(let t=0;t<k.length;t+=1)k[t].c();this.c=s,m(y,"id","map"),m(y,"callback",t[0]),c(n,"id","text-container"),c(e,"id","container")},m(t,a){o(t,e,a),h(e,n),h(n,i),h(n,d),h(n,p),h(n,g),h(n,x),h(n,v),h(n,y),h(n,C),h(n,j),h(n,z);for(let t=0;t<k.length;t+=1)k[t].m(n,null)},p(t,[e]){if(0&e){let o;for(E=f,o=0;o<E.length;o+=1){const i=b(t,E,o);k[o]?k[o].p(i,e):(k[o]=w(i),k[o].c(),k[o].m(n,null))}for(;o<k.length;o+=1)k[o].d(1);k.length=E.length}},i:s,o:s,d(t){t&&l(e),u(k,t)}}}function v(t){return d((()=>{})),[function(t){let e=t([51.505,-.09],3);g(e)}]}class y extends t{constructor(t){super(),this.shadowRoot.innerHTML="<style>@import '/css/common.css';h4{margin-bottom:2rem}.location-info{position:relative;margin-bottom:2rem}.location-info p{margin-bottom:0}a{font-size:1.2rem;color:#DD1C1A}#map{--height:30rem;--width:100%;--margin-bottom:3rem}#text-container{max-width:calc(100vw - 4rem);margin:auto}h1{margin-bottom:1rem;font-size:2.5rem;text-align:center}h3{margin-bottom:1rem}#container{margin:auto;max-width:1200px;margin-top:1rem;margin-bottom:4rem}#container>div>p{margin-bottom:1rem}#container p{font-size:1.2rem;text-align:justify}</style>",e(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},v,x,i,{},null),t&&t.target&&o(t.target,this,t.anchor)}}customElements.define("communities-component",y);export{y as default};
