1var g=e=>{throw TypeError(e)};var d=(e,t,i)=>t.has(e)||g("Cannot "+i);var s=(e,t,i)=>(d(e,t,"read from private field"),i?i.call(e):t.get(e)),r=(e,t,i)=>t.has(e)?g("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,i),h=(e,t,i,a)=>(d(e,t,"write to private field"),a?a.call(e,i):t.set(e,i),i),l=(e,t,i)=>(d(e,t,"access private method"),i);var u,n,o,c,p,m,k;class f{constructor(){r(this,c);r(this,u);r(this,n);r(this,o);h(this,u,document.querySelector("html")),h(this,n,document.querySelector(".quickmenu-dropdown")),h(this,o,document.querySelector(".quickmenu-trigger")),!(!s(this,n)||!s(this,o))&&(s(this,o)._on={onClick:()=>{this.toggleIsOpen()}},document.addEventListener("click",t=>{l(this,c,p).call(this,t)}),document.addEventListener("keydown",t=>{(t.key==="Escape"||t.keyCode===27)&&this.closeMenu()}))}toggleIsOpen(){s(this,n).classList.toggle("is-open"),s(this,u).classList.toggle("quickmenu-open"),s(this,n).classList.contains("is-open")?l(this,c,k).call(this):l(this,c,m).call(this)}closeMenu(){s(this,n).classList.remove("is-open"),s(this,u).classList.remove("quickmenu-open"),l(this,c,m).call(this)}}u=new WeakMap,n=new WeakMap,o=new WeakMap,c=new WeakSet,p=function(t){!s(this,n).contains(t.target)&&!s(this,o).contains(t.target)&&this.closeMenu()},m=function(){s(this,o).setAttribute("_icons",'{"right":"customiconfont icon-dropdown-down quickmenu-icon"}')},k=function(){s(this,o).setAttribute("_icons",'{"right":"customiconfont icon-dropdown-up quickmenu-icon"}')};export{f as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.