site-libsoc/Server/public/js/components/navbar-not-logged.js

2 lines
5.8 KiB
JavaScript
Raw Normal View History

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