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

2 lines
7.3 KiB
JavaScript

import{S as o,i as t,a as i,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 k}from"../../../../../../../../../js/coops.js";import{addMarkersCommunities as w}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 t,i,r,n,a,m,l,v,j,k,w,y,x,P,O,A,S,T,D,H,N,z,L,M,U,B,E,G,R,W,Y,_,C,J,K,Z,q,F,I,Q,V,X,$,oo,to,io,eo,ro,no,ao,so,mo,lo,co,po,go,uo,ho,fo,bo,vo,jo,ko,wo,yo,xo,Po,Oo,Ao,So,To,Do,Ho,No,zo,Lo,Mo,Uo,Bo,Eo,Go,Ro,Wo,Yo=o[0].heading+"",_o=o[0].condition1+"",Co=o[0].condition2+"",Jo=o[0].condition3+"",Ko=o[0].conditionsOutcome+"",Zo=o[0].subheading1+"",qo=o[0].valueProposition1+"",Fo=o[0].valueProposition2+"",Io=o[0].valueProposition3+"",Qo=o[0].valueProposition4+"",Vo=o[0].valueProposition5+"",Xo=o[0].subheading2+"",$o=o[0].findOur+"",ot=o[0].group+"",tt=o[0].commune+"",it=o[0].cooperative+"",et=o[0].or+"",rt=o[0].party+"",nt=o[0].nearYou+"",at=o[0].noneNear+"",st=o[0].WhatsAppGroup+"",mt=o[0].or+"",lt=o[0].DiscordServer+"",ct=o[0].helpStart+"";return{c(){t=c("div"),i=c("div"),r=c("h1"),n=p(Yo),a=g(),m=c("img"),v=g(),j=c("ol"),k=c("li"),w=p(_o),y=g(),x=c("li"),P=p(Co),O=g(),A=c("li"),S=p(Jo),T=g(),D=c("p"),H=g(),N=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"),to=p($o),io=g(),eo=c("ol"),ro=c("li"),no=c("a"),ao=p(ot),so=p(","),mo=g(),lo=c("li"),co=c("a"),po=p(tt),go=g(),uo=c("li"),ho=c("a"),fo=p(it),bo=g(),vo=p(et),jo=g(),ko=c("li"),wo=c("a"),yo=p(rt),xo=g(),Po=c("p"),Oo=p(nt),Ao=g(),So=c("p"),To=p(at),Do=g(),Ho=c("a"),No=p(st),zo=g(),Lo=p(mt),Mo=g(),Uo=c("a"),Bo=p(lt),Eo=p(ct),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[7]+"/groups"),d(co,"href","/"+o[7]+"/communes"),d(ho,"href","/"+o[7]+"/cooperatives"),d(wo,"href","/"+o[7]+"/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[9]),d(i,"id","text-container"),d(t,"id","container")},m(o,s){e(o,t,s),f(t,i),f(i,r),f(r,n),f(i,a),f(i,m),f(i,v),f(i,j),f(j,k),f(k,w),f(j,y),f(j,x),f(x,P),f(j,O),f(j,A),f(A,S),f(j,T),f(j,D),D.innerHTML=Ko,f(i,H),f(i,N),f(N,z),f(i,L),f(i,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(i,I),f(i,Q),f(Q,V),f(i,X),f(i,$),f($,oo),f(oo,to),f($,io),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,ko),f(ko,wo),f(wo,yo),f($,xo),f($,Po),f(Po,Oo),f(i,Ao),f(i,So),f(So,To),f(So,Do),f(So,Ho),f(Ho,No),f(So,zo),f(So,Lo),f(So,Mo),f(So,Uo),f(Uo,Bo),f(So,Eo),f(i,Go),f(i,Ro)},p(o,t){1&t&&Yo!==(Yo=o[0].heading+"")&&b(n,Yo),1&t&&_o!==(_o=o[0].condition1+"")&&b(w,_o),1&t&&Co!==(Co=o[0].condition2+"")&&b(P,Co),1&t&&Jo!==(Jo=o[0].condition3+"")&&b(S,Jo),1&t&&Ko!==(Ko=o[0].conditionsOutcome+"")&&(D.innerHTML=Ko),1&t&&Zo!==(Zo=o[0].subheading1+"")&&b(z,Zo),1&t&&qo!==(qo=o[0].valueProposition1+"")&&b(B,qo),1&t&&Fo!==(Fo=o[0].valueProposition2+"")&&b(R,Fo),1&t&&Io!==(Io=o[0].valueProposition3+"")&&b(_,Io),1&t&&Qo!==(Qo=o[0].valueProposition4+"")&&b(K,Qo),1&t&&Vo!==(Vo=o[0].valueProposition5+"")&&b(F,Vo),1&t&&Xo!==(Xo=o[0].subheading2+"")&&b(V,Xo),1&t&&$o!==($o=o[0].findOur+"")&&b(to,$o),1&t&&ot!==(ot=o[0].group+"")&&b(ao,ot),1&t&&tt!==(tt=o[0].commune+"")&&b(po,tt),1&t&&it!==(it=o[0].cooperative+"")&&b(fo,it),1&t&&et!==(et=o[0].or+"")&&b(vo,et),1&t&&rt!==(rt=o[0].party+"")&&b(yo,rt),1&t&&nt!==(nt=o[0].nearYou+"")&&b(Oo,nt),1&t&&at!==(at=o[0].noneNear+"")&&b(To,at),1&t&&st!==(st=o[0].WhatsAppGroup+"")&&b(No,st),1&t&&mt!==(mt=o[0].or+"")&&b(Lo,mt),1&t&&lt!==(lt=o[0].DiscordServer+"")&&b(Bo,lt),1&t&&ct!==(ct=o[0].helpStart+"")&&b(Eo,ct),1&t&&Wo!==(Wo=o[9])&&h(Ro,"callback",Wo)},d(o){o&&s(t)}}}function O(o){let t,i=0!=Object.keys(o[0]).length,r=i&&P(o);return{c(){r&&r.c(),t=n(),this.c=a},m(o,i){r&&r.m(o,i),e(o,t,i)},p(o,[e]){1&e&&(i=0!=Object.keys(o[0]).length),i?r?r.p(o,e):(r=P(o),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null)},i:a,o:a,d(o){r&&r.d(o),o&&s(t)}}}function A(o,t,i){let e,r,n,a,s,c,p=v({});m(o,p,(o=>i(0,s=o)));let g=v({});m(o,g,(o=>i(13,a=o)));let u=v({});m(o,u,(o=>i(12,n=o)));let d=v({});m(o,d,(o=>i(11,r=o)));let h=v({});m(o,h,(o=>i(10,e=o))),x(g,"groups-component"),x(u,"communities-component"),x(d,"cooperatives-component"),x(h,"parties-component");let f=x(p,"join-us-component",c);function b(o,t){let i=o([22,0],2);j(i,a),w(i,n),k(i,r),y(i,e)}l((()=>{}));return[s,c,p,g,u,d,h,f,b,o=>b(o)]}class S 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>",t(this,{target:this.shadowRoot,props:i(this.attributes),customElement:!0},A,O,r,{},null),o&&o.target&&e(o.target,this,o.anchor)}}customElements.define("join-us-component",S);export{S as default};