2023-06-24 20:46:45 +07:00
|
|
|
import{S as s,i,a as n,b as a,s as e,e as t,c as o,n as r,f as l,g as u,m as c,h as m,o as h,q as d}from"./index-04d7984b.js";function p(s){let i,n,e,h,d,p,f,b,g,v;return{c(){i=t("header"),n=t("a"),n.innerHTML='<img src="img/common/flag.png" id="navbar-logo" alt="logo"/> \n <span id="navbar-logo-text">Libertarian socialists</span>',e=o(),h=t("input"),d=o(),p=t("label"),p.innerHTML='<span id="hamb-line"></span>',f=o(),b=t("nav"),b.innerHTML='<ul id="menu"><li><a href="/manifesto">Manifesto</a></li> \n <li><a href="/join-us">Join us</a></li> \n <li><a href="/groups">Groups</a></li> \n <li><a href="/communities">Communities</a></li> \n <li><a href="/cooperatives">Cooperatives</a></li></ul>',this.c=r,l(n,"id","logo-container"),l(n,"href","/"),l(h,"type","checkbox"),l(h,"id","side-menu"),l(p,"id","hamb"),l(p,"for","side-menu"),l(b,"id","nav"),l(i,"id","navbar")},m(t,o){a(t,i,o),u(i,n),u(i,e),u(i,h),s[3](h),u(i,d),u(i,p),u(i,f),u(i,b),s[4](i),g||(v=c(h,"click",s[2]),g=!0)},p:r,i:r,o:r,d(n){n&&m(i),s[3](null),s[4](null),g=!1,v()}}}function f(s,i,n){let a,e;return h((()=>{})),[a,e,function(){a.checked?n(1,e.style.background="white",e):setTimeout((()=>{n(1,e.style.position="relative",e),n(1,e.style.background="",e),n(1,e.style.boxShadow="",e)}),510)},function(s){d[s?"unshift":"push"]((()=>{a=s,n(0,a)}))},function(s){d[s?"unshift":"push"]((()=>{e=s,n(1,e)}))}]}class b extends s{constructor(s){super(),this.shadowRoot.innerHTML="<style>@import '/css/common.css';@import '/css/navbar.css';</style>",i(this,{target:this.shadowRoot,props:n(this.attributes),customElement:!0},f,p,e,{},null),s&&s.target&&a(s.target,this,s.anchor)}}customElements.define("navbar-component",b);export{b as default};
|