import{M as k,_ as h,d as y,G as C,s as f,m as D,o as x,c as z,a as s,b as i,n as m,w as S,F as M,j as N,H as A,f as B,N as F,T}from"./entry-d195bacb.mjs";import j from"./DocsAsideTree-09b1b5ad.mjs";import I from"./SocialIcons-d7205ab6.mjs";import O from"./ThemeSelect-68654069.mjs";import"./composables-6b84c7c1.mjs";const V=()=>{const{$menu:a}=k();return a},E=()=>{const{$userAgent:a}=k();return a},G=y({name:"MobileNav",setup(a,{expose:o}){o();const{navigation:d,theme:e}=C(),b=f(()=>{var t;return((t=e.value.aside)==null?void 0:t.level)||0}),p=f(()=>{var t,g;return((g=(t=e.value)==null?void 0:t.aside)==null?void 0:g.filter)||[]}),l=f(()=>(d.value||[]).filter(t=>!p.value.includes(t._path))),{visible:r,open:c,close:u,toggle:_}=V(),{isDesktopSafari:n,isDesktopFirefox:w}=E();D(r,t=>t?c():u());const v={navigation:d,theme:e,asideLevel:b,filtered:p,links:l,visible:r,open:c,close:u,toggle:_,isDesktopSafari:n,isDesktopFirefox:w,buttonClasses:"w-8 h-8 icon-base rounded-xl"};return Object.defineProperty(v,"__isScriptSetup",{enumerable:!1,value:!0}),v}}),H={class:"lg:hidden"},L={class:"flex items-center justify-end gap-4 px-6 mt-4"};function P(a,o,d,e,b,p){const l=N,r=j,c=I,u=O,_=A;return x(),z(M,null,[s("button",{class:m([[e.buttonClasses],"relative z-10 lg:hidden"]),"aria-label":"Menu",onClick:o[0]||(o[0]=(...n)=>e.toggle&&e.toggle(...n))},[i(l,{name:"heroicons-outline:menu",class:"w-6 h-6 mx-auto icon-base","aria-hidden":"\u201Dtrue\u201D"})],2),s("span",H,[i(_,null,{default:S(()=>[(x(),B(T,{to:"body"},[s("div",{id:"mobile-nav-scrim",class:m([[e.visible?"pointer-events-auto opacity-100":"pointer-events-none opacity-0"],"fixed top-0 left-0 z-10 w-full h-full transition bg-opacity-50 backdrop-blur dark:bg-opacity-50"]),onClick:o[1]||(o[1]=(...n)=>e.toggle&&e.toggle(...n))},null,2),s("button",{id:"mobile-nav-button",class:m([[e.buttonClasses,e.visible?"pointer-events-auto opacity-100":`opacity-0 transition ${e.isDesktopSafari||e.isDesktopFirefox?"duration-0":"duration-400"} pointer-events-none`],"fixed z-30"]),onClick:o[2]||(o[2]=(...n)=>e.toggle&&e.toggle(...n))},[i(l,{name:"heroicons-outline:x",class:"w-6 h-6 mx-auto icon-base"})],2),s("div",{id:"mobile-nav-surface",class:m([[e.visible?"pointer-events-auto scale-100 opacity-100":"pointer-events-none scale-95 opacity-0"],"fixed z-20 w-[calc(100%-4rem)] min-w-full origin-top-right overflow-hidden transform transition-transform ease-out sm:w-auto sm:min-w-[calc(320px-2rem)] border shadow-xl surface surface-border rounded-2xl"]),onClick:o[4]||(o[4]=(...n)=>e.toggle&&e.toggle(...n))},[s("div",{class:"z-40 max-h-full pt-12 pb-6 pl-8 pr-0 mb-2 overflow-y-auto custom-scrollbar",onClick:o[3]||(o[3]=F(()=>{},["stop","prevent"]))},[i(r,{links:e.links},null,8,["links"]),s("div",L,[i(c),i(u,{size:"h-6 w-6"})])])],2)]))]),_:1})])],64)}var W=h(G,[["render",P]]);export{W as default};
