import{r as s,h as t,H as i}from"./p-d00c3523.js";import{g as o}from"./p-8ad0c9b2.js";import{m as a}from"./p-c014987f.js";import{u as r}from"./p-3003acfb.js";import"./p-6fd4985d.js";import"./p-6da8225a.js";import"./p-964e0f9d.js";let e=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 r(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))}};e.style=":host(.menu-toggle-hidden){display:none}";export{e as ion_menu_toggle}