site-libsoc/Server/public/js/components/groups-component.js

2 lines
3.8 KiB
JavaScript

import{S as t,i as e,a as o,b as n,k as a,s as i,e as s,c as r,n as l,d as c,f as m,g as u,h as p,j as h,o as d,t as g}from"./index-04d7984b.js";import{groups as f,addMarkersGroups as b}from"../../../../../../../../../js/groups.js";import"../../../../../../../../../js/components/map-component.js";function x(t,e,o){const n=t.slice();return n[1]=e[o],n}function v(t){let e,o,a,i,c,h,d,f,b,x,v,w,y,C,k=t[1].location[0]+"",j=t[1].members+"",z=t[1].contact[1]+"";return{c(){e=s("div"),o=s("p"),a=s("b"),a.textContent="Location: ",i=g(k),c=r(),h=s("p"),d=s("b"),d.textContent="Members: ",f=g(j),b=r(),x=s("p"),v=s("b"),v.textContent="Contact: ",w=s("a"),y=g(z),C=r(),m(w,"href",t[1].contact[0]),m(w,"target",";_blank;"),m(w,"rel","noreferrer"),m(e,"class","location-info")},m(t,s){n(t,e,s),u(e,o),u(o,a),u(o,i),u(e,c),u(e,h),u(h,d),u(h,f),u(e,b),u(e,x),u(x,v),u(x,w),u(w,y),u(e,C)},p:l,d(t){t&&p(e)}}}function w(t){let e,o,a,i,d,g,b,w,y,C,k,j,z,G,q=f,E=[];for(let e=0;e<q.length;e+=1)E[e]=v(x(t,q,e));return{c(){e=s("div"),o=s("div"),a=s("h1"),a.textContent="Groups",i=r(),d=s("p"),d.textContent="We try to raise awareness among individuals about the detrimental impact of the current politico-economic systems on our collective well-being. Through educational initiatives, community engagement, and critical analysis, we strive to illuminate the structural flaws and inherent inequalities that permeate capitalist societies. By shedding light on these systemic issues, we empower people to question the status quo and envision alternative paths towards a more just and sustainable future.",g=r(),b=s("p"),b.textContent="However, our mission extends beyond theoretical exploration and ideological discourse. We firmly believe in the power of mutual aid and collective action to alleviate the immediate challenges and hardships faced within a capitalist framework. Through the practice of mutual aid, we actively support one another by sharing resources, knowledge, and skills, thereby fostering a sense of solidarity and resilience. Whether it's organizing community gardens, establishing local food cooperatives, or providing mutual support networks, our aim is to make life under capitalism more bearable and to cultivate pockets of resistance and alternatives within the existing system.",w=r(),y=s("h3"),y.textContent="Our groups",C=r(),k=s("map-component"),j=r(),z=s("h4"),z.textContent="Europe",G=r();for(let t=0;t<E.length;t+=1)E[t].c();this.c=l,c(k,"id","map"),c(k,"callback",t[0]),m(o,"id","text-container"),m(e,"id","container")},m(t,s){n(t,e,s),u(e,o),u(o,a),u(o,i),u(o,d),u(o,g),u(o,b),u(o,w),u(o,y),u(o,C),u(o,k),u(o,j),u(o,z),u(o,G);for(let t=0;t<E.length;t+=1)E[t].m(o,null)},p(t,[e]){if(0&e){let n;for(q=f,n=0;n<q.length;n+=1){const a=x(t,q,n);E[n]?E[n].p(a,e):(E[n]=v(a),E[n].c(),E[n].m(o,null))}for(;n<E.length;n+=1)E[n].d(1);E.length=q.length}},i:l,o:l,d(t){t&&p(e),h(E,t)}}}function y(t,e,o){return d((()=>{})),[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';h4{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:o(this.attributes),customElement:!0},y,w,i,{mapCallbackGroups:0},null),t&&(t.target&&n(t.target,this,t.anchor),t.props&&(this.$set(t.props),a()))}static get observedAttributes(){return["mapCallbackGroups"]}get mapCallbackGroups(){return this.$$.ctx[0]}}customElements.define("groups-component",C);export{C as default};