Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
dqunbp committed Feb 26, 2024
1 parent 05e1119 commit 5e2f3a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ var pe=(n,e,t)=>{if(!e.has(n))throw TypeError("Cannot "+t)};var G=(n,e,t)=>(pe(n
* @license
* Copyright 2018 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/const xe=st(class extends ot{constructor(n){var e;if(super(n),n.type!==nt.ATTRIBUTE||n.name!=="class"||((e=n.strings)==null?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(n){return" "+Object.keys(n).filter(e=>n[e]).join(" ")+" "}update(n,[e]){var i,r;if(this.it===void 0){this.it=new Set,n.strings!==void 0&&(this.st=new Set(n.strings.join(" ").split(/\s/).filter(s=>s!=="")));for(const s in e)e[s]&&!((i=this.st)!=null&&i.has(s))&&this.it.add(s);return this.render(e)}const t=n.element.classList;for(const s of this.it)s in e||(t.remove(s),this.it.delete(s));for(const s in e){const o=!!e[s];o===this.it.has(s)||(r=this.st)!=null&&r.has(s)||(o?(t.add(s),this.it.add(s)):(t.remove(s),this.it.delete(s)))}return T}});function at(n){for(var e=[],t=0;t<n.length;){var i=n[t];if(i==="*"||i==="+"||i==="?"){e.push({type:"MODIFIER",index:t,value:n[t++]});continue}if(i==="\\"){e.push({type:"ESCAPED_CHAR",index:t++,value:n[t++]});continue}if(i==="{"){e.push({type:"OPEN",index:t,value:n[t++]});continue}if(i==="}"){e.push({type:"CLOSE",index:t,value:n[t++]});continue}if(i===":"){for(var r="",s=t+1;s<n.length;){var o=n.charCodeAt(s);if(o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122||o===95){r+=n[s++];continue}break}if(!r)throw new TypeError("Missing parameter name at ".concat(t));e.push({type:"NAME",index:t,value:r}),t=s;continue}if(i==="("){var l=1,a="",s=t+1;if(n[s]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(s));for(;s<n.length;){if(n[s]==="\\"){a+=n[s++]+n[s++];continue}if(n[s]===")"){if(l--,l===0){s++;break}}else if(n[s]==="("&&(l++,n[s+1]!=="?"))throw new TypeError("Capturing groups are not allowed at ".concat(s));a+=n[s++]}if(l)throw new TypeError("Unbalanced pattern at ".concat(t));if(!a)throw new TypeError("Missing pattern at ".concat(t));e.push({type:"PATTERN",index:t,value:a}),t=s;continue}e.push({type:"CHAR",index:t,value:n[t++]})}return e.push({type:"END",index:t,value:""}),e}function lt(n,e){e===void 0&&(e={});for(var t=at(n),i=e.prefixes,r=i===void 0?"./":i,s="[^".concat(U(e.delimiter||"/#?"),"]+?"),o=[],l=0,a=0,h="",c=function(v){if(a<t.length&&t[a].type===v)return t[a++].value},d=function(v){var x=c(v);if(x!==void 0)return x;var E=t[a],re=E.type,ne=E.index;throw new TypeError("Unexpected ".concat(re," at ").concat(ne,", expected ").concat(v))},f=function(){for(var v="",x;x=c("CHAR")||c("ESCAPED_CHAR");)v+=x;return v};a<t.length;){var p=c("CHAR"),$=c("NAME"),M=c("PATTERN");if($||M){var b=p||"";r.indexOf(b)===-1&&(h+=b,b=""),h&&(o.push(h),h=""),o.push({name:$||l++,prefix:b,suffix:"",pattern:M||s,modifier:c("MODIFIER")||""});continue}var m=p||c("ESCAPED_CHAR");if(m){h+=m;continue}h&&(o.push(h),h="");var I=c("OPEN");if(I){var b=f(),D=c("NAME")||"",u=c("PATTERN")||"",w=f();d("CLOSE"),o.push({name:D||(u?l++:""),pattern:D&&!u?s:u,prefix:b,suffix:w,modifier:c("MODIFIER")||""});continue}d("END")}return o}function ct(n,e){var t=[],i=Ue(n,t,e);return ht(i,t,e)}function ht(n,e,t){t===void 0&&(t={});var i=t.decode,r=i===void 0?function(s){return s}:i;return function(s){var o=n.exec(s);if(!o)return!1;for(var l=o[0],a=o.index,h=Object.create(null),c=function(f){if(o[f]===void 0)return"continue";var p=e[f-1];p.modifier==="*"||p.modifier==="+"?h[p.name]=o[f].split(p.prefix+p.suffix).map(function($){return r($,p)}):h[p.name]=r(o[f],p)},d=1;d<o.length;d++)c(d);return{path:l,index:a,params:h}}}function U(n){return n.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function Oe(n){return n&&n.sensitive?"":"i"}function dt(n,e){if(!e)return n;for(var t=/\((?:\?<(.*?)>)?(?!\?)/g,i=0,r=t.exec(n.source);r;)e.push({name:r[1]||i++,prefix:"",suffix:"",modifier:"",pattern:""}),r=t.exec(n.source);return n}function ut(n,e,t){var i=n.map(function(r){return Ue(r,e,t).source});return new RegExp("(?:".concat(i.join("|"),")"),Oe(t))}function pt(n,e,t){return ft(lt(n,t),e,t)}function ft(n,e,t){t===void 0&&(t={});for(var i=t.strict,r=i===void 0?!1:i,s=t.start,o=s===void 0?!0:s,l=t.end,a=l===void 0?!0:l,h=t.encode,c=h===void 0?function(ne){return ne}:h,d=t.delimiter,f=d===void 0?"/#?":d,p=t.endsWith,$=p===void 0?"":p,M="[".concat(U($),"]|$"),b="[".concat(U(f),"]"),m=o?"^":"",I=0,D=n;I<D.length;I++){var u=D[I];if(typeof u=="string")m+=U(c(u));else{var w=U(c(u.prefix)),v=U(c(u.suffix));if(u.pattern)if(e&&e.push(u),w||v)if(u.modifier==="+"||u.modifier==="*"){var x=u.modifier==="*"?"?":"";m+="(?:".concat(w,"((?:").concat(u.pattern,")(?:").concat(v).concat(w,"(?:").concat(u.pattern,"))*)").concat(v,")").concat(x)}else m+="(?:".concat(w,"(").concat(u.pattern,")").concat(v,")").concat(u.modifier);else u.modifier==="+"||u.modifier==="*"?m+="((?:".concat(u.pattern,")").concat(u.modifier,")"):m+="(".concat(u.pattern,")").concat(u.modifier);else m+="(?:".concat(w).concat(v,")").concat(u.modifier)}}if(a)r||(m+="".concat(b,"?")),m+=t.endsWith?"(?=".concat(M,")"):"$";else{var E=n[n.length-1],re=typeof E=="string"?b.indexOf(E[E.length-1])>-1:E===void 0;r||(m+="(?:".concat(b,"(?=").concat(M,"))?")),re||(m+="(?=".concat(b,"|").concat(M,")"))}return new RegExp(m,Oe(t))}function Ue(n,e,t){return n instanceof RegExp?dt(n,e):Array.isArray(n)?ut(n,e,t):pt(n,e,t)}var gt=Object.defineProperty,mt=Object.getOwnPropertyDescriptor,J=(n,e,t,i)=>{for(var r=i>1?void 0:i?mt(e,t):e,s=n.length-1,o;s>=0;s--)(o=n[s])&&(r=(i?o(e,t,r):o(r))||r);return i&&r&&gt(e,t,r),r};async function vt(n){return fetch(n).then(e=>e.json())}var N,H,L,Se;let R=(Se=class extends W{constructor(){super(...arguments);Q(this,N,void 0);Q(this,H,void 0);Q(this,L,void 0);S(this,N,"https://konturio.github.io/qgis-uni-navigation/nav-config.json"),S(this,H,1024),S(this,L,""),this.config=null,this.logo=null}get src(){return G(this,N)}set src(e){S(this,N,e)}get breakpoint(){return G(this,H)}set breakpoint(e){S(this,H,e)}get locationPrefix(){return G(this,L)}set locationPrefix(e){S(this,L,e)}async connectedCallback(){super.connectedCallback();const e=await vt(this.src);this.config=e,this.getAttribute("data-screen")!=="mobile"&&(this.handleWindowResize(),window.addEventListener("resize",this.handleWindowResize.bind(this)))}disconnectedCallback(){window.removeEventListener("resize",this.handleWindowResize.bind(this)),super.disconnectedCallback()}handleWindowResize(){if(!this.breakpoint)return;window.innerWidth<this.breakpoint?this.setAttribute("data-screen","mobile"):(this.removeAttribute("data-screen"),this._handleCloseMobileMenu(),this._handleCloseMobileSubMenus())}drawLogo(){var r;const e=((r=this.config)==null?void 0:r.logo)??null,t=e?`https://konturio.github.io/qgis-uni-navigation/${e.icon}`:"",i=e?e.link+this.locationPrefix:"";return e?_`<a class="link logo" style="--logo-img:url('${t}')" href="${i}"><div></div></a>`:""}checkActive(e){return e?!!ct(e,{decode:decodeURIComponent})(window.location.pathname):!1}drawMenu(e=[],t=!0){return e?_`${e.map(i=>{switch(i.type){case"link":const r=i.settings.href.startsWith("https"),s=xe({link:!0,active:this.checkActive(i.settings.activeTest),external:r});if(r)return _`<a href="${i.settings.href}" class="${s}" target="_blank" noopener noreferrer>${i.settings.name}</a>`;const o=this.locationPrefix+i.settings.href;return _`<a href="${o}" class="${s}">${i.settings.name}</a>`;case"menu":const l=xe({menu:!0,"top-level":t});return _`<div class="${l}" @click="${this._handleClickMobileSubMenu}"><a class="link">${i.settings.name}</a><div class="dropdown">${this.drawMenu(i.settings.children,!1)}</div></div>`;case"button":const a=i.settings.href+this.locationPrefix;return _`<a href="${a}" class="link button">${i.settings.name}</a>`;default:return""}})}`:_``}_handleBurgerClick(e){var s;const t=e.currentTarget,i=t.getAttribute("aria-expanded")==="true";t.setAttribute("aria-expanded",(!i).toString()),t.classList.toggle("active");const r=(s=this.shadowRoot)==null?void 0:s.querySelector("#mobile-menu");r&&(r.classList.toggle("active"),i&&this._handleCloseMobileSubMenus())}_handleCloseMobileMenu(){var i,r;const e=(i=this.shadowRoot)==null?void 0:i.querySelector("#mobile-menu");if(!e)return;e.classList.remove("active");const t=(r=this.shadowRoot)==null?void 0:r.querySelector("#burger");t&&(t.classList.remove("active"),t.setAttribute("aria-expanded","false"))}_handleClickMobileSubMenu(e){e.stopPropagation();const t=e.currentTarget,i=t.getAttribute("aria-expanded")==="true";t.setAttribute("aria-expanded",(!i).toString());const r=t.querySelector(".dropdown");if(!r)return;const s=r.getAttribute("data-expanded")==="true";r.setAttribute("data-expanded",(!s).toString())}_handleCloseMobileSubMenus(){var i,r;const e=(i=this.shadowRoot)==null?void 0:i.querySelectorAll(".mobile .menu");e==null||e.forEach(s=>s.setAttribute("aria-expanded","false"));const t=(r=this.shadowRoot)==null?void 0:r.querySelectorAll(".mobile .dropdown");t==null||t.forEach(s=>s.setAttribute("data-expanded","false"))}drawBurger(){return _`<a id="burger" @click="${this._handleBurgerClick}" role="button" class="burger" aria-label="mobile burger menu" aria-expanded="false" data-target="mobile-menu"><span aria-hidden="true"></span> <span aria-hidden="true"></span> <span aria-hidden="true"></span></a>`}drawMobileMenu(){var t;const e=(t=this.config)==null?void 0:t.navigation;return _`<div id="mobile-menu" class="mobile">${this.drawMenu(e,!1)}</div>`}drawHeader(){var t;const e=(t=this.config)==null?void 0:t.navigation;return e?_`<nav class="navigation" role="navigation" aria-label="main navigation">${this.drawLogo()}<div class="desktop">${this.drawMenu(e)}</div>${this.drawBurger()}</nav>`:""}render(){return _`<header class="header">${this.drawHeader()} ${this.drawMobileMenu()}</header>`}},N=new WeakMap,H=new WeakMap,L=new WeakMap,Se);R.styles=Ne`
*/const xe=st(class extends ot{constructor(n){var e;if(super(n),n.type!==nt.ATTRIBUTE||n.name!=="class"||((e=n.strings)==null?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(n){return" "+Object.keys(n).filter(e=>n[e]).join(" ")+" "}update(n,[e]){var i,r;if(this.it===void 0){this.it=new Set,n.strings!==void 0&&(this.st=new Set(n.strings.join(" ").split(/\s/).filter(s=>s!=="")));for(const s in e)e[s]&&!((i=this.st)!=null&&i.has(s))&&this.it.add(s);return this.render(e)}const t=n.element.classList;for(const s of this.it)s in e||(t.remove(s),this.it.delete(s));for(const s in e){const o=!!e[s];o===this.it.has(s)||(r=this.st)!=null&&r.has(s)||(o?(t.add(s),this.it.add(s)):(t.remove(s),this.it.delete(s)))}return T}});function at(n){for(var e=[],t=0;t<n.length;){var i=n[t];if(i==="*"||i==="+"||i==="?"){e.push({type:"MODIFIER",index:t,value:n[t++]});continue}if(i==="\\"){e.push({type:"ESCAPED_CHAR",index:t++,value:n[t++]});continue}if(i==="{"){e.push({type:"OPEN",index:t,value:n[t++]});continue}if(i==="}"){e.push({type:"CLOSE",index:t,value:n[t++]});continue}if(i===":"){for(var r="",s=t+1;s<n.length;){var o=n.charCodeAt(s);if(o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122||o===95){r+=n[s++];continue}break}if(!r)throw new TypeError("Missing parameter name at ".concat(t));e.push({type:"NAME",index:t,value:r}),t=s;continue}if(i==="("){var l=1,a="",s=t+1;if(n[s]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(s));for(;s<n.length;){if(n[s]==="\\"){a+=n[s++]+n[s++];continue}if(n[s]===")"){if(l--,l===0){s++;break}}else if(n[s]==="("&&(l++,n[s+1]!=="?"))throw new TypeError("Capturing groups are not allowed at ".concat(s));a+=n[s++]}if(l)throw new TypeError("Unbalanced pattern at ".concat(t));if(!a)throw new TypeError("Missing pattern at ".concat(t));e.push({type:"PATTERN",index:t,value:a}),t=s;continue}e.push({type:"CHAR",index:t,value:n[t++]})}return e.push({type:"END",index:t,value:""}),e}function lt(n,e){e===void 0&&(e={});for(var t=at(n),i=e.prefixes,r=i===void 0?"./":i,s="[^".concat(U(e.delimiter||"/#?"),"]+?"),o=[],l=0,a=0,h="",c=function(v){if(a<t.length&&t[a].type===v)return t[a++].value},d=function(v){var x=c(v);if(x!==void 0)return x;var E=t[a],re=E.type,ne=E.index;throw new TypeError("Unexpected ".concat(re," at ").concat(ne,", expected ").concat(v))},f=function(){for(var v="",x;x=c("CHAR")||c("ESCAPED_CHAR");)v+=x;return v};a<t.length;){var p=c("CHAR"),$=c("NAME"),M=c("PATTERN");if($||M){var b=p||"";r.indexOf(b)===-1&&(h+=b,b=""),h&&(o.push(h),h=""),o.push({name:$||l++,prefix:b,suffix:"",pattern:M||s,modifier:c("MODIFIER")||""});continue}var m=p||c("ESCAPED_CHAR");if(m){h+=m;continue}h&&(o.push(h),h="");var I=c("OPEN");if(I){var b=f(),D=c("NAME")||"",u=c("PATTERN")||"",w=f();d("CLOSE"),o.push({name:D||(u?l++:""),pattern:D&&!u?s:u,prefix:b,suffix:w,modifier:c("MODIFIER")||""});continue}d("END")}return o}function ct(n,e){var t=[],i=Ue(n,t,e);return ht(i,t,e)}function ht(n,e,t){t===void 0&&(t={});var i=t.decode,r=i===void 0?function(s){return s}:i;return function(s){var o=n.exec(s);if(!o)return!1;for(var l=o[0],a=o.index,h=Object.create(null),c=function(f){if(o[f]===void 0)return"continue";var p=e[f-1];p.modifier==="*"||p.modifier==="+"?h[p.name]=o[f].split(p.prefix+p.suffix).map(function($){return r($,p)}):h[p.name]=r(o[f],p)},d=1;d<o.length;d++)c(d);return{path:l,index:a,params:h}}}function U(n){return n.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function Oe(n){return n&&n.sensitive?"":"i"}function dt(n,e){if(!e)return n;for(var t=/\((?:\?<(.*?)>)?(?!\?)/g,i=0,r=t.exec(n.source);r;)e.push({name:r[1]||i++,prefix:"",suffix:"",modifier:"",pattern:""}),r=t.exec(n.source);return n}function ut(n,e,t){var i=n.map(function(r){return Ue(r,e,t).source});return new RegExp("(?:".concat(i.join("|"),")"),Oe(t))}function pt(n,e,t){return ft(lt(n,t),e,t)}function ft(n,e,t){t===void 0&&(t={});for(var i=t.strict,r=i===void 0?!1:i,s=t.start,o=s===void 0?!0:s,l=t.end,a=l===void 0?!0:l,h=t.encode,c=h===void 0?function(ne){return ne}:h,d=t.delimiter,f=d===void 0?"/#?":d,p=t.endsWith,$=p===void 0?"":p,M="[".concat(U($),"]|$"),b="[".concat(U(f),"]"),m=o?"^":"",I=0,D=n;I<D.length;I++){var u=D[I];if(typeof u=="string")m+=U(c(u));else{var w=U(c(u.prefix)),v=U(c(u.suffix));if(u.pattern)if(e&&e.push(u),w||v)if(u.modifier==="+"||u.modifier==="*"){var x=u.modifier==="*"?"?":"";m+="(?:".concat(w,"((?:").concat(u.pattern,")(?:").concat(v).concat(w,"(?:").concat(u.pattern,"))*)").concat(v,")").concat(x)}else m+="(?:".concat(w,"(").concat(u.pattern,")").concat(v,")").concat(u.modifier);else u.modifier==="+"||u.modifier==="*"?m+="((?:".concat(u.pattern,")").concat(u.modifier,")"):m+="(".concat(u.pattern,")").concat(u.modifier);else m+="(?:".concat(w).concat(v,")").concat(u.modifier)}}if(a)r||(m+="".concat(b,"?")),m+=t.endsWith?"(?=".concat(M,")"):"$";else{var E=n[n.length-1],re=typeof E=="string"?b.indexOf(E[E.length-1])>-1:E===void 0;r||(m+="(?:".concat(b,"(?=").concat(M,"))?")),re||(m+="(?=".concat(b,"|").concat(M,")"))}return new RegExp(m,Oe(t))}function Ue(n,e,t){return n instanceof RegExp?dt(n,e):Array.isArray(n)?ut(n,e,t):pt(n,e,t)}var gt=Object.defineProperty,mt=Object.getOwnPropertyDescriptor,J=(n,e,t,i)=>{for(var r=i>1?void 0:i?mt(e,t):e,s=n.length-1,o;s>=0;s--)(o=n[s])&&(r=(i?o(e,t,r):o(r))||r);return i&&r&&gt(e,t,r),r};async function vt(n){return fetch(n).then(e=>e.json())}var N,H,L,Se;let R=(Se=class extends W{constructor(){super(...arguments);Q(this,N,void 0);Q(this,H,void 0);Q(this,L,void 0);S(this,N,"https://konturio.github.io/qgis-uni-navigation/nav-config.json"),S(this,H,1024),S(this,L,""),this.config=null,this.logo=null}get src(){return G(this,N)}set src(e){S(this,N,e)}get breakpoint(){return G(this,H)}set breakpoint(e){S(this,H,e)}get locationPrefix(){return G(this,L)}set locationPrefix(e){S(this,L,e)}async connectedCallback(){super.connectedCallback();const e=await vt(this.src);this.config=e,this.getAttribute("data-screen")!=="mobile"&&(this.handleWindowResize(),window.addEventListener("resize",this.handleWindowResize.bind(this)))}disconnectedCallback(){window.removeEventListener("resize",this.handleWindowResize.bind(this)),super.disconnectedCallback()}handleWindowResize(){if(!this.breakpoint)return;window.innerWidth<this.breakpoint?this.setAttribute("data-screen","mobile"):(this.removeAttribute("data-screen"),this._handleCloseMobileMenu(),this._handleCloseMobileSubMenus())}drawLogo(){var r;const e=((r=this.config)==null?void 0:r.logo)??null,t=e?`https://konturio.github.io/qgis-uni-navigation/${e.icon}`:"",i=e?this.locationPrefix+e.link:"";return e?_`<a class="link logo" style="--logo-img:url('${t}')" href="${i}"><div></div></a>`:""}checkActive(e){return e?!!ct(e,{decode:decodeURIComponent})(window.location.pathname):!1}drawMenu(e=[],t=!0){return e?_`${e.map(i=>{switch(i.type){case"link":const r=i.settings.href.startsWith("https"),s=xe({link:!0,active:this.checkActive(i.settings.activeTest),external:r});if(r)return _`<a href="${i.settings.href}" class="${s}" target="_blank" noopener noreferrer>${i.settings.name}</a>`;const o=this.locationPrefix+i.settings.href;return _`<a href="${o}" class="${s}">${i.settings.name}</a>`;case"menu":const l=xe({menu:!0,"top-level":t});return _`<div class="${l}" @click="${this._handleClickMobileSubMenu}"><a class="link">${i.settings.name}</a><div class="dropdown">${this.drawMenu(i.settings.children,!1)}</div></div>`;case"button":const a=this.locationPrefix+i.settings.href;return _`<a href="${a}" class="link button">${i.settings.name}</a>`;default:return""}})}`:_``}_handleBurgerClick(e){var s;const t=e.currentTarget,i=t.getAttribute("aria-expanded")==="true";t.setAttribute("aria-expanded",(!i).toString()),t.classList.toggle("active");const r=(s=this.shadowRoot)==null?void 0:s.querySelector("#mobile-menu");r&&(r.classList.toggle("active"),i&&this._handleCloseMobileSubMenus())}_handleCloseMobileMenu(){var i,r;const e=(i=this.shadowRoot)==null?void 0:i.querySelector("#mobile-menu");if(!e)return;e.classList.remove("active");const t=(r=this.shadowRoot)==null?void 0:r.querySelector("#burger");t&&(t.classList.remove("active"),t.setAttribute("aria-expanded","false"))}_handleClickMobileSubMenu(e){e.stopPropagation();const t=e.currentTarget,i=t.getAttribute("aria-expanded")==="true";t.setAttribute("aria-expanded",(!i).toString());const r=t.querySelector(".dropdown");if(!r)return;const s=r.getAttribute("data-expanded")==="true";r.setAttribute("data-expanded",(!s).toString())}_handleCloseMobileSubMenus(){var i,r;const e=(i=this.shadowRoot)==null?void 0:i.querySelectorAll(".mobile .menu");e==null||e.forEach(s=>s.setAttribute("aria-expanded","false"));const t=(r=this.shadowRoot)==null?void 0:r.querySelectorAll(".mobile .dropdown");t==null||t.forEach(s=>s.setAttribute("data-expanded","false"))}drawBurger(){return _`<a id="burger" @click="${this._handleBurgerClick}" role="button" class="burger" aria-label="mobile burger menu" aria-expanded="false" data-target="mobile-menu"><span aria-hidden="true"></span> <span aria-hidden="true"></span> <span aria-hidden="true"></span></a>`}drawMobileMenu(){var t;const e=(t=this.config)==null?void 0:t.navigation;return _`<div id="mobile-menu" class="mobile">${this.drawMenu(e,!1)}</div>`}drawHeader(){var t;const e=(t=this.config)==null?void 0:t.navigation;return e?_`<nav class="navigation" role="navigation" aria-label="main navigation">${this.drawLogo()}<div class="desktop">${this.drawMenu(e)}</div>${this.drawBurger()}</nav>`:""}render(){return _`<header class="header">${this.drawHeader()} ${this.drawMobileMenu()}</header>`}},N=new WeakMap,H=new WeakMap,L=new WeakMap,Se);R.styles=Ne`
:host {
display: flex;
flex-flow: column nowrap;
Expand Down

0 comments on commit 5e2f3a9

Please sign in to comment.