import{r as s,h as t,H as i}from"./p-cbb4366f.js";import{g as o}from"./p-88ef570a.js";import"./p-71c4eb61.js";import"./p-f3a0c163.js";import"./p-a494fa22.js";import{m as a}from"./p-1d2d6712.js";import{u as n}from"./p-8f67d041.js";const r=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 n(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))}};r.style=":host(.menu-toggle-hidden){display:none}";export{r as ion_menu_toggle}