import{r as s,h as t,H as i}from"./p-38dcedc4.js";import{g as o}from"./p-202e7480.js";import{m as e}from"./p-8e0e93d3.js";import{u as n}from"./p-3966d1dc.js";import"./p-f2660943.js";import"./p-5a5a5c96.js";import"./p-2a139c51.js";const r=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 n(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))}};r.style=":host(.menu-toggle-hidden){display:none}";export{r as ion_menu_toggle}