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

2 lines
6.9 KiB
JavaScript
Raw Normal View History

2023-07-22 17:27:43 +07:00
import{S as t,i as o,a as i,b as e,s as r,e as n,n as s,d as m,c as a,o as c,w as p,f as g,g as d,t as l,h as u,j as h,v as f,k as v,l as w,m as x}from"./index-4348483d.js";import{w as b}from"./index-71440b21.js";import{addMarkersGroups as j,groupsMarkersLayer as T}from"../../../../../../../../../js/groups.js";import{addMarkersCoops as k,coopsMarkersLayer as y}from"../../../../../../../../../js/coops.js";import{addMarkersCommunes as U,communesMarkersLayer as z}from"../../../../../../../../../js/communes.js";import{addMarkersParties as N,partiesMarkersLayer as C}from"../../../../../../../../../js/parties.js";import{getData as A,loadLocaleContent as E}from"../../../../../../../../../js/libraries/serverTools.js";import"../../../../../../../../../js/components/map-component.js";function F(t){let o,i,r,n,s,a,c,p,b,j,T,k,y,U,z,N,C,L,A,E,F,H,K,M,Q,R,S,W,B,D,J,O,_,q,G,I,P,V,X,Y,Z,$,tt,ot,it,et,rt,nt,st,mt,at,ct,pt,gt,dt,lt,ut,ht,ft,vt,wt,xt,bt,jt,Tt,kt,yt,Ut=t[3].top+"",zt=t[3].groupsTitle+"",Nt=t[3].groupsText+"",Ct=t[3].communesTitle+"",Lt=t[3].communesText+"",At=t[3].cooperativesTitle+"",Et=t[3].cooperativesText+"",Ft=t[3].partiesTitle+"",Ht=t[3].partiesText+"",Kt=t[3].findUs+"",Mt=t[3].whatNow+"",Qt=t[3].joinUs+"",Rt=t[3].talkWithUs+"";return{c(){o=g("div"),i=g("picture"),i.innerHTML='<source srcset="/img/crowd.webp"/> \n <source srcset="/img/crowd.png"/> \n <img id="crowd" alt="crowd"/>',r=d(),n=g("div"),s=g("p"),a=l(Ut),c=d(),p=g("div"),b=g("div"),j=g("a"),T=g("h2"),k=l(zt),y=d(),U=g("img"),N=d(),C=g("p"),L=l(Nt),A=d(),E=g("div"),F=g("a"),H=g("h2"),K=l(Ct),M=d(),Q=g("img"),S=d(),W=g("p"),B=l(Lt),D=d(),J=g("div"),O=g("a"),_=g("h2"),q=l(At),G=d(),I=g("img"),V=d(),X=g("p"),Y=l(Et),Z=d(),$=g("div"),tt=g("a"),ot=g("h2"),it=l(Ft),et=d(),rt=g("img"),st=d(),mt=g("p"),at=l(Ht),ct=d(),pt=g("h1"),gt=l(Kt),dt=d(),lt=g("map-component"),ht=d(),ft=g("h1"),vt=l(Mt),wt=d(),xt=g("div"),bt=g("a"),jt=l(Qt),Tt=d(),kt=g("a"),yt=l(Rt),u(j,"href","/"+t[6]+"/groups"),u(U,"id","groups-img"),h(U.src,z="/img/common/groups.svg")||u(U,"src","/img/common/groups.svg"),u(U,"alt","groups"),u(F,"href","/"+t[6]+"/communes"),u(Q,"id","communes-img"),h(Q.src,R="/img/common/commune.svg")||u(Q,"src","/img/common/commune.svg"),u(Q,"alt","communes"),u(O,"href","/"+t[6]+"/coops"),u(I,"id","coops-img"),h(I.src,P="/img/common/coops.svg")||u(I,"src","/img/common/coops.svg"),u(I,"alt","coops"),u(tt,"href","/"+t[6]+"/parties"),u(rt,"id","parties-img"),h(rt.src,nt="/img/common/parties.svg")||u(rt,"src","/img/common/parties.svg"),u(rt,"alt","coops"),u(p,"id","container-grid"),f(p,"--grid-width",t[1]),u(pt,"id","find-us"),v(lt,"id","map"),v(lt,"callback",ut=t[9]),v(lt,"colors",["#23AC20","#CA2437","#217BC9","#FFD326"]),u(bt,"class","link-button"),u(bt,"href","/"+t[6]+"/join-us"),u(kt,"class","link-button"),u(kt,"href","https://discord.gg/Qk8KUk787z"),u(kt,"target","_blank"),u(kt,"rel","noreferrer"),u(xt,"id","action-container"),u(n,"id","text-container"),u(o,"id","container")},m(m,g){e(m,o,g),w(o,i),w(o,r),w(o,n),w(n,s),w(s,a),w(n,c),w(n,p),w(p,b),w(b,j),w(j,T),w(T,k),w(b,y),w(b,U),w(b,N),w(b,C),w(C,L),w(p,A),w(p,E),w(E,F),w(F,H),w(H,K),w(E,M),w(E,Q),w(E,S),w(E,W),w(W,B),w(p,D),w(p,J),w(J,O),w(O,_),w(_,q),w(J,G),w(J,I),w(J,V),w(J,X),w(X,Y),w(p,Z),w(p,$),w($,tt),w(tt,ot),w(ot,it),w($,et),w($,rt),w($,st),w($,mt),w(mt,at),t[8](p),w(n,ct),w(n,pt),w(pt,gt),w(n,dt),w(n,lt),w(n,ht),w(n,ft),w(ft,vt),w(n,wt),w(n,xt),w(xt,bt),w(bt,jt),w(xt,Tt),w(xt,kt),w(kt,yt)},p(t,o){8&o&&Ut!==(Ut=t[3].top+"")&&x(a,Ut),8&o&&zt!==(zt=t[3].groupsTitle+"")&&x(k,zt),8&o&&Nt!==(Nt=t[3].groupsText+"")&&x(L,Nt),8&o&&Ct!==(Ct=t[3].communesTitle+"")&&x(K,Ct),8&o&&Lt!==(Lt=t[3].communesText+"")&&x(B,Lt),8&o&&At!==(At=t[3].cooperativesTitle+"")&&x(q,At),8&o&&Et!==(Et=t[3].cooperativesText+"")&&x(Y,Et),8&o&&Ft!==(Ft=t[3].partiesTitle+"")&&x(it,Ft),8&o&&Ht!==(Ht=t[3].partiesText+"")&&x(at,Ht),2&o&&f(p,"--grid-width",t[1]),8&o&&Kt!==(Kt=t[3].findUs+"")&&x(gt,Kt),8&o&&ut!==(ut=t[9])&&v(lt,"callback",ut),8&o&&Mt!==(Mt=t[3].whatNow+"")&&x(vt,Mt),8&o&&Qt!==(Qt=t[3].joinUs+"")&&x(jt,Qt