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