import{S as e,i as t,a as o,b as n,s as i,e as a,n as r,d as l,c as s,o as c,t as d,g as m,f as h,h as p,j as g,l as u,q as f,m as b,p as v,r as w,w as y}from"./index-4348483d.js";import{w as k}from"./index-71440b21.js";import{loadLocaleContent as x,locales as j}from"../../../../../../../../../js/libraries/serverTools.js";function H(e,t,o){const n=e.slice();return n[17]=t[o][0],n[18]=t[o][1],n}function z(e){let t,o,i,a,r,s,c,y,k,x,z,L,M,O,E,N,S,R,U,W,q,I,X,A,B,C,D,F,G,J,K,P,Q,V,Y,Z,$,_,ee,te,oe,ne,ie,ae,re,le,se,ce,de,me=e[11]()+"",he=e[4].orgName+"",pe=e[4].manifesto+"",ge=e[4].joinUs+"",ue=e[4].groups+"",fe=e[4].communes+"",be=e[4].cooperatives+"",ve=e[4].parties+"",we=e[4].partners+"",ye=Object.entries(j),ke=[];for(let t=0;t',c=m(),y=h("a"),k=h("img"),z=m(),L=h("span"),M=m(),O=h("nav"),E=h("ul"),N=h("li"),S=h("a"),R=d(pe),U=m(),W=h("li"),q=h("a"),I=d(ge),X=m(),A=h("li"),B=h("a"),C=d(ue),D=m(),F=h("li"),G=h("a"),J=d(fe),K=m(),P=h("li"),Q=h("a"),V=d(be),Y=m(),Z=h("li"),$=h("a"),_=d(ve),ee=m(),te=h("li"),oe=h("a"),ne=d(we),ie=m(),ae=h("li"),re=h("button"),re.innerHTML=' \n \n globe',le=m(),se=h("div");for(let e=0;eo(4,n=e)));let h=x(m,"navbar-component",d);function p(e){localStorage.setItem("locale",e);let t=location.href.split("/"),o=Object.keys(j);t=t.filter((e=>!o.includes(e)));let n=t.slice(0,t.length-1).join("/")+"/"+e+"/"+t[t.length-1];location.href=n}c((()=>{}));return[i,a,r,l,n,d,m,h,function(){i.checked?o(1,a.style.background="white",a):setTimeout((()=>{o(1,a.style.position="relative",a),o(1,a.style.background="",a),o(1,a.style.boxShadow="",a)}),510)},function(){"block"==r.style.display?o(2,r.style.display="none",r):o(2,r.style.display="block",r)},p,function(){if("ru"==h){let e=()=>{null==l?setTimeout(e,100):window.innerWidth<400&&"100%"!=l.style.lineHeight?(o(3,l.style.lineHeight="120%",l),o(3,l.style.top="1rem",l),o(3,l.style.width="16rem",l)):window.innerWidth>400&&"400%"!=l.style.lineHeight&&(o(3,l.style.lineHeight="400%",l),o(3,l.style.top="0rem",l),o(3,l.style.width="auto",l))};e(),addEventListener("resize",e)}},function(e){y[e?"unshift":"push"]((()=>{i=e,o(0,i)}))},function(e){y[e?"unshift":"push"]((()=>{l=e,o(3,l)}))},e=>p(e),function(e){y[e?"unshift":"push"]((()=>{r=e,o(2,r)}))},function(e){y[e?"unshift":"push"]((()=>{a=e,o(1,a)}))}]}class O extends e{constructor(e){super(),this.shadowRoot.innerHTML="",t(this,{target:this.shadowRoot,props:o(this.attributes),customElement:!0},M,L,i,{},null),e&&e.target&&n(e.target,this,e.anchor)}}customElements.define("navbar-component",O);export{O as default};