"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),v=require("./SubMenuList.js"),i=require("./hooks/useMenuContext.js"),m=e.defineComponent({compatConfig:{MODE:3},name:"InlineSubMenuList",inheritAttrs:!1,props:{id:String,open:Boolean,keyPath:Array},setup(t,{slots:s}){const u=e.computed(()=>"inline"),{motion:d,mode:a,defaultMotions:r}=i.useInjectMenu(),n=e.computed(()=>a.value===u.value),l=e.ref(!n.value),c=e.computed(()=>n.value?t.open:!1);e.watch(a,()=>{n.value&&(l.value=!1)},{flush:"post"});const f=e.computed(()=>{const o=d.value||r.value?.[u.value]||r.value?.other;return{...typeof o=="function"?o():o,appear:t.keyPath.length<=1}});return()=>l.value?null:e.createVNode(i.MenuContextProvider,{mode:u.value},{default:()=>[e.createVNode(e.Transition,f.value,{default:()=>[e.withDirectives(e.createVNode(v.default,{id:t.id},{default:()=>[s.default?.()]}),[[e.vShow,c.value]])]})]})}});exports.default=m;
