import{MenuContextProvider as e,useInjectMenu as t}from"./hooks/useMenuContext.mjs";import n from"./SubMenuList.mjs";import{Transition as r,computed as i,createVNode as a,defineComponent as o,ref as s,vShow as c,watch as l,withDirectives as u}from"vue";var d=o({compatConfig:{MODE:3},name:`InlineSubMenuList`,inheritAttrs:!1,props:{id:String,open:Boolean,keyPath:Array},setup(o,{slots:d}){let f=i(()=>`inline`),{motion:p,mode:m,defaultMotions:h}=t(),g=i(()=>m.value===f.value),_=s(!g.value),v=i(()=>g.value?o.open:!1);l(m,()=>{g.value&&(_.value=!1)},{flush:`post`});let y=i(()=>{let e=p.value||h.value?.[f.value]||h.value?.other;return{...typeof e==`function`?e():e,appear:o.keyPath.length<=1}});return()=>_.value?null:a(e,{mode:f.value},{default:()=>[a(r,y.value,{default:()=>[u(a(n,{id:o.id},{default:()=>[d.default?.()]}),[[c,v.value]])]})]})}});export{d as default};