import{r as s,h as t,H as i}from"./p-9babd345.js";import{g as o}from"./p-fef04ab5.js";import{m as e}from"./p-e225581a.js";import{u as a}from"./p-713590fc.js";import"./p-6fd4985d.js";import"./p-55ae49e1.js";import"./p-389500fd.js";const n=class{constructor(t){s(this,t),this.visible=!1,this.autoHide=!0,this.onClick=()=>e.toggle(this.menu)}connectedCallback(){this.visibilityChanged()}async visibilityChanged(){this.visible=await a(this.menu)}render(){const s=o(this),e=this.autoHide&&!this.visible;return t(i,{onClick:this.onClick,"aria-hidden":e?"true":null,class:{[s]:!0,"menu-toggle-hidden":e}},t("slot",null))}};n.style=":host(.menu-toggle-hidden){display:none}";export{n as ion_menu_toggle}