site-libsoc/Server/public/js/components/join-us-component.js

2 lines
3.7 KiB
JavaScript
Raw Normal View History

2023-06-27 03:45:31 +07:00
import{S as o,i as t,a as e,b as a,l as n,s as i,t as r,e as s,c as m,n as l,f as p,d as c,k as h,g as u,h as d,o as g}from"./index-95aedb1a.js";import{addMarkersGroups as b}from"../../../../../../../../../js/groups.js";import{addMarkersCoops as f}from"../../../../../../../../../js/coops.js";import{addMarkersCommunities as y}from"../../../../../../../../../js/communities.js";import"../../../../../../../../../js/components/map-component.js";function w(o){let t,e,n,i,g,b,f,y,w,j,v,x,k,A,J;return{c(){t=r("Are you against exploitation of one human being by another?\r\nDo you agree that we should cooperate and not compete with each other?\r\nIn that case, you are already a libertarian socialist. Join us \r\n\r\nFInd our group, community or cooperative near you and join in order to make a world we both envision a reality. \r\n\r\nNone of them near you? Not a problem! Join our WhatsApp group and we will help you get started.\r\n"),e=s("div"),n=s("div"),i=s("h1"),i.textContent="Join us",g=m(),b=s("img"),y=m(),w=s("div"),w.innerHTML="<p>1. Are you against dictatorship and in favor of democracy?</p> \n <p>2. Are you against exploitation of one human being by another?</p> \n <p>3. Do you agree that we should cooperate and not compete with each other?</p> \n <p>If the answer is <b>YES</b>, then you are already a libertarian socialist. <b>JOIN US!</b></p>",j=m(),v=s("div"),v.innerHTML='<p>Find our</p> \n <ol><li><a href="/groups">group</a>,</li> \n <li><a href="/communities">community</a> or</li> \n <li><a href="/cooperatives">cooperative</a></li></ol> \n <p>near you and join to help make a world we both envision a reality.</p>',x=m(),k=s("p"),k.innerHTML='None of them near you? Not a problem! Join our <a href="https://chat.whatsapp.com/BhnmUNljUxJ2AjeHUwyTKh" target="_blank" rel="noreferrer">WhatsApp group</a> and we will help you start your own.',A=m(),J=s("map-component"),this.c=l,p(b.src,f="/img/common/join-group.svg")||c(b,"src","/img/common/join-group.svg"),c(b,"id","join-group"),c(b,"alt","join group"),c(w,"id","condition-list"),c(v,"id","call-to-action-list"),h(J,"id","map"),h(J,"callback",o[0]),c(n,"id","text-container"),c(e,"id","container")},m(o,r){a(o,t,r),a(o,e,r),u(e,n),u(n,i),u(n,g),u(n,b),u(n,y),u(n,w),u(n,j),u(n,v),u(n,x),u(n,k),u(n,A),u(n,J)},p:l,i:l,o:l,d(o){o&&d(t),o&&d(e)}}}function j(o,t,e){return g((()=>{})),[function(o){let t=o([51.505,-.09],3);b(t),f(t),y(t)}]}class v extends o{constructor(o){super(),this.shadowRoot.innerHTML="<style>@import '/css/common.css';#join-group{position:absolute;width:10.5rem;height:auto;left:calc(50% + 1.2rem);transform:translate(-50%);z-index:0;opacity:0.2}#map{--height:30rem;--width:100%;--margin-bottom:3rem}ol>li{position:relative;font-size:1.15rem;font-family:var(--serif,serif);left:3rem}#condition-list{margin-bottom:2rem;margin-top:7rem}#condition-list>p{margin-bottom:1rem}#text-container{max-width:calc(100vw - 4rem);margin:auto}h1{margin-bottom:1rem;font-size:2.5rem;text-align:center}#container{margin:auto;max-width:1200px;margin-top:1rem;margin-bottom:4rem}#container>div>p{margin-bottom:1rem}#call-to-action-list>p{margin-bottom:1rem}#call-to-action-list>:nth-child(2){margin-bottom:0rem}#call-to-action-list>ol>li{margin-bottom:0.5rem}#text-container a{font-size:1.15rem;color:#DD1C1A\n }#container p{font-size:1.15rem;text-align:justify}</style>",t(this,{target:this.shadowRoot,props:e(this.attributes),customElement:!0},j,w,i,{mapCallback:0},null),o&&(o.target&&a(o.target,this,o.anchor),o.props&&(this.$set(o.props),n()))}static get observedAttributes(){return["mapCallback"]}get mapCallback(){return this.$$.ctx[0]}}customElements.define("join-us-component",v);export{v as default};