import{S as t,i as e,a as n,b as o,s as i,e as a,c as s,n as m,d as r,f as c,k as l,g as h,h as u,j as d,o as g,t as p}from"./index-95aedb1a.js";import{communities as f,addMarkersCommunities as b}from"../../../../../../../../../js/communities.js";import"../../../../../../../../../js/components/map-component.js";function w(t,e,n){const o=t.slice();return o[1]=e[n],o}function x(t){let e,n,i,c,l,d,g,f,b,w,x,v,y,C,j,z,k,E,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: ",c=p(D),l=s(),d=a("p"),g=a("b"),g.textContent="Status: ",f=p(L),b=s(),w=a("p"),x=a("b"),x.textContent="Members: ",v=p(M),y=s(),C=a("p"),j=a("b"),j.textContent="Contact: ",z=a("a"),k=p(R),E=s(),r(z,"href",t[1].contact[0]),r(z,"target",";_blank;"),r(z,"rel","noreferrer"),r(e,"class","location-info")},m(t,a){o(t,e,a),h(e,n),h(n,i),h(n,c),h(e,l),h(e,d),h(d,g),h(d,f),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,k),h(e,E)},p:m,d(t){t&&u(e)}}}function v(t){let e,n,i,g,p,b,v,y,C,j,z,k,E,D,L,M=f,R=[];for(let e=0;e<M.length;e+=1)R[e]=x(w(t,M,e));return{c(){e=a("div"),n=a("div"),i=a("h1"),i.textContent="Communities",g=s(),p=a("img"),v=s(),y=a("p"),y.textContent="We establish 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 using 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.",C=s(),j=a("h3"),j.textContent="Our communities",z=s(),k=a("map-component"),E=s(),D=a("h4"),D.textContent="Europe",L=s();for(let t=0;t<R.length;t+=1)R[t].c();this.c=m,r(p,"id","communities-img"),c(p.src,b="/img/common/communities.svg")||r(p,"src","/img/common/communities.svg"),r(p,"alt","communities"),l(k,"id","map"),l(k,"callback",t[0]),r(n,"id","text-container"),r(e,"id","container")},m(t,a){o(t,e,a),h(e,n),h(n,i),h(n,g),h(n,p),h(n,v),h(n,y),h(n,C),h(n,j),h(n,z),h(n,k),h(n,E),h(n,D),h(n,L);for(let t=0;t<R.length;t+=1)R[t].m(n,null)},p(t,[e]){if(0&e){let o;for(M=f,o=0;o<M.length;o+=1){const i=w(t,M,o);R[o]?R[o].p(i,e):(R[o]=x(i),R[o].c(),R[o].m(n,null))}for(;o<R.length;o+=1)R[o].d(1);R.length=M.length}},i:m,o:m,d(t){t&&u(e),d(R,t)}}}function y(t){return g((()=>{})),[function(t){let e=t([51.505,-.09],3);b(e)}]}class C extends t{constructor(t){super(),this.shadowRoot.innerHTML="<style>@import '/css/common.css';#communities-img{position:absolute;width:11rem;left:50%;transform:translate(-50%);z-index:0;opacity:0.2}#text-container>:nth-child(3){margin-top:8rem}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},y,v,i,{},null),t&&t.target&&o(t.target,this,t.anchor)}}customElements.define("communities-component",C);export{C as default};
