text: /*!
   * (C) BKKR Framework https://bkkr-team.github.io/bkkr-docs/ - MIT License
   */
  import{r as t,h as i,H as s}from"./p-08349d90.js";import{m as a}from"./p-a534f355.js";import"./p-7b48497a.js";import"./p-177c1201.js";let n=class{constructor(i){t(this,i),this.visible=!1,this.autoHide=!0,this.onClick=()=>a.toggle(this.menu)}connectedCallback(){this.visibilityChanged()}async visibilityChanged(){this.visible=await(async t=>{const i=await a.get(t);return!(!i||!await i.isActive())})(this.menu)}render(){const t=this.autoHide&&!this.visible;return i(s,{onClick:this.onClick,"aria-hidden":t?"true":null,class:{"menu-toggle-hidden":t}},i("slot",null))}};n.style=":host{position:relative;-ms-touch-action:manipulation;touch-action:manipulation}:host(.menu-toggle-hidden){display:none}";export{n as bkkr_menu_toggle}