import{E as f,G as l,g,j as a,U as v,as as C,N as w,o as y,c as V,b,w as E,a as O,y as h,H as k,K as p,T as M,l as $}from"./entry.9e31e8a4.js";import{o as j}from"./index.dff89205.js";import{t as B}from"./tw-merge.27ca352e.js";import{E as N,u as P}from"./ui.config.7ae255de.js";import{u as T}from"./usePopper.94795ccf.js";import{_ as U}from"./_plugin-vue_export-helper.c27b6911.js";import"./index.87a09f8b.js";const q=f(l.ui.strategy,l.ui.contextMenu,N),z=g({inheritAttrs:!1,props:{modelValue:{type:Boolean,default:!1},virtualElement:{type:Object,required:!0},popper:{type:Object,default:()=>({})},ui:{type:Object,default:void 0}},emits:["update:modelValue","close"],setup(e,{emit:s}){const{ui:t,attrs:o,attrsClass:r}=P("contextMenu",e.ui,q),n=a(()=>v({},e.popper,t.value.popper)),u=a({get(){return e.modelValue},set(c){s("update:modelValue",c)}}),d=C(e,"virtualElement"),[,i]=T(n.value,d),m=a(()=>B(w(t.value.container,t.value.width),r));return j(i,()=>{u.value=!1}),{ui:t,attrs:o,isOpen:u,wrapperClass:m,container:i}}});function A(e,s,t,o,r,n){return e.isOpen?(y(),V("div",p({key:0,ref:"container",class:e.wrapperClass},e.attrs),[b(M,p({appear:""},e.ui.transition),{default:E(()=>[O("div",{class:h([e.ui.base,e.ui.ring,e.ui.rounded,e.ui.shadow,e.ui.background])},[k(e.$slots,"default")],2)]),_:3},16)],16)):$("",!0)}const D=U(z,[["render",A]]);export{D as default};
