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