import{r as t,d as s,h as i,H as a}from"./p-8e32a29b.js";import"./p-251a23b9.js";import"./p-4a45b1e6.js";import{m as e}from"./p-07ae5bf2.js";import{u as o}from"./p-2c9d991a.js";const n=class{constructor(s){t(this,s),this.visible=!1,this.autoHide=!0,this.onClick=()=>e.toggle(this.menu)}connectedCallback(){this.visibilityChanged()}async visibilityChanged(){this.visible=await o(this.menu)}render(){const t=s(this),e=this.autoHide&&!this.visible;return i(a,{onClick:this.onClick,"aria-hidden":e?"true":null,class:{[t]:!0,"menu-toggle-hidden":e}},i("slot",null))}static get style(){return":host(.menu-toggle-hidden){display:none}"}};export{n as ion_menu_toggle};