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

2 lines
7.3 KiB
JavaScript

import{S as o,i,a as t,b as e,s as r,e as n,n as a,d as s,c as m,o as l,f as c,t as p,g,j as u,h as d,k as h,l as f,m as b}from"./index-4348483d.js";import{w as v}from"./index-71440b21.js";import{addMarkersGroups as j}from"../../../../../../../../../js/groups.js";import{addMarkersCoops as w}from"../../../../../../../../../js/coops.js";import{addMarkersCommunities as k}from"../../../../../../../../../js/communities.js";import{addMarkersParties as y}from"../../../../../../../../../js/parties.js";import{loadLocaleContent as x}from"../../../../../../../../../js/libraries/serverTools.js";import"../../../../../../../../../js/components/map-component.js";function P(o){let i,t,r,n,a,m,l,v,j,w,k,y,x,P,A,N,S,T,D,H,O,z,L,M,U,B,E,G,R,W,Y,_,C,J,K,Z,q,F,I,Q,V,X,$,oo,io,to,eo,ro,no,ao,so,mo,lo,co,po,go,uo,ho,fo,bo,vo,jo,wo,ko,yo,xo,Po,Ao,No,So,To,Do,Ho,Oo,zo,Lo,Mo,Uo,Bo,Eo,Go,Ro,Wo,Yo=o[1].heading+"",_o=o[1].condition1+"",Co=o[1].condition2+"",Jo=o[1].condition3+"",Ko=o[1].conditionsOutcome+"",Zo=o[1].subheading1+"",qo=o[1].valueProposition1+"",Fo=o[1].valueProposition2+"",Io=o[1].valueProposition3+"",Qo=o[1].valueProposition4+"",Vo=o[1].valueProposition5+"",Xo=o[1].subheading2+"",$o=o[1].findOur+"",oi=o[1].group+"",ii=o[1].commune+"",ti=o[1].cooperative+"",ei=o[1].or+"",ri=o[1].party+"",ni=o[1].nearYou+"",ai=o[1].noneNear+"",si=o[1].WhatsAppGroup+"",mi=o[1].or+"",li=o[1].DiscordServer+"",ci=o[1].helpStart+"";return{c(){i=c("div"),t=c("div"),r=c("h1"),n=p(Yo),a=g(),m=c("img"),v=g(),j=c("ol"),w=c("li"),k=p(_o),y=g(),x=c("li"),P=p(Co),A=g(),N=c("li"),S=p(Jo),T=g(),D=c("p"),H=g(),O=c("h2"),z=p(Zo),L=g(),M=c("ol"),U=c("li"),B=p(qo),E=g(),G=c("li"),R=p(Fo),W=g(),Y=c("li"),_=p(Io),C=g(),J=c("li"),K=p(Qo),Z=g(),q=c("p"),F=p(Vo),I=g(),Q=c("h2"),V=p(Xo),X=g(),$=c("div"),oo=c("p"),io=p($o),to=g(),eo=c("ol"),ro=c("li"),no=c("a"),ao=p(oi),so=p(","),mo=g(),lo=c("li"),co=c("a"),po=p(ii),go=g(),uo=c("li"),ho=c("a"),fo=p(ti),bo=g(),vo=p(ei),jo=g(),wo=c("li"),ko=c("a"),yo=p(ri),xo=g(),Po=c("p"),Ao=p(ni),No=g(),So=c("p"),To=p(ai),Do=g(),Ho=c("a"),Oo=p(si),zo=g(),Lo=p(mi),Mo=g(),Uo=c("a"),Bo=p(li),Eo=p(ci),Go=g(),Ro=c("map-component"),u(m.src,l="/img/common/join-group.svg")||d(m,"src","/img/common/join-group.svg"),d(m,"id","join-group"),d(m,"alt","join group"),d(j,"id","condition-list"),d(M,"id","value-proposition-list"),d(no,"href","/"+o[4]+"/groups"),d(co,"href","/"+o[4]+"/communes"),d(ho,"href","/"+o[4]+"/cooperatives"),d(ko,"href","/"+o[4]+"/parties"),d(eo,"id","entities-list"),d($,"id","call-to-action-list"),d(Ho,"href","https://chat.whatsapp.com/BhnmUNljUxJ2AjeHUwyTKh"),d(Ho,"target","_blank"),d(Ho,"rel","noreferrer"),d(Uo,"href","https://discord.gg/xAPZmyr8B6"),d(Uo,"target","_blank"),d(Uo,"rel","noreferrer"),h(Ro,"id","map"),h(Ro,"callback",Wo=o[6]),d(t,"id","text-container"),d(i,"id","container")},m(o,s){e(o,i,s),f(i,t),f(t,r),f(r,n),f(t,a),f(t,m),f(t,v),f(t,j),f(j,w),f(w,k),f(j,y),f(j,x),f(x,P),f(j,A),f(j,N),f(N,S),f(j,T),f(j,D),D.innerHTML=Ko,f(t,H),f(t,O),f(O,z),f(t,L),f(t,M),f(M,U),f(U,B),f(M,E),f(M,G),f(G,R),f(M,W),f(M,Y),f(Y,_),f(M,C),f(M,J),f(J,K),f(M,Z),f(M,q),f(q,F),f(t,I),f(t,Q),f(Q,V),f(t,X),f(t,$),f($,oo),f(oo,io),f($,to),f($,eo),f(eo,ro),f(ro,no),f(no,ao),f(ro,so),f(eo,mo),f(eo,lo),f(lo,co),f(co,po),f(eo,go),f(eo,uo),f(uo,ho),f(ho,fo),f(uo,bo),f(uo,vo),f(eo,jo),f(eo,wo),f(wo,ko),f(ko,yo),f($,xo),f($,Po),f(Po,Ao),f(t,No),f(t,So),f(So,To),f(So,Do),f(So,Ho),f(Ho,Oo),f(So,zo),f(So,Lo),f(So,Mo),f(So,Uo),f(Uo,Bo),f(So,Eo),f(t,Go),f(t,Ro)},p(o,i){2&i&&Yo!==(Yo=o[1].heading+"")&&b(n,Yo),2&i&&_o!==(_o=o[1].condition1+"")&&b(k,_o),2&i&&Co!==(Co=o[1].condition2+"")&&b(P,Co),2&i&&Jo!==(Jo=o[1].condition3+"")&&b(S,Jo),2&i&&Ko!==(Ko=o[1].conditionsOutcome+"")&&(D.innerHTML=Ko),2&i&&Zo!==(Zo=o[1].subheading1+"")&&b(z,Zo),2&i&&qo!==(qo=o[1].valueProposition1+"")&&b(B,qo),2&i&&Fo!==(Fo=o[1].valueProposition2+"")&&b(R,Fo),2&i&&Io!==(Io=o[1].valueProposition3+"")&&b(_,Io),2&i&&Qo!==(Qo=o[1].valueProposition4+"")&&b(K,Qo),2&i&&Vo!==(Vo=o[1].valueProposition5+"")&&b(F,Vo),2&i&&Xo!==(Xo=o[1].subheading2+"")&&b(V,Xo),2&i&&$o!==($o=o[1].findOur+"")&&b(io,$o),2&i&&oi!==(oi=o[1].group+"")&&b(ao,oi),2&i&&ii!==(ii=o[1].commune+"")&&b(po,ii),2&i&&ti!==(ti=o[1].cooperative+"")&&b(fo,ti),2&i&&ei!==(ei=o[1].or+"")&&b(vo,ei),2&i&&ri!==(ri=o[1].party+"")&&b(yo,ri),2&i&&ni!==(ni=o[1].nearYou+"")&&b(Ao,ni),2&i&&ai!==(ai=o[1].noneNear+"")&&b(To,ai),2&i&&si!==(si=o[1].WhatsAppGroup+"")&&b(Oo,si),2&i&&mi!==(mi=o[1].or+"")&&b(Lo,mi),2&i&&li!==(li=o[1].DiscordServer+"")&&b(Bo,li),2&i&&ci!==(ci=o[1].helpStart+"")&&b(Eo,ci),2&i&&Wo!==(Wo=o[6])&&h(Ro,"callback",Wo)},d(o){o&&s(i)}}}function A(o){let i,t=6==o[0]&&P(o);return{c(){t&&t.c(),i=n()},m(o,r){t&&t.m(o,r),e(o,i,r)},p(o,e){6==o[0]?t?t.p(o,e):(t=P(o),t.c(),t.m(i.parentNode,i)):t&&(t.d(1),t=null)},d(o){t&&t.d(o),o&&s(i)}}}function N(o){let i,t=o[0],m=A(o);return{c(){m.c(),i=n(),this.c=a},m(o,t){m.m(o,t),e(o,i,t)},p(o,[e]){1&e&&r(t,t=o[0])?(m.d(1),m=A(o),m.c(),m.m(i.parentNode,i)):m.p(o,e)},i:a,o:a,d(o){o&&s(i),m.d(o)}}}function S(o,i,t){let e,r,n=v(0);m(o,n,(o=>t(0,e=o)));let a=v({});m(o,a,(o=>t(1,r=o))),x(a,"groups-component",n),x(a,"communities-component",n),x(a,"cooperatives-component",n),x(a,"parties-component",n),x(a,"countries",n);let s=x(a,"join-us-component",n);function c(o,i){let t=o([22,0],2);j(t,i),k(t,i),w(t,i),y(t,i)}l((()=>{}));return[e,r,n,a,s,c,o=>c(o,r)]}class T extends o{constructor(o){super(),this.shadowRoot.innerHTML="<style>@import '/css/common.css';#entities-list li{list-style:none}#entities-list li:before{content:'';display:inline-block;height:1.1rem;width:1rem;background-size:contain;background-repeat:no-repeat;margin-left:-1.5rem;margin-right:0.5rem}#entities-list li:nth-of-type(1):before{background-image:url(https://www.libsoc.org/img/common/markers/marker-green.png)}#entities-list li:nth-of-type(2):before{background-image:url(https://www.libsoc.org/img/common/markers/marker-red.png)}#entities-list li:nth-of-type(3):before{background-image:url(https://www.libsoc.org/img/common/markers/marker-blue.png)}#entities-list li:nth-of-type(4):before{background-image:url(https://www.libsoc.org/img/common/markers/marker-gold.png)}#entities-list li::marker{display:inline-block;height:1rem}h2{margin-bottom:1rem}#value-proposition-list{margin-bottom:2rem}#value-proposition-list>li{margin-bottom:1rem}ol li{position:relative;font-family:var(--serif,serif);margin-left:1.5rem;list-style-position:outside}#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}#call-to-action-list>ol>li{position:relative;font-family:var(--serif,serif);margin-left:3rem}#condition-list{margin-bottom:2rem;margin-top:7rem}#condition-list>li{margin-bottom:1rem}#text-container{max-width:calc(100vw - 4rem);margin:auto}h1{margin-bottom:1rem;font-size:2.2rem;text-align:center}#container{margin:auto;max-width:800px;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(1){margin-bottom:0.5rem}#call-to-action-list>:nth-child(2){margin-bottom:0rem}#call-to-action-list>ol>li{margin-bottom:0.5rem}#text-container a{color:#DD1C1A\n }#container p{text-align:justify}</style>",i(this,{target:this.shadowRoot,props:t(this.attributes),customElement:!0},S,N,r,{},null),o&&o.target&&e(o.target,this,o.anchor)}}customElements.define("join-us-component",T);export{T as default};