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

2 lines
8.5 KiB
JavaScript
Raw Normal View History

2023-07-29 01:20:07 +07:00
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<ve.length;t+=1)we[t]=T(z(e,ve,t));return{c(){t=c("header"),n=c("input"),i=m(),a=c("label"),a.innerHTML='<span id="hamb-line"></span>',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='<picture><source srcset="/img/common/globe.webp"/> \n <source srcset="/img/common/globe.png"/> \n <img id="locales-img" alt="globe"/></picture>',ae=m(),re=c("div");for(let e=0;e<we.length;e+=1)we[e].c();h(n,"type","checkbox"),h(n,"id","side-menu"),h(a,"id","hamb"),h(a,"for","side-menu"),u(d.src,y="/img/common/flag.png")||h(d,"src","/img/common/flag.png"),h(d,"id","navbar-logo"),h(d,"alt","logo"),h(x,"id","navbar-logo-text"),h(l,"id","logo-container"),h(l,"href","/"+e[8]+"/"),h(O,"href","/"+e[8]+"/join-us"),h(R,"href","/"+e[8]+"/manifesto"),h(X,"class","options-button"),h(D,"href","/"+e[8]+"/groups"),h(J,"href","/"+e[8]+"/communes"),h(Q,"href","/"+e[8]+"/cooperatives"),h(Z,"href","/"+e[8]+"/parties"),h(ee,"href","/"+e[8]+"/partners"),h(C,"class","options-dropdown"),h(I,"id","options-container"),h(oe,"id","locales"),h(re,"class","options-dropdown"),h(W,"id","menu"),h(L,"id","nav"),h(t,"id","navbar")},m(s,c){o(s,t,c),g(t,n),e[12](n),g(t,i),g(t,a),g(t,r),g(t,l),g(l,d),g(l,k),g(l,x),x.innerHTML=de,e[13](x),g(t,H),g(t,L),g(L,W),g(W,M),g(M,O),g(O,E),g(W,N),g(W,S),g(S,R),g(R,U),g(W,q),g(W,I),g(I,X),g(X,A),g(I,B),g(I,C),g(C,D),g(D,F),g(C,G),g(C,J),g(J,K),g(C,P),g(C,Q),g(Q,V),g(C,Y),g(C,Z),g(Z,$),g(C,_),g(C,ee),g(ee,te),e[16](C),g(W,ne),g(W,oe),g(oe,ie),g(W,ae),g(W,re);for(let e=0;e<we.length;e+=1)we[e].m(re,null);e[20](re),e[21](t),se||(le=[f(n,"click",e[9]),f(X,"click",e[14]),f(X,"focusout",e[15]),f(ie,"click",e[17]),f(ie,"focusout",e[18])],se=!0)},p(e,t){if(32&t&&de!==(de=e[5].orgName+"")&&(x.innerHTML=de),32&t&&ce!==(ce=e[5].joinUs+"")&&b(E,ce),32&t&&me!==(me=e[5].manifesto+"")&&b(U,me),32&t&&pe!==(pe=e[5].initiatives+"")&&b(A,pe),32&t&&he!==(he=e[5].groups+"")&&b(F,he),32&t&&ue!==(ue=e[5].communes+"")&&b(K,ue),32&t&&ge!==(ge=e[5].cooperatives+"")&&b(V,ge),32&t&&fe!==(fe=e[5].parties+"")&&b($,fe),32&t&&be!==(be=e[5].partners+"")&&b(te,be),2048&t){let n;for(ve=Object.entries(j),n=0;n<ve.length;n+=1){const o=z(e,ve,n);we[n]?we[n].p(o,t):(we[n]=T(o),we[n].c(),we[n].m(re,null))}for(;n<we.length;n+=1)we[n].d(1);we.length=ve.length}},d(n){n&&s(t),e[12](null),e[13](null),e[16](null),v(we,n),e[20](null),e[21](null),se=!1,w(le)}}}function T(e){let t,n,i,a,r=e[24]+"";function l(){return e[19](e[23])}return{c(){t=c("button"),n=p(r)},m(e,r){o(e,t,r),g(t,n),i||(a=f(t,"click",l),i=!0)},p(t,n){e=t},d(e){e&&s(t),i=!1,a()}}}function L(e){let t,n=0!=Object.keys(e[5]).length,i=n&&H(e);return{c(){i&&i.c(),t=a(),this.c=r},m(e,n){i&&i.m(e,n),o(e,t,n)},p(e,[o]){32&o&&(n=0!=Object.keys(e[5]).length),n?i?i.p(e,o):(i=H(e),i.c(),i.m(t.parentNode,t)):i&&(i.d(1),i=null)},i:r,o:r,d(e){i&&i.d(e),e&&s(t)}}}function W(e){setTimeout((()=>{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