import{r as s,h as t,H as i}from"./p-ee1e0eb4.js";import{g as e}from"./p-871106e0.js";import{m as o}from"./p-2033cd86.js";import{u as n}from"./p-86ed13f0.js";import"./p-add30d46.js";import"./p-d68092b7.js";import"./p-48f72e63.js";const r=class{constructor(t){s(this,t),this.visible=!1,this.autoHide=!0,this.onClick=()=>o.toggle(this.menu)}connectedCallback(){this.visibilityChanged()}async visibilityChanged(){this.visible=await n(this.menu)}render(){const s=e(this),o=this.autoHide&&!this.visible;return t(i,{onClick:this.onClick,"aria-hidden":o?"true":null,class:{[s]:!0,"menu-toggle-hidden":o}},t("slot",null))}};r.style=":host(.menu-toggle-hidden){display:none}";export{r as ion_menu_toggle}