import{d as f,h as s,w as n,b as e,r as o,c as l,F as r,A as b,p as _,o as c,e as g,t as h}from"./index-KpQc9ZlS.js";const D=f({__name:"DynamicMenu",props:{menu:{},itemId:{},isHovering:{type:[Boolean,null]}},setup(m){const i=m;return(B,C)=>{const a=o("v-icon"),d=o("v-btn"),p=o("v-divider"),v=o("v-list-item-title"),u=o("v-list-item"),k=o("v-list"),y=o("v-menu");return c(),s(y,_(i,{width:"200"}),{activator:n(({props:t})=>[e(d,_({icon:"",rounded:"",variant:i.isHovering?"tonal":"text"},t),{default:n(()=>[e(a,{icon:"mdi-dots-horizontal"})]),_:2},1040,["variant"])]),default:n(()=>[e(k,{density:"compact",class:"mt-1"},{default:n(()=>[(c(!0),l(r,null,b(i.menu,t=>(c(),l(r,{key:t.id},[t.type==="divider"?(c(),s(p,{key:0,class:"my-1"})):(c(),s(u,{key:1,disabled:t.disabled,color:t.color,onClick:x=>t.click&&t.click(i.itemId)},{default:n(()=>[e(v,null,{default:n(()=>[e(a,{class:"mr-2",color:t.color,icon:t.icon},null,8,["color","icon"]),g("span",null,h(t.title),1)]),_:2},1024)]),_:2},1032,["disabled","color","onClick"]))],64))),128))]),_:1})]),_:1},16)}}});export{D as _};
