import{r as t,d as s,h as i,H as a}from"./p-2a37a33f.js";import"./p-251a23b9.js";import"./p-148ba63e.js";import{m as e}from"./p-38c4367e.js";import{u as o}from"./p-66a317ad.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};