import{r as s,h as t,H as i}from"./p-3d23a42a.js";import{g as o}from"./p-fa952096.js";import"./p-f8063d7b.js";import"./p-4b7db0e6.js";import"./p-f2660943.js";import{m as a}from"./p-9c3e864e.js";import{u as e}from"./p-fbbfa021.js";const n=class{constructor(t){s(this,t),this.visible=!1,this.autoHide=!0,this.onClick=()=>a.toggle(this.menu)}connectedCallback(){this.visibilityChanged()}async visibilityChanged(){this.visible=await e(this.menu)}render(){const s=o(this),a=this.autoHide&&!this.visible;return t(i,{onClick:this.onClick,"aria-hidden":a?"true":null,class:{[s]:!0,"menu-toggle-hidden":a}},t("slot",null))}};n.style=":host(.menu-toggle-hidden){display:none}";export{n as ion_menu_toggle}