!async function(){const{addDrawer:e}=await window.shimport("orbit-drawer"),t=document.getElementById("orbit-more-button"),r=document.getElementById("orbit-more-drawer"),o=e(t,r,(async(e,t)=>{if(e&&!t){const e=Array.from(document.querySelectorAll("#orbit-more-drawer ul")).filter((e=>"none"!==window.getComputedStyle(e).getPropertyValue("display")))[0],t=Array.from(e.getElementsByTagName("li")).filter((e=>"none"!==window.getComputedStyle(e).getPropertyValue("display")));t.length>0&&t[0].querySelector("a").focus()}})),n=document.getElementsByClassName("orbit-more-drawer-close")[0];n.addEventListener("click",(e=>{o.close(e),e.preventDefault()})),r.addEventListener("focusout",(e=>{r===e.target||r.contains(e.relatedTarget)||o.close(e)})),n.addEventListener("keydown",(e=>{" "===e.key&&(o.close(e),e.preventDefault())}))}();
//# sourceMappingURL=more-drawer.mjs.map