import{g as d,E as c,G as f,j as a,H as u,ai as C,o as g,c as v,b as V,w as b,a as y,y as p,I as O,L as k,T as E,l as $}from"./entry.eb978f24.js";import{o as h}from"./index.83f60940.js";import{u as j}from"./usePopper.e41ed176.js";import{_ as w}from"./_plugin-vue_export-helper.c27b6911.js";import"./index.d18b209b.js";import"./_baseIteratee.3ae3c3e2.js";import"./_baseIsEqual.8f3c5dea.js";import"./_MapCache.e1952f2e.js";import"./get.96cc1b46.js";import"./_baseGet.b8f437ea.js";import"./_baseAssignValue.46c694f0.js";import"./_getAllKeysIn.acace03e.js";const B=d({props:{modelValue:{type:Boolean,default:!1},virtualElement:{type:Object,required:!0},popper:{type:Object,default:()=>({})},ui:{type:Object,default:()=>c.ui.contextMenu}},emits:["update:modelValue","close"],setup(e,{emit:r}){const s=f(),t=a(()=>u({},e.ui,s.ui.contextMenu)),i=a(()=>u({},e.popper,t.value.popper)),o=a({get(){return e.modelValue},set(m){r("update:modelValue",m)}}),l=C(e,"virtualElement"),[,n]=j(i.value,l);return h(n,()=>{o.value=!1}),{ui:t,isOpen:o,container:n}}});function M(e,r,s,t,i,o){return e.isOpen?(g(),v("div",{key:0,ref:"container",class:p([e.ui.container,e.ui.width])},[V(E,k({appear:""},e.ui.transition),{default:b(()=>[y("div",{class:p([e.ui.base,e.ui.ring,e.ui.rounded,e.ui.shadow,e.ui.background])},[O(e.$slots,"default")],2)]),_:3},16)],2)):$("",!0)}const D=w(B,[["render",M]]);export{D as default};
