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

2 lines
6.0 KiB
JavaScript
Raw Normal View History

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