2023-07-13 01:25:28 +07:00
|
|
|
import{S as e,i as o,a as t,b as n,s as i,e as a,n as r,d as s,c as l,o as c,f as d,g as m,t as p,h,j as g,l as u,q as f,m as b,p as v,r as k,w}from"./index-4348483d.js";import{w as y}from"./index-71440b21.js";import{loadLocaleContent as x,locales as j}from"../../../../../../../../../js/libraries/serverTools.js";function z(e,o,t){const n=e.slice();return n[14]=o[t][0],n[15]=o[t][1],n}function O(e){let o,t,i,a,r,l,c,w,y,x,O,H,L,M,N,S,E,R,U,q,I,X,A,B,C,D,F,G,J,K,P,Q,V,W,Y,Z,$,_,ee,oe,te,ne,ie,ae,re,se,le,ce,de=e[3].orgName+"",me=e[3].manifesto+"",pe=e[3].joinUs+"",he=e[3].groups+"",ge=e[3].communes+"",ue=e[3].cooperatives+"",fe=e[3].parties+"",be=e[3].partners+"",ve=Object.entries(j),ke=[];for(let o=0;o<ve.length;o+=1)ke[o]=T(z(e,ve,o));return{c(){o=d("header"),t=d("input"),i=m(),a=d("label"),a.innerHTML='<span id="hamb-line"></span>',r=m(),l=d("a"),c=d("img"),y=m(),x=d("span"),O=p(de),H=m(),L=d("nav"),M=d("ul"),N=d("li"),S=d("a"),E=p(me),R=m(),U=d("li"),q=d("a"),I=p(pe),X=m(),A=d("li"),B=d("a"),C=p(he),D=m(),F=d("li"),G=d("a"),J=p(ge),K=m(),P=d("li"),Q=d("a"),V=p(ue),W=m(),Y=d("li"),Z=d("a"),$=p(fe),_=m(),ee=d("li"),oe=d("a"),te=p(be),ne=m(),ie=d("li"),ae=d("button"),ae.innerHTML='<picture><source srcset="/img/common/globe.webp"/> \n <source srcset="/img/common/globe.png"/> \n <img id="locales-img" alt="globe"/></picture>',re=m(),se=d("div");for(let e=0;e<ke.length;e+=1)ke[e].c();h(t,"type","checkbox"),h(t,"id","side-menu"),h(a,"id","hamb"),h(a,"for","side-menu"),g(c.src,w="/img/common/flag.png")||h(c,"src","/img/common/flag.png"),h(c,"id","navbar-logo"),h(c,"alt","logo"),h(x,"id","navbar-logo-text"),h(l,"id","logo-container"),h(l,"href","/"+e[6]+"/"),h(S,"href","/"+e[6]+"/manifesto"),h(q,"href","/"+e[6]+"/join-us"),h(B,"href","/"+e[6]+"/groups"),h(G,"href","/"+e[6]+"/communes"),h(Q,"href","/"+e[6]+"/cooperatives"),h(Z,"href","/"+e[6]+"/parties"),h(oe,"href","/"+e[6]+"/partners"),h(ie,"id","locales"),h(se,"id","locales-dropdown"),h(M,"id","menu"),h(L,"id","nav"),h(o,"id","navbar")},m(s,d){n(s,o,d),u(o,t),e[10](t),u(o,i),u(o,a),u(o,r),u(o,l),u(l,c),u(l,y),u(l,x),u(x,O),u(o,H),u(o,L),u(L,M),u(M,N),u(N,S),u(S,E),u(M,R),u(M,U),u(U,q),u(q,I),u(M,X),u(M,A),u(A,B),u(B,C),u(M,D),u(M,F),u(F,G),u(G,J),u(M,K),u(M,P),u(P,Q),u(Q,V),u(M,W),u(M,Y),u(Y,Z),u(Z,$),u(M,_),u(M,ee),u(ee,oe),u(oe,te),u(M,ne),u(M,ie),u(ie,ae),u(M,re),u(M,se);for(let e=0;e<ke.length;e+=1)ke[e].m(se,null);e[12](se),e[13](o),le||(ce=[f(t,"click",e[7]),f(ae,"click",e[8])],le=!0)},p(e,o){if(8&o&&de!==(de=e[3].orgName+"")&&b(O,de),8&o&&me!==(me=e[3].manifesto+"")&&b(E,me),8&o&&pe!==(pe=e[3].joinUs+"")&&b(I,pe),8&o&&he!==(he=e[3].groups+"")&&b(C,he),8&o&&ge!==(ge=e[3].communes+"")&&b(J,ge),8&o&&ue!==(ue=e[3].cooperatives+"")&&b(V,ue),8&o&&fe!==(fe=e[3].parties+"")&&b($,fe),8&o&&be!==(be=e[3].partners+"")&&b(te,be),512&o){let t;for(ve=Object.entries(j),t=0;t<ve.length;t+=1){const n=z(e,ve,t);ke[t]?ke[t].p(n,o):(ke[t]=T(n),ke[t].c(),ke[t].m(se,null))}for(;t<ke.length;t+=1)ke[t].d(1);ke.length=ve.length}},d(t){t&&s(o),e[10](null),v(ke,t),e[12](null),e[13](null),le=!1,k(ce)}}}function T(e){let o,t,i,a,r=e[15]+"";function l(){return e[11](e[14])}return{c(){o=d("button"),t=p(r)},m(e,r){n(e,o,r),u(o,t),i||(a=f(o,"click",l),i=!0)},p(o,t){e=o},d(e){e&&s(o),i=!1,a()}}}function H(e){let o,t=0!=Object.keys(e[3]).length,i=t&&O(e);return{c(){i&&i.c(),o=a(),this.c=r},m(e,t){i&&i.m(e,t),n(e,o,t)},p(e,[n]){8&n&&(t=0!=Object.keys(e[3]).length),t?i?i.p(e,n):(i=O(e),i.c(),i.m(o.parentNode,o)):i&&(i.d(1),i=null)},i:r,o:r,d(e){i&&i.d(e),e&&s(o)}}}function L(e,o,t){let n,i,a,r,s,d=y({});l(e,d,(e=>t(3,n=e)));let m=x(d,"navbar-component",s);function p(e){localStorage.setItem("locale",e);let o=location.href.split("/"),t=Object.keys(j);o=o.filter((e=>!t.includes(e)));let n=o.slice(0,o.length-1).join("/")+"/"+e+"/"+o[o.length-1];location.href=n}c((()=>{}));return[i,a,r,n,s,d,m,function(){i.checked?t(1,a.style.background="white",a):setTimeout((()=>{t(1,a.style.position="relative",a),t(1,a.style.background="",a),t(1,a.style.boxShadow="
|